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
AST __t463 = _t;
AST __t192 = _t;
public final Expression constructor(AST _t, PathExpr path ) throws RecognitionException, PermissionDeniedException,EXistException,XPathException { Expression step; org.exist.xquery.parser.XQueryAST constructor_AST_in = (_t == ASTNULL) ? null : (org.exist.xquery.parser.XQueryAST)_t; org.exist.xquery.parser.XQueryAST qn = null; org.exist.xquery.parser.XQueryAST prefix = null; org.exist.xquery.parser.XQueryAST uri = null; org.exist.xquery.parser.XQueryAST attr = null; org.exist.xquery.parser.XQueryAST pid = null; org.exist.xquery.parser.XQueryAST e = null; org.exist.xquery.parser.XQueryAST attrName = null; org.exist.xquery.parser.XQueryAST attrVal = null; org.exist.xquery.parser.XQueryAST pcdata = null; org.exist.xquery.parser.XQueryAST t = null; org.exist.xquery.parser.XQueryAST tc = null; org.exist.xquery.parser.XQueryAST d = null; org.exist.xquery.parser.XQueryAST cdata = null; org.exist.xquery.parser.XQueryAST p = null; org.exist.xquery.parser.XQueryAST l = null; step= null; PathExpr elementContent= null; Expression contentExpr= null; Expression qnameExpr = null; if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case COMP_ELEM_CONSTRUCTOR: { AST __t447 = _t; qn = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,COMP_ELEM_CONSTRUCTOR); _t = _t.getFirstChild(); ElementConstructor c= new ElementConstructor(context); c.setASTNode(qn); step= c; SequenceConstructor construct = new SequenceConstructor(context); EnclosedExpr enclosed = new EnclosedExpr(context); enclosed.addPath(construct); c.setContent(enclosed); PathExpr qnamePathExpr = new PathExpr(context); c.setNameExpr(qnamePathExpr); qnameExpr=expr(_t,qnamePathExpr); _t = _retTree; { _loop450: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case COMP_NS_CONSTRUCTOR: { AST __t449 = _t; prefix = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,COMP_NS_CONSTRUCTOR); _t = _t.getFirstChild(); uri = (org.exist.xquery.parser.XQueryAST)_t; match(_t,STRING_LITERAL); _t = _t.getNextSibling(); _t = __t449; _t = _t.getNextSibling(); c.addNamespaceDecl(prefix.getText(), uri.getText()); break; } case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case BEFORE: case AFTER: case ATTRIBUTE_TEST: case COMP_ELEM_CONSTRUCTOR: case COMP_ATTR_CONSTRUCTOR: case COMP_TEXT_CONSTRUCTOR: case COMP_COMMENT_CONSTRUCTOR: case COMP_PI_CONSTRUCTOR: case NCNAME: case EQ: case STRING_LITERAL: case LITERAL_element: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_some: case LITERAL_every: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_instance: case LITERAL_cast: case LT: case GT: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GTEQ: case LTEQ: case LITERAL_is: case LITERAL_isnot: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case LITERAL_attribute: case LITERAL_comment: case 127: case SELF: case XML_COMMENT: case XML_PI: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_descendant: case 139: case 140: case LITERAL_following: case LITERAL_parent: case LITERAL_ancestor: case 144: case 145: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case LITERAL_preceding: case COMP_DOC_CONSTRUCTOR: { elementContent = new PathExpr(context); contentExpr=expr(_t,elementContent); _t = _retTree; construct.addPath(elementContent); break; } default: { break _loop450; } } } while (true); } _t = __t447; _t = _t.getNextSibling(); break; } case COMP_ATTR_CONSTRUCTOR: { AST __t451 = _t; attr = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,COMP_ATTR_CONSTRUCTOR); _t = _t.getFirstChild(); DynamicAttributeConstructor a= new DynamicAttributeConstructor(context); a.setASTNode(attr); step = a; PathExpr qnamePathExpr = new PathExpr(context); a.setNameExpr(qnamePathExpr); elementContent = new PathExpr(context); a.setContentExpr(elementContent); qnameExpr=expr(_t,qnamePathExpr); _t = _retTree; contentExpr=expr(_t,elementContent); _t = _retTree; _t = __t451; _t = _t.getNextSibling(); break; } case COMP_PI_CONSTRUCTOR: { AST __t452 = _t; pid = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,COMP_PI_CONSTRUCTOR); _t = _t.getFirstChild(); DynamicPIConstructor pd= new DynamicPIConstructor(context); pd.setASTNode(pid); step = pd; PathExpr qnamePathExpr = new PathExpr(context); pd.setNameExpr(qnamePathExpr); elementContent = new PathExpr(context); pd.setContentExpr(elementContent); qnameExpr=expr(_t,qnamePathExpr); _t = _retTree; contentExpr=expr(_t,elementContent); _t = _retTree; _t = __t452; _t = _t.getNextSibling(); break; } case ELEMENT: { AST __t453 = _t; e = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,ELEMENT); _t = _t.getFirstChild(); ElementConstructor c= new ElementConstructor(context, e.getText()); c.setASTNode(e); step= c; { _loop459: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==ATTRIBUTE)) { AST __t455 = _t; attrName = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,ATTRIBUTE); _t = _t.getFirstChild(); AttributeConstructor attrib= new AttributeConstructor(context, attrName.getText()); attrib.setASTNode(attrName); { int _cnt458=0; _loop458: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ATTRIBUTE_CONTENT: { attrVal = (org.exist.xquery.parser.XQueryAST)_t; match(_t,ATTRIBUTE_CONTENT); _t = _t.getNextSibling(); attrib.addValue(attrVal.getText()); break; } case LCURLY: { AST __t457 = _t; org.exist.xquery.parser.XQueryAST tmp71_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LCURLY); _t = _t.getFirstChild(); PathExpr enclosed= new PathExpr(context); expr(_t,enclosed); _t = _retTree; attrib.addEnclosedExpr(enclosed); _t = __t457; _t = _t.getNextSibling(); break; } default: { if ( _cnt458>=1 ) { break _loop458; } else {throw new NoViableAltException(_t);} } } _cnt458++; } while (true); } c.addAttribute(attrib); _t = __t455; _t = _t.getNextSibling(); } else { break _loop459; } } while (true); } { _loop461: do { if (_t==null) _t=ASTNULL; if ((_tokenSet_1.member(_t.getType()))) { if (elementContent == null) { elementContent= new PathExpr(context); c.setContent(elementContent); } contentExpr=constructor(_t,elementContent); _t = _retTree; elementContent.add(contentExpr); } else { break _loop461; } } while (true); } _t = __t453; _t = _t.getNextSibling(); break; } case TEXT: { AST __t462 = _t; pcdata = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,TEXT); _t = _t.getFirstChild(); TextConstructor text= new TextConstructor(context, pcdata.getText()); text.setASTNode(pcdata); step= text; _t = __t462; _t = _t.getNextSibling(); break; } case COMP_TEXT_CONSTRUCTOR: { AST __t463 = _t; t = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,COMP_TEXT_CONSTRUCTOR); _t = _t.getFirstChild(); elementContent = new PathExpr(context); DynamicTextConstructor text = new DynamicTextConstructor(context, elementContent); text.setASTNode(t); step= text; contentExpr=expr(_t,elementContent); _t = _retTree; _t = __t463; _t = _t.getNextSibling(); break; } case COMP_COMMENT_CONSTRUCTOR: { AST __t464 = _t; tc = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,COMP_COMMENT_CONSTRUCTOR); _t = _t.getFirstChild(); elementContent = new PathExpr(context); DynamicCommentConstructor comment = new DynamicCommentConstructor(context, elementContent); comment.setASTNode(t); step= comment; contentExpr=expr(_t,elementContent); _t = _retTree; _t = __t464; _t = _t.getNextSibling(); break; } case COMP_DOC_CONSTRUCTOR: { AST __t465 = _t; d = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,COMP_DOC_CONSTRUCTOR); _t = _t.getFirstChild(); elementContent = new PathExpr(context); DocumentConstructor doc = new DocumentConstructor(context, elementContent); doc.setASTNode(d); step= doc; contentExpr=expr(_t,elementContent); _t = _retTree; _t = __t465; _t = _t.getNextSibling(); break; } case XML_COMMENT: { AST __t466 = _t; cdata = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,XML_COMMENT); _t = _t.getFirstChild(); CommentConstructor comment= new CommentConstructor(context, cdata.getText()); comment.setASTNode(cdata); step= comment; _t = __t466; _t = _t.getNextSibling(); break; } case XML_PI: { AST __t467 = _t; p = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,XML_PI); _t = _t.getFirstChild(); PIConstructor pi= new PIConstructor(context, p.getText()); pi.setASTNode(p); step= pi; _t = __t467; _t = _t.getNextSibling(); break; } case LCURLY: { AST __t468 = _t; l = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,LCURLY); _t = _t.getFirstChild(); EnclosedExpr subexpr= new EnclosedExpr(context); subexpr.setASTNode(l); step=expr(_t,subexpr); _t = _retTree; step= subexpr; _t = __t468; _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/06537933dfbae14c444eb15b44247b312b5f47d7/XQueryTreeParser.java/clean/src/org/exist/xquery/parser/XQueryTreeParser.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...
if(ret != null && !ret.isFinished()) return ret;
if((ret != null) && !ret.isFinished()) return ret;
public synchronized RandomGrabArrayItem removeRandom() { while(true) { if(index == 0) return null; int i = rand.nextInt(index); RandomGrabArrayItem ret = reqs[i]; reqs[i] = reqs[--index]; reqs[index] = null; if(ret != null) contents.remove(ret); // Shrink array if(index < reqs.length / 4 && reqs.length > MIN_SIZE) { // Shrink array int newSize = Math.max(index * 2, MIN_SIZE); RandomGrabArrayItem[] r = new RandomGrabArrayItem[newSize]; System.arraycopy(reqs, 0, r, 0, r.length); reqs = r; } if(ret != null && !ret.isFinished()) return ret; } }
56348 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56348/ca136843ae9ecb30cadada58a33a5dc2cf8ad064/RandomGrabArray.java/clean/src/freenet/support/RandomGrabArray.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3852, 8072, 14571, 70, 1076, 1180, 1206, 8529, 1435, 288, 202, 202, 17523, 12, 3767, 13, 288, 1082, 202, 430, 12, 1615, 422, 374, 13, 327, 446, 31, 1082, 202, 474, 277, 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, 482, 3852, 8072, 14571, 70, 1076, 1180, 1206, 8529, 1435, 288, 202, 202, 17523, 12, 3767, 13, 288, 1082, 202, 430, 12, 1615, 422, 374, 13, 327, 446, 31, 1082, 202, 474, 277, 273, ...
public void testChainEffect() { model0.insertChar('\"'); model0.insertChar('\\'); model0.insertChar('\"'); model0.insertChar('\"'); model0.insertChar('\"'); model0.insertChar('\\'); model0.insertChar('\"'); model0.insertChar('\"'); model0.insertChar('\"'); model0.insertChar('\\'); model0.insertChar('\"'); model0.insertChar('\"'); // "\"""\"""\""# model0.move(-1); assertEquals("#0.0", "\"", model0.currentToken().getType()); assertTrue("#0.1", model0.currentToken().isClosed()); model0.move(-2); // "\"""\"""#\"" assertEquals("#1.0", "\\\"", model0.currentToken().getType()); assertEquals("#1.1", INSIDE_QUOTE, stateOfCurrentToken(model0)); model0.move(-1); assertEquals("#1.2", "\"", model0.currentToken().getType()); assertEquals("#1.3", FREE, stateOfCurrentToken(model0)); assertTrue("#1.4", model0.currentToken().isOpen()); model0.move(1); model0.insertChar('\\'); // "\"""\"""\#\"" assertEquals("#2.0", "\\\\", model0.currentToken().getType()); assertEquals("#2.1", INSIDE_QUOTE, stateOfCurrentToken(model0)); assertEquals("#2.2", 10, model0.absOffset()); model0.move(-2); assertEquals("#2.3", "\"", model0.currentToken().getType()); assertEquals("#2.4", FREE, stateOfCurrentToken(model0)); assertTrue("#2.5", model0.currentToken().isOpen()); model0.move(3); assertEquals("#2.6", "\"", model0.currentToken().getType()); assertEquals("#2.7", FREE, stateOfCurrentToken(model0)); assertTrue("#2.8", model0.currentToken().isClosed()); model0.move(-1); model0.insertChar('\"'); // "\"""\"""\"#\"" assertEquals("#3.0", "\\\"", model0.currentToken().getType()); assertEquals("#3.1", INSIDE_QUOTE, stateOfCurrentToken(model0)); assertEquals("#3.2", 11, model0.absOffset()); model0.move(-2); assertEquals("#3.3", "\\\"", model0.currentToken().getType()); assertEquals("#3.4", INSIDE_QUOTE, stateOfCurrentToken(model0)); model0.move(4); assertEquals("#3.5", "\"", model0.currentToken().getType()); assertEquals("#3.6", FREE, stateOfCurrentToken(model0)); assertTrue("#3.7", model0.currentToken().isClosed()); model0.move(-12); // "#\"""\"""\"\"" model0.delete(1); // "#"""\"""\"\"" model0.move(-1); // #""""\"""\"\"" assertEquals("#4.0", "\"", model0.currentToken().getType()); assertTrue("#4.1", model0.currentToken().isOpen()); assertEquals("#4.2", FREE, stateOfCurrentToken(model0)); model0.move(1); // "#"""\"""\"\"" assertEquals("#4.3", "\"", model0.currentToken().getType()); assertTrue("#4.4", model0.currentToken().isClosed()); assertEquals("#4.5", FREE, stateOfCurrentToken(model0)); model0.move(1); // ""#""\"""\"\"" assertEquals("#5.0", "\"", model0.currentToken().getType()); assertTrue("#5.1", model0.currentToken().isOpen()); assertEquals("#5.2", FREE, stateOfCurrentToken(model0)); model0.move(1); // """#"\"""\"\"" assertEquals("#5.3", "\"", model0.currentToken().getType()); assertTrue("#5.4", model0.currentToken().isClosed()); assertEquals("#5.5", FREE, stateOfCurrentToken(model0)); model0.move(1); // """"#\"""\"\"" assertEquals("#5.6", "\\\"", model0.currentToken().getType()); assertEquals("#5.7", FREE, stateOfCurrentToken(model0)); model0.move(2); // """"\"#""\"\"" assertEquals("#6.0", "\"", model0.currentToken().getType()); assertTrue("#6.1", model0.currentToken().isOpen()); assertEquals("#6.2", FREE, stateOfCurrentToken(model0)); model0.move(1); // """"\""#"\"\"" assertEquals("#6.3", "\"", model0.currentToken().getType()); assertTrue("#6.4", model0.currentToken().isClosed()); assertEquals("#6.5", FREE, stateOfCurrentToken(model0)); model0.move(1); // """"\"""#\"\"" assertEquals("#6.6", "\\\"", model0.currentToken().getType()); assertEquals("#6.7", FREE, stateOfCurrentToken(model0)); model0.move(2); // """"\"""\"#\"" assertEquals("#6.0", "\\\"", model0.currentToken().getType()); assertEquals("#6.1", FREE, stateOfCurrentToken(model0)); model0.move(2); // """"\"""\"\"#" assertEquals("#6.2", "\"", model0.currentToken().getType()); assertTrue("#6.3", model0.currentToken().isOpen()); assertEquals("#6.4", FREE, stateOfCurrentToken(model0)); }
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/e325016b29b8dde8e3ba0908ae34d55edb22c64f/BackSlashTest.java/clean/drjava/src/edu/rice/cs/drjava/BackSlashTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6459, 3813, 3893, 12477, 1435, 95, 2284, 20, 18, 6387, 2156, 2668, 2412, 8284, 2284, 20, 18, 6387, 2156, 2668, 1695, 8284, 2284, 20, 18, 6387, 2156, 2668, 2412, 8284, 2284, 20, 18, 6387,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6459, 3813, 3893, 12477, 1435, 95, 2284, 20, 18, 6387, 2156, 2668, 2412, 8284, 2284, 20, 18, 6387, 2156, 2668, 1695, 8284, 2284, 20, 18, 6387, 2156, 2668, 2412, 8284, 2284, 20, 18, 6387,...
public String getSubNumber(){ return getStringColumnValue(getColumnNameSubNumber()); }
public String getSubNumber() { return getStringColumnValue(getColumnNameSubNumber()); }
public String getSubNumber(){ return getStringColumnValue(getColumnNameSubNumber()); }
57001 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57001/33e5c85ca31478329116ab80b95fd07320394530/AccountPhoneEntryBMPBean.java/buggy/src/java/com/idega/block/finance/data/AccountPhoneEntryBMPBean.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 7040, 1854, 1435, 95, 565, 327, 4997, 29515, 12, 588, 8516, 1676, 1854, 10663, 225, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 7040, 1854, 1435, 95, 565, 327, 4997, 29515, 12, 588, 8516, 1676, 1854, 10663, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
addReturnThisMethod(constraint, "addBindingsForSymbol" + symbol, parameters);
addReturnThisMethod(constraint, "addBindingsForSymbol" + symbol, parametersTwoInts);
protected void fillInConstraintClass(TraceMatch tm, SootClass constraint, SootClass disjunct) { /* * General ideas are as follows: * - We need a class Constraint$TraceMatchName which holds a set of disjuncts and * provides operations to form conjunctions and disjunctions. This may or may not * need to be specialised to the tracematch. * - A class Disjunct$TraceMatchName, which has fields for each tracematch variable * that contain bindings (if appropriate), flags indicating if each variable is * bound, and sets of negative bindings for each variable. Provides methods to * form conjunctions and disjunctions with other disjuncts, get the values of * the variables, and introduce new (positive or negative) bindings. * - Classes Disjunct$TraceMatchName$<StateNumber> extending Disjunct$TraceMatchName * which override certain parts of the behaviour by specialising it to the current * state. In particular, they determine whether weak or strong references to * bound objects need to be kept for each variable, and whether there is a need to * store negative bindings or not. */ // Declare classes Type setType = RefType.v("java.util.Set"); SootField trueConstraint = new SootField("trueC", constraint.getType(), Modifier.PUBLIC | Modifier.FINAL | Modifier.STATIC); constraint.addField(trueConstraint); SootField falseConstraint = new SootField("falseC", constraint.getType(), Modifier.PUBLIC | Modifier.FINAL | Modifier.STATIC); constraint.addField(falseConstraint); SootField disjuncts = new SootField("disjuncts", setType, Modifier.PUBLIC); constraint.addField(disjuncts); addConstraintOrMethod(constraint, disjunct); // addConstraintAndMethod(constraint, disjunct); // not needed with addBindings addConstraintCopyMethod(constraint, disjunct); // list needed for symbols that bind no variables -- then the add(Neg)Bindings methods // take a single int List parameters = new LinkedList(); parameters.add(IntType.v()); Iterator symbolIt = tm.getSym_to_vars().keySet().iterator(); String symbol; while(symbolIt.hasNext()) { symbol = (String)symbolIt.next(); /////////// handling for variable-less symbols/tracematches if(tm.getVariableOrder(symbol).isEmpty()) { // if this symbol has no vars -- return this from addBindingsForSymbol... addReturnThisMethod(constraint, "addBindingsForSymbol" + symbol, parameters); // ... and falseC from addNegBindingsForSymbol FieldRef falseC = Jimple.v().newStaticFieldRef(Scene.v().makeFieldRef(constraint, "falseC", constraint.getType(), true)); addReturnFieldMethod(constraint, "addNegativeBindingsForSymbol" + symbol, falseC, parameters); continue; } addAddBindingsDispatchMethod(constraint, disjunct, "addBindingsForSymbol" + symbol, tm.getVariableOrder(symbol)); addAddNegativeBindingsDispatchMethod(constraint, disjunct, "addNegativeBindingsForSymbol" + symbol, tm.getVariableOrder(symbol)); } addConstraintGetDisjunctIteratorMethod(constraint, disjunct); addConstraintInitialiser(constraint); addConstraintStaticInitialiser(constraint, disjunct); }
236 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/236/afa539172bd164c0d707aed6972fcb4aa1932478/TraceMatchCodeGen.java/clean/aop/abc/src/abc/tm/weaving/weaver/TraceMatchCodeGen.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 3636, 382, 5806, 797, 12, 3448, 2060, 6118, 16, 348, 1632, 797, 4954, 16, 348, 1632, 797, 1015, 78, 6931, 13, 288, 3639, 1748, 540, 380, 9544, 10572, 345, 854, 487, 13040, 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, 3636, 382, 5806, 797, 12, 3448, 2060, 6118, 16, 348, 1632, 797, 4954, 16, 348, 1632, 797, 1015, 78, 6931, 13, 288, 3639, 1748, 540, 380, 9544, 10572, 345, 854, 487, 13040, 30...
generateCodeFile(document, xformDir + "/MessageSubclass.xsl", new String[] {"messageName", XSLPARAM_SERIAL_UID}, new String[] {messageName, SERIAL_UID_STR}, outputBaseDir + "/quickfix/fix4" + fixVersion + "/" + messageName + ".java");
generateCodeFile(document, xformDir + "/MessageSubclass.xsl", new String[] { "itemName", XSLPARAM_SERIAL_UID }, new String[] { messageName, SERIAL_UID_STR }, outputBaseDir + "/quickfix/fix4" + fixVersion + "/" + messageName + ".java");
private void generateMessageSubclasses() throws ParserConfigurationException, SAXException, IOException, TransformerConfigurationException, FileNotFoundException, TransformerFactoryConfigurationError, TransformerException { for (int fixVersion = 0; fixVersion < 5; fixVersion++) { Document document = getSpecification(fixVersion); List messageNames = getNames(document.getDocumentElement(), "messages/message"); for (int i = 0; i < messageNames.size(); i++) { String messageName = (String) messageNames.get(i); //if (!messageName.equals("Advertisement")) continue; log.info("message (FIX 4." + fixVersion + "): " + messageName); generateCodeFile(document, xformDir + "/MessageSubclass.xsl", new String[] {"messageName", XSLPARAM_SERIAL_UID}, new String[] {messageName, SERIAL_UID_STR}, outputBaseDir + "/quickfix/fix4" + fixVersion + "/" + messageName + ".java"); } } }
52526 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52526/880f36f43ee932706f3ec9a760b6d61a8d10418a/JavaCodeGenerator.java/clean/src/quickfix/codegen/JavaCodeGenerator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2103, 1079, 1676, 4701, 1435, 1216, 6783, 10737, 16, 14366, 16, 5411, 1860, 16, 11519, 10737, 16, 13707, 16, 5411, 11519, 1733, 1750, 668, 16, 21684, 288, 3639, 364, 261, 474, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 2103, 1079, 1676, 4701, 1435, 1216, 6783, 10737, 16, 14366, 16, 5411, 1860, 16, 11519, 10737, 16, 13707, 16, 5411, 11519, 1733, 1750, 668, 16, 21684, 288, 3639, 364, 261, 474, ...
portletMode = evt.getMode();
portletMode = titleBarEvent.getMode();
public void actionPerformed(GridSphereEvent event) throws PortletLayoutException, IOException { PortletTitleBarEvent evt = new PortletTitleBarEventImpl(event, COMPONENT_ID); PortletRequest req = event.getPortletRequest(); if (evt.getAction() == PortletTitleBarEvent.Action.WINDOW_MODIFY) { PortletResponse res = event.getPortletResponse(); windowState = evt.getState(); WindowEvent winEvent = null; if (windowState == PortletWindow.State.MAXIMIZED) { winEvent = new WindowEventImpl(req, WindowEvent.WINDOW_MAXIMIZED); } else if (windowState == PortletWindow.State.MINIMIZED) { winEvent = new WindowEventImpl(req, WindowEvent.WINDOW_MINIMIZED); } else if (windowState == PortletWindow.State.RESIZING) { winEvent = new WindowEventImpl(req, WindowEvent.WINDOW_RESTORED); } if (winEvent != null) { try { PortletInvoker.windowEvent(portletClass, winEvent, req, res); } catch (PortletException e) { hasError = true; errorMessage += "Failed to invoke window event method of portlet: " + portletClass; } } } else if (evt.getAction() == PortletTitleBarEvent.Action.MODE_MODIFY) { previousMode = portletMode; portletMode = evt.getMode(); req.setMode(portletMode); req.setAttribute(SportletProperties.PREVIOUS_MODE, portletMode); } req.setAttribute(SportletProperties.PORTLET_WINDOW, windowState); if (evt != null) fireTitleBarEvent(evt); }
49343 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49343/70e4a852a64e01f61dc23bd0c0c96352c949a098/PortletTitleBar.java/buggy/src/org/gridlab/gridsphere/layout/PortletTitleBar.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 26100, 12, 6313, 22747, 1133, 871, 13, 1216, 21305, 3744, 503, 16, 1860, 288, 3639, 21305, 4247, 5190, 1133, 6324, 273, 394, 21305, 4247, 5190, 1133, 2828, 12, 2575, 16, 13846, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 26100, 12, 6313, 22747, 1133, 871, 13, 1216, 21305, 3744, 503, 16, 1860, 288, 3639, 21305, 4247, 5190, 1133, 6324, 273, 394, 21305, 4247, 5190, 1133, 2828, 12, 2575, 16, 13846, ...
Register fpuReg) { if (fpuReg != Register.ST1) { fxch(os, fpuStack, fpuReg); fxch(os, fpuStack, Register.ST1); fxch(os, fpuStack, fpuReg); } }
Register fpuReg) { if (fpuReg != Register.ST1) { fxch(os, fpuStack, fpuReg); fxch(os, fpuStack, Register.ST1); fxch(os, fpuStack, fpuReg); } }
private static final void fxchST1(AbstractX86Stream os, FPUStack fpuStack, Register fpuReg) { // We need reg to be ST1, if not swap if (fpuReg != Register.ST1) { // Swap reg with ST0 fxch(os, fpuStack, fpuReg); fxch(os, fpuStack, Register.ST1); fxch(os, fpuStack, fpuReg); } }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/d672242345f119107d72572d1e0cbc4bae87fa53/FPUHelper.java/buggy/core/src/core/org/jnode/vm/x86/compiler/l1a/FPUHelper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 727, 918, 12661, 343, 882, 21, 12, 7469, 60, 5292, 1228, 1140, 16, 478, 18061, 2624, 4253, 89, 2624, 16, 5411, 5433, 4253, 89, 1617, 13, 288, 3639, 368, 1660, 1608, 960, 358,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 727, 918, 12661, 343, 882, 21, 12, 7469, 60, 5292, 1228, 1140, 16, 478, 18061, 2624, 4253, 89, 2624, 16, 5411, 5433, 4253, 89, 1617, 13, 288, 3639, 368, 1660, 1608, 960, 358,...
generatedOverrides.put(methodKey, methodKey);
generatedOverrides.put(methodKey, Boolean.TRUE);
public static Class createAdapterClass(Context cx, Scriptable jsObj, String adapterName, Class superClass, Class[] interfaces, String scriptClassName, ClassNameHelper nameHelper) throws ClassNotFoundException { ClassFileWriter cfw = new ClassFileWriter(adapterName, superClass.getName(), "<adapter>"); cfw.addField("self", "Lorg/mozilla/javascript/Scriptable;", (short) (ClassFileWriter.ACC_PUBLIC | ClassFileWriter.ACC_FINAL)); int interfacesCount = interfaces == null ? 0 : interfaces.length; for (int i=0; i < interfacesCount; i++) { if (interfaces[i] != null) cfw.addInterface(interfaces[i].getName()); } String superName = superClass.getName().replace('.', '/'); generateCtor(cfw, adapterName, superName); if (scriptClassName != null) generateEmptyCtor(cfw, adapterName, superName, scriptClassName); Hashtable generatedOverrides = new Hashtable(); Hashtable generatedMethods = new Hashtable(); // generate methods to satisfy all specified interfaces. for (int i = 0; i < interfacesCount; i++) { Method[] methods = interfaces[i].getMethods(); for (int j = 0; j < methods.length; j++) { Method method = methods[j]; int mods = method.getModifiers(); if (Modifier.isStatic(mods) || Modifier.isFinal(mods)) continue; // make sure to generate only one instance of a particular // method/signature. String methodName = method.getName(); String methodKey = methodName + getMethodSignature(method); if (! generatedOverrides.containsKey(methodKey)) { generateMethod(cfw, adapterName, methodName, method.getParameterTypes(), method.getReturnType()); generatedOverrides.put(methodKey, methodKey); generatedMethods.put(methodName, Boolean.TRUE); } } } // Now, go through the superclasses methods, checking for abstract // methods or additional methods to override. // generate any additional overrides that the object might contain. Method[] methods = superClass.getMethods(); for (int j = 0; j < methods.length; j++) { Method method = methods[j]; int mods = method.getModifiers(); if (Modifier.isStatic(mods) || Modifier.isFinal(mods)) continue; // if a method is marked abstract, must implement it or the // resulting class won't be instantiable. otherwise, if the object // has a property of the same name, then an override is intended. boolean isAbstractMethod = Modifier.isAbstract(mods); if (isAbstractMethod || (jsObj != null && jsObj.has(method.getName(), jsObj))) { // make sure to generate only one instance of a particular // method/signature. String methodName = method.getName(); String methodSignature = getMethodSignature(method); String methodKey = methodName + methodSignature; if (! generatedOverrides.containsKey(methodKey)) { generateMethod(cfw, adapterName, methodName, method.getParameterTypes(), method.getReturnType()); generatedOverrides.put(methodKey, method); generatedMethods.put(methodName, Boolean.TRUE); } // if a method was overridden, generate a "super$method" // which lets the delegate call the superclass' version. if (!isAbstractMethod) { generateSuper(cfw, adapterName, superName, methodName, methodSignature, method.getParameterTypes(), method.getReturnType()); } } } // Generate Java methods, fields for remaining properties that // are not overrides. Object[] ids = jsObj.getIds(); for (int j=0; j < ids.length; j++) { if (!(ids[j] instanceof String)) continue; String id = (String) ids[j]; if (generatedMethods.containsKey(id)) continue; Object f = jsObj.get(id, jsObj); int length; if (f instanceof Scriptable) { Scriptable p = (Scriptable) f; if (!(p instanceof Function)) continue; length = (int) Context.toNumber(p.get("length", p)); } else if (f instanceof FunctionNode) { length = ((FunctionNode) f).getVariableTable().getParameterCount(); } else { continue; } Class[] parms = new Class[length]; for (int k=0; k < length; k++) parms[k] = Object.class; generateMethod(cfw, adapterName, id, parms, Object.class); } ByteArrayOutputStream out = new ByteArrayOutputStream(512); try { cfw.write(out); } catch (IOException ioe) { throw new RuntimeException("unexpected IOException"); } byte[] bytes = out.toByteArray(); if (nameHelper != null && nameHelper.getGeneratingDirectory() != null) { try { int lastDot = adapterName.lastIndexOf('.'); if (lastDot != -1) adapterName = adapterName.substring(lastDot+1); String filename = nameHelper.getTargetClassFileName(adapterName); FileOutputStream file = new FileOutputStream(filename); file.write(bytes); file.close(); } catch (IOException iox) { throw WrappedException.wrapException(iox); } return null; } SecuritySupport ss = cx.getSecuritySupport(); if (ss != null) { Object securityDomain = cx.getSecurityDomainForStackDepth(-1); return ss.defineClass(adapterName, bytes, securityDomain); } else { classLoader.defineClass(adapterName, bytes); return classLoader.loadClass(adapterName, true); } }
47345 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47345/10f0c3c7636ca1ca33d97e0645908cc6e8840a15/JavaAdapter.java/clean/src/org/mozilla/javascript/JavaAdapter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1659, 752, 4216, 797, 12, 1042, 9494, 16, 22780, 3828, 2675, 16, 4766, 6647, 514, 4516, 461, 16, 1659, 18846, 16, 4766, 5411, 1659, 8526, 7349, 16, 4766, 5411, 514, 2728, 3834,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1659, 752, 4216, 797, 12, 1042, 9494, 16, 22780, 3828, 2675, 16, 4766, 6647, 514, 4516, 461, 16, 1659, 18846, 16, 4766, 5411, 1659, 8526, 7349, 16, 4766, 5411, 514, 2728, 3834,...
Hashtable.this.clear();
Hashtable.this.clear();
public void clear() { Hashtable.this.clear(); }
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/d2f49355c2a41e91604b3433a30429b9c4c35cb5/Hashtable.java/buggy/modules/luni/src/main/java/java/util/Hashtable.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 2424, 1435, 288, 9506, 202, 5582, 14544, 18, 2211, 18, 8507, 5621, 1082, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 918, 2424, 1435, 288, 9506, 202, 5582, 14544, 18, 2211, 18, 8507, 5621, 1082, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
lexer.ungetToken(); node = lexer.inferredTag("body"); if (lexer.configuration.xmlOut)
if (lexer.seenEndBody)
public void parse(Lexer lexer, Node noframes, short mode) { Node node; TagTable tt = lexer.configuration.tt; lexer.badAccess |= Report.USING_NOFRAMES; mode = Lexer.IGNORE_WHITESPACE; while ((node = lexer.getToken(mode)) != null) { if (node.tag == noframes.tag && node.type == Node.END_TAG) { noframes.closed = true; Node.trimSpaces(lexer, noframes); return; } if ((node.tag == tt.tagFrame || node.tag == tt.tagFrameset)) { Node.trimSpaces(lexer, noframes); // fix for [539369] if (node.type == Node.END_TAG) { lexer.report.warning(lexer, noframes, node, Report.DISCARDING_UNEXPECTED); // Throw it away } else { lexer.report.warning(lexer, noframes, node, Report.MISSING_ENDTAG_BEFORE); lexer.ungetToken(); } return; } if (node.tag == tt.tagHtml) { if (node.type == Node.START_TAG || node.type == Node.START_END_TAG) { lexer.report.warning(lexer, noframes, node, Report.DISCARDING_UNEXPECTED); } continue; } // deal with comments etc. if (Node.insertMisc(noframes, node)) { continue; } if (node.tag == tt.tagBody && node.type == Node.START_TAG) { Node.insertNodeAtEnd(noframes, node); parseTag(lexer, node, Lexer.IGNORE_WHITESPACE); // MixedContent continue; } // implicit body element inferred if (node.type == Node.TEXT_NODE || node.tag != null) { lexer.ungetToken(); node = lexer.inferredTag("body"); if (lexer.configuration.xmlOut) { lexer.report.warning(lexer, noframes, node, Report.INSERTING_TAG); } Node.insertNodeAtEnd(noframes, node); parseTag(lexer, node, Lexer.IGNORE_WHITESPACE); // MixedContent continue; } // discard unexpected end tags lexer.report.warning(lexer, noframes, node, Report.DISCARDING_UNEXPECTED); } lexer.report.warning(lexer, noframes, node, Report.MISSING_ENDTAG_FOR); }
3308 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3308/23275c4b42a98f8e1edc6e14964ffe8a86746945/ParserImpl.java/buggy/src/main/org/w3c/tidy/ParserImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1109, 12, 13356, 8512, 16, 2029, 290, 792, 86, 753, 16, 3025, 1965, 13, 3639, 288, 5411, 2029, 756, 31, 5411, 4034, 1388, 3574, 273, 8512, 18, 7025, 18, 748, 31, 5411, 8512, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1109, 12, 13356, 8512, 16, 2029, 290, 792, 86, 753, 16, 3025, 1965, 13, 3639, 288, 5411, 2029, 756, 31, 5411, 4034, 1388, 3574, 273, 8512, 18, 7025, 18, 748, 31, 5411, 8512, ...
if (instanceType != TypeFrame.getNullType()) { if (!(instanceType instanceof ObjectType)) throw new AnalysisException("Field accessed through non-object reference " + instanceType, methodGen, handle); ObjectType objType = (ObjectType) instanceType;
if (instanceType != TypeFrame.getNullType()) { if (!(instanceType instanceof ObjectType)) { throw new AnalysisException("Field accessed through non-object reference " + instanceType, methodGen, handle); } ObjectType objType = (ObjectType) instanceType;
public void visitLocation(Location location) throws CFGBuilderException, DataflowAnalysisException { try { Instruction ins = location.getHandle().getInstruction(); XField xfield = null; boolean isWrite = false; boolean isLocal = false; if (ins instanceof FieldInstruction) { FieldInstruction fins = (FieldInstruction) ins; xfield = Lookup.findXField(fins, cpg); isWrite = ins.getOpcode() == Constants.PUTFIELD; isLocal = fins.getClassName(cpg).equals(classContext.getJavaClass().getClassName()); if (DEBUG) System.out.println("Handling field access: " + location.getHandle() + " (frame=" + vnaDataflow.getFactAtLocation(location) + ")"); } else if (ins instanceof INVOKESTATIC) { INVOKESTATIC inv = (INVOKESTATIC) ins; InnerClassAccess access = icam.getInnerClassAccess(inv, cpg); if (access != null && access.getMethodSignature().equals(inv.getSignature(cpg))) { xfield = access.getField(); isWrite = !access.isLoad(); isLocal = false; if (DEBUG) System.out.println("Handling inner class access: " + location.getHandle() + " (frame=" + vnaDataflow.getFactAtLocation(location) + ")"); } } // We only care about mutable nonvolatile nonpublic instance fields. if (xfield != null && !(xfield.isStatic() || xfield.isPublic() || xfield.isVolatile() || xfield.isFinal())) { ValueNumberFrame frame = vnaDataflow.getFactAtLocation(location); ValueNumber thisValue = !method.isStatic() ? vnaDataflow.getAnalysis().getThisValue() : null; LockSet lockSet = lockDataflow.getFactAtLocation(location); InstructionHandle handle = location.getHandle(); // Is the instance locked? // We consider the access to be locked if either // - the object is explicitly locked, or // - the field is accessed through the "this" reference, // and the method is in the locked method set, or // - any value returned by a called method is locked; // the (conservative) assumption is that the return lock object // is correct for synchronizing the access ValueNumber instance = frame.getInstance(handle.getInstruction(), cpg); boolean isExplicitlyLocked = lockSet.getLockCount(instance.getNumber()) > 0; boolean isAccessedThroughThis = thisValue != null && thisValue.equals(instance); boolean isLocked = isExplicitlyLocked || (lockedMethodSet.contains(method) && isAccessedThroughThis) || lockSet.containsReturnValue(vnaDataflow.getAnalysis().getFactory()); // Adjust the field so its class name is the same // as the type of reference it is accessed through. // This helps fix false positives produced when a // threadsafe class is extended by a subclass that // doesn't care about thread safety. if (ADJUST_SUBCLASS_ACCESSES) { // Find the type of the object instance TypeDataflow typeDataflow = classContext.getTypeDataflow(method); TypeFrame typeFrame = typeDataflow.getFactAtLocation(location); Type instanceType = typeFrame.getInstance(handle.getInstruction(), cpg); // Note: instance type can be Null, // in which case we won't adjust the field type. if (instanceType != TypeFrame.getNullType()) { if (!(instanceType instanceof ObjectType)) throw new AnalysisException("Field accessed through non-object reference " + instanceType, methodGen, handle); ObjectType objType = (ObjectType) instanceType; // If instance class name is not the same as that of the field, // make it so String instanceClassName = objType.getClassName(); if (!instanceClassName.equals(xfield.getClassName())) { xfield = new InstanceField( instanceClassName, xfield.getFieldName(), xfield.getFieldSignature(), xfield.getAccessFlags() ); } } } int kind = 0; kind |= isLocked ? LOCKED : UNLOCKED; kind |= isWrite ? WRITE : READ; if (DEBUG) System.out.println("IS2:\t" + SignatureConverter.convertMethodSignature(classContext.getMethodGen(method)) + "\t" + xfield + "\t" + ((isWrite ? "W" : "R") + "/" + (isLocked ? "L" : "U"))); FieldStats stats = getStats(xfield); stats.addAccess(kind); if (isExplicitlyLocked && isLocal) stats.addLocalLock(); if (isGetterMethod && !isLocked) stats.addGetterMethodAccess(); stats.addAccess(classContext, method, handle, isLocked); } // FIXME: should we do something for static fields? } catch (ClassNotFoundException e) { bugReporter.reportMissingClass(e); } }
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/85c3af9ed48ea3515aff9bee1490b4ed8a65968d/FindInconsistentSync2.java/clean/findbugs/src/java/edu/umd/cs/findbugs/detect/FindInconsistentSync2.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 3757, 2735, 12, 2735, 2117, 13, 1216, 7577, 1263, 503, 16, 1910, 2426, 9418, 503, 288, 9506, 202, 698, 288, 6862, 202, 11983, 2763, 273, 2117, 18, 588, 3259, 7675, 588, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 3757, 2735, 12, 2735, 2117, 13, 1216, 7577, 1263, 503, 16, 1910, 2426, 9418, 503, 288, 9506, 202, 698, 288, 6862, 202, 11983, 2763, 273, 2117, 18, 588, 3259, 7675, 588, ...
decompiler.addString(xml);
decompiler.addName(xml);
private Node xmlInitializer() throws IOException { int tt = ts.getFirstXMLToken(); if (tt != Token.XML && tt != Token.XMLEND) { reportError("msg.syntax"); return null; } /* Make a NEW node to append to. */ Node pnXML = nf.createLeaf(Token.NEW); decompiler.addToken(Token.NEW); decompiler.addToken(Token.DOT); String xml = ts.getString(); boolean fAnonymous = xml.trim().startsWith("<>"); decompiler.addName(fAnonymous ? "XMLList" : "XML"); Node pn = nf.createName(fAnonymous ? "XMLList" : "XML"); nf.addChildToBack(pnXML, pn); pn = null; Node expr; for (;;tt = ts.getNextXMLToken()) { switch (tt) { case Token.XML: xml = ts.getString(); decompiler.addString(xml); mustMatchToken(Token.LC, "msg.syntax"); decompiler.addToken(Token.LC); expr = (peekToken() == Token.RC) ? nf.createString("") : expr(false); mustMatchToken(Token.RC, "msg.syntax"); decompiler.addToken(Token.RC); if (pn == null) { pn = nf.createString(xml); } else { pn = nf.createBinary(Token.ADD, pn, nf.createString(xml)); } int nodeType; if (ts.isXMLAttribute()) { nodeType = Token.ESCXMLATTR; } else { nodeType = Token.ESCXMLTEXT; } expr = nf.createUnary(nodeType, expr); pn = nf.createBinary(Token.ADD, pn, expr); break; case Token.XMLEND: xml = ts.getString(); decompiler.addString(xml); if (pn == null) { pn = nf.createString(xml); } else { pn = nf.createBinary(Token.ADD, pn, nf.createString(xml)); } nf.addChildToBack(pnXML, pn); return pnXML; default: reportError("msg.syntax"); return null; } } }
47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/04ddc56768b4808149781bb1f415450e7805513d/Parser.java/clean/js/rhino/src/org/mozilla/javascript/Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 2029, 2025, 14729, 1435, 1216, 1860, 565, 288, 3639, 509, 3574, 273, 3742, 18, 588, 3759, 4201, 1345, 5621, 3639, 309, 261, 748, 480, 3155, 18, 4201, 597, 3574, 480, 3155, 18, 60, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2025, 14729, 1435, 1216, 1860, 565, 288, 3639, 509, 3574, 273, 3742, 18, 588, 3759, 4201, 1345, 5621, 3639, 309, 261, 748, 480, 3155, 18, 4201, 597, 3574, 480, 3155, 18, 60, ...
private Document handleFile(File file) { try { DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); DocumentBuilder db = dbf.newDocumentBuilder(); Document doc = db.parse(file); String shortname = Util.getElementValue( doc.getDocumentElement(), "body/taglib/shortname"); File dir = new File(destdir, shortname); dir.mkdir(); File taglibFrameHtml = new File(dir, "taglib-frame.html"); Source xml = new StreamSource(file); Source xsl = new StreamSource( this.getClass().getResourceAsStream( "/resources/taglibdoc/taglib-frame.xsl")); Result out = new StreamResult(taglibFrameHtml); TransformerFactory tf = TransformerFactory.newInstance(); Transformer t = tf.newTransformer(xsl); t.transform(xml, out); File taglibSummaryHtml = new File(dir, "taglib-summary.html"); xml = new StreamSource(file); xsl = new StreamSource( this.getClass().getResourceAsStream( "/resources/taglibdoc/taglib-summary.xsl")); out = new StreamResult(taglibSummaryHtml); t = tf.newTransformer(xsl); t.transform(xml, out); List tags = Util.getElements(doc.getDocumentElement(), "body/taglib/tag"); Iterator iter = tags.iterator(); xsl = new StreamSource( this.getClass().getResourceAsStream( "/resources/taglibdoc/tag-frame.xsl")); t = tf.newTransformer(xsl); while (iter.hasNext()) { Element tag = (Element) iter.next(); Util.addChildElement(tag, "taglib", shortname); String tagname = Util.getElementValue(tag, "name"); File tagHtml = new File(dir, tagname + ".html"); xml = new DOMSource(tag); out = new StreamResult(tagHtml); t.transform(xml, out); } return doc; } catch (Exception e) { e.printStackTrace(); } return null; }
2722 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2722/bcf54ee9560f4fd9a0ff083d3f0ea7c829a28aea/TaglibDoc.java/buggy/contrib/tag-doc/src/java/org/apache/struts/taskdefs/TaglibDoc.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, 2519, 20692, 1966, 74, 33, 2519, 20692, 18, 2704, 1442, 5621, 1082, 202, 2519, 1263, 1966, 33, 1966, 74, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2519, 20692, 1966, 74, 33, 2519, 20692, 18, 2704, 1442, 5621, 1082, 202, 2519, 1263, 1966, 33, 1966, 74, 1...
transactable = con.getTransactionIsolation()>Connection.TRANSACTION_NONE;
transactable = con.getTransactionIsolation() > Connection.TRANSACTION_NONE;
public JDBCConnection(Connection con, ConnectionParameters parameters) { super(parameters); if (con == null) { throw new IllegalArgumentException("Connection cannot be null"); } this.con = con; init(parameters); try { //Several drivers return -1 which is illegal, but means no TX transactable = con.getTransactionIsolation()>Connection.TRANSACTION_NONE; } catch (SQLException e) { LOG.log(Level.WARNING, "Unable to determine transaction isolation level for connection " + toString(), e); } if (transactable) { //only effective for transactable connections try { con.setAutoCommit(false); } catch (Exception e) { throw new JDBCException("Unable to set autocommit=false for "+toString(), e); } } }
55401 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55401/f7adce49836b092bc292755188dc9fa6e2b39f1a/JDBCConnection.java/clean/core/src/java/scriptella/jdbc/JDBCConnection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 16364, 1952, 12, 1952, 356, 16, 4050, 2402, 1472, 13, 288, 3639, 2240, 12, 3977, 1769, 3639, 309, 261, 591, 422, 446, 13, 288, 5411, 604, 394, 2754, 2932, 1952, 2780, 506, 446, 88...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 16364, 1952, 12, 1952, 356, 16, 4050, 2402, 1472, 13, 288, 3639, 2240, 12, 3977, 1769, 3639, 309, 261, 591, 422, 446, 13, 288, 5411, 604, 394, 2754, 2932, 1952, 2780, 506, 446, 88...
parse(buffer.toString(), ParserLanguage.CPP, true, true);
parse(buffer.toString(), ParserLanguage.CPP, true, 0);
public void test10_1s3b() throws Exception { StringBuffer buffer = new StringBuffer(); buffer.append("class L { public: int next; };\n"); //$NON-NLS-1$ buffer.append("class A : public L { };\n"); //$NON-NLS-1$ buffer.append("class B : public L { };\n"); //$NON-NLS-1$ buffer.append("class C : public A, public B { void f(); }; // wellformed\n"); //$NON-NLS-1$ buffer.append("class D : public A, public L { void f(); }; // wellformed\n"); //$NON-NLS-1$ buffer.append("\n"); //$NON-NLS-1$ parse(buffer.toString(), ParserLanguage.CPP, true, true); }
6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/7d7fa374bfd169ce8924a5c15bd01444e6e6e445/AST2CPPSpecTest.java/buggy/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPSpecTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 2163, 67, 21, 87, 23, 70, 1435, 1216, 1185, 288, 202, 202, 780, 1892, 1613, 273, 394, 6674, 5621, 202, 202, 4106, 18, 6923, 2932, 1106, 511, 288, 1071, 30, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 2163, 67, 21, 87, 23, 70, 1435, 1216, 1185, 288, 202, 202, 780, 1892, 1613, 273, 394, 6674, 5621, 202, 202, 4106, 18, 6923, 2932, 1106, 511, 288, 1071, 30, 509, 1...
logger.severe(
logger.error(
public void readData(String fileName) { hhCount = 0; recCount = 0; PUMSHH hh = new PUMSHH(); int adultCount = 0; int wrkCount = 0; int perCount = 0; int rlabor = 0; int age = 0; int school = 0; int hours = 0; int personType = 0; int invalid = 0; int personsField = 0; int hhid = 0; // get the PERSONS field index for (int i = 0; i < hh.attribs.length; i++) { if (hh.attribLabels[i].equals("PERSONS")) { personsField = i; break; } } try { BufferedReader in = new BufferedReader(new FileReader(fileName)); String s = new String(); while ((s = in.readLine()) != null) { recCount++; // skip HH records where persons field is zero if ((getPUMSHHDataValue(s, hh.attribLabels[personsField])) > 0) { // read the household attributes from the household data record if (getPUMSRecType(s).equals("H")) { hh = new PUMSHH(); for (int i = 0; i < hh.attribs.length; i++) { hh.attribs[i] = (getPUMSHHDataValue(s, hh.attribLabels[i])); } hh.personTypes = new int[hh.attribs[personsField]]; hhid++; // read the person records for the number of persons in the household. perCount = 0; wrkCount = 0; adultCount = 0; for (int i = 0; i < hh.attribs[personsField]; i++) { s = in.readLine(); if (!getPUMSRecType(s).equals("P")) { logger.severe( "Expected P record type on record: " + recCount + " but got: " + getPUMSRecType(s) + "."); logger.severe("exiting readData(" + fileName + ") in PUMSData."); logger.severe("exit (21)"); System.exit(21); } age = getPUMSPersDataValue(s, "AGE"); school = getPUMSPersDataValue(s, "ENROLL"); rlabor = getPUMSPersDataValue(s, "ESR"); hours = getPUMSPersDataValue(s, "HOURS"); switch (rlabor) { case 0: case 3: case 6: if ((age > 17) && (school >= 2)) { personType = 3; } else if ((age > 17) && (school < 2)) { personType = 4; } else if (age <= 5) { personType = 5; } else if ((age >= 6) && (age <= 15)) { personType = 6; } else if ((age == 16) || (age == 17)) { personType = 7; } break; case 1: case 2: case 4: case 5: wrkCount++; if ((age > 17) && (hours >= 35)) { personType = 1; } else if ((age > 17) && (hours < 35)) { personType = 2; } break; } perCount++; recCount++; if (personType < 5) { adultCount++; } // set the personType attribute value hh.personTypes[i] = personType; // set the hhNumber hh.setHHNumber(hhid); } } else { logger.severe("Expected H record type on record: " + recCount + " but got: " + getPUMSRecType(s) + "."); logger.severe("exiting readData(" + fileName + ") in PUMSData."); logger.severe("exit (20)"); System.exit(20); } // override the number of workers (0 - 3+) HH variable with actual // number of workers from person records. for (int i = 0; i < hh.attribs.length; i++) { if (hh.attribLabels[i].equals("WIF")) { hh.attribs[i] = wrkCount; break; } } // override the number of persons (1 - 9) HH variable with actual // number of person records. if (hh.attribs[personsField] != perCount) { hh.attribs[personsField] = perCount; invalid++; } // only keep households where at least 1 adult is present if (adultCount > 0) { pumsHH[hhCount++] = hh; } } } } catch (Exception e) { logger.severe( "IO Exception caught reading data dictionary file: " + fileName); e.printStackTrace(); } logger.severe( "person field value different from number of person records in " + invalid + " of " + hhCount + " households."); }
1120 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1120/ca343a527cdff81450c6dae2017cdd7596546cc4/PUMSData.java/buggy/src/java/com/pb/morpc/synpop/pums2000/PUMSData.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 20913, 12, 780, 3968, 13, 288, 3639, 18629, 1380, 273, 374, 31, 3639, 1950, 1380, 273, 374, 31, 3639, 453, 2799, 2664, 44, 18629, 273, 394, 453, 2799, 2664, 44, 5621, 3639, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 20913, 12, 780, 3968, 13, 288, 3639, 18629, 1380, 273, 374, 31, 3639, 1950, 1380, 273, 374, 31, 3639, 453, 2799, 2664, 44, 18629, 273, 394, 453, 2799, 2664, 44, 5621, 3639, 5...
consume(IToken.tRPAREN).getEndOffset(); IASTInitializer i = cInitializerClause(Collections.EMPTY_LIST); firstExpression = buildTypeIdInitializerExpression(t, i, offset, calculateEndOffset(i)); break;
if (t != null) { consume(IToken.tRPAREN).getEndOffset(); IASTInitializer i = cInitializerClause(Collections.EMPTY_LIST); firstExpression = buildTypeIdInitializerExpression(t, i, offset, calculateEndOffset(i)); break; } else {backup(m); }
protected IASTExpression postfixExpression() throws EndOfFileException, BacktrackException { IASTExpression firstExpression = null; switch (LT(1)) { case IToken.tLPAREN: // ( type-name ) { initializer-list } // ( type-name ) { initializer-list , } IToken m = mark(); try { int offset = consume(IToken.tLPAREN).getOffset(); IASTTypeId t = typeId(false); consume(IToken.tRPAREN).getEndOffset(); IASTInitializer i = cInitializerClause(Collections.EMPTY_LIST); firstExpression = buildTypeIdInitializerExpression(t, i, offset, calculateEndOffset(i)); break; } catch (BacktrackException bt) { backup(m); } default: firstExpression = primaryExpression(); } IASTExpression secondExpression = null; for (;;) { switch (LT(1)) { case IToken.tLBRACKET: // array access consume(IToken.tLBRACKET); secondExpression = expression(); int last; switch (LT(1)) { case IToken.tRBRACKET: last = consume(IToken.tRBRACKET).getEndOffset(); break; case IToken.tEOC: last = Integer.MAX_VALUE; break; default: throw backtrack; } IASTArraySubscriptExpression s = createArraySubscriptExpression(); ((ASTNode) s).setOffsetAndLength(((ASTNode) firstExpression) .getOffset(), last - ((ASTNode) firstExpression).getOffset()); s.setArrayExpression(firstExpression); firstExpression.setParent(s); firstExpression .setPropertyInParent(IASTArraySubscriptExpression.ARRAY); s.setSubscriptExpression(secondExpression); secondExpression.setParent(s); secondExpression .setPropertyInParent(IASTArraySubscriptExpression.SUBSCRIPT); firstExpression = s; break; case IToken.tLPAREN: // function call consume(IToken.tLPAREN); if (LT(1) != IToken.tRPAREN) secondExpression = expression(); if (LT(1) == IToken.tRPAREN) last = consume(IToken.tRPAREN).getEndOffset(); else // must be EOC last = Integer.MAX_VALUE; IASTFunctionCallExpression f = createFunctionCallExpression(); ((ASTNode) f).setOffsetAndLength(((ASTNode) firstExpression) .getOffset(), last - ((ASTNode) firstExpression).getOffset()); f.setFunctionNameExpression(firstExpression); firstExpression.setParent(f); firstExpression .setPropertyInParent(IASTFunctionCallExpression.FUNCTION_NAME); if (secondExpression != null) { f.setParameterExpression(secondExpression); secondExpression.setParent(f); secondExpression .setPropertyInParent(IASTFunctionCallExpression.PARAMETERS); } firstExpression = f; break; case IToken.tINCR: int offset = consume(IToken.tINCR).getEndOffset(); firstExpression = buildUnaryExpression( IASTUnaryExpression.op_postFixIncr, firstExpression, ((CASTNode) firstExpression).getOffset(), offset); break; case IToken.tDECR: offset = consume().getEndOffset(); firstExpression = buildUnaryExpression( IASTUnaryExpression.op_postFixDecr, firstExpression, ((CASTNode) firstExpression).getOffset(), offset); break; case IToken.tDOT: // member access IToken dot = consume(IToken.tDOT); IASTName name = createName(identifier()); if (name == null) throwBacktrack(((ASTNode) firstExpression).getOffset(), ((ASTNode) firstExpression).getLength() + dot.getLength()); IASTFieldReference result = createFieldReference(); ((ASTNode) result).setOffsetAndLength( ((ASTNode) firstExpression).getOffset(), calculateEndOffset(name) - ((ASTNode) firstExpression).getOffset()); result.setFieldOwner(firstExpression); result.setIsPointerDereference(false); firstExpression.setParent(result); firstExpression .setPropertyInParent(IASTFieldReference.FIELD_OWNER); result.setFieldName(name); name.setParent(result); name.setPropertyInParent(IASTFieldReference.FIELD_NAME); firstExpression = result; break; case IToken.tARROW: // member access IToken arrow = consume(IToken.tARROW); name = createName(identifier()); if (name == null) throwBacktrack(((ASTNode) firstExpression).getOffset(), ((ASTNode) firstExpression).getLength() + arrow.getLength()); result = createFieldReference(); ((ASTNode) result).setOffsetAndLength( ((ASTNode) firstExpression).getOffset(), calculateEndOffset(name) - ((ASTNode) firstExpression).getOffset()); result.setFieldOwner(firstExpression); result.setIsPointerDereference(true); firstExpression.setParent(result); firstExpression .setPropertyInParent(IASTFieldReference.FIELD_OWNER); result.setFieldName(name); name.setParent(result); name.setPropertyInParent(IASTFieldReference.FIELD_NAME); firstExpression = result; break; default: return firstExpression; } } }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/3a28f498db3ce0e33e141ce1857fae8568de7697/GNUCSourceParser.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/c/GNUCSourceParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 467, 9053, 2300, 18923, 2300, 1435, 1216, 4403, 951, 812, 503, 16, 5411, 4297, 4101, 503, 288, 3639, 467, 9053, 2300, 1122, 2300, 273, 446, 31, 3639, 1620, 261, 12050, 12, 21, 3719,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 467, 9053, 2300, 18923, 2300, 1435, 1216, 4403, 951, 812, 503, 16, 5411, 4297, 4101, 503, 288, 3639, 467, 9053, 2300, 1122, 2300, 273, 446, 31, 3639, 1620, 261, 12050, 12, 21, 3719,...
HierarchyUsage(RolapCube cube, RolapHierarchy hierarchy, MondrianDef.CubeDimension cubeDim) { assert cubeDim != null : "precondition: cubeDim != null"; this.fact = cube.fact; // Attributes common to all Hierarchy kinds // name // foreignKey this.name = cubeDim.name; this.foreignKey = cubeDim.foreignKey; if (cubeDim instanceof MondrianDef.DimensionUsage) { this.kind = HierarchyUsage.SHARED_KIND; // Shared Hierarchy attributes // source // level MondrianDef.DimensionUsage du = (MondrianDef.DimensionUsage) cubeDim; // Bug 657 - disable hierarchy aliasing if (! du.name.equals(du.source)) { StringBuffer buf = new StringBuffer(); buf.append("Cube \""); buf.append(cube.getName()); buf.append("\": DimensionUsage name (\""); buf.append(du.name); buf.append("\") must equal source (\""); buf.append(du.source); buf.append("\")"); throw new MondrianException(buf.toString()); } //this.hierarchyName = du.source; this.hierarchyName = hierarchy.getName(); int index = this.hierarchyName.indexOf('.'); if (index == -1) { this.fullName = this.name; this.source = du.source; } else { String hname= this.hierarchyName.substring( index+1, this.hierarchyName.length()); StringBuffer buf = new StringBuffer(32); buf.append(this.name); buf.append('.'); buf.append(hname); this.fullName = buf.toString(); buf.setLength(0); buf.append(du.source); buf.append('.'); buf.append(hname); this.source = buf.toString(); } //this.source = du.source; this.level = du.level; init(cube, hierarchy, du); } else if (cubeDim instanceof MondrianDef.Dimension) { this.kind = HierarchyUsage.PRIVATE_KIND; // Private Hierarchy attributes // type // caption MondrianDef.Dimension d = (MondrianDef.Dimension) cubeDim; this.hierarchyName = hierarchy.getName(); this.fullName = this.name; this.source = null; this.level = null; init(cube, hierarchy, null); } else if (cubeDim instanceof MondrianDef.VirtualCubeDimension) { this.kind = HierarchyUsage.VIRTUAL_KIND; // Virtual Hierarchy attributes MondrianDef.VirtualCubeDimension vd = (MondrianDef.VirtualCubeDimension) cubeDim; this.hierarchyName = cubeDim.name; this.fullName = this.name; this.source = null; this.level = null; init(cube, hierarchy, null); } else { getLogger().warn("HierarchyUsage<init>: Unknown cubeDim=" +cubeDim.getClass().getName()); this.kind = HierarchyUsage.UNKNOWN_KIND; this.hierarchyName = cubeDim.name; this.fullName = this.name; this.source = null; this.level = null; init(cube, hierarchy, null); } if (getLogger().isDebugEnabled()) { getLogger().debug(toString() + ", cubeDim=" + cubeDim.getClass().getName()); } }
37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/6bb94617d887d46c85747d7409fa32adc3ccb0c2/HierarchyUsage.java/buggy/src/main/mondrian/rolap/HierarchyUsage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 670, 6000, 5357, 12, 4984, 438, 39, 373, 557, 4895, 16, 4984, 438, 12074, 17937, 16, 49, 1434, 566, 304, 3262, 18, 39, 4895, 8611, 21186, 5225, 15329, 11231, 21186, 5225, 5, 33, 2011, 2773, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 670, 6000, 5357, 12, 4984, 438, 39, 373, 557, 4895, 16, 4984, 438, 12074, 17937, 16, 49, 1434, 566, 304, 3262, 18, 39, 4895, 8611, 21186, 5225, 15329, 11231, 21186, 5225, 5, 33, 2011, 2773, ...
if (!(input instanceof IFileEditorInput))
IFile file = ResourceUtil.getFile(input); if (file == null)
public void init(IEditorSite site, IEditorInput input) throws PartInitException { // Check input. if (!(input instanceof IFileEditorInput)) throw new PartInitException(OleMessages.format( "OleEditor.invalidInput", new Object[] { input })); //$NON-NLS-1$ IFile file = (((IFileEditorInput) input).getFile()); //Cannot create this with a file and no physical location if (file.getLocation() == null || !(new File(file.getLocation().toOSString()).exists())) throw new PartInitException( OleMessages .format( "OleEditor.noFileInput", new Object[] { file.getLocation() })); //$NON-NLS-1$ // Save input. setSite(site); setInput(input); // Update titles. setTitle(input.getName()); setTitleToolTip(input.getToolTipText()); ImageDescriptor desc = input.getImageDescriptor(); if (desc != null) { oleTitleImage = desc.createImage(); setTitleImage(oleTitleImage); } // Listen for part activation. site.getPage().addPartListener(partListener); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/35591c7d55a12520aa70b2436fcd06526a22de81/OleEditor.java/buggy/bundles/org.eclipse.ui.win32/src/org/eclipse/ui/internal/editorsupport/win32/OleEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1208, 12, 45, 6946, 4956, 2834, 16, 467, 6946, 1210, 810, 13, 5411, 1216, 6393, 2570, 503, 288, 3639, 368, 2073, 810, 18, 3639, 467, 812, 585, 273, 2591, 1304, 18, 29925, 12,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1208, 12, 45, 6946, 4956, 2834, 16, 467, 6946, 1210, 810, 13, 5411, 1216, 6393, 2570, 503, 288, 3639, 368, 2073, 810, 18, 3639, 467, 812, 585, 273, 2591, 1304, 18, 29925, 12,...
hookControl(); getControl().addPaintListener(new PaintListener() { public void paintControl(PaintEvent e) { if (!revealListeners.isEmpty()) { Iterator iterator = revealListeners.iterator(); while (iterator.hasNext() ) { RevealListener reveallisetner = (RevealListener) iterator.next(); reveallisetner.revealed(getControl()); iterator.remove(); } } } }); getControl().addControlListener(new ControlListener() { public void controlMoved(ControlEvent e) { fireControlMovedEvent( e ); } public void controlResized(ControlEvent e) { fireControlResizedEvent( e ); } }); getControl().addDisposeListener(new DisposeListener() { public void widgetDisposed(DisposeEvent e) { } });
public NestedNonThreadedGraphicalViewer(Composite parent) { super(); revealListeners = new ArrayList(1); // create the FigureCanvas createControl(parent); EditDomain ed = new DefaultEditDomain( null ); ed.addViewer( this ); setEditDomain( ed ); hookControl(); getControl().addPaintListener(new PaintListener() { public void paintControl(PaintEvent e) { if (!revealListeners.isEmpty()) { // Go through the reveal list and let everyone know that the view // is now available. Remove the listeners so they are only called once! Iterator iterator = revealListeners.iterator(); while (iterator.hasNext() ) { RevealListener reveallisetner = (RevealListener) iterator.next(); reveallisetner.revealed(getControl()); iterator.remove(); } } } }); getControl().addControlListener(new ControlListener() { public void controlMoved(ControlEvent e) { fireControlMovedEvent( e ); } public void controlResized(ControlEvent e) { fireControlResizedEvent( e ); } }); getControl().addDisposeListener(new DisposeListener() { public void widgetDisposed(DisposeEvent e) { } }); ((Canvas)getControl()).setBackground( ColorConstants.white ); // Scroll-wheel Zoom setProperty(MouseWheelHandler.KeyGenerator.getKey(SWT.MOD1), MouseWheelZoomHandler.SINGLETON); }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/46d66185cd1b63599ddd744d94199ca1d2e21db1/NestedNonThreadedGraphicalViewer.java/buggy/sandbox/org.eclipse.mylyn.zest.core/src/org/eclipse/mylyn/zest/core/internal/gefx/NestedNonThreadedGraphicalViewer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 19071, 3989, 1315, 20528, 4137, 1706, 18415, 12, 9400, 982, 13, 225, 288, 202, 202, 9565, 5621, 9506, 202, 266, 24293, 5583, 273, 394, 2407, 12, 21, 1769, 9506, 202, 759, 752, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 19071, 3989, 1315, 20528, 4137, 1706, 18415, 12, 9400, 982, 13, 225, 288, 202, 202, 9565, 5621, 9506, 202, 266, 24293, 5583, 273, 394, 2407, 12, 21, 1769, 9506, 202, 759, 752, ...
if(lastMarkers.getSize() == 0){
if (lastMarkers.getSize() == 0) {
private void buildAllMarkers( IElementCollector collector, IProgressMonitor monitor) { int markerLimit = view.getMarkerLimit(); monitor.beginTask(MarkerMessages.MarkerView_19, markerLimit == -1 ? 60 : 100); try { monitor.subTask(MarkerMessages.MarkerView_waiting_on_changes); if (monitor.isCanceled()) { return; } monitor .subTask(MarkerMessages.MarkerView_searching_for_markers); SubProgressMonitor subMonitor = new SubProgressMonitor(monitor, 10); lastMarkers = MarkerList.compute(view.getEnabledFilters(), subMonitor, true); if (monitor.isCanceled()) return; view.refreshMarkerCounts(monitor); } catch (CoreException e) { IDEWorkbenchPlugin.getDefault().getLog().log(e.getStatus()); lastMarkers = new MarkerList(); return; } if (monitor.isCanceled()) { return; } // Exit immediately if the markers have changed in the meantime. if (markerLimit != -1) { monitor.subTask(MarkerMessages.MarkerView_18); SubProgressMonitor mon = new SubProgressMonitor(monitor, 40); lastMarkers = SortUtil.getFirst(lastMarkers, (TableSorter) view .getViewer().getSorter(), markerLimit, mon); if (monitor.isCanceled()) return; } if(lastMarkers.getSize() == 0){ monitor.done(); return; } monitor.subTask(MarkerMessages.MarkerView_queueing_updates); SubProgressMonitor sub = new SubProgressMonitor(monitor, 50); if (view.isHierarchalMode()) { view.getTableSorter().sort(view.getViewer(), lastMarkers); MarkerCategory[] categories = buildHierarchy(lastMarkers, 0, lastMarkers.getSize() - 1, 0, null); if (categories == null)// Just add the markers collector.add(lastMarkers.toArray(), sub); else collector.add(categories, sub); } else collector.add(lastMarkers.toArray(), sub); if (monitor.isCanceled()) return; monitor.done(); }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/229c44b72ac5a176a7c4d6328bcc38d5cf41c6c3/MarkerAdapter.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerAdapter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1361, 1595, 21644, 12, 1082, 202, 45, 1046, 7134, 8543, 16, 467, 5491, 7187, 6438, 13, 288, 202, 202, 474, 5373, 3039, 273, 1476, 18, 588, 7078, 3039, 5621, 202, 202, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1361, 1595, 21644, 12, 1082, 202, 45, 1046, 7134, 8543, 16, 467, 5491, 7187, 6438, 13, 288, 202, 202, 474, 5373, 3039, 273, 1476, 18, 588, 7078, 3039, 5621, 202, 202, 10...
assertEquals( node.getCompletionPrefix(), (i == 0 )? "": "V");
assertEquals( node.getCompletionPrefix(), (i == 0 )? "": "V");
public void testCompletionOnExpression() throws Exception { Writer writer = new StringWriter(); writer.write( "class ABC { public: void voidMethod(); };\n"); writer.write( "ABC * someFunction(void) { return new ABC(); }\n"); writer.write( "void testFunction( void ) { someFunction()->V }\n" ); String code = writer.toString(); for( int i = 0; i < 2; ++i ) { int index = code.indexOf( "V"); if( i == 1 ) ++index; IASTCompletionNode node = parse( code, index ); assertEquals( node.getCompletionPrefix(), (i == 0 )? "": "V"); assertEquals( node.getCompletionKind(), CompletionKind.MEMBER_REFERENCE ); assertTrue( node.getCompletionContext() instanceof IASTExpression ); } }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/d730ff0f947954910a1a59eb5fe977d0983fd23e/CompletionParseTest.java/buggy/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/CompletionParseTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 11238, 1398, 2300, 1435, 1216, 1185, 202, 95, 202, 202, 2289, 2633, 273, 394, 17436, 5621, 202, 202, 6299, 18, 2626, 12, 315, 1106, 29253, 288, 1071, 30, 918, 918, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 11238, 1398, 2300, 1435, 1216, 1185, 202, 95, 202, 202, 2289, 2633, 273, 394, 17436, 5621, 202, 202, 6299, 18, 2626, 12, 315, 1106, 29253, 288, 1071, 30, 918, 918, ...
throw new BuildException(taskType + " doesn\'t support multiple targetfile elements.", location);
throw new BuildException(taskType + " doesn\'t support multiple " + "targetfile elements.", location);
public Commandline.Marker createTargetfile() { if (targetFilePos != null) { throw new BuildException(taskType + " doesn\'t support multiple targetfile elements.", location); } targetFilePos = cmdl.createMarker(); srcIsFirst = (srcFilePos != null); return targetFilePos; }
639 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/639/727faae6253126291dd52a1103713681e925f96b/ExecuteOn.java/buggy/src/main/org/apache/tools/ant/taskdefs/ExecuteOn.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3498, 1369, 18, 7078, 752, 2326, 768, 1435, 288, 3639, 309, 261, 3299, 812, 1616, 480, 446, 13, 288, 5411, 604, 394, 18463, 12, 4146, 559, 397, 315, 3302, 3730, 88, 2865, 3229, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3498, 1369, 18, 7078, 752, 2326, 768, 1435, 288, 3639, 309, 261, 3299, 812, 1616, 480, 446, 13, 288, 5411, 604, 394, 18463, 12, 4146, 559, 397, 315, 3302, 3730, 88, 2865, 3229, 10...
assertEquals(destructor.getStartLine(), 34); assertEquals(destructor.getEndLine(), 34);
private void checkParentNestedClass(IParent myNestedPackage){ // MyNestedPackage ---> class: Y ArrayList nestedClasses = myNestedPackage.getChildrenOfType(ICElement.C_CLASS); IStructure classY = (IStructure) nestedClasses.get(0); assertEquals(classY.getElementName(), new String("Y")); assertEquals(classY.getStartLine(), 28); assertEquals(classY.getEndLine(), 35); // Y ---> constructor: Y ArrayList yMethods = classY.getChildrenOfType(ICElement.C_METHOD_DECLARATION); IMethodDeclaration constructor = (IMethodDeclaration) yMethods.get(0); assertEquals(constructor.getElementName(), new String("Y")); assertTrue (constructor.isConstructor()); assertEquals(constructor.getStartLine(), 32); assertEquals(constructor.getEndLine(), 32); // Y ---> destructor: ~Y IMethodDeclaration destructor = (IMethodDeclaration) yMethods.get(1); assertEquals(destructor.getElementName(), new String("~Y")); assertTrue (destructor.isDestructor()); assertEquals(destructor.getStartLine(), 34); assertEquals(destructor.getEndLine(), 34); // TODO: check for virtual on destructors }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/eaf3aacd4e3d8f3a8cf9d61dbcdfcb0d824bad16/CModelElementsTests.java/buggy/core/org.eclipse.cdt.ui.tests/model/org/eclipse/cdt/core/model/tests/CModelElementsTests.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 866, 3054, 8649, 797, 12, 2579, 817, 3399, 8649, 2261, 15329, 202, 202, 759, 8005, 8649, 2261, 9948, 34, 667, 30, 1624, 21114, 202, 19558, 4764, 4818, 273, 3399, 8649, 226...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 866, 3054, 8649, 797, 12, 2579, 817, 3399, 8649, 2261, 15329, 202, 202, 759, 8005, 8649, 2261, 9948, 34, 667, 30, 1624, 21114, 202, 19558, 4764, 4818, 273, 3399, 8649, 226...
this.conf = conf;
super.setConf(conf);
public void setConf(Configuration conf) { this.conf = conf; }
50818 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50818/d65b0bb5f59c71c641ddc63948c82260f8e0166c/URLQueryFilter.java/clean/src/plugin/query-url/src/java/org/apache/nutch/searcher/url/URLQueryFilter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 444, 3976, 12, 1750, 2195, 13, 288, 565, 2240, 18, 542, 3976, 12, 3923, 1769, 225, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 444, 3976, 12, 1750, 2195, 13, 288, 565, 2240, 18, 542, 3976, 12, 3923, 1769, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
else
else
protected void paintText(Graphics g, JMenuItem menuItem, Rectangle textRect, String text) { Font f = menuItem.getFont(); g.setFont(f); FontMetrics fm = g.getFontMetrics(f); if (text != null && !text.equals("")) { if (menuItem.isEnabled()) { // Menu item is considered to be highlighted when it is selected. // But not if it's a JCheckBoxMenuItem if ((menuItem.isSelected() && checkIcon == null) || menuItem.getModel().isArmed() && (menuItem.getParent() instanceof MenuElement)) g.setColor(selectionForeground); else g.setColor(menuItem.getForeground()); } else // FIXME: should fix this to use 'disabledForeground', but its // default value in BasicLookAndFeel is null. // FIXME: should there be different foreground colours for selected // or deselected, when disabled? g.setColor(Color.gray); int mnemonicIndex = menuItem.getDisplayedMnemonicIndex(); if (mnemonicIndex != -1) BasicGraphicsUtils.drawStringUnderlineCharAt(g, text, mnemonicIndex, textRect.x, textRect.y + fm.getAscent()); else BasicGraphicsUtils.drawString(g, text, 0, textRect.x, textRect.y + fm.getAscent()); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/BasicMenuItemUI.java/buggy/core/src/classpath/javax/javax/swing/plaf/basic/BasicMenuItemUI.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 12574, 1528, 12, 17558, 314, 16, 804, 12958, 19711, 16, 13264, 977, 6120, 16, 21821, 514, 977, 13, 225, 288, 565, 10063, 284, 273, 19711, 18, 588, 5711, 5621, 565, 314, 18, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 12574, 1528, 12, 17558, 314, 16, 804, 12958, 19711, 16, 13264, 977, 6120, 16, 21821, 514, 977, 13, 225, 288, 565, 10063, 284, 273, 19711, 18, 588, 5711, 5621, 565, 314, 18, 5...
public void setConsumerInfo(ConsumerInfo ci) { this.ci = ci;
public void setConsumerInfo(ConsumerInfo ciproxy) { this.ciproxy = ciproxy;
public void setConsumerInfo(ConsumerInfo ci) { this.ci = ci; }
29 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/29/faaa00c8751e4ac7484ce238b0f99569aa848864/RSFServletViewStateHandler.java/clean/rsf-core/core/src/uk/org/ponder/rsf/viewstate/RSFServletViewStateHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 444, 5869, 966, 12, 5869, 966, 9039, 13, 288, 565, 333, 18, 8450, 273, 9039, 31, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 282, 1071, 918, 444, 5869, 966, 12, 5869, 966, 9039, 13, 288, 565, 333, 18, 8450, 273, 9039, 31, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
searchWindow = this;
public SearchWindow() { name = new NameList(); try { name.readNames(); } catch (Exception e) { JOptionPane.showMessageDialog(null, "Inlsningen av namnlistan misslyckades", "Varning", JOptionPane.ERROR_MESSAGE); name.sortedNames(); } try { frame = new JFrame("BangolfResultat"); } catch (Exception e) { JOptionPane.showMessageDialog(null, "Programmet gick ej att starta", "Programfel", JOptionPane.ERROR_MESSAGE); System.exit(1); } try { ImageIcon frameIcon = new ImageIcon("data/brikon.gif"); ICON = frameIcon.getImage(); frame.setIconImage(ICON); } catch (Exception e) { } compHeader = ""; fileNameSKV = null; fileNameHTM = null; warningHTM = false; CHANGE = false; dataManager = new DataManager(); if(!dataManager.loadOrientation()) { JOptionPane.showMessageDialog(null, "Tidigare sifferorienteringsinstllningar gick ej att lsa in", "Varning", JOptionPane.ERROR_MESSAGE); } frame.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE); WindowHandler window = new WindowHandler(); frame.addWindowListener(window); JPanel buttonpanel = new JPanel(); searchPanel = new JPanel(); button = new JButton[10]; JLabel[] searchLabel = new JLabel[6]; searchLabel[0] = new JLabel("Registrera, ndra eller ta bort resultat"); searchLabel[1] = new JLabel("genom att ska upp spelaren i detta flt"); searchLabel[2] = new JLabel("och sedan klicka p knappen med namnet:"); searchLabel[3] = new JLabel("ndra i det skbara namnregistret:"); searchLabel[4] = new JLabel("Namn:"); searchLabel[5] = new JLabel("Klubb:"); for(int i = 0; i < 4; i++) { searchLabel[i].setPreferredSize(new Dimension(250,15)); } searchLabel[4].setPreferredSize(new Dimension(120,15)); searchLabel[5].setPreferredSize(new Dimension(120,15)); KeyHandler keyhand = new KeyHandler(); searchField = new JTextField(); searchField.setPreferredSize(new Dimension(240,20)); searchField.addKeyListener(keyhand); nameField = new JTextField(); nameField.setPreferredSize(new Dimension(120,20)); clubField = new JTextField(); clubField.setPreferredSize(new Dimension(120,20)); GridBagLayout gridbag = new GridBagLayout(); GridBagConstraints c = new GridBagConstraints(); searchPanel.setLayout(gridbag); c.fill = GridBagConstraints.BOTH; c.insets = new Insets(0,1,0,1); c.gridwidth = GridBagConstraints.REMAINDER; gridbag.setConstraints(searchLabel[0], c); gridbag.setConstraints(searchLabel[1], c); gridbag.setConstraints(searchLabel[2], c); gridbag.setConstraints(searchField, c); gridbag.setConstraints(searchLabel[3], c); searchPanel.add(searchLabel[0]); searchPanel.add(searchLabel[1]); searchPanel.add(searchLabel[2]); searchPanel.add(searchField); SearchHandler searchHand = new SearchHandler(); ButtonKeyHandler buttonHand = new ButtonKeyHandler(); int key = KeyEvent.VK_0; for(int i = 0; i < 10; i++) { button[i] = new JButton(); button[i].setMnemonic(key); key++; button[i].setPreferredSize(new Dimension(240,25)); button[i].setHorizontalAlignment(SwingConstants.LEFT); button[i].setFocusable(false); button[i].addActionListener(searchHand); button[i].addKeyListener(buttonHand); gridbag.setConstraints(button[i], c); searchPanel.add(button[i]); } JLabel emptyLabel = new JLabel(" "); gridbag.setConstraints(emptyLabel, c); searchPanel.add(emptyLabel); c.gridwidth = 1; gridbag.setConstraints(searchLabel[4], c); c.gridwidth = GridBagConstraints.REMAINDER; gridbag.setConstraints(searchLabel[5], c); c.gridwidth = 1; gridbag.setConstraints(nameField, c); c.gridwidth = GridBagConstraints.REMAINDER; gridbag.setConstraints(clubField, c); c.gridwidth = 1; addPlayerButton = new JButton("Lgg till"); addPlayerButton.setMnemonic(KeyEvent.VK_L); addPlayerButton.setPreferredSize(new Dimension(120,25)); removePlayerButton = new JButton("Ta bort"); removePlayerButton.setMnemonic(KeyEvent.VK_T); removePlayerButton.setPreferredSize(new Dimension(120,25)); PlayerHandler playHand = new PlayerHandler(); addPlayerButton.addActionListener(playHand); addPlayerButton.addKeyListener(buttonHand); removePlayerButton.addActionListener(playHand); removePlayerButton.addKeyListener(buttonHand); gridbag.setConstraints(addPlayerButton, c); c.gridwidth = GridBagConstraints.REMAINDER; gridbag.setConstraints(removePlayerButton, c); searchPanel.add(searchLabel[3]); searchPanel.add(searchLabel[4]); searchPanel.add(searchLabel[5]); searchPanel.add(nameField); searchPanel.add(clubField); searchPanel.add(addPlayerButton); searchPanel.add(removePlayerButton); JMenuBar bar = new JMenuBar(); JMenu menu = new JMenu("Arkiv"); menu.setMnemonic(KeyEvent.VK_A); JMenu edit = new JMenu("Redigera"); edit.setMnemonic(KeyEvent.VK_R); JMenu klassMenu = new JMenu("Klasser"); klassMenu.setMnemonic(KeyEvent.VK_K); JMenu snittMenu = new JMenu("Snittlista"); snittMenu.setMnemonic(KeyEvent.VK_S); JMenu help = new JMenu("Info"); help.setMnemonic(KeyEvent.VK_I); bar.add(menu); bar.add(edit); bar.add(klassMenu); bar.add(snittMenu); bar.add(help); MenuHandler menuHand = new MenuHandler(); newComp = new JMenuItem("Ny tvling...", KeyEvent.VK_N); newComp.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_N, ActionEvent.CTRL_MASK)); openFromSKV = new JMenuItem("ppna tvling...", KeyEvent.VK_P); openFromSKV.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_O, ActionEvent.CTRL_MASK)); save = new JMenuItem("Spara", KeyEvent.VK_S); save.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_S, ActionEvent.CTRL_MASK)); save.setEnabled(false); saveAs = new JMenuItem("Spara som...", KeyEvent.VK_M); saveAs.setEnabled(false); saveToHTML = new JMenuItem("Skapa webbsida", KeyEvent.VK_W); saveToHTML.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_W, ActionEvent.CTRL_MASK)); saveToHTML.setEnabled(false); saveAsHTML = new JMenuItem("Skapa webbsida som...", KeyEvent.VK_B); saveAsHTML.setEnabled(false); quit = new JMenuItem("Avsluta", KeyEvent.VK_A); headerItem = new JMenuItem("Ange tvlingens rubrik...", KeyEvent.VK_R); headerItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_R, ActionEvent.CTRL_MASK)); headerItem.setEnabled(false); editItem = new JMenuItem("Delsummor och placering...", KeyEvent.VK_D); editItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_D, ActionEvent.CTRL_MASK)); editItem.setEnabled(false); numberOrientation = new JMenuItem("Sifferorientering...", KeyEvent.VK_O); numberOrientation.setEnabled(false); klassStart = new JMenuItem("Hantera klasser...", KeyEvent.VK_H); klassStart.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_K, ActionEvent.CTRL_MASK)); snittStart = new JMenuItem("Hantera snittlistan...", KeyEvent.VK_H); snittStart.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_L, ActionEvent.CTRL_MASK)); makeCompareFile = new JMenuItem("Ny jmfrande snittlista...", KeyEvent.VK_N); openCompareFile = new JMenuItem("ppna jmfrande snittlista...", KeyEvent.VK_P); about = new JMenuItem("Om BangolfResultat...", KeyEvent.VK_O); newComp.addActionListener(menuHand); saveToHTML.addActionListener(menuHand); saveAsHTML.addActionListener(menuHand); saveAs.addActionListener(menuHand); save.addActionListener(menuHand); openFromSKV.addActionListener(menuHand); quit.addActionListener(menuHand); headerItem.addActionListener(menuHand); editItem.addActionListener(menuHand); numberOrientation.addActionListener(menuHand); klassStart.addActionListener(menuHand); snittStart.addActionListener(menuHand); makeCompareFile.addActionListener(menuHand); openCompareFile.addActionListener(menuHand); about.addActionListener(menuHand); menu.add(newComp); menu.add(openFromSKV); menu.add(save); menu.add(saveAs); menu.add(saveToHTML); menu.add(saveAsHTML); menu.add(quit); edit.add(headerItem); edit.add(editItem); edit.add(numberOrientation); klassMenu.add(klassStart); snittMenu.add(snittStart); snittMenu.add(makeCompareFile); snittMenu.add(openCompareFile); help.add(about); frame.setJMenuBar(bar); JMenuBar resBar = new JMenuBar(); JMenu resMenu = new JMenu("Redigera"); resMenu.setMnemonic(KeyEvent.VK_R); resBar.add(resMenu); changeName = new JMenuItem("ndra namn...", KeyEvent.VK_N); changeName.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_N, ActionEvent.CTRL_MASK)); changeClub = new JMenuItem("ndra klubb...", KeyEvent.VK_K); changeClub.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_K, ActionEvent.CTRL_MASK)); changeName.addActionListener(menuHand); changeClub.addActionListener(menuHand); resMenu.add(changeName); resMenu.add(changeClub); io = new IOHandler(); try { personTracker = (HashMap) io.load("ptrack"); } catch (Exception e) { personTracker = new HashMap(); personTracker.put(" ", new Integer(0)); } try { personNameTracker = (HashMap) io.load("pnametrack"); } catch (Exception e) { personNameTracker = new HashMap(); } JPanel statusPanel = new JPanel(); statusPanel.setLayout(new BorderLayout()); MESSAGEFIELD = new JTextField("Starta ny tvling genom att klicka p Arkiv -> Ny tvling..."); MESSAGEFIELD.setEditable(false); MESSAGEFIELD.setFocusable(false); STATUSFIELD = new JTextField(); STATUSFIELD.setEditable(false); STATUSFIELD.setHorizontalAlignment(JTextField.CENTER); STATUSFIELD.setPreferredSize(new Dimension(20,10)); STATUSFIELD.setFocusable(false); statusPanel.add(MESSAGEFIELD, BorderLayout.CENTER); statusPanel.add(STATUSFIELD, BorderLayout.WEST); resultInput = new ResultInputWindow(frame, searchPanel, statusPanel, resBar, personTracker, personNameTracker); lapSumDialog = new LapSumDialog(frame); compInfoDialog = new CompInfoDialog(frame, this); compInfoDialog.addWindowListener(new WinHandForCompInfoDialog()); fileChooser = new JFileChooser(); skvFilter = new Filter(new String[]{"skv"}, "Semikolonseparerad fil"); htmFilter = new Filter(new String[]{"htm", "html"}, "Webbsida"); snittFilter = new Filter(new String[]{"snitt"}, "Jmfrelsefil fr snittlista"); try { DIRSKV = (File) io.load("dirskv"); DIRHTM = (File) io.load("dirhtm"); DIRSNITT = (File) io.load("dirsnitt"); DIRJMF = (File) io.load("dirjmf"); } catch (Exception e) { DIRSKV = null; DIRHTM = null; DIRSNITT = null; DIRJMF = null; } frame.getContentPane().add(searchPanel, BorderLayout.WEST); frame.getContentPane().add(statusPanel, BorderLayout.SOUTH); dummyStartUp(); frame.pack(); frame.setVisible(true); searchWindow = this; }
54150 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54150/cc356dee164fbd0d444d252543065341354d16e2/SearchWindow.java/clean/gui/SearchWindow.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 5167, 3829, 1435, 288, 202, 202, 529, 273, 394, 1770, 682, 5621, 202, 202, 698, 288, 1082, 202, 529, 18, 896, 1557, 5621, 202, 202, 97, 1044, 261, 503, 425, 13, 288, 1082, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 5167, 3829, 1435, 288, 202, 202, 529, 273, 394, 1770, 682, 5621, 202, 202, 698, 288, 1082, 202, 529, 18, 896, 1557, 5621, 202, 202, 97, 1044, 261, 503, 425, 13, 288, 1082, 2...
IWorkbenchPart part = ((IWorkbenchPartReference) selection).getPart(true); if (part != null)
IWorkbenchPart part = ((IWorkbenchPartReference) selectedItem).getPart(true); if (part != null)
public void activate(IWorkbenchPage page,Object selection) { if (selection != null) { if (selection instanceof IEditorReference) page.setEditorAreaVisible(true); IWorkbenchPart part = ((IWorkbenchPartReference) selection).getPart(true); if (part != null) page.activate(part); } }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/f4c7612b94bd3c858ff747bb4d43466101c13426/CyclePartAction.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/CyclePartAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 10235, 12, 45, 2421, 22144, 1964, 1363, 16, 921, 4421, 13, 288, 202, 202, 430, 261, 10705, 480, 446, 13, 288, 1082, 202, 430, 261, 10705, 1276, 467, 6946, 2404, 13, 9506,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 10235, 12, 45, 2421, 22144, 1964, 1363, 16, 921, 4421, 13, 288, 202, 202, 430, 261, 10705, 480, 446, 13, 288, 1082, 202, 430, 261, 10705, 1276, 467, 6946, 2404, 13, 9506,...
int b = unigrams[firstWordID].getFirstBigramEntry();
if (bigram != null) { int numberTrigrams = 0, size = 0; long position = 0; try { int b1 = unigrams[firstWordID].getFirstBigramEntry(); b1 += bigram.getWhichFollower(); int b2 = b1 + 1; BigramProbability nextBigram = loader.loadBigram(b2).getBigramProbability(0); int firstTrigramEntry = trigramSegmentTable[b1 >> loader.getLogBigramSegmentSize()] + bigram.getFirstTrigramEntry(); int nextFirstTrigramEntry = trigramSegmentTable[b2 >> loader.getLogBigramSegmentSize()] + nextBigram.getFirstTrigramEntry(); position = (long) (loader.getTrigramOffset() + (firstTrigramEntry * BYTES_PER_TRIGRAM)); numberTrigrams = nextFirstTrigramEntry - firstTrigramEntry; size = numberTrigrams * BYTES_PER_TRIGRAM;
private TrigramBuffer loadTrigramBuffer(int firstWordID, int secondWordID) { TrigramBuffer trigramBuffer = null; BigramProbability bigram = findBigram(firstWordID, secondWordID); int b = unigrams[firstWordID].getFirstBigramEntry(); // calculate b as the absolute index of bigram w1,w2 on disk b += bigram.getWhichFollower(); int firstTrigramEntry = trigramSegmentTable[b >> loader.getLogBigramSegmentSize()] + bigram.getFirstTrigramEntry(); long position = (long) (loader.getTrigramOffset() + (firstTrigramEntry * BYTES_PER_TRIGRAM)); int size = bigram.getNumberTrigramEntries() * BYTES_PER_TRIGRAM; try { // System.out.println("Loading TrigramBuffer from disk"); ByteBuffer buffer = loader.loadBuffer(position, size); trigramBuffer = new TrigramBuffer (buffer, bigram.getNumberTrigramEntries()); } catch (IOException ioe) { ioe.printStackTrace(); throw new Error("Error loading trigram followers"); } return trigramBuffer; }
8350 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8350/9cbd6cc7b5847cd9bbca4bba0ea8be9a3ea6828c/LargeTrigramModel.java/buggy/edu/cmu/sphinx/knowledge/language/large/LargeTrigramModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 840, 360, 1940, 1892, 1262, 1070, 360, 1940, 1892, 12, 474, 1122, 3944, 734, 16, 9944, 565, 509, 2205, 3944, 734, 13, 288, 202, 1070, 360, 1940, 1892, 23142, 1940, 1892, 273, 446, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 840, 360, 1940, 1892, 1262, 1070, 360, 1940, 1892, 12, 474, 1122, 3944, 734, 16, 9944, 565, 509, 2205, 3944, 734, 13, 288, 202, 1070, 360, 1940, 1892, 23142, 1940, 1892, 273, 446, ...
vcs.delete(p("file"));
vcs.delete(p("/file"));
public void testKeepingIdOnRestoringDeletedFile() { vcs.createFile(p("file"), null); vcs.apply(); Integer id1 = vcs.getEntry(p("file")).getId(); vcs.delete(p("file")); vcs.apply(); vcs._revert(); Integer id2 = vcs.getEntry(p("file")).getId(); assertEquals(id1, id2); }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/8a6fdbc15b3cd4aaa232cf2026aa4a60418c162a/LocalVcsBasicsTest.java/clean/LocalVcs/test/com/intellij/localvcs/LocalVcsBasicsTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1842, 11523, 310, 548, 1398, 5188, 6053, 7977, 812, 1435, 288, 565, 20255, 18, 2640, 812, 12, 84, 2932, 768, 6, 3631, 446, 1769, 565, 20255, 18, 9010, 5621, 565, 2144, 612, 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, 1842, 11523, 310, 548, 1398, 5188, 6053, 7977, 812, 1435, 288, 565, 20255, 18, 2640, 812, 12, 84, 2932, 768, 6, 3631, 446, 1769, 565, 20255, 18, 9010, 5621, 565, 2144, 612, 2...
ClOrdID clOrdID = new ClOrdID(); message.getField( clOrdID );
ClOrdID clOrdID = new ClOrdID(); message.getField(clOrdID);
public void process( Message message, SessionID sessionID )throws FieldNotFound, UnsupportedMessageType, IncorrectTagValue { quickfix.Message echo = (quickfix.Message)message.clone(); PossResend possResend = new PossResend( false ); if ( message.getHeader().isSetField( possResend ) ) message.getHeader().getField( possResend ); ClOrdID clOrdID = new ClOrdID(); message.getField( clOrdID ); Pair pair = new Pair( clOrdID, sessionID ); if( possResend.getValue() == true ) { if( orderIDs.contains(pair) ) return; } orderIDs.add( pair ); try { Session.sendToTarget( echo, sessionID ); } catch( SessionNotFound snf ) { }}
52526 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52526/19fa2bfd8615fd72af2a2fd97fa2d10610494c31/at_messagecracker.java/buggy/test/quickfix/test/acceptance/at_messagecracker.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 918, 1207, 12, 2350, 883, 16, 3877, 734, 13737, 262, 15069, 2286, 2768, 16, 7221, 24563, 16, 657, 6746, 1805, 620, 288, 225, 9549, 904, 18, 1079, 3376, 273, 261, 19525, 904, 18, 1079, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 918, 1207, 12, 2350, 883, 16, 3877, 734, 13737, 262, 15069, 2286, 2768, 16, 7221, 24563, 16, 657, 6746, 1805, 620, 288, 225, 9549, 904, 18, 1079, 3376, 273, 261, 19525, 904, 18, 1079, ...
if (myIsDisposed) return; if (releaseTracker(tracker.getDocument())) { installTracker(tracker.getVirtualFile(), tracker.getDocument());
if (myIsDisposed) return; if (releaseTracker(tracker.getDocument())) { installTracker(tracker.getVirtualFile(), tracker.getDocument()); }
public void run() { if (myIsDisposed) return; if (releaseTracker(tracker.getDocument())) { installTracker(tracker.getVirtualFile(), tracker.getDocument()); } }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/254eb72699e3af73fa3bc0107252851ee9d84694/ProjectLevelVcsManagerImpl.java/buggy/source/com/intellij/openapi/vcs/impl/ProjectLevelVcsManagerImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1086, 1435, 288, 1850, 309, 261, 4811, 2520, 1669, 7423, 13, 327, 31, 1850, 309, 261, 9340, 8135, 12, 16543, 18, 588, 2519, 1435, 3719, 288, 5411, 3799, 8135, 12, 16543, 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, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 1086, 1435, 288, 1850, 309, 261, 4811, 2520, 1669, 7423, 13, 327, 31, 1850, 309, 261, 9340, 8135, 12, 16543, 18, 588, 2519, 1435, 3719, 288, 5411, 3799, 8135, 12, 16543, 18, ...
case 2 : {
case 3: {
public void setPane() { panleID ++; switch (panleID) { case 1 : { panel_3.setCaptions(" Options" , " Set the options for the code generation"); this.secondPanel.setVisible(true); this.secondPanel.setCodeGenBean(codegenBean); this.plMiddle.setVisible(false); BottomPanel.setEnable(true, false, true); break; } case 2 : { panel_3.setCaptions(" Output" , " set the output project for the generated code"); this.secondPanel.setVisible(false); this.plMiddle.setVisible(false); this.outputpane.setVisible(true); BottomPanel.setEnable(true, true, true); break; } } }
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/5ce9b17c12a2b8c491678a62c14ea1084efd627e/Java2CodeFrame.java/clean/modules/tool/axis2-idea-plugin/src/main/java/org/apache/axis2/tools/idea/Java2CodeFrame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 8485, 1435, 288, 3639, 2800, 298, 734, 965, 31, 3639, 1620, 261, 7355, 298, 734, 13, 288, 5411, 648, 404, 294, 288, 7734, 6594, 67, 23, 18, 542, 23508, 573, 2932, 225, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 444, 8485, 1435, 288, 3639, 2800, 298, 734, 965, 31, 3639, 1620, 261, 7355, 298, 734, 13, 288, 5411, 648, 404, 294, 288, 7734, 6594, 67, 23, 18, 542, 23508, 573, 2932, 225, ...
boolean success = natReg.updateEntry(symbol,oldId,ssn,familyId,name,commune,street,building, floor,sex,maritialStatus,empty,prohibitMarking, nationality,placeOfBirth,spouseSSN,fate,parish,po,address, addressCode, dateOfModification, placementCode, dateOfCreation, lastDomesticAddress, agentSsn, sNew, addressName, dateOfDeletion, newSsnOrName, dateOfBirth);
boolean success = false; if (createOnly) { NationalRegister reg = natReg.getEntryBySSN(ssn); if (reg == null) { success = natReg.updateEntry(symbol,oldId,ssn,familyId,name,commune,street,building, floor,sex,maritialStatus,empty,prohibitMarking, nationality,placeOfBirth,spouseSSN,fate,parish,po,address, addressCode, dateOfModification, placementCode, dateOfCreation, lastDomesticAddress, agentSsn, sNew, addressName, dateOfDeletion, newSsnOrName, dateOfBirth); } else { success = true; } } else { success = natReg.updateEntry(symbol,oldId,ssn,familyId,name,commune,street,building, floor,sex,maritialStatus,empty,prohibitMarking, nationality,placeOfBirth,spouseSSN,fate,parish,po,address, addressCode, dateOfModification, placementCode, dateOfCreation, lastDomesticAddress, agentSsn, sNew, addressName, dateOfDeletion, newSsnOrName, dateOfBirth); }
protected boolean storeNationRegisterEntry() throws RemoteException { //variables String symbol = getProperty(COLUMN_SYMBOL); String oldId = getProperty(COLUMN_OLD_ID); String ssn = getProperty(COLUMN_SSN); String familyId = getProperty(COLUMN_FAMILY_ID); String name = getProperty(COLUMN_NAME); String commune = getProperty(COLUMN_COMMUNE); String street = getProperty(COLUMN_STREET); String building = getProperty(COLUMN_BUILDING); String floor = getProperty(COLUMN_FLOOR); String sex = getProperty(COLUMN_SEX); String maritialStatus = getProperty(COLUMN_MARITIAL_STATUS); String empty = getProperty(COLUMN_EMPTY); String prohibitMarking = getProperty(COLUMN_NO_MAIL); String nationality = getProperty(COLUMN_NATIONALITY); String placeOfBirth = getProperty(COLUMN_PLACE_OF_BIRTH); String spouseSSN = getProperty(COLUMN_SPOUSE_SSN); String fate = getProperty(COLUMN_STATUS); String parish = getProperty(COLUMN_PARISH); String po = getProperty(COLUMN_PO); String address = getProperty(COLUMN_ADDRESS); String addressCode = getProperty(COLUMN_ADDRESS_CODE); String dateOfModification = getProperty(COLUMN_DATE_OF_MODIFICATION); String placementCode = getProperty(COLUMN_PLACEMENT_CODE); String dateOfCreation = getProperty(COLUMN_DATE_OF_CREATION); String lastDomesticAddress = getProperty(COLUMN_LAST_DOMESTIC_ADDRESS); String agentSsn = getProperty(COLUMN_AGENT_SSN); String sNew = getProperty(COLUMN_NEW); String addressName = getProperty(COLUMN_ADDRESS_NAME); String dateOfDeletion = getProperty(COLUMN_DATE_OF_DELETION); String newSsnOrName = getProperty(COLUMN_NEW_SSN_OR_NAME); String dateOfBirth = getProperty(COLUMN_DATE_OF_BIRTH); // System.out.println("ssn = " + ssn); if (ssn == null || ssn.equals("")) return false; // //initialize business beans and data homes NationalRegisterBusiness natReg = (NationalRegisterBusiness) getServiceInstance(NationalRegisterBusiness.class); boolean success = natReg.updateEntry(symbol,oldId,ssn,familyId,name,commune,street,building, floor,sex,maritialStatus,empty,prohibitMarking, nationality,placeOfBirth,spouseSSN,fate,parish,po,address, addressCode, dateOfModification, placementCode, dateOfCreation, lastDomesticAddress, agentSsn, sNew, addressName, dateOfDeletion, newSsnOrName, dateOfBirth); if (success) { _familyRelations.put(familyId, ssn); } return success; }
14545 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14545/399899c093ef3ba65b6d04550f80cdf5b5687fc7/NationalRegisterFileImportHandlerBean.java/buggy/src/java/is/idega/block/nationalregister/business/NationalRegisterFileImportHandlerBean.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 1250, 1707, 50, 367, 3996, 1622, 1435, 1216, 18361, 288, 202, 202, 759, 7528, 202, 202, 780, 3273, 273, 3911, 12, 11009, 67, 22093, 1769, 202, 202, 780, 1592, 548, 273, 3911, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1250, 1707, 50, 367, 3996, 1622, 1435, 1216, 18361, 288, 202, 202, 759, 7528, 202, 202, 780, 3273, 273, 3911, 12, 11009, 67, 22093, 1769, 202, 202, 780, 1592, 548, 273, 3911, ...
this.contents = f;
StackLayout stackLayout = new StackLayout(); f.addLayoutListener(LayoutAnimator.getDefault()); f.setLayoutManager(stackLayout);
public void setContents(Object input, IDAGContentProvider contentProvider, ILabelProvider labelProvider) { getFigureCanvas().setBackground(ColorConstants.white); IFigure f = new Figure(); this.contents = f; FlowLayout flowLayout = new FlowLayout(false); f.addLayoutListener(LayoutAnimator.getDefault()); flowLayout.setMinorAlignment(FlowLayout.ALIGN_LEFTTOP); f.setLayoutManager(flowLayout); DagModelFactory factory = new DagModelFactory(this, contentProvider, labelProvider); DagNode[] roots = factory.createModel(contentProvider.getElements(input)); for (int i = 0; i < roots.length; i++) { roots[i].placeFigure(f); //roots[i].setCompression(treeCompression); } getFigureCanvas().setContents(f); }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/8c868d89ee8551c04629c236af5d794b999d21b3/DagViewerImpl.java/clean/sandbox/org.eclipse.mylyn.zest.core/src/org/eclipse/mylyn/zest/core/internal/treegraphviewer/DagViewerImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 6323, 12, 921, 810, 16, 1599, 1781, 1350, 2249, 913, 2249, 16, 467, 2224, 2249, 1433, 2249, 13, 288, 202, 202, 588, 42, 15906, 12971, 7675, 542, 8199, 12, 2957, 2918...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 444, 6323, 12, 921, 810, 16, 1599, 1781, 1350, 2249, 913, 2249, 16, 467, 2224, 2249, 1433, 2249, 13, 288, 202, 202, 588, 42, 15906, 12971, 7675, 542, 8199, 12, 2957, 2918...
int getID(String select, String parameter) throws Exception{ int id = -1; PreparedStatement stmt = connection.prepareStatement (select);
int getID(String select, String parameter) throws Exception { int id = -1;
int getID(String select, String parameter) throws Exception{ int id = -1; PreparedStatement stmt = connection.prepareStatement (select); stmt.setString (1,parameter); ResultSet rs = stmt.executeQuery (); if (rs.next ()){ id = rs.getInt (1); } return id; }
57198 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57198/44d871697c8695255c20e736c36005f72b238a8a/DBManager.java/clean/branches/commandline/src/org/jarchivar/sql/DBManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 509, 14744, 12, 780, 2027, 16, 514, 1569, 13, 1216, 1185, 95, 565, 509, 612, 273, 300, 21, 31, 3639, 16913, 3480, 273, 1459, 18, 9366, 3406, 261, 4025, 1769, 565, 3480, 18, 542, 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, 282, 509, 14744, 12, 780, 2027, 16, 514, 1569, 13, 1216, 1185, 95, 565, 509, 612, 273, 300, 21, 31, 3639, 16913, 3480, 273, 1459, 18, 9366, 3406, 261, 4025, 1769, 565, 3480, 18, 542, 780, ...
System.out.println("NOT pos="+pos);
System.out.println("NOT pos=" + pos);
public static void main2(String[] args) throws IOException { File testDir = new File("C:/data/bad/radar2/"); File[] files = testDir.listFiles(); for (int i = 0; i < files.length; i++) { File file = files[i]; if (!file.getPath().endsWith(".ar2v")) continue; System.out.println(file.getPath()+" "+file.length()); long pos = testValid(file.getPath()); if (pos == file.length()) { System.out.println("OK"); try { NetcdfFile.open(file.getPath()); } catch (Throwable t) { System.out.println("ERROR= "+t); } } else System.out.println("NOT pos="+pos); System.out.println(); } }
50426 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50426/33747efa5201b2c69f913702c0401a74202a10a7/Level2VolumeScan.java/clean/cdm/src/main/java/ucar/nc2/iosp/nexrad2/Level2VolumeScan.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 918, 2774, 22, 12, 780, 8526, 833, 13, 1216, 1860, 288, 565, 1387, 1842, 1621, 273, 394, 1387, 2932, 39, 27824, 892, 19, 8759, 19, 6012, 297, 22, 4898, 1769, 565, 1387, 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, 1071, 760, 918, 2774, 22, 12, 780, 8526, 833, 13, 1216, 1860, 288, 565, 1387, 1842, 1621, 273, 394, 1387, 2932, 39, 27824, 892, 19, 8759, 19, 6012, 297, 22, 4898, 1769, 565, 1387, 8526,...
** clear to me what effect it would have to change it. ** ** - Jeff
** clear to me what effect it would have to change it. - Jeff
public ValueNode bindExpression( FromList fromList, SubqueryList subqueryList, Vector aggregateVector) throws StandardException { // deal with binding operands leftOperand = leftOperand.bindExpression(fromList, subqueryList, aggregateVector); rightOperand = rightOperand.bindExpression(fromList, subqueryList, aggregateVector); // deal with operand parameters /* Is there a ? parameter on the left? If so, it's type is the type of the other parameter, with maximum length for that type. */ if (leftOperand.isParameterNode()) { if (rightOperand.isParameterNode()) { throw StandardException.newException(SQLState.LANG_BINARY_OPERANDS_BOTH_PARMS, operator); } TypeId leftType; /* ** A ? on the left gets its type from the right. There are six ** legal types for the concatenation operator: CHAR, VARCHAR, ** LONG VARCHAR, BIT, BIT VARYING, and LONG BIT VARYING. If the ** right type is one of the bit types, set the parameter type to ** BIT VARYING with maximum length. ** ** If the right type is anything else, set it to VARCHAR with ** maximum length. We count on the resolveConcatOperation method to ** catch an illegal type. ** ** NOTE: When I added the long types, I could have changed the ** resulting parameter types to LONG VARCHAR and LONG BIT VARYING, ** but they were already VARCHAR and BIT VARYING, and it wasn't ** clear to me what effect it would have to change it. ** ** - Jeff */ if (rightOperand.getTypeId().isBitTypeId()) { leftType = TypeId.getBuiltInTypeId(Types.VARBINARY); } else { leftType = TypeId.getBuiltInTypeId(Types.VARCHAR); } ((ParameterNode) leftOperand).setDescriptor(new DataTypeDescriptor(leftType, true)); } /* Is there a ? parameter on the right? */ if (rightOperand.isParameterNode()) { TypeId rightType; /* ** A ? on the right gets its type from the left. There are six ** legal types for the concatenation operator: CHAR, VARCHAR, ** LONG VARCHAR, BIT, BIT VARYING, and LONG BIT VARYING. If the ** left type is one of the bit types, set the parameter type to ** BIT VARYING with maximum length. If the left type is anything ** else, set it to VARCHAR with maximum length. We count on the ** resolveConcatOperation method to catch an illegal type. ** ** NOTE: When I added the long types, I could have changed the ** resulting parameter types to LONG VARCHAR and LONG BIT VARYING, ** but they were already VARCHAR and BIT VARYING, and it wasn't ** clear to me what effect it would have to change it. ** ** - Jeff */ if (leftOperand.getTypeId().isBitTypeId()) { rightType = TypeId.getBuiltInTypeId(Types.VARBINARY); } else { rightType = TypeId.getBuiltInTypeId(Types.VARCHAR); } ((ParameterNode) rightOperand).setDescriptor( new DataTypeDescriptor( rightType, true)); } /* If the left operand is not a built-in type, then generate a bound conversion * tree to a built-in type. */ if (! leftOperand.getTypeId().systemBuiltIn()) { leftOperand = leftOperand.genSQLJavaSQLTree(); } /* If the right operand is not a built-in type, then generate a bound conversion * tree to a built-in type. */ if (! rightOperand.getTypeId().systemBuiltIn()) { rightOperand = rightOperand.genSQLJavaSQLTree(); } /* If either the left or right operands are non-string, non-bit types, * then we generate an implicit cast to VARCHAR. */ TypeCompiler tc = leftOperand.getTypeCompiler(); if (! (leftOperand.getTypeId().isStringTypeId() || leftOperand.getTypeId().isBitTypeId())) { leftOperand = (ValueNode) getNodeFactory().getNode( C_NodeTypes.CAST_NODE, leftOperand, DataTypeDescriptor.getBuiltInDataTypeDescriptor(Types.VARCHAR, true, tc.getCastToCharWidth( leftOperand.getTypeServices())), getContextManager()); ((CastNode) leftOperand).bindCastNodeOnly(); } tc = rightOperand.getTypeCompiler(); if (! (rightOperand.getTypeId().isStringTypeId() || rightOperand.getTypeId().isBitTypeId())) { rightOperand = (ValueNode) getNodeFactory().getNode( C_NodeTypes.CAST_NODE, rightOperand, DataTypeDescriptor.getBuiltInDataTypeDescriptor(Types.VARCHAR, true, tc.getCastToCharWidth( rightOperand.getTypeServices())), getContextManager()); ((CastNode) rightOperand).bindCastNodeOnly(); } /* ** Set the result type of this operator based on the operands. ** By convention, the left operand gets to decide the result type ** of a binary operator. */ tc = leftOperand.getTypeCompiler(); setType(resolveConcatOperation( leftOperand.getTypeServices(), rightOperand.getTypeServices())); /* ** Make sure the maximum width set for the result doesn't exceed the result type's maximum width */ if (SanityManager.DEBUG) { if (getTypeServices().getMaximumWidth() > getTypeId().getMaximumMaximumWidth()) { SanityManager.THROWASSERT("The maximum length " + getTypeServices().getMaximumWidth() + " for the result type " + getTypeId().getSQLTypeName() + " can't be greater than it's maximum width of result's typeid" + getTypeId().getMaximumMaximumWidth()); } } /* ** Now that we know the target interface type, set it. This assumes ** that both operands have the same interface type, which is a safe ** assumption for the concatenation operator. */ this.setLeftRightInterfaceType(tc.interfaceName()); return this; }
56322 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56322/8809d55922b5fadeaf299aa53c51f8e319fa668e/ConcatenationOperatorNode.java/clean/java/engine/org/apache/derby/impl/sql/compile/ConcatenationOperatorNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1445, 907, 1993, 2300, 12, 202, 202, 1265, 682, 628, 682, 16, 2592, 2271, 682, 20074, 682, 16, 202, 202, 5018, 202, 18573, 5018, 13, 1082, 202, 15069, 8263, 503, 202, 95, 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, 1445, 907, 1993, 2300, 12, 202, 202, 1265, 682, 628, 682, 16, 2592, 2271, 682, 20074, 682, 16, 202, 202, 5018, 202, 18573, 5018, 13, 1082, 202, 15069, 8263, 503, 202, 95, 202,...
((RubyString) filename).getValue(),
((RubyString) filename).toString(),
public IRubyObject execute(IRubyObject self, IRubyObject[] args) { IRubyObject source = args[1]; IRubyObject filename = args[2]; IRubyObject lineNumber = args[3]; return args[0].eval(source, self.getRuntime().getNil(), ((RubyString) filename).getValue(), RubyNumeric.fix2int(lineNumber)); }
48072 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48072/9f2efc63a858fa0507245b207025eab027840a04/RubyObject.java/clean/src/org/jruby/RubyObject.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 15908, 10340, 921, 1836, 12, 7937, 10340, 921, 365, 16, 15908, 10340, 921, 8526, 833, 13, 288, 7734, 15908, 10340, 921, 1084, 273, 833, 63, 21, 15533, 7734, 15908, 10340, 921, 1544, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 15908, 10340, 921, 1836, 12, 7937, 10340, 921, 365, 16, 15908, 10340, 921, 8526, 833, 13, 288, 7734, 15908, 10340, 921, 1084, 273, 833, 63, 21, 15533, 7734, 15908, 10340, 921, 1544, ...
JavaPreferencesSettings.getCodeGenerationSettings());
JavaPreferencesSettings.getCodeGenerationSettings(cu.getJavaProject()));
private void failHelper1(int startLine, int startColumn, int endLine, int endColumn, boolean replaceAll, boolean makeFinal, String tempName, int expectedStatus) throws Exception{ ICompilationUnit cu= createCUfromTestFile(getPackageP(), false, true); ISourceRange selection= TextRangeUtil.getSelection(cu, startLine, startColumn, endLine, endColumn); ExtractTempRefactoring ref= ExtractTempRefactoring.create(cu, selection.getOffset(), selection.getLength(), JavaPreferencesSettings.getCodeGenerationSettings()); ref.setReplaceAllOccurrences(replaceAll); ref.setDeclareFinal(makeFinal); ref.setTempName(tempName); RefactoringStatus result= performRefactoring(ref); assertNotNull("precondition was supposed to fail", result); assertEquals("status", expectedStatus, result.getSeverity()); }
9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/b7c3f3480ba721ada9a3fc3b41916599bd22ee95/ExtractTempTests.java/buggy/org.eclipse.jdt.ui.tests.refactoring/test cases/org/eclipse/jdt/ui/tests/refactoring/ExtractTempTests.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 2321, 2276, 21, 12, 474, 24636, 16, 509, 787, 1494, 16, 509, 31763, 16, 509, 679, 1494, 16, 1250, 10344, 16, 1250, 1221, 7951, 16, 514, 1906, 461, 16, 509, 2665, 1482, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2321, 2276, 21, 12, 474, 24636, 16, 509, 787, 1494, 16, 509, 31763, 16, 509, 679, 1494, 16, 1250, 10344, 16, 1250, 1221, 7951, 16, 514, 1906, 461, 16, 509, 2665, 1482, ...
return; case FetchException.DATA_NOT_FOUND: case FetchException.ROUTE_NOT_FOUND: case FetchException.REJECTED_OVERLOAD: case FetchException.TRANSFER_FAILED:
else
private void realRun() { // Do the fetch Fetcher f = new Fetcher(uri, this.segment.blockFetchContext); try { FetchResult fr = f.realRun(new ClientMetadata(), segment.recursionLevel, uri, (!this.segment.nonFullBlocksAllowed) || dontEnterImplicitArchives, segment.blockFetchContext.localRequestOnly || completedTries == 0); actuallyFetched = true; fetchedData = fr.data; Logger.minor(this, "Fetched "+fetchedData.size()+" bytes on "+this); tracker.success(this); } catch (MetadataParseException e) { fatalError(e, FetchException.INVALID_METADATA); } catch (FetchException e) { int code = e.getMode(); switch(code) { case FetchException.ARCHIVE_FAILURE: case FetchException.BLOCK_DECODE_ERROR: case FetchException.HAS_MORE_METASTRINGS: case FetchException.INVALID_METADATA: case FetchException.NOT_IN_ARCHIVE: case FetchException.TOO_DEEP_ARCHIVE_RECURSION: case FetchException.TOO_MANY_ARCHIVE_RESTARTS: case FetchException.TOO_MANY_METADATA_LEVELS: case FetchException.TOO_MANY_REDIRECTS: case FetchException.TOO_MUCH_RECURSION: case FetchException.UNKNOWN_METADATA: case FetchException.UNKNOWN_SPLITFILE_METADATA: // Fatal, probably an error on insert fatalError(e, code); return; case FetchException.DATA_NOT_FOUND: case FetchException.ROUTE_NOT_FOUND: case FetchException.REJECTED_OVERLOAD: case FetchException.TRANSFER_FAILED: // Non-fatal nonfatalError(e, code); return; case FetchException.BUCKET_ERROR: case FetchException.INTERNAL_ERROR: // Maybe fatal nonfatalError(e, code); return; } } catch (ArchiveFailureException e) { fatalError(e, FetchException.ARCHIVE_FAILURE); } catch (ArchiveRestartException e) { Logger.error(this, "Got an ArchiveRestartException in a splitfile - WTF?"); fatalError(e, FetchException.ARCHIVE_FAILURE); } }
50287 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50287/87760d0ac57e5e39f75661e91adeb3a9ffcc5dfb/BlockFetcher.java/buggy/src/freenet/client/BlockFetcher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 2863, 1997, 1435, 288, 202, 202, 759, 2256, 326, 2158, 202, 202, 16855, 284, 273, 394, 8065, 264, 12, 1650, 16, 333, 18, 9273, 18, 2629, 5005, 1042, 1769, 202, 202, 698,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 2863, 1997, 1435, 288, 202, 202, 759, 2256, 326, 2158, 202, 202, 16855, 284, 273, 394, 8065, 264, 12, 1650, 16, 333, 18, 9273, 18, 2629, 5005, 1042, 1769, 202, 202, 698,...
assertTrue("incorrect sign", result.signum() == -1);
assertEquals("incorrect sign", -1, result.signum());
public void testCase2() { byte aBytes[] = {1, 2, 3, 4, 5, 6, 7, 1, 2, 3}; byte bBytes[] = {10, 20, 30, 40, 50, 60, 70, 10, 20, 30}; int aSign = -1; int bSign = -1; byte rBytes[] = {-12, -23, -34, -45, -56, -67, -78, -12, -23, -33}; BigInteger aNumber = new BigInteger(aSign, aBytes); BigInteger bNumber = new BigInteger(bSign, bBytes); BigInteger result = aNumber.add(bNumber); byte resBytes[] = new byte[rBytes.length]; resBytes = result.toByteArray(); for(int i = 0; i < resBytes.length; i++) { assertTrue(resBytes[i] == rBytes[i]); } assertTrue("incorrect sign", result.signum() == -1); }
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/2de6e235697acde9baa71a0268d4d3752d10bdf6/BigIntegerAddTest.java/clean/modules/math/src/test/java/org/apache/harmony/tests/java/math/BigIntegerAddTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 2449, 22, 1435, 288, 3639, 1160, 279, 2160, 8526, 273, 288, 21, 16, 576, 16, 890, 16, 1059, 16, 1381, 16, 1666, 16, 2371, 16, 404, 16, 576, 16, 890, 20451, 3639, 1160...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2449, 22, 1435, 288, 3639, 1160, 279, 2160, 8526, 273, 288, 21, 16, 576, 16, 890, 16, 1059, 16, 1381, 16, 1666, 16, 2371, 16, 404, 16, 576, 16, 890, 20451, 3639, 1160...
public int getFetchSize() throws SQLException;
public int getFetchSize();
public int getFetchSize() throws SQLException;
47293 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47293/7ecb6ede284fdf9f138028cc9db042c316e2f65e/BaseStatement.java/buggy/src/interfaces/jdbc/org/postgresql/core/BaseStatement.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 509, 2812, 1593, 1225, 1435, 1216, 6483, 31, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 509, 2812, 1593, 1225, 1435, 1216, 6483, 31, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100,...
addC( (int) Lexer.foldCase(p.charAt(i), this.configuration.UpperCaseTags, this.configuration.XmlTags),
addC((int) Lexer.foldCase(p.charAt(i), this.configuration.UpperCaseTags, this.configuration.XmlTags),
private void printTag(Lexer lexer, Out fout, short mode, int indent, Node node) { char c; String p; TagTable tt = this.configuration.tt; addC('<', linelen++); if (node.type == Node.EndTag) { addC('/', linelen++); } p = node.element; for (int i = 0; i < p.length(); i++) { addC( (int) Lexer.foldCase(p.charAt(i), this.configuration.UpperCaseTags, this.configuration.XmlTags), linelen++); } printAttrs(fout, indent, node, node.attributes); if ((this.configuration.XmlOut || lexer != null && lexer.isvoyager) && (node.type == Node.StartEndTag || (node.tag.model & Dict.CM_EMPTY) != 0)) { addC(' ', linelen++); /* compatibility hack */ addC('/', linelen++); } addC('>', linelen++); if (node.type != Node.StartEndTag && !((mode & PREFORMATTED) != 0)) { if (indent + linelen >= this.configuration.wraplen) { wrapLine(fout, indent); } if (indent + linelen < this.configuration.wraplen) { /* * wrap after start tag if is <br/> or if it's not inline or it is an empty tag followed by </a> */ if (afterSpace(node)) { if (!((mode & NOWRAP) != 0) && (!((node.tag.model & Dict.CM_INLINE) != 0) || (node.tag == tt.tagBr) || (((node.tag.model & Dict.CM_EMPTY) != 0) && node.next == null && node.parent.tag == tt.tagA))) { wraphere = linelen; } } } else { condFlushLine(fout, indent); } } }
3308 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3308/dd03810db270e27195eaf643dcb027b964545c43/PPrint.java/clean/src/main/org/w3c/tidy/PPrint.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1172, 1805, 12, 13356, 8512, 16, 2976, 17382, 16, 3025, 1965, 16, 509, 3504, 16, 2029, 756, 13, 565, 288, 3639, 1149, 276, 31, 3639, 514, 293, 31, 3639, 4034, 1388, 3574, 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, 1172, 1805, 12, 13356, 8512, 16, 2976, 17382, 16, 3025, 1965, 16, 509, 3504, 16, 2029, 756, 13, 565, 288, 3639, 1149, 276, 31, 3639, 514, 293, 31, 3639, 4034, 1388, 3574, 273...
declarations.put(instanceName, className);
_declarations.put(instanceName, className);
public void declareInstance(String instanceName, String className) { declarations.put(instanceName, className); }
12869 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12869/db20cd1072fedd60716f52ee1c2a26e1f98755b9/ParsedPolicyFile.java/clean/securityservices/src/org/cougaar/core/security/policy/builder/ParsedPolicyFile.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 14196, 1442, 12, 780, 21090, 16, 17311, 514, 2658, 13, 225, 288, 565, 389, 8840, 9642, 18, 458, 12, 1336, 461, 16, 2658, 1769, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 14196, 1442, 12, 780, 21090, 16, 17311, 514, 2658, 13, 225, 288, 565, 389, 8840, 9642, 18, 458, 12, 1336, 461, 16, 2658, 1769, 225, 289, 2, -100, -100, -100, -100, -100, -100...
final ISummary summary = executionCourse.createSummary(infoSummary.getTitle(), infoSummary .getSummaryText(), infoSummary.getStudentsNumber(), infoSummary.getIsExtraLesson(), teacher); shift.transferSummary(summary, infoSummary.getSummaryDate().getTime(), infoSummary .getSummaryHour().getTime(), room); return true;
if (!teacherBelongsToExecutionCourse(teacher, executionCourse)) { final ISummary summary = executionCourse.createSummary(infoSummary.getTitle(), infoSummary.getSummaryText(), infoSummary.getStudentsNumber(), infoSummary .getIsExtraLesson(), teacher); shift.transferSummary(summary, infoSummary.getSummaryDate().getTime(), infoSummary .getSummaryHour().getTime(), room); return true; } else{ throw new FenixServiceException("error.summary.teacher.invalid"); }
public Boolean run(Integer executionCourseID, InfoSummary infoSummary) throws FenixServiceException, ExcepcaoPersistencia { if (infoSummary == null || infoSummary.getInfoShift() == null || infoSummary.getInfoShift().getIdInternal() == null || infoSummary.getIsExtraLesson() == null || infoSummary.getSummaryDate() == null) { throw new FenixServiceException("error.summary.impossible.insert"); } final ISuportePersistente persistentSupport = PersistenceSupportFactory .getDefaultPersistenceSupport(); final IPersistentExecutionCourse persistentExecutionCourse = persistentSupport .getIPersistentExecutionCourse(); final IExecutionCourse executionCourse = (IExecutionCourse) persistentExecutionCourse.readByOID( ExecutionCourse.class, executionCourseID); if (executionCourse == null) throw new InvalidArgumentsServiceException(); final IShift shift = SummaryUtils.getShift(persistentSupport, null, infoSummary); final IRoom room = SummaryUtils.getRoom(persistentSupport, null, shift, infoSummary); final IProfessorship professorship = SummaryUtils.getProfessorship(persistentSupport, infoSummary); if (professorship != null) { final ISummary summary = executionCourse.createSummary(infoSummary.getTitle(), infoSummary .getSummaryText(), infoSummary.getStudentsNumber(), infoSummary.getIsExtraLesson(), professorship); shift.transferSummary(summary, infoSummary.getSummaryDate().getTime(), infoSummary .getSummaryHour().getTime(), room); return true; } final ITeacher teacher = SummaryUtils.getTeacher(persistentSupport, infoSummary); if (teacher != null) { final ISummary summary = executionCourse.createSummary(infoSummary.getTitle(), infoSummary .getSummaryText(), infoSummary.getStudentsNumber(), infoSummary.getIsExtraLesson(), teacher); shift.transferSummary(summary, infoSummary.getSummaryDate().getTime(), infoSummary .getSummaryHour().getTime(), room); return true; } String teacherName = infoSummary.getTeacherName(); if (teacherName != null) { final ISummary summary = executionCourse.createSummary(infoSummary.getTitle(), infoSummary .getSummaryText(), infoSummary.getStudentsNumber(), infoSummary.getIsExtraLesson(), teacherName); shift.transferSummary(summary, infoSummary.getSummaryDate().getTime(), infoSummary .getSummaryHour().getTime(), room); return true; } throw new FenixServiceException("error.summary.no.teacher"); }
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/57e6f1951253d785e77e0985c5a7ba86c28693db/InsertSummary.java/buggy/src/net/sourceforge/fenixedu/applicationTier/Servico/teacher/InsertSummary.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3411, 1086, 12, 4522, 4588, 39, 3117, 734, 16, 3807, 4733, 1123, 4733, 13, 1216, 478, 275, 697, 15133, 16, 5411, 1312, 311, 2436, 6033, 12771, 28115, 288, 3639, 309, 261, 1376, 4733...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3411, 1086, 12, 4522, 4588, 39, 3117, 734, 16, 3807, 4733, 1123, 4733, 13, 1216, 478, 275, 697, 15133, 16, 5411, 1312, 311, 2436, 6033, 12771, 28115, 288, 3639, 309, 261, 1376, 4733...
if(nullable) { this.appliedConstraints.remove(NULLABLE_CONSTRAINT); } else { Constraint c = new NullableConstraint(); c.setOwningClass(owningClass); c.setPropertyName(propertyName); c.setParameter(Boolean.valueOf(nullable)); this.appliedConstraints.put( NULLABLE_CONSTRAINT, c ); } }
if(nullable) { this.appliedConstraints.remove(NULLABLE_CONSTRAINT); } else { Constraint c = new NullableConstraint(); c.setOwningClass(owningClass); c.setPropertyName(propertyName); c.setParameter(Boolean.valueOf(nullable)); this.appliedConstraints.put( NULLABLE_CONSTRAINT, c ); } }
public void setNullable(boolean nullable) { if(nullable) { this.appliedConstraints.remove(NULLABLE_CONSTRAINT); } else { Constraint c = new NullableConstraint(); c.setOwningClass(owningClass); c.setPropertyName(propertyName); c.setParameter(Boolean.valueOf(nullable)); this.appliedConstraints.put( NULLABLE_CONSTRAINT, c ); } }
52280 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52280/975905c7e8c55e5fe91c94dc583c4269318ca341/ConstrainedProperty.java/buggy/src/commons/org/codehaus/groovy/grails/validation/ConstrainedProperty.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 13349, 12, 6494, 8413, 13, 288, 202, 202, 430, 12, 20247, 13, 288, 1082, 202, 2211, 18, 438, 3110, 4878, 18, 4479, 12, 8560, 2782, 67, 15199, 1769, 202, 202, 97, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 444, 13349, 12, 6494, 8413, 13, 288, 202, 202, 430, 12, 20247, 13, 288, 1082, 202, 2211, 18, 438, 3110, 4878, 18, 4479, 12, 8560, 2782, 67, 15199, 1769, 202, 202, 97, 2...
assertEquals( "/model/scm/url", expected.getUrl(), actual.getUrl() );
Assert.assertEquals( "/model/scm/url", expected.getUrl(), actual.getUrl() );
public void assertScm( Scm expected, Object actualObject ) { if ( expected == null ) { assertNull( "/model/scm", actualObject ); } else { assertNotNull( "/model/scm", actualObject ); assertInstanceOf( "/model/scm", Scm.class, actualObject.getClass() ); Scm actual = (Scm) actualObject; assertEquals( "/model/scm/connection", expected.getConnection(), actual.getConnection() ); assertEquals( "/model/scm/developerConnection", expected.getDeveloperConnection(), actual.getDeveloperConnection() ); assertEquals( "/model/scm/url", expected.getUrl(), actual.getUrl() ); } }
47828 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47828/8d22b8877982d05d783e10993c6d0064b846e44a/Xpp3Verifier.java/clean/modello/modello-plugins/modello-plugin-xpp3/src/test/verifiers/xpp3/Xpp3Verifier.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1815, 1541, 81, 12, 2850, 81, 2665, 16, 1033, 3214, 921, 262, 565, 288, 3639, 309, 261, 2665, 422, 446, 262, 3639, 288, 5411, 1815, 2041, 12, 2206, 2284, 19, 1017, 81, 3113, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1815, 1541, 81, 12, 2850, 81, 2665, 16, 1033, 3214, 921, 262, 565, 288, 3639, 309, 261, 2665, 422, 446, 262, 3639, 288, 5411, 1815, 2041, 12, 2206, 2284, 19, 1017, 81, 3113, ...
public void writeDate(String name, String val) throws IOException { writePrim("date",name,val,false);
public void writeDate(String name, Date val) throws IOException { cal.setTime(val); sb.setLength(0); int i = cal.get(Calendar.YEAR); sb.append(i); sb.append('-'); i = cal.get(Calendar.MONTH) + 1; if (i<10) sb.append('0'); sb.append(i); sb.append('-'); i=cal.get(Calendar.DAY_OF_MONTH); if (i<10) sb.append('0'); sb.append(i); sb.append('T'); i=cal.get(Calendar.HOUR_OF_DAY); if (i<10) sb.append('0'); sb.append(i); sb.append(':'); i=cal.get(Calendar.MINUTE); if (i<10) sb.append('0'); sb.append(i); sb.append(':'); i=cal.get(Calendar.SECOND); if (i<10) sb.append('0'); sb.append(i); i=cal.get(Calendar.MILLISECOND); if (i != 0) { sb.append('.'); if (i<100) sb.append('0'); if (i<10) sb.append('0'); sb.append(i); int lastIdx = sb.length()-1; if (sb.charAt(lastIdx)=='0') { lastIdx--; if (sb.charAt(lastIdx)=='0') { lastIdx--; } sb.setLength(lastIdx+1); } } sb.append('Z'); writeDate(name, sb.toString());
public void writeDate(String name, String val) throws IOException { writePrim("date",name,val,false); }
1514 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1514/c982fdedd6958a138d44d72d8a4d5e02e5f74443/XMLWriter.java/buggy/src/java/org/apache/solr/request/XMLWriter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1045, 1626, 12, 780, 508, 16, 514, 1244, 13, 1216, 1860, 288, 565, 1045, 2050, 381, 2932, 712, 3113, 529, 16, 1125, 16, 5743, 1769, 225, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1045, 1626, 12, 780, 508, 16, 514, 1244, 13, 1216, 1860, 288, 565, 1045, 2050, 381, 2932, 712, 3113, 529, 16, 1125, 16, 5743, 1769, 225, 289, 2, -100, -100, -100, -100, -100,...
GridData offlineButtonData = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING);
GridData offlineButtonData = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING);
public void createControl(Composite parent) { // whether the priority exists or not boolean priExist = false; String url = null; // get the model for the new bug AbstractBugWizard wizard = (AbstractBugWizard) getWizard(); NewBugModel nbm = wizard.model; // Attributes Composite- this holds all the combo fields and text // fields Composite attributesComposite = new Composite(parent, SWT.NONE); GridLayout attributesLayout = new GridLayout(); attributesLayout.numColumns = 4; attributesLayout.horizontalSpacing = 14; attributesLayout.verticalSpacing = 6; attributesComposite.setLayout(attributesLayout); GridData attributesData = new GridData(GridData.FILL_BOTH); attributesData.horizontalSpan = 1; attributesData.grabExcessVerticalSpace = false; attributesComposite.setLayoutData(attributesData); // End Attributes Composite GridLayout attributesTitleLayout = new GridLayout(); attributesTitleLayout.horizontalSpacing = 0; attributesTitleLayout.marginWidth = 0; GridData attributesTitleData = new GridData( GridData.HORIZONTAL_ALIGN_FILL); attributesTitleData.horizontalSpan = 4; attributesTitleData.grabExcessVerticalSpace = false; // Add the product to the composite newLayout(attributesComposite, 1, "Product", PROPERTY); newLayout(attributesComposite, 1, nbm.getProduct(), VALUE); // Populate Attributes for (Iterator<Attribute> it = nbm.getAttributes().iterator(); it.hasNext();) { Attribute attribute = it.next(); String key = attribute.getParameterName(); String name = attribute.getName(); String value = checkText(attribute.getValue()); Map<String, String> values = attribute.getOptionValues(); // if it is a hidden field, don't try to display it if (attribute.isHidden()) continue; if (key == null) key = ""; if (values == null) values = new HashMap<String, String>(); GridData data = new GridData(GridData.HORIZONTAL_ALIGN_FILL); data.horizontalSpan = 1; data.horizontalIndent = HORZ_INDENT; // create and populate the combo fields for the attributes if (key.equals("op_sys")) { newLayout(attributesComposite, 1, name, PROPERTY); oSCombo = new Combo(attributesComposite, SWT.NO_BACKGROUND | SWT.MULTI | SWT.V_SCROLL | SWT.READ_ONLY); oSCombo.setLayoutData(data); Set<String> s = values.keySet(); String[] a = s.toArray(new String[s.size()]); for (int i = 0; i < a.length; i++) { oSCombo.add(a[i]); } int index; if ((index = oSCombo.indexOf(value)) == -1) index = 0; oSCombo.select(index); oSCombo.addListener(SWT.Modify, this); } else if (key.equals("version")) { newLayout(attributesComposite, 1, name, PROPERTY); versionCombo = new Combo(attributesComposite, SWT.NO_BACKGROUND | SWT.MULTI | SWT.V_SCROLL | SWT.READ_ONLY); versionCombo.setLayoutData(data); Set<String> s = values.keySet(); String[] a = s.toArray(new String[s.size()]); for (int i = 0; i < a.length; i++) { versionCombo.add(a[i]); } int index; if ((index = versionCombo.indexOf(value)) == -1) index = 0; versionCombo.select(index); versionCombo.addListener(SWT.Modify, this); } else if (key.equals("bug_severity")) { newLayout(attributesComposite, 1, name, PROPERTY); severityCombo = new Combo(attributesComposite, SWT.NO_BACKGROUND | SWT.MULTI | SWT.V_SCROLL | SWT.READ_ONLY); severityCombo.setLayoutData(data); Set<String> s = values.keySet(); String[] a = s.toArray(new String[s.size()]); for (int i = 0; i < a.length; i++) { severityCombo.add(a[i]); } int index; if ((index = severityCombo.indexOf(value)) == -1) index = 0; severityCombo.select(index); severityCombo.addListener(SWT.Modify, this); } else if (key.equals("rep_platform")) { newLayout(attributesComposite, 1, name, PROPERTY); platformCombo = new Combo(attributesComposite, SWT.NO_BACKGROUND | SWT.MULTI | SWT.V_SCROLL | SWT.READ_ONLY); platformCombo.setLayoutData(data); Set<String> s = values.keySet(); String[] a = s.toArray(new String[s.size()]); for (int i = 0; i < a.length; i++) { platformCombo.add(a[i]); } int index; if ((index = platformCombo.indexOf(value)) == -1) index = 0; platformCombo.select(index); platformCombo.addListener(SWT.Modify, this); } else if (key.equals("component")) { newLayout(attributesComposite, 1, name, PROPERTY); componentCombo = new Combo(attributesComposite, SWT.NO_BACKGROUND | SWT.MULTI | SWT.V_SCROLL | SWT.READ_ONLY); componentCombo.setLayoutData(data); Set<String> s = values.keySet(); String[] a = s.toArray(new String[s.size()]); for (int i = 0; i < a.length; i++) { componentCombo.add(a[i]); } int index; if ((index = componentCombo.indexOf(value)) == -1) index = 0; componentCombo.select(index); componentCombo.addListener(SWT.Modify, this); } else if (key.equals("priority")) { newLayout(attributesComposite, 1, name, PROPERTY); priorityCombo = new Combo(attributesComposite, SWT.NO_BACKGROUND | SWT.MULTI | SWT.V_SCROLL | SWT.READ_ONLY); priorityCombo.setLayoutData(data); Set<String> s = values.keySet(); String[] a = s.toArray(new String[s.size()]); for (int i = 0; i < a.length; i++) { priorityCombo.add(a[i]); } int index; if ((index = priorityCombo.indexOf(value)) == -1) index = 0; priorityCombo.select(index); priorityCombo.addListener(SWT.Modify, this); priExist = true; } else if (key.equals("bug_file_loc")) { url = value; }else { // do nothing if it isn't a standard value to change } } if (priExist) { newLayout(attributesComposite, 1, "", PROPERTY); newLayout(attributesComposite, 1, "", PROPERTY); } GridData summaryTextData; if (url != null) { // add the assigned to text field newLayout(attributesComposite, 1, "URL", PROPERTY); urlText = new Text(attributesComposite, SWT.BORDER | SWT.SINGLE | SWT.WRAP); summaryTextData = new GridData(GridData.HORIZONTAL_ALIGN_FILL); summaryTextData.horizontalSpan = 3; summaryTextData.widthHint = 200; urlText.setLayoutData(summaryTextData); urlText.setText(url); urlText.addListener(SWT.FocusOut, this); } newLayout(attributesComposite, 1, "Assigned To", PROPERTY); Label l = new Label(attributesComposite, SWT.NONE); l.setText("NOTE: If e-mail incorrect, submit will fail silently"); summaryTextData = new GridData(GridData.HORIZONTAL_ALIGN_FILL); summaryTextData.horizontalSpan = 2; l.setLayoutData(summaryTextData); assignedToText = new Text(attributesComposite, SWT.BORDER | SWT.SINGLE | SWT.WRAP); summaryTextData = new GridData(GridData.HORIZONTAL_ALIGN_FILL); summaryTextData.horizontalSpan = 1; summaryTextData.widthHint = 200; assignedToText.setLayoutData(summaryTextData); assignedToText.setText(""); // add the summary text field newLayout(attributesComposite, 1, "Summary", PROPERTY); summaryText = new Text(attributesComposite, SWT.BORDER | SWT.SINGLE | SWT.WRAP); summaryTextData = new GridData(GridData.HORIZONTAL_ALIGN_FILL); summaryTextData.horizontalSpan = 3; summaryTextData.widthHint = 200; summaryText.setLayoutData(summaryTextData); summaryText.setText(nbm.getSummary()); summaryText.addListener(SWT.Modify, this); // Description Text Composite descriptionComposite = new Composite(attributesComposite, SWT.NONE); descriptionComposite.setLayout(attributesTitleLayout); GridData descriptionData = new GridData(GridData.HORIZONTAL_ALIGN_FILL); descriptionData.horizontalSpan = 4; descriptionData.grabExcessVerticalSpace = false; descriptionComposite.setLayoutData(descriptionData); newLayout(descriptionComposite, 4, "Description:", HEADER); // add the description text field descriptionText = new Text(attributesComposite, SWT.BORDER | SWT.MULTI | SWT.V_SCROLL | SWT.WRAP); descriptionText.setFont(AbstractBugEditor.COMMENT_FONT); GridData descriptionTextData = new GridData( GridData.HORIZONTAL_ALIGN_FILL); descriptionTextData.horizontalSpan = 4; descriptionTextData.widthHint = AbstractBugEditor.DESCRIPTION_WIDTH; descriptionTextData.heightHint = AbstractBugEditor.DESCRIPTION_HEIGHT; descriptionText.setLayoutData(descriptionTextData); descriptionText.addListener(SWT.Modify, this); serverButton = new Button(attributesComposite, SWT.RADIO); serverButton.setText("Submit bug report to the server."); GridData toServerButtonData = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING); toServerButtonData.horizontalSpan = 4; serverButton.setLayoutData(toServerButtonData); serverButton.setSelection(true); offlineButton = new Button(attributesComposite, SWT.RADIO); offlineButton.setText("Save bug report offline."); GridData offlineButtonData = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING); offlineButtonData.horizontalSpan = 4; offlineButton.setLayoutData(offlineButtonData); offlineButton.setSelection(false); if(wizard.fromDialog) offlineButton.setEnabled(false); setControl(attributesComposite); return; }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/c7e8842aaf630b312c422f4e2f0ef3bd5ed6453d/AbstractWizardDataPage.java/clean/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/wizard/AbstractWizardDataPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 752, 3367, 12, 9400, 982, 13, 288, 202, 202, 759, 2856, 326, 4394, 1704, 578, 486, 202, 202, 6494, 14705, 4786, 273, 629, 31, 202, 202, 780, 880, 273, 446, 31, 202, 202...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 752, 3367, 12, 9400, 982, 13, 288, 202, 202, 759, 2856, 326, 4394, 1704, 578, 486, 202, 202, 6494, 14705, 4786, 273, 629, 31, 202, 202, 780, 880, 273, 446, 31, 202, 202...
pros[i] = (Pronunciation) pronunciations.get(i);
pros[i] = pronunciations.get(i);
private void createWords(Map<String,Object> dictionary, boolean isFillerDict) { Set<String> spellings = dictionary.keySet(); for (Iterator<String> s = spellings.iterator(); s.hasNext();) { String spelling = s.next(); List<Pronunciation> pronunciations = (List<Pronunciation>) dictionary.get(spelling); Pronunciation[] pros = new Pronunciation[pronunciations.size()]; for (int i = 0; i < pros.length; i++) { pros[i] = (Pronunciation) pronunciations.get(i); } Word word = new Word(spelling, pros, isFillerDict); for (int i = 0; i < pros.length; i++) { pros[i].setWord(word); } dictionary.put(spelling, word); } }
52185 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52185/3bf1e714cfca57ddf5bee83ee902175fe383e676/FullDictionary.java/buggy/src/sphinx4/edu/cmu/sphinx/linguist/dictionary/FullDictionary.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1377, 3238, 918, 752, 7363, 12, 863, 32, 780, 16, 921, 34, 3880, 16, 1250, 353, 8026, 264, 5014, 13, 288, 3639, 1000, 32, 780, 34, 22377, 899, 273, 3880, 18, 856, 694, 5621, 3639, 364, 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, 1377, 3238, 918, 752, 7363, 12, 863, 32, 780, 16, 921, 34, 3880, 16, 1250, 353, 8026, 264, 5014, 13, 288, 3639, 1000, 32, 780, 34, 22377, 899, 273, 3880, 18, 856, 694, 5621, 3639, 364, 261...
if (path.indexOf("/numbers") < 0) return this;
if (path.indexOf("/currencyMatch") >= 0) { try { UnicodeSet s = new UnicodeSet(value); } catch (Exception e) { CheckStatus item = new CheckStatus().setCause(this).setType(CheckStatus.errorType) .setMessage("Error in creating UnicodeSet {0}; {1}; {2}", new Object[]{value, e.getClass().getName(), e}); result.add(item); } return this; } if (path.indexOf("/numbers") < 0) return this;
public CheckCLDR handleCheck(String path, String fullPath, String value, Map options, List result) { if (path.indexOf("/numbers") < 0) return this; try { if (path.indexOf("/pattern") >= 0 && path.indexOf("/patternDigit") < 0) { checkPattern(path, fullPath, value, result); } if (path.indexOf("/currencies") >= 0 && path.endsWith("/symbol")) { checkCurrencyFormats(path, fullPath, value, result); } byte type = getNumericType(path); if (type != NOT_NUMERIC_TYPE) { String pattern = getCanonicalPattern(value, type, isPOSIX); if (!pattern.equals(value)) { result.add(new CheckStatus() .setCause(this).setType(CheckStatus.errorType) .setMessage("Value should be \u200E{0}\u200E", new Object[]{pattern})); } } } catch (Exception e) { CheckStatus item = new CheckStatus().setCause(this).setType(CheckStatus.errorType) .setMessage("Error in creating number format {0}; {1}", new Object[]{e.getClass().getName(), e}); result.add(item); } return this; }
27800 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27800/95e9eee3c6f052d27f79d5707d853f4c6e1f2b58/CheckNumbers.java/buggy/tools/java/org/unicode/cldr/test/CheckNumbers.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2073, 5017, 6331, 1640, 1564, 12, 780, 589, 16, 514, 11225, 16, 514, 460, 16, 1635, 702, 16, 987, 563, 13, 288, 202, 202, 430, 261, 803, 18, 31806, 2932, 19, 13851, 7923, 41...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2073, 5017, 6331, 1640, 1564, 12, 780, 589, 16, 514, 11225, 16, 514, 460, 16, 1635, 702, 16, 987, 563, 13, 288, 202, 202, 430, 261, 803, 18, 31806, 2932, 19, 13851, 7923, 41...
protected void updateStatusMessage(IStructuredSelection selection) { String message = "";
protected void updateStatusMessage() { ISelection selection = getViewer().getSelection();
protected void updateStatusMessage(IStructuredSelection selection) { String message = ""; //$NON-NLS-1$ if (selection == null || selection.size() == 0) { // Show stats on all items in the view message = updateSummaryVisible(); } else if (selection.size() == 1) { // Use the Message attribute of the marker Object first = selection.getFirstElement(); if (first instanceof ConcreteMarker) { message = ((ConcreteMarker) first).getDescription(); } } else if (selection.size() > 1) { // Show stats on only those items in the selection message = updateSummarySelected(selection); } getViewSite().getActionBars().getStatusLineManager() .setMessage(message); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/0645148767f084e4b686984a56e3496706cce525/MarkerView.java/buggy/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/MarkerView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1089, 1482, 1079, 12, 45, 30733, 6233, 4421, 13, 288, 202, 202, 780, 883, 273, 1408, 31, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 430, 261, 10705, 422, 446, 747, 442...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1089, 1482, 1079, 12, 45, 30733, 6233, 4421, 13, 288, 202, 202, 780, 883, 273, 1408, 31, 4329, 3993, 17, 5106, 17, 21, 8, 202, 202, 430, 261, 10705, 422, 446, 747, 442...
buf.append("<td align=\"center\">" + pe.getFile() + "</td>" + PMD.EOL); buf.append("<td align=\"center\">" + pe.getMsg() + "</td>" + PMD.EOL);
buf.append("<td>" + pe.getFile() + "</td>" + PMD.EOL); buf.append("<td>" + pe.getMsg() + "</td>" + PMD.EOL);
private void glomProcessingErrors(Report report, StringBuffer buf) { boolean colorize = true; int violationCount; // errors if (report.errors().hasNext()) { buf.append("<hr/>"); buf.append("<center><h3>Processing errors</h3></center>"); buf.append("<table align=\"center\" cellspacing=\"0\" cellpadding=\"3\"><tr>" + PMD.EOL + "<th>File</th><th>Problem</th></tr>" + PMD.EOL); } violationCount = 0; for (Iterator i = report.errors(); i.hasNext();) { Report.ProcessingError pe = (Report.ProcessingError) i.next(); buf.append("<tr"); if (colorize) { buf.append(" bgcolor=\"lightgrey\""); } colorize = !colorize; buf.append("> " + PMD.EOL); buf.append("<td align=\"center\">" + pe.getFile() + "</td>" + PMD.EOL); buf.append("<td align=\"center\">" + pe.getMsg() + "</td>" + PMD.EOL); buf.append("</tr>" + PMD.EOL); violationCount++; } if (violationCount > 0) { buf.append("</table>"); } }
45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/395b43b6ef31bb571770335a148a52e6a78330c0/HTMLRenderer.java/buggy/pmd/src/net/sourceforge/pmd/renderers/HTMLRenderer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 5118, 362, 7798, 4229, 12, 4820, 2605, 16, 6674, 1681, 13, 288, 3639, 1250, 21077, 273, 638, 31, 3639, 509, 17893, 1380, 31, 3639, 368, 1334, 3639, 309, 261, 6006, 18, 4324, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5118, 362, 7798, 4229, 12, 4820, 2605, 16, 6674, 1681, 13, 288, 3639, 1250, 21077, 273, 638, 31, 3639, 509, 17893, 1380, 31, 3639, 368, 1334, 3639, 309, 261, 6006, 18, 4324, ...
assertEquals("This returns 'item 1'", (String) list.get(0), "item 1"); assertEquals("This returns 123", eprops.getInt("int"), 123);
assertEquals("This returns 'item 1'", "item 1", (String) list.get(0)); assertEquals("This returns 123", 123, eprops.getInt("int"));
public void testConfigurationToExtendedProperties() { Configuration config = new BaseConfiguration(); config.setProperty("string", "teststring"); config.setProperty("int", "123"); config.addProperty("list", "item 1"); config.addProperty("list", "item 2"); ExtendedProperties eprops = ConfigurationConverter.getExtendedProperties(config); assertEquals("This returns 'teststring'", eprops.getString("string"), "teststring"); List list = eprops.getVector("list"); assertEquals("This returns 'item 1'", (String) list.get(0), "item 1"); assertEquals("This returns 123", eprops.getInt("int"), 123); }
56523 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56523/3f0abe94efd4f80316c0632c6e088df5adbb5886/TestConfigurationConverter.java/buggy/src/test/org/apache/commons/configuration/TestConfigurationConverter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1750, 774, 11456, 2297, 1435, 565, 288, 3639, 4659, 642, 273, 394, 3360, 1750, 5621, 3639, 642, 18, 542, 1396, 2932, 1080, 3113, 315, 3813, 1080, 8863, 3639, 642, 18, 542...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1750, 774, 11456, 2297, 1435, 565, 288, 3639, 4659, 642, 273, 394, 3360, 1750, 5621, 3639, 642, 18, 542, 1396, 2932, 1080, 3113, 315, 3813, 1080, 8863, 3639, 642, 18, 542...
log("Could not load class (" + value + ") for task " + key, MSG_DEBUG);
public void init() throws BuildException { setJavaVersionProperty(); String defs = "/org/apache/tools/ant/taskdefs/defaults.properties"; try { Properties props = new Properties(); InputStream in = this.getClass().getResourceAsStream(defs); if (in == null) { throw new BuildException("Can't load default task list"); } props.load(in); in.close(); Enumeration enum = props.propertyNames(); while (enum.hasMoreElements()) { String key = (String) enum.nextElement(); String value = props.getProperty(key); try { Class taskClass = Class.forName(value); addTaskDefinition(key, taskClass); } catch (NoClassDefFoundError ncdfe) { // ignore... } catch (ClassNotFoundException cnfe) { // ignore... } } } catch (IOException ioe) {
506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/506/78602edfb7fee375585c055906b9c6c012127198/Project.java/clean/src/main/org/apache/tools/ant/Project.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 613, 2932, 4445, 486, 1262, 667, 7566, 397, 460, 397, 9369, 364, 1562, 315, 397, 498, 16, 13771, 67, 9394, 1769, 613, 2932, 4445, 486, 1262, 667, 7566, 397, 460, 397, 9369, 364, 1562, 315, 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, 613, 2932, 4445, 486, 1262, 667, 7566, 397, 460, 397, 9369, 364, 1562, 315, 397, 498, 16, 13771, 67, 9394, 1769, 613, 2932, 4445, 486, 1262, 667, 7566, 397, 460, 397, 9369, 364, 1562, 315, 3...
out.print("<tr><th>\"" + BagFormatter.toHTML.transliterate(data) + "\"</th><td>");
String dataStyle = "";
void showCacheData() throws IOException { PrintWriter out = null; String lastChainName = ""; for (Iterator it = contextCache.keySet().iterator(); it.hasNext();) { ElementChain stack = (ElementChain) it.next(); String chainName = getChainName(stack); if (!chainName.equals(lastChainName)) { if (out != null) { out.println("</table></body></html>"); out.close(); } out = openAndDoHeader(chainName); lastChainName = chainName; } out.println("<tr><td colspan='2' class='head'>" + BagFormatter.toHTML.transliterate(stack.toString(true)) + "</td></tr>"); Map dataToFile = (Map) contextCache.get(stack); // walk through once, and gather all the filenames Set remainingFiles = new TreeSet(fileNames); for (Iterator it2 = dataToFile.keySet().iterator(); it2.hasNext();) { String data = (String) it2.next(); remainingFiles.removeAll((Set) dataToFile.get(data)); } // hack for zh_Hant if (!remainingFiles.contains("zh")) remainingFiles.remove("zh_Hant"); // now display for (Iterator it2 = dataToFile.keySet().iterator(); it2.hasNext();) { String data = (String) it2.next(); out.print("<tr><th>\"" + BagFormatter.toHTML.transliterate(data) + "\"</th><td>"); Set files = (Set) dataToFile.get(data); if (files.contains("root")) files.addAll(remainingFiles); boolean first = true; for (Iterator it3 = files.iterator(); it3.hasNext();) { if (first) first = false; else out.print(" "); out.print("" + it3.next() + ""); } out.println("</td></tr>"); } } out.println("</table></body></html>"); out.close(); }
27800 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27800/e5fd48c54fbdd831c1e34fc9890f7e2ec31ff504/GenerateSidewaysView.java/buggy/tools/java/org/unicode/cldr/icu/GenerateSidewaysView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 918, 2405, 1649, 751, 1435, 1216, 1860, 288, 5411, 14071, 596, 273, 446, 31, 5411, 514, 1142, 3893, 461, 273, 1408, 31, 5411, 364, 261, 3198, 518, 273, 819, 1649, 18, 856, 694, 7675, 98...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 918, 2405, 1649, 751, 1435, 1216, 1860, 288, 5411, 14071, 596, 273, 446, 31, 5411, 514, 1142, 3893, 461, 273, 1408, 31, 5411, 364, 261, 3198, 518, 273, 819, 1649, 18, 856, 694, 7675, 98...
public String getURL()
public String getURL() throws KettleDatabaseException
public String getURL() { return getURL(null); }
58146 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58146/05212d00eb897e963f8527bc1622cf091501cc26/DatabaseMeta.java/clean/kettle/src/be/ibridge/kettle/core/database/DatabaseMeta.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 19341, 1435, 1216, 1475, 278, 5929, 4254, 503, 565, 288, 3639, 327, 19341, 12, 2011, 1769, 565, 289, 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, 514, 19341, 1435, 1216, 1475, 278, 5929, 4254, 503, 565, 288, 3639, 327, 19341, 12, 2011, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if(s.start >= start)
if((s instanceof Selection.Rect && s.start > start) || (s instanceof Selection.Range && s.start >= start))
public void contentInserted(Buffer buffer, int startLine, int start, int numLines, int length) { chunkCache.invalidateChunksFromPhys(startLine); // Inserting multiple lines can change the last physical // line due to folds being pushed down and so on if(numLines != 0 || (softWrap && foldVisibilityManager.getLastVisibleLine() - numLines <= physLastLine)) { int oldScreenLastLine = screenLastLine; recalculateLastPhysicalLine(); invalidateScreenLineRange(oldScreenLastLine, screenLastLine); } if(!buffer.isLoaded()) return; repaintAndScroll(startLine,numLines); // loop through all selections, resizing them if // necessary for(int i = 0; i < selection.size(); i++) { Selection s = (Selection)selection.elementAt(i); boolean changed = false; if(s.start >= start) { s.start += length; s.startLine = getLineOfOffset(s.start); changed = true; } if(s.end >= start) { s.end += length; s.endLine = getLineOfOffset(s.end); changed = true; } if(changed) invalidateLineRange(s.startLine,s.endLine); } if(caret >= start) moveCaretPosition(caret + length,true); else { // will update bracket highlight moveCaretPosition(caret); } }
6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/7cca2af656b22c219c777076ea94338891fa8217/JEditTextArea.java/clean/org/gjt/sp/jedit/textarea/JEditTextArea.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 913, 27329, 12, 1892, 1613, 16, 509, 24636, 16, 509, 787, 16, 1082, 202, 474, 818, 5763, 16, 509, 769, 13, 202, 202, 95, 1082, 202, 6551, 1649, 18, 5387, 340, 14975, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 913, 27329, 12, 1892, 1613, 16, 509, 24636, 16, 509, 787, 16, 1082, 202, 474, 818, 5763, 16, 509, 769, 13, 202, 202, 95, 1082, 202, 6551, 1649, 18, 5387, 340, 14975, 1...
public void dispose() { } public void fill(Composite parent) { } public void fill(Menu parent, int index) { }
public void dispose() {} public void fill(Composite parent) {} public void fill(Menu parent, int index) {}
public IContributionItem getContributionItem() { return new ContributionItem(getId()) { public void dispose() { } public void fill(Composite parent) { } public void fill(Menu parent, int index) { } public void fill(ToolBar parent, int index) { if (getWidget() != null) { Composite widgetContainer = new Composite(parent, SWT.NONE); getWidget().fill(widgetContainer); Point prefSize = getWidget().getPreferredSize(); ToolItem sepItem = new ToolItem(parent, SWT.SEPARATOR, index); sepItem.setControl(widgetContainer); sepItem.setWidth(prefSize.x); } } }; }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/ff44026039b1200c009d0e7fecf9dedf99697de2/WidgetAddition.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/menus/WidgetAddition.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 467, 442, 4027, 1180, 336, 442, 4027, 1180, 1435, 288, 202, 202, 2463, 394, 735, 4027, 1180, 12, 26321, 10756, 288, 1082, 202, 482, 918, 15825, 1435, 288, 1082, 202, 97, 1082, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 467, 442, 4027, 1180, 336, 442, 4027, 1180, 1435, 288, 202, 202, 2463, 394, 735, 4027, 1180, 12, 26321, 10756, 288, 1082, 202, 482, 918, 15825, 1435, 288, 1082, 202, 97, 1082, ...
ioperation(X86Operation.ADD, true); }
ioperation(X86Operation.ADD, true); }
public final void visit_iadd() { ioperation(X86Operation.ADD, true); }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/4c9e1b93fdcd3878abf615621ec6a36bf839ab10/X86BytecodeVisitor.java/buggy/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, 77, 1289, 1435, 288, 202, 202, 1594, 1193, 12, 60, 5292, 2988, 18, 8355, 16, 638, 1769, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 3757, 67, 77, 1289, 1435, 288, 202, 202, 1594, 1193, 12, 60, 5292, 2988, 18, 8355, 16, 638, 1769, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
_doc.reverseSearchInteractionsInHistory(); moveToEnd();
if (_shouldGoIntoHistory(_pane.getCaretPosition(), _adapter.getLength())) historyNextAction.actionPerformed(e); else defaultDownAction.actionPerformed(e);
public void actionPerformed(ActionEvent e) { if (!_busy()) { _doc.reverseSearchInteractionsInHistory(); moveToEnd(); } }
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/35da9b77b7d75aca3d6277e27e3ba3dc86f3eaa9/InteractionsController.java/buggy/drjava/src/edu/rice/cs/drjava/ui/InteractionsController.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 26100, 12, 1803, 1133, 425, 13, 288, 1377, 309, 16051, 67, 9274, 93, 10756, 288, 3639, 389, 2434, 18, 9845, 2979, 2465, 4905, 382, 5623, 5621, 3639, 13863, 1638, 5621, 1377, 28...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 26100, 12, 1803, 1133, 425, 13, 288, 1377, 309, 16051, 67, 9274, 93, 10756, 288, 3639, 389, 2434, 18, 9845, 2979, 2465, 4905, 382, 5623, 5621, 3639, 13863, 1638, 5621, 1377, 28...
try { if (in.length() < 528) return false; return true; } catch (IOException e) { return false; }
if (fileLength < 528) return false; return true;
public boolean isThisType(byte[] block) { try { if (in.length() < 528) return false; return true; } catch (IOException e) { return false; } }
46826 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46826/91859a26506b8a1d312b398da2c3ecd94e02fa60/PictReader.java/clean/loci/formats/PictReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 353, 2503, 559, 12, 7229, 8526, 1203, 13, 288, 565, 775, 288, 1377, 309, 261, 267, 18, 2469, 1435, 411, 1381, 6030, 13, 327, 629, 31, 1377, 327, 638, 31, 565, 289, 565, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 353, 2503, 559, 12, 7229, 8526, 1203, 13, 288, 565, 775, 288, 1377, 309, 261, 267, 18, 2469, 1435, 411, 1381, 6030, 13, 327, 629, 31, 1377, 327, 638, 31, 565, 289, 565, 10...
return cursor.getSearchRecordNumber(key, pKey, data, lockMode);
return cursor.getSearchRecordNumber(key, data, lockMode);
public static OperationStatus getSearchRecordNumber(SecondaryCursor cursor, DatabaseEntry key, DatabaseEntry pKey, DatabaseEntry data, LockMode lockMode) throws DatabaseException { return cursor.getSearchRecordNumber(key, pKey, data, lockMode); }
2921 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2921/acf19af1ab27ad071c1614f9610ae29eb5c902c1/DbCompat.java/buggy/db/java/src/com/sleepycat/compat/DbCompat.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 22004, 15627, 2115, 1854, 12, 14893, 6688, 3347, 16, 4766, 13491, 5130, 1622, 498, 16, 4766, 13491, 5130, 1622, 31352, 16, 4766, 13491, 5130, 1622, 501, 16, 4766, 13491, 3488, 23...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 22004, 15627, 2115, 1854, 12, 14893, 6688, 3347, 16, 4766, 13491, 5130, 1622, 498, 16, 4766, 13491, 5130, 1622, 31352, 16, 4766, 13491, 5130, 1622, 501, 16, 4766, 13491, 3488, 23...
Class resourceClass = ObjectContributorManager.getResourceClass();
Class resourceClass = LegacyResourceSupport.getResourceClass();
private boolean hasAdaptableType() { if (adaptableNotChecked) { Object parentConfig = configElement.getParent(); String typeName = null; if(parentConfig != null && parentConfig instanceof IConfigurationElement) typeName = ((IConfigurationElement) parentConfig).getAttribute("objectClass"); //$NON-NLS-1$ //See if this is typed at all first if(typeName == null){ adaptableNotChecked = false; return false; } Class resourceClass = ObjectContributorManager.getResourceClass(); if (resourceClass == null) { // resources plug-in not even present isAdaptableAction = false; adaptableNotChecked = false; return false; } if (typeName.equals(resourceClass.getName())) { isAdaptableAction = true; adaptableNotChecked = false; return isAdaptableAction; } Class[] children = resourceClass.getDeclaredClasses(); for (int i = 0; i < children.length; i++) { if (children[i].getName().equals(typeName)) { isAdaptableAction = true; adaptableNotChecked = false; return isAdaptableAction; } } adaptableNotChecked = false; } return isAdaptableAction; }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/9f3ac59f2884caad5bf7c29fbb22cace1b77ba9e/PluginAction.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/PluginAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1250, 711, 13716, 21625, 1435, 288, 202, 202, 430, 261, 19195, 429, 1248, 11454, 13, 288, 1082, 202, 921, 982, 809, 273, 642, 1046, 18, 588, 3054, 5621, 1082, 202, 780, 8173, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1250, 711, 13716, 21625, 1435, 288, 202, 202, 430, 261, 19195, 429, 1248, 11454, 13, 288, 1082, 202, 921, 982, 809, 273, 642, 1046, 18, 588, 3054, 5621, 1082, 202, 780, 8173, ...
data.add(params[i]);
_data.add(params[i]);
public synchronized void setParameters(String[][] params) { data.removeAllElements(); for (int i=0; i<params.length; i++) { if (params[i].length < 3) { System.err.println("ParameterTableModel called with short data! Only got " + params[i].length + " entries in parameter " + i); } else { data.add(params[i]); } } fireTableDataChanged(); }
31053 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31053/d31740865cefcbd56a4cdec3f36cb8e6912e26bb/RequestPanel.java/buggy/src/org/owasp/webscarab/ui/swing/RequestPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 3852, 918, 22556, 12, 780, 63, 6362, 65, 859, 13, 288, 5411, 501, 18, 4479, 1595, 3471, 5621, 5411, 364, 261, 474, 277, 33, 20, 31, 277, 32, 2010, 18, 2469, 31, 277, 27245, 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, 540, 1071, 3852, 918, 22556, 12, 780, 63, 6362, 65, 859, 13, 288, 5411, 501, 18, 4479, 1595, 3471, 5621, 5411, 364, 261, 474, 277, 33, 20, 31, 277, 32, 2010, 18, 2469, 31, 277, 27245, 288,...
public void write(XMLWriter xmlWriter, String name, Field f) throws IOException {
public void write(XMLWriter xmlWriter, String name, Fieldable f) throws IOException {
public void write(XMLWriter xmlWriter, String name, Field f) throws IOException { String sval = f.stringValue(); xmlWriter.writeDouble(name, NumberUtils.SortableStr2double(sval)); }
50125 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50125/c982fdedd6958a138d44d72d8a4d5e02e5f74443/SortableDoubleField.java/buggy/src/java/org/apache/solr/schema/SortableDoubleField.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1045, 12, 4201, 2289, 25491, 16, 514, 508, 16, 2286, 429, 284, 13, 1216, 1860, 288, 565, 514, 272, 1125, 273, 284, 18, 1080, 620, 5621, 565, 25491, 18, 2626, 5265, 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, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1045, 12, 4201, 2289, 25491, 16, 514, 508, 16, 2286, 429, 284, 13, 1216, 1860, 288, 565, 514, 272, 1125, 273, 284, 18, 1080, 620, 5621, 565, 25491, 18, 2626, 5265, 12, 529, ...
public boolean imageUpdate (Image img, int infoflags, int x, int y, int w, int h)
public boolean imageUpdate(Image img, int flags, int x, int y, int w, int h)
public boolean imageUpdate (Image img, int infoflags, int x, int y, int w, int h) { // FIXME return false; }
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/fb0219dcce2e53020800c655562b5f7351b0579b/Component.java/clean/java/awt/Component.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 1316, 1891, 261, 2040, 3774, 16, 509, 1123, 7133, 16, 509, 619, 16, 509, 677, 16, 17311, 509, 341, 16, 509, 366, 13, 225, 288, 565, 368, 9852, 565, 327, 629, 31, 225, 289,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 1316, 1891, 261, 2040, 3774, 16, 509, 1123, 7133, 16, 509, 619, 16, 509, 677, 16, 17311, 509, 341, 16, 509, 366, 13, 225, 288, 565, 368, 9852, 565, 327, 629, 31, 225, 289,...
classLoader = (ClassLoader) m.invoke(Thread.currentThread(), null);
return (ClassLoader) m.invoke(Thread.currentThread(), null);
private static ClassLoader findClassLoader() throws ConfigurationError { ClassLoader classLoader; Method m = null; try { m = Thread.class.getMethod("getContextClassLoader", null); } catch (NoSuchMethodException e) { // Assume that we are running JDK 1.1, use the current ClassLoader if (debug) { debugPrintln("assuming JDK 1.1"); } classLoader = FactoryFinder.class.getClassLoader(); } try { classLoader = (ClassLoader) m.invoke(Thread.currentThread(), null); } catch (IllegalAccessException e) { // assert(false) throw new ConfigurationError("Unexpected IllegalAccessException", e); } catch (InvocationTargetException e) { // assert(e.getTargetException() instanceof SecurityException) throw new ConfigurationError("Unexpected InvocationTargetException", e); } return classLoader; }
1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/872e1785fb32ede0ce344f82505ff7e8a1124421/FactoryFinder.java/buggy/src/javax/xml/parsers/FactoryFinder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 9403, 1104, 7805, 1435, 3639, 1216, 27507, 565, 288, 3639, 9403, 11138, 31, 3639, 2985, 312, 273, 446, 31, 3639, 775, 288, 5411, 312, 273, 4884, 18, 1106, 18, 588, 1305, 2932, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 9403, 1104, 7805, 1435, 3639, 1216, 27507, 565, 288, 3639, 9403, 11138, 31, 3639, 2985, 312, 273, 446, 31, 3639, 775, 288, 5411, 312, 273, 4884, 18, 1106, 18, 588, 1305, 2932, ...
if (tuple.typeCode == LongTypeCode) { processLongTuple(tuple, isLast); } else { processTuple(tuple, isLast, false); }
processTuple(tuple, isLast);
private void _generateMapForOneMethodVariable(int regMapIndex, OSR_MethodVariables mVar, boolean lastMid) { // Is this the last method in the inlined chain? int mid = lastMid ? mVar.methId : (mVar.methId | NEXT_BIT); addIntToOsrMap(mid); LinkedList tupleList = mVar.tupleList; int m = tupleList.size(); // Is this method has variables? int bci = (m == 0) ? mVar.bcIndex : (mVar.bcIndex | NEXT_BIT); addIntToOsrMap(bci); // append each element for (int j=0; j<m; j++) { OSR_LocalRegPair tuple = (OSR_LocalRegPair)tupleList.get(j); boolean isLast = (j == m-1); if (tuple.typeCode == LongTypeCode) { processLongTuple(tuple, isLast); } else { processTuple(tuple, isLast, false); } // mark the reg ref map if ( ((tuple.typeCode == ClassTypeCode) ||(tuple.typeCode == ArrayTypeCode)) &&(tuple.valueType == PHYREG)) { osrMaps[regMapIndex] = setRegister(osrMaps[regMapIndex], tuple.value); } } }
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/d2dc7cb31c50a641f2bd679163ca3f08627494c0/OSR_EncodedOSRMap.java/clean/rvm/src/vm/adaptive/onStackReplacement/optCompilationWithOsr/OSR_EncodedOSRMap.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 389, 7163, 863, 1290, 3335, 1305, 3092, 12, 474, 960, 863, 1016, 16, 4766, 7734, 5932, 54, 67, 1305, 6158, 312, 1537, 16, 4766, 7734, 1250, 1142, 20711, 13, 288, 565, 368, 25...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 389, 7163, 863, 1290, 3335, 1305, 3092, 12, 474, 960, 863, 1016, 16, 4766, 7734, 5932, 54, 67, 1305, 6158, 312, 1537, 16, 4766, 7734, 1250, 1142, 20711, 13, 288, 565, 368, 25...
public void addChatTab(ChatPanel chatPanel) { chatPanel.setChatVisible(true); String contactName = chatPanel.getMetaContact().getDisplayName(); PresenceStatus status = chatPanel.getPresenceStatus(); if (chatTabbedPane == null) { //Initialize the tabbed pane for the first time chatTabbedPane = new SIPCommTabbedPane(true); chatTabbedPane.addCloseListener(new CloseListener() { public void closeOperation(MouseEvent e) { int tabIndex = chatTabbedPane.getOverTabIndex(); removeContactTab(tabIndex); } }); this.getContentPane().add(chatPanel, BorderLayout.CENTER); this.setTitle(contactName); this.setCurrentChatPanel(chatPanel); } else { if (chatTabbedPane.getTabCount() > 0) { //The tabbed pane contains already tabs. chatTabbedPane.addTab(contactName, new ImageIcon( Constants.getStatusIcon(status)), chatPanel); chatTabbedPane.getParent().validate(); } else { ChatPanel firstChatPanel = getCurrentChatPanel(); PresenceStatus currentContactStatus = firstChatPanel .getPresenceStatus(); //Add first two tabs to the tabbed pane. chatTabbedPane.addTab(firstChatPanel.getMetaContact() .getDisplayName(), new ImageIcon(Constants .getStatusIcon(currentContactStatus)), firstChatPanel); chatTabbedPane.addTab(contactName, new ImageIcon( Constants.getStatusIcon(status)), chatPanel); // Workaround for the following problem: // The scrollbar in the conversation area moves up when the // scrollpane is resized. This happens when ChatWindow is in // mode "Group messages in one window" and the first chat panel // is added to the tabbed pane. Then the scrollpane in the // conversation area is slightly resized and is made smaller, // which moves the scrollbar up. firstChatPanel.setCaretToEnd(); } this.getContentPane().add(chatTabbedPane, BorderLayout.CENTER); this.getContentPane().validate(); int chatIndex = chatTabbedPane.getTabCount() - 1; if(chatTabbedPane.getSelectedIndex() == chatIndex) this.setCurrentChatPanel(chatPanel); } }
43455 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/43455/b3a51d312fc7887736a173eb7b8e5292b081a15d/ChatWindow.java/buggy/src/net/java/sip/communicator/impl/gui/main/message/ChatWindow.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 527, 14163, 5661, 12, 14163, 5537, 7916, 5537, 13, 288, 3639, 7916, 5537, 18, 542, 14163, 6207, 12, 3767, 1769, 7734, 514, 5388, 461, 273, 7916, 5537, 18, 588, 2781, 6567, 7675...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 527, 14163, 5661, 12, 14163, 5537, 7916, 5537, 13, 288, 3639, 7916, 5537, 18, 542, 14163, 6207, 12, 3767, 1769, 7734, 514, 5388, 461, 273, 7916, 5537, 18, 588, 2781, 6567, 7675...
public int visit(IASTInitializer initializer) {
public int visit(IASTTranslationUnit tu) {
public int visit(IASTInitializer initializer) { return PROCESS_CONTINUE; }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/a9a42284f36d000b0b75ea7a8055f42331cf717a/ASTVisitor.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/dom/ast/ASTVisitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 509, 3757, 12, 45, 9053, 14729, 12562, 13, 288, 202, 202, 2463, 20647, 67, 6067, 26725, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 509, 3757, 12, 45, 9053, 14729, 12562, 13, 288, 202, 202, 2463, 20647, 67, 6067, 26725, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Session.getInstance(new Properties()), new ByteArrayInputStream(s.getBytes()));
Session.getInstance(new Properties()), new ByteArrayInputStream(s.getBytes()));
public StringBuilder objectRenderer(Object o, String index, Part p) throws MessagingException { StringBuilder buf=new StringBuilder(); try { if (o instanceof MimeMultipart) { MimeMultipart mm_i=(MimeMultipart) o; StringBuilder sb=decend(mm_i, index); buf.append(sb); } else if (o instanceof IMAPNestedMessage) { Object o_1=((Message) o).getContent(); if (o_1 instanceof String) { String s=(String) o_1; buf.append("<br>\n<hr>\n<br>\n"); Message m=new MimeMessage( Session.getInstance(new Properties()), new ByteArrayInputStream(s.getBytes())); buf.append(objectRenderer(m, index, m)); } else if (o_1 instanceof MimeMultipart) { buf.append(new RenderMessage().objectRenderer( (Message) o, index, (Message) o, this)); } } else { ObjectRender or=renderers.get(o.getClass()); if (or==null) { Set<Class> classes=renderers.keySet(); for (Class c : classes) { if (c.isAssignableFrom(o.getClass())) { or=renderers.get(c); break; } } } if (or==null) { buf.append(makeAttachmentBox(index, p)); } else { buf.append(or.objectRenderer(o, index, p, this)); } } } catch (IOException ioe) { throw new MessagingException("I/O error", ioe); } return buf; }
54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/b13c667b376deb4a8f2c235ffd847b57616d23c4/Renderer.java/buggy/grendel/sources/grendel/renderer/Renderer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 3225, 733, 6747, 12, 921, 320, 16, 514, 770, 16, 6393, 293, 13, 1171, 9079, 1216, 23794, 503, 225, 288, 565, 3225, 1681, 33, 2704, 3225, 5621, 565, 775, 288, 1377, 309, 261, 83, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3225, 733, 6747, 12, 921, 320, 16, 514, 770, 16, 6393, 293, 13, 1171, 9079, 1216, 23794, 503, 225, 288, 565, 3225, 1681, 33, 2704, 3225, 5621, 565, 775, 288, 1377, 309, 261, 83, ...
for(int i = 0; i < initializers.length; i++){ final PsiClassInitializer initializer = initializers[i];
for(final PsiClassInitializer initializer : initializers){
private SerialVersionUIDBuilder(PsiClass clazz) { super(); this.clazz = clazz; nonPrivateMethods = new HashSet(); final PsiMethod[] methods = clazz.getMethods(); for(int i = 0; i < methods.length; i++){ final PsiMethod method = methods[i]; if(!method.isConstructor() && !method.hasModifierProperty(PsiModifier.PRIVATE)){ final MemberSignature methodSignature = new MemberSignature(method); nonPrivateMethods.add(methodSignature); } } nonPrivateFields = new HashSet(); final PsiField[] fields = clazz.getFields(); for(int i = 0; i < fields.length; i++){ final PsiField field = fields[i]; if(!field.hasModifierProperty(PsiModifier.PRIVATE) || !(field.hasModifierProperty(PsiModifier.STATIC) | field.hasModifierProperty(PsiModifier.TRANSIENT))){ final MemberSignature fieldSignature = new MemberSignature(field); nonPrivateFields.add(fieldSignature); } } staticInitializers = new ArrayList(); final PsiClassInitializer[] initializers = clazz.getInitializers(); if(initializers.length > 0){ for(int i = 0; i < initializers.length; i++){ final PsiClassInitializer initializer = initializers[i]; final PsiModifierList modifierList = initializer.getModifierList(); if(modifierList.hasModifierProperty(PsiModifier.STATIC)){ final MemberSignature initializerSignature = MemberSignature.getStaticInitializerMemberSignature(); staticInitializers.add(initializerSignature); break; } } } if(staticInitializers.isEmpty()){ final PsiField[] psiFields = clazz.getFields(); for(int i = 0; i < psiFields.length; i++){ final PsiField field = psiFields[i]; if(hasStaticInitializer(field)){ final MemberSignature initializerSignature = MemberSignature.getStaticInitializerMemberSignature(); staticInitializers.add(initializerSignature); break; } } } nonPrivateConstructors = new HashSet(); final PsiMethod[] constructors = clazz.getConstructors(); if(constructors.length == 0 && !clazz.isInterface()){ // generated empty constructor if no constructor is defined in the source final MemberSignature constructorSignature; if(clazz.hasModifierProperty(PsiModifier.PUBLIC)){ constructorSignature = MemberSignature.getPublicConstructor(); } else{ constructorSignature = MemberSignature.getPackagePrivateConstructor(); } nonPrivateConstructors.add(constructorSignature); } for(int i = 0; i < constructors.length; i++){ final PsiMethod constructor = constructors[i]; if(!constructor.hasModifierProperty(PsiModifier.PRIVATE)){ final MemberSignature constructorSignature = new MemberSignature(constructor); nonPrivateConstructors.add(constructorSignature); } } }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/2d46d291193579a7564649b4881c7ea8e02eda5b/SerialVersionUIDBuilder.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/fixes/SerialVersionUIDBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 7366, 1444, 3060, 1263, 12, 52, 7722, 797, 4003, 13, 565, 288, 3639, 2240, 5621, 3639, 333, 18, 830, 3638, 273, 4003, 31, 3639, 1661, 6014, 4712, 273, 394, 6847, 5621, 3639, 727, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7366, 1444, 3060, 1263, 12, 52, 7722, 797, 4003, 13, 565, 288, 3639, 2240, 5621, 3639, 333, 18, 830, 3638, 273, 4003, 31, 3639, 1661, 6014, 4712, 273, 394, 6847, 5621, 3639, 727, ...
assertEquals("Expected one table in result.", 1, tables.length);
assertEquals("Wrong number of tables.", 1, tables.length);
public void doTest(String jspName) throws Exception { WebRequest request = new GetMethodWebRequest(jspName); WebResponse response = runner.getResponse(request); if (log.isDebugEnabled()) { log.debug("RESPONSE: " + response.getText()); } WebTable[] tables = response.getTables(); assertEquals("Expected one table in result.", 1, tables.length); assertEquals("Bad number of generated columns.", 3, tables[0].getColumnCount()); assertEquals("Bad value in column header.", // StringUtils.capitalize(KnownValue.ANT), tables[0].getCellAsText(0, 0)); assertEquals("Bad value in column header.", // StringUtils.capitalize(KnownValue.BEE), tables[0].getCellAsText(0, 1)); assertEquals("Bad value in column header.", // StringUtils.capitalize(KnownValue.CAMEL), tables[0].getCellAsText(0, 2)); assertEquals("Bad value in column content.", KnownValue.ANT, tables[0].getCellAsText(1, 0)); assertEquals("Bad value in column content.", KnownValue.BEE, tables[0].getCellAsText(1, 1)); assertEquals("Bad value in column content.", KnownValue.CAMEL, tables[0].getCellAsText(1, 2)); }
10316 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10316/2ea6ea4e7572a181090eff95efe14d1e7a1f07f8/DataSourceMapTest.java/clean/displaytag/src/test/java/org/displaytag/jsptests/DataSourceMapTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 741, 4709, 12, 780, 22535, 461, 13, 1216, 1185, 565, 288, 3639, 2999, 691, 590, 273, 394, 968, 1305, 4079, 691, 12, 24926, 461, 1769, 3639, 2999, 1064, 766, 273, 8419, 18, 58...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 741, 4709, 12, 780, 22535, 461, 13, 1216, 1185, 565, 288, 3639, 2999, 691, 590, 273, 394, 968, 1305, 4079, 691, 12, 24926, 461, 1769, 3639, 2999, 1064, 766, 273, 8419, 18, 58...
propDefn.build( );
MetadataTestUtil.buildPropertyDefn( propDefn );
public void test_PROP_TYPE_ERROR( ) { // This build time exception can never be caught during parsing. // In the PropertyState, state will return when // dictionary.getPropertyType( type ) == null. // This property will be exsit when building the element. PropertyDefn propDefn = new SystemPropertyDefn( ); propDefn.setName( "Property1" ); //$NON-NLS-1$ try { propDefn.build( ); } catch ( MetaDataException e ) { assertEquals( MetaDataException.DESIGN_EXCEPTION_PROP_TYPE_ERROR, e .getErrorCode( ) ); assertEquals( "Message:PropertyType of the property [Property1] has not been set. ( propDefn.getType() == null ) Error code:PROP_TYPE_ERROR", //$NON-NLS-1$ e.getMessage( ).trim( ) ); } }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/0115a332efae7883ec3d1205f01f11f15df413fc/MetaLoggerTest.java/buggy/model/org.eclipse.birt.report.model.tests/test/org/eclipse/birt/report/model/metadata/MetaLoggerTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 67, 15811, 67, 2399, 67, 3589, 12, 262, 202, 95, 202, 202, 759, 1220, 1361, 813, 1520, 848, 5903, 506, 13537, 4982, 5811, 18, 202, 202, 759, 657, 326, 4276, 1119, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 67, 15811, 67, 2399, 67, 3589, 12, 262, 202, 95, 202, 202, 759, 1220, 1361, 813, 1520, 848, 5903, 506, 13537, 4982, 5811, 18, 202, 202, 759, 657, 326, 4276, 1119, ...
int retval = nativePoll(nativeID, keyData, dummyRelAxesData, dummyAbsAxesData); if(retval>=0) return true; return false;
return realController.poll();
public boolean poll() { int retval = nativePoll(nativeID, keyData, dummyRelAxesData, dummyAbsAxesData); if(retval>=0) return true; return false; }
47498 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47498/1186fb209c5c5caa458c9ec760ccb8af7ded2a88/LinuxKeyboard.java/clean/plugins/linux/src/java/net/java/games/input/LinuxKeyboard.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 7672, 1435, 288, 3639, 509, 5221, 273, 6448, 19085, 12, 13635, 734, 16, 498, 751, 16, 9609, 1971, 26494, 751, 16, 9609, 9382, 26494, 751, 1769, 3639, 309, 12, 18341, 34, 33, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1250, 7672, 1435, 288, 3639, 509, 5221, 273, 6448, 19085, 12, 13635, 734, 16, 498, 751, 16, 9609, 1971, 26494, 751, 16, 9609, 9382, 26494, 751, 1769, 3639, 309, 12, 18341, 34, 33, ...
out.write( bldg.getType() );
out.write( Integer.toString(bldg.getType()) );
public static void encode( Building bldg, Writer out ) throws IOException { Enumeration iter; // used when marching through a list of sub-elements Coords coords; // First, validate our input. if ( null == bldg ) { throw new IllegalArgumentException( "The board is null." ); } if ( null == out ) { throw new IllegalArgumentException( "The writer is null." ); } // Start the XML stream for this building out.write( "<building version=\"1.0\" >" ); // Write the hex array to the stream. out.write( "<buildingData id=\"" ); out.write( bldg.getId() ); out.write( "\" type=\"" ); out.write( bldg.getType() ); out.write( "\" currentCF=\"" ); out.write( bldg.getCurrentCF() ); out.write( "\" phaseCF=\"" ); out.write( bldg.getPhaseCF() ); out.write( "\" name=\"" ); out.write( bldg.getName() ); out.write( "\" isBurning=\"" ); out.write( bldg.isBurning() ? "true" : "false" ); out.write( "\" >" ); // Write the coordinate of the building. iter = bldg.getCoords(); if ( iter.hasMoreElements() ) { while ( iter.hasMoreElements() ) { // Encode the infernos as these coordinates. coords = (Coords) iter.nextElement(); CoordsEncoder.encode( coords, out ); } } out.write( "</buildingData>" ); // Finish the XML stream for this building. out.write( "</building>" ); }
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/2e249088efbace03816e726900086724c02553fa/BuildingEncoder.java/buggy/megamek/src/megamek/common/xml/BuildingEncoder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2017, 12, 3998, 310, 324, 1236, 75, 16, 5497, 596, 262, 3639, 1216, 1860, 565, 288, 3639, 13864, 1400, 31, 368, 1399, 1347, 312, 991, 310, 3059, 279, 666, 434, 720, 17, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2017, 12, 3998, 310, 324, 1236, 75, 16, 5497, 596, 262, 3639, 1216, 1860, 565, 288, 3639, 13864, 1400, 31, 368, 1399, 1347, 312, 991, 310, 3059, 279, 666, 434, 720, 17, ...
asm.emitSTFD (SF0, VM_Entrypoints.scratchStorageField.getOffset(), PROCESSOR_REGISTER); asm.emitSTW (sri0, VM_Entrypoints.scratchStorageField.getOffset()+4, PROCESSOR_REGISTER);
asm.emitSTFD (SF0, VM_Entrypoints.scratchStorageField.getOffsetAsInt(), PROCESSOR_REGISTER); asm.emitSTW (sri0, VM_Entrypoints.scratchStorageField.getOffsetAsInt()+4, PROCESSOR_REGISTER);
protected final void emit_i2f() { if (unreachableBytecode) return; if (VM.BuildFor64Addr) { // XXX CJH TODO: if (VM.VerifyAssertions) VM._assert(NOT_REACHED); } else { assignRegisters(1, FLOAT_TYPE); asm.emitLFDtoc(SF0, VM_Entrypoints.IEEEmagicField.getOffset(), S0);// F0 is MAGIC asm.emitSTFD (SF0, VM_Entrypoints.scratchStorageField.getOffset(), PROCESSOR_REGISTER); // MAGIC in memory asm.emitSTW (sri0, VM_Entrypoints.scratchStorageField.getOffset()+4, PROCESSOR_REGISTER); // if 0 <= X, MAGIC + X asm.emitCMPI (sri0, 0); // is X < 0 VM_ForwardReference fr1 = asm.emitForwardBC(GE); // Now, handle X < 0 asm.emitLInt (S0, VM_Entrypoints.scratchStorageField.getOffset(), PROCESSOR_REGISTER);// S0 is top of MAGIC asm.emitADDI (S0, -1, S0); // decrement top of MAGIC asm.emitSTW (S0, VM_Entrypoints.scratchStorageField.getOffset(), PROCESSOR_REGISTER); // MAGIC + X is in memory fr1.resolve(asm); asm.emitLFD (sro0, VM_Entrypoints.scratchStorageField.getOffset(), PROCESSOR_REGISTER); // output is MAGIC + X //-#if RVM_WITH_QUICK_COMPILER_MOVE_ELIMINATION if (resultIsStackRegister) setRetargetable(returnValue, asm.getMachineCodeIndex()); //-#endif asm.emitFSUB (sro0, sro0, SF0); // output is X cleanupRegisters(); } }
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/3a9aeeb7f964774e6adc285d6526603ac1570e14/VM_QuickCompiler.java/buggy/rvm/src/vm/arch/powerPC/compilers/quick/VM_QuickCompiler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 727, 918, 3626, 67, 77, 22, 74, 1435, 288, 565, 309, 261, 318, 17246, 858, 16651, 13, 327, 31, 565, 309, 261, 7397, 18, 3116, 1290, 1105, 3178, 13, 288, 1377, 368, 11329, 385, 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, 4750, 727, 918, 3626, 67, 77, 22, 74, 1435, 288, 565, 309, 261, 318, 17246, 858, 16651, 13, 327, 31, 565, 309, 261, 7397, 18, 3116, 1290, 1105, 3178, 13, 288, 1377, 368, 11329, 385, 4...
AntGenericReference genRef = (AntGenericReference)ref; if (genRef.isCompletionOnlyReference()) continue; if (ref.resolve() == null) {
final AntGenericReference genRef = (AntGenericReference)ref; if (!genRef.shouldBeSkippedByAnnotator() && ref.resolve() == null) {
private static void checkReferences(AntElement element, @NonNls AnnotationHolder holder) { PsiReference[] refs = element.getReferences(); for (final PsiReference ref : refs) { if (ref instanceof AntGenericReference) { AntGenericReference genRef = (AntGenericReference)ref; if (genRef.isCompletionOnlyReference()) continue; if (ref.resolve() == null) { final TextRange absoluteRange = ref.getRangeInElement().shiftRight(ref.getElement().getTextRange().getStartOffset()); final Annotation annotation = holder.createErrorAnnotation(absoluteRange, genRef.getUnresolvedMessagePattern()); annotation.setHighlightType(ProblemHighlightType.LIKE_UNKNOWN_SYMBOL); final IntentionAction[] intentionActions = genRef.getFixes(); for (IntentionAction action : intentionActions) { annotation.registerFix(action); } } } } }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/3ece867b583d194ae843295a9f02c74e078fa0f5/AntAnnotator.java/buggy/plugins/ant/src/com/intellij/lang/ant/validation/AntAnnotator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 918, 866, 8221, 12, 14925, 1046, 930, 16, 632, 3989, 50, 3251, 6090, 6064, 10438, 13, 288, 565, 453, 7722, 2404, 8526, 9047, 273, 930, 18, 588, 8221, 5621, 565, 364, 261, 638...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 918, 866, 8221, 12, 14925, 1046, 930, 16, 632, 3989, 50, 3251, 6090, 6064, 10438, 13, 288, 565, 453, 7722, 2404, 8526, 9047, 273, 930, 18, 588, 8221, 5621, 565, 364, 261, 638...
System.arraycopy(bankSysexNibbles, 0, bank.sysex, patchOffset, 64);
System.arraycopy(bankSysexNibbles, 0, ((Patch)bank).sysex, patchOffset, 64);
public void putPatch(Patch bank, Patch p, int patchNum) { if (!canHoldPatch(p)) { ErrorMsg.reportError("Error", "This type of patch does not fit in to this type of bank."); return; } byte bankSysex[] = new byte[32]; // TONE NUMBER bankSysex[0] |= p.sysex[7]; // KEY RANGE LOW bankSysex[1] |= (byte)(p.sysex[8] + 4); // sysex docs didn't show, but needed to get correct value // KEY RANGE HIGH bankSysex[2] |= (byte)(p.sysex[9] + 4); // sysex docs didn't show, but needed to get correct value // PORTAMENTO TIME bankSysex[3] |= p.sysex[10]; // PORTAMENTO bankSysex[10] |= (byte)(p.sysex[11] << 4); // MOD SENS bankSysex[4] |= p.sysex[12]; // KEY SHIFT bankSysex[5] |= p.sysex[13]; // VOLUME bankSysex[6] |= p.sysex[14]; // DETUNE bankSysex[7] |= p.sysex[15]; // MIDI FUNCTION bankSysex[9] |= p.sysex[16]; // MONO BENDER RANGE bankSysex[8] |= (byte)(p.sysex[17] << 4); // CHORD MEMORY bankSysex[8] |= p.sysex[18]; // KEY ASSIGN MODE bankSysex[10] |= (byte)(p.sysex[19] & 0x60); // PATCH NAME (10 bytes) for (int i = 0; i < 10; i++) { bankSysex[i+11] = p.sysex[20+i]; } byte bankSysexNibbles[] = new byte[64]; for (int i = 0; i < 32; i++) { bankSysexNibbles[i*2] = (byte)(bankSysex[i] & 0x0F); bankSysexNibbles[i*2+1] = (byte)((bankSysex[i] & 0xF0) >> 4); } int patchOffset = getPatchStart(patchNum); System.arraycopy(bankSysexNibbles, 0, bank.sysex, patchOffset, 64); }
7591 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7591/b6e99a36d447b749f8ec1622f6d2477fcd586fcb/MKS50PatchBankDriver.java/buggy/JSynthLib/synthdrivers/RolandMKS50/MKS50PatchBankDriver.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1378, 7332, 12, 7332, 11218, 16, 12042, 293, 16, 509, 4729, 2578, 13, 225, 288, 565, 309, 16051, 4169, 20586, 7332, 12, 84, 3719, 565, 288, 1377, 1068, 3332, 18, 6006, 668, 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, 1378, 7332, 12, 7332, 11218, 16, 12042, 293, 16, 509, 4729, 2578, 13, 225, 288, 565, 309, 16051, 4169, 20586, 7332, 12, 84, 3719, 565, 288, 1377, 1068, 3332, 18, 6006, 668, 2...
boolean isSingleProject = Boolean.getBoolean(singleProjectMode); return isSingleProject;
return Boolean.valueOf(singleProjectMode).booleanValue();
protected boolean isSingleProject() { String singleProjectMode = getContextParam("singleProject"); boolean isSingleProject = Boolean.getBoolean(singleProjectMode); return isSingleProject; }
52149 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52149/3e4979d9dc1b8cc8f4e38a24b7aadc2478a446cd/CruiseControlTagSupport.java/clean/reporting/jsp/src/net/sourceforge/cruisecontrol/taglib/CruiseControlTagSupport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 1250, 27643, 4109, 1435, 288, 3639, 514, 2202, 4109, 2309, 273, 6474, 786, 2932, 7526, 4109, 8863, 3639, 1250, 27643, 4109, 273, 3411, 18, 588, 5507, 12, 7526, 4109, 2309, 1769, 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, 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, 1250, 27643, 4109, 1435, 288, 3639, 514, 2202, 4109, 2309, 273, 6474, 786, 2932, 7526, 4109, 8863, 3639, 1250, 27643, 4109, 273, 3411, 18, 588, 5507, 12, 7526, 4109, 2309, 1769, 3639,...
handler.getDeclHandler ().elementDecl (name, "ANY");
{ handler.getDeclHandler().elementDecl(name, "ANY"); }
private void parseContentspec (String name) throws Exception {// FIXME: move elementDecl() into setElement(), pass EMTPY/ANY ... if (tryRead ("EMPTY")) { setElement (name, CONTENT_EMPTY, null, null); if (!skippedPE) handler.getDeclHandler ().elementDecl (name, "EMPTY"); return; } else if (tryRead ("ANY")) { setElement (name, CONTENT_ANY, null, null); if (!skippedPE) handler.getDeclHandler ().elementDecl (name, "ANY"); return; } else { String model; char saved []; require ('('); saved = readBuffer; dataBufferAppend ('('); skipWhitespace (); if (tryRead ("#PCDATA")) { dataBufferAppend ("#PCDATA"); parseMixed (saved); model = dataBufferToString (); setElement (name, CONTENT_MIXED, model, null); } else { parseElements (saved); model = dataBufferToString (); setElement (name, CONTENT_ELEMENTS, model, null); } if (!skippedPE) handler.getDeclHandler ().elementDecl (name, model); } }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/24330cfb4cc445da21a71a819ce54efe764fab6e/XmlParser.java/buggy/core/src/classpath/gnu/gnu/xml/aelfred2/XmlParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1109, 1350, 2793, 261, 780, 508, 13, 565, 1216, 1185, 565, 288, 759, 9852, 30, 3635, 930, 3456, 1435, 1368, 26692, 9334, 1342, 512, 14636, 61, 19, 15409, 1372, 202, 430, 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, 3238, 918, 1109, 1350, 2793, 261, 780, 508, 13, 565, 1216, 1185, 565, 288, 759, 9852, 30, 3635, 930, 3456, 1435, 1368, 26692, 9334, 1342, 512, 14636, 61, 19, 15409, 1372, 202, 430, 261, ...
arrayClass.defineMethod("reverse", getMethod("m_reverse")); arrayClass.defineMethod("reverse!", getMethod("m_reverse_bang"));
public static RubyClass createArrayClass(Ruby ruby) { RubyClass arrayClass = ruby.defineClass("Array", ruby.getClasses().getObjectClass()); // rb_include_module(rb_cArray, rb_mEnumerable); arrayClass.defineSingletonMethod("new", getRestArgsSingletonMethod("m_new")); arrayClass.defineSingletonMethod("[]", getRestArgsSingletonMethod("m_create")); arrayClass.defineMethod("initialize", getRestArgsMethod("m_initialize")); arrayClass.defineMethod("inspect", getMethod("m_inspect")); arrayClass.defineMethod("to_s", getMethod("m_to_s")); arrayClass.defineMethod("to_a", getMethod("m_to_a")); arrayClass.defineMethod("to_ary", getMethod("m_to_a")); arrayClass.defineMethod("frozen?", getMethod("m_frozen")); arrayClass.defineMethod("==", getMethod("m_equal", RubyObject.class)); arrayClass.defineMethod("eql?", getMethod("m_eql", RubyObject.class));// rb_define_method(rb_cArray, "hash", rb_ary_hash, 0); arrayClass.defineMethod("===", getMethod("m_equal", RubyObject.class)); arrayClass.defineMethod("[]", getRestArgsMethod("m_aref")); arrayClass.defineMethod("[]=", getRestArgsMethod("m_aset")); arrayClass.defineMethod("at", getMethod("m_at", RubyFixnum.class)); arrayClass.defineMethod("first", getMethod("m_first")); arrayClass.defineMethod("last", getMethod("m_last")); arrayClass.defineMethod("concat", getMethod("m_concat", RubyObject.class)); arrayClass.defineMethod("<<", getMethod("m_push", RubyObject.class)); arrayClass.defineMethod("push", getRestArgsMethod("m_push")); arrayClass.defineMethod("pop", getMethod("m_pop")); arrayClass.defineMethod("shift", getMethod("m_shift")); arrayClass.defineMethod("unshift", getRestArgsMethod("m_unshift")); arrayClass.defineMethod("each", getMethod("m_each")); arrayClass.defineMethod("each_index", getMethod("m_each_index")); arrayClass.defineMethod("reverse_each", getMethod("m_reverse_each")); arrayClass.defineMethod("length", getMethod("m_length")); arrayClass.defineMethod("size", getMethod("m_length")); arrayClass.defineMethod("empty?", getMethod("m_empty_p"));// rb_define_method(rb_cArray, "index", rb_ary_index, 1);// rb_define_method(rb_cArray, "rindex", rb_ary_rindex, 1);// rb_define_method(rb_cArray, "indexes", rb_ary_indexes, -1);// rb_define_method(rb_cArray, "indices", rb_ary_indexes, -1);// rb_define_method(rb_cArray, "clone", rb_ary_clone, 0); arrayClass.defineMethod("join", getRestArgsMethod("m_join"));// rb_define_method(rb_cArray, "reverse", rb_ary_reverse_m, 0);// rb_define_method(rb_cArray, "reverse!", rb_ary_reverse_bang, 0); arrayClass.defineMethod("sort", getMethod("m_sort")); arrayClass.defineMethod("sort!", getMethod("m_sort_bang")); // rb_define_method(rb_cArray, "collect", rb_ary_collect, 0);// rb_define_method(rb_cArray, "collect!", rb_ary_collect_bang, 0);// rb_define_method(rb_cArray, "map!", rb_ary_collect_bang, 0);// rb_define_method(rb_cArray, "filter", rb_ary_filter, 0);// rb_define_method(rb_cArray, "delete", rb_ary_delete, 1);// rb_define_method(rb_cArray, "delete_at", rb_ary_delete_at_m, 1);// rb_define_method(rb_cArray, "delete_if", rb_ary_delete_if, 0);// rb_define_method(rb_cArray, "reject!", rb_ary_reject_bang, 0);// rb_define_method(rb_cArray, "replace", rb_ary_replace_m, 1); arrayClass.defineMethod("clear", getMethod("m_clear")); arrayClass.defineMethod("fill", getRestArgsMethod("m_fill")); arrayClass.defineMethod("include?", getMethod("m_includes", RubyObject.class)); // rb_define_method(rb_cArray, "<=>", rb_ary_cmp, 1); arrayClass.defineMethod("slice", getRestArgsMethod("m_aref"));// rb_define_method(rb_cArray, "slice!", rb_ary_slice_bang, -1);// rb_define_method(rb_cArray, "assoc", rb_ary_assoc, 1);// rb_define_method(rb_cArray, "rassoc", rb_ary_rassoc, 1);// rb_define_method(rb_cArray, "+", rb_ary_plus, 1);// rb_define_method(rb_cArray, "*", rb_ary_times, 1);// rb_define_method(rb_cArray, "-", rb_ary_diff, 1);// rb_define_method(rb_cArray, "&", rb_ary_and, 1);// rb_define_method(rb_cArray, "|", rb_ary_or, 1);// rb_define_method(rb_cArray, "uniq", rb_ary_uniq, 0);// rb_define_method(rb_cArray, "uniq!", rb_ary_uniq_bang, 0); arrayClass.defineMethod("compact", getMethod("m_compact")); arrayClass.defineMethod("compact!", getMethod("m_compact_bang"));// rb_define_method(rb_cArray, "flatten", rb_ary_flatten, 0);// rb_define_method(rb_cArray, "flatten!", rb_ary_flatten_bang, 0);// rb_define_method(rb_cArray, "nitems", rb_ary_nitems, 0);*/ return arrayClass; }
47984 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47984/0a7181933af700ea8025a4197f3a5ebcc08333c3/RbArray.java/clean/org/jruby/core/RbArray.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 526, 797, 18, 11255, 1305, 2932, 9845, 3113, 6272, 2932, 81, 67, 9845, 7923, 1769, 526, 797, 18, 11255, 1305, 2932, 9845, 5, 3113, 6272, 2932, 81, 67, 9845, 67, 70, 539, 7923, 1769, 526, 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, 526, 797, 18, 11255, 1305, 2932, 9845, 3113, 6272, 2932, 81, 67, 9845, 7923, 1769, 526, 797, 18, 11255, 1305, 2932, 9845, 5, 3113, 6272, 2932, 81, 67, 9845, 67, 70, 539, 7923, 1769, 526, 797...
while (i < length && line[i] <= ' ') i++;
while (i < length && line[i] <= (byte)' ') i++;
protected NewsRCLine makeNewsRCLine(ByteBuf line_buf) { byte line[] = line_buf.toBytes(); int length = line_buf.length(); boolean subscribed = false; int i = 0; while (i < length && line[i] <= ' ') i++; // skip whitespace int start = i; while (i < length && // skip non-whitespace, but line[i] > ' ' && // not the two magic chars line[i] != ':' && line[i] != '!') i++; if (i == start) return null; String group_name = new String(line, start, i); while (i < length && line[i] <= ' ') i++; // skip whitespace if (i < length && line[i] == ':') subscribed = true; else if (i < length && line[i] == '!') subscribed = false; else return null; i++; while (i < length && line[i] <= ' ') i++; // skip whitespace return new NewsRCLine(this, group_name, subscribed, line, i, length); }
11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/de607c82e274a450526cd77de822002985cd7767/NewsRC.java/clean/grendel/storage/NewsRC.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 27061, 11529, 1670, 1221, 17948, 11529, 1670, 12, 3216, 5503, 980, 67, 4385, 13, 288, 565, 1160, 980, 8526, 273, 980, 67, 4385, 18, 869, 2160, 5621, 565, 509, 769, 273, 980, 67, 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, 4750, 27061, 11529, 1670, 1221, 17948, 11529, 1670, 12, 3216, 5503, 980, 67, 4385, 13, 288, 565, 1160, 980, 8526, 273, 980, 67, 4385, 18, 869, 2160, 5621, 565, 509, 769, 273, 980, 67, 4...
if (fTempQName.uri != URI_XSI || fTempQName.localpart != XSI_SCHEMALOCACTION && fTempQName.localpart != XSI_NONAMESPACESCHEMALOCACTION && fTempQName.localpart != XSI_NIL && fTempQName.localpart != XSI_TYPE) { reportGenericSchemaError("no attribute is allowed other than those from xsi namespace whose name is one of schemaLocation, noNamespaceSchemaLocation, type, or nil"); return;
if (fTempQName.uri == URI_XSI) { if (fTempQName.localpart != XSI_SCHEMALOCACTION && fTempQName.localpart != XSI_NONAMESPACESCHEMALOCACTION && fTempQName.localpart != XSI_NIL && fTempQName.localpart != XSI_TYPE) { reportGenericSchemaError("no attribute is allowed other than those from xsi namespace whose name is one of schemaLocation, noNamespaceSchemaLocation, type, or nil and namespace declarations"); } } else if (fTempQName.rawname != XMLNS && !fTempQName.rawname.startsWith("xmlns:")) { reportGenericSchemaError("no attribute is allowed other than those from xsi namespace whose name is one of schemaLocation, noNamespaceSchemaLocation, type, or nil and namespace declarations");
void processAttributes(QName element, XMLAttributes attributes, XSAttributeGroupDecl attrGrp) { // REVISIT: add default attribute values //if (fGrammar != null && fGrammarIsSchemaGrammar && elementIndex != -1) { // fAttrListHandle = addDefaultAttributes(elementIndex, attrList, fAttrListHandle, fValidating, fStandaloneReader != -1); //} // if we don't do validation, we don't need to validate the attributes if (!fDoValidation) return; // if there is no attribute group, meaning no attribute is associated // with this complexType, so no attributes are allowed, other than those // from xsi namespace if (attrGrp == null) { int attCount = attributes.getLength(); for (int index = 0; index < attCount; index++) { attributes.getName(index, fTempQName); if (fTempQName.uri != URI_XSI || fTempQName.localpart != XSI_SCHEMALOCACTION && fTempQName.localpart != XSI_NONAMESPACESCHEMALOCACTION && fTempQName.localpart != XSI_NIL && fTempQName.localpart != XSI_TYPE) { reportGenericSchemaError("no attribute is allowed other than those from xsi namespace whose name is one of schemaLocation, noNamespaceSchemaLocation, type, or nil"); return; } } return; } XSAttributeUse attrUses[] = attrGrp.getAttributeUses(); int useCount = attrUses.length; XSWildcardDecl attrWildcard = attrGrp.fAttributeWC; // for each present attribute int attCount = attributes.getLength(); for (int index = 0; index < attCount; index++) { attributes.getName(index, fTempQName); // if it's from xsi namespace, it must be one of the four if (fTempQName.uri == URI_XSI) { if (fTempQName.localpart != XSI_SCHEMALOCACTION && fTempQName.localpart != XSI_NONAMESPACESCHEMALOCACTION && fTempQName.localpart != XSI_NIL && fTempQName.localpart != XSI_TYPE) { reportGenericSchemaError("invalid attribute from xsi namespace '"+fTempQName.localpart+"'"); } } else if (fTempQName.rawname != XMLNS && !fTempQName.rawname.startsWith("xmlns:")) { // it's not xmlns, and not xsi, then we need to find a decl for it XSAttributeUse currUse = null; for (int i = 0; i < useCount; i++) { if (attrUses[i].fAttrDecl.fName == fTempQName.localpart && attrUses[i].fAttrDecl.fTargetNamespace == fTempQName.uri) { currUse = attrUses[i]; break; } } // if failed, get it from wildcard if (currUse == null) { if (!attrWildcard.allowNamespace(fTempQName.uri)) { // so this attribute is not allowed reportGenericSchemaError("attribute '"+fTempQName.rawname+"' can't appear in element '"+element.rawname+"'"); continue; } } // get the corresponding attribute decl XSAttributeDecl currDecl = null; if (currUse != null) { currDecl = currUse.fAttrDecl; } else { // which means it matches a wildcard // skip it if it's skip if (attrWildcard.fType == XSWildcardDecl.WILDCARD_SKIP) continue; // now get the grammar and attribute decl SchemaGrammar grammar = fGrammarResolver.getGrammar(fTempQName.uri); if (grammar != null) currDecl = grammar.getGlobalAttributeDecl(fTempQName.localpart); // if can't find if (currDecl == null) { // if strict, report error if (attrWildcard.fType == XSWildcardDecl.WILDCARD_STRICT) reportGenericSchemaError("can't find the declaration for attribute '"+fTempQName.rawname+"'"); // then continue to the next attribute continue; } } // get the value constraint from use or decl // REVISIT: don't quite understand the spec: which value constraint to use short constType = XSAttributeDecl.NO_CONSTRAINT; Object defaultValue = null; if (currUse != null) { constType = currUse.fConstraintType; defaultValue = currUse.fDefault; } if (constType == XSAttributeDecl.NO_CONSTRAINT) { constType = currDecl.fConstraintType; defaultValue = currDecl.fDefault; } // get simple type DatatypeValidator attDV = currDecl.fType; // get attribute value String attrValue = attributes.getValue(index); // if the value is fixed if (constType == XSAttributeDecl.FIXED_VALUET) { // REVISIT: get compiled form of value, then compare if (attDV.compare(attrValue, (String)defaultValue) != 0) reportGenericSchemaError("attribute value not match fixed value"); } // now check the value against the simpleType // REVISIT: or should the normalize() be called withing validate()? attrValue = XSAttributeChecker.normalize(attrValue, attDV.getWSFacet()); try { // REVISIT: use XSSimpleTypeDecl.ValidateContext to replace null attDV.validate(attrValue, null); } catch (InvalidDatatypeValueException idve) { reportGenericSchemaError("datatype validation error: "+idve); } } // end of if (not xsi and not xmlns) } // end of for (all attributes) } //processAttributes
1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/97c30ef160e16e9cf1fee7cbf05c052dc7902097/SchemaValidator.java/clean/src/org/apache/xerces/impl/v2/SchemaValidator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 918, 1207, 2498, 12, 13688, 930, 16, 3167, 2498, 1677, 16, 1139, 55, 1499, 1114, 3456, 1604, 43, 13832, 13, 288, 3639, 368, 2438, 26780, 1285, 30, 527, 805, 1566, 924, 3639, 368, 430, 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, 918, 1207, 2498, 12, 13688, 930, 16, 3167, 2498, 1677, 16, 1139, 55, 1499, 1114, 3456, 1604, 43, 13832, 13, 288, 3639, 368, 2438, 26780, 1285, 30, 527, 805, 1566, 924, 3639, 368, 430, 2...
IMemento memento, String pluginIdOverride) { if (memento == null) throw new NullPointerException();
IMemento memento, String pluginIdOverride) { if (memento == null) throw new NullPointerException();
static KeySequenceBindingDefinition readKeySequenceBindingDefinition( IMemento memento, String pluginIdOverride) { if (memento == null) throw new NullPointerException(); String contextId = memento.getString(TAG_CONTEXT_ID); // TODO deprecated start if (contextId == null) contextId = memento.getString("scope"); //$NON-NLS-1$ if ("org.eclipse.ui.globalScope".equals(contextId)) //$NON-NLS-1$ contextId = null; // TODO deprecated end String commandId = memento.getString(TAG_COMMAND_ID); // TODO deprecated start if (commandId == null) commandId = memento.getString("command"); //$NON-NLS-1$ if (commandId == null) commandId = memento.getString("id"); //$NON-NLS-1$ // TODO deprecated end String keyConfigurationId = memento.getString(TAG_KEY_CONFIGURATION_ID); // TODO deprecated start if (keyConfigurationId == null) keyConfigurationId = memento.getString("configuration"); //$NON-NLS-1$ // TODO deprecated end KeySequence keySequence = null; String keySequenceAsString = memento.getString(TAG_KEY_SEQUENCE); if (keySequenceAsString != null) try { keySequence = KeySequence.getInstance(keySequenceAsString); } catch (ParseException eParse) { } // TODO deprecated start else { IMemento mementoSequence = memento.getChild("sequence"); //$NON-NLS-1$ if (mementoSequence != null) keySequence = deprecatedSequenceToKeySequence( readDeprecatedSequence(mementoSequence)); else { String string = memento.getString("string"); //$NON-NLS-1$ if (string != null) keySequence = deprecatedSequenceToKeySequence( parseDeprecatedSequence(string)); } // TODO deprecated end } String locale = memento.getString(TAG_LOCALE); String platform = memento.getString(TAG_PLATFORM); String pluginId = pluginIdOverride != null ? pluginIdOverride : memento.getString(TAG_PLUGIN_ID); // TODO deprecated start if (pluginIdOverride == null && pluginId == null) pluginId = memento.getString("plugin"); //$NON-NLS-1$ // TODO deprecated end return new KeySequenceBindingDefinition( contextId, commandId, keyConfigurationId, keySequence, locale, platform, pluginId); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/664efbbd6fd6dba5c4d118b10afe31ab34b6890a/Persistence.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/commands/Persistence.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 3845, 1929, 4021, 5250, 1852, 855, 653, 4021, 5250, 1852, 12, 202, 202, 3445, 820, 83, 312, 820, 83, 16, 202, 202, 780, 1909, 548, 6618, 13, 288, 202, 202, 430, 261, 81, 820, 83,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1929, 4021, 5250, 1852, 855, 653, 4021, 5250, 1852, 12, 202, 202, 3445, 820, 83, 312, 820, 83, 16, 202, 202, 780, 1909, 548, 6618, 13, 288, 202, 202, 430, 261, 81, 820, 83,...
activitiesViewer.setInput(getCategoryActivities(categoryId));
if (!categoryId.equals(lastCategory)) { lastCategory = categoryId; activitiesViewer.setInput( getCategoryActivities(categoryId)); }
public void selectionChanged(SelectionChangedEvent event) { IStructuredSelection selection = (IStructuredSelection) event.getSelection(); if (!selection.isEmpty()) { String categoryId = (String) selection.getFirstElement(); activitiesViewer.setInput(getCategoryActivities(categoryId)); } }
57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/c21a4a206182a67a234197985ca2fcc10001305b/ActivityEnabler.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/activities/ui/ActivityEnabler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 4421, 5033, 12, 6233, 27553, 871, 13, 288, 9506, 202, 45, 30733, 6233, 4421, 273, 6862, 202, 12, 45, 30733, 6233, 13, 871, 18, 588, 6233, 5621, 9506, 202, 430, 16051, 10...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 918, 4421, 5033, 12, 6233, 27553, 871, 13, 288, 9506, 202, 45, 30733, 6233, 4421, 273, 6862, 202, 12, 45, 30733, 6233, 13, 871, 18, 588, 6233, 5621, 9506, 202, 430, 16051, 10...
synchronized public Log getLog(String type, String description) { LogSource l = (LogSource) _logs.get(type); if (l != null) return l; l = new LogSource(_category, type, description); _logs.put(type, l); Iterator i = _targets.iterator(); while (i.hasNext()) { LogTarget lt = (LogTarget) i.next(); for (int level = LogSystem.ALL; level < LogSystem.NONE; level++) { if (lt.subscribe(_category, type, level)) { l.addTarget(lt, level); } } } if (_log != null) { _log.info("Started log " + l.getType() + ": " + l.getDescription()); } return l;
public Log getLog(String type) { return getLog(type, type);
synchronized public Log getLog(String type, String description) { LogSource l = (LogSource) _logs.get(type); if (l != null) return l; l = new LogSource(_category, type, description); _logs.put(type, l); Iterator i = _targets.iterator(); while (i.hasNext()) { LogTarget lt = (LogTarget) i.next(); for (int level = LogSystem.ALL; level < LogSystem.NONE; level++) { if (lt.subscribe(_category, type, level)) { l.addTarget(lt, level); } } } if (_log != null) { _log.info("Started log " + l.getType() + ": " + l.getDescription()); } return l; }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/eaf4eda3d1dc696e065fa02b661b072950526e26/LogSystem.java/buggy/webmacro/src/org/webmacro/util/LogSystem.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3852, 1071, 1827, 9189, 12, 780, 618, 16, 514, 2477, 13, 288, 1377, 1827, 1830, 328, 273, 261, 1343, 1830, 13, 389, 10011, 18, 588, 12, 723, 1769, 1377, 309, 261, 80, 480, 446, 13, 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, 565, 3852, 1071, 1827, 9189, 12, 780, 618, 16, 514, 2477, 13, 288, 1377, 1827, 1830, 328, 273, 261, 1343, 1830, 13, 389, 10011, 18, 588, 12, 723, 1769, 1377, 309, 261, 80, 480, 446, 13, 54...
IndicatorSpecification i;
MA_IndicatorSpecification spec;
void unselect_all_indicators() { Iterator specs = indicator_specifications().iterator(); IndicatorSpecification i; while (specs.hasNext()) { i = (IndicatorSpecification) specs.next(); i.unselect(); i.set_data(null); } }
13245 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13245/48515131c4aa58427e291bfe1c546162f299a1d4/MA_TradableSpecification.java/buggy/src/clients/mas_gui/MA_TradableSpecification.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 640, 4025, 67, 454, 67, 728, 24994, 1435, 288, 202, 202, 3198, 10607, 273, 10664, 67, 2793, 6640, 7675, 9838, 5621, 202, 202, 13140, 8615, 277, 31, 202, 202, 17523, 261, 15115,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6459, 640, 4025, 67, 454, 67, 728, 24994, 1435, 288, 202, 202, 3198, 10607, 273, 10664, 67, 2793, 6640, 7675, 9838, 5621, 202, 202, 13140, 8615, 277, 31, 202, 202, 17523, 261, 15115,...
scope.getWorld().getLint().invalidAbsoluteTypeName.signal(cleanName, getSourceLocation());
scope.getWorld().getLint().invalidAbsoluteTypeName.signal(originalName, getSourceLocation());
public TypePattern resolveBindings(IScope scope, Bindings bindings, boolean allowBinding, boolean requireExactType) { if (isStar()) { return TypePattern.ANY; //??? loses source location } String simpleName = maybeGetSimpleName(); if (simpleName != null) { FormalBinding formalBinding = scope.lookupFormal(simpleName); if (formalBinding != null) { if (bindings == null) { scope.message(IMessage.ERROR, this, "negation doesn't allow binding"); return this; } if (!allowBinding) { scope.message(IMessage.ERROR, this, "name binding only allowed in target, this, and args pcds"); return this; } BindingTypePattern binding = new BindingTypePattern(formalBinding); binding.copyLocationFrom(this); bindings.register(binding, scope); return binding; } } String cleanName = maybeGetCleanName(); if (cleanName != null) { TypeX type; //System.out.println("resolve: " + cleanName); //??? this loop has too many inefficiencies to count while ((type = scope.lookupType(cleanName, this)) == ResolvedTypeX.MISSING) { int lastDot = cleanName.lastIndexOf('.'); if (lastDot == -1) break; cleanName = cleanName.substring(0, lastDot) + '$' + cleanName.substring(lastDot+1); } if (type == ResolvedTypeX.MISSING) { if (requireExactType) { if (!allowBinding) { scope.getWorld().getMessageHandler().handleMessage( MessageUtil.error("can't bind type name '" + cleanName + "'", getSourceLocation())); } else if (scope.getWorld().getLint().invalidAbsoluteTypeName.isEnabled()) { scope.getWorld().getLint().invalidAbsoluteTypeName.signal(cleanName, getSourceLocation()); } return NO; } else if (scope.getWorld().getLint().invalidAbsoluteTypeName.isEnabled()) { scope.getWorld().getLint().invalidAbsoluteTypeName.signal(cleanName, getSourceLocation()); } } else { if (dim != 0) type = TypeX.makeArray(type, dim); TypePattern ret = new ExactTypePattern(type, includeSubtypes); ret.copyLocationFrom(this); return ret; } } else { if (requireExactType) { scope.getWorld().getMessageHandler().handleMessage( MessageUtil.error("wildcard type pattern not allowed, must use type name", getSourceLocation())); return NO; } //XXX need to implement behavior for Lint.invalidWildcardTypeName } importedPrefixes = scope.getImportedPrefixes(); knownMatches = preMatch(scope.getImportedNames()); return this; }
53148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53148/936459c28229321deb0b09d076193be32cd9754e/WildTypePattern.java/clean/weaver/src/org/aspectj/weaver/patterns/WildTypePattern.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1412, 3234, 2245, 10497, 12, 45, 3876, 2146, 16, 6936, 899, 7394, 16, 1377, 6862, 9506, 202, 6494, 1699, 5250, 16, 1250, 2583, 14332, 559, 13, 565, 288, 1875, 377, 202, 430, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1412, 3234, 2245, 10497, 12, 45, 3876, 2146, 16, 6936, 899, 7394, 16, 1377, 6862, 9506, 202, 6494, 1699, 5250, 16, 1250, 2583, 14332, 559, 13, 565, 288, 1875, 377, 202, 430, 2...
new Point( dest.x + hand.getWidth() / 3, dest.y - hand.getHeight() * 2 / 3);
new Point(dest.x + hand.getWidth() / 3, dest.y - hand.getHeight() * 2 / 3);
public void output(Value val, Highlight h) { highlight(h); ValueActor actor = val.getActor(); if (actor == null) { actor = factory.produceValueActor(val); } AnimatingActor hand = factory.produceHand(); Point dest = manager.getOutputPoint(); Point handp = new Point(dest.x, dest.y - hand.getHeight()); Point vdp = new Point( dest.x + hand.getWidth() / 3, dest.y - hand.getHeight() * 2 / 3); Animation fist = hand.changeImage(factory.produceImage("image.hand2")); fist.setDuration(800); capture(); hand.setLocation(dest); engine.showAnimation( new Animation[] { actor.fly(vdp), hand.fly(handp, 0), fist }); hand.setImage(factory.produceImage("image.hand3")); theatre.removeActor(actor); engine.showAnimation(hand.fly(dest, 0)); theatre.removeActor(hand); release(); this.output(val.getValue()); //+ "\n"); }
49293 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49293/3120a92c233114ca42e6ed661ff716e0bf8a53b4/Director.java/buggy/src/jeliot/theater/Director.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 876, 12, 620, 1244, 16, 31386, 366, 13, 288, 3639, 8839, 12, 76, 1769, 3639, 1445, 17876, 8327, 273, 1244, 18, 588, 17876, 5621, 3639, 309, 261, 3362, 422, 446, 13, 288, 5411...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 876, 12, 620, 1244, 16, 31386, 366, 13, 288, 3639, 8839, 12, 76, 1769, 3639, 1445, 17876, 8327, 273, 1244, 18, 588, 17876, 5621, 3639, 309, 261, 3362, 422, 446, 13, 288, 5411...
ObjectType.setOptimizeDefault( m_conf.getParameter(OPTIMIZE_BY_DEFAULT).equals(Boolean.TRUE) );
public void startup() { int database = DbHelper.getDatabase(); // Set the utilities if (database == DbHelper.DB_ORACLE) { SessionManager.setSQLUtilities(new OracleSQLUtilities()); } else if (database == DbHelper.DB_POSTGRES) { SessionManager.setSQLUtilities(new PostgresSQLUtilities()); } else { DbHelper.unsupportedDatabaseError("SQL Utilities"); } ObjectType.setOptimizeDefault( m_conf.getParameter(OPTIMIZE_BY_DEFAULT).equals(Boolean.TRUE) ); CompoundType.setFirstRowsDefault (Boolean.TRUE.equals (m_conf.getParameter("useFirstRowsByDefault"))); if (database == DbHelper.DB_ORACLE) { MDSQLGeneratorFactory.setMDSQLGenerator (MDSQLGeneratorFactory.ORACLE_GENERATOR); } else if (database == DbHelper.DB_POSTGRES) { MDSQLGeneratorFactory.setMDSQLGenerator (MDSQLGeneratorFactory.POSTGRES_GENERATOR); } else { DbHelper.unsupportedDatabaseError("MDSQL generator"); } String pdlDir = (String)m_conf.getParameter(PDL_DIRECTORY); if ((m_conf.getParameter(METADATA_XML_FILE_NAMES) != null) && (pdlDir == null)) { throw new InitializationException ("Invalid persistence configuration. Please replace " + "metadataXmlFileNames with pdlDirectory."); } SessionManager.setSchemaConnectionInfo( "", "", "", ""); Boolean aggressiveClose = (Boolean)m_conf.getParameter(AGGRESSIVE_CONNECTION_CLOSE); if (aggressiveClose != null) { if (aggressiveClose.booleanValue()) { if (s_log.isInfoEnabled()) { s_log.info("Using aggressive connection closing"); } TransactionContext.setAggressiveClose(true); } else { if (s_log.isInfoEnabled()) { s_log.info("Not using aggressive connection closing " + "[aggressiveConnectionClose parameter]"); } TransactionContext.setAggressiveClose(false); } } //SessionManager.setSessionFactory(); PDL.loadPDLFiles(new File(pdlDir)); // Finally the files out of the database TransactionContext txn = null; try { Session session = SessionManager.getSession(); txn = session.getTransactionContext(); txn.beginTxn(); MetadataRoot root = MetadataRoot.getMetadataRoot(); PDL pdl = new PDL(); DataCollection collection = SessionManager.getSession() .retrieve("com.arsdigita.persistence.DynamicObjectType"); while (collection.next()) { String currentFile = (String)collection.get("dynamicType"); if (s_log.isInfoEnabled()) { s_log.info("loading... " + currentFile.toString()); } if (root.getObjectType(currentFile) != null) { // this means that there is a type in the database // that has already been defined so we write an error if (s_log.isEnabledFor(Level.WARN)) { s_log.warn ("The Object Type [" + currentFile + "] has already " + "been defined in the static files. Ignoring " + "object type definition from the database"); } continue; } String pdlFile = (String)collection.get("pdlFile"); pdl.load(new StringReader(pdlFile), "DATABASE: " + currentFile); } collection = SessionManager.getSession() .retrieve("com.arsdigita.persistence.DynamicAssociation"); while (collection.next()) { String currentFile = "Association from " + collection.get("objectType1") + " to " + collection.get("objectType2"); // XXX: I'm going to ignore the possibility of this error for // now. //s_log.warn("An association from " + currentFile + " has " + //"already been defined. Ignoring version in " + //"the database"); if (s_log.isInfoEnabled()) { s_log.info("loading " + currentFile); } String pdlFile = (String)collection.get("pdlFile"); pdl.load(new StringReader(pdlFile), "DATABASE: " + currentFile); } pdl.generateMetadata(root); //try { // Future use -- Patrick //PDLOutputter.writePDL(root, new java.io.File("/tmp/pdl")); //} catch (java.io.IOException e) { //System.out.println(e.getMessage()); //} txn.commitTxn(); } catch (PDLException e) { throw new InitializationException ("Persistence Initialization error while trying to " + "compile the PDL files: " + e.getMessage()); } catch (Exception e2) { if (txn != null && txn.inTxn()) { txn.abortTxn(); } throw new InitializationException(e2); } }
12196 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12196/33d40a30749ceabf445a17f71fe56c89d7fc913c/Initializer.java/clean/archive/proto/src/com/arsdigita/persistence/Initializer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 11850, 1435, 288, 3639, 509, 2063, 273, 8408, 2276, 18, 588, 4254, 5621, 3639, 368, 1000, 326, 22538, 3639, 309, 261, 6231, 422, 8408, 2276, 18, 2290, 67, 916, 2226, 900, 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, 377, 1071, 918, 11850, 1435, 288, 3639, 509, 2063, 273, 8408, 2276, 18, 588, 4254, 5621, 3639, 368, 1000, 326, 22538, 3639, 309, 261, 6231, 422, 8408, 2276, 18, 2290, 67, 916, 2226, 900, 13, ...
if(table == colorTable) { Color color = JColorChooser.showDialog( StyleOptionPane.this, jEdit.getProperty("colorChooser.title"), (Color)colorModel.getValueAt(row,1)); if(color != null) colorModel.setValueAt(color,row,1); } else if(table == styleTable) { SyntaxStyle style = new StyleEditor( StyleOptionPane.this, (SyntaxStyle)styleModel.getValueAt( row,1)).getStyle(); if(style != null) styleModel.setValueAt(style,row,1); }
SyntaxStyle style = new StyleEditor( StyleOptionPane.this, (SyntaxStyle)styleModel.getValueAt( row,1)).getStyle(); if(style != null) styleModel.setValueAt(style,row,1);
public void mouseClicked(MouseEvent evt) { int row = table.rowAtPoint(evt.getPoint()); if(row == -1) return; if(table == colorTable) { Color color = JColorChooser.showDialog( StyleOptionPane.this, jEdit.getProperty("colorChooser.title"), (Color)colorModel.getValueAt(row,1)); if(color != null) colorModel.setValueAt(color,row,1); } else if(table == styleTable) { SyntaxStyle style = new StyleEditor( StyleOptionPane.this, (SyntaxStyle)styleModel.getValueAt( row,1)).getStyle(); if(style != null) styleModel.setValueAt(style,row,1); } }
6564 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6564/0ccaec2dceb7e61687dc6094fa6761613f0560ad/StyleOptionPane.java/clean/org/gjt/sp/jedit/options/StyleOptionPane.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 7644, 27633, 12, 9186, 1133, 6324, 13, 202, 202, 95, 1082, 202, 474, 1027, 273, 1014, 18, 492, 861, 2148, 12, 73, 11734, 18, 588, 2148, 10663, 1082, 202, 430, 12, 492, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 7644, 27633, 12, 9186, 1133, 6324, 13, 202, 202, 95, 1082, 202, 474, 1027, 273, 1014, 18, 492, 861, 2148, 12, 73, 11734, 18, 588, 2148, 10663, 1082, 202, 430, 12, 492, ...
return LexicalUnits.NUMBER;
return (integer) ? LexicalUnits.INTEGER : LexicalUnits.FLOAT;
protected int numberUnit(int c) throws IOException { switch (c) { case '%': inputBuffer.next(); return LexicalUnits.PERCENTAGE; case 'c': case 'C': c = inputBuffer.next(); switch(c) { case 'm': case 'M': c = inputBuffer.next(); if (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)) { do { c = inputBuffer.next(); } while (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)); return LexicalUnits.DIMENSION; } return LexicalUnits.CM; default: while (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)) { c = inputBuffer.next(); } return LexicalUnits.DIMENSION; } case 'd': case 'D': c = inputBuffer.next(); switch(c) { case 'e': case 'E': c = inputBuffer.next(); switch(c) { case 'g': case 'G': c = inputBuffer.next(); if (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)) { do { c = inputBuffer.next(); } while (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)); return LexicalUnits.DIMENSION; } return LexicalUnits.DEG; } default: while (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)) { c = inputBuffer.next(); } return LexicalUnits.DIMENSION; } case 'e': case 'E': c = inputBuffer.next(); switch(c) { case 'm': case 'M': c = inputBuffer.next(); if (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)) { do { c = inputBuffer.next(); } while (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)); return LexicalUnits.DIMENSION; } return LexicalUnits.EM; case 'x': case 'X': c = inputBuffer.next(); if (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)) { do { c = inputBuffer.next(); } while (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)); return LexicalUnits.DIMENSION; } return LexicalUnits.EX; default: while (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)) { c = inputBuffer.next(); } return LexicalUnits.DIMENSION; } case 'g': case 'G': c = inputBuffer.next(); switch(c) { case 'r': case 'R': c = inputBuffer.next(); switch(c) { case 'a': case 'A': c = inputBuffer.next(); switch(c) { case 'd': case 'D': c = inputBuffer.next(); if (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)) { do { c = inputBuffer.next(); } while (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)); return LexicalUnits.DIMENSION; } return LexicalUnits.GRAD; } } default: while (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)) { c = inputBuffer.next(); } return LexicalUnits.DIMENSION; } case 'h': case 'H': c = inputBuffer.next(); switch(c) { case 'z': case 'Z': c = inputBuffer.next(); if (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)) { do { c = inputBuffer.next(); } while (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)); return LexicalUnits.DIMENSION; } return LexicalUnits.HZ; default: while (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)) { c = inputBuffer.next(); } return LexicalUnits.DIMENSION; } case 'i': case 'I': c = inputBuffer.next(); switch(c) { case 'n': case 'N': c = inputBuffer.next(); if (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)) { do { c = inputBuffer.next(); } while (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)); return LexicalUnits.DIMENSION; } return LexicalUnits.IN; default: while (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)) { c = inputBuffer.next(); } return LexicalUnits.DIMENSION; } case 'k': case 'K': c = inputBuffer.next(); switch(c) { case 'h': case 'H': c = inputBuffer.next(); switch(c) { case 'z': case 'Z': c = inputBuffer.next(); if (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)) { do { c = inputBuffer.next(); } while (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)); return LexicalUnits.DIMENSION; } return LexicalUnits.KHZ; } default: while (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)) { c = inputBuffer.next(); } return LexicalUnits.DIMENSION; } case 'm': case 'M': c = inputBuffer.next(); switch(c) { case 'm': case 'M': c = inputBuffer.next(); if (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)) { do { c = inputBuffer.next(); } while (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)); return LexicalUnits.DIMENSION; } return LexicalUnits.MM; case 's': case 'S': c = inputBuffer.next(); if (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)) { do { c = inputBuffer.next(); } while (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)); return LexicalUnits.DIMENSION; } return LexicalUnits.MS; default: while (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)) { c = inputBuffer.next(); } return LexicalUnits.DIMENSION; } case 'p': case 'P': c = inputBuffer.next(); switch(c) { case 'c': case 'C': c = inputBuffer.next(); if (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)) { do { c = inputBuffer.next(); } while (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)); return LexicalUnits.DIMENSION; } return LexicalUnits.PC; case 't': case 'T': c = inputBuffer.next(); if (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)) { do { c = inputBuffer.next(); } while (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)); return LexicalUnits.DIMENSION; } return LexicalUnits.PT; case 'x': case 'X': c = inputBuffer.next(); if (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)) { do { c = inputBuffer.next(); } while (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)); return LexicalUnits.DIMENSION; } return LexicalUnits.PX; default: while (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)) { c = inputBuffer.next(); } return LexicalUnits.DIMENSION; } case 'r': case 'R': c = inputBuffer.next(); switch(c) { case 'a': case 'A': c = inputBuffer.next(); switch(c) { case 'd': case 'D': c = inputBuffer.next(); if (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)) { do { c = inputBuffer.next(); } while (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)); return LexicalUnits.DIMENSION; } return LexicalUnits.RAD; } default: while (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)) { c = inputBuffer.next(); } return LexicalUnits.DIMENSION; } case 's': case 'S': inputBuffer.next(); return LexicalUnits.S; default: if (c != -1 && ScannerUtilities.isCSSIdentifierStartCharacter((char)c)) { do { c = inputBuffer.next(); } while (c != -1 && ScannerUtilities.isCSSNameCharacter((char)c)); return LexicalUnits.DIMENSION; } return LexicalUnits.NUMBER; } }
45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/a7e1d39bc64936438b1c6d7d493a36e399e92d5d/Scanner.java/clean/sources/org/apache/batik/css/parser/Scanner.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 509, 1300, 2802, 12, 474, 276, 13, 1216, 1860, 288, 3639, 1620, 261, 71, 13, 288, 3639, 648, 1995, 4278, 5411, 810, 1892, 18, 4285, 5621, 5411, 327, 15123, 1706, 7537, 18, 3194, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 509, 1300, 2802, 12, 474, 276, 13, 1216, 1860, 288, 3639, 1620, 261, 71, 13, 288, 3639, 648, 1995, 4278, 5411, 810, 1892, 18, 4285, 5621, 5411, 327, 15123, 1706, 7537, 18, 3194, 1...
twelveHours - ONE_MINUTE,
TWELVE_HOURS - ONE_MINUTE,
public void testGetTimeToNextBuild() { long fiveSeconds = 5 * 1000; long oneHour = 60 * ONE_MINUTE; long elevenHours = 11 * oneHour; long oneHourFiftyNineMinutes = 2 * oneHour - ONE_MINUTE; long twelveHours = 12 * oneHour; long twentyFourHours = 2 * twelveHours; PauseBuilder pause = new PauseBuilder(); pause.setStartTime(2300); pause.setEndTime(2359); schedule.addPauseBuilder(pause); assertEquals( "next time build > build interval", fiveSeconds, schedule.getTimeToNextBuild(THURSDAY_1001, fiveSeconds)); assertEquals( "next time build < build interval", oneHourFiftyNineMinutes, schedule.getTimeToNextBuild(THURSDAY_1001, elevenHours)); assertEquals( "next time build is tomorrow", twelveHours - ONE_MINUTE, schedule.getTimeToNextBuild(THURSDAY_1201, twentyFourHours * 2)); assertEquals( "wait till after pause", twelveHours - ONE_MINUTE, schedule.getTimeToNextBuild(THURSDAY_1201, elevenHours)); assertEquals( "wait till after pause we're in", oneHour - ONE_MINUTE, schedule.getTimeToNextBuild(THURSDAY_2301, fiveSeconds)); pause = new PauseBuilder(); pause.setStartTime(0000); pause.setEndTime(100); schedule.addPauseBuilder(pause); assertEquals( "wait till after pause on next day", 2 * oneHour, schedule.getTimeToNextBuild(THURSDAY_2301, oneHour)); assertEquals( "two back-to-back pauses", 2 * oneHour, schedule.getTimeToNextBuild(THURSDAY_2301, fiveSeconds)); pause = new PauseBuilder(); pause.setStartTime(0000); pause.setEndTime(2359); pause.setDay("friday"); schedule.addPauseBuilder(pause); assertEquals( "chained pauses with day specific pause", twentyFourHours + (2 * oneHour), schedule.getTimeToNextBuild(THURSDAY_2301, oneHour)); }
55334 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55334/56d235b4a822625863ad4326bc454bd0890aac09/ScheduleTest.java/clean/main/test/net/sourceforge/cruisecontrol/ScheduleTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 967, 950, 774, 2134, 3116, 1435, 288, 3639, 1525, 23714, 6762, 273, 1381, 380, 4336, 31, 3639, 1525, 1245, 13433, 273, 4752, 380, 15623, 67, 30090, 31, 3639, 1525, 5043, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 967, 950, 774, 2134, 3116, 1435, 288, 3639, 1525, 23714, 6762, 273, 1381, 380, 4336, 31, 3639, 1525, 1245, 13433, 273, 4752, 380, 15623, 67, 30090, 31, 3639, 1525, 5043, ...
double tmp3 = a[i][2];
tmp2 = a[i][2];
public void align() { Matrix tmp; // get center of gravity and translate both to 0,0,0 this.cm1 = new Point3d(); this.cm2 = new Point3d(); this.cm1 = getCenterOfMass(p1, atwt1); this.cm2 = getCenterOfMass(p2, atwt2); /* this.cm1 = getCenterOfGeometry(p1); this.cm2 = getCenterOfGeometry(p2); */ // move the points for (int i = 0; i < this.npoint; i++) { p1[i].x = p1[i].x - this.cm1.x; p1[i].y = p1[i].y - this.cm1.y; p1[i].z = p1[i].z - this.cm1.z; p2[i].x = p2[i].x - this.cm2.x; p2[i].y = p2[i].y - this.cm2.y; p2[i].z = p2[i].z - this.cm2.z; } // get the R matrix double[][] R = new double[3][3]; for (int i = 0; i < this.npoint; i++) { wts[i] = 1.0; } for (int i = 0; i < this.npoint; i++) { R[0][0] += p1[i].x * p2[i].x * wts[i]; R[0][1] += p1[i].x * p2[i].y * wts[i]; R[0][2] += p1[i].x * p2[i].z * wts[i]; R[1][0] += p1[i].y * p2[i].x * wts[i]; R[1][1] += p1[i].y * p2[i].y * wts[i]; R[1][2] += p1[i].y * p2[i].z * wts[i]; R[2][0] += p1[i].z * p2[i].x * wts[i]; R[2][1] += p1[i].z * p2[i].y * wts[i]; R[2][2] += p1[i].z * p2[i].z * wts[i]; } // now get the RtR (=R'R) matrix double[][] RtR = new double[3][3]; Matrix jamaR = new Matrix(R); //System.out.println("det(R) = "+jamaR.det()); tmp = jamaR.transpose().times( jamaR ); RtR = tmp.getArray(); // get eigenvalues of RtR (a's) Matrix jamaRtR = new Matrix(RtR); EigenvalueDecomposition ed = jamaRtR.eig(); double[] mu = ed.getRealEigenvalues(); double[][] a = ed.getV().getArray(); // Jama returns the eigenvalues in increasing order so // swap the eigenvalues and vectors double tmp2 = mu[2]; mu[2] = mu[0]; mu[0] = tmp2; for (int i = 0; i < 3; i++) { double tmp3 = a[i][2]; a[i][2] = a[i][0]; a[i][0] = tmp3; } // make sure that the a3 = a1 x a2 double[] tmpa = new double[3]; tmpa[0] = (a[1][0]*a[2][1]) - (a[1][1]*a[2][0]); tmpa[1] = (a[0][1]*a[2][0]) - (a[0][0]*a[2][1]); tmpa[2] = (a[0][0]*a[1][1]) - (a[0][1]*a[1][0]); a[0][2] = tmpa[0]; a[1][2] = tmpa[1]; a[2][2] = tmpa[2]; // lets work out the b vectors double[][] b = new double[3][3]; /* for(int i = 0; i < 3; i++){ b[0][i] = (R[0][0] * a[0][i]+R[0][1] * a[1][i]+R[0][2] * a[2][i]) / Math.sqrt(mu[i]); b[1][i] = (R[1][0] * a[0][i]+R[1][1] * a[1][i]+R[1][2] * a[2][i]) / Math.sqrt(mu[i]); b[2][i] = (R[2][0] * a[0][i]+R[2][1] * a[1][i]+R[2][2] * a[2][i]) / Math.sqrt(mu[i]); } */ for (int i = 0; i < 3; i++) { for (int j = 0; j < 3; j++) { for (int k = 0; k < 3; k++) { b[i][j] += R[i][k] * a[k][j]; } } } // normalize and set b3 = b1 x b2 double norm1 = 0.; double norm2 = 0.; for (int i = 0; i < 3; i++) { norm1 += b[i][0]*b[i][0]; norm2 += b[i][1]*b[i][1]; } norm1 = Math.sqrt(norm1); norm2 = Math.sqrt(norm2); for (int i = 0; i < 3; i++) { b[i][0] /= norm1; b[i][1] /= norm2; } b[0][2] = (b[1][0]*b[2][1]) - (b[1][1]*b[2][0]); b[1][2] = (b[0][1]*b[2][0]) - (b[0][0]*b[2][1]); b[2][2] = (b[0][0]*b[1][1]) - (b[0][1]*b[1][0]); // get the rotation matrix double[][] tU = new double[3][3]; for (int i = 0; i < 3; i++) { for (int j = 0; j < 3; j++) { for (int k = 0; k < 3; k++) { tU[i][j] += b[i][k]*a[j][k]; } } } // take the transpose U = new double[3][3]; for (int i = 0; i < 3; i++) { for (int j = 0; j < 3; j++) { U[i][j] = tU[j][i]; } } // now eval the RMS error // first, rotate the second set of points and ... this.rp = new Point3d[ this.npoint ]; for (int i = 0; i < this.npoint; i++) { this.rp[i] = new Point3d( U[0][0]*p2[i].x + U[0][1]*p2[i].y + U[0][2]*p2[i].z, U[1][0]*p2[i].x + U[1][1]*p2[i].y + U[1][2]*p2[i].z, U[2][0]*p2[i].x + U[2][1]*p2[i].y + U[2][2]*p2[i].z ); } // ... then eval rms double rms = 0.; for (int i = 0; i < this.npoint; i++) { rms += (p1[i].x-this.rp[i].x)*(p1[i].x-this.rp[i].x) + (p1[i].y-this.rp[i].y)*(p1[i].y-this.rp[i].y) + (p1[i].z-this.rp[i].z)*(p1[i].z-this.rp[i].z); } this.rmsd = Math.sqrt(rms / this.npoint); }
46046 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46046/3d687d1071999af51ca7a2d43f62dee2d2639b6d/KabschAlignment.java/buggy/src/org/openscience/cdk/geometry/alignment/KabschAlignment.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 5689, 1435, 288, 7734, 7298, 1853, 31, 4202, 368, 336, 4617, 434, 26189, 471, 4204, 3937, 358, 374, 16, 20, 16, 20, 540, 333, 18, 7670, 21, 273, 394, 4686, 23, 72, 5621, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 5689, 1435, 288, 7734, 7298, 1853, 31, 4202, 368, 336, 4617, 434, 26189, 471, 4204, 3937, 358, 374, 16, 20, 16, 20, 540, 333, 18, 7670, 21, 273, 394, 4686, 23, 72, 5621, 36...
if (!queryYesNoQuestion(msg))
if (!queryYesNoQuestion(msg)) {
protected boolean ensureTargetIsValid(File file) { if (file.exists()) { if (!getOverwriteExisting()) { String msg = NLS .bind( PreferencesMessages.WizardPreferencesExportPage1_overwrite, file.getAbsolutePath()); if (!queryYesNoQuestion(msg)) return false; } file.delete(); } else if (!file.isDirectory()) { File parent = file.getParentFile(); if (parent != null) file.getParentFile().mkdirs(); } return true; }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/WizardPreferencesPage.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/wizards/preferences/WizardPreferencesPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 1250, 3387, 2326, 20536, 12, 812, 585, 13, 288, 202, 202, 430, 261, 768, 18, 1808, 10756, 288, 1082, 202, 430, 16051, 588, 20832, 9895, 10756, 288, 9506, 202, 780, 1234, 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, 1117, 1250, 3387, 2326, 20536, 12, 812, 585, 13, 288, 202, 202, 430, 261, 768, 18, 1808, 10756, 288, 1082, 202, 430, 16051, 588, 20832, 9895, 10756, 288, 9506, 202, 780, 1234, 273, ...