rem
stringlengths
1
226k
add
stringlengths
0
227k
context
stringlengths
6
326k
meta
stringlengths
143
403
input_ids
listlengths
256
256
attention_mask
listlengths
256
256
labels
listlengths
128
128
if ((category != null || entry.hasChildEntries()) && childItems.length == 0)
if (category != null || entry.hasChildEntries()){
private void updateChildrenOf(Object node, Widget widget) { // cast the entry or category IPropertySheetEntry entry = null; PropertySheetCategory category = null; if (node instanceof IPropertySheetEntry) entry = (IPropertySheetEntry) node; else category = (PropertySheetCategory) node; // get the current child table tree items TableTreeItem item = null; TableTreeItem[] childItems; if (node == rootEntry) { childItems = tableTree.getItems(); } else { item = (TableTreeItem) widget; childItems = item.getItems(); } // optimization! prune collapsed subtrees if (item != null && !item.getExpanded()) { // remove all children for (int i = 0; i < childItems.length; i++) { if (childItems[i].getData() != null) { removeItem(childItems[i]); } } // append a dummy if necessary if ((category != null || entry.hasChildEntries()) && childItems.length == 0) // may already have a dummy // its is either a category (which always has at least one // child) // or an entry with chidren. // Note that this test is not perfect, if we have filtering on // then there in fact may be no entires to show when the user // presses the "+" expand icon. But this is an acceptable // compromise. new TableTreeItem(item, SWT.NULL); return; } // get the child entries or categories if (node == rootEntry && isShowingCategories) // update the categories updateCategories(); List children = getChildren(node); // remove items Set set = new HashSet(childItems.length * 2 + 1); for (int i = 0; i < childItems.length; i++) { Object data = childItems[i].getData(); if (data != null) { Object e = data; int ix = children.indexOf(e); if (ix < 0) { // not found removeItem(childItems[i]); } else { // found set.add(e); } } else if (data == null) { // the dummy item.dispose(); } } // WORKAROUND int oldCnt = -1; if (widget == tableTree) oldCnt = tableTree.getItemCount(); // add new items int newSize = children.size(); for (int i = 0; i < newSize; i++) { Object el = children.get(i); if (!set.contains(el)) createItem(el, widget, i); } // WORKAROUND if (widget == tableTree && oldCnt == 0 && tableTree.getItemCount() == 1) { tableTree.setRedraw(false); tableTree.setRedraw(true); } // get the child table tree items after our changes if (entry == rootEntry) childItems = tableTree.getItems(); else childItems = item.getItems(); // update the child items // This ensures that the children are in the correct order // are showing the correct values. for (int i = 0; i < newSize; i++) { Object el = children.get(i); if (el instanceof IPropertySheetEntry) updateEntry((IPropertySheetEntry) el, childItems[i]); else { updateCategory((PropertySheetCategory) el, childItems[i]); updateChildrenOf((PropertySheetCategory) el, childItems[i]); } } // The tree's original selection may no longer apply after the update, // so fire the selection changed event. entrySelectionChanged(); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/3fe46568fedba60643e0be03da922f6da9a1bdb3/PropertySheetViewer.java/clean/bundles/org.eclipse.ui.views/src/org/eclipse/ui/views/properties/PropertySheetViewer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1089, 4212, 951, 12, 921, 756, 16, 11103, 3604, 13, 288, 202, 202, 759, 4812, 326, 1241, 578, 3150, 202, 202, 45, 1396, 8229, 1622, 1241, 273, 446, 31, 202, 202, 1396, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1089, 4212, 951, 12, 921, 756, 16, 11103, 3604, 13, 288, 202, 202, 759, 4812, 326, 1241, 578, 3150, 202, 202, 45, 1396, 8229, 1622, 1241, 273, 446, 31, 202, 202, 1396, ...
return type.matches(typeToMatch.resolve(shadow.getIWorld()), TypePattern.DYNAMIC);
return type.matches(typeToMatch.resolve(shadow.getIWorld()), TypePattern.DYNAMIC);
protected FuzzyBoolean matchInternal(Shadow shadow) { if (!couldMatch(shadow)) return FuzzyBoolean.NO; UnresolvedType typeToMatch = isThis ? shadow.getThisType() : shadow.getTargetType(); //if (typeToMatch == ResolvedType.MISSING) return FuzzyBoolean.NO; return type.matches(typeToMatch.resolve(shadow.getIWorld()), TypePattern.DYNAMIC); }
53148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53148/8a34d98b678b9d85657d81b8991928b8b2788d05/ThisOrTargetPointcut.java/buggy/weaver/src/org/aspectj/weaver/patterns/ThisOrTargetPointcut.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 478, 13903, 5507, 845, 3061, 12, 12957, 10510, 13, 288, 202, 202, 430, 16051, 15195, 2060, 12, 19119, 3719, 327, 478, 13903, 5507, 18, 3417, 31, 202, 202, 984, 11792, 559, 618,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 478, 13903, 5507, 845, 3061, 12, 12957, 10510, 13, 288, 202, 202, 430, 16051, 15195, 2060, 12, 19119, 3719, 327, 478, 13903, 5507, 18, 3417, 31, 202, 202, 984, 11792, 559, 618,...
client.doGetRevisionProperty(path, null, svnRevision, propHandler);
client.doGetRevisionProperty(SVNURL.parseURIEncoded(path), null, svnRevision, propHandler);
public PropertyData[] revProperties(String path, Revision rev) throws ClientException { if(path == null){ return null; } SVNWCClient client = getSVNWCClient(); SVNRevision svnRevision = SVNConverterUtil.getSVNRevision(rev); SVNRevision svnPegRevision = SVNConverterUtil.getSVNRevision(null); final Collection properties = new ArrayList(); ISVNPropertyHandler propHandler = new ISVNPropertyHandler(){ public void handleProperty(File fpath, SVNPropertyData property) { properties.add(new PropertyData(SVNClient.this, fpath.getAbsolutePath(), property.getName(), property.getValue(), property.getValue().getBytes())); } public void handleProperty(String url, SVNPropertyData property) { properties.add(new PropertyData(SVNClient.this, url, property.getName(), property.getValue(), property.getValue().getBytes())); } }; try { if(isURL(path)){ client.doGetRevisionProperty(path, null, svnRevision, propHandler); }else{ client.doGetRevisionProperty(new File(path).getAbsoluteFile(), null, svnPegRevision, svnRevision, propHandler); } } catch (SVNException e) { throwException(e); } return (PropertyData[]) properties.toArray(new PropertyData[properties.size()]); }
5695 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5695/28381179e464d7990498164d52693487f9dddb79/SVNClient.java/buggy/javasvn/src/org/tigris/subversion/javahl/SVNClient.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4276, 751, 8526, 5588, 2297, 12, 780, 589, 16, 13132, 5588, 13, 1216, 20881, 288, 3639, 309, 12, 803, 422, 446, 15329, 5411, 327, 446, 31, 3639, 289, 3639, 29537, 50, 59, 39, 1227...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 4276, 751, 8526, 5588, 2297, 12, 780, 589, 16, 13132, 5588, 13, 1216, 20881, 288, 3639, 309, 12, 803, 422, 446, 15329, 5411, 327, 446, 31, 3639, 289, 3639, 29537, 50, 59, 39, 1227...
String substitutionGroupFullName = sGrammar.getElementDeclSubstitutionGroupElementFullName(elementIndex);
String substitutionGroupFullName = sGrammar.getElementDeclSubstitutionGroupAffFullName(elementIndex);
public boolean isEquivalentTo(QName anElement, QName exemplar) throws Exception{ if (anElement.localpart==exemplar.localpart && anElement.uri==exemplar.uri ) { return true; // they're the same! } if (fGrammarResolver == null || fStringPool == null) { throw new SAXException("Internal error; tried to check an element against a substitutionGroup, but no GrammarResolver is defined"); } int uriIndex = anElement.uri; int localpartIndex = anElement.localpart; String uri = fStringPool.toString(anElement.uri); String localpart = fStringPool.toString(anElement.localpart); // In addition to simply trying to find a chain between anElement and exemplar, // we need to make sure that no steps in the chain are blocked. // That is, at every step, we need to make sure that the element // being substituted for will permit being substituted // for, and whether the type of the element will permit derivations in // instance documents of this sort. if(uri==null) { return false; } SchemaGrammar sGrammar = null; try { sGrammar = (SchemaGrammar) fGrammarResolver.getGrammar(uri); } catch ( ClassCastException ce) { //since the return Grammar is not a SchemaGrammar, bail out String er = "Grammar with URI " + uri + " is not a schema grammar!"; Object [] a = {er}; fErrorReporter.reportError(fErrorReporter.getLocator(), XMLMessages.XML_DOMAIN, XMLMessages.MSG_GENERIC_SCHEMA_ERROR, XMLMessages.SCHEMA_GENERIC_ERROR, a, XMLErrorReporter.ERRORTYPE_RECOVERABLE_ERROR); return false; } if(sGrammar == null) { return false; } // this will be the index of anElement int elementIndex = sGrammar.getElementDeclIndex(uriIndex, localpartIndex, TOP_LEVEL_SCOPE); int anElementIndex = elementIndex; String substitutionGroupFullName = sGrammar.getElementDeclSubstitutionGroupElementFullName(elementIndex); boolean foundIt = false; while (substitutionGroupFullName != null) { int commaAt = substitutionGroupFullName.indexOf(","); uri = ""; localpart = substitutionGroupFullName; if ( commaAt >= 0 ) { if (commaAt > 0 ) { uri = substitutionGroupFullName.substring(0,commaAt); } localpart = substitutionGroupFullName.substring(commaAt+1); } if(uri==null) { return false; } try { sGrammar = (SchemaGrammar) fGrammarResolver.getGrammar(uri); } catch ( ClassCastException ce) { //since the return Grammar is not a SchemaGrammar, bail out String er = "Grammar with URI " + uri + " is not a schema grammar!"; Object [] a = {er}; fErrorReporter.reportError(fErrorReporter.getLocator(), XMLMessages.XML_DOMAIN, XMLMessages.MSG_GENERIC_SCHEMA_ERROR, XMLMessages.SCHEMA_GENERIC_ERROR, a, XMLErrorReporter.ERRORTYPE_RECOVERABLE_ERROR); return false; } if(sGrammar == null) { return false; } uriIndex = fStringPool.addSymbol(uri); localpartIndex = fStringPool.addSymbol(localpart); elementIndex = sGrammar.getElementDeclIndex(uriIndex, localpartIndex, TOP_LEVEL_SCOPE); if (elementIndex == -1) { return false; } if (uriIndex == exemplar.uri && localpartIndex == exemplar.localpart) { // time to check for block value on element if((sGrammar.getElementDeclBlockSet(elementIndex) & SchemaSymbols.SUBSTITUTION) != 0) { return false; } foundIt = true; break; } substitutionGroupFullName = sGrammar.getElementDeclSubstitutionGroupElementFullName(elementIndex); } if (!foundIt) { return false; } // this will contain anElement's complexType information. TraverseSchema.ComplexTypeInfo aComplexType = sGrammar.getElementComplexTypeInfo(anElementIndex); // elementIndex contains the index of the substitutionGroup head int exemplarBlockSet = sGrammar.getElementDeclBlockSet(elementIndex); if(aComplexType == null) { // check on simpleType case XMLElementDecl anElementDecl = new XMLElementDecl(); sGrammar.getElementDecl(anElementIndex, anElementDecl); DatatypeValidator anElementDV = anElementDecl.datatypeValidator; XMLElementDecl exemplarDecl = new XMLElementDecl(); sGrammar.getElementDecl(elementIndex, exemplarDecl); DatatypeValidator exemplarDV = exemplarDecl.datatypeValidator; return((anElementDV == null) || ((anElementDV == exemplarDV) || ((exemplarBlockSet & SchemaSymbols.RESTRICTION) == 0))); } // now we have to make sure there are no blocks on the complexTypes that this is based upon int anElementDerivationMethod = aComplexType.derivedBy; if((anElementDerivationMethod & exemplarBlockSet) != 0) return false; // this will contain exemplar's complexType information. TraverseSchema.ComplexTypeInfo exemplarComplexType = sGrammar.getElementComplexTypeInfo(elementIndex); for(TraverseSchema.ComplexTypeInfo tempType = aComplexType; tempType != null && tempType != exemplarComplexType; tempType = tempType.baseComplexTypeInfo) { if((tempType.blockSet & anElementDerivationMethod) != 0) { return false; } } return true; }
4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/dded6e20bac6cc9df13e1872b030c11a48d96261/SubstitutionGroupComparator.java/buggy/src/org/apache/xerces/validators/schema/SubstitutionGroupComparator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 353, 22606, 774, 12, 13688, 392, 1046, 16, 16723, 431, 351, 412, 297, 13, 1216, 1185, 95, 3639, 309, 261, 304, 1046, 18, 3729, 2680, 631, 338, 351, 412, 297, 18, 3729, 2680,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 353, 22606, 774, 12, 13688, 392, 1046, 16, 16723, 431, 351, 412, 297, 13, 1216, 1185, 95, 3639, 309, 261, 304, 1046, 18, 3729, 2680, 631, 338, 351, 412, 297, 18, 3729, 2680,...
Mode mode = new Mode(modeName);
Mode mode = jEdit.getMode(modeName); if(mode == null) { mode = new Mode(modeName); jEdit.addMode(mode); }
public void endElement(String name) { if(name.equals("MODE")) { Mode mode = new Mode(modeName); Object path; if(resource) { path = jEdit.class.getResource(directory + '/' + file); } else path = MiscUtilities.constructPath(directory,file); mode.setProperty("file",path); if(filenameGlob != null) mode.setProperty("filenameGlob",filenameGlob); if(firstlineGlob != null) mode.setProperty("firstlineGlob",firstlineGlob); jEdit.addMode(mode); modeName = file = filenameGlob = firstlineGlob = null; } }
6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/8645d39f892f95a8348cc6903451df3bcb7fd5d5/ModeCatalogHandler.java/clean/org/gjt/sp/jedit/ModeCatalogHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 14840, 12, 780, 508, 13, 202, 95, 202, 202, 430, 12, 529, 18, 14963, 2932, 7038, 6, 3719, 202, 202, 95, 1082, 202, 2309, 1965, 273, 394, 8126, 12, 3188, 461, 1769, 1082...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 14840, 12, 780, 508, 13, 202, 95, 202, 202, 430, 12, 529, 18, 14963, 2932, 7038, 6, 3719, 202, 202, 95, 1082, 202, 2309, 1965, 273, 394, 8126, 12, 3188, 461, 1769, 1082...
&& plugin.installedVersion != null
&& installedVersion != null
public void update() { PluginList pluginList = window.getPluginList(); if (pluginList == null) return; entries = new ArrayList(); for(int i = 0; i < pluginList.pluginSets.size(); i++) { PluginList.PluginSet set = (PluginList.PluginSet) pluginList.pluginSets.get(i); for(int j = 0; j < set.plugins.size(); j++) { PluginList.Plugin plugin = (PluginList.Plugin) pluginList.pluginHash.get(set.plugins.get(j)); PluginList.Branch branch = plugin.getCompatibleBranch(); if (updates) { if(branch != null && branch.canSatisfyDependencies() && plugin.installedVersion != null && MiscUtilities.compareStrings(branch.version, plugin.installedVersion,false) > 0) { entries.add(new Entry(plugin,set.name)); } } else { if(plugin.installed == null && plugin.canBeInstalled()) entries.add(new Entry(plugin,set.name)); } } } sort(sortType); fireTableChanged(new TableModelEvent(this)); } //}}}
8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/819a5ea26abad40a3c10b66b97ceebe13a03a7f8/InstallPanel.java/buggy/org/gjt/sp/jedit/pluginmgr/InstallPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 1089, 1435, 202, 202, 95, 1082, 202, 3773, 682, 1909, 682, 273, 2742, 18, 588, 3773, 682, 5621, 1082, 202, 430, 261, 4094, 682, 422, 446, 13, 327, 31, 1082, 202, 8219, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 1089, 1435, 202, 202, 95, 1082, 202, 3773, 682, 1909, 682, 273, 2742, 18, 588, 3773, 682, 5621, 1082, 202, 430, 261, 4094, 682, 422, 446, 13, 327, 31, 1082, 202, 8219, ...
Reader in = null;
Reader in = null; try { URL url = new URL(filename); InputStream is = url.openStream(); in = new BufferedReader(new InputStreamReader(is)); } catch (MalformedURLException mfex) { in = null; } catch (IOException ioex) { Context.reportError(ToolErrorReporter.getMessage( "msg.couldnt.open.url", filename, ioex.toString())); exitCode = EXITCODE_FILE_NOT_FOUND; return; } if (in == null) {
public static void processFile(Context cx, Scriptable scope, String filename) { Reader in = null; try { in = new PushbackReader(new FileReader(filename)); int c = in.read(); // Support the executable script #! syntax: If // the first line begins with a '#', treat the whole // line as a comment. if (c == '#') { while ((c = in.read()) != -1) { if (c == '\n' || c == '\r') break; } ((PushbackReader) in).unread(c); } else { // No '#' line, just reopen the file and forget it // ever happened. OPT closing and reopening // undoubtedly carries some cost. Is this faster // or slower than leaving the PushbackReader // around? in.close(); in = new FileReader(filename); } filename = new java.io.File(filename).getCanonicalPath(); } catch (FileNotFoundException ex) { Context.reportError(ToolErrorReporter.getMessage( "msg.couldnt.open", filename)); exitCode = EXITCODE_FILE_NOT_FOUND; return; } catch (IOException ioe) { global.getErr().println(ioe.toString()); } // Here we evalute the entire contents of the file as // a script. Text is printed only if the print() function // is called. evaluateReader(cx, scope, in, filename, 1); }
51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/a14d6d33c5dc5658d619b3699811402cdf007ca0/Main.java/clean/js/rhino/toolsrc/org/mozilla/javascript/tools/shell/Main.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 1207, 812, 12, 1042, 9494, 16, 22780, 2146, 16, 4766, 282, 514, 1544, 13, 565, 288, 5411, 5393, 316, 273, 446, 31, 225, 775, 288, 1976, 880, 273, 394, 1976, 12, 3459, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 1207, 812, 12, 1042, 9494, 16, 22780, 2146, 16, 4766, 282, 514, 1544, 13, 565, 288, 5411, 5393, 316, 273, 446, 31, 225, 775, 288, 1976, 880, 273, 394, 1976, 12, 3459, ...
} else {
} else {
public Set findPDIHierarchies(final Set arg0) { // CONTRACT if (null == arg0 || arg0.size()==0) { return new HashSet(); } HibernateTemplate ht = new HibernateTemplate(sessions); return (Set) ht.execute(new HibernateCallback() { public Object doInHibernate(Session session) throws HibernateException { newCache(); //QUERY Query q = session.getNamedQuery("findPDI"); q.setParameterList("img_list", arg0, new IntegerType()); List result = q.list(); Set imagesAll = new HashSet(result); if (null == imagesAll || imagesAll.size() == 0) { return new HashSet(); } // LOGIC // This is all possible because of the use of the cache! Set hierarchies = new HashSet(); Iterator i = imagesAll.iterator(); while (i.hasNext()) { Image img = (Image) i.next(); ImageData id = go(img,false); // Start using *Data to prevent lazy loading Set datasets = img.getDatasets(); if (datasets == null || datasets.size() < 1){ hierarchies.add(id); } else { Iterator d = datasets.iterator(); while (d.hasNext()) { Dataset ds = (Dataset) d.next(); DatasetData dd = go(ds,false); // Add images (since not resolved because go(*,false); if (null == dd.images) dd.images = new HashSet(); dd.images.add(id); Set projects = ds.getProjects(); if (projects == null || projects.size() < 1) { hierarchies.add(dd); } else { Iterator p = projects.iterator(); while (p.hasNext()){ Project prj = (Project) p.next(); ProjectData pd = go(prj,false); // Add datsets (since not resolved because go(*,false) if (null == pd.datasets) pd.datasets = new HashSet(); pd.datasets.add(dd); hierarchies.add(pd); } } } } } emptyCache(); return hierarchies; } }); }
55464 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55464/8442e37c365d8ade04f3bf94b6b000049c740d2a/HierarchyBrowsingImpl.java/buggy/components/wars/srv/src/java/org/ome/omero/logic/HierarchyBrowsingImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 1000, 1104, 52, 2565, 44, 5148, 606, 12, 6385, 1000, 1501, 20, 13, 288, 377, 202, 759, 8020, 2849, 1268, 377, 202, 430, 261, 2011, 422, 1501, 20, 747, 1501, 20, 18, 1467, 1435, 631, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 1000, 1104, 52, 2565, 44, 5148, 606, 12, 6385, 1000, 1501, 20, 13, 288, 377, 202, 759, 8020, 2849, 1268, 377, 202, 430, 261, 2011, 422, 1501, 20, 747, 1501, 20, 18, 1467, 1435, 631, ...
_configuration = configuration; _options = options; _actions = new ArrayList(); _printStackTrace = Boolean.valueOf(_options.getProperty( ProcessorOptions.PRINT_STACK_TRACE_PROPERTY)).booleanValue(); _env = (ProcessorEnvironment)_configuration.getEnvironment();
this(configuration,options);
public Processor(Configuration configuration, Properties options, Model model) { _configuration = configuration; _options = options; _actions = new ArrayList(); // find the value of the "print stack traces" property _printStackTrace = Boolean.valueOf(_options.getProperty( ProcessorOptions.PRINT_STACK_TRACE_PROPERTY)).booleanValue(); _env = (ProcessorEnvironment)_configuration.getEnvironment(); _model = model; }
9667 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9667/33dbabfd284e4ed3ba370125cc83675d80f8b655/Processor.java/buggy/jaxws-ri/tools/wscompile/src/com/sun/tools/ws/processor/Processor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15476, 12, 1750, 1664, 16, 6183, 702, 16, 3164, 938, 13, 288, 3639, 389, 7025, 273, 1664, 31, 3639, 389, 2116, 273, 702, 31, 3639, 389, 4905, 273, 394, 2407, 5621, 3639, 368, 1104...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15476, 12, 1750, 1664, 16, 6183, 702, 16, 3164, 938, 13, 288, 3639, 389, 7025, 273, 1664, 31, 3639, 389, 2116, 273, 702, 31, 3639, 389, 4905, 273, 394, 2407, 5621, 3639, 368, 1104...
throw getRuntime().newNameError("uninitialized constant " + name.asSymbol() + " at " + getName());
throw getRuntime().newNameError("uninitialized constant " + getName() + "::" + name.asSymbol());
public IRubyObject const_missing(IRubyObject name) { /* Uninitialized constant */ if (this != getRuntime().getObject()) { throw getRuntime().newNameError("uninitialized constant " + name.asSymbol() + " at " + getName()); } throw getRuntime().newNameError("uninitialized constant " + name.asSymbol()); }
46770 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46770/8bc77fd935108392c0bf8a671462f28f423e48c1/RubyModule.java/clean/src/org/jruby/RubyModule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15908, 10340, 921, 1866, 67, 7337, 12, 7937, 10340, 921, 508, 13, 288, 3639, 1748, 1351, 13227, 5381, 1195, 3639, 309, 261, 2211, 480, 18814, 7675, 588, 921, 10756, 288, 5411, 604, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15908, 10340, 921, 1866, 67, 7337, 12, 7937, 10340, 921, 508, 13, 288, 3639, 1748, 1351, 13227, 5381, 1195, 3639, 309, 261, 2211, 480, 18814, 7675, 588, 921, 10756, 288, 5411, 604, ...
Creature creature = Creature.getCreatureByName("Ranger"); new net.sf.colossus.client.ShowCreatureDetails( masterFrame, creature, null, scrollPane);
GUIMasterHex hex = getHexContainingPoint(lastPoint); if (hex != null) { MasterHex hexModel = hex.getMasterHexModel(); new ShowRecruits(masterFrame, hexModel.getTerrain(), lastPoint, hexModel.getLabel(), scrollPane); }
public void actionPerformed(ActionEvent e) { Creature creature = Creature.getCreatureByName("Ranger"); new net.sf.colossus.client.ShowCreatureDetails( masterFrame, // daddy creature, // about what creature null, scrollPane); // relative position }
51862 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51862/4c9a7466b256dd546066295dc3443ed5f2d32e8c/MasterBoard.java/clean/Colossus/core/src/main/java/net/sf/colossus/client/MasterBoard.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 26100, 12, 1803, 1133, 425, 13, 5411, 288, 7734, 5799, 1231, 1519, 1231, 273, 5799, 1231, 18, 588, 1996, 1231, 5911, 2932, 54, 11455, 8863, 7734, 394, 2901, 18, 21668, 18, 129...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 26100, 12, 1803, 1133, 425, 13, 5411, 288, 7734, 5799, 1231, 1519, 1231, 273, 5799, 1231, 18, 588, 1996, 1231, 5911, 2932, 54, 11455, 8863, 7734, 394, 2901, 18, 21668, 18, 129...
assertEquals(-1, TupleComparator.compareObjects(c1, c2) ); assertEquals(1, TupleComparator.compareObjects(c2, c1) );
assertEquals(-1, TupleComparator.compareObjects(c1, c2, null) ); assertEquals(1, TupleComparator.compareObjects(c2, c1, null) );
public void testCompareObjects() { assertEquals(0, TupleComparator.compareObjects(null, null) ); assertEquals(-1, TupleComparator.compareObjects(null, "abc") ); //$NON-NLS-1$ assertEquals(1, TupleComparator.compareObjects("abc", null) ); //$NON-NLS-1$ assertEquals(1, TupleComparator.compareObjects("abc", "a") ); //$NON-NLS-1$ //$NON-NLS-2$ assertEquals(-1, TupleComparator.compareObjects("ab", "b") ); //$NON-NLS-1$ //$NON-NLS-2$ assertEquals(0, TupleComparator.compareObjects("abc", "abc") ); //$NON-NLS-1$ //$NON-NLS-2$ Integer n1 = new Integer(80); Integer n2 = new Integer(60); assertEquals(1, TupleComparator.compareObjects(n1, n2) ); assertEquals(-1, TupleComparator.compareObjects(n2, n1) ); Date a = new Date((long)8E8); Date b = new Date((long)7E9); assertEquals(-1, TupleComparator.compareObjects(a, b) ); assertEquals(1, TupleComparator.compareObjects(b, a) ); Calendar c1 = Calendar.getInstance(); c1.set(1999,2,5); Calendar c2 = Calendar.getInstance(); c2.set(2000,1,23); assertEquals(-1, TupleComparator.compareObjects(c1, c2) ); assertEquals(1, TupleComparator.compareObjects(c2, c1) ); }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/ccb408c37d65187712860e300730d338d02743ed/TupleComparatorTest.java/clean/chart/org.eclipse.birt.chart.tests/src/org/eclipse/birt/chart/tests/engine/internal/TupleComparatorTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 8583, 4710, 1435, 288, 202, 202, 11231, 8867, 12, 20, 16, 7257, 5559, 18, 9877, 4710, 12, 2011, 16, 446, 13, 11272, 202, 202, 11231, 8867, 19236, 21, 16, 7257, 5559...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8583, 4710, 1435, 288, 202, 202, 11231, 8867, 12, 20, 16, 7257, 5559, 18, 9877, 4710, 12, 2011, 16, 446, 13, 11272, 202, 202, 11231, 8867, 19236, 21, 16, 7257, 5559...
if (theClass.isArray()) {
UTF8.writeString(out, instance.getClass().getName()); ((Writable)instance).write(out); return; } UTF8.writeString(out, declaredClass.getName()); if (declaredClass.isArray()) {
private static void writeObject(DataOutput out, Object instance, Class theClass) throws IOException { if (instance == null) { // null instance = new NullInstance(theClass); theClass = NullInstance.class; } UTF8.writeString(out, theClass.getName()); if (theClass.isArray()) { // array int length = Array.getLength(instance); out.writeInt(length); for (int i = 0; i < length; i++) { writeObject(out, Array.get(instance, i), theClass.getComponentType()); } } else if (theClass == String.class) { // String UTF8.writeString(out, (String)instance); } else if (theClass.isPrimitive()) { // primitive type if (theClass == Boolean.TYPE) { // boolean out.writeBoolean(((Boolean)instance).booleanValue()); } else if (theClass == Character.TYPE) { // char out.writeChar(((Character)instance).charValue()); } else if (theClass == Byte.TYPE) { // byte out.writeByte(((Byte)instance).byteValue()); } else if (theClass == Short.TYPE) { // short out.writeShort(((Short)instance).shortValue()); } else if (theClass == Integer.TYPE) { // int out.writeInt(((Integer)instance).intValue()); } else if (theClass == Long.TYPE) { // long out.writeLong(((Long)instance).longValue()); } else if (theClass == Float.TYPE) { // float out.writeFloat(((Float)instance).floatValue()); } else if (theClass == Double.TYPE) { // double out.writeDouble(((Double)instance).doubleValue()); } else if (theClass == Void.TYPE) { // void } else { throw new IllegalArgumentException("Not a known primitive: "+theClass); } } else if (instance instanceof Writable) { // Writable ((Writable)instance).write(out); } else { throw new IOException("Can't write: " + instance + " as " + theClass); } }
50818 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50818/1e027c52d3746fdda27eb01324ca3994c20e6293/RPC.java/clean/src/java/org/apache/nutch/ipc/RPC.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 918, 16306, 12, 751, 1447, 596, 16, 1033, 791, 16, 21394, 1659, 326, 797, 13, 1216, 1860, 288, 565, 309, 261, 1336, 422, 446, 13, 288, 15604, 368, 446, 1377, 791, 273, 394, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 918, 16306, 12, 751, 1447, 596, 16, 1033, 791, 16, 21394, 1659, 326, 797, 13, 1216, 1860, 288, 565, 309, 261, 1336, 422, 446, 13, 288, 15604, 368, 446, 1377, 791, 273, 394, ...
if (vars.get(name) != null) {
if (vars.getVariable(name) != null) {
public Node transform(Node tree, Node enclosing, TokenStream ts, Scriptable scope) { loops = new Stack(); loopEnds = new Stack(); inFunction = tree.getType() == TokenStream.FUNCTION; if (!inFunction) { addVariables(tree, getVariableTable(tree)); } irFactory = createIRFactory(ts, scope); // to save against upchecks if no finally blocks are used. boolean hasFinally = false; PreorderNodeIterator iterator = tree.getPreorderIterator(); Node node; while ((node = iterator.nextNode()) != null) { int type = node.getType(); typeswitch: switch (type) { case TokenStream.FUNCTION: if (node == tree) { // Add the variables to variable table, the // parameters were added earlier. VariableTable vars = getVariableTable(tree); addVariables(tree, vars); // Add return to end if needed. Node stmts = node.getLastChild(); Node lastStmt = stmts.getLastChild(); if (lastStmt == null || lastStmt.getType() != TokenStream.RETURN) { stmts.addChildToBack(new Node(TokenStream.RETURN)); } } else { if (inFunction) { // Nested functions require activation objects. ((FunctionNode) tree).setRequiresActivation(true); } FunctionNode fnNode = (FunctionNode) node.getProp(Node.FUNCTION_PROP); addParameters(fnNode); NodeTransformer inner = newInstance(); fnNode = (FunctionNode) inner.transform(fnNode, tree, ts, scope); node.putProp(Node.FUNCTION_PROP, fnNode); Vector fns = (Vector) tree.getProp(Node.FUNCTION_PROP); if (fns == null) { fns = new Vector(7); tree.putProp(Node.FUNCTION_PROP, fns); } fns.addElement(fnNode); } break; case TokenStream.LABEL: { Node child = node.getFirstChild(); node.removeChild(child); String id = child.getString(); // check against duplicate labels... for (int i=loops.size()-1; i >= 0; i--) { Node n = (Node) loops.elementAt(i); if (n.getType() == TokenStream.LABEL) { String otherId = (String)n.getProp(Node.LABEL_PROP); if (id.equals(otherId)) { Object[] errArgs = { id }; String message = Context.getMessage("msg.dup.label", errArgs); reportMessage(Context.getContext(), message, node, tree, true, scope); break typeswitch; } } } node.putProp(Node.LABEL_PROP, id); /* Make a target and put it _after_ the following * node. And in the LABEL node, so breaks get the * right target. */ Node breakTarget = new Node(TokenStream.TARGET); Node parent = iterator.getCurrentParent(); Node next = node.getNextSibling(); while (next != null && (next.getType() == TokenStream.LABEL || next.getType() == TokenStream.TARGET)) next = next.getNextSibling(); if (next == null) break; parent.addChildAfter(breakTarget, next); node.putProp(Node.BREAK_PROP, breakTarget); if (next.getType() == TokenStream.LOOP) { node.putProp(Node.CONTINUE_PROP, next.getProp(Node.CONTINUE_PROP)); } loops.push(node); loopEnds.push(breakTarget); break; } case TokenStream.SWITCH: { Node breakTarget = new Node(TokenStream.TARGET); Node parent = iterator.getCurrentParent(); parent.addChildAfter(breakTarget, node); // make all children siblings except for selector Node sib = node; Node child = node.getFirstChild().next; while (child != null) { Node next = child.next; node.removeChild(child); parent.addChildAfter(child, sib); sib = child; child = next; } node.putProp(Node.BREAK_PROP, breakTarget); loops.push(node); loopEnds.push(breakTarget); node.putProp(Node.CASES_PROP, new Vector(13)); break; } case TokenStream.DEFAULT: case TokenStream.CASE: { Node sw = (Node) loops.peek(); if (type == TokenStream.CASE) { Vector cases = (Vector) sw.getProp(Node.CASES_PROP); cases.addElement(node); } else { sw.putProp(Node.DEFAULT_PROP, node); } break; } case TokenStream.NEWLOCAL : { Integer localCount = (Integer)(tree.getProp(Node.LOCALCOUNT_PROP)); if (localCount == null) { tree.putProp(Node.LOCALCOUNT_PROP, new Integer(1)); } else { tree.putProp(Node.LOCALCOUNT_PROP, new Integer(localCount.intValue() + 1)); } } break; case TokenStream.LOOP: loops.push(node); loopEnds.push(node.getProp(Node.BREAK_PROP)); break; case TokenStream.WITH: { if (inFunction) { // With statements require an activation object. ((FunctionNode) tree).setRequiresActivation(true); } loops.push(node); Node leave = node.getNextSibling(); if (leave.getType() != TokenStream.LEAVEWITH) { throw new RuntimeException("Unexpected tree"); } loopEnds.push(leave); break; } case TokenStream.TRY: { Node finallytarget = (Node)node.getProp(Node.FINALLY_PROP); if (finallytarget != null) { hasFinally = true; loops.push(node); loopEnds.push(finallytarget); } Integer localCount = (Integer)(tree.getProp(Node.LOCALCOUNT_PROP)); if (localCount == null) { tree.putProp(Node.LOCALCOUNT_PROP, new Integer(1)); } else { tree.putProp(Node.LOCALCOUNT_PROP, new Integer(localCount.intValue() + 1)); } break; } case TokenStream.TARGET: case TokenStream.LEAVEWITH: if (!loopEnds.empty() && loopEnds.peek() == node) { loopEnds.pop(); loops.pop(); } break; case TokenStream.RETURN: { /* If we didn't support try/finally, it wouldn't be * necessary to put LEAVEWITH nodes here... but as * we do need a series of JSR FINALLY nodes before * each RETURN, we need to ensure that each finally * block gets the correct scope... which could mean * that some LEAVEWITH nodes are necessary. */ if (!hasFinally) break; // skip the whole mess. Node parent = iterator.getCurrentParent(); for (int i=loops.size()-1; i >= 0; i--) { Node n = (Node) loops.elementAt(i); int elemtype = n.getType(); if (elemtype == TokenStream.TRY) { Node jsrnode = new Node(TokenStream.JSR); Object jsrtarget = n.getProp(Node.FINALLY_PROP); jsrnode.putProp(Node.TARGET_PROP, jsrtarget); parent.addChildBefore(jsrnode, node); } else if (elemtype == TokenStream.WITH) { parent.addChildBefore(new Node(TokenStream.LEAVEWITH), node); } } break; } case TokenStream.BREAK: case TokenStream.CONTINUE: { Node loop = null; boolean labelled = node.hasChildren(); String id = null; if (labelled) { /* get the label */ Node child = node.getFirstChild(); id = child.getString(); node.removeChild(child); } int i; Node parent = iterator.getCurrentParent(); for (i=loops.size()-1; i >= 0; i--) { Node n = (Node) loops.elementAt(i); int elemtype = n.getType(); if (elemtype == TokenStream.WITH) { parent.addChildBefore(new Node(TokenStream.LEAVEWITH), node); } else if (elemtype == TokenStream.TRY) { Node jsrFinally = new Node(TokenStream.JSR); Object jsrTarget = n.getProp(Node.FINALLY_PROP); jsrFinally.putProp(Node.TARGET_PROP, jsrTarget); parent.addChildBefore(jsrFinally, node); } else if (!labelled && (elemtype == TokenStream.LOOP || (elemtype == TokenStream.SWITCH && type == TokenStream.BREAK))) { /* if it's a simple break/continue, break from the * nearest enclosing loop or switch */ loop = n; break; } else if (labelled && elemtype == TokenStream.LABEL && id.equals((String)n.getProp(Node.LABEL_PROP))) { loop = n; break; } } int propType = type == TokenStream.BREAK ? Node.BREAK_PROP : Node.CONTINUE_PROP; Node target = loop == null ? null : (Node) loop.getProp(propType); if (loop == null || target == null) { String message; if (!labelled) { // didn't find an appropriate target if (type == TokenStream.CONTINUE) { message = Context.getMessage ("msg.continue.outside", null); } else { message = Context.getMessage ("msg.bad.break", null); } } else if (loop != null) { message = Context.getMessage("msg.continue.nonloop", null); } else { Object[] errArgs = { id }; message = Context.getMessage ("msg.undef.label", errArgs); } reportMessage(Context.getContext(), message, node, tree, true, scope); node.setType(TokenStream.NOP); break; } node.setType(TokenStream.GOTO); node.putProp(Node.TARGET_PROP, target); break; } case TokenStream.CALL: if (isSpecialCallName(tree, node)) node.putProp(Node.SPECIALCALL_PROP, Boolean.TRUE); visitCall(node, tree); break; case TokenStream.NEW: if (isSpecialCallName(tree, node)) node.putProp(Node.SPECIALCALL_PROP, Boolean.TRUE); visitNew(node, tree); break; case TokenStream.DOT: { Node right = node.getLastChild(); right.setType(TokenStream.STRING); break; } case TokenStream.EXPRSTMT: node.setType(inFunction ? TokenStream.POP : TokenStream.POPV); break; case TokenStream.OBJECT: { Vector regexps = (Vector) tree.getProp(Node.REGEXP_PROP); if (regexps == null) { regexps = new Vector(3); tree.putProp(Node.REGEXP_PROP, regexps); } regexps.addElement(node); Node n = new Node(TokenStream.OBJECT); iterator.replaceCurrent(n); n.putProp(Node.REGEXP_PROP, node); break; } case TokenStream.VAR: { ShallowNodeIterator i = node.getChildIterator(); Node result = new Node(TokenStream.BLOCK); while (i.hasMoreElements()) { Node n = i.nextNode(); if (!n.hasChildren()) continue; Node init = n.getFirstChild(); n.removeChild(init); Node asn = (Node) irFactory.createAssignment( TokenStream.NOP, n, init, null, false); Node pop = new Node(TokenStream.POP, asn, node.getDatum()); result.addChildToBack(pop); } iterator.replaceCurrent(result); break; } case TokenStream.DELPROP: case TokenStream.SETNAME: { if (!inFunction || inWithStatement()) break; Node bind = node.getFirstChild(); if (bind == null || bind.getType() != TokenStream.BINDNAME) break; String name = bind.getString(); if (name.equals("arguments")) { // use of "arguments" requires an activation object. ((FunctionNode) tree).setRequiresActivation(true); } VariableTable vars = getVariableTable(tree); if (vars.get(name) != null) { if (type == TokenStream.SETNAME) { node.setType(TokenStream.SETVAR); bind.setType(TokenStream.STRING); } else { // Local variables are by definition permanent Node n = new Node(TokenStream.PRIMARY, new Integer(TokenStream.FALSE)); iterator.replaceCurrent(n); } } break; } case TokenStream.GETPROP: if (inFunction) { Node n = node.getFirstChild().getNextSibling(); String name = n == null ? "" : n.getString(); if (name.equals("arguments") || (name.equals("length") && Context.getContext().getLanguageVersion() == Context.VERSION_1_2)) { // Use of "arguments" or "length" in 1.2 requires // an activation object. ((FunctionNode) tree).setRequiresActivation(true); } } break; case TokenStream.NAME: { if (!inFunction || inWithStatement()) break; String name = node.getString(); if (name.equals("arguments")) { // Use of "arguments" requires an activation object. ((FunctionNode) tree).setRequiresActivation(true); } VariableTable vars = getVariableTable(tree); if (vars.get(name) != null) { node.setType(TokenStream.GETVAR); } break; } } } return tree; }
51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/0470e048abb345f567d5fda1e9564715a9f4d5d7/NodeTransformer.java/buggy/js/rhino/org/mozilla/javascript/NodeTransformer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2029, 2510, 12, 907, 2151, 16, 2029, 16307, 16, 3155, 1228, 3742, 16, 12900, 22780, 2146, 13, 377, 288, 3639, 14075, 273, 394, 7283, 5621, 3639, 2798, 24980, 273, 394, 7283, 5621, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2029, 2510, 12, 907, 2151, 16, 2029, 16307, 16, 3155, 1228, 3742, 16, 12900, 22780, 2146, 13, 377, 288, 3639, 14075, 273, 394, 7283, 5621, 3639, 2798, 24980, 273, 394, 7283, 5621, 3...
} else if (tokenType.equals(JavaTokenType.DIV)) {
} else if(tokenType.equals(JavaTokenType.DIV)){
private static String calculateReplacementExpression(PsiExpression expression) { final PsiBinaryExpression exp = (PsiBinaryExpression) expression; final PsiJavaToken sign = exp.getOperationSign(); final PsiExpression lhs = exp.getLOperand(); final PsiExpression rhs = exp.getROperand(); assert rhs != null; final IElementType tokenType = sign.getTokenType(); if (tokenType.equals(JavaTokenType.PLUS)) { if (isZero(lhs)) { return rhs.getText(); } else { return lhs.getText(); } } else if (tokenType.equals(JavaTokenType.MINUS)) { return lhs.getText(); } else if (tokenType.equals(JavaTokenType.ASTERISK)) { if (isOne(lhs)) { return rhs.getText(); } else if (isOne(rhs)) { return lhs.getText(); } else { return "0"; } } else if (tokenType.equals(JavaTokenType.DIV)) { return lhs.getText(); } else { return ""; } }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/a4fb0a42d327368a9237b564d1227ae8c89ada7e/PointlessArithmeticExpressionInspection.java/buggy/plugins/InspectionGadgets/src/com/siyeh/ig/numeric/PointlessArithmeticExpressionInspection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 514, 4604, 15201, 2300, 12, 52, 7722, 2300, 2652, 13, 288, 3639, 727, 453, 7722, 5905, 2300, 1329, 273, 261, 52, 7722, 5905, 2300, 13, 2652, 31, 3639, 727, 453, 7722, 5852, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 514, 4604, 15201, 2300, 12, 52, 7722, 2300, 2652, 13, 288, 3639, 727, 453, 7722, 5905, 2300, 1329, 273, 261, 52, 7722, 5905, 2300, 13, 2652, 31, 3639, 727, 453, 7722, 5852, 1...
Utility.stringToFile(targetDir + "MuleException.xml", xml);
FileUtils.stringToFile(targetDir + "MuleException.xml", xml);
public static void generateTestData(String targetDir) throws IOException, TransformerException { if (!(targetDir.endsWith("/") || targetDir.endsWith("\\"))) { targetDir += "/"; } ObjectToXml trans = new ObjectToXml(); MuleException exception = new MuleException(Message.createStaticMessage("Some default exception")); FatalException fatal = new FatalException(Message.createStaticMessage("Some fatal exception"), new IOException("Some IO exception")); BusinessException business = new BusinessException("Some business exception"); ExceptionBean bean = new ExceptionBean(exception); String xml = (String) trans.transform(bean); Utility.stringToFile(targetDir + "MuleException.xml", xml); bean = new ExceptionBean(fatal); xml = (String) trans.transform(bean); Utility.stringToFile(targetDir + "FatalException.xml", xml); bean = new ExceptionBean(business); xml = (String) trans.transform(bean); Utility.stringToFile(targetDir + "BusinesException.xml", xml); }
2370 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2370/c123431ae3e412b6f1d5f979c493e2fcaf34f068/ErrorHandlerTestCase.java/clean/samples/errorhandler/src/test/java/org/mule/test/samples/errorhandler/ErrorHandlerTestCase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2103, 4709, 751, 12, 780, 19410, 13, 1216, 1860, 16, 21684, 565, 288, 3639, 309, 16051, 12, 3299, 1621, 18, 5839, 1190, 2932, 4898, 13, 747, 19410, 18, 5839, 1190, 2932, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2103, 4709, 751, 12, 780, 19410, 13, 1216, 1860, 16, 21684, 565, 288, 3639, 309, 16051, 12, 3299, 1621, 18, 5839, 1190, 2932, 4898, 13, 747, 19410, 18, 5839, 1190, 2932, ...
&& weblogicJarFile.exists() && weblogicJarFile.isFile()) {
&& weblogicJarFile.exists() && weblogicJarFile.isFile()) {
protected boolean isRebuildRequired(File genericJarFile, File weblogicJarFile) { boolean rebuild = false; JarFile genericJar = null; JarFile wlJar = null; File newWLJarFile = null; JarOutputStream newJarStream = null; try { log("Checking if weblogic Jar needs to be rebuilt for jar " + weblogicJarFile.getName(), Project.MSG_VERBOSE); // Only go forward if the generic and the weblogic file both exist if (genericJarFile.exists() && genericJarFile.isFile() && weblogicJarFile.exists() && weblogicJarFile.isFile()) { //open jar files genericJar = new JarFile(genericJarFile); wlJar = new JarFile(weblogicJarFile); Hashtable genericEntries = new Hashtable(); Hashtable wlEntries = new Hashtable(); Hashtable replaceEntries = new Hashtable(); //get the list of generic jar entries for (Enumeration e = genericJar.entries(); e.hasMoreElements();) { JarEntry je = (JarEntry)e.nextElement(); genericEntries.put(je.getName().replace('\\', '/'), je); } //get the list of weblogic jar entries for (Enumeration e = wlJar.entries() ; e.hasMoreElements();) { JarEntry je = (JarEntry)e.nextElement(); wlEntries.put(je.getName(), je); } //Cycle Through generic and make sure its in weblogic ClassLoader genericLoader = getClassLoaderFromJar(genericJarFile); for (Enumeration e = genericEntries.keys(); e.hasMoreElements();) { String filepath = (String)e.nextElement(); if (wlEntries.containsKey(filepath)) // File name/path match { // Check files see if same JarEntry genericEntry = (JarEntry)genericEntries.get(filepath); JarEntry wlEntry = (JarEntry)wlEntries.get(filepath); if ((genericEntry.getCrc() != wlEntry.getCrc()) || // Crc's Match (genericEntry.getSize() != wlEntry.getSize()) ) // Size Match { if (genericEntry.getName().endsWith(".class")) { //File are different see if its an object or an interface String classname = genericEntry.getName().replace(File.separatorChar,'.'); classname = classname.substring(0,classname.lastIndexOf(".class")); Class genclass = genericLoader.loadClass(classname); if (genclass.isInterface()) { //Interface changed rebuild jar. log("Interface " + genclass.getName() + " has changed",Project.MSG_VERBOSE); rebuild = true; break; } else { //Object class Changed update it. replaceEntries.put(filepath, genericEntry); } } else { // is it the manifest. If so ignore it if (!genericEntry.getName().equals("META-INF/MANIFEST.MF")) { //File other then class changed rebuild log("Non class file " + genericEntry.getName() + " has changed",Project.MSG_VERBOSE); rebuild = true; break; } } } } else // a file doesnt exist rebuild { log("File " + filepath + " not present in weblogic jar",Project.MSG_VERBOSE); rebuild = true; break; } } if (!rebuild) { log("No rebuild needed - updating jar",Project.MSG_VERBOSE); newWLJarFile = new File(weblogicJarFile.getAbsolutePath() + ".temp"); if (newWLJarFile.exists()) { newWLJarFile.delete(); } newJarStream = new JarOutputStream(new FileOutputStream(newWLJarFile)); newJarStream.setLevel(0); //Copy files from old weblogic jar for (Enumeration e = wlEntries.elements() ; e.hasMoreElements();) { byte[] buffer = new byte[1024]; int bytesRead; InputStream is; JarEntry je = (JarEntry)e.nextElement(); if (je.getCompressedSize() == -1 || je.getCompressedSize() == je.getSize()) { newJarStream.setLevel(0); } else { newJarStream.setLevel(9); } // Update with changed Bean class if (replaceEntries.containsKey(je.getName())) { log("Updating Bean class from generic Jar " + je.getName(),Project.MSG_VERBOSE); // Use the entry from the generic jar je = (JarEntry)replaceEntries.get(je.getName()); is = genericJar.getInputStream(je); } else //use fle from original weblogic jar { is = wlJar.getInputStream(je); } newJarStream.putNextEntry(new JarEntry(je.getName())); while ((bytesRead = is.read(buffer)) != -1) { newJarStream.write(buffer,0,bytesRead); } is.close(); } } else { log("Weblogic Jar rebuild needed due to changed interface or XML",Project.MSG_VERBOSE); } } else { rebuild = true; } } catch(ClassNotFoundException cnfe) { String cnfmsg = "ClassNotFoundException while processing ejb-jar file" + ". Details: " + cnfe.getMessage(); throw new BuildException(cnfmsg, cnfe); } catch(IOException ioe) { String msg = "IOException while processing ejb-jar file " + ". Details: " + ioe.getMessage(); throw new BuildException(msg, ioe); } finally { // need to close files and perhaps rename output if (genericJar != null) { try { genericJar.close(); } catch (IOException closeException) {} } if (wlJar != null) { try { wlJar.close(); } catch (IOException closeException) {} } if (newJarStream != null) { try { newJarStream.close(); } catch (IOException closeException) {} weblogicJarFile.delete(); newWLJarFile.renameTo(weblogicJarFile); if (!weblogicJarFile.exists()) { rebuild = true; } } } return rebuild; }
506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/506/c6c232893c39257745a8f7a618bcdb5c59791cae/WeblogicDeploymentTool.java/buggy/src/main/org/apache/tools/ant/taskdefs/optional/ejb/WeblogicDeploymentTool.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 1250, 28627, 3510, 3705, 12, 812, 5210, 10813, 812, 16, 1387, 3311, 28339, 10813, 812, 13, 565, 288, 3639, 1250, 13419, 273, 629, 31, 3639, 15644, 812, 5210, 10813, 273, 446, 31, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 1250, 28627, 3510, 3705, 12, 812, 5210, 10813, 812, 16, 1387, 3311, 28339, 10813, 812, 13, 565, 288, 3639, 1250, 13419, 273, 629, 31, 3639, 15644, 812, 5210, 10813, 273, 446, 31, 36...
public synchronized void addStartHolds(ObjectName objectName, Collection holds) {
public synchronized void addStartHolds(ObjectName objectName, java.util.Collection holds) {
public synchronized void addStartHolds(ObjectName objectName, Collection holds) { Collection currentHolds = (Collection)startHoldsMap.get(objectName); if(currentHolds == null) { currentHolds = new LinkedList(holds); startHoldsMap.put(objectName, currentHolds); } else { currentHolds.addAll(holds); } }
12474 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12474/d467ad1138e954aa1ec4479ae4360a400a125869/DependencyService2.java/clean/modules/kernel/src/java/org/apache/geronimo/kernel/service/DependencyService2.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 918, 527, 1685, 20586, 87, 12, 16707, 12282, 16, 2252, 18, 1367, 18, 2532, 14798, 13, 288, 3639, 2200, 783, 20586, 87, 273, 261, 2532, 13, 1937, 20586, 87, 863, 18, 588, 12,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3852, 918, 527, 1685, 20586, 87, 12, 16707, 12282, 16, 2252, 18, 1367, 18, 2532, 14798, 13, 288, 3639, 2200, 783, 20586, 87, 273, 261, 2532, 13, 1937, 20586, 87, 863, 18, 588, 12,...
if ((c == ' ') || (c == '\t') || (terminals.indexOf(c) != -1))
if ((terminals.indexOf(c) != -1))
public String getToken(String terminals) { skipWhiteSpace(); char[] val = value; int cur = cursor; int begin = cur; for ( ;cur < max; cur++) { char c = val[cur]; if ((c == ' ') || (c == '\t') || (terminals.indexOf(c) != -1)) { break; } } cursor = cur; int count = cur-begin; if (count > 0) { skipWhiteSpace(); return(new String(val, begin, count)); } return(null); }
2516 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2516/ba25aea3548503734088c2d895564f05bb3397cd/Tokenizer.java/clean/bundles/org.eclipse.osgi/core/adaptor/org/eclipse/osgi/framework/util/Tokenizer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 9162, 12, 780, 16122, 1031, 13, 565, 288, 3639, 2488, 23108, 5621, 3639, 1149, 8526, 1244, 273, 460, 31, 3639, 509, 662, 273, 3347, 31, 3639, 509, 2376, 273, 662, 31, 3639, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 9162, 12, 780, 16122, 1031, 13, 565, 288, 3639, 2488, 23108, 5621, 3639, 1149, 8526, 1244, 273, 460, 31, 3639, 509, 662, 273, 3347, 31, 3639, 509, 2376, 273, 662, 31, 3639, 3...
case TokenStream.SETVAR : slot = (iCode[++pc] & 0xFF);
case TokenStream.SETVAR : { int slot = (iCode[++pc] & 0xFF);
public static Object interpret(Context cx, Scriptable scope, Scriptable thisObj, Object[] args, NativeFunction fnOrScript, InterpreterData theData) throws JavaScriptException { if (cx.interpreterSecurityDomain != theData.securityDomain) { // If securityDomain is different, update domain in Cotext // and call self under new domain Object savedDomain = cx.interpreterSecurityDomain; cx.interpreterSecurityDomain = theData.securityDomain; try { return interpret(cx, scope, thisObj, args, fnOrScript, theData); } finally { cx.interpreterSecurityDomain = savedDomain; } } int i; Object lhs; final int maxStack = theData.itsMaxStack; final int maxVars = (fnOrScript.argNames == null) ? 0 : fnOrScript.argNames.length; final int maxLocals = theData.itsMaxLocals; final int maxTryDepth = theData.itsMaxTryDepth; final int VAR_SHFT = maxStack; final int LOCAL_SHFT = VAR_SHFT + maxVars; final int TRY_SCOPE_SHFT = LOCAL_SHFT + maxLocals;// stack[0 <= i < VAR_SHFT]: stack data// stack[VAR_SHFT <= i < LOCAL_SHFT]: variables// stack[LOCAL_SHFT <= i < TRY_SCOPE_SHFT]: used for newtemp/usetemp// stack[TRY_SCOPE_SHFT <= i]: try scopes// when 0 <= i < LOCAL_SHFT and stack[x] == DBL_MRK,// sDbl[i] gives the number value final Object DBL_MRK = Interpreter.DBL_MRK; Object[] stack = new Object[TRY_SCOPE_SHFT + maxTryDepth]; double[] sDbl = new double[TRY_SCOPE_SHFT]; int stackTop = -1; byte[] iCode = theData.itsICode; String[] strings = theData.itsStringTable; int pc = 0; int iCodeLength = theData.itsICodeTop; final Scriptable undefined = Undefined.instance; if (maxVars != 0) { int definedArgs = fnOrScript.argCount; if (definedArgs != 0) { if (definedArgs > args.length) { definedArgs = args.length; } for (i = 0; i != definedArgs; ++i) { stack[VAR_SHFT + i] = args[i]; } } for (i = definedArgs; i != maxVars; ++i) { stack[VAR_SHFT + i] = undefined; } } if (theData.itsNestedFunctions != null) { for (i = 0; i < theData.itsNestedFunctions.length; i++) createFunctionObject(theData.itsNestedFunctions[i], scope); } Object id; Object rhs, val; double valDbl; boolean valBln; int count; int slot; String name = null; Object[] outArgs; int lIntValue; double lDbl; int rIntValue; double rDbl;// tryStack[2 * i]: starting pc of catch block// tryStack[2 * i + 1]: starting pc of finally block int[] tryStack = null; int tryStackTop = 0; InterpreterFrame frame = null; if (cx.debugger != null) { frame = new InterpreterFrame(scope, theData, fnOrScript); cx.pushFrame(frame); } Object result = undefined; int pcPrevBranch = pc; final int instructionThreshold = cx.instructionThreshold; // During function call this will be set to -1 so catch can properly // adjust it int instructionCount = cx.instructionCount; // arbitrary number to add to instructionCount when calling // other functions final int INVOCATION_COST = 100; while (pc < iCodeLength) { try { switch (iCode[pc] & 0xff) { case TokenStream.ENDTRY : tryStackTop--; break; case TokenStream.TRY : if (tryStackTop == 0) { tryStack = new int[maxTryDepth * 2]; } i = getTarget(iCode, pc + 1); if (i == pc) i = 0; tryStack[tryStackTop * 2] = i; i = getTarget(iCode, pc + 3); if (i == (pc + 2)) i = 0; tryStack[tryStackTop * 2 + 1] = i; stack[TRY_SCOPE_SHFT + tryStackTop] = scope; ++tryStackTop; pc += 4; break; case TokenStream.GE : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl <= lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.LE : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl <= rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LE(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.GT : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && rDbl < lDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(rhs, lhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.LT : --stackTop; rhs = stack[stackTop + 1]; lhs = stack[stackTop]; if (rhs == DBL_MRK || lhs == DBL_MRK) { rDbl = stack_double(stack, sDbl, stackTop + 1); lDbl = stack_double(stack, sDbl, stackTop); valBln = (rDbl == rDbl && lDbl == lDbl && lDbl < rDbl); } else { valBln = (1 == ScriptRuntime.cmp_LT(lhs, rhs)); } stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.IN : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); valBln = ScriptRuntime.in(lhs, rhs, scope); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.INSTANCEOF : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); valBln = ScriptRuntime.instanceOf(scope, lhs, rhs); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.EQ : --stackTop; valBln = do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.NE : --stackTop; valBln = !do_eq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.SHEQ : --stackTop; valBln = do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.SHNE : --stackTop; valBln = !do_sheq(stack, sDbl, stackTop); stack[stackTop] = valBln ? Boolean.TRUE : Boolean.FALSE; break; case TokenStream.IFNE : val = stack[stackTop]; if (val != DBL_MRK) { valBln = !ScriptRuntime.toBoolean(val); } else { valDbl = sDbl[stackTop]; valBln = !(valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount (instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.IFEQ : val = stack[stackTop]; if (val != DBL_MRK) { valBln = ScriptRuntime.toBoolean(val); } else { valDbl = sDbl[stackTop]; valBln = (valDbl == valDbl && valDbl != 0.0); } --stackTop; if (valBln) { if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount (instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; } pc += 2; break; case TokenStream.GOTO : if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; case TokenStream.GOSUB : sDbl[++stackTop] = pc + 3; if (instructionThreshold != 0) { instructionCount += pc + 3 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = getTarget(iCode, pc + 1); continue; case TokenStream.RETSUB : slot = (iCode[pc + 1] & 0xFF); if (instructionThreshold != 0) { instructionCount += pc + 2 - pcPrevBranch; if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc = (int)sDbl[LOCAL_SHFT + slot]; continue; case TokenStream.POP : stackTop--; break; case TokenStream.DUP : stack[stackTop + 1] = stack[stackTop]; sDbl[stackTop + 1] = sDbl[stackTop]; stackTop++; break; case TokenStream.POPV : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; break; case TokenStream.RETURN : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; pc = getTarget(iCode, pc + 1); break; case TokenStream.BITNOT : rIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ~rIntValue; break; case TokenStream.BITAND : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue & rIntValue; break; case TokenStream.BITOR : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue | rIntValue; break; case TokenStream.BITXOR : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue ^ rIntValue; break; case TokenStream.LSH : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue << rIntValue; break; case TokenStream.RSH : rIntValue = stack_int32(stack, sDbl, stackTop); --stackTop; lIntValue = stack_int32(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lIntValue >> rIntValue; break; case TokenStream.URSH : rIntValue = stack_int32(stack, sDbl, stackTop) & 0x1F; --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = ScriptRuntime.toUint32(lDbl) >>> rIntValue; break; case TokenStream.ADD : --stackTop; do_add(stack, sDbl, stackTop); break; case TokenStream.SUB : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl - rDbl; break; case TokenStream.NEG : rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = -rDbl; break; case TokenStream.POS : rDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = rDbl; break; case TokenStream.MUL : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl * rDbl; break; case TokenStream.DIV : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; // Detect the divide by zero or let Java do it ? sDbl[stackTop] = lDbl / rDbl; break; case TokenStream.MOD : rDbl = stack_double(stack, sDbl, stackTop); --stackTop; lDbl = stack_double(stack, sDbl, stackTop); stack[stackTop] = DBL_MRK; sDbl[stackTop] = lDbl % rDbl; break; case TokenStream.BINDNAME : name = strings[getShort(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.bind(scope, name); pc += 2; break; case TokenStream.GETBASE : name = strings[getShort(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.getBase(scope, name); pc += 2; break; case TokenStream.SETNAME : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; // what about class cast exception here for lhs? stack[stackTop] = ScriptRuntime.setName ((Scriptable)lhs, rhs, scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.DELPROP : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.delete(lhs, rhs); break; case TokenStream.GETPROP : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProp(lhs, name, scope); break; case TokenStream.SETPROP : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProp(lhs, name, rhs, scope); break; case TokenStream.GETELEM : do_getElem(cx, stack, sDbl, stackTop, scope); --stackTop; break; case TokenStream.SETELEM : do_setElem(cx, stack, sDbl, stackTop, scope); stackTop -= 2; break; case TokenStream.PROPINC : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrement(lhs, name, scope); break; case TokenStream.PROPDEC : name = (String)stack[stackTop]; --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrement(lhs, name, scope); break; case TokenStream.ELEMINC : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postIncrementElem(lhs, rhs, scope); break; case TokenStream.ELEMDEC : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.postDecrementElem(lhs, rhs, scope); break; case TokenStream.GETTHIS : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getThis((Scriptable)lhs); break; case TokenStream.NEWTEMP : slot = (iCode[++pc] & 0xFF); stack[LOCAL_SHFT + slot] = stack[stackTop]; sDbl[LOCAL_SHFT + slot] = sDbl[stackTop]; break; case TokenStream.USETEMP : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[LOCAL_SHFT + slot]; sDbl[stackTop] = sDbl[LOCAL_SHFT + slot]; break; case TokenStream.CALLSPECIAL : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } int lineNum = getShort(iCode, pc + 1); name = strings[getShort(iCode, pc + 3)]; count = getShort(iCode, pc + 5); outArgs = getArgsArray(stack, sDbl, stackTop, count); stackTop -= count; rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.callSpecial( cx, lhs, rhs, outArgs, thisObj, scope, name, lineNum); pc += 6; instructionCount = cx.instructionCount; break; case TokenStream.CALL : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } cx.instructionCount = instructionCount; count = getShort(iCode, pc + 3); outArgs = getArgsArray(stack, sDbl, stackTop, count); stackTop -= count; rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); if (lhs == undefined) { i = getShort(iCode, pc + 1); if (i != -1) lhs = strings[i]; } Scriptable calleeScope = scope; if (theData.itsNeedsActivation) { calleeScope = ScriptableObject. getTopLevelScope(scope); } stack[stackTop] = ScriptRuntime.call(cx, lhs, rhs, outArgs, calleeScope); pc += 4; instructionCount = cx.instructionCount; break; case TokenStream.NEW : if (instructionThreshold != 0) { instructionCount += INVOCATION_COST; cx.instructionCount = instructionCount; instructionCount = -1; } count = getShort(iCode, pc + 3); outArgs = getArgsArray(stack, sDbl, stackTop, count); stackTop -= count; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); if (lhs == undefined && getShort(iCode, pc + 1) != -1) { // special code for better error message for call // to undefined lhs = strings[getShort(iCode, pc + 1)]; } stack[stackTop] = ScriptRuntime.newObject(cx, lhs, outArgs, scope); pc += 4; instructionCount = cx.instructionCount; break; case TokenStream.TYPEOF : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.typeof(lhs); break; case TokenStream.TYPEOFNAME : name = strings[getShort(iCode, pc + 1)]; stack[++stackTop] = ScriptRuntime.typeofName(scope, name); pc += 2; break; case TokenStream.STRING : stack[++stackTop] = strings[getShort(iCode, pc + 1)]; pc += 2; break; case SHORTNUMBER_ICODE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getShort(iCode, pc + 1); pc += 2; break; case INTNUMBER_ICODE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = getInt(iCode, pc + 1); pc += 4; break; case TokenStream.NUMBER : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = theData. itsDoubleTable[getShort(iCode, pc + 1)]; pc += 2; break; case TokenStream.NAME : stack[++stackTop] = ScriptRuntime.name (scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.NAMEINC : stack[++stackTop] = ScriptRuntime.postIncrement (scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.NAMEDEC : stack[++stackTop] = ScriptRuntime.postDecrement (scope, strings[getShort(iCode, pc + 1)]); pc += 2; break; case TokenStream.SETVAR : slot = (iCode[++pc] & 0xFF); stack[VAR_SHFT + slot] = stack[stackTop]; sDbl[VAR_SHFT + slot] = sDbl[stackTop]; break; case TokenStream.GETVAR : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; break; case TokenStream.VARINC : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) + 1.0; break; case TokenStream.VARDEC : slot = (iCode[++pc] & 0xFF); ++stackTop; stack[stackTop] = stack[VAR_SHFT + slot]; sDbl[stackTop] = sDbl[VAR_SHFT + slot]; stack[VAR_SHFT + slot] = DBL_MRK; sDbl[VAR_SHFT + slot] = stack_double(stack, sDbl, stackTop) - 1.0; break; case TokenStream.ZERO : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 0; break; case TokenStream.ONE : ++stackTop; stack[stackTop] = DBL_MRK; sDbl[stackTop] = 1; break; case TokenStream.NULL : stack[++stackTop] = null; break; case TokenStream.THIS : stack[++stackTop] = thisObj; break; case TokenStream.THISFN : stack[++stackTop] = fnOrScript; break; case TokenStream.FALSE : stack[++stackTop] = Boolean.FALSE; break; case TokenStream.TRUE : stack[++stackTop] = Boolean.TRUE; break; case TokenStream.UNDEFINED : stack[++stackTop] = Undefined.instance; break; case TokenStream.THROW : result = stack[stackTop]; if (result == DBL_MRK) result = doubleWrap(sDbl[stackTop]); --stackTop; throw new JavaScriptException(result); case TokenStream.JTHROW : result = stack[stackTop]; // No need to check for DBL_MRK: result is Exception --stackTop; if (result instanceof JavaScriptException) throw (JavaScriptException)result; else throw (RuntimeException)result; case TokenStream.ENTERWITH : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; scope = ScriptRuntime.enterWith(lhs, scope); break; case TokenStream.LEAVEWITH : scope = ScriptRuntime.leaveWith(scope); break; case TokenStream.NEWSCOPE : stack[++stackTop] = ScriptRuntime.newScope(); break; case TokenStream.ENUMINIT : slot = (iCode[++pc] & 0xFF); lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); --stackTop; stack[LOCAL_SHFT + slot] = ScriptRuntime.initEnum(lhs, scope); break; case TokenStream.ENUMNEXT : slot = (iCode[++pc] & 0xFF); val = stack[LOCAL_SHFT + slot]; ++stackTop; stack[stackTop] = ScriptRuntime. nextEnum((Enumeration)val); break; case TokenStream.GETPROTO : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getProto(lhs, scope); break; case TokenStream.GETPARENT : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs); break; case TokenStream.GETSCOPEPARENT : lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.getParent(lhs, scope); break; case TokenStream.SETPROTO : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setProto(lhs, rhs, scope); break; case TokenStream.SETPARENT : rhs = stack[stackTop]; if (rhs == DBL_MRK) rhs = doubleWrap(sDbl[stackTop]); --stackTop; lhs = stack[stackTop]; if (lhs == DBL_MRK) lhs = doubleWrap(sDbl[stackTop]); stack[stackTop] = ScriptRuntime.setParent(lhs, rhs, scope); break; case TokenStream.SCOPE : stack[++stackTop] = scope; break; case TokenStream.CLOSURE : i = getShort(iCode, pc + 1); stack[++stackTop] = new InterpretedFunction( theData.itsNestedFunctions[i], scope, cx); createFunctionObject( (InterpretedFunction)stack[stackTop], scope); pc += 2; break; case TokenStream.OBJECT : i = getShort(iCode, pc + 1); stack[++stackTop] = theData.itsRegExpLiterals[i]; pc += 2; break; case SOURCEFILE_ICODE : cx.interpreterSourceFile = theData.itsSourceFile; break; case LINE_ICODE : case BREAKPOINT_ICODE : i = getShort(iCode, pc + 1); cx.interpreterLine = i; if (frame != null) frame.setLineNumber(i); if ((iCode[pc] & 0xff) == BREAKPOINT_ICODE || cx.inLineStepMode) { cx.getDebuggableEngine(). getDebugger().handleBreakpointHit(cx); } pc += 2; break; default : dumpICode(theData); throw new RuntimeException("Unknown icode : " + (iCode[pc] & 0xff) + " @ pc : " + pc); } pc++; } catch (Throwable ex) { if (instructionThreshold != 0) { if (instructionCount < 0) { // throw during function call instructionCount = cx.instructionCount; } else { // throw during any other operation instructionCount += pc - pcPrevBranch; cx.instructionCount = instructionCount; } } final int SCRIPT_THROW = 0, ECMA = 1, RUNTIME = 2, OTHER = 3; int exType; Object errObj; // Object seen by catch for (;;) { if (ex instanceof JavaScriptException) { errObj = ScriptRuntime. unwrapJavaScriptException((JavaScriptException)ex); exType = SCRIPT_THROW; } else if (ex instanceof EcmaError) { // an offical ECMA error object, errObj = ((EcmaError)ex).getErrorObject(); exType = ECMA; } else if (ex instanceof WrappedException) { Object w = ((WrappedException) ex).unwrap(); if (w instanceof Throwable) { ex = (Throwable) w; continue; } errObj = ex; exType = RUNTIME; } else if (ex instanceof RuntimeException) { errObj = ex; exType = RUNTIME; } else { errObj = ex; // Error instance exType = OTHER; } break; } if (exType != OTHER && cx.debugger != null) { cx.debugger.handleExceptionThrown(cx, errObj); } boolean rethrow = true; if (exType != OTHER && tryStackTop > 0) { --tryStackTop; if (exType == SCRIPT_THROW || exType == ECMA) { // Check for catch only for // JavaScriptException and EcmaError pc = tryStack[tryStackTop * 2]; if (pc != 0) { // Has catch block rethrow = false; } } if (rethrow) { pc = tryStack[tryStackTop * 2 + 1]; if (pc != 0) { // has finally block rethrow = false; errObj = ex; } } } if (rethrow) { if (frame != null) cx.popFrame(); if (exType == SCRIPT_THROW) throw (JavaScriptException)ex; if (exType == ECMA || exType == RUNTIME) throw (RuntimeException)ex; throw (Error)ex; } // We caught an exception, // Notify instruction observer if necessary // and point pcPrevBranch to start of catch/finally block if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { // Note: this can throw Error cx.observeInstructionCount(instructionCount); instructionCount = 0; } } pcPrevBranch = pc; // prepare stack and restore this function's security domain. scope = (Scriptable)stack[TRY_SCOPE_SHFT + tryStackTop]; stackTop = 0; stack[0] = errObj; } } if (frame != null) cx.popFrame(); if (instructionThreshold != 0) { if (instructionCount > instructionThreshold) { cx.observeInstructionCount(instructionCount); instructionCount = 0; } cx.instructionCount = instructionCount; } return result; }
19042 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19042/7ab2eb958bc5d5b8575262b37554c7e600ccf6e9/Interpreter.java/buggy/src/org/mozilla/javascript/Interpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1033, 10634, 12, 1042, 9494, 16, 22780, 2146, 16, 4766, 282, 22780, 15261, 16, 1033, 8526, 833, 16, 4766, 282, 16717, 2083, 2295, 1162, 3651, 16, 4766, 282, 5294, 11599, 751, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1033, 10634, 12, 1042, 9494, 16, 22780, 2146, 16, 4766, 282, 22780, 15261, 16, 1033, 8526, 833, 16, 4766, 282, 16717, 2083, 2295, 1162, 3651, 16, 4766, 282, 5294, 11599, 751, 3...
request.setAttribute("editor_button", new Boolean(true));
request.setAttribute("admin_button", new Boolean(true));
private void collectionHome(Context context, HttpServletRequest request, HttpServletResponse response, Community community, Collection collection) throws ServletException, IOException, SQLException, AuthorizeException { // Handle click on a browse or search button if (!handleButton(request, response, collection.getHandle())) { // Will need to know whether to commit to DB boolean updated = false; // No search or browse button pressed, check for if (request.getParameter("submit_subscribe") != null) { // Subscribe button pressed. if (context.getCurrentUser() == null) { // Only registered can subscribe Authenticate.startAuthentication(context, request, response); return; } else { Subscribe.subscribe(context, context.getCurrentUser(), collection); updated = true; } } else if (request.getParameter("submit_unsubscribe") != null) { Subscribe.unsubscribe(context, context.getCurrentUser(), collection); updated = true; } // display collection home page log.info(LogManager.getHeader(context, "view_collection", "collection_id=" + collection.getID())); // Find the 5 last submitted items BrowseScope scope = new BrowseScope(context); scope.setScope(collection); scope.setTotal(5); List items = Browse.getLastSubmitted(scope); // Get titles and URLs to item pages String[] itemTitles = getItemTitles(items); String[] itemLinks = getItemURLs(context, items); // Is the user logged in/subscribed? EPerson e = context.getCurrentUser(); boolean subscribed = false; if (e != null) { subscribed = Subscribe.isSubscribed(context, e, collection); // can they admin this collection? if(AuthorizeManager.authorizeActionBoolean(context, collection, Constants.WRITE)) { // set a variable to create an edit button request.setAttribute("admin_button", new Boolean(true)); } // is the user a COLLECTION_EDITOR? if(AuthorizeManager.authorizeActionBoolean(context, collection, Constants.COLLECTION_ADMIN)) { request.setAttribute("editor_button", new Boolean(true)); // give them a button to manage submitter list // what group is the submitter? Group group = collection.getSubmitters(); if( group != null ) { request.setAttribute("submitters", group); } } } // Forward to collection home page request.setAttribute("last.submitted.titles", itemTitles); request.setAttribute("last.submitted.urls", itemLinks); request.setAttribute("collection", collection); request.setAttribute("community", community); request.setAttribute("logged.in", new Boolean(e != null)); request.setAttribute("subscribed", new Boolean(subscribed)); JSPManager.showJSP(request, response, "/collection-home.jsp"); if (updated) { context.complete(); } } }
47292 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47292/44d920f6673301feb8b329391378fb326189f9de/HandleServlet.java/buggy/dspace/src/org/dspace/app/webui/servlet/HandleServlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1849, 8684, 12, 1042, 819, 16, 3639, 9984, 590, 16, 3639, 12446, 766, 16, 3639, 16854, 13352, 19833, 16, 3639, 2200, 1849, 13, 3639, 1216, 16517, 16, 1860, 16, 6483, 16, 23859,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1849, 8684, 12, 1042, 819, 16, 3639, 9984, 590, 16, 3639, 12446, 766, 16, 3639, 16854, 13352, 19833, 16, 3639, 2200, 1849, 13, 3639, 1216, 16517, 16, 1860, 16, 6483, 16, 23859,...
try { int count = 1; ResultSet rset; PreparedStatement stmt = conn.prepareStatement( select );
ResultSet rset = null; PreparedStatement selectStatement = null; PreparedStatement insertStatement = null; try { int count = 1; selectStatement = conn.prepareStatement( select );
public void createRelation( Connection conn, Object leftValue, Object rightValue ) throws PersistenceException { try { int count = 1; ResultSet rset; PreparedStatement stmt = conn.prepareStatement( select ); if ( leftType.length > 1 ) { Complex left = (Complex) leftValue; for ( int i=0; i < left.size(); i++ ) { stmt.setObject( count, idToSQL( i, left.get(i)), leftType[i] ); count++; } } else { stmt.setObject( count, idToSQL( 0, leftValue ), leftType[0] ); count++; } if ( rightType.length > 1 ) { Complex right = (Complex) rightValue; for ( int i=0; i < right.size(); i++ ) { stmt.setObject( count, ridToSQL( i, right.get(i) ), rightType[i] ); count++; } } else { stmt.setObject( count, ridToSQL( 0, rightValue ), rightType[0] ); } count = 1; rset = stmt.executeQuery(); if ( ! rset.next() ) { stmt = conn.prepareStatement( insert ); if ( leftType.length > 1 ) { Complex left = (Complex) leftValue; for ( int i=0; i < left.size(); i++ ) { stmt.setObject( count, idToSQL( i, left.get(i)), leftType[i] ); count++; } } else { stmt.setObject( count, idToSQL( 0, leftValue ), leftType[0] ); count++; } if ( rightType.length > 1 ) { Complex right = (Complex) rightValue; for ( int i=0; i < right.size(); i++ ) { stmt.setObject( count, ridToSQL( i, right.get(i) ), rightType[i] ); count++; } } else { stmt.setObject( count, ridToSQL( 0, rightValue ), rightType[0] ); } int r = stmt.executeUpdate(); } } catch ( SQLException e ) { e.printStackTrace(); throw new PersistenceException( e.toString() ); } }
3614 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3614/5ab18c9a261b38337f7895ceb954f0beffd8e865/SQLRelationLoader.java/clean/trunk/castor-2002/castor/src/main/org/exolab/castor/persist/SQLRelationLoader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 752, 3963, 12, 4050, 1487, 16, 1033, 2002, 620, 16, 1033, 2145, 620, 262, 5411, 1216, 13381, 503, 288, 540, 202, 202, 698, 288, 1082, 202, 474, 1056, 273, 404, 31, 1082, 202,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 752, 3963, 12, 4050, 1487, 16, 1033, 2002, 620, 16, 1033, 2145, 620, 262, 5411, 1216, 13381, 503, 288, 540, 202, 202, 698, 288, 1082, 202, 474, 1056, 273, 404, 31, 1082, 202,...
WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_CUT_EDIT_DISABLED));
sharedImages.getImageDescriptor(ISharedImages.IMG_TOOL_CUT_DISABLED));
private void makeActions() { // The actions in jface do not have menu vs. enable, vs. disable vs. color // There are actions in here being passed the workbench - problem // Get services for notification. IPartService partService = getWindow().getPartService(); WWinKeyBindingService keyBindingService = getWindow().getKeyBindingService(); // Many actions need the workbench. IWorkbench workbench = getWindow().getWorkbench(); newWizardAction = new NewWizardAction(); // images for this action are set in its constructor keyBindingService.registerGlobalAction(newWizardAction); newWizardDropDownAction = new NewWizardDropDownAction(workbench, newWizardAction); newWizardDropDownAction.setImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_NEW_WIZ)); newWizardDropDownAction.setHoverImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_NEW_WIZ_HOVER)); newWizardDropDownAction.setDisabledImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_NEW_WIZ_DISABLED)); importResourcesAction = new ImportResourcesAction(workbench); importResourcesAction.setImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_IMPORT_WIZ)); importResourcesAction.setHoverImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_IMPORT_WIZ_HOVER)); importResourcesAction.setDisabledImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_IMPORT_WIZ_DISABLED)); exportResourcesAction = new ExportResourcesAction(workbench, WorkbenchMessages.getString("ExportResourcesAction.fileMenuText")); //$NON-NLS-1$ exportResourcesAction.setImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_EXPORT_WIZ)); exportResourcesAction.setHoverImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_EXPORT_WIZ_HOVER)); exportResourcesAction.setDisabledImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_EXPORT_WIZ_DISABLED)); rebuildAllAction = new GlobalBuildAction(window, IncrementalProjectBuilder.FULL_BUILD); rebuildAllAction.setActionDefinitionId(rebuildAllActionDefId); keyBindingService.registerGlobalAction(rebuildAllAction); buildAllAction = new GlobalBuildAction( window, IncrementalProjectBuilder.INCREMENTAL_BUILD); buildAllAction.setImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_BUILD_EXEC)); buildAllAction.setHoverImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_BUILD_EXEC_HOVER)); buildAllAction.setDisabledImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_BUILD_EXEC_DISABLED)); buildAllAction.setActionDefinitionId(buildAllActionDefId); keyBindingService.registerGlobalAction(buildAllAction); saveAction = new SaveAction(window); saveAction.setImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_SAVE_EDIT)); saveAction.setHoverImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_SAVE_EDIT_HOVER)); saveAction.setDisabledImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_SAVE_EDIT_DISABLED)); partService.addPartListener(saveAction); saveAction.setActionDefinitionId(saveActionDefId); keyBindingService.registerGlobalAction(saveAction); saveAsAction = new SaveAsAction(window); saveAsAction.setImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_SAVEAS_EDIT)); saveAsAction.setHoverImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_SAVEAS_EDIT_HOVER)); saveAsAction.setDisabledImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_SAVEAS_EDIT_DISABLED)); partService.addPartListener(saveAsAction); saveAllAction = new SaveAllAction(window); saveAllAction.setImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_SAVEALL_EDIT)); saveAllAction.setHoverImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_SAVEALL_EDIT_HOVER)); saveAllAction.setDisabledImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_SAVEALL_EDIT_DISABLED)); partService.addPartListener(saveAllAction); saveAllAction.setActionDefinitionId(saveAllActionDefId); keyBindingService.registerGlobalAction(saveAllAction); undoAction = createGlobalAction(IWorkbenchActionConstants.UNDO, "edit", true); //$NON-NLS-1$ undoAction.setImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_UNDO_EDIT)); undoAction.setHoverImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_UNDO_EDIT_HOVER)); undoAction.setDisabledImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_UNDO_EDIT_DISABLED)); redoAction = createGlobalAction(IWorkbenchActionConstants.REDO, "edit", true); //$NON-NLS-1$ redoAction.setImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_REDO_EDIT)); redoAction.setHoverImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_REDO_EDIT_HOVER)); redoAction.setDisabledImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_REDO_EDIT_DISABLED)); cutAction = createGlobalAction(IWorkbenchActionConstants.CUT, "edit", false); //$NON-NLS-1$ cutAction.setImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_CUT_EDIT)); cutAction.setHoverImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_CUT_EDIT_HOVER)); cutAction.setDisabledImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_CUT_EDIT_DISABLED)); copyAction = createGlobalAction(IWorkbenchActionConstants.COPY, "edit", false); //$NON-NLS-1$ copyAction.setImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_COPY_EDIT)); copyAction.setHoverImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_COPY_EDIT_HOVER)); copyAction.setDisabledImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_COPY_EDIT_DISABLED)); pasteAction = createGlobalAction(IWorkbenchActionConstants.PASTE, "edit", false); //$NON-NLS-1$ pasteAction.setImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_PASTE_EDIT)); pasteAction.setHoverImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_PASTE_EDIT_HOVER)); pasteAction.setDisabledImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_PASTE_EDIT_DISABLED)); printAction = createGlobalAction(IWorkbenchActionConstants.PRINT, "file", false); //$NON-NLS-1$ printAction.setImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_PRINT_EDIT)); printAction.setHoverImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_PRINT_EDIT_HOVER)); printAction.setDisabledImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_PRINT_EDIT_DISABLED)); selectAllAction = createGlobalAction(IWorkbenchActionConstants.SELECT_ALL, "edit", false); //$NON-NLS-1$ findAction = createGlobalAction(IWorkbenchActionConstants.FIND, "findReplace", "edit", "findReplace", false); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ // Find's images are commented out due to a conflict with Search. // See bug 16412. // findAction.setImageDescriptor(WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_CTOOL_SEARCH_SRC)); // findAction.setHoverImageDescriptor(WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_CTOOL_SEARCH_SRC_HOVER)); // findAction.setDisabledImageDescriptor(WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_CTOOL_SEARCH_SRC_DISABLED)); closeAction = new CloseEditorAction(window); partService.addPartListener(closeAction); closeAction.setActionDefinitionId(closeActionDefId); keyBindingService.registerGlobalAction(closeAction); closeAllAction = new CloseAllAction(window); partService.addPartListener(closeAllAction); closeAllAction.setActionDefinitionId(closeAllActionDefId); keyBindingService.registerGlobalAction(closeAllAction); closeAllSavedAction = new CloseAllSavedAction(window); partService.addPartListener(closeAllSavedAction); closeAllSavedAction.setActionDefinitionId(closeAllSavedActionDefId); keyBindingService.registerGlobalAction(closeAllSavedAction); pinEditorAction = new PinEditorAction(window); partService.addPartListener(pinEditorAction); pinEditorAction.setImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_PIN_EDITOR)); pinEditorAction.setHoverImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_PIN_EDITOR_HOVER)); pinEditorAction.setDisabledImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_PIN_EDITOR_DISABLED)); aboutAction = new AboutAction(window); aboutAction.setImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_OBJS_DEFAULT_PROD)); openPreferencesAction = new OpenPreferencesAction(window); addBookmarkAction = createGlobalAction(IWorkbenchActionConstants.BOOKMARK, "addBookMark", "edit", "addBookmark", false); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ addTaskAction = createGlobalAction(IWorkbenchActionConstants.ADD_TASK, "edit", false); //$NON-NLS-1$ showInAction = new WorkbenchShowInAction(window); partService.addPartListener(showInAction); showInAction.setActionDefinitionId(showInActionDefId); keyBindingService.registerGlobalAction(showInAction); // can't use createGlobalAction convenience since deleteAction is not registered with the key binding service deleteAction = new RetargetAction(IWorkbenchActionConstants.DELETE, WorkbenchMessages.getString("Workbench.delete")); //$NON-NLS-1$ deleteAction.setToolTipText(WorkbenchMessages.getString("Workbench.deleteToolTip")); //$NON-NLS-1$ deleteAction.setImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_DELETE_EDIT)); deleteAction.setHoverImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_DELETE_EDIT_HOVER)); deleteAction.setDisabledImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_DELETE_EDIT_DISABLED)); deleteAction.enableAccelerator(false); WorkbenchHelp.setHelp( deleteAction, IHelpContextIds.DELETE_RETARGET_ACTION); partService.addPartListener(deleteAction); deleteAction.setActionDefinitionId(deleteActionDefId); // don't register the delete action with the key binding service. // doing so would break cell editors that listen for keyPressed SWT // events. //keyBindingService.registerGlobalAction(deleteAction); AboutInfo[] infos = ((Workbench) workbench).getConfigurationInfo().getFeaturesInfo(); // See if a welcome page is specified for (int i = 0; i < infos.length; i++) { if (infos[i].getWelcomePageURL() != null) { quickStartAction = new QuickStartAction(workbench); break; } } // See if a tips and tricks page is specified for (int i = 0; i < infos.length; i++) { if (infos[i].getTipsAndTricksHref() != null) { tipsAndTricksAction = new TipsAndTricksAction(workbench); break; } } // Actions for invisible accelerators showViewMenuAction = new ShowViewMenuAction(window); showViewMenuAction.setActionDefinitionId(showViewMenuActionDefId); keyBindingService.registerGlobalAction(showViewMenuAction); showPartPaneMenuAction = new ShowPartPaneMenuAction(window); showPartPaneMenuAction.setActionDefinitionId( showPartPaneMenuActionDefId); keyBindingService.registerGlobalAction(showPartPaneMenuAction); nextEditorAction = new CycleEditorAction(window, true); nextEditorAction.setActionDefinitionId(nextEditorActionDefId); keyBindingService.registerGlobalAction(nextEditorAction); prevEditorAction = new CycleEditorAction(window, false); prevEditorAction.setActionDefinitionId(prevEditorActionDefId); keyBindingService.registerGlobalAction(prevEditorAction); nextPartAction = new CyclePartAction(window, true); nextPartAction.setActionDefinitionId(nextPartActionDefId); keyBindingService.registerGlobalAction(nextPartAction); prevPartAction = new CyclePartAction(window, false); prevPartAction.setActionDefinitionId(prevPartActionDefId); keyBindingService.registerGlobalAction(prevPartAction); nextPerspectiveAction = new CyclePerspectiveAction(window, true); nextPerspectiveAction.setActionDefinitionId(nextPerspectiveActionDefId); keyBindingService.registerGlobalAction(nextPerspectiveAction); prevPerspectiveAction = new CyclePerspectiveAction(window, false); prevPerspectiveAction.setActionDefinitionId(prevPerspectiveActionDefId); keyBindingService.registerGlobalAction(prevPerspectiveAction); activateEditorAction = new ActivateEditorAction(window); activateEditorAction.setActionDefinitionId(activateEditorActionDefId); keyBindingService.registerGlobalAction(activateEditorAction); workbenchEditorsAction = new WorkbenchEditorsAction(window); workbenchEditorsAction.setActionDefinitionId( workbenchEditorsActionDefId); keyBindingService.registerGlobalAction(workbenchEditorsAction); hideShowEditorAction = new ToggleEditorsVisibilityAction(window); savePerspectiveAction = new SavePerspectiveAction(window); editActionSetAction = new EditActionSetsAction(window); lockToolBarAction = new LockToolBarAction(window); resetPerspectiveAction = new ResetPerspectiveAction(window); closePerspAction = new ClosePerspectiveAction(window); closeAllPerspsAction = new CloseAllPerspectivesAction(window); //Must change/copy the image. It is using a local toolbar image and colored. backwardHistoryAction = new NavigationHistoryAction(window, false); backwardHistoryAction.setImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_BACKWARD_NAV)); backwardHistoryAction.setActionDefinitionId(backwardHistoryActionDefId); keyBindingService.registerGlobalAction(backwardHistoryAction); forwardHistoryAction = new NavigationHistoryAction(window, true); forwardHistoryAction.setImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_FORWARD_NAV)); forwardHistoryAction.setActionDefinitionId(forwardHistoryActionDefId); keyBindingService.registerGlobalAction(forwardHistoryAction); revertAction = createGlobalAction(IWorkbenchActionConstants.REVERT, "file", false); //$NON-NLS-1$ refreshAction = createGlobalAction(IWorkbenchActionConstants.REFRESH, "file", false); //$NON-NLS-1$ propertiesAction = createGlobalAction(IWorkbenchActionConstants.PROPERTIES, "file", false); //$NON-NLS-1$ moveAction = createGlobalAction(IWorkbenchActionConstants.MOVE, "edit", false); //$NON-NLS-1$ renameAction = createGlobalAction(IWorkbenchActionConstants.RENAME, "edit", false); //$NON-NLS-1$ goIntoAction = createGlobalAction(IWorkbenchActionConstants.GO_INTO, "navigate", false); //$NON-NLS-1$ backAction = createGlobalAction(IWorkbenchActionConstants.BACK, "navigate", true); //$NON-NLS-1$ forwardAction = createGlobalAction(IWorkbenchActionConstants.FORWARD, "navigate", true); //$NON-NLS-1$ upAction = createGlobalAction(IWorkbenchActionConstants.UP, "navigate", true); //$NON-NLS-1$ nextAction = createGlobalAction(IWorkbenchActionConstants.NEXT, "navigate", true); //$NON-NLS-1$ nextAction.setImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_NEXT_NAV)); previousAction = createGlobalAction(IWorkbenchActionConstants.PREVIOUS, "navigate", true); //$NON-NLS-1$ previousAction.setImageDescriptor( WorkbenchImages.getImageDescriptor( IWorkbenchGraphicConstants.IMG_CTOOL_PREVIOUS_NAV)); buildProjectAction = createGlobalAction(IWorkbenchActionConstants.BUILD_PROJECT, "project", false); //$NON-NLS-1$ rebuildProjectAction = createGlobalAction(IWorkbenchActionConstants.REBUILD_PROJECT, "project", false); //$NON-NLS-1$ openProjectAction = createGlobalAction(IWorkbenchActionConstants.OPEN_PROJECT, "project", false); //$NON-NLS-1$ closeProjectAction = createGlobalAction(IWorkbenchActionConstants.CLOSE_PROJECT, "project", false); //$NON-NLS-1$ }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/5468a1edd56cfcaa9d93679f82ede8fa030e37c7/WorkbenchActionBuilder.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchActionBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1221, 6100, 1435, 288, 202, 202, 759, 1021, 4209, 316, 525, 865, 741, 486, 1240, 3824, 6195, 18, 4237, 16, 6195, 18, 4056, 6195, 18, 2036, 202, 202, 759, 6149, 854, 4209...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1221, 6100, 1435, 288, 202, 202, 759, 1021, 4209, 316, 525, 865, 741, 486, 1240, 3824, 6195, 18, 4237, 16, 6195, 18, 4056, 6195, 18, 2036, 202, 202, 759, 6149, 854, 4209...
public TA_RetCode ATR( int startIdx, int endIdx, double inHigh[], double inLow[], double inClose[], int optInTimePeriod, MInteger outBegIdx, MInteger outNbElement, double outReal[] ){ TA_RetCode retCode; int outIdx, today, lookbackTotal; int nbATR; MInteger outBegIdx1 = new MInteger() ; MInteger outNbElement1 = new MInteger() ; double prevATR; double []tempBuffer ; double []prevATRTemp = new double[1]; ; if( startIdx < 0 ) return TA_RetCode. TA_OUT_OF_RANGE_START_INDEX; if( (endIdx < 0) || (endIdx < startIdx)) return TA_RetCode. TA_OUT_OF_RANGE_END_INDEX; if( (int)optInTimePeriod == ( Integer.MIN_VALUE ) ) optInTimePeriod = 14; else if( ((int)optInTimePeriod < 1) || ((int)optInTimePeriod > 100000) ) return TA_RetCode. TA_BAD_PARAM; outBegIdx.value = 0 ; outNbElement.value = 0 ; lookbackTotal = ATR_Lookback ( optInTimePeriod ); if( startIdx < lookbackTotal ) startIdx = lookbackTotal; if( startIdx > endIdx ) return TA_RetCode. TA_SUCCESS; if( optInTimePeriod <= 1 ) { return TRANGE ( startIdx, endIdx, inHigh, inLow, inClose, outBegIdx, outNbElement, outReal ); } tempBuffer = new double[lookbackTotal+(endIdx-startIdx)+1] ; retCode = TRANGE ( (startIdx-lookbackTotal+1), endIdx, inHigh, inLow, inClose, outBegIdx1 , outNbElement1 , tempBuffer ); if( retCode != TA_RetCode. TA_SUCCESS ) { ; return retCode; } retCode = INT_SMA ( optInTimePeriod-1, optInTimePeriod-1, tempBuffer, optInTimePeriod, outBegIdx1 , outNbElement1 , prevATRTemp ); if( retCode != TA_RetCode. TA_SUCCESS ) { ; return retCode; } prevATR = prevATRTemp[0]; today = optInTimePeriod; outIdx = (this.unstablePeriod[TA_FuncUnstId.TA_FUNC_UNST_ATR.ordinal()]) ; while( outIdx != 0 ) { prevATR *= optInTimePeriod - 1; prevATR += tempBuffer[today++]; prevATR /= optInTimePeriod; outIdx--; } outIdx = 1; outReal[0] = prevATR; nbATR = (endIdx - startIdx)+1; while( --nbATR != 0 ) { prevATR *= optInTimePeriod - 1; prevATR += tempBuffer[today++]; prevATR /= optInTimePeriod; outReal[outIdx++] = prevATR; } outBegIdx.value = startIdx; outNbElement.value = outIdx; ; return retCode;}
7231 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7231/1bccb7a13486c61b10e8ebdf0c938797539a3f3d/Core.java/clean/ta-lib/java/src/TA/Lib/Core.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 1071, 399, 37, 67, 7055, 1085, 432, 4349, 12, 509, 27108, 16, 509, 679, 4223, 16, 1645, 316, 8573, 63, 6487, 1645, 316, 10520, 63, 6487, 1645, 316, 4605, 63, 6487, 509, 2153, 382, 26540...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1071, 399, 37, 67, 7055, 1085, 432, 4349, 12, 509, 27108, 16, 509, 679, 4223, 16, 1645, 316, 8573, 63, 6487, 1645, 316, 10520, 63, 6487, 1645, 316, 4605, 63, 6487, 509, 2153, 382, 26540...
getLogSession().log(admin, admin.getCAId(), LogEntry.MODULE_CA, new java.util.Date(), null, null, LogEntry.EVENT_INFO_CERTPROFILE, "Renamed certificateprofile " + oldcertificateprofilename + " to " + newcertificateprofilename + ".");
getLogSession().log(admin, admin.getCaId(), LogEntry.MODULE_CA, new java.util.Date(), null, null, LogEntry.EVENT_INFO_CERTPROFILE, "Renamed certificateprofile " + oldcertificateprofilename + " to " + newcertificateprofilename + ".");
public void renameCertificateProfile(Admin admin, String oldcertificateprofilename, String newcertificateprofilename) throws CertificateProfileExistsException { if (isCertificateProfileNameFixed(oldcertificateprofilename) || isCertificateProfileNameFixed(newcertificateprofilename)) { getLogSession().log(admin, admin.getCAId(), LogEntry.MODULE_CA, new java.util.Date(), null, null, LogEntry.EVENT_ERROR_CERTPROFILE, "Error renaming certificateprofile " + oldcertificateprofilename + " to " + newcertificateprofilename + "."); throw new CertificateProfileExistsException("Cannot rename fixed profiles."); } try { certprofilehome.findByCertificateProfileName(newcertificateprofilename); getLogSession().log(admin, admin.getCAId(), LogEntry.MODULE_CA, new java.util.Date(), null, null, LogEntry.EVENT_ERROR_CERTPROFILE, "Error renaming certificateprofile " + oldcertificateprofilename + " to " + newcertificateprofilename + "."); throw new CertificateProfileExistsException(); } catch (FinderException e) { try { CertificateProfileDataLocal pdl = certprofilehome.findByCertificateProfileName(oldcertificateprofilename); pdl.setCertificateProfileName(newcertificateprofilename); getLogSession().log(admin, admin.getCAId(), LogEntry.MODULE_CA, new java.util.Date(), null, null, LogEntry.EVENT_INFO_CERTPROFILE, "Renamed certificateprofile " + oldcertificateprofilename + " to " + newcertificateprofilename + "."); } catch (FinderException f) { getLogSession().log(admin, admin.getCAId(), LogEntry.MODULE_CA, new java.util.Date(), null, null, LogEntry.EVENT_ERROR_CERTPROFILE, "Error renaming certificateprofile " + oldcertificateprofilename + " to " + newcertificateprofilename + "."); } } } // renameCertificateProfile
4109 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4109/50bbe437e3b16d7a1918bae2fa2d4269507e0f68/LocalCertificateStoreSessionBean.java/clean/src/java/se/anatom/ejbca/ca/store/LocalCertificateStoreSessionBean.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 6472, 4719, 4029, 12, 4446, 3981, 16, 514, 1592, 14108, 685, 3459, 16, 514, 394, 14108, 685, 3459, 13, 1216, 6660, 4029, 4002, 503, 288, 3639, 309, 261, 291, 4719, 4029, 461, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6472, 4719, 4029, 12, 4446, 3981, 16, 514, 1592, 14108, 685, 3459, 16, 514, 394, 14108, 685, 3459, 13, 1216, 6660, 4029, 4002, 503, 288, 3639, 309, 261, 291, 4719, 4029, 461, ...
return this._id;
return getPageId();
public int getNodeID() { return this._id; }
54061 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54061/fd62da35e127ecd0361a50f7fa70d858b7fb159d/PageTreeNode.java/buggy/src/java/com/idega/builder/business/PageTreeNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 509, 5973, 734, 1435, 288, 202, 202, 2463, 333, 6315, 350, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 509, 5973, 734, 1435, 288, 202, 202, 2463, 333, 6315, 350, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
HostSpecificationImpl hostSpec = (HostSpecificationImpl) result.getHost(); if (hostSpec != null) { BundleDescription[] hosts = hostSpec.getHosts(); if (hosts != null) { for (int i = 0; i < hosts.length; i++) ((BundleDescriptionImpl) hosts[i]).addDependency(result, false); } }
private BundleDescriptionImpl readBundleDescription(DataInputStream in) throws IOException { byte tag = readTag(in); if (tag == NULL) return null; if (tag == INDEX) return (BundleDescriptionImpl) getFromObjectTable(in.readInt()); // first read in non-lazy loaded data BundleDescriptionImpl result = new BundleDescriptionImpl(); addToObjectTable(result, in.readInt()); result.setBundleId(in.readLong()); readBaseDescription(result, in); result.setLazyDataOffset(in.readInt()); result.setLazyDataSize(in.readInt()); result.setStateBit(BundleDescriptionImpl.RESOLVED, in.readBoolean()); result.setStateBit(BundleDescriptionImpl.SINGLETON, in.readBoolean()); result.setStateBit(BundleDescriptionImpl.HAS_DYNAMICIMPORT, in.readBoolean()); result.setStateBit(BundleDescriptionImpl.ATTACH_FRAGMENTS, in.readBoolean()); result.setStateBit(BundleDescriptionImpl.DYNAMIC_FRAGMENTS, in.readBoolean()); result.setHost(readHostSpec(in)); // set the bundle dependencies from imports and requires and hosts. int numDeps = in.readInt(); if (numDeps > 0) { BundleDescription[] deps = new BundleDescription[numDeps]; for (int i = 0; i < numDeps; i++) deps[i] = readBundleDescription(in); result.addDependencies(deps, false); // no need to check dups; we already know there are none when we resolved (bug 152900) } // No need to set the dependencies between fragment and hosts; that was already done in the above loop (bug 152900) // the rest is lazy loaded data result.setFullyLoaded(false); return result; }
2516 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2516/c6a3f07e297d2fddf57772e250aa5d4370e1e60a/StateReader.java/clean/bundles/org.eclipse.osgi/resolver/src/org/eclipse/osgi/internal/resolver/StateReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 4893, 8615, 2828, 1479, 1990, 273, 261, 2594, 8615, 2828, 13, 563, 18, 588, 2594, 5621, 309, 261, 2564, 1990, 480, 446, 13, 288, 8539, 3291, 8526, 7206, 273, 1479, 1990, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 4893, 8615, 2828, 1479, 1990, 273, 261, 2594, 8615, 2828, 13, 563, 18, 588, 2594, 5621, 309, 261, 2564, 1990, 480, 446, 13, 288, 8539, 3291, 8526, 7206, 273, 1479, 1990, 18, ...
public boolean fromActual() { //TODO return true;}
13401 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13401/b1f2dddc68b4ce0181ca8ca1d2e261d450787564/SIBouquetImpl.java/buggy/trunk/mhp/java/org/dvb/si/SIBouquetImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6494, 2080, 11266, 1435, 95, 759, 6241, 2463, 3767, 31, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6494, 2080, 11266, 1435, 95, 759, 6241, 2463, 3767, 31, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
public UncaughtExceptionWindow(Throwable exception) { _exception = exception; this.setSize(600,400); this.setLocation(200,200); Insets ins = new Insets(20,20,20,20); // If we set this pane to be of type text/rtf, it wraps based on words // as opposed to based on characters. _stackTrace = new JTextArea(_getStackTraceString()); //_stackTrace.setPreferredSize(new Dimension(400, 250)); _stackTrace.setBackground(Color.gray.brighter()); _stackTrace.setMargin(ins); _exceptionInfo = new JTextArea(_getExceptionString()); _exceptionInfo.setBackground(Color.gray.brighter()); _exceptionInfo.setMargin(ins); //_exceptionInfo.setPreferredSize(new Dimension(300, 100)); // set text in _exceptionInfo JEditorPane //String exceptionString = _getExceptionString(); //_exceptionInfo.setText(exceptionString); _exceptionInfo.setEditable(false); // set text in _stackTrace JEditorPane //String stackTraceString = _getStackTraceString(); //_stackTrace.setText(stackTraceString); _stackTrace.setEditable(false); _okButton = new JButton(_okAction); _okPanel = new JPanel(new BorderLayout()); _okPanel.add(_okButton, BorderLayout.SOUTH); _okPanel.setBackground(Color.gray.brighter()); _topPanel = new JPanel(new BorderLayout()); _topPanel.add(_exceptionInfo, BorderLayout.CENTER); _topPanel.add(_okPanel, BorderLayout.EAST); _stackTraceScroll = new JScrollPane(_stackTrace, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS); /*this.getContentPane().setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); this.getContentPane().add(_topPanel); this.getContentPane().add(Box.createGlue()); this.getContentPane().add(_stackTraceScroll);*/ this.getContentPane().setLayout(new BorderLayout()); this.getContentPane().add(_topPanel, BorderLayout.NORTH); this.getContentPane().add(_stackTraceScroll, BorderLayout.CENTER); this.setTitle("Uncaught Exception"); this.setVisible(true); //this.pack(); }
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/796b0e638d56097e8f7b988621a4d11f743acc52/UncaughtExceptionWindow.java/buggy/drjava/src/edu/rice/cs/drjava/ui/UncaughtExceptionWindow.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1351, 27611, 503, 3829, 12, 15155, 1520, 13, 288, 565, 389, 4064, 273, 1520, 31, 3639, 333, 18, 542, 1225, 12, 28133, 16, 16010, 1769, 565, 333, 18, 542, 2735, 12, 6976, 16, 6976,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1351, 27611, 503, 3829, 12, 15155, 1520, 13, 288, 565, 389, 4064, 273, 1520, 31, 3639, 333, 18, 542, 1225, 12, 28133, 16, 16010, 1769, 565, 333, 18, 542, 2735, 12, 6976, 16, 6976,...
Object[] msgArgs = { "With" }; throw Context.reportRuntimeError( Context.getMessage("msg.cant.call.indirect", msgArgs));
throw Context.reportRuntimeError1("msg.cant.call.indirect", "With");
public static Object jsConstructor(Context cx, Object[] args, Function ctorObj, boolean inNewExpr) { Object[] msgArgs = { "With" }; throw Context.reportRuntimeError( Context.getMessage("msg.cant.call.indirect", msgArgs)); }
12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/e737c6d867e82d4ba7fd00e7e388c9c8da824ff0/NativeWith.java/buggy/js/rhino/org/mozilla/javascript/NativeWith.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1033, 3828, 6293, 12, 1042, 9494, 16, 1033, 8526, 833, 16, 4766, 3639, 4284, 15120, 2675, 16, 1250, 316, 1908, 4742, 13, 565, 288, 3639, 1033, 8526, 1234, 2615, 273, 288, 315, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1033, 3828, 6293, 12, 1042, 9494, 16, 1033, 8526, 833, 16, 4766, 3639, 4284, 15120, 2675, 16, 1250, 316, 1908, 4742, 13, 565, 288, 3639, 1033, 8526, 1234, 2615, 273, 288, 315, ...
final ChannelTransport transport = (ChannelTransport)userData; final WritePossibleEvent event = new WritePossibleEvent( transport );
final ChannelTransport transport = (ChannelTransport) userData; final WritePossibleEvent event = new WritePossibleEvent( transport );
private void handleSelectorEvent( final SelectionKey key ) { if( !key.isValid() ) { return; } final Object userData = key.attachment(); if( key.isAcceptable() ) { final ServerSocketChannel channel = (ServerSocketChannel)key.channel(); final AcceptPossibleEvent event = new AcceptPossibleEvent( channel, userData ); getJoin().addEvent( event ); } if( key.isWritable() ) { final ChannelTransport transport = (ChannelTransport)userData; final WritePossibleEvent event = new WritePossibleEvent( transport ); getJoin().addEvent( event ); } if( key.isReadable() ) { final ChannelTransport transport = (ChannelTransport)userData; final ReadPossibleEvent event = new ReadPossibleEvent( transport ); getJoin().addEvent( event ); } if( key.isConnectable() ) { final ConnectPossibleEvent event = new ConnectPossibleEvent( key.channel(), userData, key ); getJoin().addEvent( event ); } }
2797 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2797/e90bec6d96f2546e1cceec51803193017a799453/SelectableChannelEventSource.java/clean/spice/sandbox/netevent/src/java/org/codehaus/spice/netevent/source/SelectableChannelEventSource.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1640, 4320, 1133, 12, 727, 12977, 653, 498, 262, 565, 288, 3639, 309, 12, 401, 856, 18, 26810, 1435, 262, 3639, 288, 5411, 327, 31, 3639, 289, 3639, 727, 1033, 13530, 273, 49...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1640, 4320, 1133, 12, 727, 12977, 653, 498, 262, 565, 288, 3639, 309, 12, 401, 856, 18, 26810, 1435, 262, 3639, 288, 5411, 327, 31, 3639, 289, 3639, 727, 1033, 13530, 273, 49...
((int[]) array[col])[row] = bp.getInt(length);
((int[]) array[col])[row] = bp.isWhite(length) ? 0 : bp.getInt(length);
private boolean extractElement(int offset, int length, Object[] array, int col, int row, String nullFld) throws FitsException { bp.setOffset(offset); if (nullFld != null) { String s = bp.getString(length); if (s.trim().equals(nullFld)) { return false; } bp.skip(-length); } try { if (array[col] instanceof String[]) { ((String[]) array[col])[row] = bp.getString(length); } else if (array[col] instanceof int[]) { ((int[]) array[col])[row] = bp.getInt(length); } else if (array[col] instanceof float[]) { ((float[]) array[col])[row] = bp.getFloat(length); } else if (array[col] instanceof double[]) { ((double[]) array[col])[row] = bp.getDouble(length); } else if (array[col] instanceof long[]) { ((long[]) array[col])[row] = bp.getLong(length); } else { throw new FitsException("Invalid type for ASCII table conversion:"+array[col]); } } catch (FormatException e) { throw new FitsException("Error parsing data at row,col:"+row+","+col +"=\""+bp.getString(length)+"\" "+e); } return true; }
48494 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48494/ae5b327adcf61fcd9017d666380f971d09a692bd/AsciiTable.java/buggy/tamfits/src/main/nom/tam/fits/AsciiTable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 2608, 1046, 12, 474, 1384, 16, 509, 769, 16, 1033, 8526, 526, 16, 4697, 6647, 509, 645, 16, 509, 1027, 16, 514, 446, 7667, 13, 4766, 565, 1216, 478, 1282, 503, 288, 202, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 2608, 1046, 12, 474, 1384, 16, 509, 769, 16, 1033, 8526, 526, 16, 4697, 6647, 509, 645, 16, 509, 1027, 16, 514, 446, 7667, 13, 4766, 565, 1216, 478, 1282, 503, 288, 202, 2...
public String readBuffer() {
public synchronized String readBuffer() {
public String readBuffer() { String buf = fBuffer.toString(); fBuffer.setLength(0); return buf; }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/c35aafd192c50c0c2027a0c061b4d3255bc9138e/ConsoleOutputStream.java/clean/core/org.eclipse.cdt.core/src/org/eclipse/cdt/core/ConsoleOutputStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 31404, 1435, 288, 202, 202, 780, 1681, 273, 284, 1892, 18, 10492, 5621, 202, 202, 74, 1892, 18, 542, 1782, 12, 20, 1769, 202, 202, 2463, 1681, 31, 202, 97, 2, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 31404, 1435, 288, 202, 202, 780, 1681, 273, 284, 1892, 18, 10492, 5621, 202, 202, 74, 1892, 18, 542, 1782, 12, 20, 1769, 202, 202, 2463, 1681, 31, 202, 97, 2, -100, -10...
public void loadXML(Node entrynode, ArrayList databases)
public void loadXML(Node entrynode, ArrayList databases, Repository rep)
public void loadXML(Node entrynode, ArrayList databases) throws KettleXMLException { try { super.loadXML(entrynode, databases); filename = XMLHandler.getTagValue(entrynode, "filename"); } catch(KettleXMLException xe) { throw new KettleXMLException("Unable to load file exists job entry from XML node", xe); } }
58146 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58146/a10300423081c59331a9044d0be27be380c3d9f9/JobEntryFileExists.java/clean/kettle/src/be/ibridge/kettle/job/entry/fileexists/JobEntryFileExists.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1262, 4201, 12, 907, 1241, 2159, 16, 2407, 16358, 13, 202, 202, 15069, 1475, 278, 5929, 4201, 503, 202, 95, 202, 202, 698, 202, 202, 95, 1082, 202, 9565, 18, 945, 4201, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1262, 4201, 12, 907, 1241, 2159, 16, 2407, 16358, 13, 202, 202, 15069, 1475, 278, 5929, 4201, 503, 202, 95, 202, 202, 698, 202, 202, 95, 1082, 202, 9565, 18, 945, 4201, ...
postFetchProtocolErrorMessage = new ProtocolErrorMessage(ProtocolErrorMessage.COULD_NOT_WRITE_FILE, false, null, identifier);
postFetchProtocolErrorMessage = new ProtocolErrorMessage(ProtocolErrorMessage.COULD_NOT_WRITE_FILE, false, null, identifier, global);
public void onSuccess(FetchResult result, ClientGetter state) { Logger.minor(this, "Succeeded: "+identifier); Bucket data = result.asBucket(); if(returnBucket != data) Logger.error(this, "returnBucket = "+returnBucket+" but onSuccess() data = "+data); boolean dontFree = false; // FIXME I don't think this is a problem in this case...? (Disk write while locked..) AllDataMessage adm = null; synchronized(this) { if(succeeded) { Logger.error(this, "onSuccess called twice for "+this+" ("+identifier+ ')'); return; // We might be called twice; ignore it if so. } if(returnType == ClientGetMessage.RETURN_TYPE_DIRECT) { // Send all the data at once // FIXME there should be other options adm = new AllDataMessage(data, identifier); if(persistenceType == PERSIST_CONNECTION) adm.setFreeOnSent(); dontFree = true; /* * } else if(returnType == ClientGetMessage.RETURN_TYPE_NONE) { // Do nothing */ } else if(returnType == ClientGetMessage.RETURN_TYPE_DISK) { // Write to temp file, then rename over filename FileOutputStream fos = null; boolean closed = false; try { if(data != returnBucket) { fos = new FileOutputStream(tempFile); BucketTools.copyTo(data, fos, data.size()); if(fos != null) { fos.close(); // must be closed before rename closed = true; } } if(!tempFile.renameTo(targetFile)) { postFetchProtocolErrorMessage = new ProtocolErrorMessage(ProtocolErrorMessage.COULD_NOT_RENAME_FILE, false, null, identifier); // Don't delete temp file, user might want it. } returnBucket = new FileBucket(targetFile, false, false, false, false); } catch (FileNotFoundException e) { postFetchProtocolErrorMessage = new ProtocolErrorMessage(ProtocolErrorMessage.COULD_NOT_WRITE_FILE, false, null, identifier); } catch (IOException e) { postFetchProtocolErrorMessage = new ProtocolErrorMessage(ProtocolErrorMessage.COULD_NOT_WRITE_FILE, false, null, identifier); } try { if((fos != null) && !closed) fos.close(); } catch (IOException e) { Logger.error(this, "Caught "+e+" closing file "+tempFile, e); } } progressPending = null; this.foundDataLength = data.size(); this.foundDataMimeType = result.getMimeType(); this.succeeded = true; finished = true; } trySendDataFoundOrGetFailed(null); if(adm != null) trySendAllDataMessage(adm, null); if(!dontFree) data.free(); finish(); }
56348 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56348/bbb3c23ec38ea1c7abb48040a17f5fc7932248bc/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, 3328, 18, 17364, 12, 2211, 16, 315, 30500, 30, 13773, 5644, 1769, 202, 202, 4103, 501, 273, 563, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 20613, 12, 5005, 1253, 563, 16, 2445, 8461, 919, 13, 288, 202, 202, 3328, 18, 17364, 12, 2211, 16, 315, 30500, 30, 13773, 5644, 1769, 202, 202, 4103, 501, 273, 563, 18, ...
svg12 = doc.isSVG12();
public Listener(BridgeContext ctx, UserAgent u) { context = ctx; ua = u; SVGOMDocument doc = (SVGOMDocument) ctx.getDocument(); svg12 = doc.isSVG12(); }
46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/e0f764dff72dfeed9e7f33e5d48e195946accb74/BridgeEventSupport.java/buggy/sources/org/apache/batik/bridge/BridgeEventSupport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 10652, 12, 13691, 1042, 1103, 16, 21917, 582, 13, 288, 5411, 819, 273, 1103, 31, 5411, 10165, 273, 582, 31, 5411, 11281, 1872, 2519, 997, 273, 261, 26531, 1872, 2519, 13, 1103, 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, 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, 10652, 12, 13691, 1042, 1103, 16, 21917, 582, 13, 288, 5411, 819, 273, 1103, 31, 5411, 10165, 273, 582, 31, 5411, 11281, 1872, 2519, 997, 273, 261, 26531, 1872, 2519, 13, 1103, 18, ...
public void prependToGroup(String groupName, IContributionItem item) { item.setParent(this); SubContributionItem wrap = wrap(item); wrap.setVisible(visible); parentMgr.prependToGroup(groupName, wrap); itemAdded(item, wrap);
public void prependToGroup(String groupName, IAction action) { prependToGroup(groupName, new ActionContributionItem(action));
public void prependToGroup(String groupName, IContributionItem item) { item.setParent(this); SubContributionItem wrap = wrap(item); wrap.setVisible(visible); parentMgr.prependToGroup(groupName, wrap); itemAdded(item, wrap);}
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/11265eccbee5e1093f9cbd1b4153f776fedc9e5f/SubContributionManager.java/buggy/bundles/org.eclipse.ui/Eclipse JFace/org/eclipse/jface/action/SubContributionManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 918, 8254, 774, 1114, 12, 780, 11619, 16, 467, 442, 4027, 1180, 761, 13, 288, 202, 1726, 18, 542, 3054, 12, 2211, 1769, 202, 1676, 442, 4027, 1180, 2193, 273, 2193, 12, 1726, 1769, 202...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 918, 8254, 774, 1114, 12, 780, 11619, 16, 467, 442, 4027, 1180, 761, 13, 288, 202, 1726, 18, 542, 3054, 12, 2211, 1769, 202, 1676, 442, 4027, 1180, 2193, 273, 2193, 12, 1726, 1769, 202...
if ((sides & LEFT) == LEFT) { if (border.noLeft()) { sides -= LEFT; }
if ((sides & LEFT) == LEFT && border.noLeft()) { sides -= LEFT;
public static void paint(Rectangle bounds, int sides, CalculatedStyle style, Graphics g, RenderingContext ctx, int xOffset) { BorderPropertySet border = style.getBorder(ctx); if ((sides & TOP) == TOP) { if (border.noTop()) { sides -= TOP; } } if ((sides & LEFT) == LEFT) { if (border.noLeft()) { sides -= LEFT; } } if ((sides & BOTTOM) == BOTTOM) { if (border.noBottom()) { sides -= BOTTOM; } } if ((sides & RIGHT) == RIGHT) { if (border.noRight()) { sides -= RIGHT; } } //Now paint! if ((sides & TOP) == TOP) { paintBorderSide(border, g, bounds, sides, TOP, border.topStyle(), xOffset); } if ((sides & LEFT) == LEFT) { paintBorderSide(border, g, bounds, sides, LEFT, border.leftStyle(), xOffset); } if ((sides & BOTTOM) == BOTTOM) { paintBorderSide(border, g, bounds, sides, BOTTOM, border.bottomStyle(), xOffset); } if ((sides & RIGHT) == RIGHT) { paintBorderSide(border, g, bounds, sides, RIGHT, border.rightStyle(), xOffset); } }
52947 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52947/89207459d065862ac78cc417022fde401603ba03/BorderPainter.java/buggy/src/java/org/xhtmlrenderer/render/BorderPainter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 12574, 12, 19463, 4972, 16, 509, 22423, 16, 15994, 690, 2885, 2154, 16, 16830, 314, 16, 18018, 1042, 1103, 16, 509, 619, 2335, 13, 288, 3639, 13525, 1396, 694, 5795, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 12574, 12, 19463, 4972, 16, 509, 22423, 16, 15994, 690, 2885, 2154, 16, 16830, 314, 16, 18018, 1042, 1103, 16, 509, 619, 2335, 13, 288, 3639, 13525, 1396, 694, 5795, 273, ...
if (current == LA(1)) { throwBacktrack(current.getOffset(), figureEndOffset(declSpec, declarator) - current.getOffset()); } ICPPASTParameterDeclaration parm = createParameterDeclaration(); ((ASTNode) parm).setOffsetAndLength(current.getOffset(), figureEndOffset( declSpec, declarator) - current.getOffset()); parm.setDeclSpecifier(declSpec); declSpec.setParent(parm); declSpec.setPropertyInParent(IASTParameterDeclaration.DECL_SPECIFIER); if (declarator != null) { parm.setDeclarator(declarator); declarator.setParent(parm); declarator.setPropertyInParent(IASTParameterDeclaration.DECLARATOR); } return parm; }
if (current == LA(1)) { throwBacktrack(current.getOffset(), figureEndOffset(declSpec, declarator) - current.getOffset()); } ICPPASTParameterDeclaration parm = createParameterDeclaration(); ((ASTNode) parm).setOffsetAndLength(current.getOffset(), figureEndOffset(declSpec, declarator) - current.getOffset()); parm.setDeclSpecifier(declSpec); declSpec.setParent(parm); declSpec.setPropertyInParent(IASTParameterDeclaration.DECL_SPECIFIER); if (declarator != null) { parm.setDeclarator(declarator); declarator.setParent(parm); declarator.setPropertyInParent(IASTParameterDeclaration.DECLARATOR); } return parm; }
protected ICPPASTParameterDeclaration parameterDeclaration() throws BacktrackException, EndOfFileException { IToken current = LA(1); IASTDeclSpecifier declSpec = declSpecifierSeq(true, false); IASTDeclarator declarator = null; if (LT(1) != IToken.tSEMI) declarator = initDeclarator(SimpleDeclarationStrategy.TRY_FUNCTION); if (current == LA(1)) { throwBacktrack(current.getOffset(), figureEndOffset(declSpec, declarator) - current.getOffset()); } ICPPASTParameterDeclaration parm = createParameterDeclaration(); ((ASTNode) parm).setOffsetAndLength(current.getOffset(), figureEndOffset( declSpec, declarator) - current.getOffset()); parm.setDeclSpecifier(declSpec); declSpec.setParent(parm); declSpec.setPropertyInParent(IASTParameterDeclaration.DECL_SPECIFIER); if (declarator != null) { parm.setDeclarator(declarator); declarator.setParent(parm); declarator.setPropertyInParent(IASTParameterDeclaration.DECLARATOR); } return parm; }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/8b59056395eb6c26e898030e7e1cd1b78d4db999/GNUCPPSourceParser.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/GNUCPPSourceParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 4750, 467, 4258, 4066, 882, 1662, 6094, 1569, 6094, 1435, 540, 1216, 4297, 4101, 503, 16, 4403, 951, 812, 503, 288, 1377, 467, 1345, 783, 273, 2928, 12, 21, 1769, 1377, 467, 9053, 3456, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 4750, 467, 4258, 4066, 882, 1662, 6094, 1569, 6094, 1435, 540, 1216, 4297, 4101, 503, 16, 4403, 951, 812, 503, 288, 1377, 467, 1345, 783, 273, 2928, 12, 21, 1769, 1377, 467, 9053, 3456, ...
throw new MARSHAL(ex.toString());
MARSHAL t = new MARSHAL(); t.initCause(ex); throw t;
public void read(java.io.InputStream istream) throws MARSHAL { try { DataInputStream din = new DataInputStream(istream); byte[] xMagic = new byte[ MAGIC.length ]; din.read(xMagic); if (!Arrays.equals(xMagic, MAGIC)) throw new MARSHAL("Not a GIOP message"); version = Version.read_version(din); flags = (byte) din.read(); /** TODO implement support for the little endian. */ if (!isBigEndian()) throw new MARSHAL("Little endian unsupported."); message_type = (byte) din.read(); message_size = din.readInt(); } catch (IOException ex) { throw new MARSHAL(ex.toString()); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/322bdf31032fa8067da8c0c35cf403ba70c4c1c4/MessageHeader.java/buggy/core/src/classpath/gnu/gnu/CORBA/GIOP/MessageHeader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 855, 12, 6290, 18, 1594, 18, 4348, 277, 3256, 13, 5411, 1216, 490, 985, 2664, 1013, 225, 288, 565, 775, 1377, 288, 3639, 29382, 302, 267, 273, 394, 29382, 12, 376, 793, 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, 1071, 918, 855, 12, 6290, 18, 1594, 18, 4348, 277, 3256, 13, 5411, 1216, 490, 985, 2664, 1013, 225, 288, 565, 775, 1377, 288, 3639, 29382, 302, 267, 273, 394, 29382, 12, 376, 793, 1769,...
public void doGet( HttpServletRequest req, HttpServletResponse res ) throws ServletException, IOException { // check if user is a Useradmin, adminRole = 2 IMCServiceInterface imcref = ApplicationServer.getIMCServiceInterface(); UserDomainObject user = Utility.getLoggedOnUser( req ); // check if user is a Superadmin, adminRole = 1 //Lets get temporary values from session if there is some. //String[] tmp_userRoles = (String[])session.getAttribute("tempUserRoles"); //String tmp_userType = (String)session.getAttribute("tempUserType"); HttpSession session = req.getSession( false ); Properties tmp_userInfo = (Properties)session.getAttribute( "tempUser" ); Vector tmp_phones = (Vector)session.getAttribute( "Ok_phoneNumbers" ); if ( tmp_phones == null ) { tmp_phones = new Vector(); } String[] phonetypesA = imcref.sqlProcedure( "GetPhonetypes", new String[]{"" + user.getLangId()} ); // Get a new Vector: phonetype_id, typename Vector phoneTypesV = new Vector( java.util.Arrays.asList( phonetypesA ) ); // ******* GENERATE AN ADD_USER PAGE ********** if ( req.getParameter( "ADD_USER" ) != null ) { // Lets check if the user is an admin, otherwise throw him out. if ( !user.isSuperAdmin() && !user.isUserAdmin() ) { showErrorPageUserNotAnAdministrator( req, res, imcref, user ); return; } showAddUserPage( tmp_userInfo, res, phoneTypesV, tmp_phones, user, imcref, req, session ); return; } // ******* GENERATE AN CHANGE_USER PAGE********** if ( req.getParameter( "CHANGE_USER" ) != null ) { log( "Changeuser" ); // lets first try to get userId from the session if we has been redirectet from authenticate String userToChangeId = getCurrentUserId( req, res, imcref, user ); // Lets check if the user has right to do changes // only if he is an superadmin, useradmin or if he try to change his own values // otherwise throw him out. if ( user.isSuperAdmin() == false && !user.isUserAdmin() && !userToChangeId.equals( "" + user.getId() ) ) { showErrorPageUserHasNoRightsToChangeUserValues( req, res, imcref, user ); return; } showChangeUserPage( userToChangeId, imcref, tmp_userInfo, tmp_phones, user, res, session, phoneTypesV, user.isSuperAdmin(), user.isUserAdmin(), req ); return; } }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/ebf0781020199f986e0621851cc0ceaef92969e2/AdminUserProps.java/clean/server/src/com/imcode/imcms/servlet/superadmin/AdminUserProps.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6459, 2896, 967, 12, 2940, 18572, 3658, 16, 2940, 4745, 607, 500, 550, 281, 13, 15069, 4745, 503, 16, 14106, 95, 759, 1893, 430, 1355, 291, 69, 1299, 3666, 16, 3666, 2996, 33, 22, 3445...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2896, 967, 12, 2940, 18572, 3658, 16, 2940, 4745, 607, 500, 550, 281, 13, 15069, 4745, 503, 16, 14106, 95, 759, 1893, 430, 1355, 291, 69, 1299, 3666, 16, 3666, 2996, 33, 22, 3445...
if (startIdx < 0) return TA_RetCode.TA_OUT_OF_RANGE_START_INDEX; if ((endIdx < 0) || (endIdx < startIdx)) return TA_RetCode.TA_OUT_OF_RANGE_END_INDEX; if ((int) optInTimePeriod == (Integer.MIN_VALUE )) optInTimePeriod = 5; else if (((int) optInTimePeriod < 2) || ((int) optInTimePeriod > 100000)) return TA_RetCode.TA_BAD_PARAM;
public TA_RetCode STDDEV(int startIdx, int endIdx, double inReal[], int optInTimePeriod, double optInNbDev, MInteger outBegIdx, MInteger outNbElement, double outReal[]) { int i; TA_RetCode retCode; double tempReal; if (startIdx < 0) return TA_RetCode.TA_OUT_OF_RANGE_START_INDEX; if ((endIdx < 0) || (endIdx < startIdx)) return TA_RetCode.TA_OUT_OF_RANGE_END_INDEX; if ((int) optInTimePeriod == (Integer.MIN_VALUE )) optInTimePeriod = 5; else if (((int) optInTimePeriod < 2) || ((int) optInTimePeriod > 100000)) return TA_RetCode.TA_BAD_PARAM; if (optInNbDev == (-4e+37)) optInNbDev = 1.000000e+0; else if ((optInNbDev < -3.000000e+37) || (optInNbDev > 3.000000e+37)) return TA_RetCode.TA_BAD_PARAM; retCode = INT_VAR(startIdx, endIdx, inReal, optInTimePeriod, outBegIdx, outNbElement, outReal); if (retCode != TA_RetCode.TA_SUCCESS) return retCode; if (optInNbDev != 1.0) { for (i = 0; i < (int) outNbElement.value; i++) { tempReal = outReal[i]; if (!(tempReal < 0.00000001)) outReal[i] = Math.sqrt(tempReal) * optInNbDev; else outReal[i] = (double) 0.0; } } else { for (i = 0; i < (int) outNbElement.value; i++) { tempReal = outReal[i]; if (!(tempReal < 0.00000001)) outReal[i] = Math.sqrt(tempReal); else outReal[i] = (double) 0.0; } } return TA_RetCode.TA_SUCCESS; }
2365 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2365/8c26ea7a2c59f9148f3db0db7ab39ed48689e601/Core.java/buggy/ta-lib/java/src/TA/Lib/Core.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 399, 37, 67, 7055, 1085, 2347, 40, 15301, 12, 474, 27108, 16, 509, 679, 4223, 16, 1645, 316, 6955, 63, 6487, 1082, 202, 474, 2153, 382, 26540, 16, 1645, 2153, 382, 22816, 8870...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 399, 37, 67, 7055, 1085, 2347, 40, 15301, 12, 474, 27108, 16, 509, 679, 4223, 16, 1645, 316, 6955, 63, 6487, 1082, 202, 474, 2153, 382, 26540, 16, 1645, 2153, 382, 22816, 8870...
this.callbacks.processMove(m);
modelRoot.getReceiver().processMove(m);
void sendUpdateMove(MutableSchedule mutableSchedule ){ TrainModel train = (TrainModel)w.get(KEY.TRAINS, this.trainNumber); int scheduleID = train.getScheduleID(); ImmutableSchedule before = (ImmutableSchedule)w.get(KEY.TRAIN_SCHEDULES, scheduleID); ImmutableSchedule after = mutableSchedule.toImmutableSchedule(); Move m = new ChangeTrainScheduleMove(scheduleID, before, after); this.callbacks.processMove(m); }
9170 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9170/205ddc214a94b5c31682217a9ae9b5fccedce067/TrainScheduleJPanel.java/buggy/railz/src/jfreerails/client/view/TrainScheduleJPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 1366, 1891, 7607, 12, 19536, 6061, 16074, 6061, 262, 95, 3639, 2197, 267, 1488, 4691, 273, 261, 23419, 1488, 13, 91, 18, 588, 12, 3297, 18, 20060, 706, 55, 16, 333, 18, 9754, 1854,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 1366, 1891, 7607, 12, 19536, 6061, 16074, 6061, 262, 95, 3639, 2197, 267, 1488, 4691, 273, 261, 23419, 1488, 13, 91, 18, 588, 12, 3297, 18, 20060, 706, 55, 16, 333, 18, 9754, 1854,...
dsValue = RrdUtils.fetchLastValue(files[i].getAbsolutePath(), interval);
if (range != 0) { if (log.isDebugEnabled()) log.debug("checking values within " + range + " mS of last possible PDP"); dsValue = RrdUtils.fetchLastValueInRange(files[i].getAbsolutePath(), interval, range); } else { if (log.isDebugEnabled()) log.debug("checking value of last possible PDP only"); dsValue = RrdUtils.fetchLastValue(files[i].getAbsolutePath(), interval); }
private void checkIfDir(File directory, Integer nodeId, InetAddress primary, int interval, Date date, Map baseIfThresholdMap, Map allIfThresholdMap, Events events) throws IllegalArgumentException { Category log = ThreadCategory.getInstance(getClass()); // Sanity Check if (directory == null || nodeId == null || primary == null || date == null || baseIfThresholdMap == null || allIfThresholdMap == null || events == null) { throw new IllegalArgumentException("Null parameters not permitted."); } if (log.isDebugEnabled()) log.debug("checkIfDir: threshold checking interface dir: " + directory.getAbsolutePath()); String ifLabel = directory.getName(); if (log.isDebugEnabled()) log.debug("checkIfDir: ifLabel=" + ifLabel); // This is an interface directory extract the // interface label from the full path name of the file // /* * String path = directory.getAbsolutePath(); String path = directory * int fileSepIndex = path.lastIndexOf(File.separatorChar); if * (fileSepIndex >= 0) ifLabel = path.substring(fileSepIndex+1, * path.length()); else ifLabel = path; */ // Attempt to retrieve the threshold map for this interface // using the ifLabel for the interface // Map thresholdMap = (Map) allIfThresholdMap.get(ifLabel); if (thresholdMap == null) { // Doesn't exist yet, go ahead and create it // Must maintain a separate threshold map for // each interface. thresholdMap = new HashMap(); // Iterate over base interface threshold map and clone each // ThresholdEntity object and add it to the threshold map. // for this interface. // Iterator iter = baseIfThresholdMap.values().iterator(); while (iter.hasNext()) { ThresholdEntity entity = (ThresholdEntity) iter.next(); thresholdMap.put(entity.getDatasourceName(), entity.clone()); } // Add the new threshold map for this interface // to the all interfaces map. allIfThresholdMap.put(ifLabel, thresholdMap); } // Iterate over directory contents and threshold // check any RRD files which represent datasources // in the threshold maps. // File[] files = directory.listFiles(RrdFileConstants.RRD_FILENAME_FILTER); if (files == null || files.length == 0) { if (log.isDebugEnabled()) log.debug("checkIfDir: no RRD files in dir: " + directory); return; } Map ifDataMap = null; for (int i = 0; i < files.length; i++) { // File name has format: <datsource><extension> // Must strip off <extension> portion. String filename = files[i].getName(); String datasource = filename.substring(0, filename.indexOf(RrdUtils.get_extension())); // Lookup the ThresholdEntity object corresponding // to this datasource. // if (log.isDebugEnabled()) log.debug("checkIfDir: looking up datasource: " + datasource); ThresholdEntity threshold = (ThresholdEntity) thresholdMap.get(datasource); if (threshold != null) { // Use RRD JNI interface to "fetch" value of the // datasource from the RRD file // Double dsValue = null; try { dsValue = RrdUtils.fetchLastValue(files[i].getAbsolutePath(), interval); } catch (NumberFormatException nfe) { log.warn("Unable to convert retrieved value for datasource '" + datasource + "' to a double, skipping evaluation."); } catch (RrdException e) { log.error("An error occurred retriving the last value for datasource '" + datasource + "'", e); } if (dsValue != null && !dsValue.isNaN()) { // Evaluate the threshold // // ThresholdEntity.evaluate() returns an integer value // which indicates which threshold values were // triggered and require an event to be generated (if any). // int result = threshold.evaluate(dsValue.doubleValue()); if (result != ThresholdEntity.NONE_TRIGGERED) { // ifLabel will either be set to null for node level // datasource values // or to a specific interface in the case of an // interface level datasource. // // ifLabel has the following format: // <ifName|ifDescr>-<macAddr> // // Call IfLabel.getInterfaceInfoFromLabel() utility // method to retrieve // data from the 'snmpInterfaces' table for this // interface. This method // will return a Map of database values keyed by field // name. // if (ifLabel != null && ifDataMap == null) { // Get database connection // java.sql.Connection dbConn = null; try { dbConn = DatabaseConnectionFactory.getInstance().getConnection(); } catch (SQLException sqlE) { if (log.isEnabledFor(Priority.ERROR)) log.error("checkIfDir: Failed getting connection to the database.", sqlE); throw new UndeclaredThrowableException(sqlE); } // Make certain we close the connection // try { ifDataMap = IfLabel.getInterfaceInfoFromIfLabel(dbConn, nodeId.intValue(), ifLabel); } catch (SQLException e) { // Logging a warning message but processing will // continue for // this thresholding event, when the event is // created it // will be created with an interface value set // to the primary // SNMP interface address and an event source // set to // <datasource>:<ifLabel>. // log.warn("Failed to retrieve interface info from database using ifLabel '" + ifLabel); ifDataMap = new HashMap(); } finally { // Done with the database so close the // connection try { if (dbConn != null) dbConn.close(); } catch (SQLException sqle) { if (log.isEnabledFor(Priority.INFO)) log.info("checkIfDir: SQLException while closing database connection", sqle); } } // Adding ifLabel value to the map for potential use // by // the createEvent() method ifDataMap.put("iflabel", ifLabel); } if (result == ThresholdEntity.HIGH_AND_LOW_TRIGGERED || result == ThresholdEntity.HIGH_TRIGGERED) { events.addEvent(createEvent(nodeId, primary, ifDataMap, dsValue.doubleValue(), threshold.getHighThreshold(), EventConstants.HIGH_THRESHOLD_EVENT_UEI, date)); } if (result == ThresholdEntity.HIGH_AND_LOW_TRIGGERED || result == ThresholdEntity.LOW_TRIGGERED) { events.addEvent(createEvent(nodeId, primary, ifDataMap, dsValue.doubleValue(), threshold.getLowThreshold(), EventConstants.LOW_THRESHOLD_EVENT_UEI, date)); } if (result == ThresholdEntity.HIGH_AND_LOW_REARMED || result == ThresholdEntity.HIGH_REARMED) { events.addEvent(createEvent(nodeId, primary, ifDataMap, dsValue.doubleValue(), threshold.getHighThreshold(), EventConstants.HIGH_THRESHOLD_REARM_EVENT_UEI, date)); } if (result == ThresholdEntity.HIGH_AND_LOW_REARMED || result == ThresholdEntity.LOW_REARMED) { events.addEvent(createEvent(nodeId, primary, ifDataMap, dsValue.doubleValue(), threshold.getLowThreshold(), EventConstants.LOW_THRESHOLD_REARM_EVENT_UEI, date)); } } } } } }
11849 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11849/07a7353dcb047b34d91730d300899c5e7d3ddc6e/JMXThresholder.java/buggy/src/services/org/opennms/netmgt/threshd/JMXThresholder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 19130, 1621, 12, 812, 1867, 16, 2144, 11507, 16, 14218, 3354, 16, 509, 3673, 16, 2167, 1509, 16, 1635, 1026, 2047, 7614, 863, 16, 1635, 777, 2047, 7614, 863, 16, 9043, 2641, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19130, 1621, 12, 812, 1867, 16, 2144, 11507, 16, 14218, 3354, 16, 509, 3673, 16, 2167, 1509, 16, 1635, 1026, 2047, 7614, 863, 16, 1635, 777, 2047, 7614, 863, 16, 9043, 2641, ...
throw new IllegalArgumentException("minX or minY of" + " this raster not equal to zero");
throw new IllegalArgumentException(Messages.getString("awt.228"));
public BufferedImage(ColorModel cm, WritableRaster raster, boolean isRasterPremultiplied, Hashtable<?, ?> properties) { if (!cm.isCompatibleRaster(raster)) { throw new IllegalArgumentException("The raster is" + " incompatible with this ColorModel"); } if (raster.getMinX() != 0 || raster.getMinY() != 0) { throw new IllegalArgumentException("minX or minY of" + " this raster not equal to zero"); } this.cm = cm; this.raster = raster; this.properties = properties; coerceData(isRasterPremultiplied); imageType = Surface.getType(cm, raster); imageSurf = createImageSurface(imageType); }
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/1380f0b7d7529273757b8c60cba9603d41c15f4d/BufferedImage.java/buggy/modules/awt/src/main/java/common/java/awt/image/BufferedImage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 12362, 12, 2957, 1488, 5003, 16, 14505, 18637, 12553, 16, 5411, 1250, 353, 18637, 1386, 7027, 3110, 16, 18559, 12880, 16, 14193, 1790, 13, 288, 3639, 309, 16051, 7670, 18, 291, 14599,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12362, 12, 2957, 1488, 5003, 16, 14505, 18637, 12553, 16, 5411, 1250, 353, 18637, 1386, 7027, 3110, 16, 18559, 12880, 16, 14193, 1790, 13, 288, 3639, 309, 16051, 7670, 18, 291, 14599,...
"207:21: Name 'O' must match pattern '^a[A-Z][a-zA-Z0-9]*$'.",
public void testSpecified() throws Exception { final DefaultConfiguration checkConfig = createCheckConfig(ParameterNameCheck.class); checkConfig.addAttribute("format", "^a[A-Z][a-zA-Z0-9]*$"); final String[] expected = { "71:19: Name 'badFormat1' must match pattern '^a[A-Z][a-zA-Z0-9]*$'.", "71:34: Name 'badFormat2' must match pattern '^a[A-Z][a-zA-Z0-9]*$'.", "72:25: Name 'badFormat3' must match pattern '^a[A-Z][a-zA-Z0-9]*$'.", "207:21: Name 'O' must match pattern '^a[A-Z][a-zA-Z0-9]*$'.", }; verify(checkConfig, getPath("InputSimple.java"), expected); }
31427 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31427/458086242f4b8f1a837400b7b7f4b6fe67601ba6/ParameterNameCheckTest.java/buggy/src/tests/com/puppycrawl/tools/checkstyle/checks/naming/ParameterNameCheckTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 17068, 1435, 3639, 1216, 1185, 565, 288, 3639, 727, 2989, 1750, 866, 809, 273, 5411, 752, 1564, 809, 12, 24586, 1564, 18, 1106, 1769, 3639, 866, 809, 18, 1289, 1499, 2932...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 17068, 1435, 3639, 1216, 1185, 565, 288, 3639, 727, 2989, 1750, 866, 809, 273, 5411, 752, 1564, 809, 12, 24586, 1564, 18, 1106, 1769, 3639, 866, 809, 18, 1289, 1499, 2932...
ActiveEventCache(EventLogger eventLogger)
ActiveEventCache(EventLogger<ClientConnectEvent> eventLogger)
ActiveEventCache(EventLogger eventLogger) { this.eventLogger = eventLogger; }
49954 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49954/f88b396e2e4b7e7bdb7156a2e21043061ec76559/OpenVpnMonitor.java/buggy/tran/openvpn/main/com/metavize/tran/openvpn/OpenVpnMonitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 8857, 1133, 1649, 12, 1133, 3328, 32, 1227, 5215, 1133, 34, 871, 3328, 13, 3639, 288, 5411, 333, 18, 2575, 3328, 273, 871, 3328, 31, 3639, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 8857, 1133, 1649, 12, 1133, 3328, 32, 1227, 5215, 1133, 34, 871, 3328, 13, 3639, 288, 5411, 333, 18, 2575, 3328, 273, 871, 3328, 31, 3639, 289, 2, -100, -100, -100, -100, -100, -100, -1...
public void put(CHKBlock b) throws IOException {
public synchronized void put(CHKBlock b) throws IOException {
public void put(CHKBlock b) throws IOException { NodeCHK chk = (NodeCHK) b.getKey(); CHKBlock oldBlock = fetch(chk, false); if(oldBlock != null) return; innerPut(b); }
56348 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56348/79d31585331089fa241bcabc60a642461fd7972a/BerkeleyDBFreenetStore.java/clean/src/freenet/store/BerkeleyDBFreenetStore.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1378, 12, 1792, 47, 1768, 324, 13, 1216, 1860, 288, 202, 202, 907, 1792, 47, 15000, 273, 261, 907, 1792, 47, 13, 324, 18, 588, 653, 5621, 202, 202, 1792, 47, 1768, 1592, 17...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1378, 12, 1792, 47, 1768, 324, 13, 1216, 1860, 288, 202, 202, 907, 1792, 47, 15000, 273, 261, 907, 1792, 47, 13, 324, 18, 588, 653, 5621, 202, 202, 1792, 47, 1768, 1592, 17...
&& bRendering3D;
&& bRendering3D && bFillArea;
private final void renderCurve( IPrimitiveRenderer ipr, double fXOffset, double fYOffset ) throws ChartException { final double[] faKnotXY1 = new double[2]; final double[] faKnotXY2 = new double[2]; if ( !computeSpline( fa[0], faKnotXY1 ) ) { return; } int iNumberOfDivisions; double fX, fY; double[] faXY1, faXY2; double fT; final ArrayList stateList = new ArrayList( ); for ( int i = 0; i < iNumberOfPoints - 1; i++ ) { if ( !computeSpline( fa[i + 1], faKnotXY2 ) ) { continue; } fX = faKnotXY2[0] - faKnotXY1[0]; fY = faKnotXY2[1] - faKnotXY1[1]; iNumberOfDivisions = (int) ( Math.sqrt( fX * fX + fY * fY ) / 5.0f ) + 1; faXY1 = new double[2]; faXY2 = new double[2]; if ( !computeSpline( fa[i], faXY1 ) ) { continue; } for ( int j = 0; j < iNumberOfDivisions; j++ ) { fT = fa[i] + ( fa[i + 1] - fa[i] ) * (double) ( j + 1 ) / (double) iNumberOfDivisions; if ( !computeSpline( fT, faXY2 ) ) { continue; } if ( bShowAsTape ) { boolean drawLeftSide = ( i == 0 ) && ( j == 0 ) && bKeepState && bRendering3D; if ( drawLeftSide ) { plotPlane( ipr, faXY1[0] + fXOffset, faXY1[1] + fYOffset, faXY2[0] + fXOffset, faXY2[1] + fYOffset, bRendering3D ? faZ[i] : 0, bRendering3D ? faZ[i] : 0, true, true ); } // TODO user a single surface to draw the tape. boolean drawRightSide = ( i == iNumberOfPoints - 2 ) && ( j == iNumberOfDivisions - 1 && bKeepState ); plotPlane( ipr, faXY1[0] + fXOffset, faXY1[1] + fYOffset, faXY2[0] + fXOffset, faXY2[1] + fYOffset, bRendering3D ? faZ[i] : 0, bRendering3D ? faZ[i] : 0, drawRightSide, false ); } if ( !bFillArea ) { // if fill area, defer to the loop end. plotLine( ipr, faXY1[0] + fXOffset, faXY1[1] + fYOffset, faXY2[0] + fXOffset, faXY2[1] + fYOffset, bRendering3D ? faZ[i] : 0, bRendering3D ? faZ[i] : 0 ); } // TODO remove the duplicate points. if ( bRendering3D ) { stateList.add( new double[]{ faXY1[0] + fXOffset, faXY1[1] + fYOffset, faZ[i] } ); stateList.add( new double[]{ faXY2[0] + fXOffset, faXY2[1] + fYOffset, faZ[i] } ); } else { stateList.add( new double[]{ faXY1[0] + fXOffset, faXY1[1] + fYOffset } ); stateList.add( new double[]{ faXY2[0] + fXOffset, faXY2[1] + fYOffset } ); } faXY1[0] = faXY2[0]; faXY1[1] = faXY2[1]; } faKnotXY1[0] = faKnotXY2[0]; faKnotXY1[1] = faKnotXY2[1]; } if ( bFillArea ) { plotArea( ipr, stateList ); } if ( bKeepState ) { iRender.getRunTimeContext( ).putState( AreaSeries.class, stateList ); } }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/47e68a4a3c59f0b2fba53dee2d855cfd0357bf03/CurveRenderer.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/render/CurveRenderer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 727, 918, 1743, 9423, 12, 467, 9840, 6747, 277, 683, 16, 1645, 284, 60, 2335, 16, 1082, 202, 9056, 284, 61, 2335, 262, 1216, 14804, 503, 202, 95, 202, 202, 6385, 1645, 8526, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 727, 918, 1743, 9423, 12, 467, 9840, 6747, 277, 683, 16, 1645, 284, 60, 2335, 16, 1082, 202, 9056, 284, 61, 2335, 262, 1216, 14804, 503, 202, 95, 202, 202, 6385, 1645, 8526, ...
if(mid+1 < box.getChildCount()) { Box child2 = box.getChild(mid+1);
if (mid + 1 < box.getChildCount()) { Box child2 = box.getChild(mid + 1);
public static int doesIntersect2(Rectangle clip, Box box, int start, int end) { // Uu.p("doesIntersect2: " + clip + " " + start + " " + end); // end case if(start > end) { // Uu.p("start is greater than end. returning"); return -1; } int mid = (end-start)/2 + start; // Uu.p("mid = " + mid); if(mid >= box.getChildCount()) { return -1; } Box child = box.getChild(mid); // if clip intersects // Uu.p("testing: " + child); if(clip.intersects(new Rectangle(child.x,child.y,child.getWidth(),child.getHeight()))) { // Uu.p("it intersects. checking below:"); if(mid+1 < box.getChildCount()) { Box child2 = box.getChild(mid+1); // Uu.p("second test: " + child2); if(!clip.intersects(new Rectangle(child2.x,child2.y,child2.getWidth(),child2.getHeight()))) { // Uu.p("after doesn't intersect so this is the last"); // Uu.p("returning: " + mid); return mid; } else { // Uu.p("after intersects. Not last"); } } else { // Uu.p("This is the last child so it must be correct"); return mid; } } // if clip is above box if(clip.y+clip.height <= child.y) { // Uu.p("clip is above"); return doesIntersect2(clip,box,start,mid-1); } else { // if clip is below box // Uu.p("clip is below"); return doesIntersect2(clip,box,mid+1,end); } }
8125 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8125/c96efe21dd32b0a4f0420c8495d49144792cbc9d/BlockRendering.java/buggy/src/java/org/xhtmlrenderer/render/BlockRendering.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 509, 1552, 22541, 22, 12, 19463, 6807, 16, 8549, 3919, 16, 509, 787, 16, 509, 679, 13, 288, 3639, 368, 587, 89, 18, 84, 2932, 20657, 22541, 22, 30, 315, 397, 6807, 397, 315...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 509, 1552, 22541, 22, 12, 19463, 6807, 16, 8549, 3919, 16, 509, 787, 16, 509, 679, 13, 288, 3639, 368, 587, 89, 18, 84, 2932, 20657, 22541, 22, 30, 315, 397, 6807, 397, 315...
if (name == null || value == null) { String msg = "name or classname attributes of " + getTaskName() + " element " + "are undefined"; throw new BuildException(msg);
if (url == null) { return;
public void execute() throws BuildException { ClassLoader al = createLoader(); if (file == null && resource == null) { // simple case - one definition if (name == null || value == null) { String msg = "name or classname attributes of " + getTaskName() + " element " + "are undefined"; throw new BuildException(msg); } addDefinition(al, name, value); } else { InputStream is = null; try { if (name != null || value != null) { String msg = "You must not specify name or value " + "together with file or resource."; throw new BuildException(msg, getLocation()); } if (file != null && resource != null) { String msg = "You must not specify both, file and " + "resource."; throw new BuildException(msg, getLocation()); } Properties props = new Properties(); if (file != null) { log("Loading definitions from file " + file, Project.MSG_VERBOSE); is = new FileInputStream(file); if (is == null) { log("Could not load definitions from file " + file + ". It doesn\'t exist.", Project.MSG_WARN); } } if (resource != null) { log("Loading definitions from resource " + resource, Project.MSG_VERBOSE); is = al.getResourceAsStream(resource); if (is == null) { log("Could not load definitions from resource " + resource + ". It could not be found.", Project.MSG_WARN); } } if (is != null) { props.load(is); Enumeration keys = props.keys(); while (keys.hasMoreElements()) { String n = (String) keys.nextElement(); String v = props.getProperty(n); addDefinition(al, n, v); } } } catch (IOException ex) { throw new BuildException(ex, getLocation()); } finally { if (is != null) { try { is.close(); } catch (IOException e) {} } } } }
639 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/639/8701272b2418d74536d09b289f118d1833d42217/Definer.java/buggy/src/main/org/apache/tools/ant/taskdefs/Definer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1836, 1435, 1216, 18463, 288, 3639, 9403, 524, 273, 752, 2886, 5621, 3639, 309, 261, 768, 422, 446, 597, 1058, 422, 446, 13, 288, 5411, 368, 4143, 648, 300, 1245, 2379, 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, 918, 1836, 1435, 1216, 18463, 288, 3639, 9403, 524, 273, 752, 2886, 5621, 3639, 309, 261, 768, 422, 446, 597, 1058, 422, 446, 13, 288, 5411, 368, 4143, 648, 300, 1245, 2379, 5411, ...
nodeMap.put(className, node);
nodeMap.put(factory.getFullName(), node);
private DetectorNode addOrCreateDetectorNode( String className, Map<String, DetectorNode> nodeMap, Map<String, DetectorFactory> factoryMap, ConstraintGraph constraintGraph) throws OrderingConstraintException { DetectorNode node = nodeMap.get(className); if (node == null) { DetectorFactory factory = factoryMap.get(className); if (factory == null) throw new OrderingConstraintException("Unknown detector in ordering constraint: " + className); node = new DetectorNode(factory); nodeMap.put(className, node); constraintGraph.addVertex(node); } return node; }
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/c45c6918c722f363157c6e7496d29f41756539e6/ExecutionPlan.java/clean/findbugs/src/java/edu/umd/cs/findbugs/plan/ExecutionPlan.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 22198, 907, 527, 17717, 12594, 907, 12, 1082, 202, 780, 2658, 16, 1082, 202, 863, 32, 780, 16, 22198, 907, 34, 756, 863, 16, 1082, 202, 863, 32, 780, 16, 22198, 1733, 34, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 22198, 907, 527, 17717, 12594, 907, 12, 1082, 202, 780, 2658, 16, 1082, 202, 863, 32, 780, 16, 22198, 907, 34, 756, 863, 16, 1082, 202, 863, 32, 780, 16, 22198, 1733, 34, 3...
maker.done(); } };
maker.done(); } };
private void exportHTML() { ExportToHTMLDialog exportToHTMLDialog = new ExportToHTMLDialog(myProject); final ExportToHTMLSettings exportToHTMLSettings = ExportToHTMLSettings.getInstance(myProject); if (exportToHTMLSettings.OUTPUT_DIRECTORY == null) { exportToHTMLSettings.OUTPUT_DIRECTORY = PathManager.getHomePath() + File.separator + "exportToHTML"; } exportToHTMLDialog.reset(); exportToHTMLDialog.show(); if (!exportToHTMLDialog.isOK()) { return; } exportToHTMLDialog.apply(); final String outputDirectoryName = exportToHTMLSettings.OUTPUT_DIRECTORY; ApplicationManager.getApplication().invokeLater(new Runnable() { public void run() { final Runnable exportRunnable = new Runnable() { public void run() { HTMLExportFrameMaker maker = new HTMLExportFrameMaker(outputDirectoryName, myProject); maker.start(); try { exportHTML(maker); } catch (ProcessCanceledException e) { // Do nothing here. } maker.done(); } }; if (!ApplicationManager.getApplication() .runProcessWithProgressSynchronously(exportRunnable, "Generating HTML...", true, myProject)) { return; } if (exportToHTMLSettings.OPEN_IN_BROWSER) { BrowserUtil.launchBrowser(exportToHTMLSettings.OUTPUT_DIRECTORY + File.separator + "index.html"); } } }); }
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/44b1444ef611a7223c4ad1fa4fc69f6017017008/InspectionResultsView.java/clean/source/com/intellij/codeInspection/ui/InspectionResultsView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 3359, 4870, 1435, 288, 565, 11054, 774, 4870, 6353, 3359, 774, 4870, 6353, 273, 394, 11054, 774, 4870, 6353, 12, 4811, 4109, 1769, 565, 727, 11054, 774, 4870, 2628, 3359, 774, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3359, 4870, 1435, 288, 565, 11054, 774, 4870, 6353, 3359, 774, 4870, 6353, 273, 394, 11054, 774, 4870, 6353, 12, 4811, 4109, 1769, 565, 727, 11054, 774, 4870, 2628, 3359, 774, ...
System.out.println( "viewMap.size() = " + viewMap.size() );
public Map getScalars( String viewId, Object model, Map parameters ) { System.out.println( "viewMap.size() = " + viewMap.size() ); View view = (View) viewMap.get( viewId ); Map contextScalars = new HashMap(); if ( view != null ) { for ( Iterator i = view.getScalars().iterator(); i.hasNext(); ) { Scalar scalar = (Scalar) i.next(); try { Object value = Ognl.getValue( scalar.getExpression(), parameters, model ); contextScalars.put( scalar.getId(), value ); System.out.println( scalar + " = " + value ); } catch ( OgnlException e ) { // ---------------------------------------------------------------------- // If there is a problem extracting a value using the expression then // just put the expression in the context for debugging and warn the // driver that something is wrong. // ---------------------------------------------------------------------- contextScalars.put( scalar.getId(), scalar.getExpression() ); getLogger().warn( "Cannot find a value for the expression " + scalar.getExpression() + "in " + model ); } } } return contextScalars; }
48499 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48499/ea0fb5fda056357fc948e11027af9c20a241a36d/DefaultViewContextPopulator.java/buggy/continuum-web/src/main/java/org/codehaus/continuum/web/context/DefaultViewContextPopulator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1635, 1322, 3473, 87, 12, 514, 1476, 548, 16, 1033, 938, 16, 1635, 1472, 262, 565, 288, 2868, 4441, 1476, 273, 261, 1767, 13, 1476, 863, 18, 588, 12, 1476, 548, 11272, 3639, 1635,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1322, 3473, 87, 12, 514, 1476, 548, 16, 1033, 938, 16, 1635, 1472, 262, 565, 288, 2868, 4441, 1476, 273, 261, 1767, 13, 1476, 863, 18, 588, 12, 1476, 548, 11272, 3639, 1635,...
fireManagerStoppedEvent();
fireEvent(stoppedDispatcher, new UpdateManagerEvent(this, null, null));
public void dispatchSVGUnLoadEvent() { if (!started) { throw new IllegalStateException("UpdateManager not started."); } // Invoke first to cancel the pending tasks updateRunnableQueue.preemptLater(new Runnable() { public void run() { synchronized (UpdateManager.this) { Event evt = ((DocumentEvent)document).createEvent("SVGEvents"); evt.initEvent("SVGUnload", false, false); ((EventTarget)(document.getDocumentElement())). dispatchEvent(evt); running = false; scriptingEnvironment.interrupt(); updateRunnableQueue.getThread().interrupt(); fireManagerStoppedEvent(); } } }); resume(); }
45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/36d7a3fff8ccd502ca061482e2c5bb909c16be64/UpdateManager.java/clean/sources/org/apache/batik/bridge/UpdateManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3435, 26531, 984, 2563, 1133, 1435, 288, 3639, 309, 16051, 14561, 13, 288, 5411, 604, 394, 5477, 2932, 1891, 1318, 486, 5746, 1199, 1769, 3639, 289, 3639, 368, 14373, 1122, 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, 377, 1071, 918, 3435, 26531, 984, 2563, 1133, 1435, 288, 3639, 309, 16051, 14561, 13, 288, 5411, 604, 394, 5477, 2932, 1891, 1318, 486, 5746, 1199, 1769, 3639, 289, 3639, 368, 14373, 1122, 358, ...
if (statementMustAssignVariableOrFail(field, body, checkedMethods)) {
if(statementMustAssignVariableOrFail(field, body, checkedMethods)){
private static boolean forStatementMustAssignVariableOrFail(PsiVariable field, PsiForStatement forStatement, Set<MethodSignature> checkedMethods) { final PsiStatement initialization = forStatement.getInitialization(); if (statementMustAssignVariableOrFail(field, initialization, checkedMethods)) { return true; } final PsiExpression test = forStatement.getCondition(); if (expressionMustAssignVariableOrFail(field, test, checkedMethods)) { return true; } if (BoolUtils.isTrue(test)) { final PsiStatement body = forStatement.getBody(); if (statementMustAssignVariableOrFail(field, body, checkedMethods)) { return true; } final PsiStatement update = forStatement.getUpdate(); if (statementMustAssignVariableOrFail(field, update, checkedMethods)) { return true; } } return false; }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/fc3fc1341db4aa6d26930bf45116ec44c28fc569/InitializationUtils.java/buggy/plugins/InspectionGadgets/src/com/siyeh/ig/psiutils/InitializationUtils.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 1250, 364, 3406, 10136, 4910, 3092, 18492, 12, 52, 7722, 3092, 652, 16, 453, 7722, 1290, 3406, 364, 3406, 16, 1000, 32, 1305, 5374, 34, 5950, 4712, 13, 288, 3639, 727, 453, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 1250, 364, 3406, 10136, 4910, 3092, 18492, 12, 52, 7722, 3092, 652, 16, 453, 7722, 1290, 3406, 364, 3406, 16, 1000, 32, 1305, 5374, 34, 5950, 4712, 13, 288, 3639, 727, 453, 7...
return jjMoveStringLiteralDfa8_0(active0, 0x40000000000L);
return jjMoveStringLiteralDfa8_0(active0, 0x200000000000L);
private final int jjMoveStringLiteralDfa7_0(long old0, long active0){ if (((active0 &= old0)) == 0L) return jjStartNfa_0(5, old0); try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { jjStopStringLiteralDfa_0(6, active0); return 7; } switch(curChar) { case 58: if ((active0 & 0x400L) != 0L) return jjStopAtPos(7, 10); else if ((active0 & 0x800L) != 0L) return jjStopAtPos(7, 11); else if ((active0 & 0x200000000L) != 0L) return jjStopAtPos(7, 33); else if ((active0 & 0x800000000L) != 0L) return jjStopAtPos(7, 35); else if ((active0 & 0x400000000000L) != 0L) return jjStopAtPos(7, 46); break; case 65: case 97: return jjMoveStringLiteralDfa8_0(active0, 0x820000000000L); case 68: case 100: return jjMoveStringLiteralDfa8_0(active0, 0x40000000000L); case 69: case 101: return jjMoveStringLiteralDfa8_0(active0, 0x140000L); case 78: case 110: return jjMoveStringLiteralDfa8_0(active0, 0x8000000000L); case 83: case 115: return jjMoveStringLiteralDfa8_0(active0, 0x200000000000L); case 85: case 117: return jjMoveStringLiteralDfa8_0(active0, 0x4000000000L); case 88: case 120: return jjMoveStringLiteralDfa8_0(active0, 0x10000000000L); default : break; } return jjStartNfa_0(6, active0);}
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/310be8d52869f0ee2c185cb657525fc655f30133/ZimbraQueryParserTokenManager.java/buggy/ZimbraServer/src/java/com/zimbra/cs/index/queryparser/ZimbraQueryParserTokenManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 727, 509, 10684, 7607, 28565, 40, 507, 27, 67, 20, 12, 5748, 1592, 20, 16, 1525, 2695, 20, 15329, 282, 309, 261, 12443, 3535, 20, 12058, 1592, 20, 3719, 422, 374, 48, 13, 1377, 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, 3238, 727, 509, 10684, 7607, 28565, 40, 507, 27, 67, 20, 12, 5748, 1592, 20, 16, 1525, 2695, 20, 15329, 282, 309, 261, 12443, 3535, 20, 12058, 1592, 20, 3719, 422, 374, 48, 13, 1377, 327, ...
new TestDescriptor(TEST4, "TEST4", 0, rule),
new TestDescriptor(TEST4, "implements Serializable and provides a serialVersionUID", 0, rule),
public void testAll() { runTests(new TestDescriptor[] { new TestDescriptor(TEST1, "Happy case", 0, rule), new TestDescriptor(TEST2, "Simple failure case", 1, rule), new TestDescriptor(TEST3, "failure using java.io.Serializable", 1, rule), new TestDescriptor(TEST4, "TEST4", 0, rule), new TestDescriptor(TEST5, "TEST5", 0, rule), new TestDescriptor(TEST6, "interface", 0, rule) }); }
41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/d2e32f7d3c977884d249c88ff190aa2f8babcd92/MissingSerialVersionUIDTest.java/clean/pmd/regress/test/net/sourceforge/pmd/rules/javabeans/MissingSerialVersionUIDTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1595, 1435, 288, 4202, 1086, 14650, 12, 2704, 7766, 3187, 8526, 288, 9079, 394, 7766, 3187, 12, 16961, 21, 16, 315, 44, 438, 2074, 648, 3113, 374, 16, 1720, 3631, 9079, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1595, 1435, 288, 4202, 1086, 14650, 12, 2704, 7766, 3187, 8526, 288, 9079, 394, 7766, 3187, 12, 16961, 21, 16, 315, 44, 438, 2074, 648, 3113, 374, 16, 1720, 3631, 9079, ...
public String toString() { return null; }
public String toString() { return super.toString() + " inProgress: " + inProgress + " edits: " + edits; }
public String toString() { return null; // TODO } // toString()
1023 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1023/1a56510a6b5772240a0ed85a7518db15a15edb8a/CompoundEdit.java/buggy/libjava/javax/swing/undo/CompoundEdit.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 1762, 1435, 288, 202, 202, 2463, 446, 31, 368, 2660, 202, 97, 368, 1762, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 1762, 1435, 288, 202, 202, 2463, 446, 31, 368, 2660, 202, 97, 368, 1762, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
ClassWriter cw = new ClassWriter(false, true);
ClassWriter cw = new ClassWriter(true, true);
public void test() throws Exception { ClassReader cr = new ClassReader(is); ClassWriter cw = new ClassWriter(false, true); cr.accept(new ClassAdapter(cw) { public MethodVisitor visitMethod( int access, String name, String desc, String signature, String[] exceptions) { return new LocalVariablesSorter(access, desc, super.visitMethod(access, name, desc, signature, exceptions)); } }, false); byte[] b = cw.toByteArray(); try { LOADER.defineClass(n, b); } catch (ClassFormatError cfe) { fail(cfe.getMessage()); } catch (Throwable ignored) { } }
2697 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2697/50e9f07d5c086d1912bb1934ddf810ab80a1ffed/LocalVariablesSorterTest.java/buggy/asm/test/conform/org/objectweb/asm/commons/LocalVariablesSorterTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1435, 1216, 1185, 288, 3639, 1659, 2514, 4422, 273, 394, 1659, 2514, 12, 291, 1769, 3639, 31807, 14098, 273, 394, 31807, 12, 3767, 16, 638, 1769, 3639, 4422, 18, 9436, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1435, 1216, 1185, 288, 3639, 1659, 2514, 4422, 273, 394, 1659, 2514, 12, 291, 1769, 3639, 31807, 14098, 273, 394, 31807, 12, 3767, 16, 638, 1769, 3639, 4422, 18, 9436, 12...
if (e == null || e.getOwner() == null) {
if (getLocalPlayer() == null) {
private boolean trackThisEntitiesVisibilityInfo(Entity e) { if (e == null || e.getOwner() == null) { //Not sure why these would be null, but I've seen an //error report (bug #985884) where they were so better //safe than sorry I guess. return false; } if (game.getOptions().booleanOption("double_blind") && (e.getOwner().getId() == getLocalPlayer().getId() || (game.getOptions().booleanOption("team_vision") && e.getOwner().getTeam() == getLocalPlayer().getTeam()))) { return true; } else { return false; } }
3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/c5c6573e8a5755c037155cc2a6b13437039e52e1/BoardView1.java/clean/megamek/src/megamek/client/ui/AWT/BoardView1.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 3238, 1250, 3298, 2503, 8108, 10135, 966, 12, 1943, 425, 13, 288, 5411, 309, 261, 588, 2042, 12148, 1435, 422, 446, 13, 288, 2398, 368, 1248, 3071, 11598, 4259, 4102, 506, 446, 16, 1496, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 3238, 1250, 3298, 2503, 8108, 10135, 966, 12, 1943, 425, 13, 288, 5411, 309, 261, 588, 2042, 12148, 1435, 422, 446, 13, 288, 2398, 368, 1248, 3071, 11598, 4259, 4102, 506, 446, 16, 1496, ...
return receiverClass; }
return receiverClass; }
public RubyClass getReceiverClass() { return receiverClass; }
46217 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46217/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyMethod.java/buggy/org/jruby/RubyMethod.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 19817, 797, 336, 12952, 797, 1435, 288, 202, 202, 2463, 5971, 797, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 19817, 797, 336, 12952, 797, 1435, 288, 202, 202, 2463, 5971, 797, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
ints[0] = (int)(minmaxReactants[2]) + 15;
ints[0] = (int)(minmaxReactants[2]) + width+5;
public void paintReaction(Reaction reaction, Graphics graphics) { // calculate some boundaries AtomContainer reactantContainer = new AtomContainer(); Molecule[] reactants = reaction.getReactants(); for (int i=0; i<reactants.length; i++) { reactantContainer.add(reactants[i]); } double[] minmaxReactants = GeometryTools.getMinMax(reactantContainer); AtomContainer productContainer = new AtomContainer(); Molecule[] products = reaction.getProducts(); for (int i=0; i<products.length; i++) { productContainer.add(products[i]); } double[] minmaxProducts = GeometryTools.getMinMax(productContainer); // paint box around total double[] minmaxReaction = new double[4]; minmaxReaction[0] = Math.min(minmaxReactants[0], minmaxProducts[0]); minmaxReaction[1] = Math.min(minmaxReactants[1], minmaxProducts[1]); minmaxReaction[2] = Math.max(minmaxReactants[2], minmaxProducts[2]); minmaxReaction[3] = Math.max(minmaxReactants[3], minmaxProducts[3]); paintBoundingBox(minmaxReaction, reaction.getID(), 20, graphics); // paint reactants content paintBoundingBox(minmaxReactants, "Reactants", 10, graphics); paintMolecule(reactantContainer, graphics); // paint products content paintBoundingBox(minmaxProducts, "Products", 10, graphics); paintMolecule(productContainer, graphics); // paint arrow int[] ints = new int[4]; ints[0] = (int)(minmaxReactants[2]) + 15; ints[1] = (int)(minmaxReactants[1] + (minmaxReactants[3]-minmaxReactants[1])/2); ints[2] = (int)(minmaxProducts[0]) - 15; ints[3] = ints[1]; logger.debug("ints: " + ints[0] + ", " + ints[1] + ", " + ints[2] + ", " + ints[3]); int[] screenCoords = getScreenCoordinates(ints); int direction = reaction.getDirection(); if (direction == Reaction.FORWARD) { graphics.drawLine(screenCoords[0], screenCoords[1], screenCoords[2], screenCoords[3]); graphics.drawLine(screenCoords[2], screenCoords[3], screenCoords[2]-7, screenCoords[3]-7); graphics.drawLine(screenCoords[2], screenCoords[3], screenCoords[2]-7, screenCoords[3]+7); } else if (direction == Reaction.BACKWARD) { graphics.drawLine(screenCoords[0], screenCoords[1], screenCoords[2], screenCoords[3]); graphics.drawLine(screenCoords[0], screenCoords[1], screenCoords[0]+7, screenCoords[1]-7); graphics.drawLine(screenCoords[0], screenCoords[1], screenCoords[0]+7, screenCoords[1]+7); } else if (direction == Reaction.BIDIRECTIONAL) { graphics.drawLine(screenCoords[0], screenCoords[1] - 3, screenCoords[2], screenCoords[3] - 3); graphics.drawLine(screenCoords[0], screenCoords[1] - 3, screenCoords[0]+7, screenCoords[1] - 3 - 7); graphics.drawLine(screenCoords[0], screenCoords[1] + 3, screenCoords[2], screenCoords[3] + 3); graphics.drawLine(screenCoords[2], screenCoords[3] + 3, screenCoords[2]-7, screenCoords[3] + 3 + 7); } }
45254 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45254/5c55d44abe7a2bd83db630a31b5acc095537d996/Renderer2D.java/buggy/src/org/openscience/cdk/renderer/Renderer2D.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 12574, 21581, 12, 21581, 12836, 16, 16830, 17313, 13, 288, 3639, 368, 4604, 2690, 15054, 3639, 7149, 2170, 13417, 970, 2170, 273, 394, 7149, 2170, 5621, 3639, 490, 10545, 8526, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 12574, 21581, 12, 21581, 12836, 16, 16830, 17313, 13, 288, 3639, 368, 4604, 2690, 15054, 3639, 7149, 2170, 13417, 970, 2170, 273, 394, 7149, 2170, 5621, 3639, 490, 10545, 8526, 1...
public void mMISC() throws RecognitionException { int MISC_StartIndex = input.index(); try { int type = MISC; int start = getCharIndex(); int line = getLine(); int charPosition = getCharPositionInLine(); int channel = Token.DEFAULT_CHANNEL; if ( backtracking>0 && alreadyParsedRule(input, 44) ) { return ; } // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:917:17: ( '!' | '@' | '$' | '%' | '^' | '&' | '*' | '_' | '-' | '+' | '|' | ',' | '{' | '}' | '[' | ']' | '=' | '/' | '(' | ')' | '\'' | '\\' | '||' | '&&' | '<<<' | '++' | '--' | '>>>' | '==' | '+=' | '=+' | '-=' | '=-' | '*=' | '=*' | '/=' | '=/' ) int alt1=37; switch ( input.LA(1) ) { case '!': alt1=1; break; case '@': alt1=2; break; case '$': alt1=3; break; case '%': alt1=4; break; case '^': alt1=5; break; case '&': int LA1_6 = input.LA(2); if ( LA1_6=='&' ) { alt1=24; } else { alt1=6;} break; case '*': int LA1_7 = input.LA(2); if ( LA1_7=='=' ) { alt1=34; } else { alt1=7;} break; case '_': alt1=8; break; case '-': switch ( input.LA(2) ) { case '=': alt1=32; break; case '-': alt1=27; break; default: alt1=9;} break; case '+': switch ( input.LA(2) ) { case '=': alt1=30; break; case '+': alt1=26; break; default: alt1=10;} break; case '|': int LA1_11 = input.LA(2); if ( LA1_11=='|' ) { alt1=23; } else { alt1=11;} break; case ',': alt1=12; break; case '{': alt1=13; break; case '}': alt1=14; break; case '[': alt1=15; break; case ']': alt1=16; break; case '=': switch ( input.LA(2) ) { case '/': alt1=37; break; case '=': alt1=29; break; case '+': alt1=31; break; case '-': alt1=33; break; case '*': alt1=35; break; default: alt1=17;} break; case '/': int LA1_18 = input.LA(2); if ( LA1_18=='=' ) { alt1=36; } else { alt1=18;} break; case '(': alt1=19; break; case ')': alt1=20; break; case '\'': alt1=21; break; case '\\': alt1=22; break; case '<': alt1=25; break; case '>': alt1=28; break; default: if (backtracking>0) {failed=true; return ;} NoViableAltException nvae = new NoViableAltException("916:1: MISC : ( \'!\' | \'@\' | \'$\' | \'%\' | \'^\' | \'&\' | \'*\' | \'_\' | \'-\' | \'+\' | \'|\' | \',\' | \'{\' | \'}\' | \'[\' | \']\' | \'=\' | \'/\' | \'(\' | \')\' | \'\\\'\' | \'\\\\\' | \'||\' | \'&&\' | \'<<<\' | \'++\' | \'--\' | \'>>>\' | \'==\' | \'+=\' | \'=+\' | \'-=\' | \'=-\' | \'*=\' | \'=*\' | \'/=\' | \'=/\' );", 1, 0, input); throw nvae; } switch (alt1) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:917:17: '!' { match('!'); if (failed) return ; } break; case 2 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:917:23: '@' { match('@'); if (failed) return ; } break; case 3 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:917:29: '$' { match('$'); if (failed) return ; } break; case 4 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:917:35: '%' { match('%'); if (failed) return ; } break; case 5 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:917:41: '^' { match('^'); if (failed) return ; } break; case 6 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:917:47: '&' { match('&'); if (failed) return ; } break; case 7 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:917:53: '*' { match('*'); if (failed) return ; } break; case 8 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:917:59: '_' { match('_'); if (failed) return ; } break; case 9 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:917:65: '-' { match('-'); if (failed) return ; } break; case 10 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:917:71: '+' { match('+'); if (failed) return ; } break; case 11 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:918:19: '|' { match('|'); if (failed) return ; } break; case 12 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:918:25: ',' { match(','); if (failed) return ; } break; case 13 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:918:31: '{' { match('{'); if (failed) return ; } break; case 14 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:918:37: '}' { match('}'); if (failed) return ; } break; case 15 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:918:43: '[' { match('['); if (failed) return ; } break; case 16 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:918:49: ']' { match(']'); if (failed) return ; } break; case 17 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:918:55: '=' { match('='); if (failed) return ; } break; case 18 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:918:61: '/' { match('/'); if (failed) return ; } break; case 19 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:918:67: '(' { match('('); if (failed) return ; } break; case 20 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:918:73: ')' { match(')'); if (failed) return ; } break; case 21 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:918:79: '\'' { match('\''); if (failed) return ; } break; case 22 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:918:86: '\\' { match('\\'); if (failed) return ; } break; case 23 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:919:19: '||' { match("||"); if (failed) return ; } break; case 24 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:919:26: '&&' { match("&&"); if (failed) return ; } break; case 25 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:919:33: '<<<' { match("<<<"); if (failed) return ; } break; case 26 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:919:41: '++' { match("++"); if (failed) return ; } break; case 27 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:919:48: '--' { match("--"); if (failed) return ; } break; case 28 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:919:55: '>>>' { match(">>>"); if (failed) return ; } break; case 29 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:919:63: '==' { match("=="); if (failed) return ; } break; case 30 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:919:70: '+=' { match("+="); if (failed) return ; } break; case 31 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:919:77: '=+' { match("=+"); if (failed) return ; } break; case 32 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:919:84: '-=' { match("-="); if (failed) return ; } break; case 33 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:919:91: '=-' { match("=-"); if (failed) return ; } break; case 34 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:919:97: '*=' { match("*="); if (failed) return ; } break; case 35 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:919:104: '=*' { match("=*"); if (failed) return ; } break; case 36 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:920:19: '/=' { match("/="); if (failed) return ; } break; case 37 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:920:26: '=/' { match("=/"); if (failed) return ; } break; } if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);} } finally { if ( backtracking>0 ) { memoize(input, 44, MISC_StartIndex); } } }
6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/db9ec7bad93dfc15e8ce115941d6e9f0749d5a10/RuleParserLexer.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParserLexer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 312, 7492, 2312, 1435, 1216, 9539, 288, 3639, 509, 20806, 2312, 67, 16792, 273, 810, 18, 1615, 5621, 3639, 775, 288, 5411, 509, 618, 273, 20806, 2312, 31, 5411, 509, 787, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 312, 7492, 2312, 1435, 1216, 9539, 288, 3639, 509, 20806, 2312, 67, 16792, 273, 810, 18, 1615, 5621, 3639, 775, 288, 5411, 509, 618, 273, 20806, 2312, 31, 5411, 509, 787, 273, ...
writeSuccessFractionCell(p, buf); writePersistenceCell(p, buf); writeKeyCell(p.getFinalURI(), buf); writeRowEnd(buf); } writeTableEnd(buf); }
writeProgressFractionCell(p, buf); writePersistenceCell(p, buf); writeKeyCell(p.getFinalURI(), buf); writeRowEnd(buf); } writeTableEnd(buf); } writeBigEnding(buf);
public void handleGet(URI uri, ToadletContext ctx) throws ToadletContextClosedException, IOException, RedirectException { StringBuffer buf = new StringBuffer(2048); ctx.getPageMaker().makeHead(buf, "Queued Requests"); // First, get the queued requests, and separate them into different types. LinkedList completedDownloadToDisk = new LinkedList(); LinkedList completedDownloadToTemp = new LinkedList(); LinkedList completedUpload = new LinkedList(); LinkedList completedDirUpload = new LinkedList(); LinkedList failedDownload = new LinkedList(); LinkedList failedUpload = new LinkedList(); LinkedList failedDirUpload = new LinkedList(); LinkedList uncompletedDownload = new LinkedList(); LinkedList uncompletedUpload = new LinkedList(); LinkedList uncompletedDirUpload = new LinkedList(); ClientRequest[] reqs = fcp.getGlobalRequests(); Logger.minor(this, "Request count: "+reqs.length); for(int i=0;i<reqs.length;i++) { ClientRequest req = reqs[i]; if(req instanceof ClientGet) { ClientGet cg = (ClientGet) req; if(cg.hasSucceeded()) { if(cg.isDirect()) completedDownloadToTemp.add(cg); else if(cg.isToDisk()) completedDownloadToDisk.add(cg); else // FIXME Logger.error(this, "Don't know what to do with "+cg); } else if(cg.hasFinished()) { failedDownload.add(cg); } else { uncompletedDownload.add(cg); } } else if(req instanceof ClientPut) { ClientPut cp = (ClientPut) req; if(cp.hasSucceeded()) { completedUpload.add(cp); } else if(cp.hasFinished()) { failedUpload.add(cp); } else { uncompletedUpload.add(cp); } } else if(req instanceof ClientPutDir) { ClientPutDir cp = (ClientPutDir) req; if(cp.hasSucceeded()) { completedDirUpload.add(cp); } else if(cp.hasFinished()) { failedDirUpload.add(cp); } else { uncompletedDirUpload.add(cp); } } } if(!(completedDownloadToTemp.isEmpty() && completedDownloadToDisk.isEmpty() && completedUpload.isEmpty() && completedDirUpload.isEmpty())) { writeBigHeading("Completed requests", buf); if(!completedDownloadToTemp.isEmpty()) { writeTableHead("Completed downloads to temporary space", new String[] { "", "Identifier", "Size", "Type", "Download", "Persistence", "Key" }, buf ); for(Iterator i = completedDownloadToTemp.iterator();i.hasNext();) { ClientGet p = (ClientGet) i.next(); writeRowStart(buf); writeDeleteCell(p, buf); writeIdentifierCell(p, p.getURI(), buf); writeSizeCell(p.getDataSize(), buf); writeTypeCell(p.getMIMEType(), buf); writeDownloadCell(p, buf); writePersistenceCell(p, buf); writeKeyCell(p.getURI(), buf); writeRowEnd(buf); } writeTableEnd(buf); } if(!completedDownloadToDisk.isEmpty()) { writeTableHead("Completed downloads to disk", new String[] { "", "Identifier", "Filename", "Size", "Type", "Download", "Persistence", "Key" }, buf); for(Iterator i=completedDownloadToDisk.iterator();i.hasNext();) { ClientGet p = (ClientGet) i.next(); writeRowStart(buf); writeDeleteCell(p, buf); writeIdentifierCell(p, p.getURI(), buf); writeFilenameCell(p.getDestFilename(), buf); writeSizeCell(p.getDataSize(), buf); writeTypeCell(p.getMIMEType(), buf); writeDownloadCell(p, buf); writePersistenceCell(p, buf); writeKeyCell(p.getURI(), buf); writeRowEnd(buf); } writeTableEnd(buf); } if(!completedUpload.isEmpty()) { writeTableHead("Completed uploads", new String[] { "", "Key", "Filename", "Size", "Type", "Persistence", "Identifier" }, buf); for(Iterator i=completedUpload.iterator();i.hasNext();) { ClientPut p = (ClientPut) i.next(); writeRowStart(buf); writeDeleteCell(p, buf); writeIdentifierCell(p, p.getFinalURI(), buf); if(p.isDirect()) writeDirectCell(buf); else writeFilenameCell(p.getOrigFilename(), buf); writeSizeCell(p.getDataSize(), buf); writeTypeCell(p.getMIMEType(), buf); writePersistenceCell(p, buf); writeKeyCell(p.getFinalURI(), buf); writeRowEnd(buf); } writeTableEnd(buf); } if(!completedDirUpload.isEmpty()) { // FIXME include filename?? writeTableHead("Completed directory uploads", new String[] { "", "Identifier", "Files", "Total Size", "Persistence", "Key" }, buf); for(Iterator i=completedUpload.iterator();i.hasNext();) { ClientPutDir p = (ClientPutDir) i.next(); writeRowStart(buf); writeDeleteCell(p, buf); writeIdentifierCell(p, p.getFinalURI(), buf); writeNumberCell(p.getNumberOfFiles(), buf); writeSizeCell(p.getTotalDataSize(), buf); writePersistenceCell(p, buf); writeKeyCell(p.getFinalURI(), buf); writeRowEnd(buf); } writeTableEnd(buf); } } /* FIXME color-coded progress bars. * It would be really nice to have a color-coded progress bar. * We can then show what part is successful, what part isn't tried yet, * what part has each different well known error code... */ if(!(failedDownload.isEmpty() && failedUpload.isEmpty())) { writeBigHeading("Failed requests", buf); if(!failedDownload.isEmpty()) { writeTableHead("Failed downloads", new String[] { "", "Identifier", "Filename", "Size", "Type", "Success", "Reason", "Persistence", "Key" }, buf); for(Iterator i=failedDownload.iterator();i.hasNext();) { ClientGet p = (ClientGet) i.next(); writeRowStart(buf); writeDeleteCell(p, buf); writeIdentifierCell(p, p.getURI(), buf); if(p.isDirect()) writeDirectCell(buf); else writeFilenameCell(p.getDestFilename(), buf); writeSizeCell(p.getDataSize(), buf); writeTypeCell(p.getMIMEType(), buf); writeSuccessFractionCell(p, buf); writeFailureReasonCell(p, buf); writePersistenceCell(p, buf); writeKeyCell(p.getURI(), buf); writeRowEnd(buf); } writeTableEnd(buf); } if(!failedUpload.isEmpty()) { writeTableHead("Failed uploads", new String[] { "", "Identifier", "Filename", "Size", "Type", "Success", "Reason", "Persistence", "Key" }, buf); for(Iterator i=failedUpload.iterator();i.hasNext();) { ClientPut p = (ClientPut) i.next(); writeRowStart(buf); writeDeleteCell(p, buf); writeIdentifierCell(p, p.getFinalURI(), buf); if(p.isDirect()) writeDirectCell(buf); else writeFilenameCell(p.getOrigFilename(), buf); writeSizeCell(p.getDataSize(), buf); writeTypeCell(p.getMIMEType(), buf); writeSuccessFractionCell(p, buf); writeFailureReasonCell(p, buf); writePersistenceCell(p, buf); writeKeyCell(p.getFinalURI(), buf); writeRowEnd(buf); } writeTableEnd(buf); } if(!failedDirUpload.isEmpty()) { writeTableHead("Failed directory uploads", new String[] { "", "Identifier", "Files", "Total Size", "Success", "Reason", "Persistence", "Key" }, buf); for(Iterator i=failedDirUpload.iterator();i.hasNext();) { ClientPutDir p = (ClientPutDir) i.next(); writeRowStart(buf); writeDeleteCell(p, buf); writeIdentifierCell(p, p.getFinalURI(), buf); writeNumberCell(p.getNumberOfFiles(), buf); writeSizeCell(p.getTotalDataSize(), buf); writeSuccessFractionCell(p, buf); writeFailureReasonCell(p, buf); writePersistenceCell(p, buf); writeKeyCell(p.getFinalURI(), buf); writeRowEnd(buf); } writeTableEnd(buf); } } if(!(uncompletedDownload.isEmpty() && uncompletedUpload.isEmpty() && uncompletedDirUpload.isEmpty())) { writeBigHeading("Requests in progress", buf); if(!uncompletedDownload.isEmpty()) { writeTableHead("Downloads in progress", new String[] { "", "Identifier", "Filename", "Size", "Type", "Success", "Persistence", "Key" }, buf); for(Iterator i = uncompletedDownload.iterator();i.hasNext();) { ClientGet p = (ClientGet) i.next(); writeRowStart(buf); writeDeleteCell(p, buf); writeIdentifierCell(p, p.getURI(), buf); if(p.isDirect()) writeDirectCell(buf); else writeFilenameCell(p.getDestFilename(), buf); writeSizeCell(p.getDataSize(), buf); writeTypeCell(p.getMIMEType(), buf); writeSuccessFractionCell(p, buf); writePersistenceCell(p, buf); writeKeyCell(p.getURI(), buf); writeRowEnd(buf); } writeTableEnd(buf); } if(!uncompletedUpload.isEmpty()) { writeTableHead("Uploads in progress", new String[] { "", "Identifier", "Filename", "Size", "Type", "Success", "Persistence", "Key" }, buf); for(Iterator i = uncompletedUpload.iterator();i.hasNext();) { ClientPut p = (ClientPut) i.next(); writeRowStart(buf); writeDeleteCell(p, buf); writeIdentifierCell(p, p.getFinalURI(), buf); if(p.isDirect()) writeDirectCell(buf); else writeFilenameCell(p.getOrigFilename(), buf); writeSizeCell(p.getDataSize(), buf); writeTypeCell(p.getMIMEType(), buf); writeSuccessFractionCell(p, buf); writePersistenceCell(p, buf); writeKeyCell(p.getFinalURI(), buf); writeRowEnd(buf); } writeTableEnd(buf); } if(!uncompletedDirUpload.isEmpty()) { writeTableHead("Directory uploads in progress", new String[] { "", "Identifier", "Files", "Total Size", "Success", "Persistence", "Key" }, buf); for(Iterator i=uncompletedDirUpload.iterator();i.hasNext();) { ClientPutDir p = (ClientPutDir) i.next(); writeRowStart(buf); writeDeleteCell(p, buf); writeIdentifierCell(p, p.getFinalURI(), buf); writeNumberCell(p.getNumberOfFiles(), buf); writeSizeCell(p.getTotalDataSize(), buf); writeSuccessFractionCell(p, buf); writePersistenceCell(p, buf); writeKeyCell(p.getFinalURI(), buf); writeRowEnd(buf); } writeTableEnd(buf); } } ctx.getPageMaker().makeTail(buf); this.writeReply(ctx, 200, "text/html", "OK", buf.toString()); }
51738 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51738/2a50af2c7d1c8c3a5ad945e6a509003db2cd8d7f/QueueToadlet.java/buggy/src/freenet/clients/http/QueueToadlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1640, 967, 12, 3098, 2003, 16, 2974, 361, 1810, 1042, 1103, 13, 225, 202, 15069, 2974, 361, 1810, 1042, 7395, 503, 16, 1860, 16, 9942, 503, 288, 9506, 202, 780, 1892, 168...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1640, 967, 12, 3098, 2003, 16, 2974, 361, 1810, 1042, 1103, 13, 225, 202, 15069, 2974, 361, 1810, 1042, 7395, 503, 16, 1860, 16, 9942, 503, 288, 9506, 202, 780, 1892, 168...
getClass().getResourceAsStream( "izpack_install_unix_template.xml" ), izPackInput, true );
getClass().getResourceAsStream( UNIX_INSTALL ), izPackInput, true );
private void doIzPackFiles() throws MojoFailureException { // ------------------------------------------------------------------- // For windows we include use a different template file than for unix // if the project does not supply one. We also add the windows short- // cuts file template as well in the same fashion. Also a native dll // is deposited outside of the image folder to create windows shortcuts // ------------------------------------------------------------------- if ( target.getOsFamily().equals( "windows" ) ) { // handle the installer file if ( target.getIzPackInstallFile().exists() ) { try { MojoHelperUtils.copyAsciiFile( mymojo, filterProperties, target.getIzPackInstallFile(), izPackInput, true ); } catch ( IOException e ) { mymojo.getLog().error( "Failed to copy project supplied izpack install file template " + target.getIzPackInstallFile() + " into position " + izPackInput, e ); } if ( mymojo.getLog().isInfoEnabled() ) { mymojo.getLog().info( "Using project supplied installer configuration file: " + target.getIzPackInstallFile() ); } } else { try { MojoHelperUtils.copyAsciiFile( mymojo, filterProperties, getClass().getResourceAsStream( "izpack_install_windows_template.xml" ), izPackInput, true ); } catch ( IOException e ) { mymojo.getLog().error( "Failed to copy bundled izpack windows install file " + getClass().getResource( "izpack_install_windows_template.xml" ) + " into position " + izPackInput, e ); } if ( mymojo.getLog().isInfoEnabled() ) { mymojo.getLog().info( "Using bundled installer configuration file: " + getClass().getResource( "izpack_install_windows_template.xml" ) ); } } // handle the windows shortcuts file if ( target.getIzPackShortcutsWindowsFile().exists() ) { try { MojoHelperUtils.copyAsciiFile( mymojo, filterProperties, target.getIzPackShortcutsWindowsFile(), izPackWindowsShortcuts, true ); } catch ( IOException e ) { mymojo.getLog().error( "Failed to copy project supplied izpack windows shortcuts file " + target.getIzPackShortcutsWindowsFile() + " into position " + izPackWindowsShortcuts, e ); } if ( mymojo.getLog().isInfoEnabled() ) { mymojo.getLog().info( "Using project supplied windows shortcuts configuration file: " + target.getIzPackShortcutsWindowsFile() ); } } else { try { MojoHelperUtils.copyAsciiFile( mymojo, filterProperties, getClass().getResourceAsStream( "izpack_install_shortcuts_windows.xml" ), izPackWindowsShortcuts, true ); } catch ( IOException e ) { mymojo.getLog().error( "Failed to copy bundled izpack windows shortcuts file " + getClass().getResource( "izpack_install_shortcuts_windows.xml" ) + " into position " + izPackWindowsShortcuts, e ); } if ( mymojo.getLog().isInfoEnabled() ) { mymojo.getLog().info( "Using bundled windows shortcuts configuration file: " + getClass().getResource( "izpack_install_shortcuts_windows.xml" ) ); } } // copy the ShellLink creation dll into the images folder try { MojoHelperUtils.copyBinaryFile( getClass().getResourceAsStream( "ShellLink.dll" ), shellLinkDll ); } catch ( IOException e ) { mymojo.getLog().error( "Failed to copy izpack shellLinkDll file " + getClass().getResource( "ShellLink.dll" ) + " into position " + shellLinkDll, e ); } } else if ( target.getOsFamily().equals( "unix" ) || target.getOsFamily().equals( "mac" ) ) { if ( target.getIzPackInstallFile().exists() ) { try { MojoHelperUtils.copyAsciiFile( mymojo, filterProperties, target.getIzPackInstallFile(), izPackInput, true ); } catch ( IOException e ) { mymojo.getLog().error( "Failed to copy project supplied izpack input file " + target.getIzPackInstallFile() + " into position " + izPackInput, e ); } if ( mymojo.getLog().isInfoEnabled() ) { mymojo.getLog().info( "Using project supplied installer configuration file: " + target.getIzPackInstallFile() ); } } else { try { MojoHelperUtils.copyAsciiFile( mymojo, filterProperties, getClass().getResourceAsStream( "izpack_install_unix_template.xml" ), izPackInput, true ); } catch ( IOException e ) { mymojo.getLog().error( "Failed to copy bundled izpack input file for unix " + getClass().getResource( "izpack_install_unix_template.xml" ) + " into position " + izPackInput, e ); } if ( mymojo.getLog().isInfoEnabled() ) { mymojo.getLog().info( "Using bundled installer configuration file: " + getClass().getResource( "izpack_install_unix_template.xml" ) ); } } if ( target.getIzPackShortcutsUnixFile().exists() ) { try { MojoHelperUtils.copyAsciiFile( mymojo, filterProperties, target.getIzPackShortcutsUnixFile(), izPackUnixShortcuts, true ); } catch ( IOException e ) { mymojo.getLog().error( "Failed to copy project supplied izpack unix shortcuts file " + target.getIzPackShortcutsUnixFile() + " into position " + izPackUnixShortcuts, e ); } if ( mymojo.getLog().isInfoEnabled() ) { mymojo.getLog().info( "Using project supplied unix shortcuts configuration file: " + target.getIzPackShortcutsUnixFile() ); } } else { try { MojoHelperUtils.copyAsciiFile( mymojo, filterProperties, getClass().getResourceAsStream( "izpack_install_shortcuts_unix.xml" ), izPackUnixShortcuts, true ); } catch ( IOException e ) { mymojo.getLog().error( "Failed to copy bundled izpack unix shortcuts file " + getClass().getResource( "izpack_install_shortcuts_unix.xml" ) + " into position " + izPackUnixShortcuts, e ); } if ( mymojo.getLog().isInfoEnabled() ) { mymojo.getLog().info( "Using bundled unix shortcuts configuration file: " + getClass().getResource( "izpack_install_shortcuts_unix.xml" ) ); } } try { MojoHelperUtils.copyAsciiFile( mymojo, filterProperties, getClass().getResourceAsStream( "../template.init" ), layout.getInitScript(), true ); } catch ( IOException e ) { mymojo.getLog().error( "Failed to copy init script " + getClass().getResource( "../template.init" ) + " into position " + layout.getInitScript(), e ); } } if ( target.getIzPackUserInputFile().exists() ) { try { MojoHelperUtils.copyAsciiFile( mymojo, filterProperties, target.getIzPackUserInputFile(), izPackUserInput, true ); } catch ( IOException e ) { mymojo.getLog().error( "Failed to copy project supplied izpack input file " + target.getIzPackUserInputFile() + " into position " + izPackUserInput, e ); } if ( mymojo.getLog().isInfoEnabled() ) { mymojo.getLog().info( "Using project supplied user input configuration file: " + target.getIzPackUserInputFile() ); } } else { try { MojoHelperUtils.copyAsciiFile( mymojo, filterProperties, getClass().getResourceAsStream( "izpack_install_user_input.xml" ), izPackUserInput, true ); } catch ( IOException e ) { mymojo.getLog().error( "Failed to copy bundled izpack input file " + getClass().getResource( "izpack_install_user_input.xml" ) + " into position " + izPackUserInput, e ); } if ( mymojo.getLog().isInfoEnabled() ) { mymojo.getLog().info( "Using bundled user input configuration file: " + target.getIzPackUserInputFile() ); } } }
10677 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10677/8bcee7a23047fc9a2784bdb6a8bda8bf02e4ba60/IzPackInstallerCommand.java/buggy/standalone/installers/plugin/src/main/java/org/apache/directory/server/standalone/installers/izpack/IzPackInstallerCommand.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 741, 45, 94, 4420, 2697, 1435, 1216, 15931, 14389, 565, 288, 3639, 368, 8879, 413, 3639, 368, 2457, 9965, 732, 2341, 999, 279, 3775, 1542, 585, 2353, 364, 9753, 3639, 368, 309,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 741, 45, 94, 4420, 2697, 1435, 1216, 15931, 14389, 565, 288, 3639, 368, 8879, 413, 3639, 368, 2457, 9965, 732, 2341, 999, 279, 3775, 1542, 585, 2353, 364, 9753, 3639, 368, 309,...
totalFilled+=filled;
total_filled+=filled;
public long parseNext() throws IOException { long totalFilled=-1; if (_buffer==null) { _buffer=_buffers.getBuffer(Ajp13Packet.MAX_PACKET_SIZE); _ajpRequestPacket.setBuffer(_buffer); } if (_state==STATE_END) throw new IllegalStateException("STATE_END"); int length=_buffer.length(); if (length==0) { int filled=-1; if (_buffer.markIndex()==0&&_buffer.putIndex()==_buffer.capacity()) throw new IOException("FULL"); if (_endp!=null&&filled<=0) { if (_buffer.space()==0) throw new IOException("FULL"); try { if (totalFilled<0) totalFilled=0; filled=_endp.fill(_buffer); if (filled>0) totalFilled+=filled; } catch (IOException ioe) { Log.debug(ioe); reset(true); throw (ioe instanceof EofException)?ioe:new EofException(ioe); } } if (filled<0) { if (_state==STATE_EOF_CONTENT) { _state=STATE_END; return totalFilled; } else { reset(true); throw new EofException(); } } length=_buffer.length(); } // Parse Header while (_state<STATE_END&&length-->0) { _ajpRequestPacket.next(); switch (_state) { case STATE_START: if (_ajpRequestPacket.parsedInt()) { int _magic=_ajpRequestPacket.getInt(); if (_magic!=Ajp13RequestHeaders.MAGIC) { throw new IOException("Bad AJP13 rcv packet: "+"0x"+Integer.toHexString(_magic)+" expected "+"0x" +Integer.toHexString(Ajp13RequestHeaders.MAGIC)+" "+this); } _state=STATE_PACKET_LENGTH; } break; case STATE_PACKET_LENGTH: if (_ajpRequestPacket.parsedInt()) { int packetLength=_ajpRequestPacket.getInt(); if (packetLength>Ajp13Packet.MAX_PACKET_SIZE) throw new IOException("AJP13 packet ("+packetLength+"bytes) too large for buffer"); _state=STATE_PACKET_TYPE; } break; case STATE_PACKET_TYPE: byte packetType=_ajpRequestPacket.getByte(); switch (packetType) { case Ajp13Packet.FORWARD_REQUEST_ORDINAL: _handler.startForwardRequest(); _state=STATE_REQUEST_METHOD; break; case Ajp13Packet.SHUTDOWN_ORDINAL: // Log.warn("AJP13 SHUTDOWN not supported!"); // break; case Ajp13Packet.CPING_REQUEST_ORDINAL: // handler.cpingRequest(); // break; default: // XXX Throw an Exception here?? Close connection! Log.warn("AJP13 message type ({}) not supported/regonised as a "+"container request",Integer.toString(packetType)); } break; case STATE_REQUEST_METHOD: _handler.parsedMethod(_ajpRequestPacket.getMethod()); _state=STATE_REQUEST_PROTOCOL; break; case STATE_REQUEST_PROTOCOL: if (_ajpRequestPacket.parsedString()) { _handler.parsedProtocol(_ajpRequestPacket.getString()); _state=STATE_REQUEST_URI; } break; case STATE_REQUEST_URI: if (_ajpRequestPacket.parsedString()) { _handler.parsedUri(_ajpRequestPacket.getString()); _state=STATE_REQUEST_REMOTE_ADDR; } break; case STATE_REQUEST_REMOTE_ADDR: if (_ajpRequestPacket.parsedString()) { _handler.parsedRemoteAddr(_ajpRequestPacket.getString()); _state=STATE_REQUEST_REMOTE_HOST; } break; case STATE_REQUEST_REMOTE_HOST: if (_ajpRequestPacket.parsedString()) { _handler.parsedRemoteHost(_ajpRequestPacket.getString()); _state=STATE_REQUEST_SERVER_NAME; } break; case STATE_REQUEST_SERVER_NAME: if (_ajpRequestPacket.parsedString()) { _handler.parsedServerName(_ajpRequestPacket.getString()); _state=STATE_REQUEST_SERVER_PORT; } break; case STATE_REQUEST_SERVER_PORT: if (_ajpRequestPacket.parsedInt()) { _handler.parsedServerPort(_ajpRequestPacket.getInt()); _state=STATE_REQUEST_SSL_SECURE; } break; case STATE_REQUEST_SSL_SECURE: _handler.parsedSslSecure(_ajpRequestPacket.getBool()); _state=STATE_REQUEST_HEADERS; break; case STATE_REQUEST_HEADERS: if (_ajpRequestPacket.parsedHeaderCount()) { _state=_ajpRequestPacket.parsedHeaders()?STATE_REQUEST_ATTR:STATE_REQUEST_HEADER_NAME; } break; case STATE_REQUEST_HEADER_NAME: if (_ajpRequestPacket.parsedHeaderName()) { _state=STATE_REQUEST_HEADER_VALUE; } break; case STATE_REQUEST_HEADER_VALUE: if (_ajpRequestPacket.parsedString()) { _handler.parsedHeader(_ajpRequestPacket.getHeaderName(),_ajpRequestPacket.getString()); _state=_ajpRequestPacket.parsedHeaders()?STATE_REQUEST_ATTR:STATE_REQUEST_HEADER_NAME; } break; case STATE_REQUEST_ATTR: if ((0xFF&_ajpRequestPacket.parsedAttributeType())!=0xFF) { _state=STATE_REQUEST_ATTR_VALUE; } else { _state=STATE_END; } break; case STATE_REQUEST_ATTR_VALUE: if (_ajpRequestPacket.parsedString()) { _state=STATE_REQUEST_ATTR; switch (_ajpRequestPacket.getAttributeType()) { // XXX How does this plug into the web containers // authentication? case Ajp13RequestHeaders.REMOTE_USER_ATTR: case Ajp13RequestHeaders.AUTH_TYPE_ATTR: break; case Ajp13RequestHeaders.QUERY_STRING_ATTR: _handler.parsedQueryString(_ajpRequestPacket.getString()); break; case Ajp13RequestHeaders.JVM_ROUTE_ATTR: // XXX Using old Jetty 5 key, should change! // Note used in // org.mortbay.jetty.servlet.HashSessionIdManager _handler.parsedRequestAttribute("org.mortbay.http.ajp.JVMRoute",_ajpRequestPacket.getString()); break; case Ajp13RequestHeaders.SSL_CERT_ATTR: _handler.parsedRequestAttribute("javax.servlet.request.cipher_suite",_ajpRequestPacket.getString()); break; case Ajp13RequestHeaders.SSL_CIPHER_ATTR: // XXX Implement! Investigate // SslSocketConnector.customize() break; case Ajp13RequestHeaders.SSL_SESSION_ATTR: _handler.parsedRequestAttribute("javax.servlet.request.ssl_session",_ajpRequestPacket.getString()); break; case Ajp13RequestHeaders.REQUEST_ATTR: _state=STATE_REQUEST_ATTR_VALUE2; break; // New Jk API? // Check if experimental or can they assumed to be // supported case Ajp13RequestHeaders.SSL_KEYSIZE_ATTR: _handler.parsedRequestAttribute("javax.servlet.request.key_size",_ajpRequestPacket.getString()); break; // Used to lock down jk requests with a secreate // key. case Ajp13RequestHeaders.SECRET_ATTR: // XXX Investigate safest way to deal with // this... // should this tie into shutdown packet? break; case Ajp13RequestHeaders.STORED_METHOD_ATTR: // XXX Confirm this should really overide // previously parsed method? // _handler.parsedMethod(Ajp13PacketMethods.CACHE.get(_ajpRequestPacket.getString())); break; // Legacy codes, simply ignore case Ajp13RequestHeaders.CONTEXT_ATTR: case Ajp13RequestHeaders.SERVLET_PATH_ATTR: default: Log.warn("Unsupported Ajp13 Request Attribute {}:{}",new Byte(_ajpRequestPacket.getAttributeType()),_ajpRequestPacket .getString()); break; } _state=STATE_REQUEST_ATTR; } break; case STATE_REQUEST_ATTR_VALUE2: if (_ajpRequestPacket.parsedString()) { _handler.parsedRequestAttribute(_ajpRequestPacket.getAttributeKey(),_ajpRequestPacket.getString()); _state=STATE_REQUEST_ATTR; } break; default: throw new IllegalStateException("State not regonised {"+_state+"}"); } } // ajp header is complete handle the request here _handler.headerComplete(); return totalFilled; }
13242 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13242/ef0eae17f348a3019d9cbbfe54c2e634788026d3/Ajp13Parser.java/buggy/extras/ajp/src/main/java/org/mortbay/jetty/ajp/Ajp13Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1525, 1109, 2134, 1435, 1216, 1860, 565, 288, 3639, 1525, 2078, 29754, 29711, 21, 31, 3639, 309, 261, 67, 4106, 631, 2011, 13, 3639, 288, 5411, 389, 4106, 33, 67, 28101, 18, 588, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1525, 1109, 2134, 1435, 1216, 1860, 565, 288, 3639, 1525, 2078, 29754, 29711, 21, 31, 3639, 309, 261, 67, 4106, 631, 2011, 13, 3639, 288, 5411, 389, 4106, 33, 67, 28101, 18, 588, ...
OutputStream out = response.getOutputStream(); byte[] buffer = new byte[8192]; int read; while ((read = in.read(buffer)) >= 0 ) { out.write(buffer, 0, read);
try { in.close(); } catch (IOException e) {
private void spoolResource(WebdavRequest request, WebdavResponse response, DavResource resource, boolean sendContent) throws IOException { if (!resource.exists()) { response.sendError(HttpServletResponse.SC_NOT_FOUND); return; } long modTime = resource.getModificationTime(); if (modTime != DavResource.UNDEFINED_MODIFICATIONTIME && modTime <= request.getDateHeader("If-Modified-Since")) { // resource has not been modified since the time indicated in the // 'If-Modified-Since' header. response.setStatus(HttpServletResponse.SC_NOT_MODIFIED); return; } DavProperty lastMod = resource.getProperty(DavPropertyName.GETLASTMODIFIED); if (lastMod != null) { response.setHeader("Last-Modified", String.valueOf(lastMod.getValue())); } DavProperty etag = resource.getProperty(DavPropertyName.GETETAG); if (etag != null) { response.setHeader("ETag", String.valueOf(etag.getValue())); } DavProperty contentType = resource.getProperty(DavPropertyName.GETCONTENTTYPE); if (contentType != null) { response.setHeader("Content-Type", String.valueOf(contentType.getValue())); } DavProperty contentLength = resource.getProperty(DavPropertyName.GETCONTENTLENGTH); if (contentLength != null) { try { int length = Integer.parseInt(contentLength.getValue()+""); if (length > 0) { response.setIntHeader("Content-Length", length); } } catch (NumberFormatException e) { log.error("Could not build content length from property value '" + contentLength.getValue() + "'"); } } // spool content in case of 'GET' request if (sendContent) { InputStream in = resource.getStream(); if (in != null) { OutputStream out = response.getOutputStream(); byte[] buffer = new byte[8192]; int read; while ((read = in.read(buffer)) >= 0 ) { out.write(buffer, 0, read); } in.close(); } } response.flushBuffer(); }
48761 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48761/e84cea46a7876af1ac481b9723e0185e8963a1f6/AbstractWebdavServlet.java/buggy/contrib/jcr-server/server/src/java/org/apache/jackrabbit/server/AbstractWebdavServlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1694, 1371, 1420, 12, 4079, 20752, 691, 590, 16, 2999, 20752, 1064, 766, 16, 1171, 9079, 463, 842, 1420, 1058, 16, 1250, 1366, 1350, 13, 5411, 1216, 1860, 288, 3639, 309, 16051...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1694, 1371, 1420, 12, 4079, 20752, 691, 590, 16, 2999, 20752, 1064, 766, 16, 1171, 9079, 463, 842, 1420, 1058, 16, 1250, 1366, 1350, 13, 5411, 1216, 1860, 288, 3639, 309, 16051...
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); } } }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1cc89bd397c0f049e6fa3045916fd6d9a3cdada8/RubyFixnum.java/buggy/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,...
handleMessageRedelivered(message, session); return null;
redeliveryHandler.handleRedelivery(message);
protected List getMessages() throws Exception { // As the session is created outside the transaction, it is not // bound to it yet UMOTransaction tx = TransactionCoordination.getInstance().getTransaction(); if (tx != null) { tx.bindResource(connector.getConnection(), session); } // Retrieve message Message message = consumer.receive(frequency); if (message == null) { if (tx != null) { tx.setRollbackOnly(); } return null; } // Process message if (logger.isDebugEnabled()) { logger.debug("Message received it is of type: " + message.getClass().getName()); logger.debug("Message received on " + message.getJMSDestination() + " (" + message.getJMSDestination().getClass().getName() + ")"); } String correlationId = message.getJMSCorrelationID(); logger.debug("Message CorrelationId is: " + correlationId); logger.info("Jms Message Id is: " + message.getJMSMessageID()); if (message.getJMSRedelivered()) { logger.info("Message with correlationId: " + correlationId + " is redelivered. handing off to Exception Handler"); handleMessageRedelivered(message, session); return null; } if (tx instanceof JmsClientAcknowledgeTransaction) { tx.bindResource(message, null); } UMOMessageAdapter adapter = connector.getMessageAdapter(message); routeMessage(new MuleMessage(adapter)); return null; }
28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/906311ea2a868ed836523a8dc86017a4be15d906/JmsMessageReceiver.java/buggy/providers/jms/src/java/org/mule/providers/jms/JmsMessageReceiver.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 987, 20202, 1435, 1216, 1185, 288, 202, 202, 759, 2970, 326, 1339, 353, 2522, 8220, 326, 2492, 16, 518, 353, 486, 202, 202, 759, 2489, 358, 518, 4671, 3639, 587, 5980, 3342, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 987, 20202, 1435, 1216, 1185, 288, 202, 202, 759, 2970, 326, 1339, 353, 2522, 8220, 326, 2492, 16, 518, 353, 486, 202, 202, 759, 2489, 358, 518, 4671, 3639, 587, 5980, 3342, ...
expandTop = true;
private void createViewer(Composite parent) { // category tree pane...create SWT tree directly to // get single selection mode instead of multi selection. Composite treeParent = new Composite(parent, SWT.NONE); treeParent.setFont(parent.getFont()); GridData data = new GridData(GridData.FILL_BOTH); data.widthHint = SIZING_VIEWER_WIDTH; boolean needsHint = DialogUtil.inRegularFontMode(treeParent.getParent()); //Only give a height hint if the dialog is going to be too small if (needsHint) { data.heightHint = SIZING_LISTS_HEIGHT; } treeParent.setLayoutData(data); GridLayout layout = new GridLayout(1, true); layout.marginHeight = 0; layout.marginWidth = 0; treeParent.setLayout(layout); Label wizardLabel = new Label(treeParent, SWT.NONE); wizardLabel.setFont(parent.getFont()); wizardLabel.setText(WorkbenchMessages.getString("NewWizardNewPage.wizardsLabel")); //$NON-NLS-1$ data = new GridData(GridData.FILL_HORIZONTAL); wizardLabel.setLayoutData(data); Tree tree = new Tree( treeParent, SWT.SINGLE | SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER); viewer = new TreeViewer(tree); contentProvider = new WizardContentProvider(true); viewer.setContentProvider(contentProvider); viewer.setLabelProvider(new WorkbenchLabelProvider()); viewer.setSorter(NewWizardCollectionSorter.INSTANCE); viewer.addSelectionChangedListener(this); viewer.addDoubleClickListener(this); ArrayList inputArray = new ArrayList(); for (int i = 0; i < primaryWizards.length; i++) { inputArray.add(primaryWizards[i]); } if (wizardCategories != null) { if (wizardCategories.getParent(wizardCategories) == null) { Object [] children = wizardCategories.getChildren(); for (int i = 0; i < children.length; i++) { inputArray.add(children[i]); } } else { //inputArray.add(new RootElementProxy(wizardCategories)); inputArray.add(wizardCategories); } } AdaptableList input = new AdaptableList(inputArray); viewer.setInput(input); tree.setFont(parent.getFont()); viewer.addDoubleClickListener(new IDoubleClickListener() { /* * (non-Javadoc) * * @see org.eclipse.jface.viewers.IDoubleClickListener#doubleClick(org.eclipse.jface.viewers.DoubleClickEvent) */ public void doubleClick(DoubleClickEvent event) { IStructuredSelection s = (IStructuredSelection) event.getSelection(); Object element = s.getFirstElement(); if (viewer.isExpandable(element)) { viewer.setExpandedState(element, !viewer.getExpandedState(element)); } else if (element instanceof WorkbenchWizardElement) { page.advanceToNextPage(); } } }); data = new GridData(GridData.FILL_BOTH); tree.setLayoutData(data); }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/649cc7025075bd62f19564473e20fb17ee70ffae/NewWizardNewPage.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/NewWizardNewPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 12320, 3401, 273, 638, 31, 331, 11359, 561, 84, 464, 3401, 273, 638, 31, 15193, 264, 12, 9400, 12320, 3401, 273, 638, 31, 982, 13, 12320, 3401, 273, 638, 31, 288, 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, 1152, 12320, 3401, 273, 638, 31, 331, 11359, 561, 84, 464, 3401, 273, 638, 31, 15193, 264, 12, 9400, 12320, 3401, 273, 638, 31, 982, 13, 12320, 3401, 273, 638, 31, 288, 202, 202, ...
String value)
String[] values)
public void addDC(String element, String qualifier, String lang, String value) { String[] valArray = new String[1]; valArray[0] = value; addDC(element, qualifier, lang, valArray); }
49711 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49711/05021e1c35dbbc0ebe988dac0c342020c5363d6a/Item.java/buggy/dspace/src/org/dspace/content/Item.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 527, 5528, 12, 780, 930, 16, 514, 12327, 16, 514, 3303, 16, 5411, 514, 8526, 924, 13, 565, 288, 3639, 514, 8526, 1244, 1076, 273, 394, 514, 63, 21, 15533, 3639, 1244, 1076, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 527, 5528, 12, 780, 930, 16, 514, 12327, 16, 514, 3303, 16, 5411, 514, 8526, 924, 13, 565, 288, 3639, 514, 8526, 1244, 1076, 273, 394, 514, 63, 21, 15533, 3639, 1244, 1076, ...
{ return style; }
{ return style; }
public String getStyle() { return style; }
1868 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1868/71c78d7920b2b31393f2bd956eca17455acdc37f/ItemTag.java/buggy/dspace/src/org/dspace/app/webui/jsptag/ItemTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 14210, 1435, 202, 95, 202, 202, 2463, 2154, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 14210, 1435, 202, 95, 202, 202, 2463, 2154, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
public void createLocations() throws Exception { // 0. Hold Chromosomes in map by id makeChromosomeMap(); // 1. Find and hold locations of ChromosomeBands on Chromsomes makeChromosomeBandLocations(); // 2. Find and hold locations of Supercontigs on Chromosomes // Create locations of Supercontigs on ChromosomeBands makeSupercontigLocations(); // 3. hold offsets of Contigs on Supercontigs // create locations Contig->ChromosomeBand, Contig->Chromosome makeContigLocations(); // 4. For all BioEntities located on Contigs compute other offsets on all parents Iterator resIter = findLocations(os, Contig.class, BioEntity.class); // create map ChromsomeBands to avoid calling getObjectById // need to keep running query after each commit transaction Map idBands = new HashMap(); Iterator bandIter = PostProcessUtil.selectObjectsOfClass(os, ChromosomeBand.class); while (bandIter.hasNext()) { ChromosomeBand band = (ChromosomeBand) bandIter.next(); idBands.put(band.getId(), band); } LOG.info("built ChromosomeBand id map, size = " + idBands.keySet().size()); // create map of Supercontigs to avoid calling getObjectById // need to keep running query after each commit transaction Map idScs = new HashMap(); Iterator scIter = PostProcessUtil.selectObjectsOfClass(os, Supercontig.class); while (scIter.hasNext()) { Supercontig sc = (Supercontig) scIter.next(); idScs.put(sc.getId(), sc); } LOG.info("built Supercontig id map, size = " + idScs.keySet().size()); // maps from BioEntity to Location Map partialsOnChromosomes = new HashMap(); Map partialsOnSupercontigs = new HashMap(); Map partialsOnChromosomeBands = new HashMap(); i = 0; j = 0; k = 0; long start = System.currentTimeMillis(); osw.beginTransaction(); while (resIter.hasNext()) { i++; ResultsRow rr = (ResultsRow) resIter.next(); Location locBioOnContig = (Location) rr.get(2); //org.intermine.web.LogMe.log("i", "0: " + rr.get(0).getClass().getName() + " " + ((InterMineObject) rr.get(0)).getId()); //org.intermine.web.LogMe.log("i", "1: " + rr.get(1).getClass().getName() + " " + ((InterMineObject) rr.get(1)).getId()); //org.intermine.web.LogMe.log("i", "2: " + rr.get(2).getClass().getName() + " " + ((InterMineObject) rr.get(2)).getId()); Contig contig = (Contig) rr.get(0); BioEntity bio = (BioEntity) rr.get(1); SimpleLoc bioOnContig = new SimpleLoc(contig.getId().intValue(), bio.getId().intValue(), locBioOnContig); // first create location of feature on Chromosome SimpleLoc contigOnChr = (SimpleLoc) contigToChr.get(contig.getId()); Chromosome chr = (Chromosome) chrById.get(new Integer(contigOnChr.getParentId())); Location bioOnChrLoc = createChromosomeLocation(contigOnChr, bioOnContig, chr, bio); //org.intermine.web.LogMe.log("i", "locBioOnContig: " + locBioOnContig); if (locBioOnContig instanceof PartialLocation) { //org.intermine.web.LogMe.log("i", "found PartialLocation: " + locBioOnContig); addToMapOfLists(partialsOnChromosomes, bio, bioOnChrLoc); } else { osw.store(bioOnChrLoc); } SimpleLoc bioOnChr = new SimpleLoc(chr.getId().intValue(), bio.getId().intValue(), bioOnChrLoc); // create location of feature on Supercontig Set scs = (Set) chrToSc.get(chr.getId()); if (scs != null) { //org.intermine.web.LogMe.log("i", scs.size() + " scs"); Iterator iter = scs.iterator(); while (iter.hasNext()) { SimpleLoc scOnChr = (SimpleLoc) iter.next(); //org.intermine.web.LogMe.log("i", scOnChr + " = " + bioOnChr + " ?"); if (overlap(scOnChr, bioOnChr)) { Supercontig sc = (Supercontig) idScs.get(new Integer(scOnChr.getChildId())); //org.intermine.web.LogMe.log("i", "making new Location:"); Location bioOnScLoc = createLocation(sc, scOnChr, bio, bioOnChr); //org.intermine.web.LogMe.log("i", "scOnChr: " + scOnChr); //org.intermine.web.LogMe.log("i", "bioOnChr: " + bioOnChr); //org.intermine.web.LogMe.log("i", "new: " + bioOnScLoc); if (bioOnScLoc instanceof PartialLocation) { //org.intermine.web.LogMe.log("i", "found PartialLocation " + "on Supercontig: " + bioOnScLoc); addToMapOfLists(partialsOnSupercontigs, bio, bioOnScLoc); } else { //org.intermine.web.LogMe.log("i", "storing"); osw.store(bioOnScLoc); } j++; } } } // create location of feature on ChromosomeBand Set bands = (Set) chrToBand.get(chr.getId()); if (bands != null) { //org.intermine.web.LogMe.log("i", bands.size() + " bands"); Iterator iter = bands.iterator(); while (iter.hasNext()) { SimpleLoc bandOnChr = (SimpleLoc) iter.next(); //org.intermine.web.LogMe.log("i", bandOnChr + " = " + bioOnChr + " ?"); if (overlap(bandOnChr, bioOnChr)) { ChromosomeBand band = (ChromosomeBand) idBands.get(new Integer(bandOnChr.getChildId())); //org.intermine.web.LogMe.log("i", "making new Location:"); Location bioOnBandLoc = createLocation(band, bandOnChr, bio, bioOnChr); //org.intermine.web.LogMe.log("i", "bandOnChr: " + bandOnChr); //org.intermine.web.LogMe.log("i", "bioOnChr: " + bioOnChr); //org.intermine.web.LogMe.log("i", "new: " + bioOnBandLoc); if (bioOnBandLoc instanceof PartialLocation) { //org.intermine.web.LogMe.log("i", "found PartialLocation " + "on ChromosomeBand: " + bioOnBandLoc); addToMapOfLists(partialsOnChromosomeBands, bio, bioOnBandLoc); } else { //org.intermine.web.LogMe.log("i", "storing"); osw.store(bioOnBandLoc); } k++; } } } if (i % 100 == 0) { long now = System.currentTimeMillis(); LOG.info("Created " + i + " Chromosome, " + j + " SuperContig locations and " + k + " ChromosomeBand locations (avg = " + ((60000L * i) / (now - start)) + " per minute)"); } } //org.intermine.web.LogMe.log("i", "partialsOnChromosome: " + partialsOnChromosomes); // process partials Locations //org.intermine.web.LogMe.log("i", "processPartials(partialsOnChromosomes):"); processPartials(partialsOnChromosomes); //org.intermine.web.LogMe.log("i", "processPartials(partialsOnSupercontigs):"); processPartials(partialsOnSupercontigs); //org.intermine.web.LogMe.log("i", "processPartials(partialsOnChromosomeBands):"); processPartials(partialsOnChromosomeBands); osw.commitTransaction(); LOG.info("Stored " + i + " Locations between features and Chromosome."); LOG.info("Stored " + j + " Locations between features and Supercontig."); LOG.info("Stored " + k + " Locations between features and ChromosomeBand."); }
29158 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/29158/8c465a4255cec26cc1122af615de75936a040d68/CalculateLocations.java/clean/flymine/model/genomic/src/java/org/flymine/postprocess/CalculateLocations.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6459, 2640, 10985, 1435, 15069, 503, 95, 759, 20, 18, 20586, 30761, 538, 21912, 267, 1458, 1637, 350, 6540, 30761, 16958, 863, 5621, 759, 21, 18, 3125, 464, 21056, 12352, 792, 30761, 16958...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2640, 10985, 1435, 15069, 503, 95, 759, 20, 18, 20586, 30761, 538, 21912, 267, 1458, 1637, 350, 6540, 30761, 16958, 863, 5621, 759, 21, 18, 3125, 464, 21056, 12352, 792, 30761, 16958...
if (dsTablePKCols.isEmpty()) for (final Iterator i = dsTable.getColumns().iterator(); i .hasNext();) { final DataSetColumn dsCol = (DataSetColumn) i.next(); if (dsCol instanceof WrappedColumn) dsTablePKCols.add(dsCol); }
private void generateDataSetTable(final DataSetTableType type, final DataSetTable parentDSTable, final Table realTable, final Relation sourceRelation) { // Create the dataset table. DataSetTable dsTable = null; try { dsTable = new DataSetTable(realTable.getName(), this, type, realTable, sourceRelation); } catch (final Throwable t) { throw new MartBuilderInternalError(t); } // Create the three relation-table pair queues we will work with. The // normal queue holds pairs of relations and tables. The other two hold // a list of relations only, the tables being the FK ends of each // relation. The normal queue has a third object associated with each // entry, which specifies whether to treat the 1:M relations from // the merged table as dimensions or not. final List normalQ = new ArrayList(); final List subclassQ = new ArrayList(); final List dimensionQ = new ArrayList(); // Set up a set of relations that have been followed so far. final Set relationsFollowed = new HashSet(); // Set up a list to hold columns for this table's primary key. final List dsTablePKCols = new ArrayList(); // If the parent dataset table is not null, add columns from it // as appropriate. Dimension tables get just the PK, and an // FK linking them back. Subclass tables get all columns, plus // the PK with FK link. Also add the relations we followed to // get all these columns. AND add all columns from the parent table // which are part of restrictions on this relation. if (parentDSTable != null) { // Make a list to hold the child table's FK cols. final List dsTableFKCols = new ArrayList(); // Get the primary key of the parent DS table. final PrimaryKey parentDSTablePK = parentDSTable.getPrimaryKey(); // Don't follow the parent's relations again. relationsFollowed.addAll(parentDSTable.getUnderlyingRelations()); // Work out restrictions on the source relation. final DataSetRelationRestriction restriction = this .getRestrictedRelationType(sourceRelation); // Loop over each column in the parent table. If this is // a subclass table, add it. If it is a dimension table, // only add it if it is in the PK. In either case, if it // is in the PK, add it both to the child PK and the child FK. for (final Iterator i = parentDSTable.getColumns().iterator(); i .hasNext();) { final DataSetColumn parentDSCol = (DataSetColumn) i.next(); // If this is not a subclass table, we need to filter columns. if (!type.equals(DataSetTableType.MAIN_SUBCLASS)) { // Skip columns that are not in the primary key and not in // the relation restriction. boolean inRestriction = restriction != null && parentDSCol instanceof WrappedColumn && restriction.getFirstTableAliases().keySet() .contains( ((WrappedColumn) parentDSCol) .getWrappedColumn()); boolean inPK = parentDSTablePK.getColumns().contains( parentDSCol); if (!inRestriction && !inPK) continue; } // Otherwise, create a copy of the column. DataSetColumn dsCol; if (parentDSCol instanceof InheritedColumn) dsCol = new InheritedColumn(dsTable, ((InheritedColumn) parentDSCol) .getInheritedColumn()); else dsCol = new InheritedColumn(dsTable, parentDSCol); // Copy the name, too. dsCol.setName(parentDSCol.getName()); // Add the column to the child's PK and FK, if it was in // the parent PK only. if (parentDSTablePK.getColumns().contains(parentDSCol)) { dsTablePKCols.add(dsCol); dsTableFKCols.add(dsCol); } } try { // Create the child FK. final ForeignKey dsTableFK = new GenericForeignKey( dsTableFKCols); dsTable.addForeignKey(dsTableFK); // Link the child FK to the dataset new GenericRelation(parentDSTablePK, dsTableFK, Cardinality.MANY); } catch (final Throwable t) { throw new MartBuilderInternalError(t); } } // Process the table. If a source relation was specified, // ignore the cols in the key in the table that is part of that // source relation, else they'll get duplicated. This will always // be the FK or many end, as that's the only way we can get subclass and // dimension tables. This operation will populate the initial // pairs in the normal, subclass and dimension queues. We only // want dimensions constructed if we are not already constructing // a dimension ourselves. this.processTable(dsTable, dsTablePKCols, realTable, normalQ, subclassQ, dimensionQ, sourceRelation, relationsFollowed, !type .equals(DataSetTableType.DIMENSION)); // Process the normal queue. This merges tables into the dataset // table using the relation specified in each pair in the queue. for (int i = 0; i < normalQ.size(); i++) { final Object[] triple = (Object[]) normalQ.get(i); final Relation mergeSourceRelation = (Relation) triple[0]; final Table mergeTable = (Table) triple[1]; final boolean makeDimensions = ((Boolean) triple[2]).booleanValue(); this.processTable(dsTable, dsTablePKCols, mergeTable, normalQ, subclassQ, dimensionQ, mergeSourceRelation, relationsFollowed, makeDimensions); } // If the primary key is empty, then we must create one, else we // will run into trouble later. Therefore, all tables must contain // unique rows. if (dsTablePKCols.isEmpty()) // Create the PK by adding every wrapped column in the // dataset table. We don't care about other columns // as that would create primary key update hell. for (final Iterator i = dsTable.getColumns().iterator(); i .hasNext();) { final DataSetColumn dsCol = (DataSetColumn) i.next(); if (dsCol instanceof WrappedColumn) dsTablePKCols.add(dsCol); } // Add a schema name column, if we are partitioning by schema name. // If the table has a PK by this stage, add the schema name column // to it, otherwise don't bother as it'll introduce unnecessary // restrictions if we do. We only need do this to main tables, as // others will inherit it through their foreign key. if (type.equals(DataSetTableType.MAIN) && realTable.getSchema() instanceof SchemaGroup) try { final DataSetColumn schemaNameCol = new SchemaNameColumn( Resources.get("schemaColumnName"), dsTable); if (!dsTablePKCols.isEmpty()) dsTablePKCols.add(schemaNameCol); } catch (final Throwable t) { throw new MartBuilderInternalError(t); } // Create the primary key on this table. First check that // all columns end in '_key'. If they don't, make it so. try { for (final Iterator i = dsTablePKCols.iterator(); i.hasNext();) { final DataSetColumn col = (DataSetColumn) i.next(); if (!col.getName().endsWith(Resources.get("pkSuffix"))) col.setName(col.getName() + Resources.get("pkSuffix")); } dsTable.setPrimaryKey(new GenericPrimaryKey(dsTablePKCols)); } catch (final Throwable t) { throw new MartBuilderInternalError(t); } // Process the subclass relations of this table. for (int i = 0; i < subclassQ.size(); i++) { final Relation subclassRelation = (Relation) subclassQ.get(i); this.generateDataSetTable(DataSetTableType.MAIN_SUBCLASS, dsTable, subclassRelation.getManyKey().getTable(), subclassRelation); } // Process the dimension relations of this table. For 1:M it's easy. // For M:M, we have to work out which end is connected to the real // table, then process the table at the other end of the relation. for (int i = 0; i < dimensionQ.size(); i++) { final Relation dimensionRelation = (Relation) dimensionQ.get(i); if (dimensionRelation.isOneToMany()) this.generateDataSetTable(DataSetTableType.DIMENSION, dsTable, dimensionRelation.getManyKey().getTable(), dimensionRelation); else this.generateDataSetTable(DataSetTableType.DIMENSION, dsTable, dimensionRelation.getFirstKey().getTable().equals( realTable) ? dimensionRelation.getSecondKey() .getTable() : dimensionRelation.getFirstKey() .getTable(), dimensionRelation); } }
2000 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2000/d027590be8d37fce8ddd6d0cbe4906824a161c16/DataSet.java/buggy/src/java/org/biomart/builder/model/DataSet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 2103, 13676, 1388, 12, 6385, 14065, 1388, 559, 618, 16, 1082, 202, 6385, 14065, 1388, 982, 40, 882, 429, 16, 727, 3555, 2863, 1388, 16, 1082, 202, 6385, 7317, 1084, 3963, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2103, 13676, 1388, 12, 6385, 14065, 1388, 559, 618, 16, 1082, 202, 6385, 14065, 1388, 982, 40, 882, 429, 16, 727, 3555, 2863, 1388, 16, 1082, 202, 6385, 7317, 1084, 3963, ...
91, 0, 91, 91, 0, 91, 91, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 415, 91, 14, 0, 91, 91, 91, 91, 0, 91, 0, 91, 91, 91, 91, 91, 91, 0, 0, 0, 0, 91, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 0, 0, 90, 90, 0, 90, 90, 90, 90, 90, 90, 90, 0, 476, 0, 0, 90, 90, 90, 90, 90, 90, 90, 0, 0, 90, 0, 0, 0, 0, 0, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 0, 90, 90, 0, 90, 90, 0, 0, 0, 0, 91, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 753, 476, 90, 0, 0, 90, 90, 90, 90, 0, 90, 91, 90, 90, 90, 90, 90, 90, 473, 0, 0, 0, 90, 0, 278, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 91, 91, 14, 14, 14, 0, 0, 0, 14, 14, 0, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 278, 14, 14, 14, 14, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 91, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 91, 0, 0, 0, 0, 0, 0, 0, 91, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 279, 0, 0, 0, 0, 0, 0, 0, 4, 5, 6, 0, 8, 91, 91, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 279, 0, 0, 0, 0, 101, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 0, 0, 0, 0, 323, 0, 0, 0, 0, 0, 0, 0, 0, 91, 0, 0, 0, 0, 0, 0, 224, 0, 0, 46, 47, 48, 49, 323, 50, 0, 51, 52, 53, 54, 55, 56, 0, 0, 0, 0, 107, 0, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 323, 0, 91, 91, 0, 91, 91, 91, 91, 91, 91,
91, 0, 91, 91, 0, 91, 91, 8, 8, 8, 0, 0, 0, 8, 8, 0, 8, 0, 0, 0, 0, 0, 0, 323, 278, 91, 0, 0, 91, 91, 91, 91, 0, 91, 492, 91, 91, 91, 91, 91,
private static final short[] yyTable2() { return new short[] { 472, 0, 0, 0, 0, 0, 0, 0, 328, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 472, 472, 472, 327, 472, 476, 476, 476, 472, 472, 0, 476, 476, 472, 476, 472, 472, 472, 472, 472, 472, 472, 0, 476, 0, 0, 472, 472, 472, 472, 472, 472, 472, 476, 476, 0, 476, 476, 476, 476, 476, 0, 472, 0, 0, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 0, 472, 472, 0, 472, 472, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 476, 0, 0, 476, 476, 476, 472, 0, 0, 472, 472, 472, 472, 0, 472, 472, 472, 472, 472, 472, 472, 472, 0, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 0, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 0, 472, 0, 0, 472, 472, 472, 472, 472, 472, 472, 472, 472, 0, 472, 472, 472, 472, 472, 0, 472, 0, 0, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 0, 472, 472, 0, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 472, 0, 0, 472, 472, 472, 472, 0, 0, 472, 472, 472, 472, 473, 472, 472, 472, 472, 472, 472, 472, 472, 0, 473, 0, 0, 472, 0, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 0, 0, 322, 323, 0, 473, 0, 0, 0, 473, 473, 0, 473, 473, 473, 473, 78, 473, 473, 473, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 473, 473, 86, 473, 473, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 473, 0, 0, 473, 0, 278, 0, 0, 0, 0, 0, 0, 0, 0, 0, 278, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 473, 473, 473, 473, 0, 0, 473, 0, 0, 0, 278, 278, 0, 473, 278, 278, 278, 79, 278, 278, 278, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 278, 278, 87, 278, 278, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 334, 329, 0, 0, 0, 332, 330, 0, 331, 0, 333, 0, 0, 0, 278, 0, 0, 278, 0, 0, 0, 655, 0, 326, 0, 325, 324, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 278, 278, 473, 0, 0, 0, 0, 0, 0, 0, 328, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 473, 473, 473, 327, 473, 473, 473, 473, 473, 473, 0, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 0, 473, 0, 0, 473, 473, 473, 473, 473, 473, 473, 473, 473, 0, 473, 473, 473, 473, 473, 0, 473, 0, 0, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 0, 473, 473, 0, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 0, 0, 473, 473, 473, 473, 0, 0, 473, 473, 473, 473, 0, 473, 473, 473, 473, 473, 473, 473, 473, 0, 473, 473, 473, 473, 473, 278, 278, 278, 473, 473, 0, 278, 278, 473, 278, 473, 473, 473, 473, 473, 473, 473, 0, 0, 0, 0, 473, 473, 473, 473, 473, 473, 473, 278, 278, 0, 278, 278, 278, 278, 278, 0, 473, 0, 0, 473, 473, 473, 473, 473, 473, 473, 473, 473, 473, 0, 473, 473, 0, 473, 473, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 278, 0, 0, 278, 278, 278, 473, 0, 0, 473, 473, 473, 473, 492, 473, 473, 473, 473, 473, 473, 473, 473, 0, 492, 0, 0, 473, 0, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 0, 0, 322, 323, 0, 251, 0, 0, 0, 0, 0, 0, 0, 492, 0, 0, 0, 0, 492, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 492, 492, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 90, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 492, 251, 0, 0, 0, 0, 0, 0, 0, 90, 0, 0, 0, 0, 0, 0, 469, 0, 0, 0, 0, 0, 412, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 90, 90, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 412, 0, 0, 334, 329, 0, 0, 0, 332, 330, 0, 331, 0, 333, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 326, 0, 325, 324, 0, 0, 469, 0, 0, 90, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 328, 0, 0, 0, 0, 251, 251, 251, 0, 251, 492, 492, 492, 251, 251, 492, 492, 492, 251, 492, 251, 251, 251, 251, 251, 251, 251, 0, 0, 492, 327, 251, 251, 251, 251, 251, 251, 251, 492, 492, 0, 492, 492, 492, 492, 492, 0, 251, 0, 0, 251, 251, 251, 251, 251, 251, 251, 251, 251, 251, 0, 251, 251, 0, 251, 251, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 492, 251, 0, 58, 251, 251, 251, 251, 0, 251, 251, 251, 251, 251, 251, 251, 251, 0, 0, 0, 0, 251, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 0, 0, 90, 90, 0, 90, 90, 90, 90, 90, 90, 90, 0, 469, 0, 0, 90, 90, 90, 90, 90, 90, 90, 0, 0, 90, 0, 0, 0, 0, 0, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 0, 90, 90, 0, 90, 90, 0, 0, 0, 0, 91, 0, 0, 0, 0, 0, 0, 0, 59, 0, 0, 0, 0, 412, 90, 0, 0, 90, 90, 90, 90, 0, 90, 91, 90, 90, 90, 90, 90, 90, 470, 0, 678, 0, 90, 0, 415, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 91, 91, 0, 0, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 0, 0, 322, 323, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 415, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 90, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 470, 0, 0, 91, 0, 0, 0, 0, 0, 0, 0, 90, 0, 0, 0, 0, 0, 0, 472, 0, 0, 0, 0, 0, 476, 0, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 90, 90, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 0, 28, 476, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 0, 0, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14, 0, 476, 0, 0, 90, 207, 0, 0, 106, 47, 48, 49, 0, 619, 232, 51, 52, 53, 54, 55, 56, 0, 0, 0, 0, 57, 0, 0, 0, 0, 14, 0, 0, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 0, 0, 91, 91, 14, 91, 91, 91, 91, 91, 91, 91, 0, 470, 0, 0, 91, 91, 91, 91, 91, 91, 91, 0, 0, 91, 0, 0, 0, 0, 0, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 0, 91, 91, 0, 91, 91, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 415, 91, 14, 0, 91, 91, 91, 91, 0, 91, 0, 91, 91, 91, 91, 91, 91, 0, 0, 0, 0, 91, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 0, 0, 90, 90, 0, 90, 90, 90, 90, 90, 90, 90, 0, 476, 0, 0, 90, 90, 90, 90, 90, 90, 90, 0, 0, 90, 0, 0, 0, 0, 0, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 90, 0, 90, 90, 0, 90, 90, 0, 0, 0, 0, 91, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 753, 476, 90, 0, 0, 90, 90, 90, 90, 0, 90, 91, 90, 90, 90, 90, 90, 90, 473, 0, 0, 0, 90, 0, 278, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 91, 91, 14, 14, 14, 0, 0, 0, 14, 14, 0, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 278, 14, 14, 14, 14, 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 91, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 91, 0, 0, 0, 0, 0, 0, 0, 91, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 279, 0, 0, 0, 0, 0, 0, 0, 4, 5, 6, 0, 8, 91, 91, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 279, 0, 0, 0, 0, 101, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 0, 0, 0, 0, 323, 0, 0, 0, 0, 0, 0, 0, 0, 91, 0, 0, 0, 0, 0, 0, 224, 0, 0, 46, 47, 48, 49, 323, 50, 0, 51, 52, 53, 54, 55, 56, 0, 0, 0, 0, 107, 0, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 323, 0, 91, 91, 0, 91, 91, 91, 91, 91, 91, 91, 0, 0, 0, 0, 91, 91, 91, 91, 91, 91, 91, 0, 0, 91, 0, 0, 0, 0, 0, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 0, 91, 91, 0, 91, 91, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 323, 278, 91, 0, 0, 91, 91, 91, 91, 0, 91, 492, 91, 91, 91, 91, 91, 91, 0, 0, 0, 0, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 492, 0, 91, 91, 0, 91, 91, 91, 91, 91, 91, 91, 0, 0, 0, 0, 91, 91, 91, 91, 91, 91, 91, 0, 0, 91, 492, 0, 0, 0, 0, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 91, 0, 91, 91, 0, 91, 91, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 279, 91, 0, 0, 91, 91, 91, 91, 0, 91, 52, 91, 91, 91, 91, 91, 91, 0, 0, 0, 52, 91, 0, 0, 0, 492, 0, 0, 323, 323, 323, 323, 323, 323, 323, 323, 323, 323, 323, 0, 323, 323, 323, 323, 323, 323, 323, 323, 323, 323, 323, 52, 0, 0, 0, 323, 323, 323, 323, 323, 323, 323, 0, 0, 323, 0, 0, 0, 52, 52, 323, 323, 323, 323, 323, 323, 323, 323, 323, 323, 323, 323, 323, 323, 0, 323, 323, 0, 323, 323, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 492, 52, 0, 0, 0, 0, 323, 0, 0, 323, 323, 323, 323, 0, 323, 0, 323, 323, 323, 323, 323, 323, 0, 492, 0, 0, 323, 0, 0, 0, 0, 0, 0, 52, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 492, 0, 0, 0, 492, 492, 492, 492, 492, 492, 0, 0, 492, 492, 492, 0, 0, 0, 492, 0, 492, 492, 492, 492, 492, 492, 492, 0, 0, 0, 0, 492, 492, 492, 492, 492, 492, 492, 0, 0, 492, 0, 0, 0, 0, 0, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 216, 492, 492, 0, 492, 492, 492, 492, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 58, 492, 0, 0, 492, 492, 492, 492, 0, 492, 0, 492, 492, 492, 492, 492, 492, 0, 0, 0, 0, 492, 0, 0, 0, 0, 217, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 52, 52, 52, 0, 0, 52, 52, 52, 0, 52, 0, 0, 0, 0, 0, 0, 0, 0, 0, 52, 52, 0, 0, 0, 0, 0, 0, 0, 52, 52, 0, 52, 52, 52, 52, 52, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 59, 0, 0, 41, 0, 0, 0, 0, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 0, 492, 492, 492, 492, 492, 492, 0, 0, 0, 492, 492, 0, 0, 0, 492, 0, 492, 492, 492, 492, 492, 492, 492, 41, 0, 0, 0, 492, 492, 492, 492, 492, 492, 492, 0, 0, 492, 0, 0, 0, 41, 41, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 0, 492, 492, 0, 492, 492, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 492, 0, 0, 492, 492, 492, 492, 0, 492, 0, 492, 492, 492, 492, 492, 492, 0, 0, 0, 0, 492, 0, 0, 0, 0, 0, 0, 41, 0, 0, 4, 5, 6, 0, 8, 0, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, 0, 0, 0, 19, 20, 21, 22, 23, 24, 25, 0, 0, 26, 0, 0, 0, 0, 0, 0, 28, 0, 0, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 0, 41, 42, 0, 43, 44, 0, 0, 350, 0, 0, 0, 0, 0, 0, 0, 0, 0, 350, 0, 0, 0, 0, 0, 207, 0, 0, 106, 47, 48, 49, 0, 0, 0, 51, 52, 53, 54, 55, 56, 0, 0, 0, 0, 57, 350, 350, 0, 0, 350, 350, 350, 350, 350, 350, 350, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 350, 350, 350, 0, 350, 350, 0, 0, 0, 0, 0, 0, 0, 41, 41, 41, 0, 0, 41, 41, 41, 0, 41, 0, 0, 0, 0, 0, 0, 0, 0, 423, 41, 350, 0, 350, 350, 0, 0, 0, 0, 423, 0, 0, 41, 41, 41, 41, 41, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 350, 350, 350, 423, 423, 0, 0, 423, 423, 423, 423, 423, 423, 423, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 423, 423, 423, 82, 423, 423, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 492, 423, 0, 423, 423, 0, 0, 0, 0, 0, 492, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 423, 423, 0, 492, 492, 0, 0, 492, 492, 492, 492, 492, 492, 492, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 492, 492, 492, 0, 492, 492, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 350, 350, 350, 0, 0, 350, 350, 350, 492, 350, 492, 492, 0, 0, 0, 0, 0, 0, 350, 350, 350, 0, 0, 0, 0, 0, 0, 0, 350, 350, 0, 350, 350, 350, 350, 350, 0, 0, 32, 0, 492, 492, 492, 0, 0, 0, 0, 0, 32, 0, 0, 0, 0, 0, 0, 0, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 350, 0, 0, 350, 350, 350, 0, 0, 350, 0, 0, 32, 0, 350, 261, 0, 0, 0, 0, 0, 0, 423, 423, 423, 0, 0, 423, 423, 423, 32, 423, 0, 0, 0, 0, 0, 0, 0, 0, 0, 423, 423, 0, 0, 0, 0, 0, 0, 0, 423, 423, 0, 423, 423, 423, 423, 423, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 0, 0, 423, 423, 423, 32, 424, 423, 0, 0, 0, 0, 423, 0, 0, 0, 0, 0, 0, 0, 0, 492, 492, 492, 0, 0, 492, 492, 492, 0, 492, 0, 0, 0, 0, 0, 0, 0, 0, 492, 492, 492, 0, 0, 0, 0, 0, 0, 0, 492, 492, 0, 492, 492, 492, 492, 492, 0, 0, 0, 0, 0, 273, 0, 0, 0, 0, 0, 0, 0, 0, 0, 273, 0, 0, 0, 0, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 492, 0, 0, 492, 492, 492, 0, 0, 492, 0, 273, 273, 0, 492, 273, 273, 273, 273, 273, 273, 273, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 273, 273, 273, 89, 273, 273, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 32, 32, 32, 0, 0, 279, 32, 32, 0, 32, 0, 273, 0, 273, 273, 279, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 32, 32, 32, 32, 32, 0, 0, 0, 0, 0, 0, 279, 279, 273, 273, 279, 279, 279, 279, 279, 279, 279, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 279, 279, 279, 88, 279, 279, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 279, 0, 279, 279, 0, 280, 0, 0, 0, 0, 0, 0, 0, 0, 0, 280, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 279, 279, 0, 0, 0, 0, 0, 0, 0, 280, 280, 0, 0, 280, 280, 280, 280, 280, 280, 280, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 280, 280, 280, 83, 280, 280, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 273, 273, 273, 0, 0, 273, 273, 273, 0, 273, 280, 0, 280, 280, 0, 0, 0, 0, 0, 273, 273, 0, 0, 0, 0, 0, 0, 0, 273, 273, 0, 273, 273, 273, 273, 273, 0, 494, 0, 0, 0, 0, 0, 280, 280, 0, 0, 494, 0, 0, 0, 0, 0, 0, 0, 0, 273, 273, 273, 273, 273, 273, 273, 273, 273, 273, 273, 273, 273, 0, 0, 273, 273, 273, 0, 0, 273, 0, 494, 0, 0, 273, 0, 0, 0, 279, 279, 279, 0, 0, 279, 279, 279, 0, 279, 494, 494, 0, 0, 0, 0, 0, 0, 0, 279, 279, 0, 0, 0, 0, 0, 0, 0, 279, 279, 0, 279, 279, 279, 279, 279, 0, 0, 0, 0, 0, 197, 0, 0, 0, 494, 0, 0, 0, 0, 0, 197, 0, 0, 0, 0, 279, 279, 279, 279, 279, 279, 279, 279, 279, 279, 279, 279, 279, 0, 0, 279, 279, 279, 0, 0, 279, 494, 0, 0, 0, 279, 197, 0, 0, 197, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 280, 280, 280, 197, 197, 280, 280, 280, 197, 280, 0, 0, 0, 0, 0, 0, 0, 0, 0, 280, 280, 0, 0, 0, 0, 0, 0, 0, 280, 280, 0, 280, 280, 280, 280, 280, 0, 0, 197, 0, 0, 373, 0, 0, 0, 0, 0, 0, 0, 0, 0, 373, 0, 0, 0, 0, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 0, 197, 280, 280, 280, 0, 0, 280, 0, 373, 373, 0, 280, 373, 373, 373, 373, 373, 373, 373, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 373, 373, 373, 0, 373, 373, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 494, 494, 494, 0, 0, 494, 494, 494, 216, 494, 0, 0, 0, 0, 373, 0, 373, 373, 216, 494, 494, 0, 0, 0, 0, 0, 0, 0, 494, 494, 0, 494, 494, 494, 494, 494, 0, 0, 0, 0, 0, 0, 0, 0, 0, 216, 216, 373, 373, 216, 216, 216, 216, 216, 322, 216, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 216, 216, 216, 0, 216, 216, 0, 0, 0, 0, 0, 0, 0, 0, 0, 494, 0, 0, 0, 0, 0, 0, 0, 197, 197, 197, 0, 0, 197, 197, 197, 0, 197, 322, 0, 216, 216, 0, 290, 0, 0, 0, 197, 197, 0, 0, 0, 0, 290, 0, 0, 197, 197, 0, 197, 197, 197, 197, 197, 0, 0, 0, 0, 0, 0, 0, 216, 216, 0, 0, 0, 0, 0, 0, 0, 290, 290, 0, 0, 290, 290, 290, 290, 290, 290, 290, 197, 197, 0, 0, 197, 197, 0, 0, 0, 0, 290, 290, 290, 197, 290, 290, 0, 0, 197, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 373, 373, 373, 0, 0, 373, 373, 373, 0, 373, 290, 0, 290, 290, 0, 0, 0, 0, 0, 373, 373, 0, 0, 0, 0, 0, 0, 0, 373, 373, 0, 373, 373, 373, 373, 373, 0, 56, 0, 0, 0, 0, 0, 290, 290, 0, 0, 56, 0, 0, 0, 0, 0, 0, 0, 0, 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, 373, 0, 0, 373, 373, 373, 0, 0, 373, 0, 56, 0, 0, 373, 0, 0, 0, 216, 216, 216, 0, 0, 216, 216, 216, 0, 216, 56, 56, 0, 0, 0, 0, 0, 0, 0, 216, 216, 0, 0, 0, 0, 0, 0, 0, 216, 216, 0, 216, 216, 216, 216, 216, 0, 0, 0, 0, 0, 202, 0, 0, 0, 56, 0, 0, 0, 0, 0, 202, 0, 0, 0, 0, 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, 216, 0, 0, 216, 216, 322, 0, 0, 216, 56, 0, 0, 0, 216, 202, 0, 0, 202, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 290, 290, 290, 202, 202, 290, 290, 290, 202, 290, 0, 0, 0, 0, 0, 0, 0, 0, 0, 290, 290, 0, 0, 0, 0, 0, 0, 0, 290, 290, 0, 290, 290, 290, 290, 290, 0, 0, 202, 0, 0, 286, 0, 0, 0, 0, 0, 0, 0, 0, 0, 286, 0, 0, 0, 0, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 290, 0, 202, 290, 290, 290, 0, 0, 290, 0, 286, 286, 0, 290, 286, 286, 286, 286, 286, 286, 286, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 286, 286, 286, 0, 286, 286, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 56, 56, 56, 0, 0, 56, 56, 56, 410, 56, 0, 0, 0, 0, 286, 0, 286, 286, 410, 56, 56, 0, 0, 0, 0, 0, 0, 0, 56, 56, 0, 56, 56, 56, 56, 56, 0, 0, 0, 0, 0, 0, 0, 0, 0, 410, 410, 286, 286, 410, 410, 410, 410, 410, 410, 410, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 410, 410, 410, 0, 410, 410, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 202, 202, 202, 0, 0, 202, 202, 202, 0, 202, 410, 0, 410, 410, 0, 411, 0, 0, 0, 202, 202, 0, 0, 0, 0, 411, 0, 0, 202, 202, 0, 202, 202, 202, 202, 202, 0, 0, 0, 0, 0, 0, 0, 410, 410, 0, 0, 0, 0, 0, 0, 0, 411, 411, 0, 0, 411, 411, 411, 411, 411, 411, 411, 202, 202, 0, 0, 202, 202, 0, 0, 0, 0, 411, 411, 411, 202, 411, 411, 0, 0, 202, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 286, 286, 286, 0, 0, 286, 286, 286, 0, 286, 411, 0, 411, 411, 0, 0, 0, 0, 0, 286, 286, 0, 0, 0, 0, 0, 0, 0, 286, 286, 0, 286, 286, 286, 286, 286, 0, 0, 0, 0, 0, 0, 0, 411, 411, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, 286, 0, 0, 286, 286, 286, 0, 0, 286, 0, 0, 0, 0, 286, 0, 0, 0, 410, 410, 410, 0, 0, 410, 410, 410, 0, 410, 0, 0, 0, 0, 0, 0, 0, 0, 0, 410, 410, 0, 0, 0, 0, 0, 0, 0, 410, 410, 0, 410, 410, 410, 410, 410, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 410, 410, 410, 410, 410, 410, 410, 410, 410, 410, 410, 410, 0, 0, 410, 410, 410, 0, 0, 410, 0, 0, 0, 0, 410, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 411, 411, 411, 0, 0, 411, 411, 411, 0, 411, 0, 175, 0, 174, 0, 0, 0, 0, 0, 411, 411, 0, 0, 0, 0, 0, 0, 0, 411, 411, 0, 411, 411, 411, 411, 411, 0, 0, 0, 0, 0, 193, 0, 0, 0, 177, 0, 185, 0, 0, 0, 193, 0, 0, 0, 0, 0, 411, 411, 411, 411, 411, 411, 411, 411, 411, 411, 411, 411, 0, 0, 411, 411, 411, 0, 176, 411, 184, 193, 193, 0, 411, 193, 193, 193, 193, 193, 0, 193, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 193, 193, 193, 0, 193, 193, 0, 0, 0, 0, 0, 0, 0, 0, 0, 189, 0, 0, 0, 0, 0, 0, 0, 0, 0, 189, 0, 0, 0, 0, 0, 0, 0, 0, 0, 193, 193, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 189, 189, 0, 0, 189, 189, 189, 189, 189, 0, 189, 0, 0, 0, 193, 193, 0, 0, 0, 0, 0, 189, 189, 189, 0, 189, 189, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 186, 0, 0, 0, 189, 189, 0, 0, 0, 0, 186, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 189, 189, 186, 186, 0, 0, 186, 186, 186, 186, 186, 0, 186, 0, 0, 0, 0, 508, 509, 0, 0, 510, 0, 186, 186, 186, 0, 186, 186, 160, 161, 162, 163, 164, 165, 0, 166, 167, 0, 0, 168, 0, 0, 0, 169, 170, 171, 172, 0, 0, 0, 0, 0, 0, 0, 0, 0, 173, 186, 186, 0, 0, 0, 0, 0, 193, 193, 193, 0, 0, 193, 193, 193, 0, 193, 0, 0, 0, 0, 0, 0, 0, 0, 0, 193, 193, 0, 0, 0, 186, 186, 0, 0, 193, 193, 0, 193, 193, 193, 193, 193, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 193, 193, 193, 193, 193, 193, 193, 193, 193, 193, 193, 193, 0, 0, 193, 193, 189, 189, 189, 193, 0, 189, 189, 189, 193, 189, 0, 0, 0, 0, 0, 0, 334, 329, 0, 189, 189, 332, 330, 608, 331, 0, 333, 0, 189, 189, 0, 189, 189, 189, 189, 189, 0, 0, 0, 326, 0, 325, 324, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 189, 189, 189, 189, 189, 189, 189, 189, 189, 189, 189, 189, 187, 0, 189, 189, 328, 0, 0, 189, 0, 0, 187, 0, 189, 0, 0, 0, 0, 0, 0, 0, 186, 186, 186, 0, 0, 186, 186, 186, 0, 186, 0, 0, 0, 0, 327, 0, 0, 187, 187, 186, 186, 187, 187, 187, 187, 187, 0, 187, 186, 186, 0, 186, 186, 186, 186, 186, 0, 0, 187, 187, 187, 0, 187, 187, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 186, 188, 0, 186, 186, 187, 187, 0, 186, }; }
47134 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47134/f5c9a1ebd775712f2dc086acfce1a14a123ec632/YyTables.java/clean/src/org/jruby/parser/YyTables.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 760, 727, 3025, 8526, 9016, 1388, 22, 1435, 288, 1377, 327, 394, 3025, 8526, 288, 1850, 1059, 9060, 16, 565, 374, 16, 565, 374, 16, 565, 374, 16, 565, 374, 16, 565, 374, 16, 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, 565, 3238, 760, 727, 3025, 8526, 9016, 1388, 22, 1435, 288, 1377, 327, 394, 3025, 8526, 288, 1850, 1059, 9060, 16, 565, 374, 16, 565, 374, 16, 565, 374, 16, 565, 374, 16, 565, 374, 16, 565...
!superParameterName.equals(parameterName)){
!superParameterName.equals(parameterName)){
public String buildErrorString(PsiElement location){ final PsiParameter parameter = (PsiParameter) location.getParent(); final String parameterName = parameter.getName(); final PsiMethod method = (PsiMethod) PsiTreeUtil.getParentOfType(parameter, PsiMethod.class); final PsiMethod[] superMethods = PsiSuperMethodUtil.findSuperMethods(method); final PsiParameterList methodParamList = method.getParameterList(); final int index = methodParamList.getParameterIndex(parameter); for(int i = 0; i < superMethods.length; i++){ final PsiMethod superMethod = superMethods[i]; final PsiParameterList parameterList = superMethod.getParameterList(); if(parameterList != null){ final PsiParameter[] parameters = parameterList.getParameters(); if(parameters != null){ final String superParameterName = parameters[index].getName(); if(superParameterName != null && !superParameterName.equals(parameterName)){ return "Parameter name '#ref' is different from parameter '" + superParameterName + "' overridden #loc"; } } } } return "";// this can't happen }
12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/2d46d291193579a7564649b4881c7ea8e02eda5b/ParameterNameDiffersFromOverriddenParameterInspection.java/buggy/plugins/InspectionGadgets/src/com/siyeh/ig/naming/ParameterNameDiffersFromOverriddenParameterInspection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 1361, 668, 780, 12, 52, 7722, 1046, 2117, 15329, 3639, 727, 453, 7722, 1662, 1569, 273, 261, 52, 7722, 1662, 13, 2117, 18, 588, 3054, 5621, 3639, 727, 514, 15524, 273, 1569, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 1361, 668, 780, 12, 52, 7722, 1046, 2117, 15329, 3639, 727, 453, 7722, 1662, 1569, 273, 261, 52, 7722, 1662, 13, 2117, 18, 588, 3054, 5621, 3639, 727, 514, 15524, 273, 1569, ...
SourceInfo si = db.getSourceInfo(script); if (si == null) { return; } (new CreateFileWindow(db, sourceName, si.getSource(), lineNumber)).run();
(new CreateFileWindow(db, sourceName, si.getSource(), lineNumber)).run();
public void actionPerformed(ActionEvent e) { String cmd = e.getActionCommand(); if (cmd.equals("Cancel")) { setVisible(false); value = null; } else if (cmd.equals("Select")) { if (list.getSelectedIndex() < 0) { return; } try { value = (String)list.getSelectedValue(); } catch (ArrayIndexOutOfBoundsException exc) { return; } setVisible(false); DebuggableScript script = (DebuggableScript)functionMap.get(value); if (script != null) { String sourceName = script.getSourceName(); int lineNumber = script.getFirstLine(); FileWindow w = db.getFileWindow(sourceName); if (w == null) { SourceInfo si = db.getSourceInfo(script); if (si == null) { return; } (new CreateFileWindow(db, sourceName, si.getSource(), lineNumber)).run(); w = db.getFileWindow(sourceName); w.setPosition(-1); } int start = w.getPosition(lineNumber-1); int end = w.getPosition(lineNumber)-1; w.textArea.select(start); w.textArea.setCaretPosition(start); w.textArea.moveCaretPosition(end); try { w.show(); db.requestFocus(); w.requestFocus(); w.textArea.requestFocus(); } catch (Exception exc) { } } } }
47345 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47345/61a6761d283fe04f13dd64559be07c83e1647a39/Main.java/buggy/toolsrc/org/mozilla/javascript/tools/debugger/Main.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 26100, 12, 1803, 1133, 425, 13, 288, 3639, 514, 1797, 273, 425, 18, 588, 1803, 2189, 5621, 3639, 309, 261, 4172, 18, 14963, 2932, 6691, 6, 3719, 288, 5411, 16697, 12, 5743, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 26100, 12, 1803, 1133, 425, 13, 288, 3639, 514, 1797, 273, 425, 18, 588, 1803, 2189, 5621, 3639, 309, 261, 4172, 18, 14963, 2932, 6691, 6, 3719, 288, 5411, 16697, 12, 5743, 1...
public int getNumInterfaces() throws ClassNotFoundException { return countClasses( true ); }
public int getNumInterfaces() throws ClassNotFoundException { return countClasses(true); }
public int getNumInterfaces() throws ClassNotFoundException { return countClasses( true ); }
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/1d541964940eaa91b52b21469dc5b763fef1d8d1/PackageStats.java/clean/findbugs/src/java/edu/umd/cs/findbugs/PackageStats.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 11187, 10273, 1435, 1216, 10403, 288, 4202, 327, 1056, 4818, 12, 638, 11272, 377, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 11187, 10273, 1435, 1216, 10403, 288, 4202, 327, 1056, 4818, 12, 638, 11272, 377, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
public static void main(String[] args) { System.out .println("\nWelcome to the GUI to configure the building process of Apache Lenya"); if (args.length != 1) { System.err .println("No root dir specified (e.g. /home/USERNAME/src/lenya/trunk)!"); return; } String rootDir = args[0]; new ConfigureGUI(rootDir); }
45951 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45951/39426027b915abd496199e15b182664422db8324/ConfigureGUI.java/clean/tools/configure/src/java/org/apache/lenya/config/impl/ConfigureGUI.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2774, 12, 780, 8526, 833, 13, 288, 7734, 2332, 18, 659, 3639, 263, 8222, 31458, 82, 59, 16312, 358, 326, 10978, 358, 5068, 326, 10504, 1207, 434, 24840, 6698, 93, 69, 88...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2774, 12, 780, 8526, 833, 13, 288, 7734, 2332, 18, 659, 3639, 263, 8222, 31458, 82, 59, 16312, 358, 326, 10978, 358, 5068, 326, 10504, 1207, 434, 24840, 6698, 93, 69, 88...
throw new IllegalArgumentException("value may not be less then 0");
throw new IllegalArgumentException("value may not be less than 0");
public NumberOfInterveningJobs(int value) { super(value); if (value < 0) throw new IllegalArgumentException("value may not be less then 0"); }
5916 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5916/f6df144a51f6df4ab5f69c781f796e6a912ade6a/NumberOfInterveningJobs.java/buggy/libjava/javax/print/attribute/standard/NumberOfInterveningJobs.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 3588, 951, 2465, 3995, 310, 7276, 12, 474, 460, 13, 225, 288, 565, 2240, 12, 1132, 1769, 565, 309, 261, 1132, 411, 374, 13, 1377, 604, 394, 2754, 2932, 1132, 2026, 486, 506, 5242,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 3588, 951, 2465, 3995, 310, 7276, 12, 474, 460, 13, 225, 288, 565, 2240, 12, 1132, 1769, 565, 309, 261, 1132, 411, 374, 13, 1377, 604, 394, 2754, 2932, 1132, 2026, 486, 506, 5242,...
queuedScrollTo = false; scrollToCaret(doElectricScroll);
queuedScrollTo = queuedScrollToElectric = false; scrollToCaret(queuedScrollToElectric);
private void finishCaretUpdate(final boolean doElectricScroll, final boolean fireCaretEvent) { Runnable r = new Runnable() { public void run() { queuedScrollTo = false; scrollToCaret(doElectricScroll); updateBracketHighlight(); if(fireCaretEvent) fireCaretEvent(); } }; if(buffer.isTransactionInProgress()) { if(!queuedScrollTo) { queuedScrollTo = true; runnables.add(r); } } else r.run(); } //}}}
8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/9c96f31f160f26f4f03fe5dd8f26377bc097a37c/JEditTextArea.java/clean/org/gjt/sp/jedit/textarea/JEditTextArea.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 4076, 39, 20731, 1891, 12, 6385, 1250, 741, 29397, 6806, 16, 202, 202, 6385, 1250, 4452, 39, 20731, 1133, 13, 202, 95, 202, 202, 20013, 436, 273, 394, 10254, 1435, 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, 1152, 918, 4076, 39, 20731, 1891, 12, 6385, 1250, 741, 29397, 6806, 16, 202, 202, 6385, 1250, 4452, 39, 20731, 1133, 13, 202, 95, 202, 202, 20013, 436, 273, 394, 10254, 1435, 202, ...
case PolyType(Symbol[] tparams, _):
case PolyType(_, _):
private void addSub(Symbol clasz, int count) { Name name = Names.SUB; Symbol symbol = clasz.lookup(name); assert symbol != Symbol.NONE : Debug.show(clasz) + "." + name; Symbol[] alts = symbol.alternativeSymbols(); // !!! assert count + 1 == alts.length : (count + 1) + " != " + alts.length; boolean pos = false; for (int i = 0; i < alts.length; i++) { switch (alts[i].type()) { case MethodType(Symbol[] vparams, _): if (vparams.length == 0) { // !!! System.out.println("!!! Ignoring pico bridge method " + Debug.show(clasz) + "." + name); break; } addPrimitive(alts[i], Primitive.SUB); count--; break; case PolyType(Symbol[] tparams, _): addPrimitive(alts[i], Primitive.NEG); assert !pos; pos = true; break; default: System.out.println("!!! symbol = " + Debug.show(alts[i])); throw Debug.abort("illegal case" , alts[i].type()); } } assert pos : pos; }
55146 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55146/cc899677ab324cd12733f93eab01ed91fe25bfba/Primitives.java/clean/sources/scalac/backend/Primitives.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 25716, 12, 5335, 23268, 94, 16, 509, 1056, 13, 288, 3639, 1770, 508, 273, 5276, 18, 8362, 31, 3639, 8565, 3273, 273, 23268, 94, 18, 8664, 12, 529, 1769, 3639, 1815, 3273, 480...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 25716, 12, 5335, 23268, 94, 16, 509, 1056, 13, 288, 3639, 1770, 508, 273, 5276, 18, 8362, 31, 3639, 8565, 3273, 273, 23268, 94, 18, 8664, 12, 529, 1769, 3639, 1815, 3273, 480...
public abstract int[] set(ReadablePartial instant, int fieldIndex, int[] values, int newValue);
public abstract long set(long instant, int value);
public abstract int[] set(ReadablePartial instant, int fieldIndex, int[] values, int newValue);
52859 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52859/6892714b99ed388c1f9f8f55f114fcb602186fa6/DateTimeField.java/buggy/JodaTime/src/java/org/joda/time/DateTimeField.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 8770, 509, 8526, 444, 12, 14151, 9447, 5934, 16, 509, 31762, 16, 509, 8526, 924, 16, 509, 6129, 1769, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 8770, 509, 8526, 444, 12, 14151, 9447, 5934, 16, 509, 31762, 16, 509, 8526, 924, 16, 509, 6129, 1769, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100...
for(int i=0; i<charsets.length;i++){ String[] aliases = NativeConverter.getAliases(charsets[i]); if (!map.containsKey(charsets[i])){ map.put(charsets[i], aliases);
for(int i=0; i<charsets.length;i++){ if (!map.containsKey(charsets[i])){ map.put(charsets[i], charsetForName(charsets[i]));
public final void putCharsets(Map map) { // Get the available converter canonical names and aliases String[] charsets = NativeConverter.getAvailable(); for(int i=0; i<charsets.length;i++){ // get the ICU aliases for a converter String[] aliases = NativeConverter.getAliases(charsets[i]); // store the charsets and aliases in a Map if (!map.containsKey(charsets[i])){ map.put(charsets[i], aliases); } } }
7297 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7297/7805821955d606237470f131ffc1906dd88310e7/CharsetProviderICU.java/clean/src/classes/com/ibm/icu4jni/charset/CharsetProviderICU.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 918, 1378, 19329, 12, 863, 852, 13, 288, 3639, 368, 968, 326, 2319, 6027, 7378, 1257, 471, 6900, 202, 1850, 514, 8526, 1149, 4424, 273, 16717, 5072, 18, 588, 5268, 5621, 7734, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 918, 1378, 19329, 12, 863, 852, 13, 288, 3639, 368, 968, 326, 2319, 6027, 7378, 1257, 471, 6900, 202, 1850, 514, 8526, 1149, 4424, 273, 16717, 5072, 18, 588, 5268, 5621, 7734, ...
Logger.minor(this, "compare("+o1+","+o2+") = "+x);
Logger.debug(this, "compare("+o1+","+o2+") = "+x);
public int compare(Object o1, Object o2) { int x = ocompare(o1, o2); Logger.minor(this, "compare("+o1+","+o2+") = "+x); return x; }
50915 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50915/a6a9cc01004d94d4bdefc0b76c0bdb1962187369/SimpleIntNumberedItemComparator.java/clean/src/freenet/support/SimpleIntNumberedItemComparator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 3400, 12, 921, 320, 21, 16, 1033, 320, 22, 13, 288, 3639, 509, 619, 273, 320, 9877, 12, 83, 21, 16, 320, 22, 1769, 3639, 4242, 18, 4148, 12, 2211, 16, 315, 9877, 2932, 15...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 3400, 12, 921, 320, 21, 16, 1033, 320, 22, 13, 288, 3639, 509, 619, 273, 320, 9877, 12, 83, 21, 16, 320, 22, 1769, 3639, 4242, 18, 4148, 12, 2211, 16, 315, 9877, 2932, 15...
public void assignProtectionElement(String protectionGroupName, String protectionElementObjectId, String protectionElementAttributeName) throws CSTransactionException { Session s = null; Transaction t = null; try { s = sf.openSession(); t = s.beginTransaction(); if(StringUtilities.isBlank(protectionGroupName)){ throw new CSTransactionException("The protectionGroupName can't be null"); } if(StringUtilities.isBlank(protectionElementObjectId)){ throw new CSTransactionException("The protectionElementObjectId can't be null"); } ProtectionGroup protectionGroup = getProtectionGroup(protectionGroupName); ProtectionElement protectionElement = getProtectionElement( protectionElementObjectId, protectionElementAttributeName); Criteria criteria = s .createCriteria(ProtectionGroupProtectionElement.class); criteria.add(Expression.eq("protectionGroup", protectionGroup)); criteria.add(Expression.eq("protectionElement", protectionElement)); List list = criteria.list(); if (list.size() == 0) { ProtectionGroupProtectionElement pgpe = new ProtectionGroupProtectionElement(); pgpe.setProtectionElement(protectionElement); pgpe.setProtectionGroup(protectionGroup); pgpe.setUpdateDate(new Date()); s.save(pgpe); }else{ throw new CSTransactionException("This association already exist!"); } t.commit(); } catch (Exception ex) { log.error(ex); try { t.rollback(); } catch (Exception ex3) { if (log.isDebugEnabled()) log.debug("Authorization|||assignProtectionElements|Failure|Error in Rolling Back Transaction|"+ex3.getMessage()); } if (log.isDebugEnabled()) log.debug("Authorization|||assignProtectionElements|Failure|Error Occured in assigning Protection Element with Object Id " + protectionElementObjectId + " with protection element attribute " + protectionElementAttributeName + " to protection group name: " + protectionGroupName+"|"+ ex.getMessage() ); throw new CSTransactionException( "An error occurred in assigning Protection Element to Protection Group\n"+ex.getMessage(), ex); } finally { try { s.close(); } catch (Exception ex2) { if (log.isDebugEnabled()) log.debug("Authorization|||assignProtectionElements|Failure|Error in Closing Session |"+ex2.getMessage()); } } if (log.isDebugEnabled()) log.debug("Authorization|||assignProtectionElements|Success|Successful in assigning Protection Element with Object Id " + protectionElementObjectId + " with protection element attribute " + protectionElementAttributeName + " to protection group name: " + protectionGroupName+"|"); }
56056 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56056/d0331b0502f1a99c8cc7fe328dcdf16c80b7d013/AuthorizationDAOImpl.java/buggy/api/src/gov/nih/nci/security/dao/AuthorizationDAOImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 2683, 16938, 1046, 12, 780, 17862, 3943, 16, 1082, 202, 780, 17862, 1046, 16661, 16, 1082, 202, 780, 17862, 1046, 19240, 13, 1082, 202, 15069, 385, 882, 28001, 1128, 503, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 2683, 16938, 1046, 12, 780, 17862, 3943, 16, 1082, 202, 780, 17862, 1046, 16661, 16, 1082, 202, 780, 17862, 1046, 19240, 13, 1082, 202, 15069, 385, 882, 28001, 1128, 503, 2...
sort( evaluator, members, exp, order.equals("DESC") || order.equals("BDESC"), order.equals("BASC") || order.equals("BDESC"));
boolean desc = order.equals("DESC") || order.equals("BDESC"); boolean brk = order.equals("BASC") || order.equals("BDESC"); sort(evaluator, members, exp, desc, brk);
public Object evaluate(Evaluator evaluator, Exp[] args) { Vector members = (Vector) getArg(evaluator, args, 0); ExpBase exp = (ExpBase) getArg(evaluator, args, 1); String order = (String) getArg(evaluator, args, 2, "ASC"); sort( evaluator, members, exp, order.equals("DESC") || order.equals("BDESC"), order.equals("BASC") || order.equals("BDESC")); return members; }
37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/a99d355f461b0b321c9fb36c2ea44764ce9dfb05/BuiltinFunTable.java/buggy/src/main/mondrian/olap/fun/BuiltinFunTable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4405, 202, 482, 1033, 5956, 12, 15876, 18256, 16, 7784, 8526, 833, 13, 288, 25083, 202, 5018, 4833, 273, 261, 5018, 13, 336, 4117, 12, 14168, 639, 16, 833, 16, 374, 1769, 25083, 202, 2966, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4405, 202, 482, 1033, 5956, 12, 15876, 18256, 16, 7784, 8526, 833, 13, 288, 25083, 202, 5018, 4833, 273, 261, 5018, 13, 336, 4117, 12, 14168, 639, 16, 833, 16, 374, 1769, 25083, 202, 2966, 2...
RubyObject clone = new RubyObject(getRuby(), (RubyClass)getRubyClass()); clone.setupClone(this); clone.setInstanceVariables(getInstanceVariables().cloneRubyMap()); return clone; }
RubyObject clone = new RubyObject(getRuby(), (RubyClass) getRubyClass()); clone.setupClone(this); clone.setInstanceVariables(getInstanceVariables().cloneRubyMap()); return clone; }
public RubyObject m_clone() { RubyObject clone = new RubyObject(getRuby(), (RubyClass)getRubyClass()); clone.setupClone(this); clone.setInstanceVariables(getInstanceVariables().cloneRubyMap()); return clone; }
46258 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46258/addcb75d5d86d9b1fd628d84d22b74cfc41f078e/RubyObject.java/buggy/org/jruby/RubyObject.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 921, 312, 67, 14056, 1435, 288, 3639, 19817, 921, 3236, 273, 394, 19817, 921, 12, 588, 54, 10340, 9334, 261, 54, 10340, 797, 13, 588, 54, 10340, 797, 10663, 3639, 3236, 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, 19817, 921, 312, 67, 14056, 1435, 288, 3639, 19817, 921, 3236, 273, 394, 19817, 921, 12, 588, 54, 10340, 9334, 261, 54, 10340, 797, 13, 588, 54, 10340, 797, 10663, 3639, 3236, 18, ...
public short getClockSkew() { return _clockSkew; }
public short getClockSkew() { return ( (short) (_clockSkew / 1000)); }
public short getClockSkew() { return _clockSkew; }
27437 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27437/9325b806e4671b4df3fae20f8918aa1b707cf70c/PeerState.java/clean/router/java/src/net/i2p/router/transport/udp/PeerState.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3025, 1927, 739, 5925, 359, 1435, 288, 327, 389, 18517, 5925, 359, 31, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3025, 1927, 739, 5925, 359, 1435, 288, 327, 389, 18517, 5925, 359, 31, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
skipSpaces(); if (current != ')') { reportError("character.expected", new Object[] { new Character(')'), new Integer(current) }); skipTransform(); return; }
skipSpaces(); if (current != ')') { reportError("character.expected", new Object[] { new Character(')'), new Integer(current) }); skipTransform(); return; }
protected void parseSkew() throws ParseException { read(); // Parse 'ew[XY] wsp? ( wsp?' if (current != 'e') { reportError("character.expected", new Object[] { new Character('e'), new Integer(current) }); skipTransform(); return; } read(); if (current != 'w') { reportError("character.expected", new Object[] { new Character('w'), new Integer(current) }); skipTransform(); return; } read(); boolean skewX = false; switch (current) { case 'X': skewX = true; case 'Y': break; default: reportError("character.expected", new Object[] { new Character('X'), new Integer(current) }); skipTransform(); return; } read(); skipSpaces(); if (current != '(') { reportError("character.expected", new Object[] { new Character('('), new Integer(current) }); skipTransform(); return; } read(); skipSpaces(); try { float sk = parseFloat(); // Parse 'wsp? )' skipSpaces(); if (current != ')') { reportError("character.expected", new Object[] { new Character(')'), new Integer(current) }); skipTransform(); return; } if (skewX) { fragmentIdentifierHandler.skewX(sk); } else { fragmentIdentifierHandler.skewY(sk); } } catch (NumberFormatException e) { reportError("float.format", new Object[] { getBufferContent() }); skipTransform(); } }
45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/83db908775ed76df3a9c1fb1b8e7692c4fa1c19d/FragmentIdentifierParser.java/clean/sources/org/apache/batik/parser/FragmentIdentifierParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1109, 5925, 359, 1435, 1216, 10616, 288, 202, 896, 5621, 202, 759, 2884, 296, 359, 63, 8546, 65, 341, 1752, 35, 261, 341, 1752, 4899, 202, 430, 261, 2972, 480, 296, 73, 6134,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1109, 5925, 359, 1435, 1216, 10616, 288, 202, 896, 5621, 202, 759, 2884, 296, 359, 63, 8546, 65, 341, 1752, 35, 261, 341, 1752, 4899, 202, 430, 261, 2972, 480, 296, 73, 6134,...
if(regionBody != null)
} if (regionBody != null) {
public Object clone() { Page p = new Page(); if(regionBefore != null) p.regionBefore = (RegionViewport)regionBefore.clone(); if(regionStart != null) p.regionStart = (RegionViewport)regionStart.clone(); if(regionBody != null) p.regionBody = (RegionViewport)regionBody.clone(); if(regionEnd != null) p.regionEnd = (RegionViewport)regionEnd.clone(); if(regionAfter != null) p.regionAfter = (RegionViewport)regionAfter.clone(); return p; }
5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/c17805d30adc368081b48f3bdcf21a972b1e6071/Page.java/buggy/src/org/apache/fop/area/Page.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 3236, 1435, 288, 3639, 3460, 293, 273, 394, 3460, 5621, 3639, 309, 12, 6858, 4649, 480, 446, 13, 5411, 293, 18, 6858, 4649, 273, 261, 5165, 22743, 13, 6858, 4649, 18, 14056, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3236, 1435, 288, 3639, 3460, 293, 273, 394, 3460, 5621, 3639, 309, 12, 6858, 4649, 480, 446, 13, 5411, 293, 18, 6858, 4649, 273, 261, 5165, 22743, 13, 6858, 4649, 18, 14056, ...
HTMLNode priorityForm = priorityCell.addChild("form", new String[] { "action", "method" }, new String[] { "/queue/", "post" });
HTMLNode priorityForm = priorityCell.addChild("form", new String[] { "action", "method", "enctype", "encoding" }, new String[] { "/queue/", "post", "UTF-8", "multipart/form-data" });
private HTMLNode createPriorityCell(PageMaker pageMaker, String identifier, short priorityClass) { HTMLNode priorityCell = new HTMLNode("td", "class", "request-priority nowrap"); HTMLNode priorityForm = priorityCell.addChild("form", new String[] { "action", "method" }, new String[] { "/queue/", "post" }); priorityForm.addChild(pageMaker.createFormPasswordInput(core.formPassword)); priorityForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "identifier", identifier }); HTMLNode prioritySelect = priorityForm.addChild("select", "name", "priority"); for (int p = 0; p < RequestStarter.NUMBER_OF_PRIORITY_CLASSES; p++) { if (p == priorityClass) { prioritySelect.addChild("option", new String[] { "value", "selected" }, new String[] { String.valueOf(p), "selected" }, priorityClasses[p]); } else { prioritySelect.addChild("option", "value", String.valueOf(p), priorityClasses[p]); } } priorityForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "change_priority", "Change" }); return priorityCell; }
51834 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51834/0d8d196255a0e85fa26937433ceabd0ce4f72943/QueueToadlet.java/buggy/src/freenet/clients/http/QueueToadlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 3982, 907, 752, 8183, 4020, 12, 1964, 12373, 1363, 12373, 16, 514, 2756, 16, 3025, 4394, 797, 13, 288, 202, 202, 4870, 907, 4394, 4020, 273, 394, 3982, 907, 2932, 4465, 3113, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3982, 907, 752, 8183, 4020, 12, 1964, 12373, 1363, 12373, 16, 514, 2756, 16, 3025, 4394, 797, 13, 288, 202, 202, 4870, 907, 4394, 4020, 273, 394, 3982, 907, 2932, 4465, 3113, ...
if (person.getLocationSituation().equals(Person.INVEHICLE)) {
if (person.getLocationSituation() == Person.INVEHICLE) {
public static double getProbability(Person person, VirtualMars mars) { double result = 0D; if (person.getLocationSituation().equals(Person.INVEHICLE)) { Vehicle vehicle = person.getVehicle(); MechanicalFailure failure = vehicle.getMechanicalFailure(); if ((failure != null) && !failure.isFixed()) result = 100D; } return result; }
49678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49678/c5e753f47eeba8ecf35bb222dce7f4880383c80a/RepairMechanicalFailure.java/clean/org/mars_sim/msp/simulation/person/ai/RepairMechanicalFailure.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1645, 3570, 70, 2967, 12, 8346, 6175, 16, 7269, 49, 5913, 312, 5913, 13, 288, 3639, 1645, 563, 273, 374, 40, 31, 3639, 309, 261, 12479, 18, 588, 2735, 55, 305, 11407, 1435, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1645, 3570, 70, 2967, 12, 8346, 6175, 16, 7269, 49, 5913, 312, 5913, 13, 288, 3639, 1645, 563, 273, 374, 40, 31, 3639, 309, 261, 12479, 18, 588, 2735, 55, 305, 11407, 1435, ...
System.out.println(Sampling.SINGLETON.toString());
public void run() { synchronized(signal) { signal.value = true; signal.notifyAll(); } // now run the actual client app (wrapped in this // Activity.Expr since we want to use a Clock to // wait for the main app to exit, but we can't use // a clock directly without being a proper activity). Clock c = (Clock) factory.getClockFactory().clock(); c.doNow(appMain); c.doNext(); if (Sampling.SINGLETON != null && Configuration.DUMP_STATS_ON_EXIT) { Sampling.shutdown(); System.out.println(Sampling.SINGLETON.toString()); } }
1832 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1832/dfa122397a8b3d4d0aa7864e63e95a07b5fc132f/DefaultRuntime_c.java/clean/x10.runtime/src/x10/runtime/DefaultRuntime_c.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 1086, 1435, 288, 27573, 3852, 12, 10420, 13, 288, 10792, 4277, 18, 1132, 273, 638, 31, 10792, 4277, 18, 12336, 1595, 5621, 7734, 289, 7734, 368, 2037, 1086, 326, 3214, 1004, 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, 2398, 1071, 918, 1086, 1435, 288, 27573, 3852, 12, 10420, 13, 288, 10792, 4277, 18, 1132, 273, 638, 31, 10792, 4277, 18, 12336, 1595, 5621, 7734, 289, 7734, 368, 2037, 1086, 326, 3214, 1004, 5...
return new JavaRefactoringDescriptor(ID_INLINE_METHOD, project, Messages.format(RefactoringCoreMessages.InlineMethodRefactoring_descriptor_description, new String[] {BindingLabelProvider.getBindingLabel(binding, JavaElementLabels.ALL_FULLY_QUALIFIED), BindingLabelProvider.getBindingLabel(binding.getDeclaringClass(), JavaElementLabels.ALL_FULLY_QUALIFIED)}), getComment(), arguments, flags);
JavaRefactoringDescriptor descriptor= new JavaRefactoringDescriptor(ID_INLINE_METHOD, project, Messages.format(RefactoringCoreMessages.InlineMethodRefactoring_descriptor_description, new String[] {BindingLabelProvider.getBindingLabel(binding, JavaElementLabels.ALL_FULLY_QUALIFIED), BindingLabelProvider.getBindingLabel(binding.getDeclaringClass(), JavaElementLabels.ALL_FULLY_QUALIFIED)}), getComment(), arguments, flags); return new RefactoringChangeDescriptor(descriptor);
public final ChangeDescriptor getDescriptor() { final Map arguments= new HashMap(); arguments.put(JavaRefactoringDescriptor.INPUT, fInitialCUnit.getHandleIdentifier()); arguments.put(ATTRIBUTE_SELECTION, new Integer(fSelectionStart).toString() + " " + new Integer(fSelectionLength).toString()); //$NON-NLS-1$ arguments.put(ATTRIBUTE_DELETE, Boolean.valueOf(fDeleteSource).toString()); arguments.put(ATTRIBUTE_MODE, new Integer(fCurrentMode == Mode.INLINE_ALL ? 1 : 0).toString()); String project= null; IJavaProject javaProject= fInitialCUnit.getJavaProject(); if (javaProject != null) project= javaProject.getElementName(); final IMethodBinding binding= fSourceProvider.getDeclaration().resolveBinding(); int flags= RefactoringDescriptor.STRUCTURAL_CHANGE; if (!Modifier.isPrivate(binding.getModifiers())) flags|= RefactoringDescriptor.MULTI_CHANGE; return new JavaRefactoringDescriptor(ID_INLINE_METHOD, project, Messages.format(RefactoringCoreMessages.InlineMethodRefactoring_descriptor_description, new String[] {BindingLabelProvider.getBindingLabel(binding, JavaElementLabels.ALL_FULLY_QUALIFIED), BindingLabelProvider.getBindingLabel(binding.getDeclaringClass(), JavaElementLabels.ALL_FULLY_QUALIFIED)}), getComment(), arguments, flags); }
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/0432e0d7c5a62e819812c87710ddd951922b9dd2/InlineMethodRefactoring.java/clean/org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/code/InlineMethodRefactoring.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 727, 7576, 3187, 22161, 1435, 288, 9506, 202, 6385, 1635, 1775, 33, 394, 4317, 5621, 9506, 202, 7099, 18, 458, 12, 5852, 426, 3493, 6053, 3187, 18, 15934, 16, 284, 4435, 39, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 727, 7576, 3187, 22161, 1435, 288, 9506, 202, 6385, 1635, 1775, 33, 394, 4317, 5621, 9506, 202, 7099, 18, 458, 12, 5852, 426, 3493, 6053, 3187, 18, 15934, 16, 284, 4435, 39, ...
GLMDebug.ERROR("InventoryBG", "UpdateInventoryLevelschedule(), CREATED BAD nDays SCHEDULE ");
if (logger.isErrorEnabled()) { logger.error("UpdateInventoryLevelschedule(), CREATED BAD nDays SCHEDULE "); }
public int updateInventoryLevelsSchedule(Inventory inventory) { InventoryLevelsPG ilp = inventory.getInventoryLevelsPG(); QuantityScheduleElement dse, rlse, glse; Vector new_av_demand_elements = new Vector(); Vector new_reorder_elements = new Vector(); Vector new_goal_elements = new Vector(); if (demandSchedule_ == null) { if(GLMDebug.printDebug()) GLMDebug.DEBUG("InventoryBG", "UpdateInventoryLevelsSchedule(), No Demand Schedule Set."); clearInventoryLevelsSchedule(inventory); } else { int days = demandSchedule_.length;// if(GLMDebug.printDebug()) GLMDebug.DEBUG("InventoryBG", "UpdateInventoryLevelsSchedule(), Creating new Schedule for "+AssetUtils.assetDesc(inventory)); for (int i = 0; i < days; i++) { // start time is eigher today or time 1st request was received + number of planning days long start = TimeUtils.addNDaysTime(getStartTime(), i); // end time is a millisecond before start time of next day long end = TimeUtils.addNDaysTime(getStartTime(), (i+1)); try { dse = ScheduleUtils.buildQuantityScheduleElement(demandSchedule_[i], start, end); rlse = ScheduleUtils.buildQuantityScheduleElement(getReorderLevel(i), start, end); glse = ScheduleUtils.buildQuantityScheduleElement(getGoalLevel(i), start, end); } catch (IllegalArgumentException iae) { iae.printStackTrace(); continue; }// if(GLMDebug.printDebug()) GLMDebug.DEBUG("InventoryBG", "UpdateInventoryLevelschedule(), Start:"+TimeUtils.dateString(start)+// ", End:"+TimeUtils.dateString(end)+", Qty: "+level_[i]); new_av_demand_elements.add(dse); new_reorder_elements.add(rlse); new_goal_elements.add(glse); } } Schedule new_av_demand_schedule = GLMFactory.newQuantitySchedule(new_av_demand_elements.elements(), PlanScheduleType.TOTAL_INVENTORY); Schedule new_reorder_schedule = GLMFactory.newQuantitySchedule(new_reorder_elements.elements(), PlanScheduleType.TOTAL_INVENTORY); Schedule new_goal_schedule = GLMFactory.newQuantitySchedule(new_goal_elements.elements(), PlanScheduleType.TOTAL_INVENTORY); if (ScheduleUtils.isOffendingSchedule(new_av_demand_schedule)) { GLMDebug.ERROR("InventoryBG", "UpdateInventoryLevelschedule(), CREATED BAD nDays SCHEDULE "); printQuantityScheduleTimes(new_av_demand_schedule); } if (ScheduleUtils.isOffendingSchedule(new_reorder_schedule)) { GLMDebug.ERROR("InventoryBG", "UpdateInventoryLevelschedule(), CREATED BAD reorder SCHEDULE "); printQuantityScheduleTimes(new_reorder_schedule); } if (ScheduleUtils.isOffendingSchedule(new_goal_schedule)) { GLMDebug.ERROR("InventoryBG", "UpdateInventoryLevelschedule(), CREATED BAD goal SCHEDULE "); printQuantityScheduleTimes(new_goal_schedule); } ((NewInventoryLevelsPG)ilp).setAverageDemandSchedule(new_av_demand_schedule); ((NewInventoryLevelsPG)ilp).setReorderLevelSchedule(new_reorder_schedule); ((NewInventoryLevelsPG)ilp).setGoalLevelSchedule(new_goal_schedule); return 0; }
7171 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7171/0d6b105fa989fb2f7198fd071ee6976385ad266b/InventoryBG.java/clean/glm/src/org/cougaar/glm/ldm/asset/InventoryBG.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 509, 1089, 15059, 12240, 6061, 12, 15059, 13086, 13, 288, 565, 24835, 12240, 18679, 277, 9953, 273, 13086, 18, 588, 15059, 12240, 18679, 5621, 565, 18189, 6061, 1046, 302, 307, 16, 11...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 509, 1089, 15059, 12240, 6061, 12, 15059, 13086, 13, 288, 565, 24835, 12240, 18679, 277, 9953, 273, 13086, 18, 588, 15059, 12240, 18679, 5621, 565, 18189, 6061, 1046, 302, 307, 16, 11...
debug("start CRL entry len == " + entry.getLength());
if (Configuration.DEBUG) log.fine("start CRL entry len == " + entry.getLength());
private void parse(int version, DERReader der) throws Exception { // RevokedCertificate ::= SEQUENCE { DERValue entry = der.read(); debug("start CRL entry len == " + entry.getLength()); if (!entry.isConstructed()) throw new IOException("malformed revokedCertificate"); encoded = entry.getEncoded(); int len = 0; debug("encoded entry:\n" + Util.hexDump(encoded, ">>>> ")); // userCertificate CertificateSerialNumber, DERValue val = der.read(); serialNo = (BigInteger) val.getValue(); len += val.getEncodedLength(); debug("userCertificate == " + serialNo + " current count == " + len); // revocationDate Time, val = der.read(); revocationDate = (Date) val.getValue(); len += val.getEncodedLength(); debug("revocationDate == " + revocationDate + " current count == " + len); // crlEntryExtensions Extensions OPTIONAL // -- if present MUST be v2 if (len < entry.getLength()) { if (version < 2) throw new IOException("extra data in CRL entry"); DERValue exts = der.read(); if (!exts.isConstructed()) throw new IOException("malformed Extensions"); debug("start Extensions len == " + exts.getLength()); len = 0; while (len < exts.getLength()) { val = der.read(); if (!val.isConstructed()) throw new IOException("malformed Extension"); debug("start Extension len == " + val.getLength()); Extension e = new Extension(val.getEncoded()); extensions.put(e.getOid(), e); der.skip(val.getLength()); len += val.getEncodedLength(); debug("current count == " + len); } } }
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/8ace3af577b4314374a3cc74fdeae04a0733f7de/X509CRLEntry.java/buggy/gnu/java/security/x509/X509CRLEntry.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 1109, 12, 474, 1177, 16, 21801, 2514, 4854, 13, 1216, 1185, 225, 288, 565, 368, 14477, 14276, 4719, 493, 33, 27118, 288, 565, 21801, 620, 1241, 273, 4854, 18, 896, 5621, 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, 282, 3238, 918, 1109, 12, 474, 1177, 16, 21801, 2514, 4854, 13, 1216, 1185, 225, 288, 565, 368, 14477, 14276, 4719, 493, 33, 27118, 288, 565, 21801, 620, 1241, 273, 4854, 18, 896, 5621, 565, ...
assertTrue(false);
fail("Expected exception");
public void testParseConfigurationFileName() { String[] correctArgs = new String[] {"-configfile", "config.xml"}; String[] missingArgs = new String[] {""}; String[] incorrectArgs = new String[] {"-configfile"}; Main main = new Main(); try { assertEquals(main.parseConfigFileName(correctArgs, null), "config.xml"); } catch (CruiseControlException e) { assertTrue(false); } try { assertEquals(main.parseConfigFileName(missingArgs, "config.xml"), "config.xml"); } catch (CruiseControlException e) { assertTrue(false); } try { main.parseConfigFileName(incorrectArgs, null); assertTrue(false); } catch (CruiseControlException e) { assertTrue(true); } try { main.parseConfigFileName(missingArgs, null); assertTrue(false); } catch (CruiseControlException e) { assertTrue(true); } }
55334 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55334/cf8bdb14d59ffc7bba2335627d25f68867c5a366/MainTest.java/clean/main/test/net/sourceforge/cruisecontrol/MainTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 3201, 1750, 4771, 1435, 288, 3639, 514, 8526, 3434, 2615, 273, 394, 514, 8526, 12528, 17, 1425, 768, 3113, 315, 1425, 18, 2902, 6, 20451, 3639, 514, 8526, 3315, 2615, 273...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 3201, 1750, 4771, 1435, 288, 3639, 514, 8526, 3434, 2615, 273, 394, 514, 8526, 12528, 17, 1425, 768, 3113, 315, 1425, 18, 2902, 6, 20451, 3639, 514, 8526, 3315, 2615, 273...
} else if (att.equals("spinMultiplicity")) {
} else if (att.equals("spinMultiplicity")) {
public void startElement(CMLStack xpath, String uri, String local, String raw, Attributes atts) { String name = local; logger.debug("StartElement"); currentChars = ""; BUILTIN = ""; DICTREF = ""; for (int i=0; i<atts.getLength(); i++) { String qname = atts.getQName(i); if (qname.equals("builtin")) { BUILTIN = atts.getValue(i); logger.debug(name, "->BUILTIN found: ", atts.getValue(i)); } else if (qname.equals("dictRef")) { DICTREF = atts.getValue(i); logger.debug(name, "->DICTREF found: ", atts.getValue(i)); } else if (qname.equals("title")) { elementTitle = atts.getValue(i); logger.debug(name, "->TITLE found: ", atts.getValue(i)); } else { logger.debug("Qname: ", qname); } } if ("atom".equals(name)) { atomCounter++; for (int i = 0; i < atts.getLength(); i++) { String att = atts.getQName(i); String value = atts.getValue(i); if (att.equals("id")) { // this is supported in CML 1.x elid.addElement(value); } // this is supported in CML 2.0 else if (att.equals("elementType")) { elsym.addElement(value); } // this is supported in CML 2.0 else if (att.equals("title")) { eltitles.addElement(value); } // this is supported in CML 2.0 else if (att.equals("x2")) { x2.addElement(value); } // this is supported in CML 2.0 else if (att.equals("xy2")) { StringTokenizer tokenizer = new StringTokenizer(value); x2.addElement(tokenizer.nextToken()); y2.addElement(tokenizer.nextToken()); } // this is supported in CML 2.0 else if (att.equals("xyzFract")) { StringTokenizer tokenizer = new StringTokenizer(value); xfract.addElement(tokenizer.nextToken()); yfract.addElement(tokenizer.nextToken()); zfract.addElement(tokenizer.nextToken()); } // this is supported in CML 2.0 else if (att.equals("xyz3")) { StringTokenizer tokenizer = new StringTokenizer(value); x3.addElement(tokenizer.nextToken()); y3.addElement(tokenizer.nextToken()); z3.addElement(tokenizer.nextToken()); } // this is supported in CML 2.0 else if (att.equals("y2")) { y2.addElement(value); } // this is supported in CML 2.0 else if (att.equals("x3")) { x3.addElement(value); } // this is supported in CML 2.0 else if (att.equals("y3")) { y3.addElement(value); } // this is supported in CML 2.0 else if (att.equals("z3")) { z3.addElement(value); } // this is supported in CML 2.0 else if (att.equals("xFract")) { xfract.addElement(value); } // this is supported in CML 2.0 else if (att.equals("yFract")) { yfract.addElement(value); } // this is supported in CML 2.0 else if (att.equals("zFract")) { zfract.addElement(value); } // this is supported in CML 2.0 else if (att.equals("formalCharge")) { formalCharges.addElement(value); } // this is supported in CML 2.0 else if (att.equals("hydrogenCount")) { hCounts.addElement(value); } else if (att.equals("isotope")) { isotope.addElement(value); } else if (att.equals("dictRef")) { atomDictRefs.addElement(value); } else if (att.equals("spinMultiplicity")) { spinMultiplicities.addElement(value); } else { logger.warn("Unparsed attribute: " + att); } } } else if ("atomArray".equals(name) && !xpath.endsWith("formula", "atomArray")) { boolean atomsCounted = false; for (int i = 0; i < atts.getLength(); i++) { String att = atts.getQName(i); int count = 0; if (att.equals("atomID")) { count = addArrayElementsTo(elid, atts.getValue(i)); } else if (att.equals("elementType")) { count = addArrayElementsTo(elsym, atts.getValue(i)); } else if (att.equals("x2")) { count = addArrayElementsTo(x2, atts.getValue(i)); } else if (att.equals("y2")) { count = addArrayElementsTo(y2, atts.getValue(i)); } else if (att.equals("x3")) { count = addArrayElementsTo(x3, atts.getValue(i)); } else if (att.equals("y3")) { count = addArrayElementsTo(y3, atts.getValue(i)); } else if (att.equals("z3")) { count = addArrayElementsTo(z3, atts.getValue(i)); } else if (att.equals("xFract")) { count = addArrayElementsTo(xfract, atts.getValue(i)); } else if (att.equals("yFract")) { count = addArrayElementsTo(yfract, atts.getValue(i)); } else if (att.equals("zFract")) { count = addArrayElementsTo(zfract, atts.getValue(i)); } else { logger.warn("Unparsed attribute: " + att); } if (!atomsCounted) { atomCounter += count; atomsCounted = true; } } } else if ("bond".equals(name)) { bondCounter++; for (int i = 0; i < atts.getLength(); i++) { String att = atts.getQName(i); logger.debug("B2 ", att, "=", atts.getValue(i)); if (att.equals("id")) { bondid.addElement(atts.getValue(i)); logger.debug("B3 ", bondid); } else if (att.equals("atomRefs") || // this is CML 1.x support att.equals("atomRefs2")) { // this is CML 2.0 support // expect exactly two references try { StringTokenizer st = new StringTokenizer( atts.getValue(i) ); bondARef1.addElement((String)st.nextElement()); bondARef2.addElement((String)st.nextElement()); } catch (Exception e) { logger.error("Error in CML file: ", e.getMessage()); logger.debug(e); } } else if (att.equals("order")) { // this is CML 2.0 support order.addElement(atts.getValue(i).trim()); } else if (att.equals("dictRef")) { bondDictRefs.addElement(atts.getValue(i).trim()); } } stereoGiven = false; curRef = 0; } else if ("bondArray".equals(name)) { boolean bondsCounted = false; for (int i = 0; i < atts.getLength(); i++) { String att = atts.getQName(i); int count = 0; if (att.equals("bondID")) { count = addArrayElementsTo(bondid, atts.getValue(i)); } else if (att.equals("atomRefs1")) { count = addArrayElementsTo(bondARef1, atts.getValue(i)); } else if (att.equals("atomRefs2")) { count = addArrayElementsTo(bondARef2, atts.getValue(i)); } else if (att.equals("atomRef1")) { count = addArrayElementsTo(bondARef1, atts.getValue(i)); } else if (att.equals("atomRef2")) { count = addArrayElementsTo(bondARef2, atts.getValue(i)); } else if (att.equals("order")) { count = addArrayElementsTo(order, atts.getValue(i)); } else { logger.warn("Unparsed attribute: " + att); } if (!bondsCounted) { bondCounter += count; bondsCounted = true; } } curRef = 0; } else if ("bondStereo".equals(name)) { for (int i = 0; i < atts.getLength(); i++) { if (atts.getQName(i).equals("dictRef")) { if (atts.getValue(i).startsWith("cml:")) bondStereo.addElement(atts.getValue(i).substring(4)); stereoGiven=true; } } } else if ("molecule".equals(name)) { newMolecule(); BUILTIN = ""; cdo.startObject("Molecule"); for (int i = 0; i < atts.getLength(); i++) { if (atts.getQName(i).equals("id")) { cdo.setObjectProperty("Molecule", "id", atts.getValue(i)); } else if (atts.getQName(i).equals("dictRef")) { cdo.setObjectProperty("Molecule", "dictRef", atts.getValue(i)); } } } else if ("crystal".equals(name)) { newCrystalData(); cdo.startObject("Crystal"); for (int i = 0; i < atts.getLength(); i++) { String att = atts.getQName(i); if (att.equals("z")) { cdo.setObjectProperty("Crystal", "z", atts.getValue(i)); } } } else if ("symmetry".equals(name)) { for (int i = 0; i < atts.getLength(); i++) { String att = atts.getQName(i); if (att.equals("spaceGroup")) { cdo.setObjectProperty("Crystal", "spacegroup", atts.getValue(i)); } } } else if ("identifier".equals(name)) { if (atts.getValue("convention") != null && atts.getValue("convention").equals("iupac:inchi") && atts.getValue("value") != null) { cdo.setObjectProperty("Molecule", "inchi", atts.getValue("value")); } } else if ("scalar".equals(name)) { if (xpath.endsWith("crystal", "scalar")) crystalScalar++; } else if ("list".equals(name)) { cdo.startObject("MoleculeSet"); } }
45254 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45254/3458415ba2170ae222944c38d0bce8541191dc46/CMLCoreModule.java/clean/src/org/openscience/cdk/io/cml/CMLCoreModule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 13591, 12, 39, 1495, 2624, 6748, 16, 514, 2003, 16, 514, 1191, 16, 514, 1831, 16, 1171, 9079, 9055, 15687, 13, 288, 3639, 514, 508, 273, 1191, 31, 3639, 1194, 18, 4148, 2932,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 13591, 12, 39, 1495, 2624, 6748, 16, 514, 2003, 16, 514, 1191, 16, 514, 1831, 16, 1171, 9079, 9055, 15687, 13, 288, 3639, 514, 508, 273, 1191, 31, 3639, 1194, 18, 4148, 2932,...