rem
stringlengths
1
53.3k
add
stringlengths
0
80.5k
context
stringlengths
6
326k
meta
stringlengths
141
403
input_ids
list
attention_mask
list
labels
list
if (eqReplaced.indexOf("=") != -1){
if (eqReplaced.indexOf("=") != -1){
public boolean isValid(PySelection ps, String sel, PyEdit edit, int offset) { try { if(! (ps.getTextSelection().getLength() == 0)) return false; String lineToCursor = ps.getLineContentsToCursor(); if( ! ( sel.indexOf("class ") == -1 && sel.indexOf("def ") == -1 && sel.indexOf("import ") == -1)) return false; String eqReplaced = sel.replaceAll("==", ""); if (eqReplaced.indexOf("=") != -1){ //ok, make analysis taking into account the first parentesis if(eqReplaced.indexOf('(') == -1){ return false; } int i = eqReplaced.indexOf('('); if(eqReplaced.substring(0, i).indexOf('=') != -1){ return false; } } if( lineToCursor.trim().endsWith(")")) return true; if( lineToCursor.indexOf('.') != -1) return true; } catch (BadLocationException e) { } return false; }
50371 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50371/47e20d438631022f902a772d44ceef9ed362b7c5/AssistAssign.java/buggy/org.python.pydev/src/org/python/pydev/editor/correctionassist/heuristics/AssistAssign.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 4908, 12, 9413, 6233, 4250, 16, 514, 357, 16, 4707, 4666, 3874, 16, 509, 1384, 13, 288, 3639, 775, 288, 5411, 309, 12, 5, 261, 1121, 18, 588, 1528, 6233, 7675, 588, 1782, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4908, 12, 9413, 6233, 4250, 16, 514, 357, 16, 4707, 4666, 3874, 16, 509, 1384, 13, 288, 3639, 775, 288, 5411, 309, 12, 5, 261, 1121, 18, 588, 1528, 6233, 7675, 588, 1782, ...
AST __t1996 = _t;
AST __t1997 = _t;
public final void sizephrase(AST _t) throws RecognitionException { AST sizephrase_AST_in = (_t == ASTNULL) ? null : (AST)_t; if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case SIZE: { AST __t1995 = _t; AST tmp2088_AST_in = (AST)_t; match(_t,SIZE); _t = _t.getFirstChild(); expression(_t); _t = _retTree; AST tmp2089_AST_in = (AST)_t; match(_t,BY); _t = _t.getNextSibling(); expression(_t); _t = _retTree; _t = __t1995; _t = _t.getNextSibling(); break; } case SIZECHARS: { AST __t1996 = _t; AST tmp2090_AST_in = (AST)_t; match(_t,SIZECHARS); _t = _t.getFirstChild(); expression(_t); _t = _retTree; AST tmp2091_AST_in = (AST)_t; match(_t,BY); _t = _t.getNextSibling(); expression(_t); _t = _retTree; _t = __t1996; _t = _t.getNextSibling(); break; } case SIZEPIXELS: { AST __t1997 = _t; AST tmp2092_AST_in = (AST)_t; match(_t,SIZEPIXELS); _t = _t.getFirstChild(); expression(_t); _t = _retTree; AST tmp2093_AST_in = (AST)_t; match(_t,BY); _t = _t.getNextSibling(); expression(_t); _t = _retTree; _t = __t1997; _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/865876f0e6319c071fef156818ff116c276cfdff/JPTreeParser.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparserbase/JPTreeParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 963, 9429, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 963, 9429, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 963, 9429, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 963, 9429, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, ...
String method = m_outputFormat.getProperty(OutputKeys.METHOD);
private void createResultContentHandler(Result outputTarget) throws TransformerException { if (outputTarget instanceof SAXResult) { SAXResult saxResult = (SAXResult) outputTarget; m_resultContentHandler = saxResult.getHandler(); m_resultLexicalHandler = saxResult.getLexicalHandler(); if (m_resultContentHandler instanceof Serializer) { // Dubious but needed, I think. m_serializer = (Serializer) m_resultContentHandler; } } else if (outputTarget instanceof DOMResult) { DOMResult domResult = (DOMResult) outputTarget; Node outputNode = domResult.getNode(); Node nextSibling = domResult.getNextSibling(); Document doc; short type; if (null != outputNode) { type = outputNode.getNodeType(); doc = (Node.DOCUMENT_NODE == type) ? (Document) outputNode : outputNode.getOwnerDocument(); } else { try { DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); dbf.setNamespaceAware(true); if (m_isSecureProcessing) { try { dbf.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, true); } catch (ParserConfigurationException pce) {} } DocumentBuilder db = dbf.newDocumentBuilder(); doc = db.newDocument(); } catch (ParserConfigurationException pce) { throw new TransformerException(pce); } outputNode = doc; type = outputNode.getNodeType(); ((DOMResult) outputTarget).setNode(outputNode); } DOMBuilder domBuilder = (Node.DOCUMENT_FRAGMENT_NODE == type) ? new DOMBuilder(doc, (DocumentFragment) outputNode) : new DOMBuilder(doc, outputNode); if (nextSibling != null) domBuilder.setNextSibling(nextSibling); m_resultContentHandler = domBuilder; m_resultLexicalHandler = domBuilder; } else if (outputTarget instanceof StreamResult) { StreamResult sresult = (StreamResult) outputTarget; String method = m_outputFormat.getProperty(OutputKeys.METHOD); try { Serializer serializer = SerializerFactory.getSerializer(m_outputFormat.getProperties()); m_serializer = serializer; if (null != sresult.getWriter()) serializer.setWriter(sresult.getWriter()); else if (null != sresult.getOutputStream()) serializer.setOutputStream(sresult.getOutputStream()); else if (null != sresult.getSystemId()) { String fileURL = sresult.getSystemId(); if (fileURL.startsWith("file:///")) { if (fileURL.substring(8).indexOf(":") >0) { fileURL = fileURL.substring(8); } else { fileURL = fileURL.substring(7); } } else if (fileURL.startsWith("file:/")) { if (fileURL.substring(6).indexOf(":") >0) { fileURL = fileURL.substring(6); } else { fileURL = fileURL.substring(5); } } m_outputStream = new java.io.FileOutputStream(fileURL); serializer.setOutputStream(m_outputStream); } else throw new TransformerException(XSLMessages.createMessage(XSLTErrorResources.ER_NO_OUTPUT_SPECIFIED, null)); //"No output specified!"); m_resultContentHandler = serializer.asContentHandler(); } catch (IOException ioe) { throw new TransformerException(ioe); } } else { throw new TransformerException(XSLMessages.createMessage(XSLTErrorResources.ER_CANNOT_TRANSFORM_TO_RESULT_TYPE, new Object[]{outputTarget.getClass().getName()})); //"Can't transform to a Result of type " // + outputTarget.getClass().getName() // + "!"); } if (m_resultContentHandler instanceof DTDHandler) m_resultDTDHandler = (DTDHandler) m_resultContentHandler; if (m_resultContentHandler instanceof DeclHandler) m_resultDeclHandler = (DeclHandler) m_resultContentHandler; if (m_resultContentHandler instanceof LexicalHandler) m_resultLexicalHandler = (LexicalHandler) m_resultContentHandler; }
46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/54762126edf32d9d32dcf102848369d9182128d6/TransformerIdentityImpl.java/buggy/src/org/apache/xalan/transformer/TransformerIdentityImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 752, 1253, 1350, 1503, 12, 1253, 876, 2326, 13, 1850, 1216, 21684, 225, 288, 565, 309, 261, 2844, 2326, 1276, 10168, 1253, 13, 565, 288, 1377, 10168, 1253, 20319, 1253, 273, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 752, 1253, 1350, 1503, 12, 1253, 876, 2326, 13, 1850, 1216, 21684, 225, 288, 565, 309, 261, 2844, 2326, 1276, 10168, 1253, 13, 565, 288, 1377, 10168, 1253, 20319, 1253, 273, 26...
String s = br.readLine(); while (s != null) { out.write(s); s = br.readLine();
String line = br.readLine(); while (line != null) { out.write(line); out.write('\n'); line = br.readLine();
private void writeStatus(java.io.Writer out) throws JspException { BufferedReader br = null; File logDir = findLogDir(); String currentBuildFileName = getContextParam("currentBuildStatusFile"); if (currentBuildFileName == null || currentBuildFileName.equals("")) { System.err.println("CruiseControl: currentBuildStatusFile not defined in the web.xml"); return; } File currentBuildFile = new File(logDir, currentBuildFileName); if (currentBuildFile.isDirectory()) { System.err.println( "CruiseControl: currentBuildStatusFile " + currentBuildFile.getAbsolutePath() + " is a directory." + " Edit the web.xml to provide the path to the correct file."); return; } if (!currentBuildFile.exists()) { System.err.println( "CruiseControl: currentBuildStatusFile " + currentBuildFile.getAbsolutePath() + " does not exist." + " You may need to update the value in the web.xml" + " or the location specified in your CruiseControl config.xml."); return; } try { br = new BufferedReader(new FileReader(currentBuildFile)); String s = br.readLine(); while (s != null) { out.write(s); s = br.readLine(); } } catch (IOException e) { e.printStackTrace(); throw new JspException( "Error reading status file: " + currentBuildFileName + " : " + e.getMessage()); } finally { try { if (br != null) { br.close(); } } catch (IOException e) { e.printStackTrace(); } br = null; } }
52149 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52149/2ed80f33bc52bedcd225a57b77973a217c514cda/CurrentBuildStatusTag.java/clean/reporting/jsp/src/net/sourceforge/cruisecontrol/taglib/CurrentBuildStatusTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1045, 1482, 12, 6290, 18, 1594, 18, 2289, 596, 13, 1216, 27485, 288, 3639, 10633, 5186, 273, 446, 31, 3639, 1387, 31101, 273, 1104, 1343, 1621, 5621, 3639, 514, 783, 3116, 4771...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1045, 1482, 12, 6290, 18, 1594, 18, 2289, 596, 13, 1216, 27485, 288, 3639, 10633, 5186, 273, 446, 31, 3639, 1387, 31101, 273, 1104, 1343, 1621, 5621, 3639, 514, 783, 3116, 4771...
set(parameterIndex, x.toString());
if (x == null) setNull(parameterIndex, Types.OTHER); else { set(parameterIndex, x.toString()); }
public void setBigDecimal(int parameterIndex, BigDecimal x) throws SQLException { set(parameterIndex, x.toString()); }
46563 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46563/da631e931f9da4bc5df4bfd39f0c42684adfb8e5/PreparedStatement.java/clean/src/interfaces/jdbc/org/postgresql/jdbc1/PreparedStatement.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 29436, 12, 474, 25412, 16, 8150, 619, 13, 1216, 6483, 202, 95, 202, 202, 542, 12, 6775, 1016, 16, 619, 18, 10492, 10663, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 29436, 12, 474, 25412, 16, 8150, 619, 13, 1216, 6483, 202, 95, 202, 202, 542, 12, 6775, 1016, 16, 619, 18, 10492, 10663, 202, 97, 2, -100, -100, -100, -100, -100, ...
if (end != (mv.length-1))
if (end != (mv.length-1)) { if (Debug.debug) Debug.print(Debug.VERBOSE, "System.arraycopy({0..."+mv.length+"},0,{0..."+lv.length+"},"+(mv.length-start)+","+(end+1)+");");
public long[] getKeys() { int size; if (start < end) size = end-start-1; else size = mv.length-(start-end); long[] lv = new long[size]; System.arraycopy(mv,start,lv,0,mv.length-start); if (end != (mv.length-1)) System.arraycopy(mv,0,lv,mv.length-start,end+1); return lv; }
5401 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5401/bc28942a2813fa5bb90f80ac1853020080f82dc0/EfficientQueue.java/buggy/org/freedesktop/dbus/EfficientQueue.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 1525, 8526, 24753, 1435, 282, 288, 1377, 509, 963, 31, 1377, 309, 261, 1937, 411, 679, 13, 963, 273, 679, 17, 1937, 17, 21, 31, 1377, 469, 963, 273, 7701, 18, 2469, 17, 12, 1937...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 1525, 8526, 24753, 1435, 282, 288, 1377, 509, 963, 31, 1377, 309, 261, 1937, 411, 679, 13, 963, 273, 679, 17, 1937, 17, 21, 31, 1377, 469, 963, 273, 7701, 18, 2469, 17, 12, 1937...
Folder folder = (Folder) folders.get(folderPath);
String lastFolderPath = (String) session.getAttribute("lastFolderPath"); Folder lastFolder = (Folder) session.getAttribute("lastFolder");
private Folder getFolder(HttpSession session, String folderPath) { Hashtable folders = getFolders(session); Folder folder = (Folder) folders.get(folderPath); return folder; }
5127 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5127/fe20d976273f5ace5a473f04f2971ddcf780edcb/Controller.java/buggy/WEB-INF/src/de/jwi/jgallery/servlets/Controller.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 12623, 29001, 12, 2940, 2157, 1339, 16, 514, 28121, 13, 202, 95, 202, 202, 5582, 14544, 9907, 273, 2812, 4665, 12, 3184, 1769, 202, 202, 3899, 3009, 273, 261, 3899, 13, 9907, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 12623, 29001, 12, 2940, 2157, 1339, 16, 514, 28121, 13, 202, 95, 202, 202, 5582, 14544, 9907, 273, 2812, 4665, 12, 3184, 1769, 202, 202, 3899, 3009, 273, 261, 3899, 13, 9907, ...
getMethods().put(name, new AliasMethod(method, oldName, origin, method.getNoex()));
getMethods().put(name, new AliasMethod(method, oldName, origin, method.getVisibility()));
public void aliasMethod(String name, String oldName) { testFrozen(); if (oldName.equals(name)) { return; } if (this == getRuntime().getClasses().getObjectClass()) { getRuntime().secure(4); } ICallable method = searchMethod(oldName); RubyModule origin = null; if (method == null) { if (isModule()) { method = getRuntime().getClasses().getObjectClass().searchMethod(oldName); } if (method == null) { throw new NameError( ruby, "undefined method '" + name + "' for " + (isModule() ? "module" : "class") + " '" + toName() + "'"); } } origin = method.getImplementationClass(); if (method instanceof AliasMethod) { /* was alias */ oldName = ((AliasMethod) method).getOldName(); origin = ((AliasMethod) method).getOrigin(); method = ((AliasMethod) method).getOldMethod(); } getRuntime().getMethodCache().clearByName(name); getMethods().put(name, new AliasMethod(method, oldName, origin, method.getNoex())); }
49687 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49687/f05423516c2d1bfe54c4363eedb9654f7cfb6898/RubyModule.java/clean/org/jruby/RubyModule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2308, 1305, 12, 780, 508, 16, 514, 22916, 13, 288, 3639, 1842, 42, 9808, 5621, 3639, 309, 261, 1673, 461, 18, 14963, 12, 529, 3719, 288, 5411, 327, 31, 3639, 289, 3639, 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, 1071, 918, 2308, 1305, 12, 780, 508, 16, 514, 22916, 13, 288, 3639, 1842, 42, 9808, 5621, 3639, 309, 261, 1673, 461, 18, 14963, 12, 529, 3719, 288, 5411, 327, 31, 3639, 289, 3639, 309, ...
type.append("enum");
type.append("enum");
public static String getElaboratedTypeSignature(IASTElaboratedTypeSpecifier elab){ StringBuffer type = new StringBuffer(); ASTClassKind t = elab.getClassKind(); if( t == ASTClassKind.CLASS){ type.append("class"); } else if( t == ASTClassKind.STRUCT){ type.append("struct"); } else if( t == ASTClassKind.UNION){ type.append("union"); } else if( t == ASTClassKind.STRUCT){ type.append("enum"); } type.append(" "); type.append(elab.getName().toString()); return type.toString(); }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/95f42aeb9e7f38db093795981bd7c7300a3eeeb6/ASTUtil.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/util/ASTUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 514, 4774, 7411, 280, 690, 559, 5374, 12, 45, 9053, 4958, 378, 280, 690, 559, 21416, 415, 378, 15329, 202, 202, 780, 1892, 618, 273, 394, 6674, 5621, 202, 202, 9053, 797,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 514, 4774, 7411, 280, 690, 559, 5374, 12, 45, 9053, 4958, 378, 280, 690, 559, 21416, 415, 378, 15329, 202, 202, 780, 1892, 618, 273, 394, 6674, 5621, 202, 202, 9053, 797,...
private boolean includeMethodFromExpression(ITestNGMethod tm, boolean isTestMethod) {
private boolean includeMethodFromExpression(ITestNGMethod tm, boolean isTestMethod) {
private boolean includeMethodFromExpression(ITestNGMethod tm, boolean isTestMethod) { boolean result = false; Interpreter interpreter = new Interpreter(); try { Map<String, String> groups = new HashMap<String, String>(); for (String group : tm.getGroups()) { groups.put(group, group); } interpreter.set("method", tm.getMethod()); interpreter.set("groups", groups); interpreter.set("testngMethod", tm); Object evalResult = interpreter.eval(m_expression); result = ((Boolean) evalResult).booleanValue(); } catch (EvalError e) { e.printStackTrace(); } return result; }
47060 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47060/323d80403111e25862b46f6b965552114f0d11c9/XmlMethodSelector.java/clean/src/main/org/testng/internal/XmlMethodSelector.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 1250, 2341, 1305, 1265, 2300, 12, 1285, 395, 4960, 1305, 6118, 16, 4202, 1250, 353, 4709, 1305, 13, 282, 288, 565, 1250, 563, 273, 629, 31, 565, 5294, 11599, 16048, 273, 394, 5294, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1250, 2341, 1305, 1265, 2300, 12, 1285, 395, 4960, 1305, 6118, 16, 4202, 1250, 353, 4709, 1305, 13, 282, 288, 565, 1250, 563, 273, 629, 31, 565, 5294, 11599, 16048, 273, 394, 5294, ...
private String matchLabel()
private Node matchLabel()
private String matchLabel() throws IOException, ParserException { int lineno = ts.getLineno(); String label = null; int tt; tt = ts.peekTokenSameLine(); if (tt == Token.NAME) { ts.getToken(); label = ts.getString(); } if (lineno == ts.getLineno()) checkWellTerminated(); return label; }
47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/792304a2a96cea5a80c02ff6a02a98f830f7393d/Parser.java/clean/js/rhino/src/org/mozilla/javascript/Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 2029, 845, 2224, 1435, 3639, 1216, 1860, 16, 27990, 565, 288, 3639, 509, 7586, 273, 3742, 18, 588, 48, 267, 5764, 5621, 3639, 514, 1433, 273, 446, 31, 3639, 509, 3574, 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, 3238, 2029, 845, 2224, 1435, 3639, 1216, 1860, 16, 27990, 565, 288, 3639, 509, 7586, 273, 3742, 18, 588, 48, 267, 5764, 5621, 3639, 514, 1433, 273, 446, 31, 3639, 509, 3574, 31, 3639, 3...
source.append((char)ts.LC);
sourceAdd((char)ts.LC);
private Object primaryExpr(TokenStream ts, Source source) throws IOException, JavaScriptException { int tt; Object pn; ts.flags |= ts.TSF_REGEXP; tt = ts.getToken(); ts.flags &= ~ts.TSF_REGEXP; switch(tt) { case TokenStream.FUNCTION: return function(ts, source, true); case TokenStream.LB: { source.append((char)ts.LB); pn = nf.createLeaf(ts.ARRAYLIT); ts.flags |= ts.TSF_REGEXP; boolean matched = ts.matchToken(ts.RB); ts.flags &= ~ts.TSF_REGEXP; if (!matched) { boolean first = true; do { ts.flags |= ts.TSF_REGEXP; tt = ts.peekToken(); ts.flags &= ~ts.TSF_REGEXP; if (!first) source.append((char)ts.COMMA); else first = false; if (tt == ts.RB) { // to fix [,,,].length behavior... break; } if (tt == ts.COMMA) { nf.addChildToBack(pn, nf.createLeaf(ts.PRIMARY, ts.UNDEFINED)); } else { nf.addChildToBack(pn, assignExpr(ts, source, false)); } } while (ts.matchToken(ts.COMMA)); mustMatchToken(ts, ts.RB, "msg.no.bracket.arg"); } source.append((char)ts.RB); return nf.createArrayLiteral(pn); } case TokenStream.LC: { pn = nf.createLeaf(ts.OBJLIT); source.append((char)ts.LC); if (!ts.matchToken(ts.RC)) { boolean first = true; commaloop: do { Object property; if (!first) source.append((char)ts.COMMA); else first = false; tt = ts.getToken(); switch(tt) { // map NAMEs to STRINGs in object literal context. case TokenStream.NAME: case TokenStream.STRING: String s = ts.getString(); source.addString(ts.NAME, s); property = nf.createString(ts.getString()); break; case TokenStream.NUMBER: double n = ts.getNumber(); source.addNumber(n); property = nf.createNumber(n); break; case TokenStream.RC: // trailing comma is OK. ts.ungetToken(tt); break commaloop; default: reportError(ts, "msg.bad.prop"); break commaloop; } mustMatchToken(ts, ts.COLON, "msg.no.colon.prop"); // OBJLIT is used as ':' in object literal for // decompilation to solve spacing ambiguity. source.append((char)ts.OBJLIT); nf.addChildToBack(pn, property); nf.addChildToBack(pn, assignExpr(ts, source, false)); } while (ts.matchToken(ts.COMMA)); mustMatchToken(ts, ts.RC, "msg.no.brace.prop"); } source.append((char)ts.RC); return nf.createObjectLiteral(pn); } case TokenStream.LP: /* Brendan's IR-jsparse.c makes a new node tagged with * TOK_LP here... I'm not sure I understand why. Isn't * the grouping already implicit in the structure of the * parse tree? also TOK_LP is already overloaded (I * think) in the C IR as 'function call.' */ source.append((char)ts.LP); pn = expr(ts, source, false); source.append((char)ts.RP); mustMatchToken(ts, ts.RP, "msg.no.paren"); return pn; case TokenStream.NAME: String name = ts.getString(); source.addString(ts.NAME, name); return nf.createName(name); case TokenStream.NUMBER: double n = ts.getNumber(); source.addNumber(n); return nf.createNumber(n); case TokenStream.STRING: String s = ts.getString(); source.addString(ts.STRING, s); return nf.createString(s); case TokenStream.OBJECT: { String flags = ts.regExpFlags; ts.regExpFlags = null; String re = ts.getString(); source.addString(ts.OBJECT, '/' + re + '/' + flags); return nf.createRegExp(re, flags); } case TokenStream.PRIMARY: source.append((char)ts.PRIMARY); source.append((char)ts.getOp()); return nf.createLeaf(ts.PRIMARY, ts.getOp()); case TokenStream.RESERVED: reportError(ts, "msg.reserved.id"); break; case TokenStream.ERROR: /* the scanner or one of its subroutines reported the error. */ break; default: reportError(ts, "msg.syntax"); break; } return null; // should never reach here }
47345 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47345/92ccdd736e7a1516e4fb6d1eaf915e7021c8dc95/Parser.java/clean/src/org/mozilla/javascript/Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1033, 3354, 4742, 12, 1345, 1228, 3742, 16, 4998, 1084, 13, 3639, 1216, 1860, 16, 11905, 503, 565, 288, 3639, 509, 3574, 31, 3639, 1033, 11059, 31, 3639, 3742, 18, 7133, 5626, 3742,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1033, 3354, 4742, 12, 1345, 1228, 3742, 16, 4998, 1084, 13, 3639, 1216, 1860, 16, 11905, 503, 565, 288, 3639, 509, 3574, 31, 3639, 1033, 11059, 31, 3639, 3742, 18, 7133, 5626, 3742,...
MethodCall call = new MethodCall("_add", new Object[] {fqn, element}, new String[] {String.class.getName(), Serializable.class.getName()});
MethodCall call = new MethodCall("_add", new Object[] {fqn}, new String[] {String.class.getName()});
public void add(String fqn, Serializable element) { //Changes done by <aos> //if true, propagate action to the group if(send_message == true) { try { MethodCall call = new MethodCall("_add", new Object[] {fqn, element}, new String[] {String.class.getName(), Serializable.class.getName()}); disp.callRemoteMethods(null, call, GroupRequest.GET_ALL, 0); } catch(Exception ex) { if(log.isErrorEnabled()) log.error("exception=" + ex); } } else { _add(fqn, element); } }
48949 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48949/06354376a30d06e4f6a3c8a6bafa02775b5af421/DistributedTree.java/buggy/src/org/jgroups/blocks/DistributedTree.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 527, 12, 780, 23518, 16, 13687, 930, 13, 288, 3639, 368, 7173, 2731, 635, 411, 69, 538, 34, 3639, 368, 430, 638, 16, 13551, 1301, 358, 326, 1041, 3639, 309, 12, 4661, 67, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 527, 12, 780, 23518, 16, 13687, 930, 13, 288, 3639, 368, 7173, 2731, 635, 411, 69, 538, 34, 3639, 368, 430, 638, 16, 13551, 1301, 358, 326, 1041, 3639, 309, 12, 4661, 67, 2...
private void removeItem(TreeItem item)
private void removeItem(TreeItem item)
private void removeItem(TreeItem item) { // even if the item is dirty it's no longer necessary to update id dirtyItems.remove(item); // if we needed to create DOM element, we no longer do dirtyItemsCreateDOM.remove(item); // add items id (it's short version) to ids of DOM elements that will be removed deleteIds.append(getShortItemId(item)); deleteIds.append(","); // remove the id // note that this doesn't update item's parent's children list item.remove(); }
46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/234acdada6bb523025df2bf64c707be9ba3f57d5/AbstractTree.java/buggy/wicket/src/java/wicket/markup/html/tree/AbstractTree.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 29178, 12, 2471, 1180, 761, 13, 225, 202, 95, 202, 202, 759, 5456, 309, 326, 761, 353, 9603, 518, 1807, 1158, 7144, 4573, 358, 1089, 612, 3196, 202, 18013, 3126, 18, 447...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 29178, 12, 2471, 1180, 761, 13, 225, 202, 95, 202, 202, 759, 5456, 309, 326, 761, 353, 9603, 518, 1807, 1158, 7144, 4573, 358, 1089, 612, 3196, 202, 18013, 3126, 18, 447...
final Set<PANode> eomDirGblEsc = PAUtil.fixNullM((Set<PANode>) sr.get(E));
Set<PANode> preEomDirGblEsc = PAUtil.fixNullM((Set<PANode>) sr.get(eVar()));
public FullAnalysisResult fullSolve() { final SolReader sr = this.cs.solve(); final PAEdgeSet eomI = PAUtil.fixNullM((PAEdgeSet) sr.get(preIVar(footer))); final PAEdgeSet eomO = PAUtil.fixNullM((PAEdgeSet) sr.get(O)); final Set<PANode> eomDirGblEsc = PAUtil.fixNullM((Set<PANode>) sr.get(E)); final Set<PANode> eomAllGblEsc = DiGraph.union(eomI, eomO). transitiveSucc(DSUtil.iterable2coll (DSUtil.unionIterable (eomDirGblEsc, Collections.<PANode>singleton(nodeRep.getGlobalNode())))); FullAnalysisResult far = new FullAnalysisResult() { public PAEdgeSet preI(Quad q) { return PAUtil.fixNullM((PAEdgeSet) sr.get(preIVar(q))); } public PAEdgeSet postI(Quad q) { return PAUtil.fixNullM((PAEdgeSet) sr.get(postIVar(q))); } public PAEdgeSet eomI() { return eomI; } public PAEdgeSet eomO() { return eomO; } public Set<PANode> preEsc(Quad q) { return PAUtil.fixNullM((Set<PANode>) sr.get(preFVar(q))); } public Set<PANode> postEsc(Quad q) { return PAUtil.fixNullM((Set<PANode>) sr.get(postFVar(q))); } public Set<PANode> eomDirGblEsc() { return eomDirGblEsc; } public Set<PANode> eomAllGblEsc() { return eomAllGblEsc; } public Set<PANode> lv(Temp t) { return PAUtil.fixNullM((Set<PANode>) sr.get(lVar(t))); } public Set<PANode> ret() { return PAUtil.fixNullM((Set<PANode>) sr.get(vRet)); } public Set<PANode> ex() { return PAUtil.fixNullM((Set<PANode>) sr.get(vEx)); } public Set<Pair<PANode,HField>> eomWrites() { Set<Pair<PANode,HField>> writes = (Set<Pair<PANode,HField>>) sr.get(vWrites()); return (writes == null) ? Collections.<Pair<PANode,HField>>emptySet() : writes; } }; if(Flags.SHOW_INTRA_PROC_RESULTS) debug(new PrintWriter(System.out), far); return far; }
2866 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2866/8b84407e07cfe2be5ee8eccb28e14491602b6887/IntraProc.java/clean/Analysis/PA2/IntraProc.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 11692, 9418, 1253, 1983, 55, 5390, 1435, 288, 202, 6385, 348, 355, 2514, 9133, 273, 333, 18, 2143, 18, 24626, 5621, 202, 6385, 15662, 6098, 694, 425, 362, 45, 273, 15662, 1304, 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, 11692, 9418, 1253, 1983, 55, 5390, 1435, 288, 202, 6385, 348, 355, 2514, 9133, 273, 333, 18, 2143, 18, 24626, 5621, 202, 6385, 15662, 6098, 694, 425, 362, 45, 273, 15662, 1304, 18, ...
final List inspectionClasses = m_inspectionClasses;
final List<Class> inspectionClasses = m_inspectionClasses;
private void registerStyleInspections(){ final List inspectionClasses = m_inspectionClasses; inspectionClasses.add(ReturnThisInspection.class); inspectionClasses.add(ConstantOnLHSOfComparisonInspection.class); inspectionClasses.add(ConstantOnRHSOfComparisonInspection.class); inspectionClasses.add(LiteralAsArgToStringEqualsInspection.class); inspectionClasses.add(MissortedModifiersInspection.class); inspectionClasses.add(CStyleArrayDeclarationInspection.class); inspectionClasses.add(MultipleDeclarationInspection.class); inspectionClasses.add(MultipleTypedDeclarationInspection.class); inspectionClasses.add(UnqualifiedStaticUsageInspection.class); inspectionClasses.add(UnnecessarilyQualifiedStaticUsageInspection.class); }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/2d46d291193579a7564649b4881c7ea8e02eda5b/InspectionGadgetsPlugin.java/buggy/plugins/InspectionGadgets/src/com/siyeh/ig/InspectionGadgetsPlugin.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1744, 2885, 14985, 87, 1435, 95, 3639, 727, 987, 32, 797, 34, 2763, 7017, 4818, 273, 312, 67, 2679, 7017, 4818, 31, 3639, 2763, 7017, 4818, 18, 1289, 12, 990, 2503, 14985, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1744, 2885, 14985, 87, 1435, 95, 3639, 727, 987, 32, 797, 34, 2763, 7017, 4818, 273, 312, 67, 2679, 7017, 4818, 31, 3639, 2763, 7017, 4818, 18, 1289, 12, 990, 2503, 14985, 18...
Display display = new Display(); display.setWarnings(false);
public Object run(Object arg) { String[] commandLineArgs = new String[0]; if (arg != null && arg instanceof String[]) commandLineArgs = (String[]) arg; Display display = new Display(); //Workaround for 1GEZ9UR and 1GF07HN display.setWarnings(false); if (!readPlatformAndProductInfo()) return null; if (getProductInfo().getAppName() != null) Display.setAppName(getProductInfo().getAppName()); try { boolean initOK = init(commandLineArgs); Platform.endSplash(); checkInstallErrors(); if (initOK) { runEventLoop(); } shutdown(); } finally { if (!display.isDisposed()) display.dispose(); } return null;}
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/88569cf8df4b450cbc9224e6a84fa089848692a9/Workbench.java/buggy/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/Workbench.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 1033, 1086, 12, 921, 1501, 13, 288, 202, 780, 8526, 20894, 2615, 273, 394, 514, 63, 20, 15533, 202, 430, 261, 3175, 480, 446, 597, 1501, 1276, 514, 63, 5717, 202, 202, 3076, 1670, 2615...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1033, 1086, 12, 921, 1501, 13, 288, 202, 780, 8526, 20894, 2615, 273, 394, 514, 63, 20, 15533, 202, 430, 261, 3175, 480, 446, 597, 1501, 1276, 514, 63, 5717, 202, 202, 3076, 1670, 2615...
if ( null != req.getParameter(REQUEST_PARAMETER__NEW_SORTORDER) ) { new_sortorder = req.getParameter(REQUEST_PARAMETER__NEW_SORTORDER); list_toChange_sortorder = req.getParameter(REQUEST_PARAMETER__LIST_TYPE);
if ( null != req.getParameter( REQUEST_PARAMETER__NEW_SORTORDER ) ) { new_sortorder = req.getParameter( REQUEST_PARAMETER__NEW_SORTORDER ); list_toChange_sortorder = req.getParameter( REQUEST_PARAMETER__LIST_TYPE );
public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { ImcmsServices service = Imcms.getServices(); UserDomainObject loggedOnUser = Utility.getLoggedOnUser(req); String whichButton = req.getParameter("AdminTask"); if ( null != whichButton ) { /* handle Admin tasks only for Users with admin rights*/ if (!loggedOnUser.isSuperAdmin() && !loggedOnUser.isUserAdmin()) { String header = "Error in AdminManager."; Properties langproperties = service.getLanguageProperties( loggedOnUser ); String msg = langproperties.getProperty("error/servlet/global/no_administrator") + "<br>"; log.debug(header + "- user is not an administrator"); new AdminError(req, res, header, msg); return; } String url = getAdminTaskUrl(whichButton); if (StringUtils.isNotBlank( url )) { res.sendRedirect( url ); return; } } else if (PAGE_SEARCH.equals(req.getParameter(REQUEST_PARAMETER__FROMPAGE))) { req.getRequestDispatcher("/servlet/SearchDocuments").forward(req, res); return ; } String tabToShow = null != req.getParameter(REQUEST_PARAMETER__SHOW) ? req.getParameter(REQUEST_PARAMETER__SHOW): PARAMETER_VALUE__SHOW_NEW; String fileToForwardTo = JSP__ADMIN_MANAGER_NEW; // parse and return the html_admin_part Vector vec = new Vector(); String html_admin_part = ""; if (loggedOnUser.isSuperAdmin()) { html_admin_part = service.getAdminTemplate( HTML_ADMINTASK, loggedOnUser, vec ); // if superadmin } else if (loggedOnUser.isUserAdmin() ) { //if user is useradmin html_admin_part = service.getAdminTemplate( HTML_USERADMINTASK, loggedOnUser, vec ); //if useradmin } List documents_new = new LinkedList(); // STATUS = NEW List documents_changed = new LinkedList(); //MODIFIED_DATETIME > CREATED_DATETIME List documents_archived_less_then_one_week = new LinkedList(); //ARCHIVED_DATETIME < 7 days List documents_publication_end_less_then_one_week = new LinkedList() ; //PUBLICATION_END_DATETIME < 7 days List documents_not_changed_in_six_month = new LinkedList(); DocumentIndex index = service.getDocumentMapper().getDocumentIndex(); BooleanQuery booleanQuery = new BooleanQuery(); Query restrictingQuery = new TermQuery( new Term( DocumentIndex.FIELD__CREATOR_ID, loggedOnUser.getId()+"" ) ); booleanQuery.add( restrictingQuery, true, false ); HashMap current_sortorderMap = new HashMap(); HashMap expand_listMap = new HashMap(); HashMap subreports = new HashMap(); String sortorder ; String new_sortorder = ""; String list_toChange_sortorder = ""; DocumentDomainObject[] documentsFound = index.search( booleanQuery, loggedOnUser); if ( tabToShow.equals(PARAMETER_VALUE__SHOW_NEW) ){ fileToForwardTo = JSP__ADMIN_MANAGER_NEW ; addNewNotApprovedDocumentsToList(booleanQuery, documents_new, index, loggedOnUser); if ( null != req.getParameter(REQUEST_PARAMETER__NEW_SORTORDER) ) { new_sortorder = req.getParameter(REQUEST_PARAMETER__NEW_SORTORDER); list_toChange_sortorder = LIST_TYPE__list_new_not_approved; } sortorder = getSortorderForListType(list_toChange_sortorder, new_sortorder, req.getParameter(REQUEST_PARAMETER__list_new_not_approved_current_sortorder), LIST_TYPE__list_new_not_approved, "MOD"); current_sortorderMap.put(LIST_TYPE__list_new_not_approved, sortorder ); Collections.sort( documents_new, getChainableReversibleNullComparator(sortorder) ) ; setNewExpandStatusForList( req, expand_listMap, LIST_TYPE__list_new_not_approved, REQUEST_PARAMETER__list_new_not_approved_current_expand ); // documents_new_not_approved = new AdminManagerSubreport(LIST_TYPE__list_new_not_approved, "", "", DEFAULT_DOCUMENTS_PER_LIST, documents_new ); }else if ( tabToShow.equals(PARAMETER_VALUE__SHOW_REMINDERS) ) { fileToForwardTo = JSP__ADMIN_MANAGER_REMINDERS; if ( null != req.getParameter(REQUEST_PARAMETER__NEW_SORTORDER) ) { new_sortorder = req.getParameter(REQUEST_PARAMETER__NEW_SORTORDER); list_toChange_sortorder = req.getParameter(REQUEST_PARAMETER__LIST_TYPE); } sortorder = getSortorderForListType(list_toChange_sortorder, new_sortorder, req.getParameter(REQUEST_PARAMETER__list_documents_archived_less_then_one_week_current_sortorder), LIST_TYPE__list_documents_archived_less_then_one_week, "ARCR"); current_sortorderMap.put(LIST_TYPE__list_documents_archived_less_then_one_week, sortorder); sortorder = getSortorderForListType(list_toChange_sortorder, new_sortorder, req.getParameter(REQUEST_PARAMETER__list_documents_publication_end_less_then_one_week_current_sortorder), LIST_TYPE__list_documents_publication_end_less_then_one_week, "PUBER"); current_sortorderMap.put(LIST_TYPE__list_documents_publication_end_less_then_one_week, sortorder); sortorder = getSortorderForListType(list_toChange_sortorder, new_sortorder, req.getParameter(REQUEST_PARAMETER__list_documents_not_changed_in_six_month_current_sortorder), LIST_TYPE__list_documents_not_changed_in_six_month, "MOD"); current_sortorderMap.put(LIST_TYPE__list_documents_not_changed_in_six_month, sortorder); addFoundDocumentsToCorrespondingList(documentsFound, documents_archived_less_then_one_week, documents_publication_end_less_then_one_week, documents_not_changed_in_six_month, null, current_sortorderMap); setNewExpandStatusForList( req, expand_listMap, LIST_TYPE__list_documents_archived_less_then_one_week, REQUEST_PARAMETER__list_documents_archived_less_then_one_week_current_expand ); setNewExpandStatusForList( req, expand_listMap, LIST_TYPE__list_documents_publication_end_less_then_one_week, REQUEST_PARAMETER__list_documents_publication_end_less_then_one_week_current_sortorder ); setNewExpandStatusForList( req, expand_listMap, LIST_TYPE__list_documents_not_changed_in_six_month, REQUEST_PARAMETER__list_documents_not_changed_in_six_month_current_sortorder ); }else if ( tabToShow.equals(PARAMETER_VALUE__SHOW_SUMMARY) ) { fileToForwardTo = JSP__ADMIN_MANAGER_SUMMARY; addNewNotApprovedDocumentsToList(booleanQuery, documents_new, index, loggedOnUser); if ( null != req.getParameter(REQUEST_PARAMETER__NEW_SORTORDER) ) { new_sortorder = req.getParameter(REQUEST_PARAMETER__NEW_SORTORDER); list_toChange_sortorder = req.getParameter(REQUEST_PARAMETER__LIST_TYPE); } sortorder = getSortorderForListType(list_toChange_sortorder, new_sortorder, req.getParameter(REQUEST_PARAMETER__list_new_not_approved_current_sortorder), LIST_TYPE__list_new_not_approved, "MOD"); current_sortorderMap.put(LIST_TYPE__list_new_not_approved, sortorder); Collections.sort( documents_new, getChainableReversibleNullComparator(sortorder) ) ; sortorder = getSortorderForListType(list_toChange_sortorder, new_sortorder, req.getParameter(REQUEST_PARAMETER__list_documents_changed_current_sortorder), LIST_TYPE__list_documents_changed, "MOD"); current_sortorderMap.put(LIST_TYPE__list_documents_changed, sortorder); sortorder = getSortorderForListType(list_toChange_sortorder, new_sortorder, req.getParameter(REQUEST_PARAMETER__list_documents_publication_end_less_then_one_week_current_sortorder), LIST_TYPE__list_documents_publication_end_less_then_one_week, "PUBER"); current_sortorderMap.put(LIST_TYPE__list_documents_publication_end_less_then_one_week, sortorder); sortorder = getSortorderForListType(list_toChange_sortorder, new_sortorder, req.getParameter(REQUEST_PARAMETER__list_documents_archived_less_then_one_week_current_sortorder), LIST_TYPE__list_documents_archived_less_then_one_week, "ARCR"); current_sortorderMap.put(LIST_TYPE__list_documents_archived_less_then_one_week, sortorder); sortorder = getSortorderForListType(list_toChange_sortorder, new_sortorder, req.getParameter(REQUEST_PARAMETER__list_documents_not_changed_in_six_month_current_sortorder), LIST_TYPE__list_documents_not_changed_in_six_month, "MOD"); current_sortorderMap.put(LIST_TYPE__list_documents_not_changed_in_six_month, sortorder); addFoundDocumentsToCorrespondingList(documentsFound, documents_archived_less_then_one_week, documents_publication_end_less_then_one_week, documents_not_changed_in_six_month, documents_changed, current_sortorderMap); expand_listMap.put(LIST_TYPE__list_new_not_approved, null != req.getParameter(REQUEST_PARAMETER__list_new_not_approved_current_expand) ? req.getParameter(REQUEST_PARAMETER__list_new_not_approved_current_expand) : "hide"); expand_listMap.put(LIST_TYPE__list_documents_changed, null != req.getParameter(REQUEST_PARAMETER__list_documents_changed_current_expand) ? req.getParameter(REQUEST_PARAMETER__list_documents_changed_current_expand) : "hide"); expand_listMap.put(LIST_TYPE__list_documents_publication_end_less_then_one_week, null != req.getParameter(REQUEST_PARAMETER__list_documents_publication_end_less_then_one_week_current_expand) ? req.getParameter(REQUEST_PARAMETER__list_documents_publication_end_less_then_one_week_current_expand) : "hide"); expand_listMap.put(LIST_TYPE__list_documents_archived_less_then_one_week, null != req.getParameter(REQUEST_PARAMETER__list_documents_archived_less_then_one_week_current_expand) ? req.getParameter(REQUEST_PARAMETER__list_documents_archived_less_then_one_week_current_expand) : "hide"); expand_listMap.put(LIST_TYPE__list_documents_not_changed_in_six_month, null != req.getParameter(REQUEST_PARAMETER__list_documents_not_changed_in_six_month_current_expand) ? req.getParameter(REQUEST_PARAMETER__list_documents_not_changed_in_six_month_current_expand) : "hide"); setNewExpandStatusForList( req, expand_listMap, LIST_TYPE__list_new_not_approved, REQUEST_PARAMETER__list_new_not_approved_current_expand ); setNewExpandStatusForList( req, expand_listMap, LIST_TYPE__list_documents_changed, REQUEST_PARAMETER__list_documents_changed_current_expand ); setNewExpandStatusForList( req, expand_listMap, LIST_TYPE__list_documents_publication_end_less_then_one_week, REQUEST_PARAMETER__list_documents_publication_end_less_then_one_week_current_sortorder ); setNewExpandStatusForList( req, expand_listMap, LIST_TYPE__list_documents_archived_less_then_one_week, REQUEST_PARAMETER__list_documents_archived_less_then_one_week_current_expand ); setNewExpandStatusForList( req, expand_listMap, LIST_TYPE__list_documents_not_changed_in_six_month, REQUEST_PARAMETER__list_documents_not_changed_in_six_month_current_sortorder ); } else if ( tabToShow.equals(PARAMETER_VALUE__SHOW_SEARCH) ) { fileToForwardTo = JSP__ADMIN_MANAGER_SEARCH; } AdminManagerPage page = new AdminManagerPage( "".equals(html_admin_part) ? null : html_admin_part, documents_new, documents_changed, documents_archived_less_then_one_week, documents_publication_end_less_then_one_week, documents_not_changed_in_six_month, fileToForwardTo, current_sortorderMap, expand_listMap, subreports, restrictingQuery); page.forward(req, res, loggedOnUser); }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/15d70408e151e5aaa1d66d5d73056b4a9e757ed4/AdminManager.java/clean/server/src/com/imcode/imcms/servlet/superadmin/AdminManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 741, 3349, 12, 2940, 18572, 1111, 16, 12446, 400, 13, 5411, 1216, 16517, 16, 1860, 288, 3639, 2221, 6851, 5676, 1156, 273, 2221, 6851, 18, 588, 5676, 5621, 3639, 2177, 3748, 92...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 741, 3349, 12, 2940, 18572, 1111, 16, 12446, 400, 13, 5411, 1216, 16517, 16, 1860, 288, 3639, 2221, 6851, 5676, 1156, 273, 2221, 6851, 18, 588, 5676, 5621, 3639, 2177, 3748, 92...
public CalculatedStyle getDerivedStyle(CalculatedStyle parent, CascadedStyle matched);
public CalculatedStyle getDerivedStyle(CalculatedStyle parent, CascadedStyle matched) { return _styler.getDerivedStyle(parent, matched); }
public CalculatedStyle getDerivedStyle(CalculatedStyle parent, CascadedStyle matched);
8125 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8125/93d814d7886e593bc9bd7f476b2a18571a009aa6/StyleReference.java/buggy/src/java/org/xhtmlrenderer/css/StyleReference.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15994, 690, 2885, 2343, 264, 2950, 2885, 12, 4844, 690, 2885, 982, 16, 385, 3691, 2435, 2885, 4847, 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, 15994, 690, 2885, 2343, 264, 2950, 2885, 12, 4844, 690, 2885, 982, 16, 385, 3691, 2435, 2885, 4847, 1769, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if (rows[i-1] != rows[i] - 1)
if (rows[i - 1] != rows[i] - 1)
protected boolean arePathsContiguous(TreePath[] paths) { if (rowMapper == null || paths.length < 2) return true; int[] rows = rowMapper.getRowsForPaths(paths); // The patches may not be sorted. Arrays.sort(rows); for (int i = 1; i < rows.length; i++) { if (rows[i-1] != rows[i] - 1) return false; } return true; }
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/33d89dd7043c676b02ff34fe991288e8240f95d6/DefaultTreeSelectionModel.java/clean/javax/swing/tree/DefaultTreeSelectionModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 1250, 854, 4466, 660, 10623, 12, 2471, 743, 8526, 2953, 13, 225, 288, 565, 309, 261, 492, 4597, 422, 446, 747, 2953, 18, 2469, 411, 576, 13, 1377, 327, 638, 31, 565, 509, 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, 282, 4750, 1250, 854, 4466, 660, 10623, 12, 2471, 743, 8526, 2953, 13, 225, 288, 565, 309, 261, 492, 4597, 422, 446, 747, 2953, 18, 2469, 411, 576, 13, 1377, 327, 638, 31, 565, 509, 8526, ...
IHyperlink[] links = BugzillaUITools.findBugHyperlinks(repository.getUrl(), offsetInLine, lineInfo.getLength(),
IHyperlink[] links = BugzillaHyperlinkUtil.findBugHyperlinks(repository.getUrl(), offsetInLine, lineInfo.getLength(),
public IHyperlink[] detectHyperlinks(ITextViewer textViewer, IRegion region, boolean canShowMultipleHyperlinks) { if (region == null || textViewer == null) return null; if (!(textViewer instanceof RepositoryTextViewer)) return null; RepositoryTextViewer viewer = (RepositoryTextViewer) textViewer; repository = viewer.getRepository(); if (repository == null) return null; IDocument document = textViewer.getDocument(); int offset = region.getOffset(); if (document == null) return null; IRegion lineInfo; String line; try { lineInfo = document.getLineInformationOfOffset(offset); line = document.get(lineInfo.getOffset(), lineInfo.getLength()); } catch (BadLocationException ex) { return null; } int offsetInLine = offset - lineInfo.getOffset(); IHyperlink[] links = BugzillaUITools.findBugHyperlinks(repository.getUrl(), offsetInLine, lineInfo.getLength(), line, lineInfo.getOffset()); return links; }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/bff4f88560342ca80f2772aa971c128d982fe3bb/BugzillaTaskHyperlinkDetector.java/clean/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/BugzillaTaskHyperlinkDetector.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 467, 15996, 1232, 8526, 5966, 15996, 7135, 12, 1285, 408, 18415, 977, 18415, 16, 467, 5165, 3020, 16, 1250, 848, 5706, 8438, 15996, 7135, 13, 288, 202, 202, 430, 261, 6858, 422,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 467, 15996, 1232, 8526, 5966, 15996, 7135, 12, 1285, 408, 18415, 977, 18415, 16, 467, 5165, 3020, 16, 1250, 848, 5706, 8438, 15996, 7135, 13, 288, 202, 202, 430, 261, 6858, 422,...
this.classicNext = next;
this.turboNext = next;
public void setNext(TurboFilter next) { this.classicNext = next; }
46523 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46523/f5b5103ccdf3ff7cc59342cced2b68b170285959/TurboFilter.java/buggy/logback-classic/src/main/java/ch/qos/logback/classic/turbo/TurboFilter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 27674, 12, 56, 295, 1075, 1586, 1024, 13, 288, 565, 333, 18, 25271, 1075, 2134, 273, 1024, 31, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 27674, 12, 56, 295, 1075, 1586, 1024, 13, 288, 565, 333, 18, 25271, 1075, 2134, 273, 1024, 31, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
throw new SAXNotSupportedException ("not while parsing");
{ throw new SAXNotSupportedException("not while parsing"); }
public void setFeature (String featureId, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException { boolean state; // Features with a defined value, we just change it if we can. state = getFeature (featureId); if (state == value) return; if (parser != null) throw new SAXNotSupportedException ("not while parsing"); if ((FEATURE + "namespace-prefixes").equals (featureId)) { // in this implementation, this only affects xmlns reporting xmlNames = value; // forcibly prevent illegal parser state if (!xmlNames) namespaces = true; return; } if ((FEATURE + "namespaces").equals (featureId)) { namespaces = value; // forcibly prevent illegal parser state if (!namespaces) xmlNames = true; return; } if ((FEATURE + "external-general-entities").equals (featureId)) { extGE = value; return; } if ((FEATURE + "external-parameter-entities") .equals (featureId)) { extPE = value; return; } if ((FEATURE + "resolve-dtd-uris").equals (featureId)) { resolveAll = value; return; } if ((FEATURE + "use-entity-resolver2").equals (featureId)) { useResolver2 = value; return; } throw new SAXNotRecognizedException (featureId); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/SAXDriver.java/buggy/core/src/classpath/gnu/gnu/xml/aelfred2/SAXDriver.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 28669, 261, 780, 2572, 548, 16, 1250, 460, 13, 565, 1216, 10168, 1248, 5650, 9367, 503, 16, 10168, 25482, 565, 288, 202, 6494, 202, 2019, 31, 202, 202, 759, 28920, 598, 279, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 28669, 261, 780, 2572, 548, 16, 1250, 460, 13, 565, 1216, 10168, 1248, 5650, 9367, 503, 16, 10168, 25482, 565, 288, 202, 6494, 202, 2019, 31, 202, 202, 759, 28920, 598, 279, ...
sbuf.append(" text-align: left; ");
sbuf.append("text-align: left; ");
public void addCss(StringBuffer sbuf) { sbuf.append("<STYLE type=\"text/css\">"); sbuf.append(" table { "); sbuf.append(" margin-left: 2em; "); sbuf.append(" margin-right: 2em; "); sbuf.append(" border-left: 2px solid #AAA; "); sbuf.append("}"); sbuf.append(LINE_SEP); sbuf.append("TR.even { "); sbuf.append(" background: #FFFFFF; "); sbuf.append("}"); sbuf.append(LINE_SEP); sbuf.append("TR.odd { "); sbuf.append(" background: #EAEAEA; "); sbuf.append("}"); sbuf.append(LINE_SEP); sbuf.append("TD { "); sbuf.append(" padding-right: 1ex; "); sbuf.append(" padding-left: 1ex; "); sbuf.append(" border-right: 2px solid #AAA;"); sbuf.append("}"); sbuf.append(LINE_SEP); sbuf.append("TD.Time, TD.Date { "); sbuf.append(" text-align: right; "); sbuf.append(" font-family: courier, monospace; "); sbuf.append(" font-size: smaller; "); sbuf.append("}"); sbuf.append(LINE_SEP); sbuf .append("TD.RemoteHost, TD.RequestProtocol, TD.RequestHeader, TD.RequestURL, TD.RemoteUser, TD.RequestURI, TD.ServerName {"); sbuf.append(" text-align: left; "); sbuf.append("}"); sbuf.append(LINE_SEP); sbuf .append("TD.RequestAttribute, TD.RequestCookie, TD.ResponseHeader, TD.RequestParameter {"); sbuf.append(" text-align: left; "); sbuf.append("}"); sbuf.append(LINE_SEP); sbuf .append("TD.RemoteIPAddress, TD.LocalIPAddress, TD.ContentLength, TD.StatusCode, TD.LocalPort {"); sbuf.append(" text-align: right; "); sbuf.append("}"); sbuf.append(LINE_SEP); sbuf.append("TR.header { "); sbuf.append(" background: #596ED5; "); sbuf.append(" color: #FFF; "); sbuf.append(" font-weight: bold; "); sbuf.append(" font-size: larger; "); sbuf.append("}"); sbuf.append(LINE_SEP); sbuf.append(" }"); sbuf.append("}"); }
48525 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48525/72de6f8151b7528215bcfe228f8ae4bd010d1715/DefaultCssBuilder.java/clean/logback-access/src/main/java/ch/qos/logback/access/html/DefaultCssBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 527, 7359, 12, 780, 1892, 2393, 696, 13, 288, 565, 2393, 696, 18, 6923, 2932, 32, 15066, 225, 618, 5189, 955, 19, 5212, 21121, 1769, 565, 2393, 696, 18, 6923, 2932, 565, 1014...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 527, 7359, 12, 780, 1892, 2393, 696, 13, 288, 565, 2393, 696, 18, 6923, 2932, 32, 15066, 225, 618, 5189, 955, 19, 5212, 21121, 1769, 565, 2393, 696, 18, 6923, 2932, 565, 1014...
assert size < 31 : "Type size too large to fit in single dynamic network packet";
assert size < 31 : "Type size too large to fit in single dynamic network packet";
public void visitFilter(SIRFilter self, SIRFilterIter iter) { // System.out.println(self.getName()); //Entry point of the visitor //do not print the raw header if compiling //for uniprocessor if (!KjcOptions.standalone) p.print("#include <raw.h>\n"); p.print("#include <stdlib.h>\n"); p.print("#include <math.h>\n\n"); //if we are number gathering and this is the sink, generate the dummy //vars for the assignment of the print expression. if (KjcOptions.numbers > 0) { p.print("volatile int dummyInt;\n"); p.print("volatile float dummyFloat;\n"); } if (KjcOptions.altcodegen && !KjcOptions.decoupled){ p.print(getNetRegsDecls()); //print("unsigned " + DYNMSGHEADER + ";\n"); } if (KjcOptions.decoupled) { p.print("volatile float " + Util.CSTOFPVAR + ";\n"); p.print("volatile float " + Util.CSTIFPVAR + ";\n"); p.print("volatile int " + Util.CSTOINTVAR + ";\n"); p.print("volatile int " + Util.CSTIINTVAR + ";\n"); p.print("volatile float " + Util.CGNOFPVAR + ";\n"); p.print("volatile float " + Util.CGNIFPVAR + ";\n"); p.print("volatile int " + Util.CGNOINTVAR + ";\n"); p.print("volatile int " + Util.CGNIINTVAR + ";\n"); } if (SpaceDynamicBackend.FILTER_DEBUG_MODE) { p.print("void static_send_print("); if (self.getOutputType() == CStdType.Void) p.print("int f) {\n"); else p.print(self.getOutputType() + " f) {\n"); if (self.getOutputType().isFloatingPoint()) p.print("print_float(f);\n"); else p.print("print_int(f);\n"); p.print("static_send(f);\n"); p.print("}\n\n"); } p.print("#include \"structs.h\"\n"); //print the extern for the function to init the //switch, do not do this if we are compiling for //a uniprocessor if (!KjcOptions.standalone) { p.print("void raw_init();\n"); p.print("void raw_init2();\n"); } //not used any more //print("unsigned int " + FLOAT_HEADER_WORD + ";\n"); //print("unsigned int " + INT_HEADER_WORD + ";\n"); //Visit fields declared in the filter class JFieldDeclaration[] fields = self.getFields(); for (int i = 0; i < fields.length; i++) fields[i].accept(this); //visit methods of filter, print the declaration first setDeclOnly(true); JMethodDeclaration[] methods = self.getMethods(); for (int i =0; i < methods.length; i++) methods[i].accept(this); //now print the functions with body setDeclOnly(false); for (int i =0; i < methods.length; i++) { methods[i].accept(this); } //if we are generating raw code print the begin //method for the simulator if (!KjcOptions.standalone) { p.print("void begin(void) {\n"); } else { //otherwise print a normal main() p.print("int main() {\n"); } //for the first filter/tile we encounter we are going to //create a magic instruction that tells the number-gathering //stuff that everything is done snake booting, so if this is true if (!gen_magc_done_boot && KjcOptions.numbers > 0) { gen_magc_done_boot = true; p.print(" __asm__ volatile (\"magc $0, $0, 5\");\n"); } //not used at this time //print(FLOAT_HEADER_WORD + //" = construct_dyn_hdr(3, 1, 0, 0, 0, 3, 0);\n"); //print(INT_HEADER_WORD + //" = construct_dyn_hdr(3, 1, 1, 0, 0, 3, 0);\n"); //if we are using the dynamic network create the dynamic network //header to be used for all outgoing messages if (dynamicOutput) { FlatNode downstream = ssg.getStreamGraph().getParentSSG(flatNode).getNext(flatNode); if (downstream != null) { int size = Util.getTypeSize(ssg.getOutputType(flatNode)); assert size < 31 : "Type size too large to fit in single dynamic network packet"; /*System.out.println(flatNode + " " + layout.getTile(flatNode) + " dynamically sends to + " + downstream + " " + layout.getTile(downstream) + ", size = " + size); */ p.print(" " + DYNMSGHEADER + " = construct_dyn_hdr(0, " + size + ", 0, " + (layout.getTile(self)).getY() + ", " + (layout.getTile(self)).getX() + ", " + (layout.getTile(downstream)).getY() + "," + (layout.getTile(downstream)).getX() + ");\n"); } } //if we are using the magic network, //use a magic instruction to initialize the magic fifos if (KjcOptions.magic_net) p.print(" __asm__ volatile (\"magc $0, $0, 1\");\n"); //initialize the dummy network receive value if (KjcOptions.decoupled) { if (self.getInputType().isFloatingPoint()) p.print(" " + Util.CSTIFPVAR + " = 1.0;\n"); else p.print(" " + Util.CSTIINTVAR + " = 1;\n"); } //call the raw_init() function for the static network //only if we are not using a uniprocessor or the //magic network if (!(KjcOptions.standalone || KjcOptions.magic_net || KjcOptions.decoupled || IMEMEstimation.TESTING_IMEM)) { p.print(" raw_init();\n"); p.print(" raw_init2();\n"); } //execute the raw main function p.print(RawExecutionCode.rawMain + "();\n"); //return 0 if we are generating normal c code if (KjcOptions.standalone) p.print(" return 0;\n"); p.print("}\n"); createFile(); }
47772 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47772/31aff989277324400ed1080dc1f4597a89d20d2b/FlatIRToC.java/clean/streams/src/at/dms/kjc/spacedynamic/FlatIRToC.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3757, 1586, 12, 2320, 54, 1586, 365, 16, 18701, 5705, 54, 1586, 2360, 1400, 13, 288, 3639, 368, 4202, 2332, 18, 659, 18, 8222, 12, 2890, 18, 17994, 10663, 7734, 368, 1622, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3757, 1586, 12, 2320, 54, 1586, 365, 16, 18701, 5705, 54, 1586, 2360, 1400, 13, 288, 3639, 368, 4202, 2332, 18, 659, 18, 8222, 12, 2890, 18, 17994, 10663, 7734, 368, 1622, 16...
{ return createMarkerRangeAdapter(); }
{ return createMarkerRangeAdapter(); }
public Object caseMarkerRange(MarkerRange object) { return createMarkerRangeAdapter(); }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/e5c78f0e8317166d02fa384e14c3dd7aa1796f2c/ComponentAdapterFactory.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/component/util/ComponentAdapterFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 1033, 648, 7078, 2655, 12, 7078, 2655, 733, 13, 5411, 288, 7734, 327, 752, 7078, 2655, 4216, 5621, 5411, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 1033, 648, 7078, 2655, 12, 7078, 2655, 733, 13, 5411, 288, 7734, 327, 752, 7078, 2655, 4216, 5621, 5411, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
this.setOpaque(true);
else { this.setOpaque(true); }
public TransactionCellRenderer(){ if (Buddi.isMac()){ this.putClientProperty("Quaqua.Component.visualMargin", new Insets(0,0,0,0)); } this.setOpaque(true); }
48285 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48285/a17ecc4042c44273cb82c38bf280641d096bb603/TransactionCellRenderer.java/buggy/src/org/homeunix/drummer/view/components/TransactionCellRenderer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 5947, 4020, 6747, 1435, 95, 202, 202, 430, 261, 38, 20567, 77, 18, 291, 9990, 10756, 95, 1082, 202, 2211, 18, 458, 1227, 1396, 2932, 928, 69, 372, 69, 18, 1841, 18, 26671, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 5947, 4020, 6747, 1435, 95, 202, 202, 430, 261, 38, 20567, 77, 18, 291, 9990, 10756, 95, 1082, 202, 2211, 18, 458, 1227, 1396, 2932, 928, 69, 372, 69, 18, 1841, 18, 26671, 9...
writeSuccessFractionCell(p, buf);
writeProgressFractionCell(p, 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()); }
50287 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50287/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...
IDialogSettings settings = dialogSettings .getSection(TAG_DIALOG_SECTION); if (settings == null) { resetState(); return; }
IDialogSettings settings = dialogSettings .getSection(TAG_DIALOG_SECTION); if (settings == null) { resetState(); return; }
public void restoreState(IDialogSettings dialogSettings) { if (dialogSettings == null) { resetState(); return; } IDialogSettings settings = dialogSettings .getSection(TAG_DIALOG_SECTION); if (settings == null) { resetState(); return; } try { for (int i = 0; i < priorities.length; i++) { String priority = settings.get(TAG_PRIORITY + i); if (priority == null) { resetState(); return; } priorities[i] = Integer.parseInt(priority); String direction = settings.get(TAG_DIRECTION + i); if (direction == null) { resetState(); return; } directions[i] = Integer.parseInt(direction); String defaultPriority = settings.get(TAG_DEFAULT_PRIORITY + i); if (defaultPriority == null) { resetState(); return; } defaultPriorities[i] = Integer.parseInt(defaultPriority); String defaultDirection = settings.get(TAG_DEFAULT_DIRECTION + i); if (defaultDirection == null) { resetState(); return; } defaultDirections[i] = Integer.parseInt(defaultDirection); } } catch (NumberFormatException e) { resetState(); } }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/229c44b72ac5a176a7c4d6328bcc38d5cf41c6c3/TableSorter.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/TableSorter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 5217, 1119, 12, 734, 3529, 2628, 6176, 2628, 13, 288, 3639, 309, 261, 12730, 2628, 422, 446, 13, 288, 5411, 2715, 1119, 5621, 5411, 327, 31, 3639, 289, 3639, 1599, 3529, 2628, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5217, 1119, 12, 734, 3529, 2628, 6176, 2628, 13, 288, 3639, 309, 261, 12730, 2628, 422, 446, 13, 288, 5411, 2715, 1119, 5621, 5411, 327, 31, 3639, 289, 3639, 1599, 3529, 2628, ...
VerifyingFile vf=new VerifyingFile(false);
VerifyingFile vf=new VerifyingFile(false, size);
public static void globalSetUp() throws Exception { new RouterService(new ActivityCallbackStub()); incompleteFile=ifm.getFile(rfd); VerifyingFile vf=new VerifyingFile(false); vf.addInterval(new Interval(0, amountDownloaded-1)); //inclusive ifm.addEntry(incompleteFile, vf); // Make sure that we don't wait for network on requery ManagedDownloader.NO_DELAY = true; }
5134 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5134/0d5636b976e1010a2e03feb87d12c14153ff3eb2/ResumeDownloaderTest.java/clean/components/gnutella-core/src/test/java/com/limegroup/gnutella/downloader/ResumeDownloaderTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2552, 694, 1211, 1435, 1216, 1185, 288, 3639, 394, 9703, 1179, 12, 2704, 9621, 2428, 11974, 10663, 3639, 14715, 812, 33, 430, 81, 18, 29925, 12, 5809, 72, 1769, 3639, 8553...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2552, 694, 1211, 1435, 1216, 1185, 288, 3639, 394, 9703, 1179, 12, 2704, 9621, 2428, 11974, 10663, 3639, 14715, 812, 33, 430, 81, 18, 29925, 12, 5809, 72, 1769, 3639, 8553...
jTextField1.setText("" + myParent.getCodeChosenContragent()); jTextField1.repaint(); jTextField2.setText(myParent.getNameChosenContragent()); jTextField2.repaint(); jTextField3.setText(myParent.getChosenIBAN()); jTextField3.repaint();
public void changeField() { jTextField8.setText(myParent.getNameChosenPerson()); jTextField8.repaint(); jTextField1.setText("" + myParent.getCodeChosenContragent()); jTextField1.repaint(); jTextField2.setText(myParent.getNameChosenContragent()); jTextField2.repaint(); jTextField3.setText(myParent.getChosenIBAN()); jTextField3.repaint(); jTextField5.setText(myParent.getChosenCurrency()); jTextField5.repaint(); }
12667 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12667/f7a17c0f6c397276f657dfda6ecbea85d3b85a0d/aePayingOrdersPP.java/clean/src/imakante/sales/aePayingOrdersPP.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2549, 974, 1435, 288, 3639, 525, 16157, 28, 18, 542, 1528, 12, 4811, 3054, 18, 17994, 782, 8918, 8346, 10663, 3639, 525, 16157, 28, 18, 14462, 1598, 5621, 3639, 525, 16157, 21,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 2549, 974, 1435, 288, 3639, 525, 16157, 28, 18, 542, 1528, 12, 4811, 3054, 18, 17994, 782, 8918, 8346, 10663, 3639, 525, 16157, 28, 18, 14462, 1598, 5621, 3639, 525, 16157, 21,...
Object[] creds = read("[(?S?S)]", null); if (repository != null && repository.getRepositoryRoot() == null) { repository.updateCredentials((String) creds[0], (String) creds[1]);
if (!myIsCredentialsReceived) { Object[] creds = read("[(?S?S)]", null); if (repository != null && repository.getRepositoryRoot() == null) { repository.updateCredentials((String) creds[0], (String) creds[1]); } myIsCredentialsReceived = true;
public void authenticate(SVNRepositoryImpl repository, ISVNCredentials credentials) throws SVNException { String failureReason = null; Object[] items = read("[((*W)S)]", null); List mechs = SVNReader.getList(items, 0); if (mechs == null || mechs.size() == 0) { return; } for (int i = 0; i < mechs.size(); i++) { String mech = (String) mechs.get(i); if ("ANONYMOUS".equals(mech) || "EXTERNAL".equals(mech)) { // send anon and read response write("(w())", new Object[] { mech }); items = read("(W(?S))", null); if (SUCCESS.equals(items[0])) { Object[] creds = read("[(?S?S)]", null); if (repository != null && repository.getRepositoryRoot() == null) { repository.updateCredentials((String) creds[0], (String) creds[1]); } return; } else if (FAILURE.equals(items[0])) { failureReason = (String) items[1]; } } else if ("CRAM-MD5".equals(mech)) { CramMD5 authenticator = new CramMD5(); if (credentials == null) { throw new SVNAuthenticationException("authentication failed, no credentials"); } write("(w())", new Object[] { mech }); while(true) { authenticator.setUserCredentials(credentials); items = read("(W(?B))", null); if (SUCCESS.equals(items[0])) { Object[] creds = read("[(S?S)]", null); if (creds != null && creds.length == 2 && creds[0] != null && creds[1] != null) { repository.updateCredentials((String) creds[0], (String) creds[1]); } return; } else if (FAILURE.equals(items[0])) { failureReason = new String((byte[]) items[1]); throw new SVNAuthenticationException("authentication failed: " + failureReason); } else if (STEP.equals(items[0])) { byte[] response = authenticator.buildChallengeReponse((byte[]) items[1]); try { getOutputStream().write(response); } catch (IOException e) { throw new SVNException(e); } } } } else { failureReason = mech + " authorization requested, but not supported"; } } throw new SVNException(failureReason); }
5695 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5695/ecc38e2fe983246d7c2fef07b2660663f05b45ec/SVNConnection.java/buggy/javasvn/src/org/tmatesoft/svn/core/internal/io/svn/SVNConnection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 8929, 12, 23927, 50, 3305, 2828, 3352, 16, 4437, 58, 50, 6163, 4448, 13, 1216, 29537, 50, 503, 288, 3639, 514, 5166, 8385, 273, 446, 31, 3639, 1033, 8526, 1516, 273, 855, 293...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8929, 12, 23927, 50, 3305, 2828, 3352, 16, 4437, 58, 50, 6163, 4448, 13, 1216, 29537, 50, 503, 288, 3639, 514, 5166, 8385, 273, 446, 31, 3639, 1033, 8526, 1516, 273, 855, 293...
public void transformSelectedNodes( TransformerImpl transformer, Node sourceNode, ElemTemplateElement template, QName mode) throws TransformerException { try { boolean rdebug = TransformerImpl.S_DEBUG; XPathContext xctxt = transformer.getXPathContext(); XPath selectPattern = getSelectOrDefault(); XObject selectResult = selectPattern.execute(xctxt, sourceNode, this); if (rdebug) transformer.getTraceManager().fireSelectedEvent(sourceNode, this, "test", selectPattern, selectResult); Vector keys = transformer.processSortKeys(this, sourceNode); NodeIterator sourceNodes = selectResult.nodeset(); // Sort if we need to. if (null != keys) sourceNodes = sortNodes(xctxt, keys, sourceNodes); pushParams(transformer, xctxt, sourceNode, mode); // Push the ContextNodeList on a stack, so that select="position()" // and the like will work. // System.out.println("pushing context node list..."); SourceLocator savedLocator = xctxt.getSAXLocator(); xctxt.pushContextNodeList((ContextNodeList) sourceNodes); transformer.pushElemTemplateElement(null); ResultTreeHandler rth = transformer.getResultTreeHandler(); StylesheetRoot sroot = getStylesheetRoot(); TemplateList tl = sroot.getTemplateListComposed(); // StylesheetComposed stylesheet = getStylesheetComposed(); StackGuard guard = transformer.getStackGuard(); boolean check = (guard.m_recursionLimit > -1); boolean quiet = transformer.getQuietConflictWarnings(); boolean needToFindTemplate = (null == template); try { Node child; while (null != (child = sourceNodes.nextNode())) { if (needToFindTemplate) { template = tl.getTemplate(xctxt, child, mode, -1, quiet); // If that didn't locate a node, fall back to a default template rule. // See http://www.w3.org/TR/xslt#built-in-rule. if (null == template) { switch (child.getNodeType()) { case Node.DOCUMENT_FRAGMENT_NODE : case Node.ELEMENT_NODE : template = sroot.getDefaultRule(); break; case Node.CDATA_SECTION_NODE : if (child.isSupported(SaxEventDispatch.SUPPORTSINTERFACE, "1.0")) { ((SaxEventDispatch) child).dispatchSaxEvent(rth); } else { rth.startCDATA(); String data = child.getNodeValue(); rth.characters(data.toCharArray(), 0, data.length()); rth.endCDATA(); } continue; case Node.TEXT_NODE : if (child.isSupported(SaxEventDispatch.SUPPORTSINTERFACE, "1.0")) { ((SaxEventDispatch) child).dispatchSaxEvent(rth); } else { String data = child.getNodeValue(); rth.characters(data.toCharArray(), 0, data.length()); } continue; case Node.ATTRIBUTE_NODE : String data = child.getNodeValue(); rth.characters(data.toCharArray(), 0, data.length()); continue; case Node.DOCUMENT_NODE : template = sroot.getDefaultRootRule(); break; default : // No default rules for processing instructions and the like. continue; } } } // If we are processing the default text rule, then just clone // the value directly to the result tree. try { transformer.pushPairCurrentMatched(template, child); if (check) guard.push(this, child); // Fire a trace event for the template. if (rdebug) transformer.getTraceManager().fireTraceEvent(child, mode, template); // And execute the child templates. if (template.isCompiledTemplate()) template.execute(transformer, child, mode); else { // Loop through the children of the template, calling execute on // each of them. for (ElemTemplateElement t = template.m_firstChild; t != null; t = t.m_nextSibling) { xctxt.setSAXLocator(t); transformer.setCurrentElement(t); t.execute(transformer, child, mode); } } } finally { transformer.popCurrentMatched(); if (check) guard.pop(); } } } finally { xctxt.setSAXLocator(savedLocator); xctxt.popContextNodeList(); transformer.popElemTemplateElement(); popParams(xctxt); // if(null != sourceNodes) // sourceNodes.detach(); } } catch(SAXException se) { transformer.getErrorListener().fatalError(new TransformerException(se)); } }
2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/eac44e44a98e4f08a2c3cf379a0b5dcae1324770/ElemForEach.java/buggy/src/org/apache/xalan/templates/ElemForEach.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 2510, 7416, 3205, 12, 1850, 11519, 2828, 8360, 16, 2029, 26799, 16, 10223, 2283, 1046, 1542, 16, 16723, 1965, 13, 5411, 1216, 21684, 225, 288, 565, 775, 565, 288, 1377, 1250, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 2510, 7416, 3205, 12, 1850, 11519, 2828, 8360, 16, 2029, 26799, 16, 10223, 2283, 1046, 1542, 16, 16723, 1965, 13, 5411, 1216, 21684, 225, 288, 565, 775, 565, 288, 1377, 1250, 4...
BugzillaClient client = connector.getClientManager().getClient(repository);
BugzillaClient client = connector.getClientManager().getClient(repository);
public RepositoryTaskData downloadTaskData(TaskRepository repository, String taskId) throws CoreException { try { BugzillaClient client = connector.getClientManager().getClient(repository); int bugId = Integer.parseInt(taskId); RepositoryTaskData taskData = client.getTaskData(repository, bugId); if (taskData != null) { connector.updateAttributeOptions(repository, taskData); addValidOperations(taskData, repository.getUserName()); return taskData; } return null; } catch (final UnrecognizedReponseException e) { throw new CoreException(new Status(IStatus.ERROR, BugzillaCorePlugin.PLUGIN_ID, 0, "Report download failed. Unrecognized response from " + repository.getUrl() + ".", e)); } catch (final FileNotFoundException e) { throw new CoreException(new Status(IStatus.ERROR, BugzillaCorePlugin.PLUGIN_ID, 0, "Report download from " + repository.getUrl() + " failed. File not found: " + e.getMessage(), e)); } catch (final Exception e) { throw new CoreException(new Status(IStatus.ERROR, BugzillaCorePlugin.PLUGIN_ID, 0, "Report download from " + repository.getUrl() + " failed: "+e.getMessage(), e)); } }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/13d9cc47dc7cbdd31e7fccb921b3def94c771a66/BugzillaOfflineTaskHandler.java/buggy/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaOfflineTaskHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 6281, 2174, 751, 4224, 2174, 751, 12, 2174, 3305, 3352, 16, 514, 15321, 13, 1082, 202, 15069, 30015, 288, 202, 202, 698, 288, 1082, 202, 19865, 15990, 1227, 1004, 273, 8703, 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, 6281, 2174, 751, 4224, 2174, 751, 12, 2174, 3305, 3352, 16, 514, 15321, 13, 1082, 202, 15069, 30015, 288, 202, 202, 698, 288, 1082, 202, 19865, 15990, 1227, 1004, 273, 8703, 18,...
if (buildInfo.buildsFileType(file.getFileExtension())) {
if (buildInfo != null && buildInfo.buildsFileType(file.getFileExtension())) {
private List getSelectedBuildableFiles() { List files = new LinkedList(); ISelectionService selectionService = workbenchWindow .getSelectionService(); ISelection selection = selectionService.getSelection(); if (selection instanceof IStructuredSelection) { IStructuredSelection structuredSelection = (IStructuredSelection) selection; for (Iterator elements = structuredSelection.iterator(); elements .hasNext();) { IFile file = convertToIFile(elements.next()); if (file != null) { // we only add files that we can actually build IManagedBuildInfo buildInfo = ManagedBuildManager .getBuildInfo(file.getProject()); if (buildInfo.buildsFileType(file.getFileExtension())) { files.add(file); } } } // since we don't allow building folders, there can be no // redundancies // eliminateRedundancies(resources); } return files; }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/033966ab4c22a8f61ea9109f7c90d1eb3e7068cc/BuildFilesAction.java/buggy/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/actions/BuildFilesAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 987, 16625, 3116, 429, 2697, 1435, 288, 202, 202, 682, 1390, 273, 394, 10688, 5621, 202, 202, 45, 6233, 1179, 4421, 1179, 273, 1440, 22144, 3829, 9506, 202, 18, 588, 6233, 1179...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 987, 16625, 3116, 429, 2697, 1435, 288, 202, 202, 682, 1390, 273, 394, 10688, 5621, 202, 202, 45, 6233, 1179, 4421, 1179, 273, 1440, 22144, 3829, 9506, 202, 18, 588, 6233, 1179...
messageLabel.setText(newMessage); }
messageLabel.setText(newMessage); }
private void updateMessage(String newMessage) { messageLabel.setText(newMessage); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/da161fa58798fc8bc17f94c43475620ff52e72c2/TitleAreaDialog.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/TitleAreaDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1089, 1079, 12, 780, 394, 1079, 13, 288, 3639, 883, 2224, 18, 542, 1528, 12, 2704, 1079, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1089, 1079, 12, 780, 394, 1079, 13, 288, 3639, 883, 2224, 18, 542, 1528, 12, 2704, 1079, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
else { patterns = (_patternGroups[kernelType] == null) ? (_patternGroups[kernelType] = new Vector(2)) : _patternGroups[kernelType]; } if (patterns == null) { patterns.addElement(pattern); }
private void addPattern(int kernelType, LocationPathPattern pattern) { // Make sure the array of pattern groups is long enough final int oldLength = _patternGroups.length; if (kernelType >= oldLength) { Vector[] newGroups = new Vector[kernelType * 2]; System.arraycopy(_patternGroups, 0, newGroups, 0, oldLength); _patternGroups = newGroups; } // Find the vector to put this pattern into Vector patterns; // Use the vector for id()/key()/node() patterns if no kernel type patterns = (kernelType == -1) ? _nodeGroup : _patternGroups[kernelType]; // Create a new vector if needed and insert the very first pattern if (patterns == null) { patterns = new Vector(2); patterns.addElement(pattern); if (kernelType == -1) { _nodeGroup = patterns; } else { _patternGroups[kernelType] = patterns; } } // Otherwise make sure patterns are ordered by precedence/priorities else { boolean inserted = false; for (int i = 0; i < patterns.size(); i++) { final LocationPathPattern lppToCompare = (LocationPathPattern)patterns.elementAt(i); if (pattern.noSmallerThan(lppToCompare)) { inserted = true; patterns.insertElementAt(pattern, i); break; } } if (inserted == false) { patterns.addElement(pattern); } } }
46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/3997d939907610b1342d6ed5a6c05ee671a0ee8c/Mode.java/clean/src/org/apache/xalan/xsltc/compiler/Mode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 469, 288, 6884, 273, 261, 67, 4951, 3621, 63, 8111, 559, 65, 422, 446, 13, 692, 261, 67, 4951, 3621, 63, 8111, 559, 65, 273, 394, 5589, 12, 22, 3719, 294, 389, 4951, 3621, 63, 8111, 559, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 469, 288, 6884, 273, 261, 67, 4951, 3621, 63, 8111, 559, 65, 422, 446, 13, 692, 261, 67, 4951, 3621, 63, 8111, 559, 65, 273, 394, 5589, 12, 22, 3719, 294, 389, 4951, 3621, 63, 8111, 559, ...
"ms, missing ACKs from " + ack_collector.getMissing() + " (received=" + ack_collector.getReceived() +
"ms, missing ACKs from " + ack_collector.printMissing() + " (received=" + ack_collector.printReceived() +
public void castViewChangeWithDest(View new_view, Digest digest, java.util.List members) { Message view_change_msg; GmsHeader hdr; long start, stop; ViewId vid=new_view.getVid(); int size=-1; if(members == null || members.size() == 0) members=new_view.getMembers(); if(log.isTraceEnabled()) log.trace("mcasting view {" + new_view + "} (" + new_view.size() + " mbrs)\n"); start=System.currentTimeMillis(); view_change_msg=new Message(); // bcast to all members hdr=new GmsHeader(GmsHeader.VIEW, new_view); hdr.my_digest=digest; view_change_msg.putHeader(name, hdr); ack_collector.reset(vid, members); size=ack_collector.size(); passDown(new Event(Event.MSG, view_change_msg)); try { ack_collector.waitForAllAcks(view_ack_collection_timeout); stop=System.currentTimeMillis(); if(trace) log.trace("received all ACKs (" + size + ") for " + vid + " in " + (stop-start) + "ms"); } catch(TimeoutException e) { log.warn("failed to collect all ACKs (" + size + ") for view " + new_view + " after " + view_ack_collection_timeout + "ms, missing ACKs from " + ack_collector.getMissing() + " (received=" + ack_collector.getReceived() + "), local_addr=" + local_addr); } }
3550 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3550/5f54b164eba4b5bcde2aa03985f78bbe2cc05deb/GMS.java/clean/src/org/jgroups/protocols/pbcast/GMS.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 4812, 1767, 3043, 1190, 9378, 12, 1767, 394, 67, 1945, 16, 15864, 5403, 16, 2252, 18, 1367, 18, 682, 4833, 13, 288, 3639, 2350, 282, 1476, 67, 3427, 67, 3576, 31, 3639, 611, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4812, 1767, 3043, 1190, 9378, 12, 1767, 394, 67, 1945, 16, 15864, 5403, 16, 2252, 18, 1367, 18, 682, 4833, 13, 288, 3639, 2350, 282, 1476, 67, 3427, 67, 3576, 31, 3639, 611, ...
Object result = Integer.valueOf(0);
Object result = new Integer(0);
public static Object sum(Collection self) { Object result = Integer.valueOf(0); Object[] param = new Object[1]; for (Iterator iter = self.iterator(); iter.hasNext();) { Object operand = iter.next(); param[0] = operand; MetaClass metaClass = InvokerHelper.getMetaClass(result); result = metaClass.invokeMethod(result, "plus", param); } return result; }
6462 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6462/698b33157294f117d73d0a4761a4a3bf36160f13/DefaultGroovyMethods.java/buggy/src/main/org/codehaus/groovy/runtime/DefaultGroovyMethods.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1033, 2142, 12, 2532, 365, 13, 288, 377, 202, 921, 563, 273, 2144, 18, 1132, 951, 12, 20, 1769, 202, 202, 921, 8526, 579, 273, 394, 1033, 63, 21, 15533, 202, 202, 1884, 261...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1033, 2142, 12, 2532, 365, 13, 288, 377, 202, 921, 563, 273, 2144, 18, 1132, 951, 12, 20, 1769, 202, 202, 921, 8526, 579, 273, 394, 1033, 63, 21, 15533, 202, 202, 1884, 261...
time -= ((RubyTime) other).cal.getTimeInMillis();
time -= ((RubyTime) other).getTimeInMillis();
public RubyObject op_minus(RubyObject other) { long time = cal.getTimeInMillis(); if (other instanceof RubyTime) { time -= ((RubyTime) other).cal.getTimeInMillis(); return RubyFloat.newFloat(ruby, time * 10e-4); } else { time -= ((RubyNumeric) other).getDoubleValue() * 1000; RubyTime newTime = new RubyTime(ruby, getRubyClass()); newTime.cal = Calendar.getInstance(); newTime.cal.setTime(new Date(time)); return newTime; } }
45753 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45753/1d7a03bf28c697f2c006eafab8faa91982894617/RubyTime.java/buggy/org/jruby/RubyTime.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 921, 1061, 67, 19601, 12, 54, 10340, 921, 1308, 13, 288, 3639, 1525, 813, 273, 1443, 18, 588, 950, 16620, 5621, 3639, 309, 261, 3011, 1276, 19817, 950, 13, 288, 5411, 813, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1061, 67, 19601, 12, 54, 10340, 921, 1308, 13, 288, 3639, 1525, 813, 273, 1443, 18, 588, 950, 16620, 5621, 3639, 309, 261, 3011, 1276, 19817, 950, 13, 288, 5411, 813, ...
return new XPath(str, getLocator(), this, XPath.SELECT);
ErrorListener handler = m_stylesheetProcessor.getErrorListener(); return new XPath(str, getLocator(), this, XPath.SELECT, handler);
public XPath createXPath(String str) throws javax.xml.transform.TransformerException { return new XPath(str, getLocator(), this, XPath.SELECT); }
2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/224bd46c81f9ec401bff9edbd5891470eac1b057/StylesheetHandler.java/clean/src/org/apache/xalan/processor/StylesheetHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 10172, 752, 14124, 12, 780, 609, 13, 1850, 1216, 6863, 18, 2902, 18, 6547, 18, 8319, 503, 225, 288, 565, 1068, 2223, 1838, 273, 312, 67, 19403, 5164, 18, 588, 668, 2223, 5621, 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, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 10172, 752, 14124, 12, 780, 609, 13, 1850, 1216, 6863, 18, 2902, 18, 6547, 18, 8319, 503, 225, 288, 565, 1068, 2223, 1838, 273, 312, 67, 19403, 5164, 18, 588, 668, 2223, 5621, 327...
private Document handleFile(File file) { try { Set attrSet = new TreeSet(); DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); DocumentBuilder db = dbf.newDocumentBuilder(); Document doc = db.parse(file); List tags = Util.getElements(doc.getDocumentElement(), "body/taglib/tag"); Iterator iter = tags.iterator(); while (iter.hasNext()) { Element tag = (Element) iter.next(); List attrList = Util.getElements(tag, "attribute"); Iterator attrIter = attrList.iterator(); while (attrIter.hasNext()) { Element attribute = (Element) attrIter.next(); String name = Util.getElementValue(attribute, "name"); attrSet.add(name); } } Element attributes = Util.addChildElement( doc.getDocumentElement(), "attributes", null); iter = attrSet.iterator(); while (iter.hasNext()) { String name = (String) iter.next(); Util.addChildElement(attributes, "attribute", name); } return doc; } catch (Exception e) { e.printStackTrace(); } return null; }
48068 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48068/bcf54ee9560f4fd9a0ff083d3f0ea7c829a28aea/TaglibReport.java/buggy/contrib/tag-doc/src/java/org/apache/struts/taskdefs/TaglibReport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 2519, 4110, 812, 12, 812, 768, 15329, 202, 202, 698, 95, 1082, 202, 694, 1747, 694, 33, 2704, 2471, 694, 5621, 1082, 202, 2519, 20692, 1966, 74, 33, 2519, 20692, 18, 2704, 14...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2519, 4110, 812, 12, 812, 768, 15329, 202, 202, 698, 95, 1082, 202, 694, 1747, 694, 33, 2704, 2471, 694, 5621, 1082, 202, 2519, 20692, 1966, 74, 33, 2519, 20692, 18, 2704, 14...
public void removeChangeListener(ChangeListener l) { changes.removeElement(l); }
public void removeChangeListener(ChangeListener l) { listenerList.remove(ChangeListener.class, l); }
public void removeChangeListener(ChangeListener l) { changes.removeElement(l); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2703ae3b51c371a2a79d28271cd57b4046c647d0/DefaultButtonModel.java/clean/core/src/classpath/javax/javax/swing/DefaultButtonModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1206, 15744, 12, 15744, 328, 13, 288, 202, 202, 6329, 18, 4479, 1046, 12, 80, 1769, 202, 97, 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, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1206, 15744, 12, 15744, 328, 13, 288, 202, 202, 6329, 18, 4479, 1046, 12, 80, 1769, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
expr.returnToPool();
if (expr != null) expr.returnToPool();
public void cell(HSSFCell cell, String sourceXPath, String targetXPath) { if (sourceXPath.charAt(0) == '/') sourceXPath = sourceXPath.substring(1); // Set cell value Object newObject = sheetElement.selectObject(sourceXPath); PooledXPathExpression expr = XPathCache.getXPathExpression(pipelineContext, wrapper.wrap(newObject), "string()"); String newValue; try { newValue = (String) expr.evaluateSingle(); } catch (XPathException e) { throw new OXFException(e); } finally { expr.returnToPool(); } if (newValue == null) { throw new OXFException("Nothing matches the XPath expression '" + sourceXPath + "' in the input document"); } try { cell.setCellValue(Double.parseDouble(newValue)); } catch (NumberFormatException e) { cell.setCellValue(newValue); } // Set cell format Object element = sheetElement.selectObject(sourceXPath); if (element instanceof Element) { // NOTE: We might want to support other properties here String bold = ((Element) element).attributeValue("bold"); if (bold != null) { HSSFFont originalFont = workbook.getFontAt(cell.getCellStyle().getFontIndex()); HSSFFont newFont = workbook.createFont(); XLSUtils.copyFont(newFont, originalFont); if ("true".equals(bold)) newFont.setBoldweight(HSSFFont.BOLDWEIGHT_BOLD); cell.getCellStyle().setFont(newFont); } } }
54445 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54445/7b8d3b31ee1d694cf0349f79011e8a9f71fceca8/XLSSerializer.java/buggy/src/java/org/orbeon/oxf/processor/serializer/legacy/XLSSerializer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 5397, 1071, 918, 2484, 12, 44, 1260, 42, 4020, 2484, 16, 514, 1084, 14124, 16, 514, 1018, 14124, 13, 288, 13491, 309, 261, 3168, 14124, 18, 3001, 861, 12, 20, 13, 422, 2023, 13, 18701, 1084,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 5397, 1071, 918, 2484, 12, 44, 1260, 42, 4020, 2484, 16, 514, 1084, 14124, 16, 514, 1018, 14124, 13, 288, 13491, 309, 261, 3168, 14124, 18, 3001, 861, 12, 20, 13, 422, 2023, 13, 18701, 1084,...
public Object getPropertyExceptRomDefault( Module module, ElementPropertyDefn prop ) { if ( prop.isIntrinsic( ) ) { // This is an intrinsic system-defined property. Object value = getIntrinsicProperty( prop.getName( ) ); if ( value != null ) return value; return null; } // Repeat the search up the inheritance or style // hierarchy, starting with this element. DesignElement e = this; Object value = null; while ( e != null ) { // Check if this element or parent provides the value value = e.getPropertyFromElement( module, prop ); if ( value != null ) return value; if ( !e.isInheritableProperty( prop ) || !prop.isStyleProperty( ) || isStyle( ) ) return getSessionDefaultValue( module, prop ); // Check if the container/slot predefined style provides // the value value = e.getPropertyRelatedToContainer( module, prop ); if ( value != null ) return value; // Try to get the value of this property from container // hierarchy. e = e.getContainer( ); } // Still not found. Use the default. return getSessionDefaultValue( module, prop ); }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/116d8de3213e4f354f008c24beab2f2caf8528b6/DesignElement.java/buggy/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/core/DesignElement.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1033, 3911, 30212, 54, 362, 1868, 12, 5924, 1605, 16, 1082, 202, 1046, 1396, 3262, 82, 2270, 262, 202, 95, 202, 202, 430, 261, 2270, 18, 291, 382, 21760, 12, 262, 262, 202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1033, 3911, 30212, 54, 362, 1868, 12, 5924, 1605, 16, 1082, 202, 1046, 1396, 3262, 82, 2270, 262, 202, 95, 202, 202, 430, 261, 2270, 18, 291, 382, 21760, 12, 262, 262, 202, ...
int orientation = scrollbar.getOrientation(); switch (orientation) { case (JScrollBar.HORIZONTAL): incrButton = createIncreaseButton(EAST); decrButton = createDecreaseButton(WEST); break; default: incrButton = createIncreaseButton(SOUTH); decrButton = createDecreaseButton(NORTH); break; }
protected void installDefaults() { int orientation = scrollbar.getOrientation(); switch (orientation) { case (JScrollBar.HORIZONTAL): incrButton = createIncreaseButton(EAST); decrButton = createDecreaseButton(WEST); break; default: incrButton = createIncreaseButton(SOUTH); decrButton = createDecreaseButton(NORTH); break; } LookAndFeel.installColors(scrollbar, "ScrollBar.background", "ScrollBar.foreground"); LookAndFeel.installBorder(scrollbar, "ScrollBar.border"); scrollbar.setOpaque(true); scrollbar.setLayout(this); thumbColor = UIManager.getColor("ScrollBar.thumb"); thumbDarkShadowColor = UIManager.getColor("ScrollBar.thumbDarkShadow"); thumbHighlightColor = UIManager.getColor("ScrollBar.thumbHighlight"); thumbLightShadowColor = UIManager.getColor("ScrollBar.thumbShadow"); maximumThumbSize = UIManager.getDimension("ScrollBar.maximumThumbSize"); minimumThumbSize = UIManager.getDimension("ScrollBar.minimumThumbSize"); }
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/3878be593002f301580025b16c264e41f364beae/BasicScrollBarUI.java/buggy/libraries/javalib/external/classpath/javax/swing/plaf/basic/BasicScrollBarUI.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 3799, 7019, 1435, 225, 288, 565, 509, 9820, 273, 27123, 18, 588, 14097, 5621, 565, 1620, 261, 19235, 13, 1377, 288, 1377, 648, 261, 46, 6806, 5190, 18, 44, 20344, 4672, 3639, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 3799, 7019, 1435, 225, 288, 565, 509, 9820, 273, 27123, 18, 588, 14097, 5621, 565, 1620, 261, 19235, 13, 1377, 288, 1377, 648, 261, 46, 6806, 5190, 18, 44, 20344, 4672, 3639, ...
public ProjectFileIR parse(File projFile) throws IOException, FileNotFoundException, MalformedProjectFileException { _projectFile = projFile; _parentDir = projFile.getParent();// System.err.println("Parsing project file " + projFile + " with parent " + _parentDir); List<SEList> forest = null; try { forest = SExpParser.parse(projFile); } catch(SExpParseException e) { throw new MalformedProjectFileException("Parse Error: " + e.getMessage()); } ProjectFileIR pfir = new ProjectProfile(projFile); try { for (SEList exp : forest) evaluateExpression(exp, pfir); } catch(PrivateProjectException e) { throw new MalformedProjectFileException("Parse Error: " + e.getMessage()); } // System.err.println("Parsed buildDir is " + pfir.getBuildDirectory()); return pfir; }
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/bd397d7031a3a6391c14c55c6410a49e1be43ebd/ProjectFileParser.java/buggy/drjava/src/edu/rice/cs/drjava/project/ProjectFileParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 5420, 812, 7937, 1109, 12, 812, 10296, 812, 13, 1216, 1860, 16, 13707, 16, 13311, 4109, 812, 503, 288, 3639, 389, 4406, 812, 273, 10296, 812, 31, 565, 389, 2938, 1621, 273, 10296, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5420, 812, 7937, 1109, 12, 812, 10296, 812, 13, 1216, 1860, 16, 13707, 16, 13311, 4109, 812, 503, 288, 3639, 389, 4406, 812, 273, 10296, 812, 31, 565, 389, 2938, 1621, 273, 10296, ...
attributes.addAttribute( fAttributeQName, XMLSymbols.fCDATASymbol, null);
int oldLen = attributes.getLength(); attrIndex = attributes.addAttribute( fAttributeQName, XMLSymbols.fCDATASymbol, null);
protected void scanAttribute(XMLAttributesImpl attributes) throws IOException, XNIException { if (DEBUG_CONTENT_SCANNING) System.out.println(">>> scanAttribute()"); // name fEntityScanner.scanQName(fAttributeQName); // equals fEntityScanner.skipSpaces(); if (!fEntityScanner.skipChar('=')) { reportFatalError( "EqRequiredInAttribute", new Object[] { fCurrentElement.rawname, fAttributeQName.rawname }); } fEntityScanner.skipSpaces(); // content int oldLen = attributes.getLength(); if (fBindNamespaces) { attributes.addAttributeNS( fAttributeQName, XMLSymbols.fCDATASymbol, null); } else { attributes.addAttribute( fAttributeQName, XMLSymbols.fCDATASymbol, null); // WFC: Unique Att Spec if (oldLen == attributes.getLength()) { reportFatalError( "AttributeNotUnique", new Object[] { fCurrentElement.rawname, fAttributeQName.rawname }); } } //REVISIT: one more case needs to be included: external PE and standalone is no boolean isVC = fHasExternalDTD && !fStandalone; // REVISIT: it seems that this function should not take attributes, and length scanAttributeValue( this.fTempString, fTempString2, fAttributeQName.rawname, attributes, oldLen, isVC, fCurrentElement.rawname); String value = fTempString.toString(); attributes.setValue(oldLen, value); attributes.setNonNormalizedValue(oldLen, fTempString2.toString()); attributes.setSpecified(oldLen, true); // record namespace declarations if any. if (fBindNamespaces) { String localpart = fAttributeQName.localpart; String prefix = fAttributeQName.prefix != null ? fAttributeQName.prefix : XMLSymbols.EMPTY_STRING; // when it's of form xmlns="..." or xmlns:prefix="...", // it's a namespace declaration. but prefix:xmlns="..." isn't. if (prefix == XMLSymbols.PREFIX_XMLNS || prefix == XMLSymbols.EMPTY_STRING && localpart == XMLSymbols.PREFIX_XMLNS) { // get the internalized value of this attribute String uri = fSymbolTable.addSymbol(value); // 1. "xmlns" can't be bound to any namespace if (prefix == XMLSymbols.PREFIX_XMLNS && localpart == XMLSymbols.PREFIX_XMLNS) { fErrorReporter.reportError( XMLMessageFormatter.XMLNS_DOMAIN, "CantBindXMLNS", new Object[] { fAttributeQName }, XMLErrorReporter.SEVERITY_FATAL_ERROR); } // 2. the namespace for "xmlns" can't be bound to any prefix if (uri == NamespaceContext.XMLNS_URI) { fErrorReporter.reportError( XMLMessageFormatter.XMLNS_DOMAIN, "CantBindXMLNS", new Object[] { fAttributeQName }, XMLErrorReporter.SEVERITY_FATAL_ERROR); } // 3. "xml" can't be bound to any other namespace than it's own if (localpart == XMLSymbols.PREFIX_XML) { if (uri != NamespaceContext.XML_URI) { fErrorReporter.reportError( XMLMessageFormatter.XMLNS_DOMAIN, "CantBindXML", new Object[] { fAttributeQName }, XMLErrorReporter.SEVERITY_FATAL_ERROR); } } // 4. the namespace for "xml" can't be bound to any other prefix else { if (uri == NamespaceContext.XML_URI) { fErrorReporter.reportError( XMLMessageFormatter.XMLNS_DOMAIN, "CantBindXML", new Object[] { fAttributeQName }, XMLErrorReporter.SEVERITY_FATAL_ERROR); } } prefix = localpart != XMLSymbols.PREFIX_XMLNS ? localpart : XMLSymbols.EMPTY_STRING; // Declare prefix in context. Removing the association between a prefix and a // namespace name is permitted in XML 1.1, so if the uri value is the empty string, // the prefix is being unbound. -- mrglavas fNamespaceContext.declarePrefix( prefix, uri.length() != 0 ? uri : null); // bind namespace attribute to a namespace attributes.setURI( oldLen, fNamespaceContext.getURI(XMLSymbols.PREFIX_XMLNS)); } else { // attempt to bind attribute if (fAttributeQName.prefix != null) { attributes.setURI( oldLen, fNamespaceContext.getURI(fAttributeQName.prefix)); } } } if (DEBUG_CONTENT_SCANNING) System.out.println("<<< scanAttribute()"); } // scanAttribute(XMLAttributes)
1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/6f7dbb76e4d508528689dc20d788e664e58ae532/XML11NSDocumentScannerImpl.java/buggy/src/org/apache/xerces/impl/XML11NSDocumentScannerImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 4135, 1499, 12, 4201, 2498, 2828, 1677, 13, 3639, 1216, 1860, 16, 1139, 50, 45, 503, 288, 3639, 309, 261, 9394, 67, 9689, 67, 2312, 11489, 1360, 13, 5411, 2332, 18, 659, 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, 4750, 918, 4135, 1499, 12, 4201, 2498, 2828, 1677, 13, 3639, 1216, 1860, 16, 1139, 50, 45, 503, 288, 3639, 309, 261, 9394, 67, 9689, 67, 2312, 11489, 1360, 13, 5411, 2332, 18, 659, 18, ...
public HowLoudThread(PluginApplication app)
public HowLoudThread(PluginApplication app, String identifier)
public HowLoudThread(PluginApplication app) { this.app = app; toTerminate = false; Thread t = new Thread(this); t.start(); }
11635 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11635/003f97941713a7163ed884fc1a518dff687951b8/HowLoudThread.java/buggy/trunk/irate/irate/plugin/autonormalize/HowLoudThread.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 9017, 1504, 1100, 3830, 12, 3773, 3208, 595, 16, 514, 2756, 13, 225, 288, 565, 333, 18, 2910, 273, 595, 31, 565, 358, 26106, 273, 629, 31, 565, 4884, 268, 273, 394, 4884, 12, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 9017, 1504, 1100, 3830, 12, 3773, 3208, 595, 16, 514, 2756, 13, 225, 288, 565, 333, 18, 2910, 273, 595, 31, 565, 358, 26106, 273, 629, 31, 565, 4884, 268, 273, 394, 4884, 12, 22...
DimensionHandle dim = ( (RowHandle) adapt.getHandle( ) ) .getHeight( ); if ( DesignChoiceConstants.UNITS_PERCENTAGE .equals( dim.getUnits( ) )
DimensionHandle dim = ( (RowHandle) adapt.getHandle( ) ).getHeight( ); if ( DesignChoiceConstants.UNITS_PERCENTAGE.equals( dim.getUnits( ) )
private void init( TableLayoutData.ColumnData[] columnWidths, TableLayoutData.RowData[] rowHeights ) { int size = rowHeights.length; for ( int i = 1; i < size + 1; i++ ) { rowHeights[i - 1] = new TableLayoutData.RowData( ); rowHeights[i - 1].rowNumber = i; Object obj = getOwner( ).getRow( i ); RowHandleAdapter adapt = HandleAdapterFactory.getInstance( ) .getRowHandleAdapter( obj ); rowHeights[i - 1].height = adapt.getHeight( ); rowHeights[i - 1].isForce = adapt.isCustomHeight( ); //add to handle percentage case. DimensionHandle dim = ( (RowHandle) adapt.getHandle( ) ) .getHeight( ); if ( DesignChoiceConstants.UNITS_PERCENTAGE .equals( dim.getUnits( ) ) && dim.getMeasure( ) > 0 ) { rowHeights[i - 1].isPercentage = true; rowHeights[i - 1].percentageHeight = dim.getMeasure( ); } //add to handle auto case; if ( dim.getUnits( ) == null || dim.getUnits( ).length( ) == 0 ) { rowHeights[i - 1].isAuto = true; } //add by gao 2004.11.22 rowHeights[i - 1].trueMinRowHeight = ( rowHeights[i - 1].isForce && !rowHeights[i - 1].isPercentage ) ? rowHeights[i - 1].height : rowHeights[i - 1].minRowHeight; } size = columnWidths.length; for ( int i = 1; i < size + 1; i++ ) { columnWidths[i - 1] = new TableLayoutData.ColumnData( ); columnWidths[i - 1].columnNumber = i; Object obj = getOwner( ).getColumn( i ); ColumnHandleAdapter adapt = HandleAdapterFactory.getInstance( ) .getColumnHandleAdapter( obj ); columnWidths[i - 1].width = adapt.getWidth( ); columnWidths[i - 1].isForce = adapt.isCustomWidth( ); //add to handle percentage case. DimensionHandle dim = ( (ColumnHandle) adapt.getHandle( ) ) .getWidth( ); if ( DesignChoiceConstants.UNITS_PERCENTAGE .equals( dim.getUnits( ) ) && dim.getMeasure( ) > 0 ) { columnWidths[i - 1].isPercentage = true; columnWidths[i - 1].percentageWidth = dim.getMeasure( ); } //add to handle auto case; if ( dim.getUnits( ) == null || dim.getUnits( ).length( ) == 0 ) { columnWidths[i - 1].isAuto = true; } //added by gao 2004.11.22 columnWidths[i - 1].trueMinColumnWidth = ( columnWidths[i - 1].isForce && !columnWidths[i - 1].isPercentage ) ? columnWidths[i - 1].width : columnWidths[i - 1].minColumnWidth; } }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/e051547bba60033b7a064c5e9a52977a6c21df2b/TableLayout.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/layout/TableLayout.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1208, 12, 3555, 3744, 751, 18, 1494, 751, 8526, 1057, 22407, 16, 1082, 202, 1388, 3744, 751, 18, 1999, 751, 8526, 1027, 2686, 87, 262, 202, 95, 202, 202, 474, 963, 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, 225, 202, 1152, 918, 1208, 12, 3555, 3744, 751, 18, 1494, 751, 8526, 1057, 22407, 16, 1082, 202, 1388, 3744, 751, 18, 1999, 751, 8526, 1027, 2686, 87, 262, 202, 95, 202, 202, 474, 963, 273, ...
Class c1 = o1.getClass(); Class c2 = o2.getClass(); if (!c1.equals(c2)) {
if (!t.transform(o1).equals(t.transform(o2))) {
public static boolean arrayEquals(Object[] a1, Object[] a2) { if ((a1 == null) ^ (a2 == null)) { return false; } if (a1.length != a2.length) { return false; } for (int i = 0; i < a1.length; i++) { Object o1 = a1[i]; Object o2 = a2[i]; if (o1 == null) { if (o2 != null) { return false; } } else if (o2 == null) { return false; } else { Class c1 = o1.getClass(); Class c2 = o2.getClass(); if (!c1.equals(c2)) { return false; } } } return true; }
1154 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1154/d3f9b0f0e482ded808a0a8d385b48f34fcd22b52/CollectionUtils.java/clean/src/proxy/net/sf/cglib/core/CollectionUtils.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1250, 526, 8867, 12, 921, 8526, 279, 21, 16, 1033, 8526, 279, 22, 13, 288, 3639, 309, 14015, 69, 21, 422, 446, 13, 3602, 261, 69, 22, 422, 446, 3719, 288, 5411, 327, 629, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1250, 526, 8867, 12, 921, 8526, 279, 21, 16, 1033, 8526, 279, 22, 13, 288, 3639, 309, 14015, 69, 21, 422, 446, 13, 3602, 261, 69, 22, 422, 446, 3719, 288, 5411, 327, 629, ...
public ExternalizedTextEditorDialog(Shell parent, int style, String sText, List keys, IUIServiceProvider serviceprovider)
public ExternalizedTextEditorDialog(Shell parent, String sText, List keys)
public ExternalizedTextEditorDialog(Shell parent, int style, String sText, List keys, IUIServiceProvider serviceprovider) { super(parent, style); this.sResult = sText; this.keys = keys; this.serviceprovider = serviceprovider; }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/328c8495576ec950cc922a812ac021ce2d28f134/ExternalizedTextEditorDialog.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/ExternalizedTextEditorDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 11352, 1235, 1528, 6946, 6353, 12, 13220, 982, 16, 509, 2154, 16, 514, 272, 1528, 16, 987, 1311, 16, 3639, 467, 5370, 16300, 1156, 6778, 13, 565, 288, 3639, 2240, 12, 2938, 16, 21...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 11352, 1235, 1528, 6946, 6353, 12, 13220, 982, 16, 509, 2154, 16, 514, 272, 1528, 16, 987, 1311, 16, 3639, 467, 5370, 16300, 1156, 6778, 13, 565, 288, 3639, 2240, 12, 2938, 16, 21...
private static double jsStaticFunction_UTC(Object[] args) {
private static double jsStaticFunction_UTC(Object[] args) {
private static double jsStaticFunction_UTC(Object[] args) { double array[] = new double[MAXARGS]; int loop; double d; for (loop = 0; loop < MAXARGS; loop++) { if (loop < args.length) { d = ScriptRuntime.toNumber(args[loop]); if (d != d || Double.isInfinite(d)) { return ScriptRuntime.NaN; } array[loop] = ScriptRuntime.toInteger(args[loop]); } else { array[loop] = 0; } } /* adjust 2-digit years into the 20th century */ if (array[0] >= 0 && array[0] <= 99) array[0] += 1900; /* if we got a 0 for 'date' (which is out of range) * pretend it's a 1. (So Date.UTC(1972, 5) works) */ if (array[2] < 1) array[2] = 1; d = date_msecFromDate(array[0], array[1], array[2], array[3], array[4], array[5], array[6]); d = TimeClip(d); return d; // return new Double(d); }
11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/ba8f69355a752cc7402f5b559a19be4d84c54e22/NativeDate.java/buggy/js/rhino/src/org/mozilla/javascript/NativeDate.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 1645, 3828, 5788, 2083, 67, 11471, 12, 921, 8526, 833, 13, 288, 3639, 1645, 526, 8526, 273, 394, 1645, 63, 6694, 22439, 15533, 3639, 509, 2798, 31, 3639, 1645, 302, 31, 3639, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 1645, 3828, 5788, 2083, 67, 11471, 12, 921, 8526, 833, 13, 288, 3639, 1645, 526, 8526, 273, 394, 1645, 63, 6694, 22439, 15533, 3639, 509, 2798, 31, 3639, 1645, 302, 31, 3639, ...
public org.quickfix.field.SecurityID getSecurityID() throws FieldNotFound { org.quickfix.field.SecurityID value = new org.quickfix.field.SecurityID();
public quickfix.field.SecurityID getSecurityID() throws FieldNotFound { quickfix.field.SecurityID value = new quickfix.field.SecurityID();
public org.quickfix.field.SecurityID getSecurityID() throws FieldNotFound { org.quickfix.field.SecurityID value = new org.quickfix.field.SecurityID(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/CollateralInquiryAck.java/buggy/src/java/src/quickfix/fix44/CollateralInquiryAck.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 4368, 734, 19288, 734, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 4368, 734, 460, 273, 394, 2358, 18, 19525, 904, 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, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 4368, 734, 19288, 734, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 4368, 734, 460, 273, 394, 2358, 18, 19525, 904, 18...
{ super.addImpl(comp, constraints, index); }
{ super.addImpl(comp, constraints, index); }
protected void addImpl(Component comp, Object constraints, int index) { super.addImpl(comp, constraints, index); }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/50dc6879c9be89f646fdff68c58f785e3dc0b90e/JFrame.java/buggy/core/src/classpath/javax/javax/swing/JFrame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 225, 918, 527, 2828, 12, 1841, 1161, 16, 1033, 6237, 16, 509, 770, 13, 565, 288, 202, 9565, 18, 1289, 2828, 12, 2919, 16, 6237, 16, 770, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 225, 918, 527, 2828, 12, 1841, 1161, 16, 1033, 6237, 16, 509, 770, 13, 565, 288, 202, 9565, 18, 1289, 2828, 12, 2919, 16, 6237, 16, 770, 1769, 565, 289, 2, -100, -100, -100, -10...
try_stack.end_pc = PC;
try_stack.end_try = getLabel();
public void emitFinallyStart() { emitTryEnd(); if (try_stack.try_type != null) emitCatchEnd(); readPC = PC; SP = 0; try_stack.end_pc = PC; pushScope(); Type except_type = Type.pointer_type; Variable except = addLocal(except_type); emitCatchStart(null); emitStore(except); emitJsr(try_stack.finally_subr); emitLoad(except); emitThrow(); try_stack.finally_subr.define(this); Type ret_addr_type = Type.pointer_type; try_stack.finally_ret_addr = addLocal(ret_addr_type); pushType(ret_addr_type); emitStore(try_stack.finally_ret_addr); }
40769 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/40769/50aae2053d3e7c936750da14a5887b2c333a54ab/CodeAttr.java/buggy/gnu/bytecode/CodeAttr.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 3626, 29987, 1685, 1435, 225, 288, 565, 3626, 7833, 1638, 5621, 565, 309, 261, 698, 67, 3772, 18, 698, 67, 723, 480, 446, 13, 1377, 3626, 14842, 1638, 5621, 565, 855, 3513, 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, 282, 1071, 918, 3626, 29987, 1685, 1435, 225, 288, 565, 3626, 7833, 1638, 5621, 565, 309, 261, 698, 67, 3772, 18, 698, 67, 723, 480, 446, 13, 1377, 3626, 14842, 1638, 5621, 565, 855, 3513, 2...
byte[] exifData = segmentReader.readSegment(JpegSegmentReader.SEGMENT_MARKER_APP1);
byte[] exifData = segmentReader.readSegment(JpegSegmentReader.SEGMENT_APP1);
public void testReadApp1Segment() throws Exception { File jpeg = new File("src/com/drew/imaging/exif/test/withExif.jpg"); JpegSegmentReader segmentReader = new JpegSegmentReader(jpeg); byte[] exifData = segmentReader.readSegment(JpegSegmentReader.SEGMENT_MARKER_APP1); assertTrue("exif data too short", exifData.length > 4); assertEquals("Exif", new String(exifData, 0, 4)); ExifExtractor extractor = new ExifExtractor(exifData); try { ImageInfo info = extractor.extract(); assertTrue("app1 segment should contain exif tags", info.countTags() > 0); } catch (ExifProcessingException e) { fail("app1 segment couldn't be read by exif extractor"); } }
13212 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13212/86405a5c4ff12f30fd2796244d129975a8483ac3/JpegSegmentReaderTest.java/buggy/src/com/drew/imaging/jpeg/test/JpegSegmentReaderTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1994, 3371, 21, 4131, 1435, 1216, 1185, 565, 288, 3639, 1387, 29726, 273, 394, 1387, 2932, 4816, 19, 832, 19, 72, 16052, 19, 381, 5755, 19, 338, 430, 19, 3813, 19, 1918...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1994, 3371, 21, 4131, 1435, 1216, 1185, 565, 288, 3639, 1387, 29726, 273, 394, 1387, 2932, 4816, 19, 832, 19, 72, 16052, 19, 381, 5755, 19, 338, 430, 19, 3813, 19, 1918...
dX = indexFactor * ((a01*j) + constX); dY = indexFactor * ((a11*j) + constY); int temp = (int)((deltaX * deltaX) + (deltaY * deltaY)); gFixed = (int)(((dY * dY) + (dX * dX)) * factor); int gFixeddelta = (int)(((((deltaY * dY) + (deltaX * dX))* 2) + temp) * factor); int gFixeddeltadelta =(int)((temp * 2) * factor); for (i = 0; i < w; i++) {
for (i = 0; i < w; i++) {
private void fixedPointSimplestCaseNonCyclicFillRaster(int pixels[], int off, int adjust, int x, int y, int w, int h) { float g;//value between 0 and 1 specifying position in the gradient float iSq; // Square distance index float p; // Squrare root penetration in square root interval //this factor is used to scale the index calculation by the array size //and 1/radius (normalize the distance) float indexFactor = fastGradientArraySize / radius; float factor = 16; //2^16 factor for converting to/from floating point //constant part of X and Y coordinates for the entire raster float constX = (a00*x) + (a01*y) + constA; float constY = (a10*x) + (a11*y) + constB; float deltaX = indexFactor * a00; //incremental change in dX float deltaY = indexFactor * a10; //incremental change in dY float dX, dY; //the current distance from center int indexer = off;//used to index pixels array int i, j; //indexing variables int precalc = w+adjust; //precalculate this number int fixedArraySizeSq= (fastGradientArraySize * fastGradientArraySize) << 4; int gFixed;//fixed point integer int gIndex;//non-fixed-pt integer number used to index gradient array int iSqInt; // Square distance index // For every point in the raster, calculate the color at that point for(j = 0; j < h; j++){ //for every row //constants from column to column //x and y (in user space) of the first pixel of this row dX = indexFactor * ((a01*j) + constX); dY = indexFactor * ((a11*j) + constY); // these values below here allow for an incremental calculation // of dX^2 + dY^2 int temp = (int)((deltaX * deltaX) + (deltaY * deltaY)); //initialize to be equal to distance squared gFixed = (int)(((dY * dY) + (dX * dX)) * factor); int gFixeddelta = (int)(((((deltaY * dY) + (deltaX * dX))* 2) + temp) * factor); int gFixeddeltadelta =(int)((temp * 2) * factor); //for every column (inner loop begins here) for (i = 0; i < w; i++) { //determine the distance to the center //since this is a non cyclic fill raster, crop at "1" and 0 if (gFixed > fixedArraySizeSq) { gIndex = fastGradientArraySize; } else if (gFixed < 0) { gIndex = 0; } else { iSq = (gFixed >>> 4) / sqStepFloat; iSqInt = (int)iSq; //chop off fractional part p = iSq - iSqInt; gIndex = (int)((p * sqrtLutFixed[iSqInt + 1]) + ((1-p) * sqrtLutFixed[iSqInt])); } pixels[indexer + i] = gradient[gIndex]; //incremental calculation gFixed += gFixeddelta; gFixeddelta += gFixeddeltadelta; } indexer += precalc; } }
45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/8dabee95660518715a782c94131a271185be23bc/RadialGradientPaintContext.java/clean/sources/org/apache/batik/ext/awt/RadialGradientPaintContext.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 5499, 2148, 24490, 395, 2449, 3989, 17992, 18964, 8026, 18637, 12, 474, 8948, 63, 6487, 20982, 282, 509, 3397, 16, 6862, 9506, 282, 509, 5765, 16, 20982, 282, 509, 619, 16, 509...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5499, 2148, 24490, 395, 2449, 3989, 17992, 18964, 8026, 18637, 12, 474, 8948, 63, 6487, 20982, 282, 509, 3397, 16, 6862, 9506, 282, 509, 5765, 16, 20982, 282, 509, 619, 16, 509...
(baseType == this ? base.hashCode() << 2 : baseType.hashCode() )
(rootType == this ? base.hashCode() << 2 : rootType.hashCode() )
public int hashCode() { return (baseType == this ? base.hashCode() << 2 : baseType.hashCode() ) + (depClause != null ? depClause.hashCode() : 0) + ((typeParameters !=null && ! typeParameters.isEmpty()) ? typeParameters.hashCode() :0); }
1832 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1832/28fbb39368abdf3368c21084239fede794718a73/FutureType_c.java/clean/x10.compiler/src/polyglot/ext/x10/types/FutureType_c.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1377, 1071, 509, 13374, 1435, 288, 540, 327, 5411, 261, 3085, 559, 422, 333, 692, 1026, 18, 2816, 1085, 1435, 2296, 576, 294, 1365, 559, 18, 2816, 1085, 1435, 262, 1850, 397, 261, 15037, 7044,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1377, 1071, 509, 13374, 1435, 288, 540, 327, 5411, 261, 3085, 559, 422, 333, 692, 1026, 18, 2816, 1085, 1435, 2296, 576, 294, 1365, 559, 18, 2816, 1085, 1435, 262, 1850, 397, 261, 15037, 7044,...
warn("T3 " + atts.getValue(i));
logger.debug("T3 " + atts.getValue(i));
public void startElement (String uri, String local, String raw, Attributes atts) { String name = raw; warn("StartElement"); setCurrentElement(name); switch (CurrentElement) { case ATOM : warn("T1"); for (int i = 0; i < atts.getLength(); i++) { warn("T2"); if (atts.getQName(i).equals("id")) { warn("T3 " + atts.getValue(i)); elid.addElement(atts.getValue(i)); warn("T3 " + elid); } } warn("T4"); break; case BOND : warn("B1"); for (int i = 0; i < atts.getLength(); i++) { warn("B2 " + atts.getQName(i) + "=" + atts.getValue(i)); if (atts.getQName(i).equals("id")) { bondid.addElement(atts.getValue(i)); warn("B3 " + bondid); } } stereoGiven = false; warn("B4"); curRef = 0; break; case COORDINATE2 : for (int i = 0; i < atts.getLength(); i++) { if (atts.getQName(i).equals("builtin")) { BUILTIN = atts.getValue(i); warn("Valid element coord found, builtin: " + atts.getValue(i)); } } break; case COORDINATE3 : for (int i = 0; i < atts.getLength(); i++) { if (atts.getQName(i).equals("builtin")) { BUILTIN = atts.getValue(i); } } break; case STRING : for (int i = 0; i < atts.getLength(); i++) { if (atts.getQName(i).equals("builtin")) { BUILTIN = atts.getValue(i); } else if (atts.getQName(i).equals("title")) { elementTitle = atts.getValue(i); } } break; case FLOAT : for (int i = 0; i < atts.getLength(); i++) { if (atts.getQName(i).equals("builtin")) { BUILTIN = atts.getValue(i); } else if (atts.getQName(i).equals("title")) { elementTitle = atts.getValue(i); } } break; case ATOMARRAY : break; case INTEGERARRAY : for (int i = 0; i < atts.getLength(); i++) { if (atts.getQName(i).equals("builtin")) BUILTIN = atts.getValue(i); } break; case STRINGARRAY : for (int i = 0; i < atts.getLength(); i++) { if (atts.getQName(i).equals("builtin")) BUILTIN = atts.getValue(i); } break; case FLOATARRAY : for (int i = 0; i < atts.getLength(); i++) { if (atts.getQName(i).equals("builtin")) BUILTIN = atts.getValue(i); if (atts.getQName(i).equals("title")) elementTitle = atts.getValue(i); } break; case MOLECULE : elsym = new Vector(); elid = new Vector(); x3 = new Vector(); y3 = new Vector(); z3 = new Vector(); BUILTIN = ""; cdo.startObject("Molecule"); cdo.startObject("Frame"); for (int i = 0; i < atts.getLength(); i++) { if (atts.getQName(i).equals("id")) cdo.setObjectProperty("Frame", "title", atts.getValue(i)); } break; case CRYSTAL: cdo.startObject("Crystal"); break; case LIST : break; } }
45167 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45167/e04a2bbd6afdac34488441c1ce22ad5f73d254ff/Convention.java/buggy/org/openscience/cdk/io/cml/Convention.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 13591, 261, 780, 2003, 16, 514, 1191, 16, 514, 1831, 16, 9055, 15687, 13, 288, 202, 780, 508, 273, 1831, 31, 202, 8935, 2932, 1685, 1046, 8863, 202, 542, 3935, 1046, 12, 529,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 261, 780, 2003, 16, 514, 1191, 16, 514, 1831, 16, 9055, 15687, 13, 288, 202, 780, 508, 273, 1831, 31, 202, 8935, 2932, 1685, 1046, 8863, 202, 542, 3935, 1046, 12, 529,...
return matchOrReplace(cx, thisObj, args, funObj, mdata);
return matchOrReplace(cx, thisObj, args, funObj, mdata, false);
public Object search(Context cx, Scriptable thisObj, Object[] args, Function funObj) throws JavaScriptException { MatchData mdata = new MatchData(); mdata.optarg = 1; mdata.mode = GlobData.GLOB_SEARCH; mdata.parent = ScriptableObject.getTopLevelScope(funObj); return matchOrReplace(cx, thisObj, args, funObj, mdata); }
54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/bcf6134bdea4b7078a51fba9f7ad09d436f5fab3/RegExpImpl.java/clean/js/rhino/src/org/mozilla/javascript/regexp/RegExpImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 1623, 12, 1042, 9494, 16, 22780, 15261, 16, 1033, 8526, 833, 16, 12900, 4284, 9831, 2675, 13, 3639, 1216, 11905, 503, 565, 288, 3639, 4639, 751, 312, 892, 273, 394, 4639, 751,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1623, 12, 1042, 9494, 16, 22780, 15261, 16, 1033, 8526, 833, 16, 12900, 4284, 9831, 2675, 13, 3639, 1216, 11905, 503, 565, 288, 3639, 4639, 751, 312, 892, 273, 394, 4639, 751,...
return b0.compareTo(b1) >= 0;
return v0 >= v1;
public boolean evaluateBoolean(Evaluator evaluator) { final String b0 = calc0.evaluateString(evaluator); final String b1 = calc1.evaluateString(evaluator); if (b0 == null || b1 == null) { return BooleanNull; } return b0.compareTo(b1) >= 0; }
4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/5aca340e1cdbb6179077d96383341db48f0997be/BuiltinFunTable.java/buggy/src/main/mondrian/olap/fun/BuiltinFunTable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 5397, 1071, 1250, 5956, 5507, 12, 15876, 18256, 13, 288, 13491, 727, 514, 324, 20, 273, 7029, 20, 18, 21024, 780, 12, 14168, 639, 1769, 13491, 727, 514, 324, 21, 273, 7029, 21, 18, 21024, 78...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 5397, 1071, 1250, 5956, 5507, 12, 15876, 18256, 13, 288, 13491, 727, 514, 324, 20, 273, 7029, 20, 18, 21024, 780, 12, 14168, 639, 1769, 13491, 727, 514, 324, 21, 273, 7029, 21, 18, 21024, 78...
{ yyval = b.defaultOptWhenGuard(yylval); } break; case 298:
{ b.reserved(val_peek(1),"throws"); } break; case 299:
int yyparse() {int yyn; //next next thing to doint yym; //int yystate; //current parsing state from state tableString yys; //current token stringboolean doaction; init_stacks(); yynerrs = 0; yyerrflag = 0; yychar = -1; //impossible char forces a read yystate=0; //initial state state_push(yystate); //save it while (true) //until parsing is done, either correctly, or w/error { doaction=true; if (yydebug) debug("loop"); //#### NEXT ACTION (from reduction table) for (yyn=yydefred[yystate];yyn==0;yyn=yydefred[yystate]) { if (yydebug) debug("yyn:"+yyn+" state:"+yystate+" char:"+yychar); if (yychar < 0) //we want a char? { yychar = yylex(); //get next token //#### ERROR CHECK #### if (yychar < 0) //it it didn't work/error { yychar = 0; //change it to default string (no -1!) if (yydebug) yylexdebug(yystate,yychar); } }//yychar<0 yyn = yysindex[yystate]; //get amount to shift by (shift index) if ((yyn != 0) && (yyn += yychar) >= 0 && yyn <= YYTABLESIZE && yycheck[yyn] == yychar) { if (yydebug) debug("state "+yystate+", shifting to state "+yytable[yyn]+""); //#### NEXT STATE #### yystate = yytable[yyn];//we are in a new state state_push(yystate); //save it val_push(yylval); //push our lval as the input for next rule yychar = -1; //since we have 'eaten' a token, say we need another if (yyerrflag > 0) //have we recovered an error? --yyerrflag; //give ourselves credit doaction=false; //but don't process yet break; //quit the yyn=0 loop } yyn = yyrindex[yystate]; //reduce if ((yyn !=0 ) && (yyn += yychar) >= 0 && yyn <= YYTABLESIZE && yycheck[yyn] == yychar) { //we reduced! if (yydebug) debug("reduce"); yyn = yytable[yyn]; doaction=true; //get ready to execute break; //drop down to actions } else //ERROR RECOVERY { if (yyerrflag==0) { yyerror("syntax error"); yynerrs++; } if (yyerrflag < 3) //low error count? { yyerrflag = 3; while (true) //do until break { if (stateptr<0) //check for under & overflow here { yyerror("stack underflow. aborting..."); //note lower case 's' return 1; } yyn = yysindex[state_peek(0)]; if ((yyn != 0) && (yyn += YYERRCODE) >= 0 && yyn <= YYTABLESIZE && yycheck[yyn] == YYERRCODE) { if (yydebug) debug("state "+state_peek(0)+", error recovery shifting to state "+yytable[yyn]+" "); yystate = yytable[yyn]; state_push(yystate); val_push(yylval); doaction=false; break; } else { if (yydebug) debug("error recovery discarding state "+state_peek(0)+" "); if (stateptr<0) //check for under & overflow here { yyerror("Stack underflow. aborting..."); //capital 'S' return 1; } state_pop(); val_pop(); } } } else //discard this token { if (yychar == 0) return 1; //yyabort if (yydebug) { yys = null; if (yychar <= YYMAXTOKEN) yys = yyname[yychar]; if (yys == null) yys = "illegal-symbol"; debug("state "+yystate+", error recovery discards token "+yychar+" ("+yys+")"); } yychar = -1; //read another } }//end error recovery }//yyn=0 loop if (!doaction) //any reason not to proceed? continue; //skip action yym = yylen[yyn]; //get count of terminals on rhs if (yydebug) debug("state "+yystate+", reducing "+yym+" by rule "+yyn+" ("+yyrule[yyn]+")"); if (yym>0) //if count of rhs not 'nil' yyval = val_peek(yym-1); //get current semantic value switch(yyn) {//########## USER-SUPPLIED ACTIONS ##########case 1://#line 208 "e.y"{ myOptResult = null; }break;case 2://#line 209 "e.y"{ myOptResult = b.forValue(val_peek(0), null); }break;case 3://#line 212 "e.y"{ b.reserved(val_peek(3),"module"); }break;case 4://#line 215 "e.y"{ myOptResult = (Pattern)val_peek(0); }break;case 5://#line 222 "e.y"{ yyval = b.get__BREAK(); }break;case 6://#line 223 "e.y"{ yyval = b.get__CONTINUE(); }break;case 7://#line 224 "e.y"{ yyval = b.get__RETURN(); }break;case 8://#line 237 "e.y"{ yyval = val_peek(1); }break;case 10://#line 247 "e.y"{ yyval = b.sequence(val_peek(2), val_peek(0)); }break;case 13://#line 256 "e.y"{ yyval = b.sequence(val_peek(2), val_peek(0)); }break;case 15://#line 274 "e.y"{ yyval = b.ejector(val_peek(0)); }break;case 16://#line 275 "e.y"{ yyval = b.ejector(val_peek(2)); }break;case 17://#line 276 "e.y"{ yyval = b.ejector(val_peek(1), val_peek(0)); }break;case 18://#line 277 "e.y"{ b.pocket(val_peek(1),"smalltalk-return"); yyval = b.ejector(b.get__RETURN(),val_peek(0));}break;case 19://#line 279 "e.y"{ yyval = b.doco("",val_peek(0)); }break;case 20://#line 280 "e.y"{ yyval = b.doco(val_peek(1),val_peek(0)); }break;case 22://#line 293 "e.y"{ yyval = b.forward(val_peek(0)); }break;case 23://#line 294 "e.y"{ yyval = b.assign(val_peek(2), val_peek(0)); }break;case 24://#line 295 "e.y"{ yyval = b.update(val_peek(2), val_peek(1), b.list(val_peek(0))); }break;case 25://#line 296 "e.y"{ yyval = b.update(val_peek(2), val_peek(1), val_peek(0)); }break;case 26://#line 298 "e.y"{ yyval = b.define(val_peek(2), val_peek(0)); }break;case 27://#line 299 "e.y"{ yyval = b.define(val_peek(2), val_peek(0)); }break;case 28://#line 300 "e.y"{ yyval = b.define(val_peek(2), val_peek(0)); }break;case 29://#line 303 "e.y"{ b.pocket(val_peek(3),"trinary-define"); yyval = b.define(val_peek(4),val_peek(2),val_peek(0)); }break;case 30://#line 311 "e.y"{ yyval = b.list(val_peek(0)); }break;case 31://#line 312 "e.y"{ yyval = b.list(); }break;case 32://#line 313 "e.y"{ yyval = b.append(b.list(val_peek(3)),val_peek(1)); }break;case 34://#line 322 "e.y"{ yyval = b.condOr(val_peek(2), val_peek(1), val_peek(0)); }break;case 36://#line 331 "e.y"{ yyval = b.condAnd(val_peek(2), val_peek(1), val_peek(0)); }break;case 38://#line 343 "e.y"{ yyval = b.same(val_peek(2), val_peek(1), val_peek(0)); }break;case 39://#line 344 "e.y"{ yyval = b.not(val_peek(1), b.same(val_peek(2), val_peek(1), val_peek(0))); }break;case 42://#line 347 "e.y"{ yyval = b.binop(val_peek(2), val_peek(1),"xor", val_peek(0)); }break;case 43://#line 348 "e.y"{ yyval = b.binop(val_peek(2), val_peek(1),"butNot", val_peek(0)); }break;case 44://#line 350 "e.y"{ yyval = b.matchBind(val_peek(2), val_peek(1), val_peek(0)); }break;case 45://#line 351 "e.y"{ yyval = b.not(val_peek(1), b.matchBind(val_peek(2),val_peek(1),val_peek(0))); }break;case 46://#line 356 "e.y"{ yyval = b.binop(val_peek(2), val_peek(1),"and", val_peek(0)); }break;case 47://#line 357 "e.y"{ yyval = b.binop(val_peek(2), val_peek(1),"and", val_peek(0)); }break;case 48://#line 360 "e.y"{ yyval = b.binop(val_peek(2), val_peek(1),"or", val_peek(0)); }break;case 49://#line 361 "e.y"{ yyval = b.binop(val_peek(2), val_peek(1),"or", val_peek(0)); }break;case 51://#line 373 "e.y"{ yyval = b.lessThan(val_peek(2), val_peek(1), val_peek(0)); }break;case 52://#line 374 "e.y"{ yyval = b.leq(val_peek(2), val_peek(1), val_peek(0)); }break;case 53://#line 375 "e.y"{ yyval = b.asBigAs(val_peek(2), val_peek(1), val_peek(0)); }break;case 54://#line 376 "e.y"{ yyval = b.geq(val_peek(2), val_peek(1), val_peek(0)); }break;case 55://#line 377 "e.y"{ yyval = b.greaterThan(val_peek(2), val_peek(1), val_peek(0)); }break;case 56://#line 381 "e.y"{ b.pocket(val_peek(1),"cast"); yyval = b.cast(val_peek(2), val_peek(1), val_peek(0)); }break;case 58://#line 390 "e.y"{ yyval = b.thru(val_peek(2), val_peek(1), val_peek(0)); }break;case 59://#line 391 "e.y"{ yyval = b.till(val_peek(2), val_peek(1), val_peek(0)); }break;case 61://#line 400 "e.y"{ yyval = b.binop(val_peek(2), val_peek(1),"shiftLeft", val_peek(0)); }break;case 62://#line 401 "e.y"{ yyval = b.binop(val_peek(2), val_peek(1),"shiftRight",val_peek(0)); }break;case 64://#line 410 "e.y"{ yyval = b.binop(val_peek(2), val_peek(1),"add", val_peek(0)); }break;case 65://#line 411 "e.y"{ yyval = b.binop(val_peek(2), val_peek(1),"subtract",val_peek(0)); }break;case 67://#line 422 "e.y"{ yyval = b.binop(val_peek(2), val_peek(1),"multiply", val_peek(0)); }break;case 68://#line 423 "e.y"{ yyval = b.binop(val_peek(2), val_peek(1),"approxDivide", val_peek(0)); }break;case 69://#line 424 "e.y"{ yyval = b.binop(val_peek(2), val_peek(1),"floorDivide", val_peek(0)); }break;case 70://#line 425 "e.y"{ yyval = b.binop(val_peek(2), val_peek(1),"remainder", val_peek(0)); }break;case 71://#line 426 "e.y"{ yyval = b.mod(val_peek(2), val_peek(1), b.list(val_peek(0))); }break;case 73://#line 435 "e.y"{ yyval = b.binop(val_peek(2), val_peek(1),"pow", val_peek(0)); }break;case 75://#line 453 "e.y"{ yyval = b.call(val_peek(0), val_peek(1),"not", b.list()); }break;case 76://#line 454 "e.y"{ yyval = b.call(val_peek(0), val_peek(1),"complement", b.list());}break;case 77://#line 455 "e.y"{ yyval = b.slotExpr(val_peek(1), val_peek(0)); }break;case 78://#line 456 "e.y"{ b.pocket(val_peek(1),"unary-star"); yyval = b.call(val_peek(0), val_peek(1),"getValue", b.list()); }break;case 79://#line 458 "e.y"{ yyval = b.call(val_peek(0), val_peek(1),"negate", b.list()); }break;case 81://#line 467 "e.y"{ yyval = b.callFacet(val_peek(2), val_peek(0)); }break;case 82://#line 468 "e.y"{ yyval = b.sendFacet(val_peek(2), val_peek(0)); }break;case 83://#line 470 "e.y"{ yyval = b.propValue(val_peek(2), val_peek(0)); }break;case 84://#line 471 "e.y"{ yyval = b.propSlot(val_peek(3), val_peek(0)); }break;case 85://#line 472 "e.y"{ yyval = b.doMetaProp(val_peek(2), val_peek(0)); }break;case 86://#line 474 "e.y"{ yyval = b.sendPropValue(val_peek(3), val_peek(0)); }break;case 87://#line 475 "e.y"{ yyval = b.sendPropSlot(val_peek(4), val_peek(0)); }break;case 89://#line 487 "e.y"{ yyval = b.call(val_peek(3), val_peek(2),"run", val_peek(1)); }break;case 90://#line 488 "e.y"{ b.pocket(NO_POSER,"lambda-args"); yyval = b.call(val_peek(0), "run__control", b.list()); }break;case 91://#line 493 "e.y"{ yyval = b.call(val_peek(3), val_peek(1), val_peek(0)); }break;case 92://#line 494 "e.y"{ yyval = b.call(val_peek(3), val_peek(2),"get", val_peek(1)); }break;case 93://#line 495 "e.y"{ yyval = b.send(val_peek(3), val_peek(1), val_peek(0)); }break;case 94://#line 496 "e.y"{ yyval = b.send(val_peek(2), val_peek(1),"run", val_peek(0)); }break;case 95://#line 498 "e.y"{ yyval = b.doMeta(val_peek(1), val_peek(1),"run", val_peek(0)); }break;case 96://#line 499 "e.y"{ yyval = b.doMeta(val_peek(3), val_peek(1), val_peek(0)); }break;case 97://#line 500 "e.y"{ yyval = b.doMeta(val_peek(3), val_peek(2),"get", val_peek(1)); }break;case 98://#line 501 "e.y"{ yyval = b.doMetaSend(val_peek(3), val_peek(1), val_peek(0)); }break;case 99://#line 502 "e.y"{ yyval = b.doMetaSend(val_peek(2), val_peek(1),"run", val_peek(0));}break;case 101://#line 509 "e.y"{ yyval = b.control(val_peek(6), val_peek(2), val_peek(4), val_peek(1), val_peek(0)); }break;case 102://#line 510 "e.y"{ yyval = b.control(val_peek(3), val_peek(2), val_peek(1), val_peek(0)); }break;case 103://#line 511 "e.y"{ yyval = b.control(val_peek(3), val_peek(2), val_peek(1), val_peek(0)); }break;case 104://#line 513 "e.y"{ yyval = b.control(val_peek(5), val_peek(4), val_peek(2), b.list(), val_peek(0)); }break;case 105://#line 521 "e.y"{ yyval = b.literal(val_peek(0)); }break;case 106://#line 522 "e.y"{ yyval = b.literal(val_peek(0)); }break;case 107://#line 523 "e.y"{ yyval = b.literal(val_peek(0)); }break;case 108://#line 524 "e.y"{ yyval = b.literal(val_peek(0)); }break;case 111://#line 533 "e.y"{ yyval = b.uriExpr(val_peek(0)); }break;case 112://#line 534 "e.y"{ yyval = b.quasiExpr(val_peek(1),val_peek(0)); }break;case 114://#line 537 "e.y"{ yyval = b.tuple(val_peek(1)); }break;case 115://#line 538 "e.y"{ yyval = b.map(val_peek(1)); }break;case 116://#line 540 "e.y"{ yyval = b.hide(val_peek(0)); }break;case 117://#line 541 "e.y"{ yyval = b.escape(val_peek(2),val_peek(1),val_peek(0)); }break;case 118://#line 542 "e.y"{ yyval = b.whilex(val_peek(2),val_peek(1),val_peek(0)); }break;case 119://#line 543 "e.y"{ yyval = b.switchx(val_peek(1),val_peek(0)); }break;case 120://#line 544 "e.y"{ yyval = b.tryx(val_peek(2),val_peek(1),val_peek(0)); }break;case 122://#line 547 "e.y"{ yyval = val_peek(0); }break;case 124://#line 550 "e.y"{ b.reserved(val_peek(2),"select"); }break;case 126://#line 558 "e.y"{ yyval = b.doco("",val_peek(0)); }break;case 127://#line 559 "e.y"{ yyval = b.doco(val_peek(1),val_peek(0)); }break;case 128://#line 569 "e.y"{ yyval = ((ObjDecl)val_peek(0)).withOName(val_peek(1)); }break;case 129://#line 571 "e.y"{ yyval = b.oType("",val_peek(6),b.list(), val_peek(5),val_peek(4),val_peek(1)); }break;case 130://#line 573 "e.y"{ b.pocket(NO_POSER,"thunk"); /* doesn't bind __return */ yyval = b.fnDecl(val_peek(1), b.list(), val_peek(0)); }break;case 131://#line 577 "e.y"{ b.pocket(NO_POSER,"anon-lambda"); /* doesn't bind __return */ yyval = b.fnDecl(val_peek(2), val_peek(1), val_peek(0)); }break;case 132://#line 586 "e.y"{ yyval = ((ObjDecl)val_peek(1)).withScript(val_peek(0)); }break;case 133://#line 587 "e.y"{ /* binds __return */ yyval = b.methDecl(val_peek(1), val_peek(0), true); }break;case 134://#line 596 "e.y"{ yyval = noun(val_peek(0)); }break;case 135://#line 597 "e.y"{ yyval = b.quasiLiteralExpr(val_peek(0)); }break;case 136://#line 598 "e.y"{ yyval = b.quasiPatternExpr(val_peek(0)); }break;case 137://#line 602 "e.y"{ yyval = val_peek(1); }break;case 138://#line 603 "e.y"{ yyval = val_peek(0); }break;case 139://#line 604 "e.y"{ yyval = null; }break;case 140://#line 608 "e.y"{ yyval = val_peek(1); }break;case 141://#line 609 "e.y"{ yyval = val_peek(0); }break;case 142://#line 616 "e.y"{ yyval = val_peek(1); }break;case 143://#line 624 "e.y"{ yyval = b.ifx(val_peek(1), val_peek(0)); }break;case 144://#line 625 "e.y"{ yyval = b.ifx(val_peek(3), val_peek(2), val_peek(0)); }break;case 145://#line 626 "e.y"{ yyval = b.ifx(val_peek(3), val_peek(2), val_peek(0)); }break;case 147://#line 631 "e.y"{ b.reserved(val_peek(1),"if-match"); }break;case 148://#line 639 "e.y"{ yyval = b.forx(val_peek(4),val_peek(2),val_peek(1),val_peek(0)); }break;case 149://#line 640 "e.y"{ b.reserved(val_peek(2),"when-in"); }break;case 151://#line 652 "e.y"{ yyval = noun("simple__quasiParser"); }break;case 152://#line 653 "e.y"{ yyval = noun(b.mangle(val_peek(0), "__quasiParser")); }break;case 153://#line 658 "e.y"{ yyval = b.list(val_peek(0)); }break;case 154://#line 659 "e.y"{ yyval = b.with(val_peek(1), val_peek(0)); }break;case 155://#line 663 "e.y"{ yyval = b.list(val_peek(1), val_peek(0)); }break;case 156://#line 664 "e.y"{ yyval = b.with(b.with(val_peek(2), val_peek(1)), val_peek(0)); }break;case 157://#line 668 "e.y"{ yyval = b.dollarNoun(val_peek(0)); }break;case 158://#line 669 "e.y"{ yyval = val_peek(1); }break;case 159://#line 680 "e.y"{ yyval = val_peek(1); }break;case 165://#line 706 "e.y"{ yyval = b.list(val_peek(0)); }break;case 166://#line 707 "e.y"{ yyval = b.with(val_peek(2), val_peek(0)); }break;case 168://#line 711 "e.y"{ yyval = b.list(val_peek(0)); }break;case 169://#line 712 "e.y"{ yyval = b.with(val_peek(2), val_peek(0)); }break;case 170://#line 717 "e.y"{ yyval = b.list(val_peek(0)); }break;case 171://#line 718 "e.y"{ yyval = b.with(val_peek(2), val_peek(0)); }break;case 173://#line 722 "e.y"{ yyval = b.assoc(val_peek(2), val_peek(0)); }break;case 174://#line 723 "e.y"{ b.pocket(val_peek(1),"exporter"); yyval = b.exporter(val_peek(0)); }break;case 175://#line 725 "e.y"{ b.pocket(val_peek(2),"exporter"); yyval = b.exporter(b.slotExpr(val_peek(1),val_peek(0))); }break;case 176://#line 727 "e.y"{ b.pocket(val_peek(2),"exporter"); b.reserved(val_peek(1),"Forward exporter"); }break;case 177://#line 742 "e.y"{ yyval = b.assoc(b.ignore(), val_peek(0)); }break;case 178://#line 743 "e.y"{ yyval = b.assoc(val_peek(2), val_peek(0)); }break;case 180://#line 749 "e.y"{ yyval = b.suchThat(val_peek(2), val_peek(0)); }break;case 181://#line 750 "e.y"{ yyval = b.via(val_peek(1),val_peek(0)); }break;case 182://#line 752 "e.y"{ b.reserved(val_peek(1),"meta pattern"); }break;case 185://#line 758 "e.y"{ yyval = b.quasiPattern(val_peek(1), val_peek(0)); }break;case 186://#line 759 "e.y"{ yyval = b.patternEquals(val_peek(0)); }break;case 187://#line 760 "e.y"{ b.reserved(val_peek(1),"not-same pattern"); }break;case 188://#line 761 "e.y"{ b.reserved(val_peek(1), "comparison pattern"); }break;case 189://#line 764 "e.y"{ b.pocket(val_peek(4),"call-pattern"); yyval = b.callPattern(val_peek(3), val_peek(2),"run", val_peek(1));}break;case 190://#line 766 "e.y"{ b.pocket(val_peek(6),"call-pattern"); yyval = b.callPattern(val_peek(5), val_peek(3), val_peek(1)); }break;case 191://#line 768 "e.y"{ b.pocket(val_peek(4),"call-pattern"); yyval = b.callPattern(val_peek(3), val_peek(2),"get", val_peek(1));}break;case 192://#line 771 "e.y"{ yyval = b.listPattern(val_peek(0)); }break;case 193://#line 772 "e.y"{ yyval = b.mapPattern(val_peek(1),null); }break;case 194://#line 773 "e.y"{ yyval = b.cdrPattern(val_peek(2), val_peek(0)); }break;case 195://#line 774 "e.y"{ yyval = b.mapPattern(val_peek(3), val_peek(0)); }break;case 196://#line 778 "e.y"{ yyval = val_peek(1); }break;case 197://#line 782 "e.y"{ yyval = b.list(val_peek(0)); }break;case 198://#line 783 "e.y"{ yyval = b.with(val_peek(1), val_peek(0)); }break;case 199://#line 787 "e.y"{ yyval = b.list(val_peek(1), val_peek(0)); }break;case 200://#line 788 "e.y"{ yyval = b.with(b.with(val_peek(2), val_peek(1)), val_peek(0)); }break;case 203://#line 798 "e.y"{ yyval = b.atNoun(val_peek(0)); }break;case 204://#line 799 "e.y"{ yyval = val_peek(2); }break;case 205://#line 812 "e.y"{ yyval = b.ignore(); }break;case 206://#line 813 "e.y"{ yyval = b.ignore(val_peek(0)); }break;case 207://#line 814 "e.y"{ yyval = b.ignore(val_peek(0));}break;case 208://#line 818 "e.y"{ yyval = b.finalPattern(val_peek(2),val_peek(0));}break;case 209://#line 819 "e.y"{ b.antiPocket(val_peek(0), "explicit-final-guard"); yyval = b.finalPattern(val_peek(0)); }break;case 213://#line 828 "e.y"{ yyval = b.bindDefiner(val_peek(2),val_peek(0)); }break;case 214://#line 829 "e.y"{ b.antiPocket(val_peek(1), "explicit-final-guard"); yyval = b.bindDefiner(val_peek(0)); }break;case 215://#line 835 "e.y"{ yyval = b.varPattern(val_peek(2),val_peek(0)); }break;case 216://#line 836 "e.y"{ b.antiPocket(val_peek(1), "explicit-var-guard"); yyval = b.varPattern(val_peek(0)); }break;case 217://#line 842 "e.y"{ yyval = b.slotPattern(val_peek(2),val_peek(0)); }break;case 218://#line 843 "e.y"{ b.antiPocket(val_peek(1), "explicit-slot-guard"); yyval = b.slotPattern(val_peek(0)); }break;case 219://#line 854 "e.y"{ yyval = b.finalPattern(val_peek(0)); }break;case 220://#line 855 "e.y"{ yyval = b.ignore(); }break;case 221://#line 856 "e.y"{ yyval = b.bindDefiner(val_peek(0)); }break;case 222://#line 857 "e.y"{ yyval = b.varPattern(val_peek(0)); }break;case 223://#line 858 "e.y"{ b.reserved(val_peek(0), "literal qualified name no longer accepted"); }break;case 225://#line 871 "e.y"{ yyval = val_peek(1); }break;case 228://#line 897 "e.y"{ yyval = val_peek(1); }break;case 229://#line 901 "e.y"{ yyval = b.list(val_peek(0)); }break;case 230://#line 902 "e.y"{ yyval = b.with(val_peek(2), val_peek(0)); }break;case 231://#line 906 "e.y"{ yyval = val_peek(1); }break;case 232://#line 910 "e.y"{ yyval = b.list(val_peek(0)); }break;case 233://#line 911 "e.y"{ yyval = b.with(val_peek(2), val_peek(0)); }break;case 234://#line 915 "e.y"{ yyval = b.assoc(val_peek(2), val_peek(0)); }break;case 235://#line 916 "e.y"{ b.pocket(val_peek(1),"pattern-default"); yyval = b.assoc(val_peek(4), b.assoc(val_peek(0),val_peek(2))); }break;case 236://#line 918 "e.y"{ b.pocket(val_peek(1),"pattern-default"); b.reserved(val_peek(1),"default in map pattern"); }break;case 237://#line 920 "e.y"{ b.pocket(val_peek(1),"importer"); yyval = b.importer(val_peek(0)); }break;case 238://#line 922 "e.y"{ b.pocket(val_peek(1),"pattern-default"); b.pocket(val_peek(3),"importer"); yyval = b.importer(b.assoc(val_peek(0),val_peek(2))); }break;case 239://#line 925 "e.y"{ b.pocket(val_peek(1),"pattern-default"); b.pocket(val_peek(3),"importer"); b.reserved(val_peek(0),"default in map pattern"); }break;case 242://#line 946 "e.y"{ yyval = ""; }break;case 244://#line 954 "e.y"{ yyval = val_peek(0); }break;case 245://#line 955 "e.y"{ yyval = b.bindDefiner(val_peek(0)); }break;case 246://#line 956 "e.y"{ yyval = b.varPattern(val_peek(0)); }break;case 247://#line 963 "e.y"{ yyval = ODECL; }break;case 248://#line 964 "e.y"{ yyval = ODECL.withExtends(b,val_peek(0)); }break;case 249://#line 965 "e.y"{ yyval = ODECL.withAuditors(b,val_peek(0));}break;case 250://#line 966 "e.y"{ yyval = ODECL.withExtends(b,val_peek(1)) .withAuditors(b,val_peek(0));}break;case 251://#line 969 "e.y"{ yyerror("'extends' must come before 'implements'"); }break;case 252://#line 976 "e.y"{ yyval = ODECL; }break;case 253://#line 977 "e.y"{ yyval = ODECL.withExtends(b,val_peek(0)); }break;case 254://#line 978 "e.y"{ yyval = ODECL.withAuditors(b,val_peek(0));}break;case 255://#line 979 "e.y"{ yyval = ODECL.withExtends(b,val_peek(1)) .withAuditors(b,val_peek(0));}break;case 256://#line 982 "e.y"{ yyerror("'extends' must come before 'implements'"); }break;case 257://#line 991 "e.y"{ yyval = b.list(val_peek(0)); }break;case 258://#line 998 "e.y"{ yyval = b.list(val_peek(0)); }break;case 259://#line 999 "e.y"{ yyval = b.with(val_peek(2), val_peek(0)); }break;case 260://#line 1006 "e.y"{ yyval = b.list(val_peek(0)); }break;case 261://#line 1007 "e.y"{ yyval = b.with(val_peek(2), val_peek(0)); }break;case 265://#line 1021 "e.y"{ b.reserved(val_peek(0),"literal concat"); }break;case 266://#line 1022 "e.y"{ b.reserved(val_peek(0),"literal concat"); }break;case 267://#line 1031 "e.y"{ /* binds __return */ yyval = b.to(val_peek(3), val_peek(1), val_peek(0)); }break;case 268://#line 1033 "e.y"{ /* doesn't bind __return */ yyval = b.method(val_peek(3), val_peek(1), val_peek(0)); }break;case 269://#line 1061 "e.y"{ yyval = b.methHead(val_peek(3),"run",val_peek(2),val_peek(0)); }break;case 270://#line 1062 "e.y"{ yyval = b.methHead(val_peek(4), val_peek(2),val_peek(0)); }break;case 271://#line 1071 "e.y"{ yyval = b.methHead(val_peek(3),"run", val_peek(2), val_peek(0));}break;case 272://#line 1073 "e.y"{ b.pocket(val_peek(5),"one-method-object"); yyval = b.methHead(val_peek(4), val_peek(2), val_peek(0)); }break;case 273://#line 1076 "e.y"{ b.pocket(val_peek(5),"one-method-object"); yyval = b.methHead(val_peek(4), val_peek(2), val_peek(0)); }break;case 274://#line 1088 "e.y"{ yyval = b.matcher(val_peek(1), val_peek(0)); }break;case 276://#line 1096 "e.y"{ yyval = b.uriExpr(val_peek(0)); }break;case 278://#line 1098 "e.y"{ yyval = b.call(val_peek(3), val_peek(2),"get", val_peek(1)); }break;case 279://#line 1099 "e.y"{ yyval = b.propValue(val_peek(2), val_peek(0)); }break;case 285://#line 1111 "e.y"{ yyval = val_peek(0); }break;case 286://#line 1112 "e.y"{ yyval = b.defaultOptResultGuard(yylval); }break;case 287://#line 1113 "e.y"{ b.reserved(val_peek(1),"throws"); }break;case 288://#line 1114 "e.y"{ b.reserved(val_peek(1),"throws"); }break;case 289://#line 1117 "e.y"{ yyval = b.list(val_peek(0)); }break;case 290://#line 1118 "e.y"{ yyval = b.with(val_peek(2),val_peek(0)); }break;case 291://#line 1126 "e.y"{ yyval = b.when(val_peek(4), val_peek(1), val_peek(0)); }break;case 292://#line 1127 "e.y"{ b.pocket(val_peek(2),"when-sequence"); yyval = b.whenSeq(val_peek(4), val_peek(1), val_peek(0)); }break;case 293://#line 1136 "e.y"{ /* binds __return */ b.pocket(val_peek(5),"hard-when"); yyval = b.list(ODECL.withOName(val_peek(5)), val_peek(3), val_peek(1), val_peek(0), Boolean.TRUE); }break;case 294://#line 1142 "e.y"{ /* XXX should this bind __return ?? */ /* Currently, it does. */ b.pocket(val_peek(2),"easy-when"); b.pocket(val_peek(2),"hard-when"); yyval = b.list(ODECL.withOName(val_peek(2)), null, val_peek(1), val_peek(0), Boolean.TRUE); }break;case 295://#line 1150 "e.y"{ /* XXX should this bind __return ?? */ /* Currently, it does not. */ b.pocket(val_peek(1),"easy-when"); yyval = b.list(ODECL.withOName(b.ignore()), null, val_peek(1), val_peek(0), Boolean.FALSE); }break;case 296://#line 1159 "e.y"{ b.pocket(val_peek(1),"hard-when"); yyval = val_peek(0); }break;case 297://#line 1161 "e.y"{ yyval = b.defaultOptWhenGuard(yylval); }break;case 298://#line 1162 "e.y"{ b.reserved(val_peek(1),"throws"); }break;case 299://#line 1163 "e.y"{ b.reserved(val_peek(1),"throws"); }break;case 300://#line 1175 "e.y"{ yyval = b.list(val_peek(2), val_peek(1), val_peek(0)); }break;case 301://#line 1176 "e.y"{ b.pocket(val_peek(0),"easy-when"); yyval = b.list(val_peek(0), null, null); }break;case 306://#line 1197 "e.y"{ yyval = b.list(); }break;case 307://#line 1201 "e.y"{ yyval = b.list(); }break;case 309://#line 1210 "e.y"{ b.pocket(val_peek(0),"verb-string"); yyval = val_peek(0); }break;case 310://#line 1218 "e.y"{ b.pocket(val_peek(0),"verb-curry"); yyval = val_peek(0); }break;case 311://#line 1220 "e.y"{ b.pocket(val_peek(0),"verb-curry"); b.pocket(val_peek(0),"verb-string"); yyval = val_peek(0); }break;case 312://#line 1232 "e.y"{ b.pocket(val_peek(0),"dot-props"); yyval = val_peek(0); }break;case 313://#line 1234 "e.y"{ b.pocket(val_peek(0),"dot-props"); yyval = val_peek(0); }break;case 314://#line 1242 "e.y"{ yyval = b.varName(val_peek(0)); }break;case 315://#line 1243 "e.y"{ b.pocket(val_peek(1),"noun-string"); yyval = b.varName(val_peek(0)); }break;case 316://#line 1245 "e.y"{ b.pocket(val_peek(1),"noun-string"); yyval = b.varName(val_peek(0)); }break;case 318://#line 1254 "e.y"{ b.reserved(val_peek(0),"keyword \"" + ((Astro)val_peek(0)).getTag().getTagName() + "\""); }break;case 319://#line 1270 "e.y"{ yyval = b.ident(val_peek(0), "add"); }break;case 320://#line 1271 "e.y"{ yyval = b.ident(val_peek(0), "and"); }break;case 321://#line 1272 "e.y"{ yyval = b.ident(val_peek(0), "approxDivide"); }break;case 322://#line 1273 "e.y"{ yyval = b.ident(val_peek(0), "floorDivide"); }break;case 323://#line 1274 "e.y"{ yyval = b.ident(val_peek(0), "shiftLeft"); }break;case 324://#line 1275 "e.y"{ yyval = b.ident(val_peek(0), "shiftRight"); }break;case 325://#line 1276 "e.y"{ yyval = b.ident(val_peek(0), "remainder"); }break;case 326://#line 1277 "e.y"{ yyval = b.ident(val_peek(0), "mod"); }break;case 327://#line 1278 "e.y"{ yyval = b.ident(val_peek(0), "multiply"); }break;case 328://#line 1279 "e.y"{ yyval = b.ident(val_peek(0), "or"); }break;case 329://#line 1280 "e.y"{ yyval = b.ident(val_peek(0), "pow"); }break;case 330://#line 1281 "e.y"{ yyval = b.ident(val_peek(0), "subtract"); }break;case 331://#line 1282 "e.y"{ yyval = b.ident(val_peek(0), "xor"); }break;case 332://#line 1293 "e.y"{ yyval = b.ident(val_peek(0), "add"); }break;case 333://#line 1294 "e.y"{ yyval = b.ident(val_peek(0), "and"); }break;case 334://#line 1295 "e.y"{ yyval = b.ident(val_peek(0), "approxDivide"); }break;case 335://#line 1296 "e.y"{ yyval = b.ident(val_peek(0), "floorDivide"); }break;case 336://#line 1297 "e.y"{ yyval = b.ident(val_peek(0), "shiftLeft"); }break;case 337://#line 1298 "e.y"{ yyval = b.ident(val_peek(0), "shiftRight"); }break;case 338://#line 1299 "e.y"{ yyval = b.ident(val_peek(0), "remainder"); }break;case 339://#line 1300 "e.y"{ yyval = b.ident(val_peek(0), "mod"); }break;case 340://#line 1301 "e.y"{ yyval = b.ident(val_peek(0), "multiply"); }break;case 341://#line 1302 "e.y"{ yyval = b.ident(val_peek(0), "or"); }break;case 342://#line 1303 "e.y"{ yyval = b.ident(val_peek(0), "pow"); }break;case 343://#line 1304 "e.y"{ yyval = b.ident(val_peek(0), "subtract"); }break;case 344://#line 1305 "e.y"{ yyval = b.ident(val_peek(0), "xor"); }break;case 345://#line 1314 "e.y"{ yyval = b.getNULL(); }break;case 346://#line 1315 "e.y"{ yyval = val_peek(1); }break;case 347://#line 1323 "e.y"{ b.pocket(val_peek(2),"accumulator"); yyval = b.accumulate(val_peek(1),val_peek(0)); }break;case 348://#line 1328 "e.y"{ yyval = b.accumFor(val_peek(3),val_peek(1),val_peek(0)); }break;case 349://#line 1329 "e.y"{ yyval = b.accumIf(val_peek(1),val_peek(0)); }break;case 350://#line 1330 "e.y"{ yyval = b.accumWhile(val_peek(1),val_peek(0)); }break;case 351://#line 1334 "e.y"{ yyval = b.accumBody(val_peek(3), b.list(val_peek(2))); }break;case 352://#line 1336 "e.y"{ yyval = b.accumBody(val_peek(3),val_peek(2)); }break;case 353://#line 1337 "e.y"{ yyval = val_peek(2); }break;case 354://#line 1342 "e.y"{ yyval = val_peek(1); }break;case 355://#line 1346 "e.y"{ yyval = b.vTable(val_peek(2), val_peek(1)); }break;case 356://#line 1347 "e.y"{ b.pocket(NO_POSER, "plumbing"); yyval = b.vTable(null, b.list(val_peek(0))); }break;case 358://#line 1362 "e.y"{ yyval = b.with(val_peek(2), val_peek(1)); }break;case 361://#line 1372 "e.y"{ yyval = b.with(val_peek(2), val_peek(1)); }break;case 364://#line 1389 "e.y"{ yyval = b.with(val_peek(1), val_peek(0)); }break;case 365://#line 1393 "e.y"{ yyval = null; }break;case 366://#line 1394 "e.y"{ b.pocket(NO_POSER, "escape-handler"); yyval = val_peek(0); }break;case 367://#line 1400 "e.y"{ yyval = b.matcher(val_peek(1), val_peek(0)); }break;case 368://#line 1407 "e.y"{ yyval = null; }break;case 369://#line 1408 "e.y"{ yyval = val_peek(0); }break;case 370://#line 1418 "e.y"{ yyval = b.oType("", val_peek(1), b.list(), b.list(val_peek(0))); }break;case 371://#line 1427 "e.y"{ yyval = null; }break;case 372://#line 1428 "e.y"{ yyval = val_peek(0); }break;case 375://#line 1437 "e.y"{ yyval = b.list(val_peek(0)); }break;case 376://#line 1438 "e.y"{ yyval = b.with(val_peek(2),val_peek(0)); }break;case 378://#line 1446 "e.y"{ b.reserved(NO_POSER,"causality"); }break;case 379://#line 1451 "e.y"{ yyval = b.mType(val_peek(6), val_peek(4), val_peek(2), val_peek(0)); }break;case 380://#line 1453 "e.y"{ yyval = b.mType(val_peek(5), "run", val_peek(2), val_peek(0));}break;case 382://#line 1461 "e.y"{ b.reserved(NO_POSER,"causality"); }break;case 383://#line 1465 "e.y"{ yyval = b.mType("", "run", val_peek(2), val_peek(0)); }break;case 384://#line 1466 "e.y"{ b.pocket(val_peek(5),"one-method-object"); yyval = b.mType("", val_peek(4), val_peek(2), val_peek(0)); }break;case 385://#line 1468 "e.y"{b.pocket(val_peek(5),"one-method-object"); yyval = b.mType("", val_peek(4), val_peek(2), val_peek(0)); }break;case 386://#line 1473 "e.y"{ yyval = val_peek(0); }break;case 387://#line 1474 "e.y"{ yyval = val_peek(1); }break;case 388://#line 1479 "e.y"{ yyval = b.list(val_peek(0)); }break;case 389://#line 1480 "e.y"{ yyval = b.with(val_peek(2),val_peek(0)); }break;case 390://#line 1487 "e.y"{ yyval = b.pType(val_peek(1),val_peek(0)); }break;case 391://#line 1488 "e.y"{ yyval = b.pType(null,val_peek(0)); }break;case 392://#line 1489 "e.y"{ yyval = b.pType(null,val_peek(0)); }break;case 393://#line 1497 "e.y"{ yyval = null; }break;case 394://#line 1498 "e.y"{ yyval = val_peek(0); }break;case 408://#line 1514 "e.y"{ yyval = "->"; }break;//#line 7029 "EParser.java"//########## END OF USER-SUPPLIED ACTIONS ########## }//switch //#### Now let's reduce... #### if (yydebug) debug("reduce"); state_drop(yym); //we just reduced yylen states yystate = state_peek(0); //get new state val_drop(yym); //corresponding value drop yym = yylhs[yyn]; //select next TERMINAL(on lhs) if (yystate == 0 && yym == 0)//done? 'rest' state and at first TERMINAL { debug("After reduction, shifting from state 0 to state "+YYFINAL+""); yystate = YYFINAL; //explicitly say we're done state_push(YYFINAL); //and save it val_push(yyval); //also save the semantic value of parsing if (yychar < 0) //we want another character? { yychar = yylex(); //get next character if (yychar<0) yychar=0; //clean, if necessary if (yydebug) yylexdebug(yystate,yychar); } if (yychar == 0) //Good exit (if lex returns 0 ;-) break; //quit the loop--all DONE }//if yystate else //else not done yet { //get next state and push, for next yydefred[] yyn = yygindex[yym]; //find out where to go if ((yyn != 0) && (yyn += yystate) >= 0 && yyn <= YYTABLESIZE && yycheck[yyn] == yystate) yystate = yytable[yyn]; //get new state else yystate = yydgoto[yym]; //else go to new defred debug("after reduction, shifting from state "+state_peek(0)+" to state "+yystate+""); state_push(yystate); //going again, so push state & val... val_push(yyval); //for next action } }//main loop return 0;//yyaccept!!}
48789 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48789/46d15697ca3fe9d33db4396a150ace4a80e72b68/EParser.java/clean/src/jsrc/org/erights/e/elang/syntax/EParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 509, 677, 879, 24378, 1435, 288, 474, 677, 878, 31, 4202, 368, 4285, 1024, 7757, 358, 741, 474, 677, 2942, 31, 4202, 368, 474, 26797, 340, 31, 282, 368, 2972, 5811, 919, 628, 919, 1014, 780,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 509, 677, 879, 24378, 1435, 288, 474, 677, 878, 31, 4202, 368, 4285, 1024, 7757, 358, 741, 474, 677, 2942, 31, 4202, 368, 474, 26797, 340, 31, 282, 368, 2972, 5811, 919, 628, 919, 1014, 780,...
_t = __t342;
_t = __t356;
public final Expression constructor(AST _t, PathExpr path ) throws RecognitionException, PermissionDeniedException,EXistException,XPathException { Expression step; AST constructor_AST_in = (AST)_t; AST e = null; AST attrName = null; AST attrVal = null; AST pcdata = null; AST cdata = null; AST p = null; step= null; PathExpr elementContent= null; if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ELEMENT: { AST __t330 = _t; e = _t==ASTNULL ? null :(AST)_t; match(_t,ELEMENT); _t = _t.getFirstChild(); ElementConstructor c= new ElementConstructor(context, e.getText()); path.add(c); step= c; { _loop336: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==ATTRIBUTE)) { AST __t332 = _t; attrName = _t==ASTNULL ? null :(AST)_t; match(_t,ATTRIBUTE); _t = _t.getFirstChild(); AttributeConstructor attrib= new AttributeConstructor(context, attrName.getText()); c.addAttribute(attrib); { int _cnt335=0; _loop335: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ATTRIBUTE_CONTENT: { attrVal = (AST)_t; match(_t,ATTRIBUTE_CONTENT); _t = _t.getNextSibling(); attrib.addValue(attrVal.getText()); break; } case LCURLY: { AST __t334 = _t; AST tmp69_AST_in = (AST)_t; match(_t,LCURLY); _t = _t.getFirstChild(); PathExpr enclosed= new PathExpr(context); expr(_t,enclosed); _t = _retTree; attrib.addEnclosedExpr(enclosed); _t = __t334; _t = _t.getNextSibling(); break; } default: { if ( _cnt335>=1 ) { break _loop335; } else {throw new NoViableAltException(_t);} } } _cnt335++; } while (true); } _t = __t332; _t = _t.getNextSibling(); } else { break _loop336; } } while (true); } { _loop338: do { if (_t==null) _t=ASTNULL; if ((_tokenSet_1.member(_t.getType()))) { if (elementContent == null) { elementContent= new PathExpr(context); c.setContent(elementContent); } step=constructor(_t,elementContent); _t = _retTree; } else { break _loop338; } } while (true); } _t = __t330; _t = _t.getNextSibling(); break; } case TEXT: { AST __t339 = _t; pcdata = _t==ASTNULL ? null :(AST)_t; match(_t,TEXT); _t = _t.getFirstChild(); TextConstructor text= new TextConstructor(context, pcdata.getText()); path.add(text); step= text; _t = __t339; _t = _t.getNextSibling(); break; } case XML_COMMENT: { AST __t340 = _t; cdata = _t==ASTNULL ? null :(AST)_t; match(_t,XML_COMMENT); _t = _t.getFirstChild(); CommentConstructor comment= new CommentConstructor(context, cdata.getText()); path.add(comment); step= comment; _t = __t340; _t = _t.getNextSibling(); break; } case XML_PI: { AST __t341 = _t; p = _t==ASTNULL ? null :(AST)_t; match(_t,XML_PI); _t = _t.getFirstChild(); PIConstructor pi= new PIConstructor(context, p.getText()); path.add(pi); step= pi; _t = __t341; _t = _t.getNextSibling(); break; } case LCURLY: { AST __t342 = _t; AST tmp70_AST_in = (AST)_t; match(_t,LCURLY); _t = _t.getFirstChild(); EnclosedExpr subexpr= new EnclosedExpr(context); expr(_t,subexpr); _t = _retTree; path.addPath(subexpr); step= subexpr; _t = __t342; _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } _retTree = _t; return step; }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/ca3671ce7c752480b17278b434be7f75e3ec7d57/XPathTreeParser2.java/clean/src/org/exist/parser/XPathTreeParser2.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 5371, 225, 3885, 12, 9053, 389, 88, 16, 202, 202, 743, 4742, 589, 202, 13, 1216, 9539, 16, 8509, 15877, 16, 2294, 376, 503, 16, 14124, 503, 288, 202, 202, 2300, 2235, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 5371, 225, 3885, 12, 9053, 389, 88, 16, 202, 202, 743, 4742, 589, 202, 13, 1216, 9539, 16, 8509, 15877, 16, 2294, 376, 503, 16, 14124, 503, 288, 202, 202, 2300, 2235, 3...
UMOMessage returnMessage = routeMessage(message, connector.isSynchronous(), os);
UMOMessage returnMessage = routeMessage(message, endpoint.isSynchronous(), os);
public void run() { try { int counter = 0; do { //useful if keep alive is implemented if (isServerSide() && ++counter > 500) { counter = 0; Thread.yield(); } if (disposing.get() || socket.isClosed()) { logger.debug("Peer closed connection"); break; } dataIn = new DataInputStream(new BufferedInputStream(socket.getInputStream())); dataOut = new DataOutputStream(new BufferedOutputStream(socket.getOutputStream())); UMOMessageAdapter adapter = null; Properties headers = new Properties(); byte[] payload = parseRequest(dataIn, headers); if (payload == null) break; adapter = connector.getMessageAdapter(new Object[]{payload, headers}); boolean http11 = ((String) adapter.getProperty(HttpConnector.HTTP_VERSION_PROPERTY)) .equalsIgnoreCase(HttpConstants.HTTP11); if (!http11) { keepAlive = adapter.getProperty(HttpConstants.HEADER_KEEP_ALIVE) != null; } else { String connection = (String) adapter.getProperty(HttpConstants.HEADER_CONNECTION); if (connection != null && connection.equalsIgnoreCase("close")) { keepAlive = false; } else { keepAlive = true; } } if (keepAlive && !keepAliveRegistered) { keepAliveRegistered = true; if (keepAliveMonitor != null) { keepAliveMonitor.addExpirable(((HttpConnector)connector).getKeepAliveTimeout(), this); } else { logger.info("Request has Keep alive set but the HttpConnector has keep alive disables"); keepAlive = false; } } if (adapter != null) { UMOMessage message = new MuleMessage(adapter); if (logger.isDebugEnabled()) { logger.debug((String) message.getProperty(HttpConnector.HTTP_REQUEST_PROPERTY)); } OutputStream os = new ResponseOutputStream(dataOut, socket); UMOMessage returnMessage = routeMessage(message, connector.isSynchronous(), os); if (returnMessage == null) { returnMessage = new MuleMessage("", null); } RequestContext.rewriteEvent(returnMessage); String responseText = (String) getResponseTransformer().transform(returnMessage.getPayload()); dataOut.write(responseText.getBytes()); dataOut.flush(); if (keepAliveMonitor != null) { keepAliveMonitor.resetExpirable(this); } } } while (!socket.isClosed() && keepAlive); } catch (Exception e) { keepAlive = false; handleException("Failed to process tcp Request on: " + (socket != null ? socket.getInetAddress().toString() : "null"), e); } finally { if(keepAliveMonitor!=null) { keepAliveMonitor.removeExpirable(this); } dispose(); } }
2370 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2370/e7ce83a2b2d33f3fef75341e6dea393883e26157/HttpMessageReceiver.java/buggy/providers/http/src/java/org/mule/providers/http/HttpMessageReceiver.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1086, 1435, 3639, 288, 5411, 775, 5411, 288, 7734, 509, 3895, 273, 374, 31, 7734, 741, 7734, 288, 10792, 368, 1202, 2706, 309, 3455, 13714, 353, 8249, 10792, 309, 261, 291, 208...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1086, 1435, 3639, 288, 5411, 775, 5411, 288, 7734, 509, 3895, 273, 374, 31, 7734, 741, 7734, 288, 10792, 368, 1202, 2706, 309, 3455, 13714, 353, 8249, 10792, 309, 261, 291, 208...
|| DesignChoiceConstants.MAP_OPERATOR_LIKE .equals( operatorValue ) )
|| DesignChoiceConstants.MAP_OPERATOR_LIKE.equals( operatorValue ) )
public static int determineValueVisible( String operatorValue ) { if ( DesignChoiceConstants.MAP_OPERATOR_ANY.equals( operatorValue ) || DesignChoiceConstants.MAP_OPERATOR_FALSE .equals( operatorValue ) || DesignChoiceConstants.MAP_OPERATOR_TRUE .equals( operatorValue ) || DesignChoiceConstants.MAP_OPERATOR_NULL .equals( operatorValue ) || DesignChoiceConstants.MAP_OPERATOR_NOT_NULL .equals( operatorValue ) ) { return 0; } else if ( DesignChoiceConstants.MAP_OPERATOR_LT.equals( operatorValue ) || DesignChoiceConstants.MAP_OPERATOR_LE.equals( operatorValue ) || DesignChoiceConstants.MAP_OPERATOR_EQ.equals( operatorValue ) || DesignChoiceConstants.MAP_OPERATOR_NE.equals( operatorValue ) || DesignChoiceConstants.MAP_OPERATOR_GE.equals( operatorValue ) || DesignChoiceConstants.MAP_OPERATOR_GT.equals( operatorValue ) || DesignChoiceConstants.MAP_OPERATOR_LIKE .equals( operatorValue ) ) { return 1; } else if ( DesignChoiceConstants.MAP_OPERATOR_BETWEEN .equals( operatorValue ) || DesignChoiceConstants.MAP_OPERATOR_NOT_BETWEEN .equals( operatorValue ) ) { return 2; } return 1; }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/1cbdabafb0e6f5e8a50eeb05f5cc3d2a2fff1551/HighlightRuleBuilder.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/HighlightRuleBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 509, 4199, 620, 6207, 12, 514, 3726, 620, 262, 202, 95, 202, 202, 430, 261, 29703, 10538, 2918, 18, 8352, 67, 26110, 67, 15409, 18, 14963, 12, 3726, 620, 262, 9506, 202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 509, 4199, 620, 6207, 12, 514, 3726, 620, 262, 202, 95, 202, 202, 430, 261, 29703, 10538, 2918, 18, 8352, 67, 26110, 67, 15409, 18, 14963, 12, 3726, 620, 262, 9506, 202, ...
final Tree t = new Tree(r);
final Tree t = new Tree(db);
public void test001_createEmpty() throws IOException { final Tree t = new Tree(r); assertTrue("isLoaded", t.isLoaded()); assertTrue("isModified", t.isModified()); assertTrue("no parent", t.getParent() == null); assertTrue("isRoot", t.isRoot()); assertTrue("no name", t.getName() == null); assertTrue("no nameUTF8", t.getNameUTF8() == null); assertTrue("has iterator", t.entryIterator() != null); assertFalse("iterator is empty", t.entryIterator().hasNext()); assertEquals("full name is empty", "", t.getFullName()); assertTrue("no id", t.getId() == null); assertTrue("tree is self", t.getTree() == t); assertTrue("database is r", t.getDatabase() == r); assertTrue("no foo child", t.findMember("foo") == null); }
45532 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45532/a3aa28f96d8948af66bd61819772328d15c0c01c/T0002_Tree.java/buggy/org.spearce.jgit/tst/org/spearce/jgit/lib_tst/T0002_Tree.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 11664, 67, 2640, 1921, 1435, 1216, 1860, 565, 288, 3639, 727, 4902, 268, 273, 394, 4902, 12, 1966, 1769, 3639, 1815, 5510, 2932, 291, 8835, 3113, 268, 18, 291, 8835, 1066...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11664, 67, 2640, 1921, 1435, 1216, 1860, 565, 288, 3639, 727, 4902, 268, 273, 394, 4902, 12, 1966, 1769, 3639, 1815, 5510, 2932, 291, 8835, 3113, 268, 18, 291, 8835, 1066...
if (count > 0) {
if (count != 0) {
private static Object jsFunction_splice(Context cx, Scriptable scope, Scriptable thisObj, Object[] args) { /* create an empty Array to return. */ scope = getTopLevelScope(scope); Object result = ScriptRuntime.newObject(cx, scope, "Array", null); int argc = args.length; if (argc == 0) return result; double length = getLengthProperty(thisObj); /* Convert the first argument into a starting index. */ double begin = ScriptRuntime.toInteger(args[0]); double end; double delta; double count; if (begin < 0) { begin += length; if (begin < 0) begin = 0; } else if (begin > length) { begin = length; } argc--; /* Convert the second argument from a count into a fencepost index. */ delta = length - begin; if (args.length == 1) { count = delta; end = length; } else { count = ScriptRuntime.toInteger(args[1]); if (count < 0) count = 0; else if (count > delta) count = delta; end = begin + count; argc--; } long lbegin = (long)begin; long lend = (long)end; /* If there are elements to remove, put them into the return value. */ if (count > 0) { if (count == 1 && (cx.getLanguageVersion() == Context.VERSION_1_2)) { /* * JS lacks "list context", whereby in Perl one turns the * single scalar that's spliced out into an array just by * assigning it to @single instead of $single, or by using it * as Perl push's first argument, for instance. * * JS1.2 emulated Perl too closely and returned a non-Array for * the single-splice-out case, requiring callers to test and * wrap in [] if necessary. So JS1.3, default, and other * versions all return an array of length 1 for uniformity. */ result = getElem(thisObj, lbegin); } else { for (long last = lbegin; last < lend; last++) { Scriptable resultArray = (Scriptable)result; Object temp = getElem(thisObj, last); setElem(resultArray, last - lbegin, temp); } } } else if (count == 0 && cx.getLanguageVersion() == Context.VERSION_1_2) { /* Emulate C JS1.2; if no elements are removed, return undefined. */ result = Context.getUndefinedValue(); } /* Find the direction (up or down) to copy and make way for argv. */ delta = argc - count; if (delta > 0) { for (long last = (long)length - 1; last >= lend; last--) { Object temp = getElem(thisObj, last); setElem(thisObj, last + (long)delta, temp); } } else if (delta < 0) { for (long last = lend; last < length; last++) { Object temp = getElem(thisObj, last); setElem(thisObj, last + (long)delta, temp); } } /* Copy from argv into the hole to complete the splice. */ int argoffset = args.length - argc; for (int i = 0; i < argc; i++) { setElem(thisObj, lbegin + i, args[i + argoffset]); } /* Update length in case we deleted elements from the end. */ ScriptRuntime.setProp(thisObj, "length", new Double(length + delta), thisObj); return result; }
19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/9a4a059b275cc2eb1fb0e0946f333dc746b26cc2/NativeArray.java/buggy/src/org/mozilla/javascript/NativeArray.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 1033, 3828, 2083, 67, 19535, 12, 1042, 9494, 16, 22780, 2146, 16, 4766, 5411, 22780, 15261, 16, 1033, 8526, 833, 13, 565, 288, 3639, 1748, 752, 392, 1008, 1510, 358, 327, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 1033, 3828, 2083, 67, 19535, 12, 1042, 9494, 16, 22780, 2146, 16, 4766, 5411, 22780, 15261, 16, 1033, 8526, 833, 13, 565, 288, 3639, 1748, 752, 392, 1008, 1510, 358, 327, 18, ...
throw new MessageInvalidException(ProtocolErrorMessage.ERROR_PARSING_NUMBER, "Error parsing Verbosity field: "+e.getMessage(), identifier);
throw new MessageInvalidException(ProtocolErrorMessage.ERROR_PARSING_NUMBER, "Error parsing Verbosity field: "+e.getMessage(), identifier, global);
public ClientPutMessage(SimpleFieldSet fs) throws MessageInvalidException { String fnam = null; identifier = fs.get("Identifier"); if(identifier == null) throw new MessageInvalidException(ProtocolErrorMessage.MISSING_FIELD, "No Identifier", null); try { String u = fs.get("URI"); if(u == null) throw new MessageInvalidException(ProtocolErrorMessage.MISSING_FIELD, "No URI", identifier); FreenetURI uu = new FreenetURI(fs.get("URI")); String[] metas = uu.getAllMetaStrings(); if(metas != null && metas.length == 1) { fnam = metas[0]; uu = uu.setMetaString(null); } // if >1, will fail later uri = uu; } catch (MalformedURLException e) { throw new MessageInvalidException(ProtocolErrorMessage.URI_PARSE_ERROR, e.getMessage(), identifier); } global = Fields.stringToBool(fs.get("Global"), false); String verbosityString = fs.get("Verbosity"); if(verbosityString == null) verbosity = 0; else { try { verbosity = Integer.parseInt(verbosityString, 10); } catch (NumberFormatException e) { throw new MessageInvalidException(ProtocolErrorMessage.ERROR_PARSING_NUMBER, "Error parsing Verbosity field: "+e.getMessage(), identifier); } } contentType = fs.get("Metadata.ContentType"); String maxRetriesString = fs.get("MaxRetries"); if(maxRetriesString == null) // default to 0 maxRetries = 0; else { try { maxRetries = Integer.parseInt(maxRetriesString, 10); } catch (NumberFormatException e) { throw new MessageInvalidException(ProtocolErrorMessage.ERROR_PARSING_NUMBER, "Error parsing MaxSize field: "+e.getMessage(), identifier); } } getCHKOnly = Fields.stringToBool(fs.get("GetCHKOnly"), false); String priorityString = fs.get("PriorityClass"); if(priorityString == null) { // defaults to the one just below FProxy priorityClass = RequestStarter.IMMEDIATE_SPLITFILE_PRIORITY_CLASS; } else { try { priorityClass = Short.parseShort(priorityString, 10); if((priorityClass < RequestStarter.MAXIMUM_PRIORITY_CLASS) || (priorityClass > RequestStarter.MINIMUM_PRIORITY_CLASS)) throw new MessageInvalidException(ProtocolErrorMessage.INVALID_FIELD, "Valid priorities are from "+RequestStarter.MAXIMUM_PRIORITY_CLASS+" to "+RequestStarter.MINIMUM_PRIORITY_CLASS, identifier); } catch (NumberFormatException e) { throw new MessageInvalidException(ProtocolErrorMessage.ERROR_PARSING_NUMBER, "Error parsing PriorityClass field: "+e.getMessage(), identifier); } } String uploadFrom = fs.get("UploadFrom"); if((uploadFrom == null) || uploadFrom.equalsIgnoreCase("direct")) { uploadFromType = UPLOAD_FROM_DIRECT; String dataLengthString = fs.get("DataLength"); if(dataLengthString == null) throw new MessageInvalidException(ProtocolErrorMessage.MISSING_FIELD, "Need DataLength on a ClientPut", identifier); try { dataLength = Long.parseLong(dataLengthString, 10); } catch (NumberFormatException e) { throw new MessageInvalidException(ProtocolErrorMessage.ERROR_PARSING_NUMBER, "Error parsing DataLength field: "+e.getMessage(), identifier); } this.origFilename = null; redirectTarget = null; } else if(uploadFrom.equalsIgnoreCase("disk")) { uploadFromType = UPLOAD_FROM_DISK; String filename = fs.get("Filename"); if(filename == null) throw new MessageInvalidException(ProtocolErrorMessage.MISSING_FIELD, "Missing field Filename", identifier); File f = new File(filename); if(!(f.exists() && f.isFile() && f.canRead())) throw new MessageInvalidException(ProtocolErrorMessage.FILE_NOT_FOUND, null, identifier); dataLength = f.length(); FileBucket fileBucket = new FileBucket(f, true, false, false, false); this.bucket = fileBucket; this.origFilename = f; redirectTarget = null; if(fnam == null) fnam = origFilename.getName(); } else if(uploadFrom.equalsIgnoreCase("redirect")) { uploadFromType = UPLOAD_FROM_REDIRECT; String target = fs.get("TargetURI"); if(target == null) throw new MessageInvalidException(ProtocolErrorMessage.MISSING_FIELD, "TargetURI missing but UploadFrom=redirect", identifier); try { redirectTarget = new FreenetURI(target); } catch (MalformedURLException e) { throw new MessageInvalidException(ProtocolErrorMessage.INVALID_FIELD, "Invalid TargetURI: "+e, identifier); } dataLength = 0; origFilename = null; bucket = null; } else throw new MessageInvalidException(ProtocolErrorMessage.INVALID_FIELD, "UploadFrom invalid or unrecognized: "+uploadFrom, identifier); dontCompress = Fields.stringToBool(fs.get("DontCompress"), false); String persistenceString = fs.get("Persistence"); if((persistenceString == null) || persistenceString.equalsIgnoreCase("connection")) { // Default: persists until connection loss. persistenceType = ClientRequest.PERSIST_CONNECTION; } else if(persistenceString.equalsIgnoreCase("reboot")) { // Reports to client by name; persists over connection loss. // Not saved to disk, so dies on reboot. persistenceType = ClientRequest.PERSIST_REBOOT; } else if(persistenceString.equalsIgnoreCase("forever")) { // Same as reboot but saved to disk, persists forever. persistenceType = ClientRequest.PERSIST_FOREVER; } else { throw new MessageInvalidException(ProtocolErrorMessage.ERROR_PARSING_NUMBER, "Error parsing Persistence field: "+persistenceString, identifier); } clientToken = fs.get("ClientToken"); String f = fs.get("TargetFilename"); if(f != null) fnam = f; if(fnam != null && fnam.indexOf('/') > -1) { throw new MessageInvalidException(ProtocolErrorMessage.INVALID_FIELD, "TargetFilename must not contain slashes", identifier); } if(fnam != null && fnam.length() == 0) { fnam = null; // Deliberate override to tell us not to create one. } if(uri.getKeyType().equals("CHK")) targetFilename = fnam; else targetFilename = null; earlyEncode = Fields.stringToBool(fs.get("EarlyEncode"), false); }
50287 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50287/bbb3c23ec38ea1c7abb48040a17f5fc7932248bc/ClientPutMessage.java/buggy/src/freenet/node/fcp/ClientPutMessage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2445, 6426, 1079, 12, 5784, 974, 694, 2662, 13, 1216, 2350, 1941, 503, 288, 202, 202, 780, 2295, 301, 273, 446, 31, 202, 202, 5644, 273, 2662, 18, 588, 2932, 3004, 8863, 202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2445, 6426, 1079, 12, 5784, 974, 694, 2662, 13, 1216, 2350, 1941, 503, 288, 202, 202, 780, 2295, 301, 273, 446, 31, 202, 202, 5644, 273, 2662, 18, 588, 2932, 3004, 8863, 202, ...
if (s.charAt(0) == cc && s.charAt(s.length() - 1) == cc) {
if ((s.charAt(0) == cc) && (s.charAt(s.length() - 1) == cc)) {
static String stripQuotes(String s) { final String quotes = "\"'"; if (s.length() >= 2) { int n = quotes.length(); for (int x = 0; x < n; x++) { char cc = quotes.charAt(x); if (s.charAt(0) == cc && s.charAt(s.length() - 1) == cc) { if (s.length() > 2) s = s.substring(1, s.length() - 1); else s = ""; break; } } } return s; }
50653 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50653/ca136843ae9ecb30cadada58a33a5dc2cf8ad064/HTMLFilter.java/clean/src/freenet/clients/http/filter/HTMLFilter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 3845, 514, 2569, 14292, 12, 780, 272, 13, 288, 202, 202, 6385, 514, 10681, 273, 7023, 4970, 31, 202, 202, 430, 261, 87, 18, 2469, 1435, 1545, 576, 13, 288, 1082, 202, 474, 290, 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, 3845, 514, 2569, 14292, 12, 780, 272, 13, 288, 202, 202, 6385, 514, 10681, 273, 7023, 4970, 31, 202, 202, 430, 261, 87, 18, 2469, 1435, 1545, 576, 13, 288, 1082, 202, 474, 290, 2...
domain = prov.getDomainByName(value);
domain = prov.get(DomainBy.NAME, value);
public Element handle(Element request, Map<String, Object> context) throws ServiceException { ZimbraSoapContext lc = getZimbraSoapContext(context); Provisioning prov = Provisioning.getInstance(); boolean applyConfig = request.getAttributeBool(AdminService.A_APPLY_CONFIG, true); Element d = request.getElement(AdminService.E_DOMAIN); String key = d.getAttribute(AdminService.A_BY); String value = d.getText(); Domain domain = null; if (key.equals(BY_NAME)) { domain = prov.getDomainByName(value); } else if (key.equals(BY_ID)) { domain = prov.getDomainById(value); } else { throw ServiceException.INVALID_REQUEST("unknown value for by: "+key, null); } if (domain == null) throw AccountServiceException.NO_SUCH_DOMAIN(value); Element response = lc.createElement(AdminService.GET_DOMAIN_RESPONSE); doDomain(response, domain, applyConfig); return response; }
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/87b1f0362680ce1747caf43e2d80ec3cfdcc3718/GetDomain.java/buggy/ZimbraServer/src/java/com/zimbra/cs/service/admin/GetDomain.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3010, 1640, 12, 1046, 590, 16, 1635, 32, 780, 16, 1033, 34, 819, 13, 1216, 16489, 288, 202, 5411, 2285, 381, 15397, 20601, 1042, 9109, 273, 23448, 381, 15397, 20601, 1042, 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, 225, 202, 482, 3010, 1640, 12, 1046, 590, 16, 1635, 32, 780, 16, 1033, 34, 819, 13, 1216, 16489, 288, 202, 5411, 2285, 381, 15397, 20601, 1042, 9109, 273, 23448, 381, 15397, 20601, 1042, 12, ...
for (int i = listeners.length - 1; i >= 0; --i) listeners[i].treeNodesInserted(event); }
for (int i = listeners.length - 1; i >= 0; --i) listeners[i].treeNodesInserted(event); }
protected void fireTreeNodesInserted(Object source, Object[] path, int[] childIndices, Object[] children) { TreeModelEvent event = new TreeModelEvent(source, path, childIndices, children); TreeModelListener[] listeners = getTreeModelListeners(); for (int i = listeners.length - 1; i >= 0; --i) listeners[i].treeNodesInserted(event); }
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/a9a5e4a5c26c86c820e7ab157787de61f7183270/DefaultTreeModel.java/clean/javax/swing/tree/DefaultTreeModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 4452, 2471, 3205, 27329, 12, 921, 1084, 16, 1033, 8526, 589, 16, 1082, 202, 474, 8526, 1151, 8776, 16, 1033, 8526, 2325, 13, 202, 95, 202, 202, 2471, 1488, 1133, 871, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 4452, 2471, 3205, 27329, 12, 921, 1084, 16, 1033, 8526, 589, 16, 1082, 202, 474, 8526, 1151, 8776, 16, 1033, 8526, 2325, 13, 202, 95, 202, 202, 2471, 1488, 1133, 871, 27...
if (!initializing) {
if (! initializing) {
protected void initProperties() { if (!initializing) { initializing = true; super.initProperties(); DavPropertySet properties = getProperties(); if (isCalendarCollection() || isCalendarHomeCollection()) { // override the default resource type property with // our own that sets the appropriate resource types // for calendar home collections (caldav section 4.2) // and calendar collections (caldav section 4.3) int[] resourceTypes = new int[2]; resourceTypes[0] = CosmoResourceType.COLLECTION; resourceTypes[1] = isCalendarCollection() ? CosmoResourceType.CALENDAR_COLLECTION : CosmoResourceType.CALENDAR_HOME; properties.add(new CosmoResourceType(resourceTypes)); // Windows XP support properties.add(new DefaultDavProperty( DavPropertyName.ISCOLLECTION, "1")); // content-language property String contentLanguage = null; try { if (getNode().hasProperty(NP_XML_LANG)) { contentLanguage = getNode().getProperty(NP_XML_LANG) .getString(); setContentLanguage(contentLanguage); } } catch (RepositoryException e) { log.warn("Unable to retrieve content language", e); } // calendar-description property (caldav section // 4.4.1) try { if (getNode().hasProperty(NP_CALDAV_CALENDARDESCRIPTION)) { String text = getNode().getProperty( NP_CALDAV_CALENDARDESCRIPTION).getString(); properties.add(new CalendarDescription(text, contentLanguage)); } } catch (RepositoryException e) { log.warn("Unable to retrieve calendar description", e); } } if (isCalendarCollection()) { // calendar-component-restriction-set property (caldav // section 4.4.2) // the entire Cosmo server allows only the components // specified by this constant, and this behavior can // not be modified by clients DavProperty davprop = new CalendarComponentRestrictionSet( ICALENDAR_COMPONENTS); properties.add(davprop); // calendar-restrictions property (caldav section // 4.4.3) // the entire Cosmo server allows non-calendar data // within calendar collections, and this behavior can // not be modified by clients properties.add(new CalendarRestrictions()); } if (isTicketable()) { initTickets(); properties.add(new TicketDiscovery(this)); } // Reports properties if (supportedReports != null) { properties.add(supportedReports); } initializing = false; } }
47226 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47226/145f0ab5de3ac56e09fd5f3c725e84fb703cf8eb/CosmoDavResourceImpl.java/buggy/src/main/java/org/osaf/cosmo/dav/impl/CosmoDavResourceImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1208, 2297, 1435, 288, 3639, 309, 16051, 22584, 13, 288, 5411, 22584, 273, 638, 31, 5411, 2240, 18, 2738, 2297, 5621, 5411, 463, 842, 1396, 694, 1790, 273, 9392, 5621, 5411, 30...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1208, 2297, 1435, 288, 3639, 309, 16051, 22584, 13, 288, 5411, 22584, 273, 638, 31, 5411, 2240, 18, 2738, 2297, 5621, 5411, 463, 842, 1396, 694, 1790, 273, 9392, 5621, 5411, 30...
FCPMessage msg = new IdentifierCollisionMessage(id);
FCPMessage msg = new IdentifierCollisionMessage(id, message.global);
public void startClientGet(ClientGetMessage message) { String id = message.identifier; ClientGet cg = null; boolean success; boolean persistent = message.persistenceType != ClientRequest.PERSIST_CONNECTION; synchronized(this) { if(isClosed) return; // We need to track non-persistent requests anyway, so we may as well check if(persistent) success = true; else success = !requestsByIdentifier.containsKey(id); if(success) { try { cg = new ClientGet(this, message); if(!persistent) requestsByIdentifier.put(id, cg); } catch (IdentifierCollisionException e) { success = false; } } } if(!success) { Logger.normal(this, "Identifier collision on "+this); FCPMessage msg = new IdentifierCollisionMessage(id); outputHandler.queue(msg); return; } else { // Register before starting, because it may complete immediately, and if it does, // we may end up with it not being removable because it wasn't registered! if(cg.isPersistent()) { if(cg.isPersistentForever()) server.forceStorePersistentRequests(); } cg.start(); } }
8026 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8026/bbb3c23ec38ea1c7abb48040a17f5fc7932248bc/FCPConnectionHandler.java/buggy/src/freenet/node/fcp/FCPConnectionHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 787, 1227, 967, 12, 1227, 967, 1079, 883, 13, 288, 202, 202, 780, 612, 273, 883, 18, 5644, 31, 202, 202, 1227, 967, 14947, 273, 446, 31, 202, 202, 6494, 2216, 31, 202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 787, 1227, 967, 12, 1227, 967, 1079, 883, 13, 288, 202, 202, 780, 612, 273, 883, 18, 5644, 31, 202, 202, 1227, 967, 14947, 273, 446, 31, 202, 202, 6494, 2216, 31, 202, ...
recoverFromMismatchedSet(input,mse,FOLLOW_set_in_lhs_and2026); throw mse;
recoverFromMismatchedSet(input,mse,FOLLOW_set_in_lhs_and1991); throw mse;
public PatternDescr lhs_and() throws RecognitionException { PatternDescr d; PatternDescr left = null; PatternDescr right = null; d = null; try { // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:612:17: (left= lhs_unary ( ('and'|'&&')right= lhs_unary )* ) // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:612:17: left= lhs_unary ( ('and'|'&&')right= lhs_unary )* { AndDescr and = null; following.push(FOLLOW_lhs_unary_in_lhs_and2017); left=lhs_unary(); following.pop(); d = left; // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:614:17: ( ('and'|'&&')right= lhs_unary )* loop50: do { int alt50=2; int LA50_0 = input.LA(1); if ( (LA50_0>=48 && LA50_0<=49) ) { alt50=1; } switch (alt50) { case 1 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:614:25: ('and'|'&&')right= lhs_unary { if ( (input.LA(1)>=48 && input.LA(1)<=49) ) { input.consume(); errorRecovery=false; } else { MismatchedSetException mse = new MismatchedSetException(null,input); recoverFromMismatchedSet(input,mse,FOLLOW_set_in_lhs_and2026); throw mse; } following.push(FOLLOW_lhs_unary_in_lhs_and2037); right=lhs_unary(); following.pop(); if ( and == null ) { and = new AndDescr(); and.addDescr( left ); d = and; } and.addDescr( right ); } break; default : break loop50; } } while (true); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return d; }
31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/61acd40072560afada3f7897673309e5b51b402d/RuleParser.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 6830, 16198, 8499, 67, 464, 1435, 1216, 9539, 288, 6647, 6830, 16198, 302, 31, 3639, 6830, 16198, 2002, 273, 446, 31, 3639, 6830, 16198, 2145, 273, 446, 31, 1171, 202, 202, 72, 273,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 6830, 16198, 8499, 67, 464, 1435, 1216, 9539, 288, 6647, 6830, 16198, 302, 31, 3639, 6830, 16198, 2002, 273, 446, 31, 3639, 6830, 16198, 2145, 273, 446, 31, 1171, 202, 202, 72, 273,...
throw new RegexpError(ruby, e.getMessage());
throw new RegexpError(runtime, e.getMessage());
public void compile(Ruby ruby, String pattern) throws RegexpError { if (extended) { pattern = unextend(pattern); } try { this.re = new RE(pattern, cflags); } catch (REException e) { throw new RegexpError(ruby, e.getMessage()); } }
46217 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46217/c5da2c6076b449b5de3adb26549527bf497ec10c/GNURegexpAdapter.java/buggy/src/org/jruby/runtime/regexp/GNURegexpAdapter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 4074, 12, 54, 10340, 22155, 16, 514, 1936, 13, 1216, 17011, 668, 288, 3639, 309, 261, 14948, 13, 288, 5411, 1936, 273, 640, 14313, 12, 4951, 1769, 3639, 289, 3639, 775, 288, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 4074, 12, 54, 10340, 22155, 16, 514, 1936, 13, 1216, 17011, 668, 288, 3639, 309, 261, 14948, 13, 288, 5411, 1936, 273, 640, 14313, 12, 4951, 1769, 3639, 289, 3639, 775, 288, ...
final GPR v1_lsb = v1.getLsbRegister(eContext); final GPR v1_msb = v1.getMsbRegister(eContext);
final GPR v1_lsb = val.getLsbRegister(eContext); final GPR v1_msb = val.getMsbRegister(eContext);
public final void visit_lshl() { final IntItem v2 = vstack.popInt(); final LongItem v1 = vstack.popLong(); L1AHelper.requestRegister(eContext, X86Register.ECX, v2); v2.loadTo(eContext, X86Register.ECX); v1.load(eContext); if (os.isCode32()) { final GPR v1_lsb = v1.getLsbRegister(eContext); final GPR v1_msb = v1.getMsbRegister(eContext); final Label curInstrLabel = getCurInstrLabel(); os.writeAND(X86Register.ECX, 63); os.writeCMP_Const(X86Register.ECX, 32); final Label gt32Label = new Label(curInstrLabel + "gt32"); final Label endLabel = new Label(curInstrLabel + "end"); os.writeJCC(gt32Label, X86Constants.JAE); // JAE /** ECX < 32 */ os.writeSHLD_CL(v1_msb, v1_lsb); os.writeSHL_CL(v1_lsb); os.writeJMP(endLabel); /** ECX >= 32 */ os.setObjectRef(gt32Label); os.writeMOV(INTSIZE, v1_msb, v1_lsb); os.writeXOR(v1_lsb, v1_lsb); os.writeSHL_CL(v1_msb); os.setObjectRef(endLabel); } else { final GPR64 v1r = v1.getRegister(eContext); os.writeSHL_CL(v1r); } // Release v2.release(eContext); vstack.push(v1); }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/6ad6198b74c08d19e793bf52867682597f899f43/X86BytecodeVisitor.java/clean/core/src/core/org/jnode/vm/x86/compiler/l1a/X86BytecodeVisitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 3757, 67, 80, 674, 80, 1435, 288, 202, 202, 6385, 3094, 1180, 331, 22, 273, 19510, 18, 5120, 1702, 5621, 202, 202, 6385, 3407, 1180, 331, 21, 273, 19510, 18, 5120, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 3757, 67, 80, 674, 80, 1435, 288, 202, 202, 6385, 3094, 1180, 331, 22, 273, 19510, 18, 5120, 1702, 5621, 202, 202, 6385, 3407, 1180, 331, 21, 273, 19510, 18, 5120, ...
return (current_row < 0 && rows.size() > 0);
if (onInsertRow) return false; return ((row_offset + current_row) < 0 && rows.size() > 0);
public boolean isBeforeFirst() throws SQLException { return (current_row < 0 && rows.size() > 0); }
49868 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49868/d9216a27dc4ef3f9c2223a6add07c4bfc9a0903e/AbstractJdbc2ResultSet.java/buggy/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 353, 4649, 3759, 1435, 1216, 6483, 202, 95, 202, 202, 2463, 261, 2972, 67, 492, 411, 374, 597, 2595, 18, 1467, 1435, 405, 374, 1769, 202, 97, 2, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 353, 4649, 3759, 1435, 1216, 6483, 202, 95, 202, 202, 2463, 261, 2972, 67, 492, 411, 374, 597, 2595, 18, 1467, 1435, 405, 374, 1769, 202, 97, 2, -100, -100, -100, -100, ...
return createContainerElements ? "true" : "false"; if (property.equals("match-tagging")) return matchTagging ? "true" : "false";
return Boolean.toString(createContainerElements); if (property.equals("match-tagging-elements")) return Boolean.toString((highlightMatches & Serializer.TAG_ELEMENT_MATCHES) > 0); if(property.equals("match-tagging-attributes")) return Boolean.toString((highlightMatches & Serializer.TAG_ATTRIBUTE_MATCHES) > 0);
public String getProperty(String property) throws XMLDBException { if (property.equals("pretty")) return indentXML ? "true" : "false"; if (property.equals("encoding")) return encoding; if (property.equals("create-container-elements")) return createContainerElements ? "true" : "false"; if (property.equals("match-tagging")) return matchTagging ? "true" : "false"; return null; }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/1c0cc42431436631d1b2e9ea8af63bb6dd883496/LocalXPathQueryService.java/buggy/src/org/exist/xmldb/LocalXPathQueryService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 3911, 12, 780, 1272, 13, 1216, 26014, 503, 288, 202, 202, 430, 261, 4468, 18, 14963, 2932, 19073, 6, 3719, 1082, 202, 2463, 3504, 4201, 692, 315, 3767, 6, 294, 315, 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, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 3911, 12, 780, 1272, 13, 1216, 26014, 503, 288, 202, 202, 430, 261, 4468, 18, 14963, 2932, 19073, 6, 3719, 1082, 202, 2463, 3504, 4201, 692, 315, 3767, 6, 294, 315, 5743,...
if(A_OpenCms.isLogging()) {
if((A_OpenCms.isLogging() && I_CmsLogChannels.C_PREPROCESSOR_IS_LOGGING)) {
public byte[] get(Object key) { if(A_OpenCms.isLogging()) { A_OpenCms.log(C_OPENCMS_CACHE, "[CmsTemplateCache] Getting " + key + " from cache."); } if(key instanceof String) { return (byte[])templateCache.get((String)key); } else { System.err.println("get: " + key); return null; } }
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/65fec749058083642e3e85283287c65357fa8690/CmsTemplateCache.java/buggy/src/com/opencms/launcher/CmsTemplateCache.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1160, 8526, 336, 12, 921, 498, 13, 288, 3639, 309, 12443, 37, 67, 3678, 4747, 18, 291, 7735, 1435, 597, 467, 67, 4747, 1343, 10585, 18, 39, 67, 3670, 16560, 916, 67, 5127, 67, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1160, 8526, 336, 12, 921, 498, 13, 288, 3639, 309, 12443, 37, 67, 3678, 4747, 18, 291, 7735, 1435, 597, 467, 67, 4747, 1343, 10585, 18, 39, 67, 3670, 16560, 916, 67, 5127, 67, 2...
object,
initializedBean,
private Object retrieveSimpleFields(Session session, ClassDescriptor classDescriptor, Node node, Object object) { // Object initializedBean = object; try { Iterator fieldDescriptorIterator = classDescriptor.getFieldDescriptors().iterator(); while (fieldDescriptorIterator.hasNext()) { FieldDescriptor fieldDescriptor = (FieldDescriptor) fieldDescriptorIterator.next(); String fieldName = fieldDescriptor.getFieldName(); String propertyName = fieldDescriptor.getJcrName(); if (fieldDescriptor.isPath()) {// if (null == initializedBean) { // HINT: lazy initialize target bean// initializedBean = ReflectionUtils.newInstance(classDescriptor.getClassName());// } // ReflectionUtils.setNestedProperty(initializedBean, fieldName, node.getPath()); ReflectionUtils.setNestedProperty(object, fieldName, node.getPath()); } else if (classDescriptor.usesNodeTypePerHierarchyStrategy() && fieldDescriptor.isDiscriminator()) { if (node.hasProperty( classDescriptor.getDiscriminatorFieldDescriptor().getJcrName())) {// if (null == initializedBean) {// initializedBean = ReflectionUtils.newInstance(classDescriptor.getClassName());// } String value = node.getProperty( classDescriptor.getDiscriminatorFieldDescriptor().getJcrName()).getValue().getString(); ReflectionUtils.setNestedProperty(object, fieldName, value); } else { throw new PersistenceException("Class '" + classDescriptor.getClassName() + "' have not a discriminator property."); } } else { if (node.hasProperty(propertyName)) { Value propValue = node.getProperty(propertyName).getValue();// if (null != propValue && null == initializedBean) { // HINT: lazy initialize target bean// initializedBean = ReflectionUtils.newInstance(classDescriptor.getClassName());// } AtomicTypeConverter converter= getAtomicTypeConverter(fieldDescriptor, object, fieldName); Object fieldValue = converter.getObject(propValue); ReflectionUtils.setNestedProperty(object, fieldName, fieldValue); } else { log.warn("Class '" + classDescriptor.getClassName() + "' has an unmapped property : " + propertyName); } } } } catch(ValueFormatException vfe) { throw new PersistenceException( "Cannot retrieve properties of object " + object + " from node " + node, vfe); } catch(RepositoryException re) { throw new org.apache.portals.graffito.jcr.exception.RepositoryException( "Cannot retrieve properties of object " + object + " from node " + node, re); } return object; }
52535 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52535/c0f0288ae8dffbfcaf3116d255b4bdf2f5cf2317/ObjectConverterImpl.java/buggy/src/java/org/apache/portals/graffito/jcr/persistence/objectconverter/impl/ObjectConverterImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1033, 4614, 5784, 2314, 12, 2157, 1339, 16, 29159, 26641, 667, 3187, 16, 29159, 2029, 756, 16, 29159, 1033, 733, 13, 288, 4202, 368, 1033, 6454, 3381, 273, 733, 31, 3639, 775, 288, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1033, 4614, 5784, 2314, 12, 2157, 1339, 16, 29159, 26641, 667, 3187, 16, 29159, 2029, 756, 16, 29159, 1033, 733, 13, 288, 4202, 368, 1033, 6454, 3381, 273, 733, 31, 3639, 775, 288, ...
if (field.getFormat() == null) { return v.toString(); }
private String formatField(Value v, XMLField field) { String retval=""; if(field == null) return ""; if(v == null || v.isNull()) { String defaultNullValue = field.getNullString(); return defaultNullValue != null ? defaultNullValue : ""; } if (v.isBigNumber() || v.isNumber() || v.isInteger()) { if (field.getFormat() == null) { return v.toString(); } // Formatting if ( !Const.isEmpty(field.getFormat()) ) { data.df.applyPattern(field.getFormat()); } else { data.df.applyPattern(data.defaultDecimalFormat.toLocalizedPattern()); } // Decimal if ( !Const.isEmpty( field.getDecimalSymbol()) ) { data.dfs.setDecimalSeparator( field.getDecimalSymbol().charAt(0) ); } else { data.dfs.setDecimalSeparator( data.defaultDecimalFormatSymbols.getDecimalSeparator() ); } // Grouping if ( !Const.isEmpty( field.getGroupingSymbol()) ) { data.dfs.setGroupingSeparator( field.getGroupingSymbol().charAt(0) ); } else { data.dfs.setGroupingSeparator( data.defaultDecimalFormatSymbols.getGroupingSeparator() ); } // Currency symbol if ( !Const.isEmpty( field.getCurrencySymbol()) ) { data.dfs.setCurrencySymbol( field.getCurrencySymbol() ); } else { data.dfs.setCurrencySymbol( data.defaultDecimalFormatSymbols.getCurrencySymbol() ); } data.df.setDecimalFormatSymbols(data.dfs); if (v.isBigNumber()) { retval=data.df.format(v.getBigNumber()); } else if (v.isNumber()) { retval=data.df.format(v.getNumber()); } else // Integer { retval=data.df.format(v.getInteger()); } } else if (v.isDate()) { if (field!=null && field.getFormat()!=null && v.getDate()!=null) { if (!Const.isEmpty(field.getFormat())) { data.daf.applyPattern( field.getFormat() ); } else { data.daf.applyPattern( data.defaultDateFormat.toLocalizedPattern() ); } data.daf.setDateFormatSymbols(data.dafs); retval= data.daf.format(v.getDate()); } else { if (v.isNull() || v.getDate()==null) { if (field!=null && field.getNullString()!=null) { retval=field.getNullString(); } } else { retval=v.toString(); } } } else if (v.isString()) { retval=v.toString(); } else if (v.isBinary()) { if (v.isNull()) { if (field.getNullString()!=null) retval=field.getNullString(); else retval=Const.NULL_BINARY; } else { try { retval=new String(v.getBytes(), "US-ASCII"); } catch (UnsupportedEncodingException e) { // chances are small we'll get here. US_ASCII is // mandatory. retval=Const.NULL_BINARY; } } } else // Boolean { retval=v.toString(); } return retval; }
9547 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9547/d7cd7b81ee2b8400e495453751f6025eed5a9600/AddXML.java/clean/src/be/ibridge/kettle/trans/step/addxml/AddXML.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 514, 740, 974, 12, 620, 331, 16, 3167, 974, 652, 13, 565, 288, 3639, 514, 5221, 1546, 14432, 3639, 309, 12, 1518, 422, 446, 13, 5411, 327, 1408, 31, 3639, 309, 12, 90, 422, 446,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 514, 740, 974, 12, 620, 331, 16, 3167, 974, 652, 13, 565, 288, 3639, 514, 5221, 1546, 14432, 3639, 309, 12, 1518, 422, 446, 13, 5411, 327, 1408, 31, 3639, 309, 12, 90, 422, 446,...
throw new ServletException("Error executing FreeMarker template", te);
if ( configuration.getTemplateExceptionHandler() != freemarker.template.TemplateExceptionHandler.HTML_DEBUG_HANDLER && configuration.getTemplateExceptionHandler() != freemarker.template.TemplateExceptionHandler.DEBUG_HANDLER) { throw new ServletException(te); }
private void process( HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { String path = requestUrlToTemplatePath(request); Template template = null; try { template = configuration.getTemplate(path, deduceLocale(path, request, response)); } catch (FileNotFoundException e) { response.sendError(HttpServletResponse.SC_NOT_FOUND); return; } Object attrContentType = template.getCustomAttribute("content_type"); if(attrContentType != null) { response.setContentType(attrContentType.toString()); } else { response.setContentType("text/html; charset=" + template.getEncoding()); }// // Set cache policy// setBrowserCachingPolicy(response); ServletContext servletContext = getServletContext(); try { TemplateModel model = createModel(getObjectWrapper(), servletContext, request, response); // Give subclasses a chance to hook into preprocessing if (preTemplateProcess(request, response, template, model)) { try { // Process the template template.process(model, response.getWriter()); } finally { // Give subclasses a chance to hook into postprocessing postTemplateProcess(request, response, template, model); } } } catch (TemplateException te) { throw new ServletException("Error executing FreeMarker template", te); } }
22725 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/22725/a8df37fa15cc3fc86ceb703eca0a2fd510f975a1/FreemarkerServlet.java/buggy/src/java/com/opensymphony/webwork/views/freemarker/FreemarkerServlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1207, 12, 3639, 9984, 590, 16, 3639, 12446, 766, 13, 3639, 1216, 16517, 16, 1860, 565, 288, 3639, 514, 589, 273, 21584, 774, 2283, 743, 12, 2293, 1769, 3639, 5035, 1542, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1207, 12, 3639, 9984, 590, 16, 3639, 12446, 766, 13, 3639, 1216, 16517, 16, 1860, 565, 288, 3639, 514, 589, 273, 21584, 774, 2283, 743, 12, 2293, 1769, 3639, 5035, 1542, 273, ...
public AttributeDescr agenda_group() throws RecognitionException { AttributeDescr d; Token loc=null; Token name=null; d = null; try { // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:310:17: (loc= 'agenda-group' opt_eol name= STRING ( ';' )? opt_eol ) // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:310:17: loc= 'agenda-group' opt_eol name= STRING ( ';' )? opt_eol { loc=(Token)input.LT(1); match(input,35,FOLLOW_35_in_agenda_group952); following.push(FOLLOW_opt_eol_in_agenda_group954); opt_eol(); following.pop(); name=(Token)input.LT(1); match(input,STRING,FOLLOW_STRING_in_agenda_group958); // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:310:56: ( ';' )? int alt32=2; int LA32_0 = input.LA(1); if ( LA32_0==15 ) { alt32=1; } else if ( LA32_0==EOL||LA32_0==21||LA32_0==28||LA32_0==30||(LA32_0>=32 && LA32_0<=36) ) { alt32=2; } else { NoViableAltException nvae = new NoViableAltException("310:56: ( \';\' )?", 32, 0, input); throw nvae; } switch (alt32) { case 1 : // /Users/bob/Documents/workspace/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:310:56: ';' { match(input,15,FOLLOW_15_in_agenda_group960); } break; } following.push(FOLLOW_opt_eol_in_agenda_group963); opt_eol(); following.pop(); d = new AttributeDescr( "agenda-group", getString( name ) ); d.setLocation( loc.getLine(), loc.getCharPositionInLine() ); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return d; }
5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/138d9a6805db25e18a7f8c70bebca33cce7b95e5/RuleParser.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3601, 16198, 28809, 67, 1655, 1435, 1216, 9539, 288, 6647, 3601, 16198, 302, 31, 3639, 3155, 1515, 33, 2011, 31, 3639, 3155, 508, 33, 2011, 31, 540, 202, 202, 72, 273, 446, 31, 54...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3601, 16198, 28809, 67, 1655, 1435, 1216, 9539, 288, 6647, 3601, 16198, 302, 31, 3639, 3155, 1515, 33, 2011, 31, 3639, 3155, 508, 33, 2011, 31, 540, 202, 202, 72, 273, 446, 31, 54...
throw new IllegalStateException();
return 0;
public int getOffset(int era, int year, int month, int day, int dayOfWeek, int milliseconds) { if(zone!=null){ return zone.getOffset(era, year, month, day, dayOfWeek, milliseconds); } throw new IllegalStateException(); }
5620 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5620/298377ea5b5baf5d7c01885c22130a87f6a41af8/JDKTimeZone.java/buggy/icu4j/src/com/ibm/icu/impl/JDKTimeZone.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 13386, 12, 474, 25120, 16, 509, 3286, 16, 509, 3138, 16, 509, 2548, 16, 7682, 509, 21990, 16, 509, 10993, 13, 288, 3639, 309, 12, 3486, 5, 33, 2011, 15329, 5411, 327, 4157, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13386, 12, 474, 25120, 16, 509, 3286, 16, 509, 3138, 16, 509, 2548, 16, 7682, 509, 21990, 16, 509, 10993, 13, 288, 3639, 309, 12, 3486, 5, 33, 2011, 15329, 5411, 327, 4157, ...
{ return new DefaultNotEqualsExpr( lhs, rhs ); }
{ return new DefaultNotEqualsExpr( lhs, rhs ); }
public BinaryExpr createEqualityExpr(Expr lhs, Expr rhs, int equalityOperator) throws JaxenException { switch ( equalityOperator ) { case EQUALS: { return new DefaultEqualsExpr( lhs, rhs ); } case NOT_EQUALS: { return new DefaultNotEqualsExpr( lhs, rhs ); } } throw new JaxenException( "Unhandled operator in createEqualityExpr(): " + equalityOperator ); }
5646 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5646/d180ba623954ff7cb231af711a9133a78d7dd0c5/DefaultXPathFactory.java/buggy/src/java/main/org/jaxen/expr/DefaultXPathFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 7896, 4742, 752, 20273, 4742, 12, 4742, 8499, 16, 29159, 8074, 7711, 16, 29159, 509, 14958, 5592, 13, 1216, 25824, 275, 503, 565, 288, 3639, 1620, 261, 14958, 5592, 262, 3639, 288, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 7896, 4742, 752, 20273, 4742, 12, 4742, 8499, 16, 29159, 8074, 7711, 16, 29159, 509, 14958, 5592, 13, 1216, 25824, 275, 503, 565, 288, 3639, 1620, 261, 14958, 5592, 262, 3639, 288, ...
step = new LocationStep(Constants.ATTRIBUTE_AXIS, new NameTest(Type.ATTRIBUTE, qname)); path.add(step); { _loop114:
step= new LocationStep(Constants.ATTRIBUTE_AXIS, new NameTest(Type.ATTRIBUTE, qname)); path.add(step); { _loop168:
public final Expression pathExpr(AST _t, PathExpr path ) throws RecognitionException, PermissionDeniedException,EXistException { Expression step; AST pathExpr_AST_in = (AST)_t; AST c = null; AST i = null; AST dec = null; AST dbl = null; AST qn = null; AST nc1 = null; AST nc = null; AST attr = null; AST nc2 = null; AST nc3 = null; Expression rightStep = null; step = null; int axis = Constants.CHILD_AXIS; if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case STRING_LITERAL: { c = (AST)_t; match(_t,STRING_LITERAL); _t = _t.getNextSibling(); step = new Literal(c.getText()); path.add(step); break; } case INTEGER_LITERAL: { i = (AST)_t; match(_t,INTEGER_LITERAL); _t = _t.getNextSibling(); step = new IntNumber(Integer.parseInt(i.getText())); path.add(step); break; } case DOUBLE_LITERAL: case DECIMAL_LITERAL: { { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case DECIMAL_LITERAL: { dec = (AST)_t; match(_t,DECIMAL_LITERAL); _t = _t.getNextSibling(); step = new IntNumber(Double.parseDouble(dec.getText())); break; } case DOUBLE_LITERAL: { dbl = (AST)_t; match(_t,DOUBLE_LITERAL); _t = _t.getNextSibling(); step = new IntNumber(Double.parseDouble(dbl.getText())); break; } default: { throw new NoViableAltException(_t); } } } path.add(step); break; } case FUNCTION: { step=functionCall(_t,path); _t = _retTree; break; } case QNAME: case WILDCARD: case PREFIX_WILDCARD: case NCNAME: case LITERAL_text: case LITERAL_node: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 51: case 52: case LITERAL_parent: case LITERAL_ancestor: case 55: case 56: { { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 51: case 52: case LITERAL_parent: case LITERAL_ancestor: case 55: case 56: { axis=forwardAxis(_t); _t = _retTree; break; } case QNAME: case WILDCARD: case PREFIX_WILDCARD: case NCNAME: case LITERAL_text: case LITERAL_node: { break; } default: { throw new NoViableAltException(_t); } } } NodeTest test; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case QNAME: { qn = (AST)_t; match(_t,QNAME); _t = _t.getNextSibling(); QName qname = QName.parse(context, qn.getText()); test = new NameTest(Type.ELEMENT, qname); break; } case PREFIX_WILDCARD: { AST __t106 = _t; AST tmp9_AST_in = (AST)_t; match(_t,PREFIX_WILDCARD); _t = _t.getFirstChild(); nc1 = (AST)_t; match(_t,NCNAME); _t = _t.getNextSibling(); _t = __t106; _t = _t.getNextSibling(); QName qname = new QName(nc1.getText(), null, null); test = new NameTest(Type.ELEMENT, qname); break; } case NCNAME: { AST __t107 = _t; nc = _t==ASTNULL ? null :(AST)_t; match(_t,NCNAME); _t = _t.getFirstChild(); AST tmp10_AST_in = (AST)_t; match(_t,WILDCARD); _t = _t.getNextSibling(); _t = __t107; _t = _t.getNextSibling(); String namespaceURI = context.getURIForPrefix(nc.getText()); QName qname = new QName(null, namespaceURI, null); test = new NameTest(Type.ELEMENT, qname); break; } case WILDCARD: { AST tmp11_AST_in = (AST)_t; match(_t,WILDCARD); _t = _t.getNextSibling(); test = new TypeTest(Type.ELEMENT); break; } case LITERAL_node: { AST tmp12_AST_in = (AST)_t; match(_t,LITERAL_node); _t = _t.getNextSibling(); test = new AnyNodeTest(); break; } case LITERAL_text: { AST tmp13_AST_in = (AST)_t; match(_t,LITERAL_text); _t = _t.getNextSibling(); test = new TypeTest(Type.TEXT); break; } default: { throw new NoViableAltException(_t); } } } step = new LocationStep(axis, test); path.add(step); { _loop109: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==PREDICATE)) { predicate(_t,(LocationStep)step); _t = _retTree; } else { break _loop109; } } while (true); } break; } case AT: { AST tmp14_AST_in = (AST)_t; match(_t,AT); _t = _t.getNextSibling(); QName qname; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case QNAME: { attr = (AST)_t; match(_t,QNAME); _t = _t.getNextSibling(); qname = QName.parse(context, attr.getText()); break; } case PREFIX_WILDCARD: { AST __t111 = _t; AST tmp15_AST_in = (AST)_t; match(_t,PREFIX_WILDCARD); _t = _t.getFirstChild(); nc2 = (AST)_t; match(_t,NCNAME); _t = _t.getNextSibling(); _t = __t111; _t = _t.getNextSibling(); qname = new QName(nc2.getText(), null, null); break; } case NCNAME: { AST __t112 = _t; nc3 = _t==ASTNULL ? null :(AST)_t; match(_t,NCNAME); _t = _t.getFirstChild(); AST tmp16_AST_in = (AST)_t; match(_t,WILDCARD); _t = _t.getNextSibling(); _t = __t112; _t = _t.getNextSibling(); String namespaceURI = context.getURIForPrefix(nc3.getText()); if(namespaceURI == null) throw new EXistException("No namespace defined for prefix " + nc.getText()); qname = new QName(null, namespaceURI, null); break; } default: { throw new NoViableAltException(_t); } } } step = new LocationStep(Constants.ATTRIBUTE_AXIS, new NameTest(Type.ATTRIBUTE, qname)); path.add(step); { _loop114: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==PREDICATE)) { predicate(_t,(LocationStep)step); _t = _retTree; } else { break _loop114; } } while (true); } break; } case SELF: { AST tmp17_AST_in = (AST)_t; match(_t,SELF); _t = _t.getNextSibling(); step = new LocationStep(Constants.SELF_AXIS, new TypeTest(Type.NODE)); path.add(step); { _loop116: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==PREDICATE)) { predicate(_t,(LocationStep)step); _t = _retTree; } else { break _loop116; } } while (true); } break; } case PARENT: { AST tmp18_AST_in = (AST)_t; match(_t,PARENT); _t = _t.getNextSibling(); step = new LocationStep(Constants.PARENT_AXIS, new TypeTest(Type.NODE)); path.add(step); { _loop118: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==PREDICATE)) { predicate(_t,(LocationStep)step); _t = _retTree; } else { break _loop118; } } while (true); } break; } case SLASH: { AST __t119 = _t; AST tmp19_AST_in = (AST)_t; match(_t,SLASH); _t = _t.getFirstChild(); step=pathExpr(_t,path); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case QNAME: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case NCNAME: case STRING_LITERAL: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 51: case 52: case LITERAL_parent: case LITERAL_ancestor: case 55: case 56: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: { rightStep=pathExpr(_t,path); _t = _retTree; if(rightStep instanceof LocationStep && ((LocationStep)rightStep).getAxis() == -1) ((LocationStep)rightStep).setAxis(Constants.CHILD_AXIS); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t119; _t = _t.getNextSibling(); if(rightStep instanceof LocationStep && ((LocationStep)rightStep).getAxis() == -1) ((LocationStep)step).setAxis(Constants.CHILD_AXIS); break; } case DSLASH: { AST __t121 = _t; AST tmp20_AST_in = (AST)_t; match(_t,DSLASH); _t = _t.getFirstChild(); step=pathExpr(_t,path); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case QNAME: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case NCNAME: case STRING_LITERAL: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case SELF: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 51: case 52: case LITERAL_parent: case LITERAL_ancestor: case 55: case 56: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: { rightStep=pathExpr(_t,path); _t = _retTree; if(rightStep instanceof LocationStep) { LocationStep rs = (LocationStep)rightStep; if(rs.getAxis() == Constants.ATTRIBUTE_AXIS) rs.setAxis(Constants.DESCENDANT_ATTRIBUTE_AXIS); else rs.setAxis(Constants.DESCENDANT_SELF_AXIS); } break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t121; _t = _t.getNextSibling(); if(step instanceof LocationStep) ((LocationStep)step).setAxis(Constants.DESCENDANT_SELF_AXIS); break; } default: { throw new NoViableAltException(_t); } } _retTree = _t; return step; }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/ad9d55f515de2cb1fa50cf09c9e42150efc8374f/XPathTreeParser2.java/clean/src/org/exist/parser/XPathTreeParser2.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 5371, 225, 589, 4742, 12, 9053, 389, 88, 16, 202, 202, 743, 4742, 589, 202, 13, 1216, 9539, 16, 8509, 15877, 16, 2294, 376, 503, 288, 202, 202, 2300, 2235, 31, 9506, 20...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 5371, 225, 589, 4742, 12, 9053, 389, 88, 16, 202, 202, 743, 4742, 589, 202, 13, 1216, 9539, 16, 8509, 15877, 16, 2294, 376, 503, 288, 202, 202, 2300, 2235, 31, 9506, 20...
iCodeTop = addByte(type == Token.INC ? Token.PROPINC : Token.PROPDEC, iCodeTop);
iCodeTop = addIcode(type == Token.INC ? Icode_PROPINC : Icode_PROPDEC, iCodeTop);
private int generateICode(Node node, int iCodeTop) { int type = node.getType(); Node child = node.getFirstChild(); Node firstChild = child; switch (type) { case Token.FUNCTION : { int fnIndex = node.getExistingIntProp(Node.FUNCTION_PROP); FunctionNode fn = scriptOrFn.getFunctionNode(fnIndex); if (fn.itsFunctionType != FunctionNode.FUNCTION_STATEMENT) { // Only function expressions or function expression // statements needs closure code creating new function // object on stack as function statements are initialized // at script/function start iCodeTop = addByte(Token.CLOSURE, iCodeTop); iCodeTop = addIndex(fnIndex, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; } case Token.SCRIPT : iCodeTop = updateLineNumber(node, iCodeTop); while (child != null) { if (child.getType() != Token.FUNCTION) iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); } break; case Token.CASE : iCodeTop = updateLineNumber(node, iCodeTop); child = child.getNext(); while (child != null) { iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); } break; case Token.LABEL : case Token.LOOP : case Token.DEFAULT : case Token.BLOCK : case Token.VOID : case Token.NOP : iCodeTop = updateLineNumber(node, iCodeTop); while (child != null) { iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); } break; case Token.WITH : ++itsWithDepth; iCodeTop = updateLineNumber(node, iCodeTop); while (child != null) { iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); } --itsWithDepth; break; case Token.COMMA : iCodeTop = generateICode(child, iCodeTop); while (null != (child = child.getNext())) { iCodeTop = addByte(Token.POP, iCodeTop); itsStackDepth--; iCodeTop = generateICode(child, iCodeTop); } break; case Token.SWITCH : { iCodeTop = updateLineNumber(node, iCodeTop); iCodeTop = generateICode(child, iCodeTop); int theLocalSlot = itsData.itsMaxLocals++; iCodeTop = addByte(Token.NEWTEMP, iCodeTop); iCodeTop = addByte(theLocalSlot, iCodeTop); iCodeTop = addByte(Token.POP, iCodeTop); itsStackDepth--; ObjArray cases = (ObjArray) node.getProp(Node.CASES_PROP); for (int i = 0; i < cases.size(); i++) { Node thisCase = (Node)cases.get(i); Node first = thisCase.getFirstChild(); // the case expression is the firstmost child // the rest will be generated when the case // statements are encountered as siblings of // the switch statement. iCodeTop = generateICode(first, iCodeTop); iCodeTop = addByte(Token.USETEMP, iCodeTop); iCodeTop = addByte(theLocalSlot, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte(Token.SHEQ, iCodeTop); itsStackDepth--; Node target = new Node(Token.TARGET); thisCase.addChildAfter(target, first); iCodeTop = addGoto(target, Token.IFEQ, iCodeTop); } Node defaultNode = (Node) node.getProp(Node.DEFAULT_PROP); if (defaultNode != null) { Node defaultTarget = new Node(Token.TARGET); defaultNode.getFirstChild(). addChildToFront(defaultTarget); iCodeTop = addGoto(defaultTarget, Token.GOTO, iCodeTop); } Node breakTarget = (Node) node.getProp(Node.BREAK_PROP); iCodeTop = addGoto(breakTarget, Token.GOTO, iCodeTop); break; } case Token.TARGET : { markTargetLabel(node, iCodeTop); break; } case Token.EQOP : case Token.RELOP : { iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); int op = node.getOperation(); if (version == Context.VERSION_1_2) { if (op == Token.EQ) { op = Token.SHEQ; } else if (op == Token.NE) { op = Token.SHNE; } } iCodeTop = addByte(op, iCodeTop); itsStackDepth--; break; } case Token.NEW : case Token.CALL : { int childCount = 0; String functionName = null; while (child != null) { iCodeTop = generateICode(child, iCodeTop); if (functionName == null) { int childType = child.getType(); if (childType == Token.NAME || childType == Token.GETPROP) { functionName = lastAddString; } } child = child.getNext(); childCount++; } int callType = node.getIntProp(Node.SPECIALCALL_PROP, Node.NON_SPECIALCALL); if (callType != Node.NON_SPECIALCALL) { // embed line number and source filename iCodeTop = addByte(Icode_CALLSPECIAL, iCodeTop); iCodeTop = addByte(callType, iCodeTop); iCodeTop = addByte(type == Token.NEW ? 1 : 0, iCodeTop); iCodeTop = addShort(itsLineNumber, iCodeTop); } else { iCodeTop = addByte(type, iCodeTop); iCodeTop = addString(functionName, iCodeTop); } itsStackDepth -= (childCount - 1); // always a result value // subtract from child count to account for [thisObj &] fun if (type == Token.NEW) { childCount -= 1; } else { childCount -= 2; } iCodeTop = addIndex(childCount, iCodeTop); if (childCount > itsData.itsMaxCalleeArgs) itsData.itsMaxCalleeArgs = childCount; break; } case Token.NEWLOCAL : case Token.NEWTEMP : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(Token.NEWTEMP, iCodeTop); iCodeTop = addLocalRef(node, iCodeTop); break; } case Token.USELOCAL : { if (node.getProp(Node.TARGET_PROP) != null) { iCodeTop = addByte(Icode_RETSUB, iCodeTop); } else { iCodeTop = addByte(Token.USETEMP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } Node temp = (Node) node.getProp(Node.LOCAL_PROP); iCodeTop = addLocalRef(temp, iCodeTop); break; } case Token.USETEMP : { iCodeTop = addByte(Token.USETEMP, iCodeTop); Node temp = (Node) node.getProp(Node.TEMP_PROP); iCodeTop = addLocalRef(temp, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; } case Token.IFEQ : case Token.IFNE : iCodeTop = generateICode(child, iCodeTop); itsStackDepth--; // after the conditional GOTO, really // fall thru... case Token.GOTO : { Node target = (Node)(node.getProp(Node.TARGET_PROP)); iCodeTop = addGoto(target, (byte) type, iCodeTop); break; } case Token.JSR : { Node target = (Node)(node.getProp(Node.TARGET_PROP)); iCodeTop = addGoto(target, Icode_GOSUB, iCodeTop); break; } case Token.AND : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(Icode_DUP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int falseJumpStart = iCodeTop; iCodeTop = addForwardGoto(Token.IFNE, iCodeTop); iCodeTop = addByte(Token.POP, iCodeTop); itsStackDepth--; child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); resolveForwardGoto(falseJumpStart, iCodeTop); break; } case Token.OR : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(Icode_DUP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int trueJumpStart = iCodeTop; iCodeTop = addForwardGoto(Token.IFEQ, iCodeTop); iCodeTop = addByte(Token.POP, iCodeTop); itsStackDepth--; child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); resolveForwardGoto(trueJumpStart, iCodeTop); break; } case Token.GETPROP : { iCodeTop = generateICode(child, iCodeTop); String s = (String) node.getProp(Node.SPECIAL_PROP_PROP); if (s != null) { if (s.equals("__proto__")) { iCodeTop = addByte(Icode_GETPROTO, iCodeTop); } else if (s.equals("__parent__")) { iCodeTop = addByte(Icode_GETSCOPEPARENT, iCodeTop); } else { badTree(node); } } else { child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(Token.GETPROP, iCodeTop); itsStackDepth--; } break; } case Token.DELPROP : case Token.BITAND : case Token.BITOR : case Token.BITXOR : case Token.LSH : case Token.RSH : case Token.URSH : case Token.ADD : case Token.SUB : case Token.MOD : case Token.DIV : case Token.MUL : case Token.GETELEM : iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(type, iCodeTop); itsStackDepth--; break; case Token.CONVERT : { iCodeTop = generateICode(child, iCodeTop); Object toType = node.getProp(Node.TYPE_PROP); if (toType == ScriptRuntime.NumberClass) { iCodeTop = addByte(Token.POS, iCodeTop); } else { badTree(node); } break; } case Token.UNARYOP : iCodeTop = generateICode(child, iCodeTop); switch (node.getOperation()) { case Token.VOID : iCodeTop = addByte(Token.POP, iCodeTop); iCodeTop = addByte(Token.UNDEFINED, iCodeTop); break; case Token.NOT : { int trueJumpStart = iCodeTop; iCodeTop = addForwardGoto(Token.IFEQ, iCodeTop); iCodeTop = addByte(Token.TRUE, iCodeTop); int beyondJumpStart = iCodeTop; iCodeTop = addForwardGoto(Token.GOTO, iCodeTop); resolveForwardGoto(trueJumpStart, iCodeTop); iCodeTop = addByte(Token.FALSE, iCodeTop); resolveForwardGoto(beyondJumpStart, iCodeTop); break; } case Token.BITNOT : iCodeTop = addByte(Token.BITNOT, iCodeTop); break; case Token.TYPEOF : iCodeTop = addByte(Token.TYPEOF, iCodeTop); break; case Token.SUB : iCodeTop = addByte(Token.NEG, iCodeTop); break; case Token.ADD : iCodeTop = addByte(Token.POS, iCodeTop); break; default: badTree(node); break; } break; case Token.SETPROP : { iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); String s = (String) node.getProp(Node.SPECIAL_PROP_PROP); if (s != null) { if (s.equals("__proto__")) { iCodeTop = addByte(Icode_SETPROTO, iCodeTop); } else if (s.equals("__parent__")) { iCodeTop = addByte(Icode_SETPARENT, iCodeTop); } else { badTree(node); } } else { child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(Token.SETPROP, iCodeTop); itsStackDepth -= 2; } break; } case Token.SETELEM : iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(type, iCodeTop); itsStackDepth -= 2; break; case Token.SETNAME : iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(Token.SETNAME, iCodeTop); iCodeTop = addString(firstChild.getString(), iCodeTop); itsStackDepth--; break; case Token.TYPEOF : { String name = node.getString(); int index = -1; // use typeofname if an activation frame exists // since the vars all exist there instead of in jregs if (itsInFunctionFlag && !itsData.itsNeedsActivation) index = scriptOrFn.getParamOrVarIndex(name); if (index == -1) { iCodeTop = addByte(Token.TYPEOFNAME, iCodeTop); iCodeTop = addString(name, iCodeTop); } else { iCodeTop = addByte(Token.GETVAR, iCodeTop); iCodeTop = addByte(index, iCodeTop); iCodeTop = addByte(Token.TYPEOF, iCodeTop); } itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; } case Token.PARENT : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(Icode_GETPARENT, iCodeTop); break; case Token.GETBASE : case Token.BINDNAME : case Token.NAME : case Token.STRING : iCodeTop = addByte(type, iCodeTop); iCodeTop = addString(node.getString(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case Token.INC : case Token.DEC : { int childType = child.getType(); switch (childType) { case Token.GETVAR : { String name = child.getString(); if (itsData.itsNeedsActivation) { iCodeTop = addByte(Icode_SCOPE, iCodeTop); iCodeTop = addByte(Token.STRING, iCodeTop); iCodeTop = addString(name, iCodeTop); itsStackDepth += 2; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte(type == Token.INC ? Token.PROPINC : Token.PROPDEC, iCodeTop); itsStackDepth--; } else { int i = scriptOrFn.getParamOrVarIndex(name); iCodeTop = addByte(type == Token.INC ? Token.VARINC : Token.VARDEC, iCodeTop); iCodeTop = addByte(i, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; } case Token.GETPROP : case Token.GETELEM : { Node getPropChild = child.getFirstChild(); iCodeTop = generateICode(getPropChild, iCodeTop); getPropChild = getPropChild.getNext(); iCodeTop = generateICode(getPropChild, iCodeTop); if (childType == Token.GETPROP) { iCodeTop = addByte(type == Token.INC ? Token.PROPINC : Token.PROPDEC, iCodeTop); } else { iCodeTop = addByte(type == Token.INC ? Token.ELEMINC : Token.ELEMDEC, iCodeTop); } itsStackDepth--; break; } default : { iCodeTop = addByte(type == Token.INC ? Token.NAMEINC : Token.NAMEDEC, iCodeTop); iCodeTop = addString(child.getString(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; } } break; } case Token.NUMBER : { double num = node.getDouble(); int inum = (int)num; if (inum == num) { if (inum == 0) { iCodeTop = addByte(Token.ZERO, iCodeTop); } else if (inum == 1) { iCodeTop = addByte(Token.ONE, iCodeTop); } else if ((short)inum == inum) { iCodeTop = addByte(Icode_SHORTNUMBER, iCodeTop); iCodeTop = addShort(inum, iCodeTop); } else { iCodeTop = addByte(Icode_INTNUMBER, iCodeTop); iCodeTop = addInt(inum, iCodeTop); } } else { iCodeTop = addByte(Token.NUMBER, iCodeTop); iCodeTop = addDouble(num, iCodeTop); } itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; } case Token.POP : case Token.POPV : iCodeTop = updateLineNumber(node, iCodeTop); case Token.ENTERWITH : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(type, iCodeTop); itsStackDepth--; break; case Token.GETTHIS : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(type, iCodeTop); break; case Token.NEWSCOPE : iCodeTop = addByte(type, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case Token.LEAVEWITH : iCodeTop = addByte(type, iCodeTop); break; case Token.TRY : { Node catchTarget = (Node)node.getProp(Node.TARGET_PROP); Node finallyTarget = (Node)node.getProp(Node.FINALLY_PROP); int tryStart = iCodeTop; int tryEnd = -1; int catchStart = -1; int finallyStart = -1; while (child != null) { boolean generated = false; if (child == catchTarget) { if (child.getType() != Token.TARGET) Context.codeBug(); if (tryEnd >= 0) Context.codeBug(); tryEnd = iCodeTop; catchStart = iCodeTop; markTargetLabel(child, iCodeTop); generated = true; // Catch code has exception object on the stack itsStackDepth = 1; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } else if (child == finallyTarget) { if (child.getType() != Token.TARGET) Context.codeBug(); if (tryEnd < 0) { tryEnd = iCodeTop; } finallyStart = iCodeTop; markTargetLabel(child, iCodeTop); generated = true; // Adjust stack for finally code: on the top of the // stack it has either a PC value when called from // GOSUB or exception object to rethrow when called // from exception handler itsStackDepth = 1; if (itsStackDepth > itsData.itsMaxStack) { itsData.itsMaxStack = itsStackDepth; } } if (!generated) { iCodeTop = generateICode(child, iCodeTop); } child = child.getNext(); } itsStackDepth = 0; // [tryStart, tryEnd) contains GOSUB to call finally when it // presents at the end of try code and before return, break // continue that transfer control outside try. // After finally is executed the control will be // transfered back into [tryStart, tryEnd) and exception // handling assumes that the only code executed after // finally returns will be a jump outside try which could not // trigger exceptions. // It does not hold if instruction observer throws during // goto. Currently it may lead to double execution of finally. addExceptionHandler(tryStart, tryEnd, catchStart, finallyStart, itsWithDepth); break; } case Token.THROW : iCodeTop = updateLineNumber(node, iCodeTop); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(Token.THROW, iCodeTop); itsStackDepth--; break; case Token.RETURN : iCodeTop = updateLineNumber(node, iCodeTop); if (child != null) { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(Token.RETURN, iCodeTop); itsStackDepth--; } else { iCodeTop = addByte(Icode_RETUNDEF, iCodeTop); } break; case Token.GETVAR : { String name = node.getString(); if (itsData.itsNeedsActivation) { // SETVAR handled this by turning into a SETPROP, but // we can't do that to a GETVAR without manufacturing // bogus children. Instead we use a special op to // push the current scope. iCodeTop = addByte(Icode_SCOPE, iCodeTop); iCodeTop = addByte(Token.STRING, iCodeTop); iCodeTop = addString(name, iCodeTop); itsStackDepth += 2; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte(Token.GETPROP, iCodeTop); itsStackDepth--; } else { int index = scriptOrFn.getParamOrVarIndex(name); iCodeTop = addByte(Token.GETVAR, iCodeTop); iCodeTop = addByte(index, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; } case Token.SETVAR : { if (itsData.itsNeedsActivation) { child.setType(Token.BINDNAME); node.setType(Token.SETNAME); iCodeTop = generateICode(node, iCodeTop); } else { String name = child.getString(); child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); int index = scriptOrFn.getParamOrVarIndex(name); iCodeTop = addByte(Token.SETVAR, iCodeTop); iCodeTop = addByte(index, iCodeTop); } break; } case Token.PRIMARY: iCodeTop = addByte(node.getOperation(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case Token.ENUMINIT : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(Token.ENUMINIT, iCodeTop); iCodeTop = addLocalRef(node, iCodeTop); itsStackDepth--; break; case Token.ENUMNEXT : { iCodeTop = addByte(Token.ENUMNEXT, iCodeTop); Node init = (Node)node.getProp(Node.ENUM_PROP); iCodeTop = addLocalRef(init, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; } case Token.ENUMDONE : // could release the local here?? break; case Token.REGEXP : { int index = node.getExistingIntProp(Node.REGEXP_PROP); iCodeTop = addByte(Token.REGEXP, iCodeTop); iCodeTop = addIndex(index, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; } default : badTree(node); break; } return iCodeTop; }
47345 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47345/e7e3848925d289272caa163d4d470f03f2eebac5/Interpreter.java/clean/src/org/mozilla/javascript/Interpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 2103, 45, 1085, 12, 907, 756, 16, 509, 277, 1085, 3401, 13, 288, 3639, 509, 618, 273, 756, 18, 588, 559, 5621, 3639, 2029, 1151, 273, 756, 18, 588, 3759, 1763, 5621, 3639, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 2103, 45, 1085, 12, 907, 756, 16, 509, 277, 1085, 3401, 13, 288, 3639, 509, 618, 273, 756, 18, 588, 559, 5621, 3639, 2029, 1151, 273, 756, 18, 588, 3759, 1763, 5621, 3639, ...
assertEquals(null, getDbc().getValidationError().getValue());
assertTrue(((IStatus)getDbc().getValidationStatus().getValue()).isOK());
public void testScenario08() { // Binding the price property of an Adventure to a Text control but with // custom conversion � the double will be validated to only have two // decimal places and displayed with a leading currency symbol, and can // be entered with or without the currency symbol. Text text = new Text(getComposite(), SWT.BORDER); adventure.setPrice(5.0); final String cannotBeNegativeMessage = "Price cannot be negative."; final String mustBeCurrencyMessage = "Price must be a currency."; final NumberFormat currencyFormat = NumberFormat.getCurrencyInstance(Locale.CANADA); IConverter toCurrency = new Converter(double.class, String.class) { public Object convert(Object toObject) { return currencyFormat.format(((Double) toObject).doubleValue()); } }; IConverter toDouble = new Converter(String.class, double.class) { public Object convert(Object fromObject) { try { return currencyFormat.parse((String) fromObject); } catch (ParseException e) { // TODO throw something like // IllegalConversionException? return new Double(0); } } }; IValidator validator = new IValidator() { public ValidationError isPartiallyValid(Object value) { return null; } public ValidationError isValid(Object value) { String stringValue = (String) value; try { double doubleValue = currencyFormat.parse(stringValue).doubleValue(); if (doubleValue < 0.0) { return ValidationError.error(cannotBeNegativeMessage); } return null; } catch (ParseException e) { return ValidationError.error(mustBeCurrencyMessage); } } }; BindSpec bindSpec = new BindSpec().setModelToTargetConverter(toCurrency) .setTargetToModelConverter(toDouble) .setValidator(validator); getDbc().bindValue(SWTObservables.observeText(text, SWT.Modify), BeansObservables.observeValue(adventure, "price"), bindSpec); assertEquals("$5.00", text.getText()); assertEquals(null, getDbc().getValidationError().getValue()); enterText(text, "$0.65"); assertEquals(null, getDbc().getValidationError().getValue()); assertEquals(0.65, adventure.getPrice(), 0.0001); adventure.setPrice(42.24); assertEquals("$42.24", text.getText()); assertEquals(null, getDbc().getValidationError().getValue()); enterText(text, "jygt"); assertEquals(mustBeCurrencyMessage, ((ValidationError) getDbc().getValidationError().getValue()).message); enterText(text, "-$23.9"); assertEquals(cannotBeNegativeMessage, ((ValidationError) getDbc().getValidationError().getValue()).message); assertEquals(42.24, adventure.getPrice(), 0.0001); adventure.setPrice(0.0); assertEquals(null, getDbc().getValidationError().getValue()); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/646de6c1228ca0820a97e225df84d75e3993e272/PropertyScenarios.java/buggy/tests/org.eclipse.jface.tests.databinding/src/org/eclipse/jface/tests/databinding/scenarios/PropertyScenarios.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 21390, 6840, 1435, 288, 3639, 368, 15689, 326, 6205, 1272, 434, 392, 4052, 616, 594, 358, 279, 3867, 3325, 1496, 598, 3639, 368, 1679, 4105, 225, 176, 128, 126, 326, 1645...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 21390, 6840, 1435, 288, 3639, 368, 15689, 326, 6205, 1272, 434, 392, 4052, 616, 594, 358, 279, 3867, 3325, 1496, 598, 3639, 368, 1679, 4105, 225, 176, 128, 126, 326, 1645...
assertEquals("1", eval("p $h.size")); assertEquals("1", eval("p $h.length")); assertEquals("false", eval("p $h.empty?")); assertEquals("true", eval("p Hash.new().empty?"));
assertEquals("1", eval("p $h.size")); assertEquals("1", eval("p $h.length")); assertEquals("false", eval("p $h.empty?")); assertEquals("true", eval("p Hash.new().empty?"));
public void testSizeRelated() { assertEquals("1", eval("p $h.size")); assertEquals("1", eval("p $h.length")); assertEquals("false", eval("p $h.empty?")); assertEquals("true", eval("p Hash.new().empty?")); }
46258 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46258/2f13ba47385b7584839c7f6f6f1abfee251cbe53/TestRubyHash.java/buggy/org/jruby/test/TestRubyHash.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1225, 8017, 1435, 288, 202, 11231, 8867, 2932, 21, 3113, 5302, 2932, 84, 271, 76, 18, 1467, 7923, 1769, 202, 11231, 8867, 2932, 21, 3113, 5302, 2932, 84, 271, 76, 18, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1225, 8017, 1435, 288, 202, 11231, 8867, 2932, 21, 3113, 5302, 2932, 84, 271, 76, 18, 1467, 7923, 1769, 202, 11231, 8867, 2932, 21, 3113, 5302, 2932, 84, 271, 76, 18, 2...
return Collections.EMPTY_LIST;
return EMPTY_LIST;
public List childNodes() { return Collections.EMPTY_LIST; }
50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/b1293eda8454686e846e2a9837b348e2983bb423/DVarNode.java/clean/src/org/jruby/ast/DVarNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 987, 10582, 1435, 288, 3639, 327, 8984, 67, 7085, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 987, 10582, 1435, 288, 3639, 327, 8984, 67, 7085, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if (pi == null) { pi = new ParamInfo(-1); pi.name = '@'+ci.realName; insertRow[colIndex] = pi; }
protected void setColValue(int colIndex, int jdbcType, Object value, int length) throws SQLException { super.setColValue(colIndex, jdbcType, value, length); if (!onInsertRow && currentRow == null) { throw new SQLException(Messages.get("error.resultset.norow"), "24000"); } colIndex--; ParamInfo pi; ColInfo ci = columns[colIndex]; if (onInsertRow) { pi = insertRow[colIndex]; if (pi == null) { pi = new ParamInfo(-1); pi.name = '@'+ci.realName; insertRow[colIndex] = pi; } } else { if (updateRow == null) { updateRow = new ParamInfo[columnCount]; } pi = updateRow[colIndex]; if (pi == null) { pi = new ParamInfo(-1); pi.name = '@'+ci.realName; updateRow[colIndex] = pi; } } if (value == null) { pi.value = null; pi.length = 0; pi.jdbcType = ci.jdbcType; pi.isSet = true; } else { pi.value = value; pi.length = length; pi.isSet = true; pi.jdbcType = jdbcType; pi.isUnicode = ci.sqlType.equals("ntext") || ci.sqlType.equals("nchar") || ci.sqlType.equals("nvarchar"); } }
2029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2029/cd3de2773354449cdea7612343d8cf539c4e6cf4/MSCursorResultSet.java/clean/src/main/net/sourceforge/jtds/jdbc/MSCursorResultSet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 444, 914, 620, 12, 474, 25893, 16, 509, 16579, 559, 16, 1033, 460, 16, 509, 769, 13, 565, 1216, 6483, 288, 3639, 2240, 18, 542, 914, 620, 12, 1293, 1016, 16, 16579, 559, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 444, 914, 620, 12, 474, 25893, 16, 509, 16579, 559, 16, 1033, 460, 16, 509, 769, 13, 565, 1216, 6483, 288, 3639, 2240, 18, 542, 914, 620, 12, 1293, 1016, 16, 16579, 559, 16...
try { wr_.acquire(); try { c_.clear(); } finally { wr_.release(); }
try { wr_.acquire(); try { c_.clear(); } finally { wr_.release(); } } catch (InterruptedException ex) { Thread.currentThread().interrupt(); throw new UnsupportedOperationException(); }
public void clear() { try { wr_.acquire(); try { c_.clear(); } finally { wr_.release(); } } catch (InterruptedException ex) { Thread.currentThread().interrupt(); throw new UnsupportedOperationException(); } }
4082 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4082/a6a25004fd5e24a1bc5f053aa539d01dc2553fbf/SyncCollection.java/buggy/src/java/org/logicalcobwebs/concurrent/SyncCollection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 2424, 1435, 288, 565, 775, 288, 1377, 12408, 27799, 1077, 1039, 5621, 1377, 775, 288, 3639, 276, 27799, 8507, 5621, 1377, 289, 1377, 3095, 288, 3639, 12408, 27799, 9340, 5621, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 2424, 1435, 288, 565, 775, 288, 1377, 12408, 27799, 1077, 1039, 5621, 1377, 775, 288, 3639, 276, 27799, 8507, 5621, 1377, 289, 1377, 3095, 288, 3639, 12408, 27799, 9340, 5621, 13...
PropertyType type = MetaDataDictionary.getInstance( ).getPropertyType( prop.getTypeCode( ) ); Object value = getProperty( module, propName ); return ( (BooleanPropertyType) type ).toBoolean( module, value );
Object value = getProperty( module, prop ); return prop.getBooleanValue( module, value );
public boolean getBooleanProperty( Module module, String propName ) { ElementPropertyDefn prop = getPropertyDefn( propName ); if ( prop == null ) return false; PropertyType type = MetaDataDictionary.getInstance( ).getPropertyType( prop.getTypeCode( ) ); Object value = getProperty( module, propName ); return ( (BooleanPropertyType) type ).toBoolean( module, value ); }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/e7114ad5bbd4556bfe90ad8fef8d73f7007b3bbf/DesignElement.java/buggy/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/core/DesignElement.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 12835, 1396, 12, 5924, 1605, 16, 514, 9994, 262, 202, 95, 202, 202, 1046, 1396, 3262, 82, 2270, 273, 3911, 3262, 82, 12, 9994, 11272, 202, 202, 430, 261, 2270, 422, 446,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 12835, 1396, 12, 5924, 1605, 16, 514, 9994, 262, 202, 95, 202, 202, 1046, 1396, 3262, 82, 2270, 273, 3911, 3262, 82, 12, 9994, 11272, 202, 202, 430, 261, 2270, 422, 446,...
EclipseSourceDir[] sourceDirs, ArtifactRepository localRepository )
EclipseSourceDir[] sourceDirs, ArtifactRepository localRepository, ArtifactResolver artifactResolver, List remoteArtifactRepositories )
protected void write( File basedir, MavenProject project, List referencedReactorArtifacts, EclipseSourceDir[] sourceDirs, ArtifactRepository localRepository ) throws MojoExecutionException { FileWriter w; try { w = new FileWriter( new File( basedir, ".wtpmodules" ) ); //$NON-NLS-1$ } catch ( IOException ex ) { throw new MojoExecutionException( Messages.getString( "EclipsePlugin.erroropeningfile" ), ex ); //$NON-NLS-1$ } XMLWriter writer = new PrettyPrintXMLWriter( w ); writer.startElement( "project-modules" ); //$NON-NLS-1$ writer.addAttribute( "id", "moduleCoreId" ); //$NON-NLS-1$ //$NON-NLS-2$ writer.startElement( "wb-module" ); //$NON-NLS-1$ writer.addAttribute( "deploy-name", project.getArtifactId() ); //$NON-NLS-1$ writer.startElement( "module-type" ); //$NON-NLS-1$ if ( "war".equals( project.getPackaging() ) ) //$NON-NLS-1$ { // <module-type module-type-id="jst.web"> // <version>2.4</version> // <property name="context-root" value="magnolia"> // </property> // </module-type> writer.addAttribute( "module-type-id", "jst.web" ); //$NON-NLS-1$ //$NON-NLS-2$ writer.startElement( "version" ); //$NON-NLS-1$ // defaults to 2.4, try to detect real version from dependencies String servletVersion = "2.4"; //$NON-NLS-1$ for ( Iterator it = project.getArtifacts().iterator(); it.hasNext(); ) { Artifact artifact = (Artifact) it.next(); if ( "servletapi".equals( artifact.getArtifactId() ) //$NON-NLS-1$ || "geronimo-spec-servlet".equals( artifact.getArtifactId() ) ) //$NON-NLS-1$ { servletVersion = StringUtils.substring( artifact.getVersion(), 0, 3 ); } } writer.writeText( servletVersion ); writer.endElement(); writer.startElement( "property" ); //$NON-NLS-1$ writer.addAttribute( "name", "context-root" ); //$NON-NLS-1$ //$NON-NLS-2$ writer.addAttribute( "value", project.getArtifactId() ); //$NON-NLS-1$ writer.endElement(); } else if ( "ejb".equals( project.getPackaging() ) ) //$NON-NLS-1$ { // <module-type module-type-id="jst.ejb"> // <version>2.1</version> // <property name="java-output-path" value="/bin/"/> // </module-type> writer.addAttribute( "module-type-id", "jst.ejb" ); //$NON-NLS-1$ //$NON-NLS-2$ writer.startElement( "version" ); //$NON-NLS-1$ writer.writeText( "2.1" ); //$NON-NLS-1$ // @todo this is the default, find real ejb version from dependencies writer.endElement(); writer.startElement( "property" ); //$NON-NLS-1$ writer.addAttribute( "name", "java-output-path" ); //$NON-NLS-1$ //$NON-NLS-2$ writer.addAttribute( "value", "/" + //$NON-NLS-1$ //$NON-NLS-2$ EclipseUtils.toRelativeAndFixSeparator( project.getBasedir(), project.getBuild().getOutputDirectory(), false ) ); writer.endElement(); } else { // <module-type module-type-id="jst.utility"> // <property name="java-output-path" value="/bin/"/> // </module-type> writer.addAttribute( "module-type-id", "jst.utility" ); //$NON-NLS-1$ //$NON-NLS-2$ writer.startElement( "property" ); //$NON-NLS-1$ writer.addAttribute( "name", "java-output-path" ); //$NON-NLS-1$ //$NON-NLS-2$ writer.addAttribute( "value", "/" + //$NON-NLS-1$ //$NON-NLS-2$ EclipseUtils.toRelativeAndFixSeparator( project.getBasedir(), project.getBuild().getOutputDirectory(), false ) ); writer.endElement(); } writer.endElement(); // module-type // source and resource paths. // deploy-path is "/" for utility and ejb projects, "/WEB-INF/classes" for webapps String target = "/"; //$NON-NLS-1$ if ( "war".equals( project.getPackaging() ) ) //$NON-NLS-1$ { writeWarSpecificResources( writer, basedir, project, referencedReactorArtifacts, localRepository ); target = "/WEB-INF/classes"; //$NON-NLS-1$ } for ( int j = 0; j < sourceDirs.length; j++ ) { EclipseSourceDir dir = sourceDirs[j]; // test src/resources are not added to wtpmodules if ( !dir.isTest() ) { // <wb-resource deploy-path="/" source-path="/src/java" /> writer.startElement( "wb-resource" ); //$NON-NLS-1$ writer.addAttribute( "deploy-path", target ); //$NON-NLS-1$ writer.addAttribute( "source-path", dir.getPath() ); //$NON-NLS-1$ writer.endElement(); } } writer.endElement(); // wb-module writer.endElement(); // project-modules IOUtil.close( w ); }
51807 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51807/eac4ca45d70990815e5d0899018e4033104a343b/EclipseWtpmodulesWriter.java/buggy/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/EclipseWtpmodulesWriter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1045, 12, 1387, 15573, 16, 17176, 4109, 1984, 16, 987, 8042, 426, 3362, 16981, 16, 7682, 20840, 10472, 1830, 1621, 8526, 1084, 9872, 16, 14022, 3305, 1191, 3305, 16, 14022, 4301,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1045, 12, 1387, 15573, 16, 17176, 4109, 1984, 16, 987, 8042, 426, 3362, 16981, 16, 7682, 20840, 10472, 1830, 1621, 8526, 1084, 9872, 16, 14022, 3305, 1191, 3305, 16, 14022, 4301,...
for (int i = 0; i < tnsnames.length; i++)
for (int i = 0; i < dbNames.length; i++)
public String[] discoverDatabases(String selected) { if (p_discovered != null) return p_discovered; // ArrayList<String> list = new ArrayList<String>(); ArrayList<String> dblist = new ArrayList<String>(); // default value to lowercase or null String def = selected; if (def != null && def.trim().length() == 0) def = null; if (def != null) { list.add(def.toLowerCase()); dblist.add(def.toLowerCase()); } if (m_XE) { String serviceName = "xe"; if (!list.contains(serviceName)) list.add(serviceName); } String path = System.getenv("ORACLE_HOME"); if (path == null) { // Search for Oracle Info path = System.getProperty("java.library.path"); String[] entries = path.split(File.pathSeparator); for (int e = 0; e < entries.length; e++) { String entry = entries[e].toLowerCase(); if (entry.indexOf("ora") != -1 && entry.endsWith("bin")) { StringBuffer sb = getTNS_File (entries[e].substring(0, entries[e].length()-4)); String[] tnsnames = getTNS_Names (sb, true); String[] dbNames = getTNS_Names (sb, false); if (tnsnames != null) { for (int i = 0; i < tnsnames.length; i++) { String tns = tnsnames[i]; // is lower case String db = dbNames[i]; if (!tns.equals(def)) { list.add(tns); dblist.add(db); } else { dblist.remove(0); dblist.add(0, db); } } break; } } } // for all path entries } else { StringBuffer sb = getTNS_File (path); String[] tnsnames = getTNS_Names (sb, true); String[] dbNames = getTNS_Names (sb, false); if (tnsnames != null) { for (int i = 0; i < tnsnames.length; i++) { String tns = tnsnames[i]; // is lower case String db = dbNames[i]; if (!tns.equals(def)) { list.add(tns); dblist.add(db); } else { dblist.remove(0); dblist.add(0, db); } } } } p_discovered = new String[list.size()]; list.toArray(p_discovered); p_dbname = new String[dblist.size()]; dblist.toArray(p_dbname); return p_discovered; } // discoverDatabases
25591 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25591/0b818d3905ddae532c37bcb172838fffa4e7ade1/ConfigOracle.java/buggy/install/src/org/compiere/install/ConfigOracle.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 8526, 10372, 31635, 12, 780, 3170, 13, 202, 95, 202, 202, 430, 261, 84, 67, 2251, 16810, 480, 446, 13, 1082, 202, 2463, 293, 67, 2251, 16810, 31, 202, 202, 759, 202, 20...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 8526, 10372, 31635, 12, 780, 3170, 13, 202, 95, 202, 202, 430, 261, 84, 67, 2251, 16810, 480, 446, 13, 1082, 202, 2463, 293, 67, 2251, 16810, 31, 202, 202, 759, 202, 20...
case 50: break; case 28:
case 48: break; case 27:
public Yytoken yylex() throws java.io.IOException { int zzInput; int zzAction; // cached fields: int zzCurrentPosL; int zzMarkedPosL; int zzEndReadL = zzEndRead; char [] zzBufferL = zzBuffer; char [] zzCMapL = ZZ_CMAP; int [] zzTransL = ZZ_TRANS; int [] zzRowMapL = ZZ_ROWMAP; int [] zzAttrL = ZZ_ATTRIBUTE; while (true) { zzMarkedPosL = zzMarkedPos; zzAction = -1; zzCurrentPosL = zzCurrentPos = zzStartRead = zzMarkedPosL; zzState = zzLexicalState; zzForAction: { while (true) { if (zzCurrentPosL < zzEndReadL) zzInput = zzBufferL[zzCurrentPosL++]; else if (zzAtEOF) { zzInput = YYEOF; break zzForAction; } else { // store back cached positions zzCurrentPos = zzCurrentPosL; zzMarkedPos = zzMarkedPosL; boolean eof = zzRefill(); // get translated positions and possibly new buffer zzCurrentPosL = zzCurrentPos; zzMarkedPosL = zzMarkedPos; zzBufferL = zzBuffer; zzEndReadL = zzEndRead; if (eof) { zzInput = YYEOF; break zzForAction; } else { zzInput = zzBufferL[zzCurrentPosL++]; } } int zzNext = zzTransL[ zzRowMapL[zzState] + zzCMapL[zzInput] ]; if (zzNext == -1) break zzForAction; zzState = zzNext; int zzAttributes = zzAttrL[zzState]; if ( (zzAttributes & 1) == 1 ) { zzAction = zzState; zzMarkedPosL = zzCurrentPosL; if ( (zzAttributes & 8) == 8 ) break zzForAction; } } } // store back cached position zzMarkedPos = zzMarkedPosL; switch (zzAction < 0 ? zzAction : ZZ_ACTION[zzAction]) { case 26: { String s = yytext(); w.write(s); if(debug) log("Matched @media: "+s); } case 32: break; case 18: { String s = yytext(); w.write(s); if(debug) log("Matched unicode: "+s); } case 33: break; case 8: { String s = yytext(); w.write(s); if(debug) log("Matched close braces: "+s); } case 34: break; case 22: { String s = yytext(); w.write(s); if(debug) log("Matched HTML comment: "+s); } case 35: break; case 15: { String s = yytext(); w.write(s); if(debug) log("Matched ~=: "+s); } case 36: break; case 12: { String s = yytext(); if(debug) log("Matched string: "+s); if(paranoidStringCheck && s.indexOf(':') != -1) { w.write("/* Deleted disallowed string */"); log("Deleted disallowed string: "+s); } else { w.write(s); } } case 37: break; case 25: { String s = yytext(); w.write(s); if(debug) log("Matched @page: "+s); } case 38: break; case 13: { String s = yytext(); w.write(s); if(debug) log("Matched number: "+s); } case 39: break; case 1: { String s = yytext(); char c = s.charAt(0); log("Matched anything: "+yytext()+" - ignoring"); w.write("/* ignored unmatched char: "+c+" */"); // single char cannot break out of comment } case 40: break; case 6: { String s = yytext(); w.write(s); if(debug) log("Matched semicolon: "+s); } case 41: break; case 20: { String s = yytext(); if(debug) log("Got hexcolor: "+s); w.write(s); } case 42: break; case 7: { String s = yytext(); w.write(s); if(debug) log("Matched open braces: "+s); } case 43: break; case 2: { String s = yytext(); w.write(s); if(debug) log("Matched ident: "+s); } case 44: break; case 24: { String s = yytext(); w.write(s); if(debug) log("Matched unicode range: "+s); } case 45: break; case 29: { String s = yytext(); w.write(s); if(debug) log("Matched @font-face: "+s); } case 46: break; case 9: { String s = yytext(); if(s.startsWith("url")) throwError("Invalid contents of url()"); w.write(s); if(debug) log("Matched function start: "+s); } case 47: break; case 17: { String s = yytext(); w.write(s); if(debug) log("Matched HTML comment: "+s); } case 48: break; case 3: { String s = yytext(); w.write(s); if(debug) log("Matched whitespace: "+s); } case 49: break; case 23: { String s = yytext(); if(debug) log("Ignoring unrecognizable url: "+s); w.write("/* Ignoring unmatchable URL */url()"); } case 50: break; case 28: { String s = yytext(); if(debug) log("Found @import: "+s); s = s.substring("@import".length()); s = s.trim(); DecodedStringThingy dst = new DecodedStringThingy(s); s = dst.data; if(debug) log("URL: "+s); s = processImportURL(s); dst.data = s; if(debug) log("Processed URL: "+s); if(dst.quote == ' ') dst.quote = '\"'; if (!(s == null || s.equals(""))) { if(debug) log("URL now: "+s); s = "@import "+dst.toString(); if(debug) log("Writing: "+s); w.write(s); } else if(debug) log("Dropped @import"); } case 51: break; case 31: { String s = yytext(); w.write(s); if(debug) log("Matched important: "+s); } case 52: break; case 21: { String s = yytext(); StringBuffer sb = new StringBuffer(s.length()); sb.append("/* "); boolean inPrefix = true; for(int i=2;i<s.length()-2;i++) { char c = s.charAt(i); if(inPrefix && Character.isWhitespace(c)) { continue; } inPrefix = false; if(Character.isDigit(c) || Character.isWhitespace(c) || Character.isLetter(c) || c == '.' || c == '_' || c == '-') { // No @, no !, etc; IE has been known to do things with comments // in CSS, and other browsers may too sb.append(c); } } while(Character.isWhitespace(sb.charAt(sb.length()-1))) sb.deleteCharAt(sb.length()-1); sb.append(" */"); w.write(sb.toString()); if(debug) log("Matched comment: "+s+" -> "+sb.toString()); } case 53: break; case 19: { if(!deleteErrors) { throwError("Unknown @identifier "+yytext()); } else { String s = yytext(); if(debug) log("Discarded identifier: "+s); // Ignore } } case 54: break; case 27: { // This is horrible. However it seems that there is no other way to do it with either jflex or CUP, as {URL} cannot be an unambiguous token :( String s = yytext(); if(debug) log("Recognized URL: "+s); DecodedStringThingy dst = new DecodedStringThingy(s); if(!dst.url) { throw new IllegalStateException("parsing url().. isn't a url()"); } if(dst.suffix.length() > 0) { yypushback(dst.suffix.length()); dst.suffix = ""; } s = dst.data; if(debug) log("URL now: "+s); s = processURL(s); dst.data = s; if(s == null || s.equals("")) { if(debug) log("URL invalid"); w.write("url()"); } else { s = dst.toString(); if(debug) log("Writing: "+s); w.write(s); } } case 55: break; case 11: { String s = yytext(); w.write(s); if(debug) log("Matched measurement: "+s); } case 56: break; case 16: { String s = yytext(); w.write(s); if(debug) log("Matched |=: "+s); } case 57: break; case 30: { String s = yytext(); detectedCharset = s; if(debug) log("Matched and ignoring charset: "+s); // Ignore } case 58: break; case 10: { if(postBadImportFlag) { // Ignore postBadImportFlag = false; if(debug) log("Ignoring mediums list because after bad import: "+ yytext()); } else { String s = yytext(); w.write(s); if(debug) log("Matched and passing on mediums list: "+s); } } case 59: break; case 4: { String s = yytext(); w.write(s); if(debug) log("Matched single char: "+s); } case 60: break; case 14: { String s = yytext(); w.write(s); if(debug) log("Matched #name: "+s); } case 61: break; case 5: { String s = yytext(); w.write(s); if(debug) log("Matched function end: "+s); } case 62: break; default: if (zzInput == YYEOF && zzStartRead == zzCurrentPos) { zzAtEOF = true; return null; } else { zzScanError(ZZ_NO_MATCH); } } } }
8026 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8026/8611b2af3ba1b1861afc23367621eb525f20ee2a/CSSTokenizerFilter.java/buggy/src/freenet/clients/http/filter/CSSTokenizerFilter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1624, 93, 2316, 677, 1362, 92, 1435, 1216, 2252, 18, 1594, 18, 14106, 288, 565, 509, 11273, 1210, 31, 565, 509, 11273, 1803, 31, 565, 368, 3472, 1466, 30, 565, 509, 11273, 3935, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1624, 93, 2316, 677, 1362, 92, 1435, 1216, 2252, 18, 1594, 18, 14106, 288, 565, 509, 11273, 1210, 31, 565, 509, 11273, 1803, 31, 565, 368, 3472, 1466, 30, 565, 509, 11273, 3935, 1...
XML replace(long index, Object xml)
private void replace(XmlCursor destCurs, XML newValue)
XML replace(long index, Object xml) { XMLList xlChildToReplace = (XMLList)child(index); if (xlChildToReplace.length() > 0) { // One exists an that index XML childToReplace = (XML)xlChildToReplace.item(0); insertChildAfter(childToReplace, xml); removeChild(index); } return this; }
47345 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47345/087a9c630080435e55ad1f50f28e17aa302e575d/XML.java/buggy/xmlimplsrc/org/mozilla/javascript/xmlimpl/XML.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1453, 12, 4432, 6688, 1570, 2408, 87, 16, 3167, 6129, 13, 565, 288, 3639, 3167, 682, 15643, 1763, 774, 5729, 273, 261, 4201, 682, 13, 3624, 12, 1615, 1769, 3639, 309, 261, 18...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1453, 12, 4432, 6688, 1570, 2408, 87, 16, 3167, 6129, 13, 565, 288, 3639, 3167, 682, 15643, 1763, 774, 5729, 273, 261, 4201, 682, 13, 3624, 12, 1615, 1769, 3639, 309, 261, 18...
protected void addRadioButtons(Composite buttonComposite) {
protected void addRadioButtons(Composite buttonComposite) {
protected void addRadioButtons(Composite buttonComposite) { RepositoryTaskData taskData = getRepositoryTaskData(); FormToolkit toolkit = new FormToolkit(buttonComposite.getDisplay()); int i = 0; Button selected = null; radios = new Button[taskData.getOperations().size()]; radioOptions = new Control[taskData.getOperations().size()]; for (Iterator<RepositoryOperation> it = taskData.getOperations().iterator(); it.hasNext();) { RepositoryOperation o = it.next(); radios[i] = toolkit.createButton(buttonComposite, "", SWT.RADIO); radios[i].setFont(TEXT_FONT); GridData radioData = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING); if (!o.hasOptions() && !o.isInput()) radioData.horizontalSpan = 4; else radioData.horizontalSpan = 3; radioData.heightHint = 20; String opName = o.getOperationName(); opName = opName.replaceAll("</.*>", ""); opName = opName.replaceAll("<.*>", ""); radios[i].setText(opName); radios[i].setLayoutData(radioData); // radios[i].setBackground(background); radios[i].addSelectionListener(new RadioButtonListener()); radios[i].addListener(SWT.FocusIn, new GenericListener()); if (o.hasOptions()) { radioData = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING); radioData.horizontalSpan = 1; radioData.heightHint = 20; radioData.widthHint = AbstractRepositoryTaskEditor.WRAP_LENGTH; // radioOptions[i] = new Combo(buttonComposite, SWT.NULL); radioOptions[i] = new CCombo(buttonComposite, SWT.FLAT | SWT.READ_ONLY); toolkit.adapt(radioOptions[i], true, true); // radioOptions[i] = new Combo(buttonComposite, SWT.MULTI | // SWT.V_SCROLL | SWT.READ_ONLY); // radioOptions[i].setData(FormToolkit.KEY_DRAW_BORDER, // FormToolkit.TEXT_BORDER); // radioOptions[i] = new Combo(buttonComposite, // SWT.NO_BACKGROUND | SWT.MULTI | SWT.V_SCROLL // | SWT.READ_ONLY); radioOptions[i].setFont(TEXT_FONT); radioOptions[i].setLayoutData(radioData); // radioOptions[i].setBackground(background); Object[] a = o.getOptionNames().toArray(); Arrays.sort(a); for (int j = 0; j < a.length; j++) { ((CCombo) radioOptions[i]).add((String) a[j]); } ((CCombo) radioOptions[i]).select(0); ((CCombo) radioOptions[i]).addSelectionListener(new RadioButtonListener()); } else if (o.isInput()) { radioData = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING); radioData.horizontalSpan = 1; radioData.widthHint = 120; // TODO: add condition for if opName = reassign to... String assignmentValue = ""; if (opName.equals(REASSIGN_BUG_TO)) { assignmentValue = repository.getUserName(); } radioOptions[i] = toolkit.createText(buttonComposite, assignmentValue);// , // SWT.SINGLE); radioOptions[i].setFont(TEXT_FONT); radioOptions[i].setLayoutData(radioData); // radioOptions[i].setBackground(background); ((Text) radioOptions[i]).setText(o.getInputValue()); ((Text) radioOptions[i]).addModifyListener(new RadioButtonListener()); } if (i == 0 || o.isChecked()) { if (selected != null) selected.setSelection(false); selected = radios[i]; radios[i].setSelection(true); if (o.hasOptions() && o.getOptionSelection() != null) { int j = 0; for (String s : ((CCombo) radioOptions[i]).getItems()) { if (s.compareTo(o.getOptionSelection()) == 0) { ((CCombo) radioOptions[i]).select(j); } j++; } } taskData.setSelectedOperation(o); } i++; } toolkit.paintBordersFor(buttonComposite); }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/9da33c2a466e9470c85b9a43decd59aafc4b21c8/AbstractRepositoryTaskEditor.java/clean/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/AbstractRepositoryTaskEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 527, 19984, 14388, 12, 9400, 3568, 9400, 13, 288, 9506, 202, 3305, 2174, 751, 1562, 751, 273, 8261, 2174, 751, 5621, 202, 202, 1204, 6364, 8691, 5226, 8691, 273, 394, 2748...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 527, 19984, 14388, 12, 9400, 3568, 9400, 13, 288, 9506, 202, 3305, 2174, 751, 1562, 751, 273, 8261, 2174, 751, 5621, 202, 202, 1204, 6364, 8691, 5226, 8691, 273, 394, 2748...
for(int i=0;i<dataBlockStatus.length;i++) dataBlockStatus[i].cancel(); for(int i=0;i<checkBlockStatus.length;i++) checkBlockStatus[i].cancel();
for(int i=0;i<dataBlockStatus.length;i++) { SingleFileFetcher f = dataBlockStatus[i]; if(f != null) f.cancel(); } for(int i=0;i<checkBlockStatus.length;i++) { SingleFileFetcher f = checkBlockStatus[i]; if(f != null) f.cancel(); }
private void startDecode() { synchronized(this) { if(startedDecode) return; startedDecode = true; } for(int i=0;i<dataBlockStatus.length;i++) dataBlockStatus[i].cancel(); for(int i=0;i<checkBlockStatus.length;i++) checkBlockStatus[i].cancel(); Runnable r = new Decoder(); Thread t = new Thread(r, "Decoder for "+this); t.setDaemon(true); t.start(); }
45341 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45341/9d1f8fb16fdf7b68cf688782b98904ee023f6ccb/SplitFileFetcherSegment.java/buggy/src/freenet/client/async/SplitFileFetcherSegment.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 787, 6615, 1435, 288, 202, 202, 22043, 12, 2211, 13, 288, 1082, 202, 430, 12, 14561, 6615, 13, 327, 31, 1082, 202, 14561, 6615, 273, 638, 31, 202, 202, 97, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 787, 6615, 1435, 288, 202, 202, 22043, 12, 2211, 13, 288, 1082, 202, 430, 12, 14561, 6615, 13, 327, 31, 1082, 202, 14561, 6615, 273, 638, 31, 202, 202, 97, 202, 202, 1...