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
_t = __t221;
_t = __t230;
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 cdataSect = 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 __t204 = _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; { _loop207: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case COMP_NS_CONSTRUCTOR: { AST __t206 = _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 = __t206; _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 COMP_DOC_CONSTRUCTOR: case PRAGMA: case NCNAME: case EQ: case STRING_LITERAL: case LITERAL_element: case COMMA: case LCURLY: case STAR: case PLUS: case LITERAL_some: case LITERAL_every: case LITERAL_if: case LITERAL_typeswitch: case LITERAL_update: case LITERAL_preceding: case LITERAL_following: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_instance: case LITERAL_treat: case LITERAL_castable: case LITERAL_cast: case LT: case GT: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GTEQ: case LTEQ: case LITERAL_is: case LITERAL_isnot: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case LITERAL_attribute: case LITERAL_comment: case 165: case 166: case SELF: case XML_COMMENT: case XML_PI: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_descendant: case 178: case 179: case LITERAL_parent: case LITERAL_ancestor: case 182: case 183: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case XML_CDATA: { elementContent = new PathExpr(context); contentExpr=expr(_t,elementContent); _t = _retTree; construct.addPath(elementContent); break; } default: { break _loop207; } } } while (true); } _t = __t204; _t = _t.getNextSibling(); break; } case COMP_ATTR_CONSTRUCTOR: { AST __t208 = _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 = __t208; _t = _t.getNextSibling(); break; } case COMP_PI_CONSTRUCTOR: { AST __t209 = _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 = __t209; _t = _t.getNextSibling(); break; } case ELEMENT: { AST __t210 = _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; staticContext.pushInScopeNamespaces(); { _loop216: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==ATTRIBUTE)) { AST __t212 = _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); { _loop215: 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(StringValue.expand(attrVal.getText())); break; } case LCURLY: { AST __t214 = _t; org.exist.xquery.parser.XQueryAST tmp106_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 = __t214; _t = _t.getNextSibling(); break; } default: { break _loop215; } } } while (true); } c.addAttribute(attrib); if (attrib.isNamespaceDeclaration()) { String nsPrefix = attrib.getQName().equals("xmlns") ? "" : QName.extractLocalName(attrib.getQName()); staticContext.declareInScopeNamespace(nsPrefix,attrib.getLiteralValue()); } _t = __t212; _t = _t.getNextSibling(); } else { break _loop216; } } while (true); } { _loop218: do { if (_t==null) _t=ASTNULL; if ((_tokenSet_2.member(_t.getType()))) { if (elementContent == null) { elementContent= new PathExpr(context); c.setContent(elementContent); } contentExpr=constructor(_t,elementContent); _t = _retTree; elementContent.add(contentExpr); } else { break _loop218; } } while (true); } staticContext.popInScopeNamespaces(); _t = __t210; _t = _t.getNextSibling(); break; } case TEXT: { AST __t219 = _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 = __t219; _t = _t.getNextSibling(); break; } case COMP_TEXT_CONSTRUCTOR: { AST __t220 = _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 = __t220; _t = _t.getNextSibling(); break; } case COMP_COMMENT_CONSTRUCTOR: { AST __t221 = _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 = __t221; _t = _t.getNextSibling(); break; } case COMP_DOC_CONSTRUCTOR: { AST __t222 = _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 = __t222; _t = _t.getNextSibling(); break; } case XML_COMMENT: { AST __t223 = _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 = __t223; _t = _t.getNextSibling(); break; } case XML_PI: { AST __t224 = _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 = __t224; _t = _t.getNextSibling(); break; } case XML_CDATA: { AST __t225 = _t; cdataSect = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,XML_CDATA); _t = _t.getFirstChild(); CDATAConstructor cd = new CDATAConstructor(context, cdataSect.getText()); cd.setASTNode(cdataSect); step= cd; _t = __t225; _t = _t.getNextSibling(); break; } case LCURLY: { AST __t226 = _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 = __t226; _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/44415d5ab271629cb9c572bd44ec8cedcc36aaca/XQueryTreeParser.java/buggy/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, 31, 9506, 202, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 3885, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 13, 67, 88, 31, 202, 202, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 31054, 273, 446, 31, 202, 202, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 1633, 273, 446, 31, 202, 202, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 2003, 273, 446, 31, 202, 202, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 1604, 273, 446, 31, 202, 202, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 4231, 273, 446, 31, 202, 202, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 425, 273, 446, 31, 202, 202, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 11583, 273, 446, 31, 202, 202, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 1604, 3053, 273, 446, 31, 202, 202, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 6125, 892, 273, 446, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 31, 9506, 202, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 3885, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 13, 67, 88, 31, 202, 202, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 31054, 273, 446, 31, 202, 202, 3341, 18, 7398, 18, 92, 2271, 18, 4288, 18, 60, 1138, 9053, 1633, 273, 446, 2 ]
}
}
public static boolean isSingleton(@NotNull PsiClass aClass) { if (aClass.isInterface() || aClass.isEnum() || aClass.isAnnotationType()) { return false; } if(aClass instanceof PsiTypeParameter || aClass instanceof PsiAnonymousClass){ return false; } if (!hasConstructor(aClass)) { return false; } if (hasVisibleConstructor(aClass)) { return false; } return containsOneStaticSelfInstance(aClass); }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/bd57f07c33c419f20715b114b71a7e93425b34c9/SingletonUtil.java/buggy/plugins/InspectionGadgets/src/com/siyeh/ig/psiutils/SingletonUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1250, 11604, 12551, 26964, 5962, 453, 7722, 797, 20148, 13, 288, 3639, 309, 261, 69, 797, 18, 291, 1358, 1435, 747, 20148, 18, 291, 3572, 1435, 747, 20148, 18, 291, 3257, 559, 10756, 288, 5411, 327, 629, 31, 3639, 289, 3639, 309, 12, 69, 797, 1276, 453, 7722, 16920, 747, 7734, 20148, 1276, 453, 7722, 18792, 797, 15329, 5411, 327, 629, 31, 3639, 289, 3639, 309, 16051, 5332, 6293, 12, 69, 797, 3719, 288, 5411, 327, 629, 31, 3639, 289, 3639, 309, 261, 5332, 6207, 6293, 12, 69, 797, 3719, 288, 5411, 327, 629, 31, 3639, 289, 3639, 327, 1914, 3335, 5788, 10084, 1442, 12, 69, 797, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 760, 1250, 11604, 12551, 26964, 5962, 453, 7722, 797, 20148, 13, 288, 3639, 309, 261, 69, 797, 18, 291, 1358, 1435, 747, 20148, 18, 291, 3572, 1435, 747, 20148, 18, 291, 3257, 559, 10756, 288, 5411, 327, 629, 31, 3639, 289, 3639, 309, 12, 69, 797, 1276, 453, 7722, 16920, 747, 7734, 20148, 1276, 453, 7722, 18792, 797, 15329, 5411, 327, 629, 31, 3639, 289, 3639, 309, 16051, 5332, 6293, 12, 69, 797, 3719, 288, 5411, 327, 629, 31, 3639, 289, 3639, 309, 261, 5332, 6207, 6293, 12, 69, 797, 3719, 288, 5411, 327, 629, 31, 3639, 289, 3639, 327, 1914, 3335, 5788, 10084, 1442, 12, 69, 797, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100 ]
for(Iterator<String> i = bugCategoryCollection.iterator(); i.hasNext();) { String bugCategory = i.next(); String bugCategoryDescription = edu.umd.cs.findbugs.I18N.instance().getBugCategoryDescription(bugCategory);
for (String bugCategory : bugCategoryCollection) { String bugCategoryDescription = I18N.instance().getBugCategoryDescription(bugCategory);
private void postInitComponents() { logger = new ConsoleLogger(this); // Add menu items for bug categories to View->Filter Settings menu. // These are automatically localized assuming that a // BugCategoryDescriptions_<locale>.properties file exists // in edu.umd.cs.findbugs. Collection<String> bugCategoryCollection = edu.umd.cs.findbugs.I18N.instance().getBugCategories(); this.bugCategoryCheckBoxList = new JCheckBoxMenuItem[bugCategoryCollection.size()]; this.bugCategoryList = new String[bugCategoryCollection.size()]; int count = 0; for(Iterator<String> i = bugCategoryCollection.iterator(); i.hasNext();) { String bugCategory = i.next(); String bugCategoryDescription = edu.umd.cs.findbugs.I18N.instance().getBugCategoryDescription(bugCategory); final JCheckBoxMenuItem item = new JCheckBoxMenuItem(bugCategoryDescription, true); item.setFont(BUTTON_FONT); item.setSelected(getFilterSettings().containsCategory(bugCategory)); item.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { toggleBugCategory(item); } }); filterWarningsMenu.add(item); this.bugCategoryCheckBoxList[count] = item; this.bugCategoryList[count] = bugCategory; ++count; } viewPanelLayout = (CardLayout) viewPanel.getLayout(); // Console starts out disabled consoleSplitter.setDividerLocation(1.0); // List of bug group tabs. // This must be in the same order as GROUP_BY_ORDER_LIST! bugTreeList = new JTree[]{byClassBugTree, byPackageBugTree, byBugTypeBugTree, byBugCategoryBugTree}; // Configure bug trees for (int i = 0; i < bugTreeList.length; ++i) { JTree bugTree = bugTreeList[i]; bugTree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION); bugTree.setCellRenderer(BugCellRenderer.instance()); bugTree.setRootVisible(false); bugTree.setShowsRootHandles(true); bugTree.addTreeSelectionListener(new TreeSelectionListener() { public void valueChanged(TreeSelectionEvent e) { bugTreeSelectionChanged(e); } }); } jarFileList.setModel(new DefaultListModel()); sourceDirList.setModel(new DefaultListModel()); classpathEntryList.setModel(new DefaultListModel()); // We use a special highlight painter to ensure that the highlights cover // complete source lines, even though the source text doesn't // fill the lines completely. final Highlighter.HighlightPainter painter = new DefaultHighlighter.DefaultHighlightPainter(sourceTextArea.getSelectionColor()) { public Shape paintLayer(Graphics g, int offs0, int offs1, Shape bounds, JTextComponent c, View view) { try { Shape extent = view.modelToView(offs0, Position.Bias.Forward, offs1, Position.Bias.Backward, bounds); Rectangle rect = extent.getBounds(); rect.x = 0; rect.width = bounds.getBounds().width; g.setColor(getColor()); g.fillRect(rect.x, rect.y, rect.width, rect.height); return rect; } catch (BadLocationException e) { return null; } } }; Highlighter sourceHighlighter = new DefaultHighlighter() { public Object addHighlight(int p0, int p1, Highlighter.HighlightPainter p) throws BadLocationException { return super.addHighlight(p0, p1, painter); } }; sourceTextArea.setHighlighter(sourceHighlighter); updateTitle(getCurrentProject()); // Load the icon for the UMD logo ClassLoader classLoader = this.getClass().getClassLoader(); ImageIcon logoIcon = new ImageIcon(classLoader.getResource("edu/umd/cs/findbugs/gui/logo_umd.png")); logoLabel.setIcon(logoIcon); // Set common Menu Accelerators final int MENU_MASK = getMenuMask(); newProjectItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_N, MENU_MASK)); openProjectItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_O, MENU_MASK)); saveProjectItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_S, MENU_MASK)); closeProjectItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_W, MENU_MASK)); reloadProjectItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_R, MENU_MASK)); cutItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_X, MENU_MASK)); copyItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_C, MENU_MASK)); pasteItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_V, MENU_MASK)); selectAllItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_A, MENU_MASK)); if (MAC_OS_X) { // Some more accelerators that use modifiers. Other platforms // tend not to use modifiers for menu accelerators saveProjectAsItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_S, MENU_MASK | Event.SHIFT_MASK)); loadBugsItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_O, MENU_MASK | Event.ALT_MASK)); saveBugsItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_S, MENU_MASK | Event.ALT_MASK)); // Leave room for the growBox on Mac growBoxSpacer.setMinimumSize(new java.awt.Dimension(16,16)); // Remove Unnecessary/Redundant menu items. fileMenu.remove(exitItem); fileMenu.remove(jSeparator6); theMenuBar.remove(helpMenu); // Set up listeners for Quit and About menu items using // Apple's EAWT API. // We use reflection here, so there is no posible chance that the // class loader will try to load OSXAdapter on a non Mac system try { Class osxAdapter = Class.forName("edu.umd.cs.findbugs.gui.OSXAdapter"); Class[] defArgs = {FindBugsFrame.class}; Method registerMethod = osxAdapter.getDeclaredMethod("registerMacOSXApplication", defArgs); if (registerMethod != null) { Object[] args = {this}; registerMethod.invoke(osxAdapter, args); } } catch (NoClassDefFoundError e) { // This will be thrown first if the OSXAdapter is loaded on a system without the EAWT // because OSXAdapter extends ApplicationAdapter in its def System.err.println("This version of Mac OS X does not support the Apple EAWT. Application Menu handling has been disabled (" + e + ")"); } catch (ClassNotFoundException e) { // This shouldn't be reached; if there's a problem with the OSXAdapter we should get the // above NoClassDefFoundError first. System.err.println("This version of Mac OS X does not support the Apple EAWT. Application Menu handling has been disabled (" + e + ")"); } catch (Exception e) { System.err.println("Exception while loading the OSXAdapter:"); e.printStackTrace(); } } }
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/6283ec82a0713e109b5a169c0a420974b6bad830/FindBugsFrame.java/clean/findbugs/src/java/edu/umd/cs/findbugs/gui/FindBugsFrame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1603, 2570, 7171, 1435, 288, 202, 202, 4901, 273, 394, 9657, 3328, 12, 2211, 1769, 202, 202, 759, 1436, 3824, 1516, 364, 7934, 6477, 358, 4441, 2122, 1586, 8709, 3824, 18, 202, 202, 759, 8646, 854, 6635, 13596, 15144, 716, 279, 202, 202, 759, 16907, 4457, 16844, 67, 32, 6339, 18652, 4738, 585, 1704, 202, 202, 759, 316, 1675, 89, 18, 379, 72, 18, 2143, 18, 4720, 19381, 18, 202, 202, 2532, 32, 780, 34, 7934, 4457, 2532, 273, 1675, 89, 18, 379, 72, 18, 2143, 18, 4720, 19381, 18, 45, 2643, 50, 18, 1336, 7675, 588, 19865, 10487, 5621, 202, 202, 2211, 18, 925, 4457, 19174, 682, 273, 394, 804, 19174, 12958, 63, 925, 4457, 2532, 18, 1467, 1435, 15533, 202, 202, 2211, 18, 925, 4457, 682, 273, 394, 514, 63, 925, 4457, 2532, 18, 1467, 1435, 15533, 202, 202, 474, 1056, 273, 374, 31, 202, 202, 1884, 12, 3198, 32, 780, 34, 277, 273, 7934, 4457, 2532, 18, 9838, 5621, 277, 18, 5332, 2134, 5621, 13, 288, 1082, 202, 780, 7934, 4457, 273, 277, 18, 4285, 5621, 1082, 202, 780, 7934, 4457, 3291, 273, 1675, 89, 18, 379, 72, 18, 2143, 18, 4720, 19381, 18, 45, 2643, 50, 18, 1336, 7675, 588, 19865, 4457, 3291, 12, 925, 4457, 1769, 1082, 202, 6385, 804, 19174, 12958, 761, 273, 394, 804, 19174, 12958, 12, 925, 4457, 3291, 16, 638, 1769, 1082, 202, 1726, 18, 542, 5711, 12, 20068, 67, 25221, 1769, 1082, 202, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1603, 2570, 7171, 1435, 288, 202, 202, 4901, 273, 394, 9657, 3328, 12, 2211, 1769, 202, 202, 759, 1436, 3824, 1516, 364, 7934, 6477, 358, 4441, 2122, 1586, 8709, 3824, 18, 202, 202, 759, 8646, 854, 6635, 13596, 15144, 716, 279, 202, 202, 759, 16907, 4457, 16844, 67, 32, 6339, 18652, 4738, 585, 1704, 202, 202, 759, 316, 1675, 89, 18, 379, 72, 18, 2143, 18, 4720, 19381, 18, 202, 202, 2532, 32, 780, 34, 7934, 4457, 2532, 273, 1675, 89, 18, 379, 72, 18, 2143, 18, 4720, 19381, 18, 45, 2643, 50, 18, 1336, 7675, 588, 19865, 10487, 5621, 202, 202, 2211, 18, 925, 4457, 19174, 682, 273, 394, 804, 19174, 12958, 63, 925, 2 ]
prefs.setDefault(GUESS_TAB_SUBSTITUTION, DEFAULT_GUESS_TAB_SUBSTITUTION); prefs.setDefault(TAB_WIDTH, DEFAULT_TAB_WIDTH);
prefs.setDefault(AbstractDecoratedTextEditorPreferenceConstants.EDITOR_OVERVIEW_RULER, StringConverter.asString(DEFAULT_EDITOR_OVERVIEW_RULER)); prefs.setDefault(AbstractDecoratedTextEditorPreferenceConstants.EDITOR_LINE_NUMBER_RULER, StringConverter.asString(DEFAULT_EDITOR_LINE_NUMBER_RULER)); prefs.setDefault(AbstractDecoratedTextEditorPreferenceConstants.EDITOR_CURRENT_LINE, StringConverter.asString(DEFAULT_EDITOR_CURRENT_LINE)); prefs.setDefault(AbstractDecoratedTextEditorPreferenceConstants.EDITOR_PRINT_MARGIN, StringConverter.asString(DEFAULT_EDITOR_PRINT_MARGIN)); prefs.setDefault(AbstractDecoratedTextEditorPreferenceConstants.EDITOR_USE_CUSTOM_CARETS, StringConverter.asString(DEFAULT_EDITOR_USE_CUSTOM_CARETS)); prefs.setDefault(AbstractDecoratedTextEditorPreferenceConstants.EDITOR_WIDE_CARET, StringConverter.asString(DEFAULT_EDITOR_WIDE_CARET));
protected static void initializeDefaultPreferences(Preferences prefs) { prefs.setDefault(SUBSTITUTE_TABS, DEFAULT_SUBSTITUTE_TABS); prefs.setDefault(USE_CODE_FOLDING, DEFAULT_USE_CODE_FOLDING); prefs.setDefault(GUESS_TAB_SUBSTITUTION, DEFAULT_GUESS_TAB_SUBSTITUTION); prefs.setDefault(TAB_WIDTH, DEFAULT_TAB_WIDTH); prefs.setDefault(CODE_COLOR,StringConverter.asString(DEFAULT_CODE_COLOR)); prefs.setDefault(KEYWORD_COLOR,StringConverter.asString(DEFAULT_KEYWORD_COLOR)); prefs.setDefault(STRING_COLOR,StringConverter.asString(DEFAULT_STRING_COLOR)); prefs.setDefault(COMMENT_COLOR,StringConverter.asString(DEFAULT_COMMENT_COLOR)); prefs.setDefault(HYPERLINK_COLOR, StringConverter.asString(DEFAULT_HYPERLINK_COLOR)); prefs.setDefault(EDITOR_BACKGROUND_COLOR, StringConverter.asString(DEFAULT_EDITOR_BACKGROUND_COLOR)); prefs.setDefault(EDITOR_USE_CUSTOM_BACKGROUND_COLOR, DEFAULT_EDITOR_BACKGROUND_COLOR_SYSTEM_DEFAULT); prefs.setDefault(EDITOR_CURRENT_LINE, StringConverter.asString(DEFAULT_EDITOR_CURRENT_LINE)); prefs.setDefault(EDITOR_CURRENT_LINE_COLOR, StringConverter.asString(DEFAULT_EDITOR_CURRENT_LINE_COLOR)); prefs.setDefault(BLOCK_COMMENT, DEFAULT_BLOCK_COMMENT_STRING); prefs.setDefault(CONNECT_TIMEOUT, DEFAULT_CONNECT_TIMEOUT); prefs.setDefault(RUN_MANY_SCRIPT_LOCATION, DEFAULT_RUN_MANY_SCRIPT_LOCATION); }
1319 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1319/260098a1f0c3bdf5a92abdc70059581d423c7cec/PydevPrefs.java/clean/org.python.pydev/src/org/python/pydev/plugin/PydevPrefs.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 760, 918, 4046, 1868, 12377, 12, 12377, 15503, 13, 288, 202, 202, 1484, 2556, 18, 542, 1868, 12, 8362, 882, 1285, 9099, 67, 28899, 55, 16, 3331, 67, 8362, 882, 1285, 9099, 67, 28899, 55, 1769, 202, 202, 1484, 2556, 18, 542, 1868, 12, 8001, 67, 5572, 67, 42, 11846, 1360, 16, 3331, 67, 8001, 67, 5572, 67, 42, 11846, 1360, 1769, 202, 202, 1484, 2556, 18, 542, 1868, 12, 43, 1821, 1260, 67, 28899, 67, 8362, 882, 1285, 13269, 16, 3331, 67, 43, 1821, 1260, 67, 28899, 67, 8362, 882, 1285, 13269, 1769, 202, 202, 1484, 2556, 18, 542, 1868, 12, 28899, 67, 10023, 16, 3331, 67, 28899, 67, 10023, 1769, 202, 202, 1484, 2556, 18, 542, 1868, 12, 5572, 67, 10989, 16, 780, 5072, 18, 345, 780, 12, 5280, 67, 5572, 67, 10989, 10019, 202, 202, 1484, 2556, 18, 542, 1868, 12, 28813, 67, 10989, 16, 780, 5072, 18, 345, 780, 12, 5280, 67, 28813, 67, 10989, 10019, 202, 202, 1484, 2556, 18, 542, 1868, 12, 5804, 67, 10989, 16, 780, 5072, 18, 345, 780, 12, 5280, 67, 5804, 67, 10989, 10019, 202, 202, 1484, 2556, 18, 542, 1868, 12, 12200, 67, 10989, 16, 780, 5072, 18, 345, 780, 12, 5280, 67, 12200, 67, 10989, 10019, 202, 202, 1484, 2556, 18, 542, 1868, 12, 44, 61, 3194, 10554, 67, 10989, 16, 514, 5072, 18, 345, 780, 12, 5280, 67, 44, 61, 3194, 10554, 67, 10989, 10019, 202, 202, 1484, 2556, 18, 542, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 760, 918, 4046, 1868, 12377, 12, 12377, 15503, 13, 288, 202, 202, 1484, 2556, 18, 542, 1868, 12, 8362, 882, 1285, 9099, 67, 28899, 55, 16, 3331, 67, 8362, 882, 1285, 9099, 67, 28899, 55, 1769, 202, 202, 1484, 2556, 18, 542, 1868, 12, 8001, 67, 5572, 67, 42, 11846, 1360, 16, 3331, 67, 8001, 67, 5572, 67, 42, 11846, 1360, 1769, 202, 202, 1484, 2556, 18, 542, 1868, 12, 43, 1821, 1260, 67, 28899, 67, 8362, 882, 1285, 13269, 16, 3331, 67, 43, 1821, 1260, 67, 28899, 67, 8362, 882, 1285, 13269, 1769, 202, 202, 1484, 2556, 18, 542, 1868, 12, 28899, 67, 10023, 16, 3331, 67, 28899, 67, 10023, 1769, 202, 202, 1484, 2556, 2 ]
if (mealInterval != null) { dailyBalance.setLunchBreak(mealInterval.getDuration()); firstWorkPeriod = timeline.calculateDurationAllIntervalsByAttributesToTime(mealInterval.getStartTime(), DomainConstants.WORKED_ATTRIBUTES); System.out.println("primeiro periodo de trabalho:" + firstWorkPeriod.toPeriod().toString()); if (((WorkPeriod)wsType.getNormalWorkPeriod()).isSecondWorkPeriodDefined()) { lastWorkPeriod = timeline.calculateDurationAllIntervalsByAttributesFromTime(mealInterval.getEndTime(), DomainConstants.WORKED_ATTRIBUTES); System.out.println("segundo periodo de trabalho:" + lastWorkPeriod.toPeriod().toString());
if (wsType.definedMeal()) { mealInterval = timeline.calculateMealBreakInterval(wsType.getMeal().getMealBreak()); System.out.println("intervalo refeicao: " + mealInterval); if (mealInterval != null) { dailyBalance.setLunchBreak(mealInterval.getDuration()); firstWorkPeriod = timeline.calculateDurationAllIntervalsByAttributesToTime( new TimePoint(mealInterval.getStartTime(), false, null), DomainConstants.WORKED_ATTRIBUTES); System.out.println("primeiro periodo de trabalho:" + firstWorkPeriod.toPeriod().toString()); if (((WorkPeriod) wsType.getNormalWorkPeriod()).isSecondWorkPeriodDefined()) { lastWorkPeriod = timeline.calculateDurationAllIntervalsByAttributesFromTime( new TimePoint(mealInterval.getEndTime(), false, null), DomainConstants.WORKED_ATTRIBUTES); System.out.println("segundo periodo de trabalho:" + lastWorkPeriod.toPeriod().toString()); } dailyBalance.setWorkedOnNormalWorkPeriod(firstWorkPeriod.plus(lastWorkPeriod)); System.out.println("saldo antes de descontar a meal: " + dailyBalance.getNormalWorkPeriodBalance().toString()); wsType.checkMealDurationAccordingToRules(dailyBalance); } else { System.out.println("funcionario nao foi almocar"); Duration workPeriod = timeline .calculateDurationAllIntervalsByAttributes(DomainConstants.WORKED_ATTRIBUTES); if (firstClockingDate != null && wsType.getMeal().getMealBreak().contains(firstClockingDate.toTimeOfDay(), false)) { System.out.println("funcionario entrou no intervalo de almoco"); TimeOfDay lunchEnd = wsType.getMeal().getLunchEnd(); TimeInterval lunchTime = new TimeInterval(wsType.getMeal().getBeginMealBreak(), lunchEnd, false); if (lunchTime.contains(firstClockingDate.toTimeOfDay(), false)) { workPeriod = workPeriod.minus(new TimeInterval(firstClockingDate.toTimeOfDay(), lunchEnd, false).getDurationMillis());
public DailyBalance calculateWorkingPeriods(YearMonthDay day, List<AssiduousnessRecord> clockingList, Timeline timeline) { DailyBalance dailyBalance = new DailyBalance(day, this); Duration firstWorkPeriod = Duration.ZERO; Duration lastWorkPeriod = Duration.ZERO; TimeInterval mealInterval = null; WorkScheduleType wsType = getWorkScheduleType(); if (wsType.definedMeal()) { // o horario tem um intervalo de refeicao definido mealInterval = timeline.calculateMealBreakInterval(wsType.getMeal().getMealBreak()); // calcular o intervalo de refeicao dentro do periodo de refeicao definido System.out.println("intervalo refeicao: " + mealInterval); if (mealInterval != null) { // funcionario fez intervalo para almoco => ha 2 periodos de trabalho dailyBalance.setLunchBreak(mealInterval.getDuration()); // actualiza almoco no dailyBalance // calcula primeiro periodo de trabalho do horario normal: deste a entrada ate' 'a saida para o almoco firstWorkPeriod = timeline.calculateDurationAllIntervalsByAttributesToTime(mealInterval.getStartTime(), DomainConstants.WORKED_ATTRIBUTES); System.out.println("primeiro periodo de trabalho:" + firstWorkPeriod.toPeriod().toString()); // calcula segundo periodo de trabalho do horario normal: desde entrada depois do almoco ate' 'a saida if (((WorkPeriod)wsType.getNormalWorkPeriod()).isSecondWorkPeriodDefined()) { lastWorkPeriod = timeline.calculateDurationAllIntervalsByAttributesFromTime(mealInterval.getEndTime(), DomainConstants.WORKED_ATTRIBUTES);// System.out.println("segundo periodo de trabalho: " +lastWorkPeriod.toDuration().toPeriod().toString());// dailyBalance.setNormalWorkPeriod2Balance(lastWorkPeriod.minus(((NormalWorkPeriod)wsType.getNormalWorkPeriod()).getNormalWorkPeriod2Duration()));// System.out.println("balance 2o periodo: " + dailyBalance.getNormalWorkPeriod2Balance().toPeriod().toString()); System.out.println("segundo periodo de trabalho:" + lastWorkPeriod.toPeriod().toString()); }// dailyBalance.setWorkedOnNormalWorkPeriod(wsType.checkNormalWorkPeriodAccordingToRules(firstWorkPeriod).plus(lastWorkPeriod)); dailyBalance.setWorkedOnNormalWorkPeriod(firstWorkPeriod.plus(lastWorkPeriod)); } else { // o funcionario nao foi almocar so ha 1 periodo de trabalho System.out.println("funcionario nao foi almocar"); Duration workPeriod = timeline.calculateDurationAllIntervalsByAttributes(DomainConstants.WORKED_ATTRIBUTES);// dailyBalance.setNormalWorkPeriod1Balance(worked.minus) AssiduousnessRecord firstClocking = clockingList.get(0); if (wsType.getMeal().getMealBreak().contains(firstClocking.getDate().toTimeOfDay(), false)) { // funcionario entrou no intervalo de almoco System.out.println("funcionario entrou no intervalo de almoco"); // considera-se o periodo desde o inicio do intervalo de almoco + desconto obrigatorio de almoco // se funcionario entrar nesse periodo de tempo e'-lhe descontado desde a entrada ate' (inicio do intervalo de almoco + desconto obrigatorio de almoco) DateTime endLunchTime = wsType.getMeal().getLunchEnd().toDateTime(firstClocking.getDate()); if (firstClocking.getDate().isBefore(endLunchTime)) { Duration enteredDuringLunchDiscount = (new Interval(firstClocking.getDate(), endLunchTime)).toDuration(); workPeriod = workPeriod.minus(enteredDuringLunchDiscount); } } dailyBalance.setWorkedOnNormalWorkPeriod(workPeriod); System.out.println("nwp: " + dailyBalance.getWorkedOnNormalWorkPeriod().toPeriod().toString()); } } else { // meal nao esta definida - so ha 1 periodo de trabalho Duration worked = timeline.calculateDurationAllIntervalsByAttributes(DomainConstants.WORKED_ATTRIBUTES); dailyBalance.setWorkedOnNormalWorkPeriod(worked); } System.out.println("total worked -> " +dailyBalance.getWorkedOnNormalWorkPeriod().toPeriod().toString()); System.out.println("devia ter trabalhado ->" + ((WorkPeriod)wsType.getNormalWorkPeriod()).getWorkPeriodDuration().toPeriod().toString()); System.out.println("saldo ->" + dailyBalance.getWorkedOnNormalWorkPeriod().minus(wsType.getNormalWorkPeriod().getWorkPeriodDuration()).toPeriod().toString()); // Fixed Periods if defined wsType.calculateFixedPeriodDuration(dailyBalance, timeline); if (wsType.definedMeal()) { System.out.println("saldo antes de descontar a meal: " + dailyBalance.getNormalWorkPeriodBalance().toPeriod().toString()); wsType.checkMealDurationAccordingToRules(dailyBalance); } return dailyBalance; }
2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/2148a82d40be3ca9c714470d990c2702c189337a/WorkSchedule.java/buggy/src/net/sourceforge/fenixedu/domain/assiduousness/WorkSchedule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 463, 12857, 13937, 4604, 14836, 30807, 12, 5593, 5445, 4245, 2548, 16, 987, 32, 2610, 350, 89, 1481, 4496, 2115, 34, 7268, 310, 682, 16, 12652, 3027, 18316, 13, 288, 5411, 463, 12857, 13937, 18872, 13937, 273, 394, 463, 12857, 13937, 12, 2881, 16, 333, 1769, 5411, 4822, 1122, 2421, 5027, 273, 4822, 18, 24968, 31, 5411, 4822, 1142, 2421, 5027, 273, 4822, 18, 24968, 31, 5411, 2647, 4006, 1791, 287, 4006, 273, 446, 31, 5411, 4147, 6061, 559, 4945, 559, 273, 29026, 6061, 559, 5621, 13491, 309, 261, 4749, 559, 18, 2178, 4667, 287, 10756, 288, 368, 320, 29404, 25124, 1022, 9570, 3673, 83, 443, 1278, 73, 335, 6033, 2217, 22954, 7734, 1791, 287, 4006, 273, 18316, 18, 11162, 4667, 287, 7634, 4006, 12, 4749, 559, 18, 588, 4667, 287, 7675, 588, 4667, 287, 7634, 10663, 368, 3026, 297, 320, 3673, 83, 443, 1278, 73, 335, 6033, 302, 319, 303, 741, 3879, 83, 443, 1278, 73, 335, 6033, 2217, 22954, 7734, 2332, 18, 659, 18, 8222, 2932, 6624, 83, 1278, 73, 335, 6033, 30, 315, 397, 1791, 287, 4006, 1769, 7734, 309, 261, 3501, 287, 4006, 480, 446, 13, 288, 368, 1326, 285, 25124, 1656, 94, 3673, 83, 12602, 524, 81, 29571, 516, 10677, 576, 3879, 538, 443, 1284, 70, 287, 15008, 10792, 18872, 13937, 18, 542, 48, 4384, 7634, 12, 3501, 287, 4006, 18, 588, 5326, 10663, 368, 3214, 452, 69, 524, 81, 29571, 1158, 18872, 13937, 10792, 368, 3026, 69, 17014, 11373, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 463, 12857, 13937, 4604, 14836, 30807, 12, 5593, 5445, 4245, 2548, 16, 987, 32, 2610, 350, 89, 1481, 4496, 2115, 34, 7268, 310, 682, 16, 12652, 3027, 18316, 13, 288, 5411, 463, 12857, 13937, 18872, 13937, 273, 394, 463, 12857, 13937, 12, 2881, 16, 333, 1769, 5411, 4822, 1122, 2421, 5027, 273, 4822, 18, 24968, 31, 5411, 4822, 1142, 2421, 5027, 273, 4822, 18, 24968, 31, 5411, 2647, 4006, 1791, 287, 4006, 273, 446, 31, 5411, 4147, 6061, 559, 4945, 559, 273, 29026, 6061, 559, 5621, 13491, 309, 261, 4749, 559, 18, 2178, 4667, 287, 10756, 288, 368, 320, 29404, 25124, 1022, 9570, 3673, 83, 443, 1278, 73, 335, 6033, 2217, 22954, 7734, 1791, 287, 4006, 273, 2 ]
Enumeration enumeration = request.getParameterNames(); while (enumeration.hasMoreElements()) { String name = (String)enumeration.nextElement(); if (name.startsWith(WebRequestCodingStrategy.NAME_SPACE)) { return true; } }
private boolean isWicketRequest(HttpServletRequest request) { String fullRootPath = getRootPath(request); String url = request.getRequestURI(); // Homepage if (Strings.isEmpty(request.getQueryString()) && url.equals(fullRootPath)) { return true; } // SharedResources String tmp=Strings.join("/", fullRootPath, RESOURCES_PATH_PREFIX); if (url.startsWith(Strings.join("/", fullRootPath, RESOURCES_PATH_PREFIX))) { return true; } // Url with wicket namespace in one of the params. Enumeration enumeration = request.getParameterNames(); while (enumeration.hasMoreElements()) { String name = (String)enumeration.nextElement(); if (name.startsWith(WebRequestCodingStrategy.NAME_SPACE)) { return true; } } // Mount url String path = url.substring(fullRootPath.length()); return webApplication.getRequestCycleProcessor().getRequestCodingStrategy() .urlCodingStrategyForPath(path) != null; }
46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/d9968907909564821c5daccb6f9339f06d369f69/WicketFilter.java/clean/wicket/src/java/wicket/protocol/http/WicketFilter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 1250, 353, 59, 29378, 691, 12, 2940, 18572, 590, 13, 202, 95, 202, 202, 780, 1983, 21302, 273, 18863, 12, 2293, 1769, 202, 202, 780, 880, 273, 590, 18, 588, 691, 3098, 5621, 202, 202, 759, 670, 362, 17600, 202, 202, 430, 261, 7957, 18, 291, 1921, 12, 2293, 18, 588, 15276, 10756, 597, 880, 18, 14963, 12, 2854, 21302, 3719, 202, 202, 95, 1082, 202, 2463, 638, 31, 202, 202, 97, 202, 202, 759, 10314, 3805, 202, 202, 780, 1853, 33, 7957, 18, 5701, 2932, 19, 3113, 1983, 21302, 16, 12653, 55, 67, 4211, 67, 6307, 1769, 202, 202, 430, 261, 718, 18, 17514, 1190, 12, 7957, 18, 5701, 2932, 19, 3113, 1983, 21302, 16, 12653, 55, 67, 4211, 67, 6307, 20349, 202, 202, 95, 1082, 202, 2463, 638, 31, 202, 202, 97, 202, 202, 759, 6816, 598, 341, 29378, 1981, 316, 1245, 434, 326, 859, 18, 202, 202, 21847, 16836, 273, 590, 18, 588, 1662, 1557, 5621, 202, 202, 17523, 261, 7924, 7067, 18, 5332, 7417, 3471, 10756, 202, 202, 95, 1082, 202, 780, 508, 273, 261, 780, 13, 7924, 7067, 18, 4285, 1046, 5621, 1082, 202, 430, 261, 529, 18, 17514, 1190, 12, 4079, 691, 30315, 4525, 18, 1985, 67, 6616, 3719, 1082, 202, 95, 9506, 202, 2463, 638, 31, 1082, 202, 97, 202, 202, 97, 202, 202, 759, 13076, 880, 202, 202, 780, 589, 273, 880, 18, 28023, 12, 2854, 21302, 18, 2469, 10663, 202, 202, 2463, 3311, 3208, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 353, 59, 29378, 691, 12, 2940, 18572, 590, 13, 202, 95, 202, 202, 780, 1983, 21302, 273, 18863, 12, 2293, 1769, 202, 202, 780, 880, 273, 590, 18, 588, 691, 3098, 5621, 202, 202, 759, 670, 362, 17600, 202, 202, 430, 261, 7957, 18, 291, 1921, 12, 2293, 18, 588, 15276, 10756, 597, 880, 18, 14963, 12, 2854, 21302, 3719, 202, 202, 95, 1082, 202, 2463, 638, 31, 202, 202, 97, 202, 202, 759, 10314, 3805, 202, 202, 780, 1853, 33, 7957, 18, 5701, 2932, 19, 3113, 1983, 21302, 16, 12653, 55, 67, 4211, 67, 6307, 1769, 202, 202, 430, 261, 718, 18, 17514, 1190, 12, 7957, 18, 5701, 2932, 19, 3113, 1983, 21302, 16, 2 ]
if(emailNotify.equalsIgnoreCase("none")) { priority = NotificationService.NOTI_NONE; } else if(emailNotify.equalsIgnoreCase("high")) { priority = NotificationService.NOTI_REQUIRED; } else if(emailNotify.equalsIgnoreCase("low")) { priority = NotificationService.NOTI_OPTIONAL; } else { priority = NotificationService.NOTI_NONE; }
priority = NotificationService.NOTI_NONE;
public void deletePostedSyllabus(SyllabusData data) { BaseResourceEdit bre = new BaseResourceEdit(data.getSyllabusId().toString(), data); addLiveSyllabusProperties(bre); bre.setEvent(EVENT_SYLLABUS_DELETE_POST); String emailNotify = data.getEmailNotification(); int priority; if(emailNotify.equalsIgnoreCase("none")) { priority = NotificationService.NOTI_NONE; } else if(emailNotify.equalsIgnoreCase("high")) { priority = NotificationService.NOTI_REQUIRED; } else if(emailNotify.equalsIgnoreCase("low")) { priority = NotificationService.NOTI_OPTIONAL; } else { priority = NotificationService.NOTI_NONE; } Event event = EventTrackingService.newEvent(bre.getEvent(), bre.getReference(), true, priority); EventTrackingService.post(event); }
2021 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2021/616072acefeaa117358f0844bcabc8d5f003490c/SyllabusServiceImpl.java/buggy/syllabus/syllabus-impl/src/java/org/sakaiproject/component/app/syllabus/SyllabusServiceImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1430, 3349, 329, 10876, 2906, 378, 407, 12, 10876, 2906, 378, 407, 751, 501, 13, 202, 95, 565, 3360, 1420, 4666, 324, 266, 273, 394, 3360, 1420, 4666, 12, 892, 18, 588, 10876, 2906, 378, 407, 548, 7675, 10492, 9334, 501, 1769, 3639, 527, 12328, 10876, 2906, 378, 407, 2297, 12, 6073, 1769, 3639, 324, 266, 18, 542, 1133, 12, 10454, 67, 7474, 4503, 2090, 3378, 67, 6460, 67, 3798, 1769, 3639, 514, 2699, 9168, 273, 501, 18, 588, 4134, 4386, 5621, 3639, 509, 4394, 31, 3639, 309, 12, 3652, 9168, 18, 14963, 5556, 2932, 6102, 6, 3719, 565, 288, 1377, 4394, 273, 8050, 1179, 18, 4400, 45, 67, 9826, 31, 565, 289, 565, 469, 309, 12, 3652, 9168, 18, 14963, 5556, 2932, 8766, 6, 3719, 565, 288, 1377, 4394, 273, 8050, 1179, 18, 4400, 45, 67, 14977, 31, 565, 289, 565, 469, 309, 12, 3652, 9168, 18, 14963, 5556, 2932, 821, 6, 3719, 565, 288, 1377, 4394, 273, 8050, 1179, 18, 4400, 45, 67, 14165, 31, 565, 289, 565, 469, 565, 288, 1377, 4394, 273, 8050, 1179, 18, 4400, 45, 67, 9826, 31, 565, 289, 202, 202, 1133, 871, 273, 1082, 282, 202, 1133, 12642, 1179, 18, 2704, 1133, 12, 6073, 18, 588, 1133, 9334, 324, 266, 18, 588, 2404, 9334, 4697, 565, 638, 16, 4394, 1769, 9506, 202, 1133, 12642, 1179, 18, 2767, 12, 2575, 1769, 202, 97, 2, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1430, 3349, 329, 10876, 2906, 378, 407, 12, 10876, 2906, 378, 407, 751, 501, 13, 202, 95, 565, 3360, 1420, 4666, 324, 266, 273, 394, 3360, 1420, 4666, 12, 892, 18, 588, 10876, 2906, 378, 407, 548, 7675, 10492, 9334, 501, 1769, 3639, 527, 12328, 10876, 2906, 378, 407, 2297, 12, 6073, 1769, 3639, 324, 266, 18, 542, 1133, 12, 10454, 67, 7474, 4503, 2090, 3378, 67, 6460, 67, 3798, 1769, 3639, 514, 2699, 9168, 273, 501, 18, 588, 4134, 4386, 5621, 3639, 509, 4394, 31, 3639, 309, 12, 3652, 9168, 18, 14963, 5556, 2932, 6102, 6, 3719, 565, 288, 1377, 4394, 273, 8050, 1179, 18, 4400, 45, 67, 9826, 31, 565, 289, 565, 469, 2 ]
titleImage.setBackground(bg);
titleImage.setBackground(background);
private Composite createTitleArea(Composite parent) { // Get the background color for the title area Display display = parent.getDisplay(); Color bg = JFaceColors.getBannerBackground(display); // Create the title area which will contain // a title, message, and image. Composite titleArea = new Composite(parent, SWT.NONE); GridLayout layout = new GridLayout(); layout.marginHeight = 0; layout.marginWidth = 0; layout.verticalSpacing = 0; layout.horizontalSpacing = 0; layout.numColumns = 2; titleArea.setLayout(layout); titleArea.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); titleArea.setBackground(bg); // Message label final CLabel messageLabel = new CLabel(titleArea, SWT.LEFT); messageLabel.setBackground(bg); messageLabel.setText(getBannerTitle()); messageLabel.setFont(JFaceResources.getHeaderFont()); final IPropertyChangeListener fontListener = new IPropertyChangeListener() { public void propertyChange(PropertyChangeEvent event) { if(JFaceResources.HEADER_FONT.equals(event.getProperty())) { messageLabel.setFont(JFaceResources.getHeaderFont()); } } }; messageLabel.addDisposeListener(new DisposeListener() { public void widgetDisposed(DisposeEvent event) { JFaceResources.getFontRegistry().removeListener(fontListener); } }); JFaceResources.getFontRegistry().addListener(fontListener); GridData gd = new GridData(GridData.FILL_BOTH); messageLabel.setLayoutData(gd); // Title image Label titleImage = new Label(titleArea, SWT.LEFT); titleImage.setBackground(bg); titleImage.setImage(WorkbenchImages.getImage(IWorkbenchGraphicConstants.IMG_OBJS_WELCOME_BANNER)); gd = new GridData(); gd.horizontalAlignment = gd.END; titleImage.setLayoutData(gd); return titleArea;}
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/d9e53d405d102e67c4c5d467d554a378e07f112d/WelcomeEditor.java/buggy/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/dialogs/WelcomeEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 14728, 752, 4247, 5484, 12, 9400, 982, 13, 288, 202, 759, 968, 326, 5412, 2036, 364, 326, 2077, 5091, 202, 4236, 2562, 273, 982, 18, 588, 4236, 5621, 202, 2957, 7611, 273, 804, 11824, 12570, 18, 588, 27398, 8199, 12, 5417, 1769, 202, 759, 1788, 326, 2077, 5091, 1492, 903, 912, 202, 759, 279, 2077, 16, 883, 16, 471, 1316, 18, 202, 9400, 2077, 5484, 273, 394, 14728, 12, 2938, 16, 348, 8588, 18, 9826, 1769, 202, 6313, 3744, 3511, 273, 394, 7145, 3744, 5621, 202, 6741, 18, 10107, 2686, 273, 374, 31, 202, 6741, 18, 10107, 2384, 273, 374, 31, 202, 6741, 18, 17824, 18006, 273, 374, 31, 202, 6741, 18, 18396, 18006, 273, 374, 31, 202, 6741, 18, 2107, 3380, 273, 576, 31, 202, 2649, 5484, 18, 542, 3744, 12, 6741, 1769, 202, 2649, 5484, 18, 542, 3744, 751, 12, 2704, 7145, 751, 12, 6313, 751, 18, 29818, 67, 44, 20344, 10019, 202, 2649, 5484, 18, 542, 8199, 12, 12370, 1769, 202, 759, 2350, 1433, 202, 6385, 385, 2224, 883, 2224, 273, 394, 385, 2224, 12, 2649, 5484, 16, 348, 8588, 18, 10066, 1769, 202, 2150, 2224, 18, 542, 8199, 12, 12370, 1769, 202, 2150, 2224, 18, 542, 1528, 12, 588, 27398, 4247, 10663, 202, 2150, 2224, 18, 542, 5711, 12, 46, 11824, 3805, 18, 588, 1864, 5711, 10663, 202, 202, 6385, 467, 1396, 15744, 3512, 2223, 273, 394, 467, 1396, 15744, 1435, 288, 202, 202, 482, 918, 1272, 3043, 12, 1396, 20930, 871, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 14728, 752, 4247, 5484, 12, 9400, 982, 13, 288, 202, 759, 968, 326, 5412, 2036, 364, 326, 2077, 5091, 202, 4236, 2562, 273, 982, 18, 588, 4236, 5621, 202, 2957, 7611, 273, 804, 11824, 12570, 18, 588, 27398, 8199, 12, 5417, 1769, 202, 759, 1788, 326, 2077, 5091, 1492, 903, 912, 202, 759, 279, 2077, 16, 883, 16, 471, 1316, 18, 202, 9400, 2077, 5484, 273, 394, 14728, 12, 2938, 16, 348, 8588, 18, 9826, 1769, 202, 6313, 3744, 3511, 273, 394, 7145, 3744, 5621, 202, 6741, 18, 10107, 2686, 273, 374, 31, 202, 6741, 18, 10107, 2384, 273, 374, 31, 202, 6741, 18, 17824, 18006, 273, 374, 31, 202, 6741, 18, 18396, 18006, 273, 374, 31, 202, 2 ]
return statements == null || statements.length == 0;
return statements.length == 0;
private boolean catchBlockIsEmpty(PsiCodeBlock block) { if (m_includeComments) { final PsiElement[] children = block.getChildren(); for(final PsiElement child : children){ if(child instanceof PsiComment || child instanceof PsiStatement){ return false; } } return true; } else { final PsiStatement[] statements = block.getStatements(); return statements == null || statements.length == 0; } }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/fc3fc1341db4aa6d26930bf45116ec44c28fc569/EmptyCatchBlockInspection.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/errorhandling/EmptyCatchBlockInspection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 3238, 1250, 1044, 1768, 2520, 1921, 12, 52, 7722, 1085, 1768, 1203, 13, 288, 5411, 309, 261, 81, 67, 6702, 9051, 13, 288, 7734, 727, 453, 7722, 1046, 8526, 2325, 273, 1203, 18, 588, 4212, 5621, 7734, 364, 12, 6385, 453, 7722, 1046, 1151, 294, 2325, 15329, 10792, 309, 12, 3624, 1276, 453, 7722, 4469, 747, 18701, 1151, 1276, 453, 7722, 3406, 15329, 13491, 327, 629, 31, 10792, 289, 7734, 289, 7734, 327, 638, 31, 5411, 289, 469, 288, 7734, 727, 453, 7722, 3406, 8526, 6317, 273, 1203, 18, 588, 14663, 5621, 7734, 327, 6317, 18, 2469, 422, 374, 31, 5411, 289, 3639, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 3238, 1250, 1044, 1768, 2520, 1921, 12, 52, 7722, 1085, 1768, 1203, 13, 288, 5411, 309, 261, 81, 67, 6702, 9051, 13, 288, 7734, 727, 453, 7722, 1046, 8526, 2325, 273, 1203, 18, 588, 4212, 5621, 7734, 364, 12, 6385, 453, 7722, 1046, 1151, 294, 2325, 15329, 10792, 309, 12, 3624, 1276, 453, 7722, 4469, 747, 18701, 1151, 1276, 453, 7722, 3406, 15329, 13491, 327, 629, 31, 10792, 289, 7734, 289, 7734, 327, 638, 31, 5411, 289, 469, 288, 7734, 727, 453, 7722, 3406, 8526, 6317, 273, 1203, 18, 588, 14663, 5621, 7734, 327, 6317, 18, 2469, 422, 374, 31, 5411, 289, 3639, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
private void setupInternalFrame() {
protected void setupInternalFrame() {
private void setupInternalFrame() { setTitle(file.getAbsolutePath()); Container contentPane = getContentPane(); contentPane.setLayout(new BorderLayout()); browserComponent = new BrowserComponent(this); contentPane.add(browserComponent, BorderLayout.CENTER); }
8090 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8090/cc61c4e3b23c036049b83883b5319c075bb8dfe9/BrowserInternalFrame.java/buggy/jclasslib/src/org/gjt/jclasslib/browser/BrowserInternalFrame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 3875, 3061, 3219, 1435, 288, 3639, 14109, 12, 768, 18, 588, 10368, 743, 10663, 3639, 4039, 913, 8485, 273, 5154, 8485, 5621, 3639, 913, 8485, 18, 542, 3744, 12, 2704, 30814, 10663, 3639, 4748, 1841, 273, 394, 15408, 1841, 12, 2211, 1769, 3639, 913, 8485, 18, 1289, 12, 11213, 1841, 16, 30814, 18, 19835, 1769, 5411, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4750, 918, 3875, 3061, 3219, 1435, 288, 3639, 14109, 12, 768, 18, 588, 10368, 743, 10663, 3639, 4039, 913, 8485, 273, 5154, 8485, 5621, 3639, 913, 8485, 18, 542, 3744, 12, 2704, 30814, 10663, 3639, 4748, 1841, 273, 394, 15408, 1841, 12, 2211, 1769, 3639, 913, 8485, 18, 1289, 12, 11213, 1841, 16, 30814, 18, 19835, 1769, 5411, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
for (Iterator itr=removed.iterator(); itr.hasNext();)
} for (Iterator itr=removed.iterator(); itr.hasNext();) {
private void trackChildren(Object parentElement, Object[] children) { Object key = parentElement==null?JavaBeanTree.this : parentElement; TreeNode node = (TreeNode) nodes.get(key); Set removed = new HashSet(node.getChildren()); List newList = children==null? new ArrayList(): Arrays.asList(children); if (children!=null) for (int i=0; i<children.length; i++) { if (!removed.remove(children[i])) { // new child TreeNode child = new TreeNode(parentElement); nodes.put(children[i], child); } } for (Iterator itr=removed.iterator(); itr.hasNext();) nodes.remove(itr.next()); node.setChildren(newList); }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/9d125503204eb791fd5d7ba10d10960ac0bbffba/JavaBeanTree.java/clean/bundles/org.eclipse.jface.databinding/src/org/eclipse/jface/internal/databinding/beans/JavaBeanTree.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 3298, 4212, 12, 921, 30363, 16, 1033, 8526, 2325, 13, 288, 202, 202, 921, 498, 273, 30363, 631, 2011, 35, 5852, 3381, 2471, 18, 2211, 294, 30363, 31, 202, 202, 12513, 756, 273, 261, 12513, 13, 2199, 18, 588, 12, 856, 1769, 202, 202, 694, 3723, 273, 394, 6847, 12, 2159, 18, 588, 4212, 10663, 202, 202, 682, 23605, 273, 2325, 631, 2011, 35, 394, 2407, 13332, 5647, 18, 345, 682, 12, 5906, 1769, 202, 202, 430, 261, 5906, 5, 33, 2011, 13, 1082, 202, 1884, 261, 474, 277, 33, 20, 31, 277, 32, 5906, 18, 2469, 31, 277, 27245, 288, 9506, 202, 430, 16051, 14923, 18, 4479, 12, 5906, 63, 77, 22643, 288, 6862, 202, 759, 394, 1151, 6862, 202, 12513, 1151, 273, 394, 20270, 12, 2938, 1046, 1769, 6862, 202, 4690, 18, 458, 12, 5906, 63, 77, 6487, 1151, 1769, 9506, 202, 97, 6862, 1082, 202, 97, 202, 202, 1884, 261, 3198, 11176, 33, 14923, 18, 9838, 5621, 11176, 18, 5332, 2134, 5621, 13, 1082, 202, 4690, 18, 4479, 12, 305, 86, 18, 4285, 10663, 202, 202, 2159, 18, 542, 4212, 12, 2704, 682, 1769, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 3298, 4212, 12, 921, 30363, 16, 1033, 8526, 2325, 13, 288, 202, 202, 921, 498, 273, 30363, 631, 2011, 35, 5852, 3381, 2471, 18, 2211, 294, 30363, 31, 202, 202, 12513, 756, 273, 261, 12513, 13, 2199, 18, 588, 12, 856, 1769, 202, 202, 694, 3723, 273, 394, 6847, 12, 2159, 18, 588, 4212, 10663, 202, 202, 682, 23605, 273, 2325, 631, 2011, 35, 394, 2407, 13332, 5647, 18, 345, 682, 12, 5906, 1769, 202, 202, 430, 261, 5906, 5, 33, 2011, 13, 1082, 202, 1884, 261, 474, 277, 33, 20, 31, 277, 32, 5906, 18, 2469, 31, 277, 27245, 288, 9506, 202, 430, 16051, 14923, 18, 4479, 12, 5906, 63, 77, 22643, 288, 6862, 2 ]
public DirContext getConnection() { DirContext conn = null; try { conn = new InitialDirContext(this.env); } catch ( Exception e ) { log.error( "Error creating LDAP Connection to " + this.ldapName, e); } return conn;
public DirContext getConnection() throws NamingException { return new InitialDirContext(this.env);
public DirContext getConnection() { DirContext conn = null; try { conn = new InitialDirContext(this.env); } catch ( Exception e ) { log.error( "Error creating LDAP Connection to " + this.ldapName, e); } return conn; }
1895 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1895/d588c5dd27b252b1e3301d0f3ae7dc2d8bf1847a/LdapServerImpl.java/clean/source/org/jasig/portal/ldap/LdapServerImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 8446, 1042, 6742, 1435, 288, 3639, 8446, 1042, 1487, 273, 446, 31, 3639, 775, 288, 5411, 1487, 273, 394, 10188, 1621, 1042, 12, 2211, 18, 3074, 1769, 3639, 289, 3639, 1044, 261, 1185, 425, 262, 288, 5411, 613, 18, 1636, 12, 315, 668, 4979, 11916, 4050, 358, 315, 397, 333, 18, 14394, 461, 16, 425, 1769, 3639, 289, 540, 327, 1487, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 8446, 1042, 6742, 1435, 288, 3639, 8446, 1042, 1487, 273, 446, 31, 3639, 775, 288, 5411, 1487, 273, 394, 10188, 1621, 1042, 12, 2211, 18, 3074, 1769, 3639, 289, 3639, 1044, 261, 1185, 425, 262, 288, 5411, 613, 18, 1636, 12, 315, 668, 4979, 11916, 4050, 358, 315, 397, 333, 18, 14394, 461, 16, 425, 1769, 3639, 289, 540, 327, 1487, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public synchronized void setInstances(Instances newins) {
public void setInstances(Instances newins) {
public synchronized void setInstances(Instances newins) { attribIndex = 0; m_data = newins; as=null; if(m_colorAttrib!=null) { m_colorAttrib.removeAllItems(); for(int i=0; i<m_data.numAttributes(); i++) { m_colorAttrib.addItem(new String("Colour: "+m_data.attribute(i).name()+" "+ ((m_data.attribute(i).isNominal()) ? "(Nom)":"(Num)"))); } m_colorAttrib.setSelectedIndex(m_data.numAttributes()-1); //if (m_data.classIndex() >= 0) { // m_colorAttrib.setSelectedIndex(m_data.classIndex()); //} } classIndex = m_data.numAttributes()-1; this.repaint(); }
4179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4179/431efb6fbaab37f3ca498572787043b42660001d/AttributeVisualizationPanel.java/clean/trunk/weka/gui/AttributeVisualizationPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 444, 5361, 12, 5361, 394, 2679, 13, 288, 565, 5885, 1016, 273, 374, 31, 565, 312, 67, 892, 273, 394, 2679, 31, 565, 487, 33, 2011, 31, 565, 309, 12, 81, 67, 3266, 12399, 5, 33, 2011, 13, 288, 202, 81, 67, 3266, 12399, 18, 4479, 1595, 3126, 5621, 202, 1884, 12, 474, 277, 33, 20, 31, 277, 32, 81, 67, 892, 18, 2107, 2498, 5621, 277, 27245, 288, 202, 565, 312, 67, 3266, 12399, 18, 1289, 1180, 12, 2704, 514, 2932, 26404, 30, 13773, 81, 67, 892, 18, 4589, 12, 77, 2934, 529, 1435, 9078, 13773, 25083, 377, 14015, 81, 67, 892, 18, 4589, 12, 77, 2934, 291, 26685, 1490, 10756, 692, 7751, 26685, 2225, 2773, 12, 2578, 2225, 3719, 1769, 202, 97, 202, 81, 67, 3266, 12399, 18, 542, 7416, 1016, 12, 81, 67, 892, 18, 2107, 2498, 1435, 17, 21, 1769, 282, 202, 759, 430, 261, 81, 67, 892, 18, 1106, 1016, 1435, 1545, 374, 13, 288, 202, 759, 565, 312, 67, 3266, 12399, 18, 542, 7416, 1016, 12, 81, 67, 892, 18, 1106, 1016, 10663, 202, 759, 97, 225, 289, 565, 667, 1016, 273, 312, 67, 892, 18, 2107, 2498, 1435, 17, 21, 31, 3639, 333, 18, 14462, 1598, 5621, 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, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 444, 5361, 12, 5361, 394, 2679, 13, 288, 565, 5885, 1016, 273, 374, 31, 565, 312, 67, 892, 273, 394, 2679, 31, 565, 487, 33, 2011, 31, 565, 309, 12, 81, 67, 3266, 12399, 5, 33, 2011, 13, 288, 202, 81, 67, 3266, 12399, 18, 4479, 1595, 3126, 5621, 202, 1884, 12, 474, 277, 33, 20, 31, 277, 32, 81, 67, 892, 18, 2107, 2498, 5621, 277, 27245, 288, 202, 565, 312, 67, 3266, 12399, 18, 1289, 1180, 12, 2704, 514, 2932, 26404, 30, 13773, 81, 67, 892, 18, 4589, 12, 77, 2934, 529, 1435, 9078, 13773, 25083, 377, 14015, 81, 67, 892, 18, 4589, 12, 77, 2934, 291, 26685, 1490, 10756, 692, 7751, 26685, 2225, 2 ]
sawStringIntern = false;
public void visitClassContext(ClassContext classContext) { JavaClass jclass = classContext.getJavaClass(); Method[] methodList = jclass.getMethods(); sawStringIntern = false; for (int i = 0; i < methodList.length; ++i) { Method method = methodList[i]; MethodGen methodGen = classContext.getMethodGen(method); if (methodGen == null) continue; // Prescreening - must have IF_ACMPEQ, IF_ACMPNE, // or an invocation of an instance method BitSet bytecodeSet = classContext.getBytecodeSet(method); if (!bytecodeSet.intersects(prescreenSet)) continue; if (DEBUG) System.out.println("FindRefComparison: analyzing " + SignatureConverter.convertMethodSignature(methodGen)); try { analyzeMethod(classContext, method); } catch (CFGBuilderException e) { bugReporter.logError("Error analyzing " + method.toString(), e); } catch (DataflowAnalysisException e) { bugReporter.logError("Error analyzing " + method.toString(), e); } } }
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/16834aca0f9ab1ece6178f8e52197ca5be9496fa/FindRefComparison.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/detect/FindRefComparison.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3757, 797, 1042, 12, 797, 1042, 667, 1042, 13, 288, 202, 202, 5852, 797, 525, 1106, 273, 667, 1042, 18, 588, 5852, 797, 5621, 202, 202, 1305, 8526, 707, 682, 273, 525, 1106, 18, 588, 4712, 5621, 202, 202, 87, 2219, 780, 21843, 273, 629, 31, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 707, 682, 18, 2469, 31, 965, 77, 13, 288, 1082, 202, 1305, 707, 273, 707, 682, 63, 77, 15533, 1082, 202, 1305, 7642, 707, 7642, 273, 667, 1042, 18, 588, 1305, 7642, 12, 2039, 1769, 1082, 202, 430, 261, 2039, 7642, 422, 446, 13, 9506, 202, 17143, 31, 1082, 202, 759, 18346, 8780, 310, 300, 1297, 1240, 11083, 67, 2226, 49, 1423, 53, 16, 11083, 67, 2226, 4566, 5407, 16, 1082, 202, 759, 578, 392, 9495, 434, 392, 791, 707, 1082, 202, 5775, 694, 22801, 694, 273, 667, 1042, 18, 588, 858, 16651, 694, 12, 2039, 1769, 1082, 202, 430, 16051, 1637, 16651, 694, 18, 12288, 87, 12, 12202, 8780, 694, 3719, 9506, 202, 17143, 31, 1082, 202, 430, 261, 9394, 13, 9506, 202, 3163, 18, 659, 18, 8222, 2932, 3125, 1957, 16059, 30, 392, 4647, 310, 315, 397, 6862, 3639, 9249, 5072, 18, 6283, 1305, 5374, 12, 2039, 7642, 10019, 1082, 202, 698, 288, 9506, 202, 304, 9508, 1305, 12, 1106, 1042, 16, 707, 1769, 1082, 202, 97, 1044, 261, 19727, 1263, 503, 425, 13, 288, 9506, 202, 925, 13289, 18, 1330, 668, 2932, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3757, 797, 1042, 12, 797, 1042, 667, 1042, 13, 288, 202, 202, 5852, 797, 525, 1106, 273, 667, 1042, 18, 588, 5852, 797, 5621, 202, 202, 1305, 8526, 707, 682, 273, 525, 1106, 18, 588, 4712, 5621, 202, 202, 87, 2219, 780, 21843, 273, 629, 31, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 707, 682, 18, 2469, 31, 965, 77, 13, 288, 1082, 202, 1305, 707, 273, 707, 682, 63, 77, 15533, 1082, 202, 1305, 7642, 707, 7642, 273, 667, 1042, 18, 588, 1305, 7642, 12, 2039, 1769, 1082, 202, 430, 261, 2039, 7642, 422, 446, 13, 9506, 202, 17143, 31, 1082, 202, 759, 18346, 8780, 310, 300, 1297, 1240, 11083, 2 ]
protected EventDetailsDialog(Shell parentShell, IAdaptable selection, ISelectionProvider provider) {
protected EventDetailsDialog(Shell parentShell, IAdaptable selection, ISelectionProvider provider, Comparator comparator) {
protected EventDetailsDialog(Shell parentShell, IAdaptable selection, ISelectionProvider provider) { super(parentShell); labelProvider = new LogViewLabelProvider(); this.provider = (TableTreeViewer) provider; this.entry = (LogEntry)selection; setShellStyle(SWT.MODELESS | SWT.MIN | SWT.MAX | SWT.RESIZE | SWT.CLOSE | SWT.BORDER | SWT.TITLE); clipboard = new Clipboard(parentShell.getDisplay()); initialize(); createImages(); collator = Collator.getInstance(); readConfiguration(); }
14404 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14404/2e07d224260b7c85a3fc6f6d4184a1f695d7e1a5/EventDetailsDialog.java/clean/ui/org.eclipse.pde.runtime/src/org/eclipse/pde/internal/runtime/logview/EventDetailsDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 2587, 3790, 6353, 12, 13220, 982, 13220, 16, 467, 13716, 429, 4421, 16, 467, 6233, 2249, 2893, 13, 288, 202, 202, 9565, 12, 2938, 13220, 1769, 202, 202, 1925, 2249, 273, 394, 1827, 1767, 2224, 2249, 5621, 202, 202, 2211, 18, 6778, 273, 261, 1388, 2471, 18415, 13, 2893, 31, 202, 202, 2211, 18, 4099, 273, 261, 25548, 13, 10705, 31, 202, 202, 542, 13220, 2885, 12, 55, 8588, 18, 7038, 26005, 571, 348, 8588, 18, 6236, 571, 348, 8588, 18, 6694, 571, 348, 8588, 18, 862, 4574, 571, 348, 8588, 18, 13384, 571, 348, 8588, 18, 38, 7954, 571, 348, 8588, 18, 14123, 1769, 202, 202, 14161, 3752, 273, 394, 385, 3169, 3752, 12, 2938, 13220, 18, 588, 4236, 10663, 202, 202, 11160, 5621, 202, 202, 2640, 8946, 5621, 202, 202, 12910, 639, 273, 17596, 639, 18, 588, 1442, 5621, 202, 202, 896, 1750, 5621, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1117, 2587, 3790, 6353, 12, 13220, 982, 13220, 16, 467, 13716, 429, 4421, 16, 467, 6233, 2249, 2893, 13, 288, 202, 202, 9565, 12, 2938, 13220, 1769, 202, 202, 1925, 2249, 273, 394, 1827, 1767, 2224, 2249, 5621, 202, 202, 2211, 18, 6778, 273, 261, 1388, 2471, 18415, 13, 2893, 31, 202, 202, 2211, 18, 4099, 273, 261, 25548, 13, 10705, 31, 202, 202, 542, 13220, 2885, 12, 55, 8588, 18, 7038, 26005, 571, 348, 8588, 18, 6236, 571, 348, 8588, 18, 6694, 571, 348, 8588, 18, 862, 4574, 571, 348, 8588, 18, 13384, 571, 348, 8588, 18, 38, 7954, 571, 348, 8588, 18, 14123, 1769, 202, 202, 14161, 3752, 273, 394, 385, 3169, 3752, 12, 2938, 2 ]
if(origConfigFileContents != null) { SimpleFieldSet sfs = origConfigFileContents.subset(sc.prefix); Logger.minor(this, "Registering "+sc+": "+sfs); if(sfs != null) sc.setOptions(sfs); }
public void register(SubConfig sc) { super.register(sc); if(origConfigFileContents != null) { SimpleFieldSet sfs = origConfigFileContents.subset(sc.prefix); Logger.minor(this, "Registering "+sc+": "+sfs); // Set all the options if(sfs != null) sc.setOptions(sfs); } }
50287 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50287/c1430c70b5da9c6558f190fe4bddaf8334ecd008/FilePersistentConfig.java/clean/src/freenet/config/FilePersistentConfig.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1744, 12, 1676, 809, 888, 13, 288, 202, 202, 9565, 18, 4861, 12, 1017, 1769, 202, 202, 430, 12, 4949, 13705, 6323, 480, 446, 13, 288, 1082, 202, 5784, 974, 694, 272, 2556, 273, 1647, 13705, 6323, 18, 15657, 12, 1017, 18, 3239, 1769, 1082, 202, 3328, 18, 17364, 12, 2211, 16, 315, 3996, 310, 13773, 1017, 15, 6877, 13773, 87, 2556, 1769, 1082, 202, 759, 1000, 777, 326, 702, 1082, 202, 430, 12, 87, 2556, 480, 446, 13, 9506, 202, 1017, 18, 542, 1320, 12, 87, 2556, 1769, 202, 202, 97, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1744, 12, 1676, 809, 888, 13, 288, 202, 202, 9565, 18, 4861, 12, 1017, 1769, 202, 202, 430, 12, 4949, 13705, 6323, 480, 446, 13, 288, 1082, 202, 5784, 974, 694, 272, 2556, 273, 1647, 13705, 6323, 18, 15657, 12, 1017, 18, 3239, 1769, 1082, 202, 3328, 18, 17364, 12, 2211, 16, 315, 3996, 310, 13773, 1017, 15, 6877, 13773, 87, 2556, 1769, 1082, 202, 759, 1000, 777, 326, 702, 1082, 202, 430, 12, 87, 2556, 480, 446, 13, 9506, 202, 1017, 18, 542, 1320, 12, 87, 2556, 1769, 202, 202, 97, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return true;
return isSingleton;
public boolean isSingleton() { return true; }
51763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51763/2912851b6fda992dcf5c3400161d6ddadd09a54c/SpringConfigUtils.java/buggy/src/commons/org/codehaus/groovy/grails/commons/spring/SpringConfigUtils.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 1250, 11604, 12551, 1435, 288, 9506, 202, 2463, 638, 31, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 202, 482, 1250, 11604, 12551, 1435, 288, 9506, 202, 2463, 638, 31, 1082, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
} else if (deploy != null) {
} else if (deploy != null && !deploy.equals("")) {
public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { super.execute(mapping, form, request, response); ActionErrors errors = new ActionErrors(); String project = (String) PropertyUtils.getSimpleProperty(form, "project"); String build = (String) PropertyUtils.getSimpleProperty(form, "build"); String deploy = (String) PropertyUtils.getSimpleProperty(form, "deploy"); request.setAttribute("project", project); if (!checkAuthorized(request, response)) return mapping.findForward(Constants.FORWARD_NAME_SUCCESS); if (!Project.exists(project)) { log.warn("project doesn't exist: " + project); errors.add("execute", new ActionError("error.project.notfound", project)); saveErrors(request, errors); return mapping.findForward(Constants.FORWARD_NAME_SUCCESS); } Project p = new Project(); p.asDTO().setName(project); p.loadData(); p.loadSecurity((String) request.getSession(true).getAttribute("username")); if (p.asDTO().getStatus() == Constants.STATUS_RUNNING) { log.warn("can't execute " + project + " while still running"); errors.add("execute", new ActionError("error.project.stillrunning", project)); saveErrors(request, errors); return mapping.findForward(Constants.FORWARD_NAME_SUCCESS); } if (build != null) { if (p.asDTO().isBuildable()) { try { Executor.build(project); } catch (Exception e) { log.warn("couldn't build " + project, e); errors.add("execute", new ActionError("error.build", project)); } } else { errors.add("execute", new ActionError("error.authorization")); } } else if (deploy != null) { if (p.asDTO().isDeployable()) { try { Executor.deploy(project); } catch (Exception e) { log.warn("couldn't deploy " + project, e); errors.add("execute", new ActionError("error.deploy", project)); } } else { errors.add("execute", new ActionError("error.authorization")); } } saveErrors(request, errors); return mapping.findForward(Constants.FORWARD_NAME_SUCCESS); }
2719 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2719/c219b0252a1ea10766007d5cff2b8500181de482/ExecuteAction.java/buggy/scratchpad/forrestbot2/webapp/src/java/org/apache/forrest/forrestbot/webapp/action/ExecuteAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 4382, 8514, 1836, 12, 1803, 3233, 2874, 16, 4382, 1204, 646, 16, 9984, 590, 16, 12446, 766, 13, 1216, 1185, 288, 202, 202, 9565, 18, 8837, 12, 6770, 16, 646, 16, 590, 16, 766, 1769, 9506, 202, 1803, 4229, 1334, 273, 394, 4382, 4229, 5621, 202, 202, 780, 1984, 273, 261, 780, 13, 4276, 1989, 18, 588, 5784, 1396, 12, 687, 16, 315, 4406, 8863, 202, 202, 780, 1361, 273, 261, 780, 13, 4276, 1989, 18, 588, 5784, 1396, 12, 687, 16, 315, 3510, 8863, 202, 202, 780, 7286, 273, 261, 780, 13, 4276, 1989, 18, 588, 5784, 1396, 12, 687, 16, 315, 12411, 8863, 202, 202, 2293, 18, 542, 1499, 2932, 4406, 3113, 1984, 1769, 202, 202, 430, 16051, 1893, 15341, 12, 2293, 16, 766, 3719, 1082, 202, 2463, 2874, 18, 4720, 8514, 12, 2918, 18, 7473, 21343, 67, 1985, 67, 12778, 1769, 202, 202, 430, 16051, 4109, 18, 1808, 12, 4406, 3719, 288, 1082, 202, 1330, 18, 8935, 2932, 4406, 3302, 1404, 1005, 30, 315, 397, 1984, 1769, 1082, 202, 4324, 18, 1289, 2932, 8837, 3113, 394, 4382, 668, 2932, 1636, 18, 4406, 18, 902, 7015, 3113, 1984, 10019, 1082, 202, 5688, 4229, 12, 2293, 16, 1334, 1769, 1082, 202, 2463, 2874, 18, 4720, 8514, 12, 2918, 18, 7473, 21343, 67, 1985, 67, 12778, 1769, 202, 202, 97, 9506, 202, 4109, 293, 273, 394, 5420, 5621, 202, 202, 84, 18, 345, 19792, 7675, 542, 461, 12, 4406, 1769, 202, 202, 84, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4382, 8514, 1836, 12, 1803, 3233, 2874, 16, 4382, 1204, 646, 16, 9984, 590, 16, 12446, 766, 13, 1216, 1185, 288, 202, 202, 9565, 18, 8837, 12, 6770, 16, 646, 16, 590, 16, 766, 1769, 9506, 202, 1803, 4229, 1334, 273, 394, 4382, 4229, 5621, 202, 202, 780, 1984, 273, 261, 780, 13, 4276, 1989, 18, 588, 5784, 1396, 12, 687, 16, 315, 4406, 8863, 202, 202, 780, 1361, 273, 261, 780, 13, 4276, 1989, 18, 588, 5784, 1396, 12, 687, 16, 315, 3510, 8863, 202, 202, 780, 7286, 273, 261, 780, 13, 4276, 1989, 18, 588, 5784, 1396, 12, 687, 16, 315, 12411, 8863, 202, 202, 2293, 18, 542, 1499, 2932, 4406, 3113, 1984, 1769, 2 ]
String sslUri = state.runtimeData.getParameter("cw_ssl"); if (sslUri != null) state.sslUri = sslUri;
public void setRuntimeData (ChannelRuntimeData rd, String uid) { ChannelState state = (ChannelState)stateTable.get(uid); if (state == null) log.error("CWebProxy:setRuntimeData() : attempting to access a non-established channel! setStaticData() hasn't been called on uid=\""+uid+"\""); else { state.runtimeData = rd; if ( rd.isEmpty() && (state.refresh != -1) ) { // A refresh-- State remains the same. if ( state.buttonxmlUri != null ) { state.key = state.buttonxmlUri; state.fullxmlUri = state.buttonxmlUri; state.refresh = 0; } else { if ( state.refresh == 0 ) state.key = state.fullxmlUri; state.fullxmlUri = state.xmlUri; state.refresh = 1; } } else { state.refresh = 0; String xmlUri = state.runtimeData.getParameter("cw_xml"); if (xmlUri != null) { state.xmlUri = xmlUri; // don't need an explicit reset if a new URI is provided. state.buttonxmlUri = null; } String sslUri = state.runtimeData.getParameter("cw_ssl"); if (sslUri != null) state.sslUri = sslUri; String xslTitle = state.runtimeData.getParameter("cw_xslTitle"); if (xslTitle != null) state.xslTitle = xslTitle; String xslUri = state.runtimeData.getParameter("cw_xsl"); if (xslUri != null) state.xslUri = xslUri; String passThrough = state.runtimeData.getParameter("cw_passThrough"); if (passThrough != null) state.passThrough = passThrough; String person = state.runtimeData.getParameter("cw_person"); if (person != null) state.person = person; String tidy = state.runtimeData.getParameter("cw_tidy"); if (tidy != null) state.tidy = tidy; String infoUri = state.runtimeData.getParameter("cw_info"); if (infoUri != null) state.infoUri = infoUri; String editUri = state.runtimeData.getParameter("cw_edit"); if (editUri != null) state.editUri = editUri; String helpUri = state.runtimeData.getParameter("cw_help"); if (helpUri != null) state.helpUri = helpUri; String cacheTimeout = state.runtimeData.getParameter("cw_cacheDefaultTimeout"); if (cacheTimeout != null) state.cacheDefaultTimeout = Long.parseLong(cacheTimeout); cacheTimeout = state.runtimeData.getParameter("cw_cacheTimeout"); if (cacheTimeout != null) state.cacheTimeout = Long.parseLong(cacheTimeout); else state.cacheTimeout = state.cacheDefaultTimeout; String cacheDefaultMode = state.runtimeData.getParameter("cw_cacheDefaultMode"); if (cacheDefaultMode != null) { state.cacheDefaultMode = cacheDefaultMode; } String cacheMode = state.runtimeData.getParameter("cw_cacheMode"); if (cacheMode != null) { state.cacheMode = cacheMode; } else state.cacheMode = state.cacheDefaultMode; // reset is a one-time thing. String reset = state.runtimeData.getParameter("cw_reset"); if (reset != null) { if (reset.equalsIgnoreCase("return")) { state.buttonxmlUri = null; } } if ( state.buttonxmlUri != null ) state.fullxmlUri = state.buttonxmlUri; else { //log.debug("CWebProxy: xmlUri is " + state.xmlUri); // pass IPerson atts independent of the value of cw_passThrough StringBuffer newXML = new StringBuffer(); String appendchar = ""; // here add in attributes according to cw_person if (state.person != null && state.personAllow_set != null) { StringTokenizer st = new StringTokenizer(state.person,","); if (st != null) { while (st.hasMoreElements ()) { String pName = st.nextToken(); if ((pName!=null)&&(!pName.trim().equals(""))) { if ( state.personAllow.trim().equals("*") || state.personAllow_set.contains(pName) ) { newXML.append(appendchar); appendchar = "&"; newXML.append(pName); newXML.append("="); // note, this only gets the first one if it's a // java.util.Vector. Should check String pVal = (String)state.iperson.getAttribute(pName); if (pVal != null) try { newXML.append(URLEncoder.encode(pVal,"UTF-8")); } catch (UnsupportedEncodingException e) { throw new RuntimeException(e); } } else { if (log.isInfoEnabled()) log.info( "CWebProxy: request to pass " + pName + " denied."); } } } } } // end cw_person code // Is this a case where we need to pass request parameters to the xmlURI? if ( state.passThrough != null && !state.passThrough.equalsIgnoreCase("none") && ( state.passThrough.equalsIgnoreCase("all") || state.passThrough.equalsIgnoreCase("application") || rd.getParameter("cw_inChannelLink") != null ) ) { // keyword and parameter processing // NOTE: if both exist, only keywords are appended String keywords = rd.getKeywords(); if (keywords != null) { if (appendchar.equals("&")) newXML.append("&keywords=" + keywords); else newXML.append(keywords); } else { // want all runtime parameters not specific to WebProxy Enumeration e=rd.getParameterNames (); if (e!=null) { while (e.hasMoreElements ()) { String pName = (String) e.nextElement (); if ( !pName.startsWith("cw_") && !pName.startsWith("upc_") && !pName.trim().equals("")) { String[] value_array = rd.getParameterValues(pName); int i = 0; while ( i < value_array.length ) { newXML.append(appendchar); appendchar = "&"; newXML.append(pName); newXML.append("="); try { newXML.append(URLEncoder.encode(value_array[i++].trim(),"UTF-8")); } catch (UnsupportedEncodingException e1) { throw new RuntimeException(e1); } } } } } } } state.reqParameters = newXML.toString(); state.fullxmlUri = state.xmlUri; if (!state.runtimeData.getHttpRequestMethod().equals("POST")) { if ((state.reqParameters!=null) && (!state.reqParameters.trim().equals(""))) { appendchar = (state.xmlUri.indexOf('?') == -1) ? "?" : "&"; state.fullxmlUri = state.fullxmlUri+appendchar+state.reqParameters; } state.reqParameters = null; } //log.debug("CWebProxy: fullxmlUri now: " + state.fullxmlUri); } // set key for cache based on request parameters // NOTE: POST requests are not idempotent and therefore are not // retrievable from the cache if (!state.runtimeData.getHttpRequestMethod().equals("POST")) state.key = state.fullxmlUri; else //generate a unique string as key state.key = String.valueOf((new Date()).getTime()); } } }
24959 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/24959/d56043b4480e273eeeb8c30e6eaed3efb3c71a1f/CWebProxy.java/clean/source/org/jasig/portal/channels/webproxy/CWebProxy.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 444, 5576, 751, 261, 2909, 5576, 751, 9437, 16, 514, 4555, 13, 225, 288, 377, 5307, 1119, 919, 273, 261, 2909, 1119, 13, 2019, 1388, 18, 588, 12, 1911, 1769, 377, 309, 261, 2019, 422, 446, 13, 4202, 613, 18, 1636, 2932, 39, 4079, 3886, 30, 542, 5576, 751, 1435, 294, 15600, 358, 2006, 279, 1661, 17, 395, 9237, 5992, 1904, 5, 444, 5788, 751, 1435, 13342, 1404, 2118, 2566, 603, 4555, 13186, 15, 1911, 9078, 8530, 1769, 377, 469, 377, 288, 4202, 919, 18, 9448, 751, 273, 9437, 31, 4202, 309, 261, 9437, 18, 291, 1921, 1435, 597, 261, 2019, 18, 9144, 480, 300, 21, 13, 262, 288, 540, 368, 432, 4460, 413, 3287, 22632, 326, 1967, 18, 540, 309, 261, 919, 18, 5391, 2902, 3006, 480, 446, 262, 288, 6647, 919, 18, 856, 273, 919, 18, 5391, 2902, 3006, 31, 6647, 919, 18, 2854, 2902, 3006, 273, 919, 18, 5391, 2902, 3006, 31, 6647, 919, 18, 9144, 273, 374, 31, 540, 289, 469, 288, 6647, 309, 261, 919, 18, 9144, 422, 374, 262, 2398, 919, 18, 856, 273, 919, 18, 2854, 2902, 3006, 31, 6647, 919, 18, 2854, 2902, 3006, 273, 919, 18, 2902, 3006, 31, 6647, 919, 18, 9144, 273, 404, 31, 540, 289, 4202, 289, 469, 288, 4202, 919, 18, 9144, 273, 374, 31, 4202, 514, 2025, 3006, 273, 919, 18, 9448, 751, 18, 588, 1662, 2932, 71, 91, 67, 2902, 8863, 4202, 309, 261, 2902, 3006, 480, 446, 13, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 444, 5576, 751, 261, 2909, 5576, 751, 9437, 16, 514, 4555, 13, 225, 288, 377, 5307, 1119, 919, 273, 261, 2909, 1119, 13, 2019, 1388, 18, 588, 12, 1911, 1769, 377, 309, 261, 2019, 422, 446, 13, 4202, 613, 18, 1636, 2932, 39, 4079, 3886, 30, 542, 5576, 751, 1435, 294, 15600, 358, 2006, 279, 1661, 17, 395, 9237, 5992, 1904, 5, 444, 5788, 751, 1435, 13342, 1404, 2118, 2566, 603, 4555, 13186, 15, 1911, 9078, 8530, 1769, 377, 469, 377, 288, 4202, 919, 18, 9448, 751, 273, 9437, 31, 4202, 309, 261, 9437, 18, 291, 1921, 1435, 597, 261, 2019, 18, 9144, 480, 300, 21, 13, 262, 288, 540, 368, 432, 4460, 413, 3287, 22632, 2 ]
addIdFunctionProperty(ctor, "UTC", ConstructorId_UTC, sealed); addIdFunctionProperty(ctor, "parse", ConstructorId_parse, sealed);
addIdFunctionProperty(ctor, ConstructorId_UTC, sealed); addIdFunctionProperty(ctor, ConstructorId_parse, sealed);
protected void fillConstructorProperties (Context cx, IdFunction ctor, boolean sealed) { addIdFunctionProperty(ctor, "UTC", ConstructorId_UTC, sealed); addIdFunctionProperty(ctor, "parse", ConstructorId_parse, sealed); super.fillConstructorProperties(cx, ctor, sealed); }
51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/b6331020dcf96bb85dae57ee2a2ce947b6b0477a/NativeDate.java/clean/js/rhino/src/org/mozilla/javascript/NativeDate.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 3636, 6293, 2297, 3639, 261, 1042, 9494, 16, 3124, 2083, 15120, 16, 1250, 695, 18931, 13, 565, 288, 3639, 527, 548, 2083, 1396, 12, 30206, 16, 315, 11471, 3113, 11417, 548, 67, 11471, 16, 695, 18931, 1769, 3639, 527, 548, 2083, 1396, 12, 30206, 16, 315, 2670, 3113, 11417, 548, 67, 2670, 16, 695, 18931, 1769, 3639, 2240, 18, 5935, 6293, 2297, 12, 71, 92, 16, 15120, 16, 695, 18931, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4750, 918, 3636, 6293, 2297, 3639, 261, 1042, 9494, 16, 3124, 2083, 15120, 16, 1250, 695, 18931, 13, 565, 288, 3639, 527, 548, 2083, 1396, 12, 30206, 16, 315, 11471, 3113, 11417, 548, 67, 11471, 16, 695, 18931, 1769, 3639, 527, 548, 2083, 1396, 12, 30206, 16, 315, 2670, 3113, 11417, 548, 67, 2670, 16, 695, 18931, 1769, 3639, 2240, 18, 5935, 6293, 2297, 12, 71, 92, 16, 15120, 16, 695, 18931, 1769, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
return false; }
return false; }
public boolean isNil() { return false; }
49687 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49687/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyObject.java/clean/org/jruby/RubyObject.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 8197, 330, 1435, 288, 202, 202, 2463, 629, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 8197, 330, 1435, 288, 202, 202, 2463, 629, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
else if (o.trim().equalsIgnoreCase("DC")) { oid = X509Name.DC; coll.add(X509Name.DC);
} Vector ordering = new Vector(); Vector values = new Vector(); int index = -1; String[] objects = { "EmailAddress", "E", "CN", "SN", "T", "OU", "O", "L", "ST", "DC", "C" }; for (int i = 0;i<objects.length;i++) { String object = objects[i].toLowerCase(); while ((index = oldordering.indexOf(object)) != -1) { if (getOid(object) != null) { ordering.add(getOid(object)); values.add(oldvalues.elementAt(index)); boolean ret = oldordering.remove(object); String foo = (String)oldvalues.remove(index); index = -1; }
public static X509Name stringToBcX509Name(String dn) { cat.debug(">stringToBcX509Name: " + dn); // Strip bad chars String stipeddn = StringTools.strip(dn); String trimmeddn = stipeddn.trim(); StringTokenizer st = new StringTokenizer(trimmeddn, ",="); Hashtable dntable = new Hashtable(); String o = null; DERObjectIdentifier oid=null; Collection coll = new ArrayList(); while (st.hasMoreTokens()) { o = st.nextToken(); if (o.trim().equalsIgnoreCase("C")) { oid = X509Name.C; coll.add(X509Name.C); } else if (o.trim().equalsIgnoreCase("DC")) { oid = X509Name.DC; coll.add(X509Name.DC); } else if (o.trim().equalsIgnoreCase("ST")) { oid = X509Name.ST; coll.add(X509Name.ST); } else if (o.trim().equalsIgnoreCase("L")) { oid = X509Name.L; coll.add(X509Name.L); } else if (o.trim().equalsIgnoreCase("O")) { oid = X509Name.O; coll.add(X509Name.O); } else if (o.trim().equalsIgnoreCase("OU")) { oid = X509Name.OU; coll.add(X509Name.OU); } else if (o.trim().equalsIgnoreCase("SN")) { oid = X509Name.SN; coll.add(X509Name.SN); } else if (o.trim().equalsIgnoreCase("CN")) { oid = X509Name.CN; coll.add(X509Name.CN); } else if (o.trim().equalsIgnoreCase("EmailAddress")) { oid = X509Name.EmailAddress; coll.add(X509Name.EmailAddress); } else oid=null; // Just drop unknown entries in the DN if (oid != null) dntable.put(oid, st.nextToken()); } Vector order = new Vector(); order.add(X509Name.EmailAddress); order.add(X509Name.CN); order.add(X509Name.SN); order.add(X509Name.OU); order.add(X509Name.O); order.add(X509Name.L); order.add(X509Name.ST); order.add(X509Name.DC); order.add(X509Name.C); order.retainAll(coll); cat.debug(order.toString()); cat.debug(dntable.toString()); cat.debug("<stringToBcX509Name"); return new X509Name(order, dntable); }
4109 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4109/18634f2430b335138e8143781bc92fa996a81605/CertTools.java/clean/src/java/se/anatom/ejbca/util/CertTools.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 1139, 5995, 461, 14134, 38, 71, 60, 5995, 461, 12, 780, 8800, 13, 288, 3639, 6573, 18, 4148, 2932, 34, 1080, 774, 38, 71, 60, 5995, 461, 30, 315, 397, 8800, 1769, 3639, 368, 15589, 5570, 5230, 3639, 514, 384, 625, 329, 5176, 273, 514, 10348, 18, 6406, 12, 5176, 1769, 3639, 514, 12350, 5176, 273, 384, 625, 329, 5176, 18, 5290, 5621, 3639, 16370, 384, 273, 394, 16370, 12, 5290, 2937, 5176, 16, 3104, 1546, 1769, 3639, 18559, 302, 496, 429, 273, 394, 18559, 5621, 3639, 514, 320, 273, 446, 31, 3639, 21801, 921, 3004, 7764, 33, 2011, 31, 3639, 2200, 4508, 273, 394, 2407, 5621, 3639, 1323, 261, 334, 18, 5332, 7417, 5157, 10756, 288, 5411, 320, 273, 384, 18, 4285, 1345, 5621, 5411, 309, 261, 83, 18, 5290, 7675, 14963, 5556, 2932, 39, 6, 3719, 288, 7734, 7764, 273, 1139, 5995, 461, 18, 39, 31, 7734, 4508, 18, 1289, 12, 60, 5995, 461, 18, 39, 1769, 5411, 289, 5411, 469, 309, 261, 83, 18, 5290, 7675, 14963, 5556, 2932, 5528, 6, 3719, 288, 7734, 7764, 273, 1139, 5995, 461, 18, 5528, 31, 7734, 4508, 18, 1289, 12, 60, 5995, 461, 18, 5528, 1769, 5411, 289, 5411, 469, 309, 261, 83, 18, 5290, 7675, 14963, 5556, 2932, 882, 6, 3719, 288, 7734, 7764, 273, 1139, 5995, 461, 18, 882, 31, 7734, 4508, 18, 1289, 12, 60, 5995, 461, 18, 882, 1769, 5411, 289, 5411, 469, 309, 261, 83, 18, 5290, 7675, 14963, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1139, 5995, 461, 14134, 38, 71, 60, 5995, 461, 12, 780, 8800, 13, 288, 3639, 6573, 18, 4148, 2932, 34, 1080, 774, 38, 71, 60, 5995, 461, 30, 315, 397, 8800, 1769, 3639, 368, 15589, 5570, 5230, 3639, 514, 384, 625, 329, 5176, 273, 514, 10348, 18, 6406, 12, 5176, 1769, 3639, 514, 12350, 5176, 273, 384, 625, 329, 5176, 18, 5290, 5621, 3639, 16370, 384, 273, 394, 16370, 12, 5290, 2937, 5176, 16, 3104, 1546, 1769, 3639, 18559, 302, 496, 429, 273, 394, 18559, 5621, 3639, 514, 320, 273, 446, 31, 3639, 21801, 921, 3004, 7764, 33, 2011, 31, 3639, 2200, 4508, 273, 394, 2407, 5621, 3639, 1323, 261, 334, 18, 5332, 7417, 5157, 10756, 2 ]
RubyClass objectClass = getRuntime().getClasses().getObjectClass();
RubyClass objectClass = getRuntime().getObject();
public String getName() { RubyModule module = this; while (module.isIncluded() || module.isSingleton()) { module = module.getSuperClass(); } if (getBaseName() == null) { return "#<" + (isClass() ? "Class" : "Module") + ":01x" + Integer.toHexString(System.identityHashCode(this)) + ">"; } StringBuffer result = new StringBuffer(getBaseName()); RubyClass objectClass = getRuntime().getClasses().getObjectClass(); for (RubyModule p = this.parentModule; p != null && p != objectClass; p = p.parentModule) { result.insert(0, "::").insert(0, p.getBaseName()); } return result.toString(); }
46258 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46258/ca6b16e996ea9af83ce593594b9c69b9364a9924/RubyModule.java/clean/src/org/jruby/RubyModule.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 1723, 1435, 288, 3639, 19817, 3120, 1605, 273, 333, 31, 3639, 1323, 261, 2978, 18, 291, 19323, 1435, 747, 1605, 18, 291, 19571, 10756, 288, 5411, 1605, 273, 1605, 18, 588, 8051, 797, 5621, 3639, 289, 3639, 309, 261, 588, 29907, 1435, 422, 446, 13, 288, 5411, 327, 6619, 32, 6, 397, 261, 291, 797, 1435, 692, 315, 797, 6, 294, 315, 3120, 7923, 397, 6398, 1611, 92, 6, 397, 2398, 2144, 18, 869, 14866, 12, 3163, 18, 10781, 21952, 12, 2211, 3719, 397, 14675, 31, 3639, 289, 7734, 6674, 563, 273, 394, 6674, 12, 588, 29907, 10663, 3639, 19817, 797, 23992, 273, 18814, 7675, 588, 921, 5621, 7734, 364, 261, 54, 10340, 3120, 293, 273, 333, 18, 2938, 3120, 31, 293, 480, 446, 597, 293, 480, 23992, 31, 293, 273, 293, 18, 2938, 3120, 13, 288, 5411, 563, 18, 6387, 12, 20, 16, 31120, 2934, 6387, 12, 20, 16, 293, 18, 588, 29907, 10663, 3639, 289, 3639, 327, 563, 18, 10492, 5621, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1723, 1435, 288, 3639, 19817, 3120, 1605, 273, 333, 31, 3639, 1323, 261, 2978, 18, 291, 19323, 1435, 747, 1605, 18, 291, 19571, 10756, 288, 5411, 1605, 273, 1605, 18, 588, 8051, 797, 5621, 3639, 289, 3639, 309, 261, 588, 29907, 1435, 422, 446, 13, 288, 5411, 327, 6619, 32, 6, 397, 261, 291, 797, 1435, 692, 315, 797, 6, 294, 315, 3120, 7923, 397, 6398, 1611, 92, 6, 397, 2398, 2144, 18, 869, 14866, 12, 3163, 18, 10781, 21952, 12, 2211, 3719, 397, 14675, 31, 3639, 289, 7734, 6674, 563, 273, 394, 6674, 12, 588, 29907, 10663, 3639, 19817, 797, 23992, 273, 18814, 7675, 588, 921, 5621, 7734, 364, 261, 54, 10340, 3120, 293, 273, 2 ]
public void connect() throws IOException { if (!connected) { String userinfo = url.getUserInfo(); HttpClient client = new HttpClient(); if (userinfo != null) { // Set username and password int separatorPosition = userinfo.indexOf(":"); String username = separatorPosition == -1 ? userinfo : userinfo.substring(0, separatorPosition); String password = separatorPosition == -1 ? "" : userinfo.substring(separatorPosition + 1); client.getState().setCredentials( new AuthScope(url.getHost(), url.getPort()), new UsernamePasswordCredentials(username, password) ); } // If method has not been set, use GET if (method == null) method = new GetMethod(url.toString()); // Create request entity with body if (requestBody != null && method instanceof EntityEnclosingMethod) { HandlerRequestEntity requestEntity = new HandlerRequestEntity(requestBody, getRequestProperty("content-type")); ((EntityEnclosingMethod) method).setRequestEntity(requestEntity); } // Set headers for (Iterator keyIteratory = requestProperties.keySet().iterator(); keyIteratory.hasNext();) { String key = (String) keyIteratory.next(); method.setRequestHeader(key, (String) requestProperties.get(key)); } // Handle authentication challenge method.setDoAuthentication(true); // Make request responseCode = client.executeMethod(method); connected = true; } }
52783 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52783/b7f41c96ce9ac42b2debc925bde88e088e45b2cb/HTTPURLConnection.java/clean/src/java/org/orbeon/oxf/resources/handler/HTTPURLConnection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 3077, 1435, 1216, 1860, 288, 3639, 309, 16051, 8537, 13, 288, 5411, 514, 18297, 273, 880, 18, 588, 21015, 5621, 5411, 16308, 1004, 273, 394, 16308, 5621, 5411, 309, 261, 31271, 480, 446, 13, 288, 7734, 368, 1000, 2718, 471, 2201, 7734, 509, 4182, 2555, 273, 18297, 18, 31806, 2932, 2773, 1769, 7734, 514, 2718, 273, 4182, 2555, 422, 300, 21, 692, 18297, 294, 18297, 18, 28023, 12, 20, 16, 4182, 2555, 1769, 7734, 514, 2201, 273, 4182, 2555, 422, 300, 21, 692, 1408, 294, 18297, 18, 28023, 12, 11287, 2555, 397, 404, 1769, 7734, 1004, 18, 588, 1119, 7675, 542, 6163, 12, 10792, 394, 3123, 3876, 12, 718, 18, 588, 2594, 9334, 880, 18, 588, 2617, 1435, 3631, 10792, 394, 11313, 3913, 6163, 12, 5053, 16, 2201, 13, 7734, 11272, 5411, 289, 5411, 368, 971, 707, 711, 486, 2118, 444, 16, 999, 4978, 5411, 309, 261, 2039, 422, 446, 13, 7734, 707, 273, 394, 968, 1305, 12, 718, 18, 10492, 10663, 5411, 368, 1788, 590, 1522, 598, 1417, 5411, 309, 261, 2293, 2250, 480, 446, 597, 707, 1276, 3887, 21594, 1305, 13, 288, 7734, 4663, 691, 1943, 590, 1943, 273, 394, 4663, 691, 1943, 12, 2293, 2250, 16, 4328, 1396, 2932, 1745, 17, 723, 7923, 1769, 7734, 14015, 1943, 21594, 1305, 13, 707, 2934, 542, 691, 1943, 12, 2293, 1943, 1769, 5411, 289, 5411, 368, 1000, 1607, 5411, 364, 261, 3198, 498, 2360, 8452, 273, 590, 2297, 18, 856, 694, 7675, 9838, 5621, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3077, 1435, 1216, 1860, 288, 3639, 309, 16051, 8537, 13, 288, 5411, 514, 18297, 273, 880, 18, 588, 21015, 5621, 5411, 16308, 1004, 273, 394, 16308, 5621, 5411, 309, 261, 31271, 480, 446, 13, 288, 7734, 368, 1000, 2718, 471, 2201, 7734, 509, 4182, 2555, 273, 18297, 18, 31806, 2932, 2773, 1769, 7734, 514, 2718, 273, 4182, 2555, 422, 300, 21, 692, 18297, 294, 18297, 18, 28023, 12, 20, 16, 4182, 2555, 1769, 7734, 514, 2201, 273, 4182, 2555, 422, 300, 21, 692, 1408, 294, 18297, 18, 28023, 12, 11287, 2555, 397, 404, 1769, 7734, 1004, 18, 588, 1119, 7675, 542, 6163, 12, 10792, 394, 3123, 3876, 12, 718, 18, 588, 2594, 9334, 880, 18, 588, 2 ]
v.visitStackConsumer(this); v.visitExceptionThrower(this); v.visitTypedInstruction(this); v.visitArrayInstruction(this); v.visitBASTORE(this); }
v.visitStackConsumer(this); v.visitExceptionThrower(this); v.visitTypedInstruction(this); v.visitArrayInstruction(this); v.visitBASTORE(this); }
public void accept(Visitor v) { v.visitStackConsumer(this); v.visitExceptionThrower(this); v.visitTypedInstruction(this); v.visitArrayInstruction(this); v.visitBASTORE(this); }
3029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3029/d7c792e0a316dd3ac20a9fe9f758abdde9bd79fe/Bytecodes.java/buggy/joeq_core/joeq/Compiler/BytecodeAnalysis/Bytecodes.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 2791, 12, 7413, 331, 13, 288, 5411, 331, 18, 11658, 2624, 5869, 12, 2211, 1769, 5411, 331, 18, 11658, 503, 8282, 264, 12, 2211, 1769, 5411, 331, 18, 11658, 11985, 11983, 12, 2211, 1769, 5411, 331, 18, 11658, 1076, 11983, 12, 2211, 1769, 5411, 331, 18, 11658, 38, 9053, 8607, 12, 2211, 1769, 3639, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 2791, 12, 7413, 331, 13, 288, 5411, 331, 18, 11658, 2624, 5869, 12, 2211, 1769, 5411, 331, 18, 11658, 503, 8282, 264, 12, 2211, 1769, 5411, 331, 18, 11658, 11985, 11983, 12, 2211, 1769, 5411, 331, 18, 11658, 1076, 11983, 12, 2211, 1769, 5411, 331, 18, 11658, 38, 9053, 8607, 12, 2211, 1769, 3639, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public org.quickfix.field.EncodedIssuerLen getEncodedIssuerLen() throws FieldNotFound { org.quickfix.field.EncodedIssuerLen value = new org.quickfix.field.EncodedIssuerLen();
public quickfix.field.EncodedIssuerLen getEncodedIssuerLen() throws FieldNotFound { quickfix.field.EncodedIssuerLen value = new quickfix.field.EncodedIssuerLen();
public org.quickfix.field.EncodedIssuerLen getEncodedIssuerLen() throws FieldNotFound { org.quickfix.field.EncodedIssuerLen value = new org.quickfix.field.EncodedIssuerLen(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/QuoteRequest.java/clean/src/java/src/quickfix/fix44/QuoteRequest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 16667, 2891, 28799, 16667, 2891, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 16667, 2891, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 16667, 2891, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 16667, 2891, 28799, 16667, 2891, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 16667, 2891, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 16667, 2891, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if(type == null) return false; return String.class.isAssignableFrom(type); }
if(type == null) return false; return String.class.isAssignableFrom(type); }
public boolean supports(Class type) { if(type == null) return false; return String.class.isAssignableFrom(type); }
53275 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53275/975905c7e8c55e5fe91c94dc583c4269318ca341/ConstrainedProperty.java/clean/src/commons/org/codehaus/groovy/grails/validation/ConstrainedProperty.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 1250, 6146, 12, 797, 618, 13, 288, 1082, 202, 430, 12, 723, 422, 446, 13, 9506, 202, 2463, 629, 31, 25083, 202, 2463, 514, 18, 1106, 18, 291, 7961, 1265, 12, 723, 1769, 202, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3196, 202, 482, 1250, 6146, 12, 797, 618, 13, 288, 1082, 202, 430, 12, 723, 422, 446, 13, 9506, 202, 2463, 629, 31, 25083, 202, 2463, 514, 18, 1106, 18, 291, 7961, 1265, 12, 723, 1769, 202, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
else if ( ClassSkillsDatabase.contains( itemName ) )
else if ( ClassSkillsDatabase.contains( restoreName ) )
public void recoverHP( int needed, boolean purchase ) { if ( this == CAMPGROUND ) { (new CampgroundRequest( "rest" )).run(); return; } if ( this == GALAKTIK ) { DEFAULT_SHELL.executeLine( "galaktik hp" ); return; } // For all other instances, you will need to calculate // the number of times this technique must be used. int hpShort = needed - KoLCharacter.getCurrentHP(); int belowMax = KoLCharacter.getMaximumHP() - KoLCharacter.getCurrentHP(); int numberToUse = (int) Math.ceil( (float) hpShort / (float) getHealthPerUse() ); if ( this == SOFA ) { (new ClanGymRequest( ClanGymRequest.SOFA )).setTurnCount( numberToUse ).run(); return; } else if ( ClassSkillsDatabase.contains( itemName ) ) { if ( !KoLCharacter.hasSkill( itemName ) ) numberToUse = 0; } else if ( TradeableItemDatabase.contains( itemName ) ) { // In certain instances, you are able to buy more of // the given item from NPC stores, or from the mall. int numberAvailable = itemUsed.getCount( inventory ); if ( purchase ) { if ( this == HERBS ) numberAvailable = belowMax < 20 || !NPCStoreDatabase.contains( HERBS.toString() ) ? 0 : 1; else if ( this == SCROLL && KoLCharacter.canInteract() ) numberAvailable = 1; else if ( this == OINTMENT ) numberAvailable = numberToUse; } numberToUse = Math.min( numberToUse, numberAvailable ); } if ( numberToUse <= 0 ) return; if ( ClassSkillsDatabase.contains( itemName ) ) getClient().makeRequest( UseSkillRequest.getInstance( itemName, "", numberToUse ) ); else getClient().makeRequest( new ConsumeItemRequest( itemUsed.getInstance( numberToUse ) ) ); }
50364 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50364/39255b2cd27c7950e1f18e9f3fd6ae7139fe3d04/HPRestoreItemList.java/buggy/src/net/sourceforge/kolmafia/HPRestoreItemList.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 5910, 2500, 12, 509, 3577, 16, 1250, 23701, 262, 202, 202, 95, 1082, 202, 430, 261, 333, 422, 385, 8900, 20166, 262, 1082, 202, 95, 9506, 202, 12, 2704, 385, 931, 2915, 691, 12, 315, 8792, 6, 262, 2934, 2681, 5621, 9506, 202, 2463, 31, 1082, 202, 97, 1082, 202, 430, 261, 333, 422, 611, 1013, 14607, 23240, 47, 262, 1082, 202, 95, 9506, 202, 5280, 67, 2664, 21943, 18, 8837, 1670, 12, 315, 25030, 581, 88, 1766, 16460, 6, 11272, 9506, 202, 2463, 31, 1082, 202, 97, 1082, 202, 759, 2457, 777, 1308, 3884, 16, 1846, 903, 1608, 358, 4604, 1082, 202, 759, 326, 1300, 434, 4124, 333, 17734, 2161, 1297, 506, 1399, 18, 1082, 202, 474, 16460, 4897, 273, 3577, 300, 1475, 83, 48, 7069, 18, 588, 3935, 2500, 5621, 1082, 202, 474, 5712, 2747, 273, 1475, 83, 48, 7069, 18, 588, 13528, 2500, 1435, 300, 1475, 83, 48, 7069, 18, 588, 3935, 2500, 5621, 1082, 202, 474, 1300, 18762, 273, 261, 474, 13, 2361, 18, 311, 330, 12, 261, 5659, 13, 16460, 4897, 342, 261, 5659, 13, 336, 7802, 2173, 3727, 1435, 11272, 1082, 202, 430, 261, 333, 422, 7460, 2046, 262, 1082, 202, 95, 9506, 202, 12, 2704, 3905, 304, 43, 2942, 691, 12, 3905, 304, 43, 2942, 691, 18, 3584, 2046, 262, 2934, 542, 15858, 1380, 12, 1300, 18762, 262, 18, 2681, 5621, 9506, 202, 2463, 31, 1082, 202, 97, 1082, 202, 12107, 309, 261, 1659, 20057, 4254, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5910, 2500, 12, 509, 3577, 16, 1250, 23701, 262, 202, 202, 95, 1082, 202, 430, 261, 333, 422, 385, 8900, 20166, 262, 1082, 202, 95, 9506, 202, 12, 2704, 385, 931, 2915, 691, 12, 315, 8792, 6, 262, 2934, 2681, 5621, 9506, 202, 2463, 31, 1082, 202, 97, 1082, 202, 430, 261, 333, 422, 611, 1013, 14607, 23240, 47, 262, 1082, 202, 95, 9506, 202, 5280, 67, 2664, 21943, 18, 8837, 1670, 12, 315, 25030, 581, 88, 1766, 16460, 6, 11272, 9506, 202, 2463, 31, 1082, 202, 97, 1082, 202, 759, 2457, 777, 1308, 3884, 16, 1846, 903, 1608, 358, 4604, 1082, 202, 759, 326, 1300, 434, 4124, 333, 17734, 2161, 1297, 506, 1399, 18, 2 ]
if (location != null) {
if (location == null) { if (resource.isLinked()) return MISSING_PATH_VARIABLE_TEXT; return NOT_EXIST_TEXT; } else {
private String getLocationText(IResource resource) { //Location can be null if the resource is not local IPath location = resource.getLocation(); if (location != null) { return location.toOSString(); } else { return NOT_LOCAL_TEXT; }}
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/f82b8de0eae62b796471a598fd42902f3660f824/ResourceInfoPage.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/ResourceInfoPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 514, 13312, 1528, 12, 45, 1420, 1058, 13, 288, 202, 759, 2735, 848, 506, 446, 309, 326, 1058, 353, 486, 1191, 202, 45, 743, 2117, 273, 1058, 18, 588, 2735, 5621, 202, 430, 261, 3562, 480, 446, 13, 288, 202, 202, 2463, 2117, 18, 869, 4618, 780, 5621, 202, 97, 202, 12107, 288, 202, 202, 2463, 4269, 67, 14922, 67, 5151, 31, 202, 9090, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 514, 13312, 1528, 12, 45, 1420, 1058, 13, 288, 202, 759, 2735, 848, 506, 446, 309, 326, 1058, 353, 486, 1191, 202, 45, 743, 2117, 273, 1058, 18, 588, 2735, 5621, 202, 430, 261, 3562, 480, 446, 13, 288, 202, 202, 2463, 2117, 18, 869, 4618, 780, 5621, 202, 97, 202, 12107, 288, 202, 202, 2463, 4269, 67, 14922, 67, 5151, 31, 202, 9090, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
} while (k.compareTo(g.getQ())>-1 || k.compareTo(BigInteger.ZERO)==0);
} while ((k.compareTo(g.getQ())>-1) || (k.compareTo(BigInteger.ZERO)==0));
public static BigInteger[][] signaturePrecalculate(DSAGroup g, int count, Random r) { BigInteger[][] result=new BigInteger[count][2]; for (int i=0; i<count; i++) { BigInteger k; do { k=new NativeBigInteger(160, r); } while (k.compareTo(g.getQ())>-1 || k.compareTo(BigInteger.ZERO)==0); result[i][0] = g.getG().modPow(k, g.getP()); // r result[i][1] = k.modInverse(g.getQ()); // k^-1 } return result; }
46035 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46035/ca136843ae9ecb30cadada58a33a5dc2cf8ad064/DSA.java/buggy/src/freenet/crypt/DSA.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 10246, 63, 6362, 65, 3372, 1386, 11162, 12, 19748, 1114, 314, 16, 6862, 1082, 4202, 509, 1056, 16, 8072, 436, 13, 288, 202, 202, 24198, 63, 6362, 65, 563, 33, 2704, 10246, 63, 1883, 6362, 22, 15533, 9506, 202, 1884, 261, 474, 277, 33, 20, 31, 277, 32, 1883, 31, 277, 27245, 288, 1082, 202, 24198, 417, 31, 1082, 202, 2896, 288, 9506, 202, 79, 33, 2704, 16717, 24198, 12, 16874, 16, 436, 1769, 1082, 202, 97, 1323, 261, 79, 18, 9877, 774, 12, 75, 18, 588, 53, 10756, 34, 17, 21, 747, 417, 18, 9877, 774, 12, 24198, 18, 24968, 13, 631, 20, 1769, 25083, 202, 2088, 63, 77, 6362, 20, 65, 273, 314, 18, 588, 43, 7675, 1711, 28289, 12, 79, 16, 314, 18, 588, 52, 10663, 368, 436, 1875, 202, 2088, 63, 77, 6362, 21, 65, 273, 417, 18, 1711, 16376, 12, 75, 18, 588, 53, 10663, 368, 417, 66, 17, 21, 3196, 202, 97, 202, 202, 2463, 563, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 760, 10246, 63, 6362, 65, 3372, 1386, 11162, 12, 19748, 1114, 314, 16, 6862, 1082, 4202, 509, 1056, 16, 8072, 436, 13, 288, 202, 202, 24198, 63, 6362, 65, 563, 33, 2704, 10246, 63, 1883, 6362, 22, 15533, 9506, 202, 1884, 261, 474, 277, 33, 20, 31, 277, 32, 1883, 31, 277, 27245, 288, 1082, 202, 24198, 417, 31, 1082, 202, 2896, 288, 9506, 202, 79, 33, 2704, 16717, 24198, 12, 16874, 16, 436, 1769, 1082, 202, 97, 1323, 261, 79, 18, 9877, 774, 12, 75, 18, 588, 53, 10756, 34, 17, 21, 747, 417, 18, 9877, 774, 12, 24198, 18, 24968, 13, 631, 20, 1769, 25083, 202, 2088, 63, 77, 6362, 20, 65, 273, 314, 18, 2 ]
AST tmp775_AST_in = (AST)_t;
AST tmp774_AST_in = (AST)_t;
public final void createtablestate(AST _t) throws RecognitionException { AST createtablestate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t2253 = _t; AST tmp774_AST_in = (AST)_t; match(_t,CREATE); _t = _t.getFirstChild(); AST tmp775_AST_in = (AST)_t; match(_t,TABLE); _t = _t.getNextSibling(); AST tmp776_AST_in = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); AST tmp777_AST_in = (AST)_t; match(_t,LEFTPAREN); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ID: { sql_col_def(_t); _t = _retTree; break; } case UNIQUE: { AST __t2255 = _t; AST tmp778_AST_in = (AST)_t; match(_t,UNIQUE); _t = _t.getFirstChild(); AST tmp779_AST_in = (AST)_t; match(_t,LEFTPAREN); _t = _t.getNextSibling(); AST tmp780_AST_in = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); { _loop2257: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==COMMA)) { AST tmp781_AST_in = (AST)_t; match(_t,COMMA); _t = _t.getNextSibling(); AST tmp782_AST_in = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); } else { break _loop2257; } } while (true); } AST tmp783_AST_in = (AST)_t; match(_t,RIGHTPAREN); _t = _t.getNextSibling(); _t = __t2255; _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } } { _loop2263: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==COMMA)) { AST tmp784_AST_in = (AST)_t; match(_t,COMMA); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ID: { sql_col_def(_t); _t = _retTree; break; } case UNIQUE: { AST __t2260 = _t; AST tmp785_AST_in = (AST)_t; match(_t,UNIQUE); _t = _t.getFirstChild(); AST tmp786_AST_in = (AST)_t; match(_t,LEFTPAREN); _t = _t.getNextSibling(); AST tmp787_AST_in = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); { _loop2262: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==COMMA)) { AST tmp788_AST_in = (AST)_t; match(_t,COMMA); _t = _t.getNextSibling(); AST tmp789_AST_in = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); } else { break _loop2262; } } while (true); } AST tmp790_AST_in = (AST)_t; match(_t,RIGHTPAREN); _t = _t.getNextSibling(); _t = __t2260; _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } } } else { break _loop2263; } } while (true); } AST tmp791_AST_in = (AST)_t; match(_t,RIGHTPAREN); _t = _t.getNextSibling(); state_end(_t); _t = _retTree; _t = __t2253; _t = _t.getNextSibling(); _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/TreeParser03.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparser03/TreeParser03.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 1519, 270, 278, 9237, 395, 340, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 1519, 270, 278, 9237, 395, 340, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, 13, 67, 88, 31, 9506, 202, 9053, 1001, 88, 22, 30304, 273, 389, 88, 31, 202, 202, 9053, 1853, 4700, 24, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 1916, 24899, 88, 16, 9344, 1769, 202, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 202, 202, 9053, 1853, 27714, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 1916, 24899, 88, 16, 7775, 1769, 202, 202, 67, 88, 273, 389, 88, 18, 588, 2134, 10291, 5621, 202, 202, 9053, 1853, 4700, 26, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 1916, 24899, 88, 16, 734, 1769, 202, 202, 67, 88, 273, 389, 88, 18, 588, 2134, 10291, 5621, 202, 202, 9053, 1853, 14509, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 1916, 24899, 88, 16, 10066, 15111, 1769, 202, 202, 67, 88, 273, 389, 88, 18, 588, 2134, 10291, 5621, 202, 202, 95, 202, 202, 430, 261, 67, 88, 631, 2011, 13, 389, 88, 33, 9053, 8560, 31, 202, 202, 9610, 261, 389, 88, 18, 588, 559, 10756, 288, 202, 202, 3593, 1599, 30, 202, 202, 95, 1082, 202, 4669, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 1519, 270, 278, 9237, 395, 340, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 1519, 270, 278, 9237, 395, 340, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, 13, 67, 88, 31, 9506, 202, 9053, 1001, 88, 22, 30304, 273, 389, 88, 31, 202, 202, 9053, 1853, 4700, 24, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 1916, 24899, 88, 16, 9344, 1769, 202, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 202, 202, 9053, 1853, 27714, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 1916, 24899, 88, 16, 2 ]
buf.append( tag.getCellAttributes() );
buf.append( tag.getCellAttributes().toString() );
private StringBuffer getHTMLData( List viewableData ) throws JspException { StringBuffer buf = new StringBuffer( 8000 ); previousRow = new Hashtable( 10 ); // variables to hold the previous row columns values. nextRow = new Hashtable( 10 ); // variables to hold next row column values. // paulsenj:columndecorator // build an array of column decorator objects - 1 for each column tag ColumnDecorator[] colDecorators = new ColumnDecorator[columns.size()]; for( int c = 0; c < columns.size(); c++ ) { String columnDecorator = ( (ColumnTag)columns.get( c ) ).getDecorator(); colDecorators[c] = loadColumnDecorator( columnDecorator ); if( colDecorators[c] != null ) colDecorators[c].init( this.pageContext, this.list ); } // Ok, start bouncing through our list......... int rowcnt = 0; buf.append( this.getTableHeader() ); Iterator iterator = viewableData.iterator(); while( iterator.hasNext() ) { Object obj = iterator.next(); if( this.dec != null ) { String rt = this.dec.initRow( obj, rowcnt, rowcnt + this.getOffsetValue() ); if( rt != null ) buf.append( rt ); } // paulsenj:columndecorator for( int c = 0; c < columns.size(); c++ ) { if( colDecorators[c] != null ) { colDecorators[c].initRow( obj, rowcnt, rowcnt + ( this.getPagesizeValue() * ( this.pageNumber - 1 ) ) ); } } pageContext.setAttribute( "smartRow", obj ); if( this.dec != null ) { String rt = this.dec.startRow(); if( rt != null ) buf.append( rt ); } // Start building the row to be displayed... buf.append( "<tr" ); if( rowcnt % 2 == 0 ) { buf.append( " class=\"tableRowOdd\"" ); } else { buf.append( " class=\"tableRowEven\"" ); } buf.append( ">\n" ); // Bounce through our columns and pull out the data from this object // that we are currently focused on (lives in "smartRow"). for( int i = 0; i < this.columns.size(); i++ ) { ColumnTag tag = (ColumnTag)this.columns.get( i ); buf.append( "<td " ); buf.append( tag.getCellAttributes() ); buf.append( ">" ); // Get the value to be displayed for the column Object value = null; if( tag.getValue() != null ) { value = tag.getValue(); } else { if( tag.getProperty().equals( "ff" ) ) { value = String.valueOf( rowcnt ); } else { value = this.lookup( pageContext, "smartRow", tag.getProperty(), null, true ); // paulsenj:columndecorator // if columndecorator supplied for this column // call it to decorate the value // ed - I call the column decorator after the table decorator is called // feel free to modify this as you wish if( colDecorators[i] != null ) value = colDecorators[i].decorate( value ); } } // By default, we show null values as empty strings, unless the // user tells us otherwise. if( value == null || value.equals( "null" ) ) { if( tag.getNulls() == null || tag.getNulls().equals( "false" ) ) { value = ""; } } // String to hold what's left over after value is chopped String leftover = ""; boolean chopped = false; String tempValue = ""; if( value != null ) { tempValue = value.toString(); } // trim the string if a maxLength or maxWords is defined if( tag.getMaxLength() > 0 && tempValue.length() > tag.getMaxLength() ) { leftover = "..." + tempValue.substring( tag.getMaxLength(), tempValue.length() ); value = tempValue.substring( 0, tag.getMaxLength() ) + "..."; chopped = true; } else if( tag.getMaxWords() > 0 ) { StringBuffer tmpBuffer = new StringBuffer(); StringTokenizer st = new StringTokenizer( tempValue ); int numTokens = st.countTokens(); if( numTokens > tag.getMaxWords() ) { int x = 0; while( st.hasMoreTokens() && ( x < tag.getMaxWords() ) ) { tmpBuffer.append( st.nextToken() + " " ); x++; } leftover = "..." + tempValue.substring( tmpBuffer.length(), tempValue.length() ); tmpBuffer.append( "..." ); value = tmpBuffer; chopped = true; } } // Are we supposed to set up a link to the data being displayed // in this column... if( tag.getAutolink() != null && tag.getAutolink().equals( "true" ) ) { // TODO, set up some regex style function that does a search // and replace on email addresses, and URLs... Don't use any // 3rd party stuff... value = this.autoLink( value.toString() ); } // TODO - This args stuff is very bad, it really needs cleaned up.. if( tag.getHref() != null ) { if( tag.getParamId() != null ) { String name = tag.getParamName(); if( name == null ) { name = "smartRow"; } Object param = this.lookup( pageContext, name, tag.getParamProperty(), tag.getParamScope(), true ); // flag to determine if we should use a ? or a & int index = tag.getHref().indexOf( '?' ); String separator = ""; if( index == -1 ) { separator = "?"; } else { separator = "&"; } // if value has been chopped, add leftover as title if( chopped ) { value = "<a href=\"" + tag.getHref() + separator + tag.getParamId() + "=" + param + "\" title=\"" + leftover + "\">" + value + "</a>"; } else { value = "<a href=\"" + tag.getHref() + separator + tag.getParamId() + "=" + param + "\">" + value + "</a>"; } } else { // if value has been chopped, add leftover as title if( chopped ) { value = "<a href=\"" + tag.getHref() + "\" title=\"" + leftover + "\">" + value + "</a>"; } else { value = "<a href=\"" + tag.getHref() + "\">" + value + "</a>"; } } } // Ok, let's write this column's cell... /* if( rowcnt % 2 == 0 ) { buf.append( this.value ); } else { buf.append( value ); } */ if( tag.getGroup() != null ) { try { //System.err.println ( "Tag getGroup : " + tag.getGroup() ); buf.append( this.groupColumns( value.toString(), new Integer( (String)tag.getGroup() ).intValue() ) ); } catch( Exception e ) { System.err.println( e.getMessage() ); e.printStackTrace( System.err ); } } else { if( chopped && tag.getHref() == null ) { buf.append( value.toString().substring( 0, value.toString().length() - 3 ) ); buf.append( "<a style=\"cursor: help;\" title=\"" + leftover + "\">" ); buf.append( value.toString().substring( value.toString().length() - 3, value.toString().length() ) + "</a>" ); } else { buf.append( value ); } } buf.append( "</td>\n" ); } // Special case, if they didn't provide any columns, then just spit out // the object's string representation to the table. if( this.columns.size() == 0 ) { buf.append( "<td class=\"tableCell\">" ); buf.append( obj.toString() ); buf.append( "</td>" ); } buf.append( "</tr>\n" ); if( this.dec != null ) { String rt = this.dec.finishRow(); if( rt != null ) buf.append( rt ); } // paulsen:columndecorator for( int c = 0; c < columns.size(); c++ ) if( colDecorators[c] != null ) colDecorators[c].finishRow(); rowcnt++; } if( rowcnt == 0 ) { buf.append( "<tr class=\"tableRowOdd\">" ); buf.append( "<td class=\"tableCell\" align=\"center\" colspan=\"" + ( this.columns.size() + 1 ) + "\">" + prop.getProperty( "basic.msg.empty_list" ) + "</td></tr>" ); } buf.append( this.getTableFooter() ); buf.append( "</table>\n" ); if( this.dec != null ) this.dec.finish(); this.dec = null; // paulsenj:columndecorator for( int c = 0; c < columns.size(); c++ ) if( colDecorators[c] != null ) colDecorators[c].finish(); return buf; }
10316 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10316/bedf282fd6019fb46eabedf921e13b56106629f2/TableTag.java/clean/_OLD/displaytag08/src/org/apache/taglibs/display/TableTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 6674, 336, 4870, 751, 12, 987, 1476, 429, 751, 262, 1216, 27485, 282, 288, 1377, 6674, 1681, 273, 394, 6674, 12, 1725, 3784, 11272, 1377, 2416, 1999, 273, 394, 18559, 12, 1728, 11272, 368, 3152, 358, 6887, 326, 2416, 1027, 2168, 924, 18, 1377, 1024, 1999, 273, 394, 18559, 12, 1728, 11272, 368, 3152, 358, 6887, 1024, 1027, 1057, 924, 18, 1377, 368, 6790, 332, 87, 275, 78, 30, 2827, 19142, 1377, 368, 1361, 392, 526, 434, 1057, 7367, 2184, 300, 404, 364, 1517, 1057, 1047, 1377, 4753, 10361, 8526, 645, 7859, 3062, 273, 394, 4753, 10361, 63, 5112, 18, 1467, 1435, 15533, 1377, 364, 12, 509, 276, 273, 374, 31, 276, 411, 2168, 18, 1467, 5621, 276, 9904, 262, 288, 540, 514, 1057, 10361, 273, 261, 261, 1494, 1805, 13, 5112, 18, 588, 12, 276, 262, 262, 18, 588, 10361, 5621, 540, 645, 7859, 3062, 63, 71, 65, 273, 1262, 1494, 10361, 12, 1057, 10361, 11272, 540, 309, 12, 645, 7859, 3062, 63, 71, 65, 480, 446, 262, 5411, 645, 7859, 3062, 63, 71, 8009, 2738, 12, 333, 18, 2433, 1042, 16, 333, 18, 1098, 11272, 1377, 289, 1377, 368, 16154, 16, 787, 324, 465, 2822, 3059, 3134, 666, 6265, 838, 2777, 1377, 509, 1027, 13085, 273, 374, 31, 1377, 1681, 18, 6923, 12, 333, 18, 588, 1388, 1864, 1435, 11272, 1377, 4498, 2775, 273, 1476, 429, 751, 18, 9838, 5621, 1377, 1323, 12, 2775, 18, 5332, 2134, 1435, 262, 288, 540, 1033, 1081, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 6674, 336, 4870, 751, 12, 987, 1476, 429, 751, 262, 1216, 27485, 282, 288, 1377, 6674, 1681, 273, 394, 6674, 12, 1725, 3784, 11272, 1377, 2416, 1999, 273, 394, 18559, 12, 1728, 11272, 368, 3152, 358, 6887, 326, 2416, 1027, 2168, 924, 18, 1377, 1024, 1999, 273, 394, 18559, 12, 1728, 11272, 368, 3152, 358, 6887, 1024, 1027, 1057, 924, 18, 1377, 368, 6790, 332, 87, 275, 78, 30, 2827, 19142, 1377, 368, 1361, 392, 526, 434, 1057, 7367, 2184, 300, 404, 364, 1517, 1057, 1047, 1377, 4753, 10361, 8526, 645, 7859, 3062, 273, 394, 4753, 10361, 63, 5112, 18, 1467, 1435, 15533, 1377, 364, 12, 509, 276, 273, 374, 31, 276, 411, 2168, 18, 1467, 5621, 2 ]
final Long o = iObject.getDetails().getOwner().getId(); final Long g = iObject.getDetails().getGroup().getId();
final Long o = HibernateUtils.nullSafeOwnerId(iObject); final Long g = HibernateUtils.nullSafeGroupId(iObject);
public boolean isOwnerOrSupervisor( IObject iObject ) { if ( iObject == null ) throw new ApiUsageException("Object can't be null"); final Long o = iObject.getDetails().getOwner().getId(); final Long g = iObject.getDetails().getGroup().getId(); final EventContext ec = cd.getCurrentEventContext(); final boolean isAdmin = ec.isCurrentUserAdmin(); final boolean isPI = ec.getLeaderOfGroupsList().contains(g); final boolean isOwner = ec.getCurrentUserId().equals(o); if (isAdmin || isPI || isOwner) { return true; } return false; }
55636 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55636/45821f6543f7eab739b589fd92a8f89432d69ee5/BasicSecuritySystem.java/buggy/components/server/src/ome/security/basic/BasicSecuritySystem.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 353, 5541, 1162, 8051, 10227, 12, 467, 921, 277, 921, 262, 202, 95, 202, 202, 430, 261, 277, 921, 422, 446, 262, 604, 394, 4458, 5357, 503, 2932, 921, 848, 1404, 506, 446, 8863, 202, 202, 6385, 3407, 320, 273, 277, 921, 18, 588, 3790, 7675, 588, 5541, 7675, 26321, 5621, 202, 202, 6385, 3407, 314, 273, 277, 921, 18, 588, 3790, 7675, 588, 1114, 7675, 26321, 5621, 9506, 202, 6385, 2587, 1042, 6557, 273, 7976, 18, 588, 3935, 1133, 1042, 5621, 202, 202, 6385, 1250, 23467, 273, 6557, 18, 291, 3935, 1299, 4446, 5621, 202, 202, 6385, 1250, 353, 1102, 565, 273, 6557, 18, 588, 15254, 951, 3621, 682, 7675, 12298, 12, 75, 1769, 202, 202, 6385, 1250, 353, 5541, 273, 6557, 18, 588, 3935, 10502, 7675, 14963, 12, 83, 1769, 202, 202, 430, 261, 291, 4446, 747, 353, 1102, 747, 353, 5541, 13, 202, 202, 95, 1082, 202, 2463, 638, 31, 202, 202, 97, 202, 202, 2463, 629, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 353, 5541, 1162, 8051, 10227, 12, 467, 921, 277, 921, 262, 202, 95, 202, 202, 430, 261, 277, 921, 422, 446, 262, 604, 394, 4458, 5357, 503, 2932, 921, 848, 1404, 506, 446, 8863, 202, 202, 6385, 3407, 320, 273, 277, 921, 18, 588, 3790, 7675, 588, 5541, 7675, 26321, 5621, 202, 202, 6385, 3407, 314, 273, 277, 921, 18, 588, 3790, 7675, 588, 1114, 7675, 26321, 5621, 9506, 202, 6385, 2587, 1042, 6557, 273, 7976, 18, 588, 3935, 1133, 1042, 5621, 202, 202, 6385, 1250, 23467, 273, 6557, 18, 291, 3935, 1299, 4446, 5621, 202, 202, 6385, 1250, 353, 1102, 565, 273, 6557, 18, 588, 15254, 951, 3621, 682, 7675, 12298, 12, 75, 1769, 2 ]
}
}
public int read (ByteBuffer dst) throws IOException { int s = (int)size(); if (buf == null) { throw new EOFException("file not mapped"); } for (int i=0; i<s; i++) { dst.put( buf.get() ); } return s; }
1023 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1023/8cef25e737d97238751152631de70237a2aabaa4/FileChannelImpl.java/clean/libjava/gnu/java/nio/FileChannelImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 509, 855, 261, 12242, 3046, 13, 1216, 1860, 225, 288, 565, 509, 272, 273, 261, 474, 13, 1467, 5621, 565, 309, 261, 4385, 422, 446, 13, 202, 565, 288, 3639, 604, 394, 30051, 2932, 768, 486, 5525, 8863, 202, 565, 289, 565, 364, 261, 474, 277, 33, 20, 31, 277, 32, 87, 31, 277, 27245, 202, 565, 288, 3639, 3046, 18, 458, 12, 1681, 18, 588, 1435, 11272, 202, 565, 289, 565, 327, 272, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 509, 855, 261, 12242, 3046, 13, 1216, 1860, 225, 288, 565, 509, 272, 273, 261, 474, 13, 1467, 5621, 565, 309, 261, 4385, 422, 446, 13, 202, 565, 288, 3639, 604, 394, 30051, 2932, 768, 486, 5525, 8863, 202, 565, 289, 565, 364, 261, 474, 277, 33, 20, 31, 277, 32, 87, 31, 277, 27245, 202, 565, 288, 3639, 3046, 18, 458, 12, 1681, 18, 588, 1435, 11272, 202, 565, 289, 565, 327, 272, 31, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
private Object condition(TokenStream ts, Source source)
private Object condition(TokenStream ts)
private Object condition(TokenStream ts, Source source) throws IOException, JavaScriptException { Object pn; mustMatchToken(ts, ts.LP, "msg.no.paren.cond"); source.append((char)ts.LP); pn = expr(ts, source, false); mustMatchToken(ts, ts.RP, "msg.no.paren.after.cond"); source.append((char)ts.RP); // there's a check here in jsparse.c that corrects = to == return pn; }
12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/cb763059f39a0f44e8695140a747f151637d1ad8/Parser.java/buggy/js/rhino/src/org/mozilla/javascript/Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1033, 2269, 12, 1345, 1228, 3742, 13, 3639, 1216, 1860, 16, 11905, 503, 565, 288, 3639, 1033, 11059, 31, 3639, 1297, 2060, 1345, 12, 3428, 16, 3742, 18, 14461, 16, 315, 3576, 18, 2135, 18, 13012, 18, 10013, 8863, 3639, 1084, 18, 6923, 12443, 3001, 13, 3428, 18, 14461, 1769, 3639, 11059, 273, 3065, 12, 3428, 16, 1084, 16, 629, 1769, 3639, 1297, 2060, 1345, 12, 3428, 16, 3742, 18, 54, 52, 16, 315, 3576, 18, 2135, 18, 13012, 18, 5205, 18, 10013, 8863, 3639, 1084, 18, 6923, 12443, 3001, 13, 3428, 18, 54, 52, 1769, 3639, 368, 1915, 1807, 279, 866, 2674, 316, 3828, 2670, 18, 71, 716, 3434, 87, 273, 358, 422, 3639, 327, 11059, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1033, 2269, 12, 1345, 1228, 3742, 13, 3639, 1216, 1860, 16, 11905, 503, 565, 288, 3639, 1033, 11059, 31, 3639, 1297, 2060, 1345, 12, 3428, 16, 3742, 18, 14461, 16, 315, 3576, 18, 2135, 18, 13012, 18, 10013, 8863, 3639, 1084, 18, 6923, 12443, 3001, 13, 3428, 18, 14461, 1769, 3639, 11059, 273, 3065, 12, 3428, 16, 1084, 16, 629, 1769, 3639, 1297, 2060, 1345, 12, 3428, 16, 3742, 18, 54, 52, 16, 315, 3576, 18, 2135, 18, 13012, 18, 5205, 18, 10013, 8863, 3639, 1084, 18, 6923, 12443, 3001, 13, 3428, 18, 54, 52, 1769, 3639, 368, 1915, 1807, 279, 866, 2674, 316, 3828, 2670, 18, 71, 716, 3434, 87, 273, 358, 422, 3639, 327, 11059, 2 ]
+ " tunnels with lag of " + lag + " and " + throttleEvents + " throttle events)");
+ " tunnels with lag of " + lag + ")");
public int acceptTunnelRequest(TunnelCreateMessage msg) { if (_context.getProperty(Router.PROP_SHUTDOWN_IN_PROGRESS) != null) { if (_log.shouldLog(Log.WARN)) _log.warn("Refusing tunnel request since we are shutting down ASAP"); return TunnelHistory.TUNNEL_REJECT_CRIT; } long lag = _context.jobQueue().getMaxLag(); RateStat rs = _context.statManager().getRate("router.throttleNetworkCause"); Rate r = null; if (rs != null) r = rs.getRate(60*1000); long throttleEvents = (r != null ? r.getCurrentEventCount() + r.getLastEventCount() : 0); if (throttleEvents > THROTTLE_EVENT_LIMIT) { if (_log.shouldLog(Log.DEBUG)) _log.debug("Refusing tunnel request with the job lag of " + lag + " since there have been " + throttleEvents + " throttle events in the last 15 minutes or so"); _context.statManager().addRateData("router.throttleTunnelCause", lag, lag); return TunnelHistory.TUNNEL_REJECT_TRANSIENT_OVERLOAD; } rs = _context.statManager().getRate("transport.sendProcessingTime"); r = null; if (rs != null) r = rs.getRate(10*60*1000); double processTime = (r != null ? r.getAverageValue() : 0); if (processTime > 2000) { if (_log.shouldLog(Log.DEBUG)) _log.debug("Refusing tunnel request with the job lag of " + lag + "since the 10 minute message processing time is too slow (" + processTime + ")"); _context.statManager().addRateData("router.throttleTunnelProcessingTime10m", (long)processTime, (long)processTime); return TunnelHistory.TUNNEL_REJECT_TRANSIENT_OVERLOAD; } if (rs != null) r = rs.getRate(60*1000); processTime = (r != null ? r.getAverageValue() : 0); if (processTime > 2000) { if (_log.shouldLog(Log.DEBUG)) _log.debug("Refusing tunnel request with the job lag of " + lag + "since the 1 minute message processing time is too slow (" + processTime + ")"); _context.statManager().addRateData("router.throttleTunnelProcessingTime1m", (long)processTime, (long)processTime); return TunnelHistory.TUNNEL_REJECT_TRANSIENT_OVERLOAD; } rs = _context.statManager().getRate("transport.sendMessageFailureLifetime"); r = null; if (rs != null) r = rs.getRate(60*1000); double failCount = (r != null ? r.getCurrentEventCount() + r.getLastEventCount() : 0); if (failCount > 100) { long periods = r.getLifetimePeriods(); long maxFailCount = r.getExtremeEventCount(); if ( (periods > 0) && (maxFailCount > 100) ) { if (_context.random().nextInt((int)maxFailCount) <= failCount) { if (_log.shouldLog(Log.DEBUG)) _log.debug("Refusing tunnel request with the job lag of " + lag + "since the 1 minute message failure count is too high (" + failCount + "/" + maxFailCount + ")"); _context.statManager().addRateData("router.throttleTunnelFailCount1m", (long)failCount, (long)maxFailCount); return TunnelHistory.TUNNEL_REJECT_TRANSIENT_OVERLOAD; } } } int numTunnels = _context.tunnelManager().getParticipatingCount(); if (numTunnels > getMinThrottleTunnels()) { double growthFactor = getTunnelGrowthFactor(); Rate avgTunnels = _context.statManager().getRate("tunnel.participatingTunnels").getRate(60*60*1000); if (avgTunnels != null) { double avg = 0; if (avgTunnels.getLastEventCount() > 0) avg = avgTunnels.getAverageValue(); else avg = avgTunnels.getLifetimeAverageValue(); int min = getMinThrottleTunnels(); if (avg < min) avg = min; if ( (avg > 0) && (avg*growthFactor < numTunnels) ) { // we're accelerating, lets try not to take on too much too fast double probAccept = (avg*growthFactor) / numTunnels; int v = _context.random().nextInt(100); if (v < probAccept*100) { // ok if (_log.shouldLog(Log.INFO)) _log.info("Probabalistically accept tunnel request (p=" + probAccept + " v=" + v + " avg=" + avg + " current=" + numTunnels + ")"); } else { if (_log.shouldLog(Log.WARN)) _log.warn("Probabalistically refusing tunnel request (avg=" + avg + " current=" + numTunnels + ")"); _context.statManager().addRateData("router.throttleTunnelProbTooFast", (long)(numTunnels-avg), 0); return TunnelHistory.TUNNEL_REJECT_PROBABALISTIC_REJECT; } } else { if (_log.shouldLog(Log.INFO)) _log.info("Accepting tunnel request, since the average is " + avg + " and we only have " + numTunnels + ")"); } } Rate tunnelTestTime10m = _context.statManager().getRate("tunnel.testSuccessTime").getRate(10*60*1000); Rate tunnelTestTime60m = _context.statManager().getRate("tunnel.testSuccessTime").getRate(60*60*1000); if ( (tunnelTestTime10m != null) && (tunnelTestTime60m != null) && (tunnelTestTime10m.getLastEventCount() > 0) ) { double avg10m = tunnelTestTime10m.getAverageValue(); double avg60m = 0; if (tunnelTestTime60m.getLastEventCount() > 0) avg60m = tunnelTestTime60m.getAverageValue(); else avg60m = tunnelTestTime60m.getLifetimeAverageValue(); if (avg60m < 2000) avg60m = 2000; // minimum before complaining if ( (avg60m > 0) && (avg10m > avg60m * growthFactor) ) { double probAccept = (avg60m*growthFactor)/avg10m; int v = _context.random().nextInt(100); if (v < probAccept*100) { // ok if (_log.shouldLog(Log.INFO)) _log.info("Probabalistically accept tunnel request (p=" + probAccept + " v=" + v + " test time avg 10m=" + avg10m + " 60m=" + avg60m + ")"); } else { if (_log.shouldLog(Log.WARN)) _log.warn("Probabalistically refusing tunnel request (test time avg 10m=" + avg10m + " 60m=" + avg60m + ")"); _context.statManager().addRateData("router.throttleTunnelProbTestSlow", (long)(avg10m-avg60m), 0); return TunnelHistory.TUNNEL_REJECT_PROBABALISTIC_REJECT; } } } } String maxTunnels = _context.getProperty(PROP_MAX_TUNNELS); if (maxTunnels != null) { try { int max = Integer.parseInt(maxTunnels); if (numTunnels >= max) { if (_log.shouldLog(Log.WARN)) _log.warn("Refusing tunnel request since we are already participating in " + numTunnels + " (our max is " + max + ")"); _context.statManager().addRateData("router.throttleTunnelMaxExceeded", numTunnels, 0); return TunnelHistory.TUNNEL_REJECT_BANDWIDTH; } } catch (NumberFormatException nfe) { // no default, ignore it } } // ok, we're not hosed, but can we handle the bandwidth requirements // of another tunnel? rs = _context.statManager().getRate("tunnel.participatingMessageCount"); r = null; if (rs != null) r = rs.getRate(10*60*1000); double messagesPerTunnel = (r != null ? r.getAverageValue() : 0d); if (messagesPerTunnel < DEFAULT_MESSAGES_PER_TUNNEL_ESTIMATE) messagesPerTunnel = DEFAULT_MESSAGES_PER_TUNNEL_ESTIMATE; int participatingTunnels = (r != null ? (int) (r.getLastEventCount() + r.getCurrentEventCount()) : 0); if (participatingTunnels <= 0) participatingTunnels = _context.tunnelManager().getParticipatingCount(); double bytesAllocated = messagesPerTunnel * participatingTunnels * 1024; if (!allowTunnel(bytesAllocated, numTunnels)) { _context.statManager().addRateData("router.throttleTunnelBandwidthExceeded", (long)bytesAllocated, 0); return TunnelHistory.TUNNEL_REJECT_BANDWIDTH; } _context.statManager().addRateData("tunnel.bytesAllocatedAtAccept", (long)bytesAllocated, msg.getDurationSeconds()*1000); if (_log.shouldLog(Log.DEBUG)) _log.debug("Accepting a new tunnel request (now allocating " + bytesAllocated + " bytes across " + numTunnels + " tunnels with lag of " + lag + " and " + throttleEvents + " throttle events)"); return TUNNEL_ACCEPT; }
27437 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27437/1eebd5463f5a4783008b5ae42ea8091e4d54fe7f/RouterThrottleImpl.java/clean/router/java/src/net/i2p/router/RouterThrottleImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 2791, 20329, 691, 12, 20329, 1684, 1079, 1234, 13, 288, 540, 309, 261, 67, 2472, 18, 588, 1396, 12, 8259, 18, 15811, 67, 2664, 1693, 12711, 67, 706, 67, 24022, 13, 480, 446, 13, 288, 5411, 309, 261, 67, 1330, 18, 13139, 1343, 12, 1343, 18, 27999, 3719, 7734, 389, 1330, 18, 8935, 2932, 1957, 9940, 14825, 590, 3241, 732, 854, 24376, 2588, 5355, 2203, 8863, 5411, 327, 399, 8564, 5623, 18, 56, 2124, 50, 2247, 67, 862, 5304, 67, 5093, 1285, 31, 3639, 289, 7734, 1525, 17241, 273, 389, 2472, 18, 4688, 3183, 7675, 588, 2747, 26093, 5621, 3639, 13025, 5000, 3597, 273, 389, 2472, 18, 5642, 1318, 7675, 588, 4727, 2932, 10717, 18, 27971, 298, 3906, 10683, 8863, 3639, 13025, 436, 273, 446, 31, 3639, 309, 261, 5453, 480, 446, 13, 5411, 436, 273, 3597, 18, 588, 4727, 12, 4848, 14, 18088, 1769, 3639, 1525, 18304, 3783, 273, 261, 86, 480, 446, 692, 436, 18, 588, 3935, 1133, 1380, 1435, 397, 436, 18, 588, 3024, 1133, 1380, 1435, 294, 374, 1769, 3639, 309, 261, 27971, 298, 3783, 405, 7662, 1457, 1470, 900, 67, 10454, 67, 8283, 13, 288, 5411, 309, 261, 67, 1330, 18, 13139, 1343, 12, 1343, 18, 9394, 3719, 7734, 389, 1330, 18, 4148, 2932, 1957, 9940, 14825, 590, 598, 326, 1719, 17241, 434, 315, 397, 17241, 18701, 397, 315, 3241, 1915, 1240, 2118, 315, 397, 18304, 3783, 18701, 397, 315, 18304, 2641, 316, 326, 1142, 4711, 6824, 578, 1427, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 2791, 20329, 691, 12, 20329, 1684, 1079, 1234, 13, 288, 540, 309, 261, 67, 2472, 18, 588, 1396, 12, 8259, 18, 15811, 67, 2664, 1693, 12711, 67, 706, 67, 24022, 13, 480, 446, 13, 288, 5411, 309, 261, 67, 1330, 18, 13139, 1343, 12, 1343, 18, 27999, 3719, 7734, 389, 1330, 18, 8935, 2932, 1957, 9940, 14825, 590, 3241, 732, 854, 24376, 2588, 5355, 2203, 8863, 5411, 327, 399, 8564, 5623, 18, 56, 2124, 50, 2247, 67, 862, 5304, 67, 5093, 1285, 31, 3639, 289, 7734, 1525, 17241, 273, 389, 2472, 18, 4688, 3183, 7675, 588, 2747, 26093, 5621, 3639, 13025, 5000, 3597, 273, 389, 2472, 18, 5642, 1318, 7675, 588, 4727, 2932, 10717, 18, 27971, 2 ]
target.setCurrentThread(frame.getThread(), false); ((Thread)frame.getThread()).setCurrentStackFrame(frame, false);
target.lockTarget();
public Variable createVariable(StackFrame frame, String code) throws CDIException { Target target = (Target)frame.getTarget(); Thread currentThread = (Thread)target.getCurrentThread(); StackFrame currentFrame = currentThread.getCurrentStackFrame(); target.setCurrentThread(frame.getThread(), false); ((Thread)frame.getThread()).setCurrentStackFrame(frame, false); try { MISession mi = target.getMISession(); CommandFactory factory = mi.getCommandFactory(); MIVarCreate var = factory.createMIVarCreate(code); mi.postCommand(var); MIVarCreateInfo info = var.getMIVarCreateInfo(); if (info == null) { throw new CDIException(CdiResources.getString("cdi.Common.No_answer")); //$NON-NLS-1$ } Variable variable = new LocalVariable(target, null, frame, code, null, 0, 0, info.getMIVar()); List varList = getVariableList(target); varList.add(variable); return variable; } catch (MIException e) { throw new MI2CDIException(e); } finally { target.setCurrentThread(currentThread, false); currentThread.setCurrentStackFrame(currentFrame, false); } }
54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/06016b34056172fd0d60c93ada3d7bfd5f880a15/ExpressionManager.java/clean/debug/org.eclipse.cdt.debug.mi.core/cdi/org/eclipse/cdt/debug/mi/core/cdi/ExpressionManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 7110, 752, 3092, 12, 2624, 3219, 2623, 16, 514, 981, 13, 1216, 385, 2565, 503, 288, 202, 202, 2326, 1018, 273, 261, 2326, 13, 3789, 18, 588, 2326, 5621, 202, 202, 3830, 11800, 273, 261, 3830, 13, 3299, 18, 588, 3935, 3830, 5621, 202, 202, 2624, 3219, 783, 3219, 273, 11800, 18, 588, 3935, 2624, 3219, 5621, 202, 202, 3299, 18, 542, 3935, 3830, 12, 3789, 18, 588, 3830, 9334, 629, 1769, 202, 202, 12443, 3830, 13, 3789, 18, 588, 3830, 1435, 2934, 542, 3935, 2624, 3219, 12, 3789, 16, 629, 1769, 202, 202, 698, 288, 1082, 202, 7492, 2157, 12837, 273, 1018, 18, 588, 7492, 2157, 5621, 1082, 202, 2189, 1733, 3272, 273, 12837, 18, 588, 2189, 1733, 5621, 1082, 202, 7492, 1537, 1684, 569, 273, 3272, 18, 2640, 7492, 1537, 1684, 12, 710, 1769, 1082, 202, 9197, 18, 2767, 2189, 12, 1401, 1769, 1082, 202, 7492, 1537, 1684, 966, 1123, 273, 569, 18, 588, 7492, 1537, 1684, 966, 5621, 1082, 202, 430, 261, 1376, 422, 446, 13, 288, 9506, 202, 12849, 394, 385, 2565, 503, 12, 39, 3211, 3805, 18, 588, 780, 2932, 71, 3211, 18, 6517, 18, 2279, 67, 13490, 7923, 1769, 4329, 3993, 17, 5106, 17, 21, 8, 1082, 202, 97, 1082, 202, 3092, 2190, 273, 394, 3566, 3092, 12, 3299, 16, 446, 16, 2623, 16, 981, 16, 446, 16, 374, 16, 374, 16, 1123, 18, 588, 7492, 1537, 10663, 1082, 202, 682, 569, 682, 273, 13522, 682, 12, 3299, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7110, 752, 3092, 12, 2624, 3219, 2623, 16, 514, 981, 13, 1216, 385, 2565, 503, 288, 202, 202, 2326, 1018, 273, 261, 2326, 13, 3789, 18, 588, 2326, 5621, 202, 202, 3830, 11800, 273, 261, 3830, 13, 3299, 18, 588, 3935, 3830, 5621, 202, 202, 2624, 3219, 783, 3219, 273, 11800, 18, 588, 3935, 2624, 3219, 5621, 202, 202, 3299, 18, 542, 3935, 3830, 12, 3789, 18, 588, 3830, 9334, 629, 1769, 202, 202, 12443, 3830, 13, 3789, 18, 588, 3830, 1435, 2934, 542, 3935, 2624, 3219, 12, 3789, 16, 629, 1769, 202, 202, 698, 288, 1082, 202, 7492, 2157, 12837, 273, 1018, 18, 588, 7492, 2157, 5621, 1082, 202, 2189, 1733, 3272, 273, 12837, 18, 2 ]
if (containsCertificate(alias))
log.entering(this.getClass().getName(), "putCertificate", new Object[] { alias, cert }); if (! containsCertificate(alias))
public void putCertificate(String alias, Certificate cert) { if (containsCertificate(alias)) { return; } Properties p = new Properties(); p.put("alias", fixAlias(alias)); add(new CertificateEntry(cert, new Date(), p)); }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/abad947539d38da7392ff914207d1bb7d5538320/GnuPublicKeyring.java/buggy/core/src/classpath/gnu/gnu/javax/crypto/keyring/GnuPublicKeyring.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1378, 4719, 12, 780, 2308, 16, 6660, 3320, 13, 225, 288, 565, 613, 18, 2328, 310, 12, 2211, 18, 588, 797, 7675, 17994, 9334, 315, 458, 4719, 3113, 394, 1033, 8526, 288, 2308, 16, 3320, 15549, 225, 309, 16051, 1914, 4719, 12, 4930, 3719, 1377, 288, 3639, 327, 31, 1377, 289, 565, 6183, 293, 273, 394, 6183, 5621, 565, 293, 18, 458, 2932, 4930, 3113, 2917, 2936, 12, 4930, 10019, 565, 527, 12, 2704, 6660, 1622, 12, 7593, 16, 394, 2167, 9334, 293, 10019, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1378, 4719, 12, 780, 2308, 16, 6660, 3320, 13, 225, 288, 565, 613, 18, 2328, 310, 12, 2211, 18, 588, 797, 7675, 17994, 9334, 315, 458, 4719, 3113, 394, 1033, 8526, 288, 2308, 16, 3320, 15549, 225, 309, 16051, 1914, 4719, 12, 4930, 3719, 1377, 288, 3639, 327, 31, 1377, 289, 565, 6183, 293, 273, 394, 6183, 5621, 565, 293, 18, 458, 2932, 4930, 3113, 2917, 2936, 12, 4930, 10019, 565, 527, 12, 2704, 6660, 1622, 12, 7593, 16, 394, 2167, 9334, 293, 10019, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public Object executeRegExp(Object regExp, Scriptable scopeObj, String str, int indexp[], boolean test)
protected Object executeRegExp(Object regExp, Scriptable scopeObj, String str, int indexp[], int matchType)
public Object executeRegExp(Object regExp, Scriptable scopeObj, String str, int indexp[], boolean test) { if (regExp instanceof NativeRegExp) return ((NativeRegExp) regExp).executeRegExp(scopeObj, str, indexp, test); return null; }
7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/4aee7d25d756bce350cfec71216aff6e8c8bbc4b/RegExpImpl.java/clean/js/rhino/org/mozilla/javascript/regexp/RegExpImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1033, 1836, 13673, 12, 921, 31223, 16, 22780, 2146, 2675, 16, 4766, 514, 609, 16, 509, 770, 84, 63, 6487, 1250, 1842, 13, 565, 288, 3639, 309, 261, 1574, 2966, 1276, 16717, 13673, 13, 5411, 327, 14015, 9220, 13673, 13, 31223, 2934, 8837, 13673, 12, 4887, 2675, 16, 609, 16, 4766, 12900, 770, 84, 16, 1842, 1769, 3639, 327, 446, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1033, 1836, 13673, 12, 921, 31223, 16, 22780, 2146, 2675, 16, 4766, 514, 609, 16, 509, 770, 84, 63, 6487, 1250, 1842, 13, 565, 288, 3639, 309, 261, 1574, 2966, 1276, 16717, 13673, 13, 5411, 327, 14015, 9220, 13673, 13, 31223, 2934, 8837, 13673, 12, 4887, 2675, 16, 609, 16, 4766, 12900, 770, 84, 16, 1842, 1769, 3639, 327, 446, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
case -13: break; case 13:
case -14: break; case 14:
public void _locateToken () { char yy_lookahead; int yy_anchor = YY_NO_ANCHOR; int yy_state = yy_state_dtrans[yy_lexical_state]; int yy_next_state = YY_NO_STATE; int yy_last_accept_state = YY_NO_STATE; boolean yy_initial = true; int yy_this_accept; yy_buffer_start = yy_buffer_index; yy_this_accept = yy_acpt[yy_state]; if (YY_NOT_ACCEPT != yy_this_accept) { yy_last_accept_state = yy_state; yy_buffer_end = yy_buffer_index; } while (true) { if (yy_buffer_index < yy_buffer_length){ yy_lookahead = yy_buffer[yy_buffer_index++]; if (yy_lookahead < 0 || yy_lookahead > 127){ if (Character.isJavaIdentifierStart(yy_lookahead)){ yy_lookahead = 'A'; } else if (Character.isJavaIdentifierPart(yy_lookahead)){ yy_lookahead = '9'; } else{ yy_lookahead = '#'; } } } else{ yy_lookahead = YYEOF; } yy_next_state = YY_F; if (YYEOF != yy_lookahead) { yy_next_state = yy_nxt[yy_rmap[yy_state]][yy_cmap[yy_lookahead]]; } if (YY_F != yy_next_state) { yy_state = yy_next_state; yy_initial = false; yy_this_accept = yy_acpt[yy_state]; if (YY_NOT_ACCEPT != yy_this_accept) { yy_last_accept_state = yy_state; yy_buffer_end = yy_buffer_index; } } else { if (YYEOF == yy_lookahead && true == yy_initial) { myTokenType = null; return; } else if (YY_NO_STATE == yy_last_accept_state) { throw (new Error("Lexical Error: Unmatched Input.")); } else { yy_buffer_index = yy_buffer_end; yy_anchor = yy_acpt[yy_last_accept_state]; if (0 != (YY_END & yy_anchor)) { --yy_buffer_end; } if (0 != (YY_START & yy_anchor)) { ++yy_buffer_start; } switch (yy_last_accept_state) { case 0: { myTokenType = XmlTokenType.XML_DATA_CHARACTERS; return; } case -2: break; case 1: { myTokenType = XmlTokenType.XML_WHITE_SPACE; return; } case -3: break; case 2: { myTokenType = XmlTokenType.XML_START_TAG_START; yy_lexical_state = START_TAG_NAME; return; } case -4: break; case 4: { myTokenType = XmlTokenType.XML_END_TAG_START; yy_lexical_state = END_TAG_NAME; return; } case -5: break; case 5: { myTokenType = XmlTokenType.XML_COMMENT_START; yy_lexical_state = COMMENT; return; } case -6: break; case 6: { myTokenType = XmlTokenType.XML_DOCTYPE_START; yy_lexical_state = DOC_TYPE; return; } case -7: break; case 7: { myTokenType = XmlTokenType.XML_BAD_CHARACTER; return; } case -8: break; case 8: { myTokenType = XmlTokenType.XML_DOCTYPE_END; yy_lexical_state = YYINITIAL; return; } case -9: break; case 9: { myTokenType = XmlTokenType.XML_ATTRIBUTE_VALUE_TOKEN; return;} case -10: break; case 10: { myTokenType = XmlTokenType.XML_NAME; return; } case -11: break; case 11: { myTokenType = XmlTokenType.XML_DOCTYPE_PUBLIC; return; } case -12: break; case 12: { myTokenType = XmlTokenType.XML_COMMENT_CHARACTERS; return; } case -13: break; case 13: { myTokenType = XmlTokenType.XML_COMMENT_END; yy_lexical_state = YYINITIAL; return; } case -14: break; case 14: { myTokenType = XmlTokenType.XML_NAME; yy_lexical_state = TAG_ATTRIBUTES; return; } case -15: break; case 15: { yy_lexical_state = YYINITIAL; --yy_buffer_index; break; } case -16: break; case 16: { myTokenType = XmlTokenType.XML_DATA_CHARACTERS; return; } case -17: break; case 17: { myTokenType = XmlTokenType.XML_NAME; return; } case -18: break; case 18: { yy_lexical_state = YYINITIAL; --yy_buffer_index; } case -19: break; case 19: { myTokenType = XmlTokenType.XML_EQ; yy_lexical_state = ATTRIBUTE_VALUE_START; return; } case -20: break; case 20: { myTokenType = XmlTokenType.XML_TAG_END; yy_lexical_state = YYINITIAL; return; } case -21: break; case 21: { myTokenType = XmlTokenType.XML_EMPTY_ELEMENT_END; yy_lexical_state = YYINITIAL; return; } case -22: break; case 22: { myTokenType = XmlTokenType.XML_ATTRIBUTE_VALUE_TOKEN; yy_lexical_state = TAG_ATTRIBUTES; return; } case -23: break; case 23: { myTokenType = XmlTokenType.XML_ATTRIBUTE_VALUE_START_DELIMITER; yy_lexical_state = ATTRIBUTE_VALUE_DQ; return; } case -24: break; case 24: { myTokenType = XmlTokenType.XML_ATTRIBUTE_VALUE_START_DELIMITER; yy_lexical_state = ATTRIBUTE_VALUE_SQ; return; } case -25: break; case 25: { myTokenType = XmlTokenType.XML_TAG_END; yy_lexical_state = YYINITIAL; return; } case -26: break; case 26: { myTokenType = XmlTokenType.XML_EMPTY_ELEMENT_END; yy_lexical_state = YYINITIAL; return; } case -27: break; case 27: { myTokenType = XmlTokenType.XML_ATTRIBUTE_VALUE_TOKEN; return; } case -28: break; case 28: { myTokenType = XmlTokenType.XML_ATTRIBUTE_VALUE_END_DELIMITER; yy_lexical_state = TAG_ATTRIBUTES; return; } case -29: break; case 29: { myTokenType = XmlTokenType.XML_ATTRIBUTE_VALUE_TOKEN; return; } case -30: break; case 30: { myTokenType = XmlTokenType.XML_ATTRIBUTE_VALUE_TOKEN; return; } case -31: break; case 31: { myTokenType = XmlTokenType.XML_ATTRIBUTE_VALUE_TOKEN; return; } case -32: break; case 32: { myTokenType = XmlTokenType.XML_ATTRIBUTE_VALUE_END_DELIMITER; yy_lexical_state = TAG_ATTRIBUTES; return; } case -33: break; case 33: { myTokenType = XmlTokenType.XML_DATA_CHARACTERS; return; } case -34: break; case 35: { myTokenType = XmlTokenType.XML_BAD_CHARACTER; return; } case -35: break; case 36: { myTokenType = XmlTokenType.XML_COMMENT_CHARACTERS; return; } case -36: break; case 37: { myTokenType = XmlTokenType.XML_DATA_CHARACTERS; return; } case -37: break; case 38: { myTokenType = XmlTokenType.XML_ATTRIBUTE_VALUE_TOKEN; yy_lexical_state = TAG_ATTRIBUTES; return; } case -38: break; case 39: { myTokenType = XmlTokenType.XML_ATTRIBUTE_VALUE_TOKEN; return; } case -39: break; case 40: { myTokenType = XmlTokenType.XML_ATTRIBUTE_VALUE_TOKEN; return; } case -40: break; case 41: { myTokenType = XmlTokenType.XML_ATTRIBUTE_VALUE_TOKEN; return; } case -41: break; case 42: { myTokenType = XmlTokenType.XML_ATTRIBUTE_VALUE_TOKEN; return; } case -42: break; case 44: { myTokenType = XmlTokenType.XML_BAD_CHARACTER; return; } case -43: break; case 45: { myTokenType = XmlTokenType.XML_ATTRIBUTE_VALUE_TOKEN; return; } case -44: break; case 46: { myTokenType = XmlTokenType.XML_ATTRIBUTE_VALUE_TOKEN; return; } case -45: break; case 48: { myTokenType = XmlTokenType.XML_BAD_CHARACTER; return; } case -46: break; case 50: { myTokenType = XmlTokenType.XML_BAD_CHARACTER; return; } case -47: break; case 52: { myTokenType = XmlTokenType.XML_BAD_CHARACTER; return; } case -48: break; case 54: { myTokenType = XmlTokenType.XML_BAD_CHARACTER; return; } case -49: break; default: yy_error(YY_E_INTERNAL,false); case -1: } yy_initial = true; yy_state = yy_state_dtrans[yy_lexical_state]; yy_next_state = YY_NO_STATE; yy_last_accept_state = YY_NO_STATE; yy_buffer_start = yy_buffer_index; yy_this_accept = yy_acpt[yy_state]; if (YY_NOT_ACCEPT != yy_this_accept) { yy_last_accept_state = yy_state; } } } } }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/c7233dd393dd7afda01bf11ff3d6591ed94a1b01/_HtmlLexer.java/buggy/source/com/intellij/lexer/_HtmlLexer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 389, 25450, 1345, 1832, 288, 202, 202, 3001, 9016, 67, 7330, 11617, 31, 202, 202, 474, 9016, 67, 16215, 273, 1624, 61, 67, 3417, 67, 20360, 916, 31, 202, 202, 474, 9016, 67, 2019, 273, 9016, 67, 2019, 67, 72, 2338, 63, 6795, 67, 4149, 1706, 67, 2019, 15533, 202, 202, 474, 9016, 67, 4285, 67, 2019, 273, 1624, 61, 67, 3417, 67, 7998, 31, 202, 202, 474, 9016, 67, 2722, 67, 9436, 67, 2019, 273, 1624, 61, 67, 3417, 67, 7998, 31, 202, 202, 6494, 9016, 67, 6769, 273, 638, 31, 202, 202, 474, 9016, 67, 2211, 67, 9436, 31, 202, 202, 6795, 67, 4106, 67, 1937, 273, 9016, 67, 4106, 67, 1615, 31, 202, 202, 6795, 67, 2211, 67, 9436, 273, 9016, 67, 1077, 337, 63, 6795, 67, 2019, 15533, 202, 202, 430, 261, 9317, 67, 4400, 67, 21417, 480, 9016, 67, 2211, 67, 9436, 13, 288, 1082, 202, 6795, 67, 2722, 67, 9436, 67, 2019, 273, 9016, 67, 2019, 31, 202, 202, 6795, 67, 4106, 67, 409, 273, 9016, 67, 4106, 67, 1615, 31, 202, 202, 97, 202, 202, 17523, 261, 3767, 13, 288, 1082, 202, 430, 261, 6795, 67, 4106, 67, 1615, 411, 9016, 67, 4106, 67, 2469, 15329, 1082, 202, 6795, 67, 7330, 11617, 273, 9016, 67, 4106, 63, 6795, 67, 4106, 67, 1615, 9904, 15533, 1082, 202, 430, 261, 6795, 67, 7330, 11617, 411, 374, 747, 9016, 67, 7330, 11617, 405, 12331, 15329, 1082, 202, 430, 261, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 389, 25450, 1345, 1832, 288, 202, 202, 3001, 9016, 67, 7330, 11617, 31, 202, 202, 474, 9016, 67, 16215, 273, 1624, 61, 67, 3417, 67, 20360, 916, 31, 202, 202, 474, 9016, 67, 2019, 273, 9016, 67, 2019, 67, 72, 2338, 63, 6795, 67, 4149, 1706, 67, 2019, 15533, 202, 202, 474, 9016, 67, 4285, 67, 2019, 273, 1624, 61, 67, 3417, 67, 7998, 31, 202, 202, 474, 9016, 67, 2722, 67, 9436, 67, 2019, 273, 1624, 61, 67, 3417, 67, 7998, 31, 202, 202, 6494, 9016, 67, 6769, 273, 638, 31, 202, 202, 474, 9016, 67, 2211, 67, 9436, 31, 202, 202, 6795, 67, 4106, 67, 1937, 273, 9016, 67, 4106, 67, 1615, 31, 2 ]
TaskList list = new TaskList(); manager.setTaskList(list);
manager.resetTaskList();
public void testRepositoryTaskExternalization() { BugzillaTask repositoryTask = new BugzillaTask("handle", "label", true); repositoryTask.setKind("kind"); manager.moveToRoot(repositoryTask); manager.saveTaskList(); TaskList list = new TaskList(); manager.setTaskList(list); manager.readExistingOrCreateNewList(); assertEquals(1, manager.getTaskList().getRootTasks().size()); AbstractRepositoryTask readTask = (AbstractRepositoryTask) manager.getTaskList().getRootTasks().iterator() .next(); assertEquals(repositoryTask.getHandleIdentifier(), readTask.getHandleIdentifier()); assertEquals(repositoryTask.getDescription(), readTask.getDescription()); assertEquals(repositoryTask.getKind(), readTask.getKind()); }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/13614594a9b173e07f135be6945c24ae86a7b752/TaskListManagerTest.java/buggy/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasklist/tests/TaskListManagerTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 3305, 2174, 6841, 1588, 1435, 288, 202, 202, 19865, 15990, 2174, 3352, 2174, 273, 394, 16907, 15990, 2174, 2932, 4110, 3113, 315, 1925, 3113, 638, 1769, 202, 202, 9071, 2174, 18, 542, 5677, 2932, 9224, 8863, 202, 202, 4181, 18, 8501, 774, 2375, 12, 9071, 2174, 1769, 202, 202, 4181, 18, 5688, 2174, 682, 5621, 202, 202, 2174, 682, 666, 273, 394, 3837, 682, 5621, 202, 202, 4181, 18, 542, 2174, 682, 12, 1098, 1769, 202, 202, 4181, 18, 896, 9895, 17717, 1908, 682, 5621, 202, 202, 11231, 8867, 12, 21, 16, 3301, 18, 588, 2174, 682, 7675, 588, 2375, 6685, 7675, 1467, 10663, 202, 202, 7469, 3305, 2174, 855, 2174, 273, 261, 7469, 3305, 2174, 13, 3301, 18, 588, 2174, 682, 7675, 588, 2375, 6685, 7675, 9838, 1435, 9506, 202, 18, 4285, 5621, 202, 202, 11231, 8867, 12, 9071, 2174, 18, 588, 3259, 3004, 9334, 855, 2174, 18, 588, 3259, 3004, 10663, 202, 202, 11231, 8867, 12, 9071, 2174, 18, 588, 3291, 9334, 855, 2174, 18, 588, 3291, 10663, 202, 202, 11231, 8867, 12, 9071, 2174, 18, 588, 5677, 9334, 855, 2174, 18, 588, 5677, 10663, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 3305, 2174, 6841, 1588, 1435, 288, 202, 202, 19865, 15990, 2174, 3352, 2174, 273, 394, 16907, 15990, 2174, 2932, 4110, 3113, 315, 1925, 3113, 638, 1769, 202, 202, 9071, 2174, 18, 542, 5677, 2932, 9224, 8863, 202, 202, 4181, 18, 8501, 774, 2375, 12, 9071, 2174, 1769, 202, 202, 4181, 18, 5688, 2174, 682, 5621, 202, 202, 2174, 682, 666, 273, 394, 3837, 682, 5621, 202, 202, 4181, 18, 542, 2174, 682, 12, 1098, 1769, 202, 202, 4181, 18, 896, 9895, 17717, 1908, 682, 5621, 202, 202, 11231, 8867, 12, 21, 16, 3301, 18, 588, 2174, 682, 7675, 588, 2375, 6685, 7675, 1467, 10663, 202, 202, 7469, 3305, 2174, 855, 2174, 273, 261, 7469, 2 ]
IAdaptable[] oldItems = workingSet.getElements(); for (int i = 0; i < oldItems.length; i++) { IResource oldResource = null; if (oldItems[i] instanceof IResource) { oldResource = (IResource) oldItems[i]; } else { oldResource = (IResource) oldItems[i].getAdapter(IResource.class); } if (oldResource != null && oldResource.isAccessible() == false) { resources.add(oldResource); } }
public void finish() { ArrayList resources = new ArrayList(10); findCheckedResources(resources, (IContainer) tree.getInput()); if (workingSet == null) { IWorkingSetManager workingSetManager = WorkbenchPlugin.getDefault().getWorkingSetManager(); workingSet = workingSetManager.createWorkingSet(getWorkingSetName(), (IAdaptable[]) resources.toArray(new IAdaptable[resources.size()])); } else { // Add inaccessible resources IAdaptable[] oldItems = workingSet.getElements(); for (int i = 0; i < oldItems.length; i++) { IResource oldResource = null; if (oldItems[i] instanceof IResource) { oldResource = (IResource) oldItems[i]; } else { oldResource = (IResource) oldItems[i].getAdapter(IResource.class); } if (oldResource != null && oldResource.isAccessible() == false) { resources.add(oldResource); } } workingSet.setName(getWorkingSetName()); workingSet.setElements((IAdaptable[]) resources.toArray(new IAdaptable[resources.size()])); } }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/2a404baa12f940abbe1f76656633f9ac0563bd2d/ResourceWorkingSetPage.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/ResourceWorkingSetPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 4076, 1435, 288, 202, 202, 19558, 2703, 273, 394, 2407, 12, 2163, 1769, 202, 202, 4720, 11454, 3805, 12, 4683, 16, 261, 45, 2170, 13, 2151, 18, 588, 1210, 10663, 202, 202, 430, 261, 20478, 694, 422, 446, 13, 288, 1082, 202, 45, 14836, 694, 1318, 5960, 694, 1318, 273, 4147, 22144, 3773, 18, 588, 1868, 7675, 588, 14836, 694, 1318, 5621, 1082, 202, 20478, 694, 273, 5960, 694, 1318, 18, 2640, 14836, 694, 12, 588, 14836, 11924, 9334, 261, 45, 13716, 429, 63, 5717, 2703, 18, 31447, 12, 2704, 467, 13716, 429, 63, 4683, 18, 1467, 1435, 5717, 1769, 202, 202, 97, 469, 288, 1082, 202, 759, 1436, 316, 26037, 2703, 1082, 202, 45, 13716, 429, 8526, 1592, 3126, 273, 5960, 694, 18, 588, 3471, 5621, 1082, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 1592, 3126, 18, 2469, 31, 277, 27245, 288, 9506, 202, 45, 1420, 1592, 1420, 273, 446, 31, 9506, 202, 430, 261, 1673, 3126, 63, 77, 65, 1276, 467, 1420, 13, 288, 6862, 202, 1673, 1420, 273, 261, 45, 1420, 13, 1592, 3126, 63, 77, 15533, 9506, 202, 97, 469, 288, 6862, 202, 1673, 1420, 273, 261, 45, 1420, 13, 1592, 3126, 63, 77, 8009, 588, 4216, 12, 45, 1420, 18, 1106, 1769, 9506, 202, 97, 9506, 202, 430, 261, 1673, 1420, 480, 446, 597, 1592, 1420, 18, 291, 10451, 1435, 422, 629, 13, 288, 6862, 202, 4683, 18, 1289, 12, 1673, 1420, 1769, 9506, 202, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4076, 1435, 288, 202, 202, 19558, 2703, 273, 394, 2407, 12, 2163, 1769, 202, 202, 4720, 11454, 3805, 12, 4683, 16, 261, 45, 2170, 13, 2151, 18, 588, 1210, 10663, 202, 202, 430, 261, 20478, 694, 422, 446, 13, 288, 1082, 202, 45, 14836, 694, 1318, 5960, 694, 1318, 273, 4147, 22144, 3773, 18, 588, 1868, 7675, 588, 14836, 694, 1318, 5621, 1082, 202, 20478, 694, 273, 5960, 694, 1318, 18, 2640, 14836, 694, 12, 588, 14836, 11924, 9334, 261, 45, 13716, 429, 63, 5717, 2703, 18, 31447, 12, 2704, 467, 13716, 429, 63, 4683, 18, 1467, 1435, 5717, 1769, 202, 202, 97, 469, 288, 1082, 202, 759, 1436, 316, 26037, 2703, 1082, 202, 45, 2 ]
description = toolkit.createText(container, task.getDescription(), SWT.NONE); description.setData(FormToolkit.KEY_DRAW_BORDER, FormToolkit.TEXT_BORDER); description.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
summary = toolkit.createText(container, task.getDescription(), SWT.NONE); summary.setData(FormToolkit.KEY_DRAW_BORDER, FormToolkit.TEXT_BORDER); summary.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
private void createSummarySection(Composite parent) { Section section = toolkit.createSection(parent, ExpandableComposite.TITLE_BAR | Section.TWISTIE); section.setText(LABEL_OVERVIEW); section.setExpanded(true); // if (task instanceof AbstractRepositoryTask) { // section.setDescription("To modify these fields use the repository // editor."); // } section.setLayout(new GridLayout()); section.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); section.addExpansionListener(new IExpansionListener() { public void expansionStateChanging(ExpansionEvent e) { form.reflow(true); } public void expansionStateChanged(ExpansionEvent e) { form.reflow(true); } }); Composite container = toolkit.createComposite(section); section.setClient(container); GridLayout compLayout = new GridLayout(); compLayout.numColumns = 2; container.setLayout(compLayout); container.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); Label l = toolkit.createLabel(container, "Summary: "); l.setForeground(toolkit.getColors().getColor(FormColors.TITLE)); description = toolkit.createText(container, task.getDescription(), SWT.NONE); description.setData(FormToolkit.KEY_DRAW_BORDER, FormToolkit.TEXT_BORDER); description.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); toolkit.paintBordersFor(container); if (task instanceof AbstractRepositoryTask) { description.setEnabled(false); } else { description.addModifyListener(new ModifyListener() { public void modifyText(ModifyEvent e) { markDirty(true); } }); } Label urlLabel = toolkit.createLabel(container, "Web Link:"); urlLabel.setForeground(toolkit.getColors().getColor(FormColors.TITLE)); Composite urlComposite = toolkit.createComposite(container); GridLayout urlLayout = new GridLayout(2, false); urlLayout.marginWidth = 1; urlComposite.setLayout(urlLayout); GridData urlGridData = new GridData(GridData.FILL_HORIZONTAL); urlComposite.setLayoutData(urlGridData); issueReportURL = toolkit.createText(urlComposite, task.getUrl(), SWT.NONE); GridData gridLayout = new GridData(GridData.FILL_HORIZONTAL); issueReportURL.setLayoutData(gridLayout); if (task instanceof AbstractRepositoryTask) { issueReportURL.setEditable(false); } else { issueReportURL.addModifyListener(new ModifyListener() { public void modifyText(ModifyEvent e) { markDirty(true); } }); } getDescButton = toolkit.createButton(urlComposite, "Get Description", SWT.PUSH); getDescButton.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_END)); toolkit.paintBordersFor(urlComposite); setButtonStatus(); issueReportURL.addKeyListener(new KeyListener() { public void keyPressed(KeyEvent e) { setButtonStatus(); } public void keyReleased(KeyEvent e) { setButtonStatus(); } }); getDescButton.addSelectionListener(new SelectionListener() { public void widgetSelected(SelectionEvent e) { retrieveTaskDescription(issueReportURL.getText()); } public void widgetDefaultSelected(SelectionEvent e) { } }); Label label = toolkit.createLabel(container, "Status:"); label.setForeground(toolkit.getColors().getColor(FormColors.TITLE)); Composite statusComposite = toolkit.createComposite(container); statusComposite.setLayout(new GridLayout(2, false)); priorityCombo = new Combo(statusComposite, SWT.READ_ONLY); // Populate the combo box with priority levels for (String priorityLevel : TaskListView.PRIORITY_LEVEL_DESCRIPTIONS) { priorityCombo.add(priorityLevel); } PriorityLevel level = PriorityLevel.fromString(task.getPriority()); if (level != null) { int prioritySelectionIndex = priorityCombo.indexOf(level.getDescription()); priorityCombo.select(prioritySelectionIndex); } if (task instanceof AbstractRepositoryTask) { priorityCombo.setEnabled(false); } else { priorityCombo.addSelectionListener(new SelectionListener() { public void widgetSelected(SelectionEvent e) { TaskPlanningEditor.this.markDirty(true); } public void widgetDefaultSelected(SelectionEvent e) { // do nothing } }); } statusCombo = new Combo(statusComposite, SWT.READ_ONLY); statusCombo.add(LABEL_COMPLETE); statusCombo.add(LABEL_INCOMPLETE); if (task.isCompleted()) { statusCombo.select(0); } else { statusCombo.select(1); } if (task instanceof AbstractRepositoryTask) { statusCombo.setEnabled(false); } else { statusCombo.addSelectionListener(new SelectionListener() { public void widgetSelected(SelectionEvent e) { if (statusCombo.getSelectionIndex() == 0) { task.setCompleted(true); } else { task.setCompleted(false); } TaskPlanningEditor.this.markDirty(true); } public void widgetDefaultSelected(SelectionEvent e) { // do nothing } }); } // statusCombo.setEnabled(false); }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/836a597eb0bf0b447a4bfb04c6629f1d1646d8bb/TaskPlanningEditor.java/buggy/org.eclipse.mylyn.tasks.ui/src/org/eclipse/mylyn/internal/tasks/ui/editors/TaskPlanningEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 752, 4733, 5285, 12, 9400, 982, 13, 288, 202, 202, 5285, 2442, 273, 5226, 8691, 18, 2640, 5285, 12, 2938, 16, 16429, 429, 9400, 18, 14123, 67, 21908, 571, 10092, 18, 18869, 5511, 8732, 1769, 202, 202, 3464, 18, 542, 1528, 12, 13545, 67, 12959, 12145, 1769, 202, 202, 3464, 18, 542, 17957, 12, 3767, 1769, 202, 202, 759, 309, 261, 4146, 1276, 4115, 3305, 2174, 13, 288, 202, 202, 759, 2442, 18, 542, 3291, 2932, 774, 5612, 4259, 1466, 999, 326, 3352, 202, 202, 759, 4858, 1199, 1769, 202, 202, 759, 289, 202, 202, 3464, 18, 542, 3744, 12, 2704, 7145, 3744, 10663, 202, 202, 3464, 18, 542, 3744, 751, 12, 2704, 7145, 751, 12, 6313, 751, 18, 29818, 67, 44, 20344, 10019, 202, 202, 3464, 18, 1289, 2966, 12162, 2223, 12, 2704, 467, 2966, 12162, 2223, 1435, 288, 1082, 202, 482, 918, 17965, 1119, 782, 18183, 12, 2966, 12162, 1133, 425, 13, 288, 9506, 202, 687, 18, 1734, 821, 12, 3767, 1769, 1082, 202, 97, 1082, 202, 482, 918, 17965, 1119, 5033, 12, 2966, 12162, 1133, 425, 13, 288, 9506, 202, 687, 18, 1734, 821, 12, 3767, 1769, 1082, 202, 97, 202, 202, 22938, 202, 202, 9400, 1478, 273, 5226, 8691, 18, 2640, 9400, 12, 3464, 1769, 202, 202, 3464, 18, 542, 1227, 12, 3782, 1769, 202, 202, 6313, 3744, 1161, 3744, 273, 394, 7145, 3744, 5621, 202, 202, 2919, 3744, 18, 2107, 3380, 273, 576, 31, 202, 202, 3782, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 752, 4733, 5285, 12, 9400, 982, 13, 288, 202, 202, 5285, 2442, 273, 5226, 8691, 18, 2640, 5285, 12, 2938, 16, 16429, 429, 9400, 18, 14123, 67, 21908, 571, 10092, 18, 18869, 5511, 8732, 1769, 202, 202, 3464, 18, 542, 1528, 12, 13545, 67, 12959, 12145, 1769, 202, 202, 3464, 18, 542, 17957, 12, 3767, 1769, 202, 202, 759, 309, 261, 4146, 1276, 4115, 3305, 2174, 13, 288, 202, 202, 759, 2442, 18, 542, 3291, 2932, 774, 5612, 4259, 1466, 999, 326, 3352, 202, 202, 759, 4858, 1199, 1769, 202, 202, 759, 289, 202, 202, 3464, 18, 542, 3744, 12, 2704, 7145, 3744, 10663, 202, 202, 3464, 18, 542, 3744, 751, 12, 2704, 7145, 751, 2 ]
ExecSQL("rollback");
ExecSQL(null, "rollback");
public void rollback() throws SQLException { if (autoCommit) return; ExecSQL("rollback"); autoCommit = true; ExecSQL("begin"); autoCommit = false; }
49504 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49504/5383b5d8ed6da5c90bcbdb63401b7d1d75db563d/Connection.java/clean/src/interfaces/jdbc/org/postgresql/jdbc1/Connection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 8006, 1435, 1216, 6483, 225, 288, 565, 309, 261, 6079, 5580, 13, 1377, 327, 31, 565, 3889, 3997, 12, 2011, 16, 315, 20050, 8863, 565, 3656, 5580, 273, 638, 31, 565, 3889, 3997, 2932, 10086, 8863, 565, 3656, 5580, 273, 629, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 8006, 1435, 1216, 6483, 225, 288, 565, 309, 261, 6079, 5580, 13, 1377, 327, 31, 565, 3889, 3997, 12, 2011, 16, 315, 20050, 8863, 565, 3656, 5580, 273, 638, 31, 565, 3889, 3997, 2932, 10086, 8863, 565, 3656, 5580, 273, 629, 31, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public org.quickfix.field.LegSecuritySubType getLegSecuritySubType() throws FieldNotFound { org.quickfix.field.LegSecuritySubType value = new org.quickfix.field.LegSecuritySubType();
public quickfix.field.LegSecuritySubType getLegSecuritySubType() throws FieldNotFound { quickfix.field.LegSecuritySubType value = new quickfix.field.LegSecuritySubType();
public org.quickfix.field.LegSecuritySubType getLegSecuritySubType() throws FieldNotFound { org.quickfix.field.LegSecuritySubType value = new org.quickfix.field.LegSecuritySubType(); getField(value); return value; }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/CrossOrderCancelRequest.java/buggy/src/java/src/quickfix/fix44/CrossOrderCancelRequest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 4368, 30511, 336, 8329, 4368, 30511, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 4368, 30511, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 4368, 30511, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 4368, 30511, 336, 8329, 4368, 30511, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 4368, 30511, 460, 273, 394, 2358, 18, 19525, 904, 18, 1518, 18, 8329, 4368, 30511, 5621, 565, 5031, 12, 1132, 1769, 327, 460, 31, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
} else if (GROUPING_CONTEXT_NAME.equals(grouping)) {
} else if (NewKeysPreferenceMessages.GroupingCombo_When_Text.equals(grouping)) {
private final void updateTree() { final TreeViewer viewer = filteredTree.getViewer(); final Collection bindings = localChangeManager .getActiveBindingsDisregardingContextFlat(); /* * Add all of the parameterized commands (without bindings) if the show * all check box is selected. */ if (showAllCheckBox.getSelection()) { final Collection commandIds = commandService.getDefinedCommandIds(); final Collection commands = new ArrayList(); final Iterator commandIdItr = commandIds.iterator(); while (commandIdItr.hasNext()) { final String currentCommandId = (String) commandIdItr.next(); final Command currentCommand = commandService .getCommand(currentCommandId); try { commands.addAll(ParameterizedCommand .generateCombinations(currentCommand)); } catch (final NotDefinedException e) { // It is safe to just ignore undefined commands. } } // Remove duplicates. final Iterator commandItr = commands.iterator(); while (commandItr.hasNext()) { final ParameterizedCommand command = (ParameterizedCommand) commandItr .next(); if (localChangeManager .getActiveBindingsDisregardingContextFor(command).length > 0) { commandItr.remove(); } } bindings.addAll(commands); } // Add the marked parameterized command, if any. if (markedParameterizedCommand != null) { bindings.add(markedParameterizedCommand); } // Check the grouping. final String grouping = filteredTree.getGroupingCombo().getText(); if (GROUPING_CATEGORY_NAME.equals(grouping)) { // Group all of the bindings by category. final HashMap bindingsByCategory = new HashMap(); final Iterator bindingItr = bindings.iterator(); while (bindingItr.hasNext()) { final Object object = bindingItr.next(); final ParameterizedCommand command; if (object instanceof Binding) { command = ((Binding) object).getParameterizedCommand(); } else { command = (ParameterizedCommand) object; } try { final Category category = command.getCommand() .getCategory(); final Object existing = bindingsByCategory.get(category); if (existing instanceof Collection) { final Collection existingBindings = (Collection) existing; existingBindings.add(object); } else { final Collection newCollection = new ArrayList(); newCollection.add(object); bindingsByCategory.put(category, newCollection); } } catch (final NotDefinedException e) { // Just skip this one. continue; } } // Convert the hash map into nodes. final Iterator entryItr = bindingsByCategory.entrySet().iterator(); final TreeNode[] elements = new TreeNode[bindingsByCategory.size()]; int i = 0; while (entryItr.hasNext()) { final Map.Entry entry = (Map.Entry) entryItr.next(); final TreeNode parentNode = new BindingTreeNode(entry.getKey()); final Collection childValues = (Collection) entry.getValue(); final Iterator childValueItr = childValues.iterator(); final TreeNode[] children = new TreeNode[childValues.size()]; int j = 0; while (childValueItr.hasNext()) { final TreeNode childNode = new BindingTreeNode( childValueItr.next()); childNode.setParent(parentNode); children[j++] = childNode; } parentNode.setChildren(children); elements[i++] = parentNode; } // Set the input. viewer.setInput(elements); } else if (GROUPING_CONTEXT_NAME.equals(grouping)) { // Group all of the bindings by context. final HashMap bindingsByContextId = new HashMap(); final Iterator bindingItr = bindings.iterator(); while (bindingItr.hasNext()) { final Object binding = bindingItr.next(); final String contextId; if (binding instanceof ParameterizedCommand) { contextId = IContextIds.CONTEXT_ID_WINDOW; } else { contextId = ((Binding) binding).getContextId(); } final Object existing = bindingsByContextId.get(contextId); if (existing instanceof Collection) { final Collection existingBindings = (Collection) existing; existingBindings.add(binding); } else { final Collection newCollection = new ArrayList(); newCollection.add(binding); bindingsByContextId.put(contextId, newCollection); } } // Convert the hash map into nodes. final Iterator entryItr = bindingsByContextId.entrySet().iterator(); final TreeNode[] elements = new TreeNode[bindingsByContextId.size()]; int i = 0; while (entryItr.hasNext()) { final Map.Entry entry = (Map.Entry) entryItr.next(); final TreeNode parentNode = new BindingTreeNode(entry.getKey()); final Collection childValues = (Collection) entry.getValue(); final Iterator childValueItr = childValues.iterator(); final TreeNode[] children = new TreeNode[childValues.size()]; int j = 0; while (childValueItr.hasNext()) { final TreeNode childNode = new BindingTreeNode( childValueItr.next()); childNode.setParent(parentNode); children[j++] = childNode; } parentNode.setChildren(children); elements[i++] = parentNode; } // Set the input. viewer.setInput(elements); } else { // Just a flat list. Convert the flat list into nodes. final Iterator bindingItr = bindings.iterator(); final TreeNode[] elements = new BindingTreeNode[bindings.size()]; int i = 0; while (bindingItr.hasNext()) { elements[i++] = new BindingTreeNode(bindingItr.next()); } // Set the input. viewer.setInput(elements); } // Repack all of the columns. final Tree tree = viewer.getTree(); final TreeColumn[] columns = tree.getColumns(); if (GROUPING_CATEGORY_NAME.equals(grouping) || GROUPING_CONTEXT_NAME.equals(grouping)) { columns[0].setWidth(292); } else { columns[0].setWidth(292); } columns[1].setWidth(234); columns[2].setWidth(22); columns[3].setWidth(22); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/513fdd2ff09faa46895497ae1bc94b7630736b66/NewKeysPreferencePage.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/keys/NewKeysPreferencePage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 727, 918, 1089, 2471, 1435, 288, 202, 202, 6385, 4902, 18415, 14157, 273, 5105, 2471, 18, 588, 18415, 5621, 202, 202, 6385, 2200, 7394, 273, 1191, 3043, 1318, 9506, 202, 18, 588, 3896, 10497, 1669, 1574, 1060, 310, 1042, 16384, 5621, 202, 202, 20308, 1082, 380, 1436, 777, 434, 326, 17629, 4364, 261, 13299, 7394, 13, 309, 326, 2405, 1082, 380, 777, 866, 3919, 353, 3170, 18, 1082, 1195, 202, 202, 430, 261, 4500, 1595, 19174, 18, 588, 6233, 10756, 288, 1082, 202, 6385, 2200, 1296, 2673, 273, 1296, 1179, 18, 588, 8116, 2189, 2673, 5621, 1082, 202, 6385, 2200, 4364, 273, 394, 2407, 5621, 1082, 202, 6385, 4498, 1296, 548, 28984, 273, 1296, 2673, 18, 9838, 5621, 1082, 202, 17523, 261, 3076, 548, 28984, 18, 5332, 2134, 10756, 288, 9506, 202, 6385, 514, 783, 2189, 548, 273, 261, 780, 13, 1296, 548, 28984, 18, 4285, 5621, 9506, 202, 6385, 3498, 783, 2189, 273, 1296, 1179, 25083, 202, 18, 588, 2189, 12, 2972, 2189, 548, 1769, 9506, 202, 698, 288, 6862, 202, 7847, 18, 1289, 1595, 12, 15696, 2189, 6862, 1082, 202, 18, 7163, 24107, 1012, 12, 2972, 2189, 10019, 9506, 202, 97, 1044, 261, 6385, 2288, 8116, 503, 425, 13, 288, 6862, 202, 759, 2597, 353, 4183, 358, 2537, 2305, 3109, 4364, 18, 9506, 202, 97, 1082, 202, 97, 1082, 202, 759, 3581, 11211, 18, 1082, 202, 6385, 4498, 1296, 28984, 273, 4364, 18, 9838, 5621, 1082, 202, 17523, 261, 3076, 28984, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 727, 918, 1089, 2471, 1435, 288, 202, 202, 6385, 4902, 18415, 14157, 273, 5105, 2471, 18, 588, 18415, 5621, 202, 202, 6385, 2200, 7394, 273, 1191, 3043, 1318, 9506, 202, 18, 588, 3896, 10497, 1669, 1574, 1060, 310, 1042, 16384, 5621, 202, 202, 20308, 1082, 380, 1436, 777, 434, 326, 17629, 4364, 261, 13299, 7394, 13, 309, 326, 2405, 1082, 380, 777, 866, 3919, 353, 3170, 18, 1082, 1195, 202, 202, 430, 261, 4500, 1595, 19174, 18, 588, 6233, 10756, 288, 1082, 202, 6385, 2200, 1296, 2673, 273, 1296, 1179, 18, 588, 8116, 2189, 2673, 5621, 1082, 202, 6385, 2200, 4364, 273, 394, 2407, 5621, 1082, 202, 6385, 4498, 1296, 548, 28984, 273, 1296, 2673, 18, 2 ]
if (jj_scan_token(FIELD_NOT)) return true;
Token xsp; while (true) { xsp = jj_scanpos; if (jj_3R_98()) { jj_scanpos = xsp; break; } } xsp = jj_scanpos; if (jj_3R_99()) { jj_scanpos = xsp; if (jj_3R_100()) { jj_scanpos = xsp; if (jj_3R_101()) { jj_scanpos = xsp; if (jj_3R_102()) return true; } } }
static final private boolean jj_3R_82() { if (jj_scan_token(FIELD_NOT)) return true; return false; }
7954 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7954/9befe20e19a1c795e3084b85df3ae067ddf49066/ExpressionParser.java/buggy/aspectwerkz4/src/main/org/codehaus/aspectwerkz/expression/ast/ExpressionParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 760, 727, 3238, 1250, 10684, 67, 23, 54, 67, 11149, 1435, 288, 565, 3155, 619, 1752, 31, 1323, 261, 3767, 13, 288, 619, 1752, 273, 10684, 67, 9871, 917, 31, 309, 261, 78, 78, 67, 23, 54, 67, 10689, 10756, 288, 10684, 67, 9871, 917, 273, 619, 1752, 31, 898, 31, 289, 289, 619, 1752, 273, 10684, 67, 9871, 917, 31, 309, 261, 78, 78, 67, 23, 54, 67, 2733, 10756, 288, 10684, 67, 9871, 917, 273, 619, 1752, 31, 309, 261, 78, 78, 67, 23, 54, 67, 6625, 10756, 288, 10684, 67, 9871, 917, 273, 619, 1752, 31, 309, 261, 78, 78, 67, 23, 54, 67, 15168, 10756, 288, 10684, 67, 9871, 917, 273, 619, 1752, 31, 309, 261, 78, 78, 67, 23, 54, 67, 20481, 10756, 327, 638, 31, 289, 289, 289, 565, 327, 629, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 760, 727, 3238, 1250, 10684, 67, 23, 54, 67, 11149, 1435, 288, 565, 3155, 619, 1752, 31, 1323, 261, 3767, 13, 288, 619, 1752, 273, 10684, 67, 9871, 917, 31, 309, 261, 78, 78, 67, 23, 54, 67, 10689, 10756, 288, 10684, 67, 9871, 917, 273, 619, 1752, 31, 898, 31, 289, 289, 619, 1752, 273, 10684, 67, 9871, 917, 31, 309, 261, 78, 78, 67, 23, 54, 67, 2733, 10756, 288, 10684, 67, 9871, 917, 273, 619, 1752, 31, 309, 261, 78, 78, 67, 23, 54, 67, 6625, 10756, 288, 10684, 67, 9871, 917, 273, 619, 1752, 31, 309, 261, 78, 78, 67, 23, 54, 67, 15168, 10756, 288, 10684, 67, 9871, 917, 273, 619, 1752, 31, 2 ]
this.multipleSessionsPerConnection = multipleSessionsPerConnection; }
this.multipleSessionsPerConnection = multipleSessionsPerConnection; }
public void setMultipleSessionsPerConnection(boolean multipleSessionsPerConnection) { this.multipleSessionsPerConnection = multipleSessionsPerConnection; }
28323 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28323/c14c50e507857565d2b1e3cf58a4a2964e3bd075/OracleJmsConnector.java/clean/providers/oaq/src/java/org/mule/providers/oracle/jms/OracleJmsConnector.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 8438, 13566, 2173, 1952, 12, 6494, 3229, 13566, 2173, 1952, 13, 288, 202, 202, 2211, 18, 9622, 13566, 2173, 1952, 273, 3229, 13566, 2173, 1952, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 444, 8438, 13566, 2173, 1952, 12, 6494, 3229, 13566, 2173, 1952, 13, 288, 202, 202, 2211, 18, 9622, 13566, 2173, 1952, 273, 3229, 13566, 2173, 1952, 31, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public String getHeaderFieldKey(int index) { return (null);
public String getHeaderFieldKey(int index) { return null;
public String getHeaderFieldKey(int index) { return (null); }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/62bb818fd7bc55fbb32b7cfa4b44b94383422a54/URLConnection.java/buggy/core/src/classpath/java/java/net/URLConnection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 7911, 974, 653, 12, 474, 770, 13, 288, 202, 202, 2463, 261, 2011, 1769, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 7911, 974, 653, 12, 474, 770, 13, 288, 202, 202, 2463, 261, 2011, 1769, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
System.out.println("Reaped guest session: " + cs.id + " after " + SurveyMain.timeDiff(cs.last) +" inactivity.");
public static void reap() { synchronized(gHash) { // reap.. if((System.currentTimeMillis()-lastReap) < REAP_TO) { return; } lastReap=System.currentTimeMillis(); // System.out.println("reaping.."); // step 0: reap all guests older than time for(Iterator i = gHash.values().iterator();i.hasNext();) { CookieSession cs = (CookieSession)i.next(); if(cs.user == null) { if(cs.age() > GUEST_TO) { System.out.println("Reaped guest session: " + cs.id + " after " + SurveyMain.timeDiff(cs.last) +" inactivity."); cs.remove(); // concurrent modify . . . (i.e. rescan.) i = gHash.values().iterator(); } } else { if(cs.age() > USER_TO) { System.out.println("Reaped users session: " + cs.id + " (" + cs.user.email + ") after " + SurveyMain.timeDiff(cs.last) +" inactivity."); cs.remove(); // concurrent modify . . . (i.e. rescan.) i = gHash.values().iterator(); } } } } }
27800 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27800/6373b4692e4fb87a2f077664e76bca7842d8a20a/CookieSession.java/clean/tools/java/org/unicode/cldr/web/CookieSession.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 283, 438, 1435, 288, 7734, 3852, 12, 75, 2310, 13, 288, 5411, 368, 283, 438, 838, 5411, 309, 12443, 3163, 18, 2972, 28512, 1435, 17, 2722, 426, 438, 13, 411, 2438, 2203, 67, 4296, 13, 288, 7734, 327, 31, 5411, 289, 5411, 1142, 426, 438, 33, 3163, 18, 2972, 28512, 5621, 6647, 368, 2332, 18, 659, 18, 8222, 2932, 266, 24447, 838, 8863, 5411, 368, 2235, 374, 30, 283, 438, 777, 13051, 87, 12156, 2353, 813, 5411, 364, 12, 3198, 277, 273, 314, 2310, 18, 2372, 7675, 9838, 5621, 77, 18, 5332, 2134, 5621, 13, 288, 7734, 10201, 2157, 2873, 273, 261, 6151, 2157, 13, 77, 18, 4285, 5621, 27573, 309, 12, 2143, 18, 1355, 422, 446, 13, 288, 10792, 309, 12, 2143, 18, 410, 1435, 405, 611, 1821, 882, 67, 4296, 13, 288, 4766, 7734, 2873, 18, 4479, 5621, 13491, 368, 10020, 5612, 263, 263, 263, 261, 77, 18, 73, 18, 29144, 12998, 13491, 277, 273, 314, 2310, 18, 2372, 7675, 9838, 5621, 10792, 289, 7734, 289, 469, 288, 10792, 309, 12, 2143, 18, 410, 1435, 405, 7443, 67, 4296, 13, 288, 13491, 2332, 18, 659, 18, 8222, 2932, 426, 5994, 3677, 1339, 30, 315, 397, 2873, 18, 350, 397, 315, 7566, 397, 2873, 18, 1355, 18, 3652, 397, 9369, 1839, 225, 315, 397, 16680, 9062, 6376, 18, 957, 5938, 12, 2143, 18, 2722, 13, 397, 6, 316, 9653, 1199, 1769, 13491, 2873, 18, 4479, 5621, 13491, 368, 10020, 5612, 263, 263, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 283, 438, 1435, 288, 7734, 3852, 12, 75, 2310, 13, 288, 5411, 368, 283, 438, 838, 5411, 309, 12443, 3163, 18, 2972, 28512, 1435, 17, 2722, 426, 438, 13, 411, 2438, 2203, 67, 4296, 13, 288, 7734, 327, 31, 5411, 289, 5411, 1142, 426, 438, 33, 3163, 18, 2972, 28512, 5621, 6647, 368, 2332, 18, 659, 18, 8222, 2932, 266, 24447, 838, 8863, 5411, 368, 2235, 374, 30, 283, 438, 777, 13051, 87, 12156, 2353, 813, 5411, 364, 12, 3198, 277, 273, 314, 2310, 18, 2372, 7675, 9838, 5621, 77, 18, 5332, 2134, 5621, 13, 288, 7734, 10201, 2157, 2873, 273, 261, 6151, 2157, 13, 77, 18, 4285, 5621, 27573, 309, 12, 2143, 18, 1355, 2 ]
boolean hasFormId = StringUtils.hasText(id); String[] keys = new String[hasFormId ? 3 : 2]; int i = 0; if (hasFormId) { keys[i++] = id + "." + preffix + "." + formProperty; } keys[i++] = preffix + "." + formProperty; keys[i] = formProperty; return keys; }
boolean hasFormId = StringUtils.hasText(id); String[] keys = new String[hasFormId ? 3 : 2]; int i = 0; if (hasFormId) { keys[i++] = id + "." + preffix + "." + formProperty; } keys[i++] = preffix + "." + formProperty; keys[i] = formProperty; return keys; }
protected String[] getMessageKeys(String formProperty, String preffix) { boolean hasFormId = StringUtils.hasText(id); String[] keys = new String[hasFormId ? 3 : 2]; int i = 0; if (hasFormId) { keys[i++] = id + "." + preffix + "." + formProperty; } keys[i++] = preffix + "." + formProperty; keys[i] = formProperty; return keys; }
55916 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55916/1ca92818155f3e0a4aed29e15c396b3c749e2b10/SwingFormModel.java/buggy/src/org/springframework/richclient/forms/SwingFormModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 514, 8526, 2381, 2396, 12, 780, 646, 1396, 16, 514, 11307, 904, 13, 288, 3639, 1250, 711, 1204, 548, 273, 5778, 18, 5332, 1528, 12, 350, 1769, 3639, 514, 8526, 1311, 273, 394, 514, 63, 5332, 1204, 548, 692, 890, 294, 576, 15533, 3639, 509, 277, 273, 374, 31, 3639, 309, 261, 5332, 1204, 548, 13, 288, 5411, 1311, 63, 77, 9904, 65, 273, 612, 397, 4585, 397, 11307, 904, 397, 4585, 397, 646, 1396, 31, 3639, 289, 3639, 1311, 63, 77, 9904, 65, 273, 11307, 904, 397, 4585, 397, 646, 1396, 31, 3639, 1311, 63, 77, 65, 273, 646, 1396, 31, 3639, 327, 1311, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4750, 514, 8526, 2381, 2396, 12, 780, 646, 1396, 16, 514, 11307, 904, 13, 288, 3639, 1250, 711, 1204, 548, 273, 5778, 18, 5332, 1528, 12, 350, 1769, 3639, 514, 8526, 1311, 273, 394, 514, 63, 5332, 1204, 548, 692, 890, 294, 576, 15533, 3639, 509, 277, 273, 374, 31, 3639, 309, 261, 5332, 1204, 548, 13, 288, 5411, 1311, 63, 77, 9904, 65, 273, 612, 397, 4585, 397, 11307, 904, 397, 4585, 397, 646, 1396, 31, 3639, 289, 3639, 1311, 63, 77, 9904, 65, 273, 11307, 904, 397, 4585, 397, 646, 1396, 31, 3639, 1311, 63, 77, 65, 273, 646, 1396, 31, 3639, 327, 1311, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
if(syllItem.getFeatures().isPresent("accent")){ accent = syllItem.getFeatures().getString("accent"); }
public String convertUtt(Utterance utt) { StringBuffer buf = new StringBuffer(); buf.append("===Utterance===\n"); buf.append(VOICEMARKER + FreeTTSVoices.getMaryVoice(utt.getVoice()).getName() + "\n"); // Segment relation for this utterance buf.append("==Segment==\n"); buf.append("#\n"); Relation segmentRelation = utt.getRelation(Relation.SEGMENT); assert segmentRelation != null; Item segmentItem = segmentRelation.getHead(); while (segmentItem != null) { float endInSeconds = segmentItem.getFeatures().getFloat("end"); String segmentString = segmentItem.toString(); buf.append(String.valueOf(endInSeconds) + " 100 " + segmentString + "\n"); segmentItem = segmentItem.getNext(); } // Target relation for this utterance buf.append("==Target==\n"); buf.append("#\n"); Relation targetRelation = utt.getRelation(Relation.TARGET); assert targetRelation != null; Item targetItem = targetRelation.getHead(); while(targetItem != null){ float posInSeconds = targetItem.getFeatures().getFloat("pos"); float f0Value = targetItem.getFeatures().getFloat("f0"); buf.append(String.valueOf(posInSeconds) + " 100 " + String.valueOf(f0Value) + "\n"); targetItem = targetItem.getNext(); } // Syllable Word IntEvent and Phrase relations for this utterance buf.append("==Syllable==\n"); buf.append("#\n"); Relation syllStrucRelation = utt.getRelation(Relation.SYLLABLE_STRUCTURE); assert syllStrucRelation != null; StringBuffer word = new StringBuffer(); word.append("==Word==\n"); word.append("#\n"); StringBuffer iE = new StringBuffer(); iE.append("==IntEvent==\n"); iE.append("#\n"); Item syllStrucItem = syllStrucRelation.getHead(); while (syllStrucItem != null){ Item syllItem = syllStrucItem.getDaughter(); String accent = null; float end = 0; while(syllItem != null){ end = syllItem.getLastDaughter().getFeatures().getFloat("end"); StringBuffer syllable = new StringBuffer(); Item segItem = syllItem.getDaughter(); while(segItem != null){ syllable.append(segItem.toString()); segItem = segItem.getNext(); } String stress = syllItem.getFeatures().getString("stress"); if(syllItem.getFeatures().isPresent("accent")){ accent = syllItem.getFeatures().getString("accent"); } buf.append(String.valueOf(end) + " 100 "+ syllable.toString() +" ; stress " + stress + "\n"); if(syllItem.getFeatures().isPresent("endtone")){ iE.append(String.valueOf(end) + " 100 " +syllItem.getFeatures().getString("endtone") + "\n"); } syllItem = syllItem.getNext(); } word.append(String.valueOf(end) + " 100 " + syllStrucItem.toString() + "\n"); if(accent != null){ iE.append(String.valueOf(end) + " 100 " + accent + "\n"); } syllStrucItem = syllStrucItem.getNext(); } buf.append(word.toString()); buf.append(iE.toString()); buf.append("==Phrase==\n"); buf.append("#\n"); Relation phraseRelation = utt.getRelation(Relation.PHRASE); assert phraseRelation != null; Item phraseItem = phraseRelation.getHead(); while (phraseItem != null) { float end = 0; int phraseBreak; if (phraseItem.getFeatures().getString("name").equals("BB")) { phraseBreak = 4; // major IP break } else if (phraseItem.getFeatures().getString("name").equals("B")) { phraseBreak = 3; // minor ip break } else { logger.debug("Unexpected phrase name: '" + phraseItem.getFeatures().getString("name") + "'"); phraseBreak = 1; // Fallback: word break } // now loop over the word daughters of this phrase item: Item wordItemInPhrase = phraseItem.getDaughter(); while (wordItemInPhrase != null) { Item next = wordItemInPhrase.getNext(); Item lastSegmentItem = wordItemInPhrase.findItem("R:SylStructure.daughtern.daughtern"); if (lastSegmentItem != null) { end = lastSegmentItem.getFeatures().getFloat("end"); int thisBreak = 1; if (next == null) { thisBreak = phraseBreak; } buf.append(end + " 100 " + thisBreak + "\n"); } wordItemInPhrase = next; } phraseItem = phraseItem.getNext(); } return buf.toString(); }
48071 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48071/52ecb266cb8cc7530adb7a96d6f131b9c036042d/FreeTTS2FestivalUtt.java/clean/java/de/dfki/lt/mary/modules/FreeTTS2FestivalUtt.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 1765, 57, 748, 12, 57, 88, 387, 1359, 5218, 88, 13, 288, 3639, 6674, 1681, 273, 394, 6674, 5621, 3639, 1681, 18, 6923, 2932, 12275, 57, 88, 387, 1359, 12275, 64, 82, 8863, 3639, 1681, 18, 6923, 12, 16169, 11774, 25989, 397, 15217, 1470, 23927, 17725, 18, 588, 49, 814, 14572, 12, 322, 88, 18, 588, 14572, 1435, 2934, 17994, 1435, 397, 1548, 82, 8863, 3639, 368, 10807, 2533, 364, 333, 31297, 3639, 1681, 18, 6923, 2932, 631, 4131, 631, 64, 82, 8863, 3639, 1681, 18, 6923, 2932, 7, 64, 82, 8863, 3639, 7317, 3267, 3963, 273, 5218, 88, 18, 588, 3963, 12, 3963, 18, 25587, 1769, 3639, 1815, 3267, 3963, 480, 446, 31, 3639, 4342, 3267, 1180, 273, 3267, 3963, 18, 588, 1414, 5621, 3639, 1323, 261, 9273, 1180, 480, 446, 13, 288, 540, 202, 5659, 679, 17840, 273, 3267, 1180, 18, 588, 8696, 7675, 588, 4723, 2932, 409, 8863, 540, 202, 780, 3267, 780, 273, 3267, 1180, 18, 10492, 5621, 540, 202, 4385, 18, 6923, 12, 780, 18, 1132, 951, 12, 409, 17840, 13, 397, 315, 2130, 315, 397, 3267, 780, 397, 1548, 82, 8863, 540, 202, 9273, 1180, 273, 3267, 1180, 18, 588, 2134, 5621, 3639, 289, 7734, 368, 5916, 2533, 364, 333, 31297, 3639, 1681, 18, 6923, 2932, 631, 2326, 631, 64, 82, 8863, 3639, 1681, 18, 6923, 2932, 7, 64, 82, 8863, 3639, 7317, 1018, 3963, 273, 5218, 88, 18, 588, 3963, 12, 3963, 18, 16374, 1769, 3639, 1815, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 1765, 57, 748, 12, 57, 88, 387, 1359, 5218, 88, 13, 288, 3639, 6674, 1681, 273, 394, 6674, 5621, 3639, 1681, 18, 6923, 2932, 12275, 57, 88, 387, 1359, 12275, 64, 82, 8863, 3639, 1681, 18, 6923, 12, 16169, 11774, 25989, 397, 15217, 1470, 23927, 17725, 18, 588, 49, 814, 14572, 12, 322, 88, 18, 588, 14572, 1435, 2934, 17994, 1435, 397, 1548, 82, 8863, 3639, 368, 10807, 2533, 364, 333, 31297, 3639, 1681, 18, 6923, 2932, 631, 4131, 631, 64, 82, 8863, 3639, 1681, 18, 6923, 2932, 7, 64, 82, 8863, 3639, 7317, 3267, 3963, 273, 5218, 88, 18, 588, 3963, 12, 3963, 18, 25587, 1769, 3639, 1815, 3267, 3963, 480, 446, 31, 3639, 4342, 2 ]
((ApplicationWindow) PlatformUI.getWorkbench().getActiveWorkbenchWindow()) .setStatus("Download of bug: " + bugzillaTask + " failed due to I/O exception"); }
MessageDialog.openError(Display.getDefault().getActiveShell(), "Report Download Failed", "Ensure proper repository configuration in " + TaskRepositoriesView.NAME + "."); }
public void run() { ((ApplicationWindow) PlatformUI.getWorkbench().getActiveWorkbenchWindow()) .setStatus("Download of bug: " + bugzillaTask + " failed due to I/O exception"); }
51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/139fc4bf3b3195a98377dc13c7dda9aaf377503c/BugzillaRepositoryConnector.java/buggy/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/tasklist/BugzillaRepositoryConnector.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4405, 202, 482, 918, 1086, 1435, 288, 25083, 202, 12443, 3208, 3829, 13, 11810, 5370, 18, 588, 2421, 22144, 7675, 588, 3896, 2421, 22144, 3829, 10756, 6862, 9506, 202, 18, 542, 1482, 2932, 7109, 434, 7934, 30, 315, 397, 7934, 15990, 2174, 397, 315, 2535, 6541, 358, 467, 19, 51, 1520, 8863, 6862, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4405, 202, 482, 918, 1086, 1435, 288, 25083, 202, 12443, 3208, 3829, 13, 11810, 5370, 18, 588, 2421, 22144, 7675, 588, 3896, 2421, 22144, 3829, 10756, 6862, 9506, 202, 18, 542, 1482, 2932, 7109, 434, 7934, 30, 315, 397, 7934, 15990, 2174, 397, 315, 2535, 6541, 358, 467, 19, 51, 1520, 8863, 6862, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
loadData(FILE_APPLOCKS); loadData(FILE_APPSCHEDULED);
static void start(BundleContext bc) { context = bc; shutdown = false; initConfiguration(); loadData(FILE_APPLOCKS); loadData(FILE_APPSCHEDULED); }
13530 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13530/d2563f8ebb11f0f0d1c2ea67e2f19fdfd42624c5/AppPersistence.java/clean/bundles/org.eclipse.equinox.app/src/org/eclipse/equinox/internal/app/AppPersistence.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 3845, 918, 787, 12, 3405, 1042, 6533, 13, 288, 202, 202, 2472, 273, 6533, 31, 202, 202, 15132, 273, 629, 31, 202, 202, 2738, 1750, 5621, 202, 202, 945, 751, 12, 3776, 67, 7215, 6589, 55, 1769, 202, 202, 945, 751, 12, 3776, 67, 2203, 5857, 27395, 40, 1769, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3845, 918, 787, 12, 3405, 1042, 6533, 13, 288, 202, 202, 2472, 273, 6533, 31, 202, 202, 15132, 273, 629, 31, 202, 202, 2738, 1750, 5621, 202, 202, 945, 751, 12, 3776, 67, 7215, 6589, 55, 1769, 202, 202, 945, 751, 12, 3776, 67, 2203, 5857, 27395, 40, 1769, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
{ getLog().error( "An error occurred while resolving project dependencies.", e ); } catch ( ArtifactNotFoundException e )
private ReportResolutionListener resolveProject() { Map managedVersions = null; try { managedVersions = createManagedVersionMap( project.getId(), project.getDependencyManagement() ); } catch ( ProjectBuildingException e ) { getLog().error( "An error occurred while resolving project dependencies.", e ); } ReportResolutionListener listener = new ReportResolutionListener(); try { resolver.resolveTransitively( project.getDependencyArtifacts(), project.getArtifact(), managedVersions, localRepository, project.getRemoteArtifactRepositories(), artifactMetadataSource, null, Collections.singletonList( listener ) ); } catch ( ArtifactResolutionException e ) { getLog().error( "An error occurred while resolving project dependencies.", e ); } catch ( ArtifactNotFoundException e ) { getLog().error( "An error occurred while resolving project dependencies.", e ); } return listener; }
7444 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7444/ad45fa36263c297386288d390ebf3f7d58bbbbdd/DependenciesReport.java/clean/maven-project-info-reports-plugin/src/main/java/org/apache/maven/report/projectinfo/DependenciesReport.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 8706, 11098, 2223, 2245, 4109, 1435, 565, 288, 3639, 1635, 7016, 5940, 273, 446, 31, 3639, 775, 3639, 288, 5411, 7016, 5940, 273, 752, 10055, 1444, 863, 12, 1984, 18, 26321, 9334, 1984, 18, 588, 7787, 10998, 1435, 11272, 3639, 289, 3639, 1044, 261, 5420, 16713, 503, 425, 262, 3639, 288, 5411, 9189, 7675, 1636, 12, 315, 979, 555, 7841, 1323, 17188, 1984, 5030, 1199, 16, 425, 11272, 3639, 289, 3639, 8706, 11098, 2223, 2991, 273, 394, 8706, 11098, 2223, 5621, 3639, 775, 3639, 288, 5411, 5039, 18, 10828, 26164, 4492, 12, 1984, 18, 588, 7787, 16981, 9334, 1984, 18, 588, 7581, 9334, 7016, 5940, 16, 4766, 1850, 1191, 3305, 16, 1984, 18, 588, 5169, 7581, 18429, 9334, 4766, 1850, 6462, 2277, 1830, 16, 446, 16, 5737, 18, 24487, 682, 12, 2991, 262, 11272, 3639, 289, 3639, 1044, 261, 14022, 11098, 503, 425, 262, 3639, 288, 5411, 9189, 7675, 1636, 12, 315, 979, 555, 7841, 1323, 17188, 1984, 5030, 1199, 16, 425, 11272, 3639, 289, 3639, 1044, 261, 14022, 3990, 425, 262, 3639, 288, 5411, 9189, 7675, 1636, 12, 315, 979, 555, 7841, 1323, 17188, 1984, 5030, 1199, 16, 425, 11272, 3639, 289, 3639, 327, 2991, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 8706, 11098, 2223, 2245, 4109, 1435, 565, 288, 3639, 1635, 7016, 5940, 273, 446, 31, 3639, 775, 3639, 288, 5411, 7016, 5940, 273, 752, 10055, 1444, 863, 12, 1984, 18, 26321, 9334, 1984, 18, 588, 7787, 10998, 1435, 11272, 3639, 289, 3639, 1044, 261, 5420, 16713, 503, 425, 262, 3639, 288, 5411, 9189, 7675, 1636, 12, 315, 979, 555, 7841, 1323, 17188, 1984, 5030, 1199, 16, 425, 11272, 3639, 289, 3639, 8706, 11098, 2223, 2991, 273, 394, 8706, 11098, 2223, 5621, 3639, 775, 3639, 288, 5411, 5039, 18, 10828, 26164, 4492, 12, 1984, 18, 588, 7787, 16981, 9334, 1984, 18, 588, 7581, 9334, 7016, 5940, 16, 4766, 1850, 1191, 3305, 16, 1984, 18, 588, 5169, 7581, 18429, 2 ]
for ( int i = FIRST_CHOICE; i <= LAST_CHOICE; ++i )
for ( int i = 0; i < LouvreChoiceTable.length; ++i ) for ( int j = 0; j < LouvreChoiceTable[i].length; ++j ) LouvreChoiceTable[i][j] = 0; int lastLouvreAscension = StaticEntity.getIntegerProperty( "lastLouvreMap" ); if ( lastLouvreAscension < KoLCharacter.getAscensions() )
public static void reset() { // Reset what we've "learned" about the Louvre choices for ( int i = FIRST_CHOICE; i <= LAST_CHOICE; ++i ) { int choice[] = choiceTuple( i ); choice[0] = 0; choice[1] = 0; choice[2] = 0; } }
50364 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50364/81a24396aa44342472590b5bd9a34c50fb0c4426/Louvre.java/clean/src/net/sourceforge/kolmafia/Louvre.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 918, 2715, 1435, 202, 95, 202, 202, 759, 7151, 4121, 732, 8081, 315, 21346, 329, 6, 2973, 326, 511, 1395, 90, 266, 7246, 202, 202, 1884, 261, 509, 277, 273, 21786, 67, 22213, 11774, 31, 277, 1648, 15612, 67, 22213, 11774, 31, 965, 77, 262, 202, 202, 95, 1082, 202, 474, 6023, 8526, 273, 6023, 9038, 12, 277, 11272, 1082, 202, 11569, 63, 20, 65, 273, 374, 31, 1082, 202, 11569, 63, 21, 65, 273, 374, 31, 1082, 202, 11569, 63, 22, 65, 273, 374, 31, 202, 202, 97, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 760, 918, 2715, 1435, 202, 95, 202, 202, 759, 7151, 4121, 732, 8081, 315, 21346, 329, 6, 2973, 326, 511, 1395, 90, 266, 7246, 202, 202, 1884, 261, 509, 277, 273, 21786, 67, 22213, 11774, 31, 277, 1648, 15612, 67, 22213, 11774, 31, 965, 77, 262, 202, 202, 95, 1082, 202, 474, 6023, 8526, 273, 6023, 9038, 12, 277, 11272, 1082, 202, 11569, 63, 20, 65, 273, 374, 31, 1082, 202, 11569, 63, 21, 65, 273, 374, 31, 1082, 202, 11569, 63, 22, 65, 273, 374, 31, 202, 202, 97, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
for (int i = 0; i < elements.length; i++) reader.readElement(elements[i]);
for (int i = 0; i < elements.length; i++) { reader.readElement(elements[i]); }
private void loadFontDefinitions(IExtension ext) { ThemeRegistryReader reader = new ThemeRegistryReader(); reader.setRegistry((ThemeRegistry) WorkbenchPlugin.getDefault() .getThemeRegistry()); IConfigurationElement[] elements = ext.getConfigurationElements(); for (int i = 0; i < elements.length; i++) reader.readElement(elements[i]); Collection fonts = reader.getFontDefinitions(); FontDefinition[] fontDefs = (FontDefinition[]) fonts .toArray(new FontDefinition[fonts.size()]); ThemeElementHelper.populateRegistry(workbench.getThemeManager() .getTheme(IThemeManager.DEFAULT_THEME), fontDefs, PrefUtil .getInternalPreferenceStore()); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/fa4a8cff0e027f8d3c6b1fcb92b30f46767dd191/ExtensionEventHandler.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/ExtensionEventHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1262, 5711, 7130, 12, 45, 3625, 1110, 13, 288, 3639, 19745, 4243, 2514, 2949, 273, 394, 19745, 4243, 2514, 5621, 3639, 2949, 18, 542, 4243, 12443, 8335, 4243, 13, 4147, 22144, 3773, 18, 588, 1868, 1435, 7734, 263, 588, 8335, 4243, 10663, 3639, 467, 1750, 1046, 8526, 2186, 273, 1110, 18, 588, 1750, 3471, 5621, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 2186, 18, 2469, 31, 277, 27245, 5411, 2949, 18, 896, 1046, 12, 6274, 63, 77, 19226, 3639, 2200, 16450, 273, 2949, 18, 588, 5711, 7130, 5621, 3639, 10063, 1852, 8526, 3512, 14554, 273, 261, 5711, 1852, 63, 5717, 16450, 7734, 263, 31447, 12, 2704, 10063, 1852, 63, 22052, 18, 1467, 1435, 19226, 3639, 19745, 1046, 2276, 18, 19936, 4243, 12, 1252, 22144, 18, 588, 8335, 1318, 1435, 9506, 202, 18, 588, 8335, 12, 1285, 76, 4698, 1318, 18, 5280, 67, 24644, 958, 3631, 3512, 14554, 16, 28184, 1304, 9506, 202, 18, 588, 3061, 9624, 2257, 10663, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1262, 5711, 7130, 12, 45, 3625, 1110, 13, 288, 3639, 19745, 4243, 2514, 2949, 273, 394, 19745, 4243, 2514, 5621, 3639, 2949, 18, 542, 4243, 12443, 8335, 4243, 13, 4147, 22144, 3773, 18, 588, 1868, 1435, 7734, 263, 588, 8335, 4243, 10663, 3639, 467, 1750, 1046, 8526, 2186, 273, 1110, 18, 588, 1750, 3471, 5621, 3639, 364, 261, 474, 277, 273, 374, 31, 277, 411, 2186, 18, 2469, 31, 277, 27245, 5411, 2949, 18, 896, 1046, 12, 6274, 63, 77, 19226, 3639, 2200, 16450, 273, 2949, 18, 588, 5711, 7130, 5621, 3639, 10063, 1852, 8526, 3512, 14554, 273, 261, 5711, 1852, 63, 5717, 16450, 7734, 263, 31447, 12, 2704, 10063, 1852, 63, 22052, 18, 1467, 1435, 2 ]
if(value!= null) enhprof.setPINType(EnhancedEIDProfile.CERTUSAGE_SIGN, Integer.parseInt(value));
public String parseRequest(HttpServletRequest request) throws AuthorizationDeniedException{ String includefile = PAGE_HARDTOKENPROFILES; String profile = null; HardTokenProfileDataHandler handler = hardtokenbean.getHardTokenProfileDataHandler(); String action = null; InputStream file = null; boolean buttonupload = false; String filename = null; if(FileUploadBase.isMultipartContent(request)){ try{ DiskFileUpload upload = new DiskFileUpload(); upload.setSizeMax(2000000); upload.setSizeThreshold(1999999); List /* FileItem */ items = upload.parseRequest(request); Iterator iter = items.iterator(); while (iter.hasNext()) { FileItem item = (FileItem) iter.next(); if (item.isFormField()) { if(item.getFieldName().equals(ACTION)) action = item.getString(); if(item.getFieldName().equals(HIDDEN_HARDTOKENPROFILENAME)) profilename = item.getString(); if(item.getFieldName().equals(BUTTON_CANCEL)) { // do nothing } if(item.getFieldName().equals(BUTTON_UPLOADFILE)) buttonupload = true; }else{ file = item.getInputStream(); filename = item.getName(); } } }catch(IOException e){ fileuploadfailed = true; includefile=PAGE_HARDTOKENPROFILE; }catch(FileUploadException e){ fileuploadfailed = true; includefile=PAGE_HARDTOKENPROFILE; } }else{ action = request.getParameter(ACTION); } if( action != null){ if( action.equals(ACTION_EDIT_HARDTOKENPROFILES)){ if( request.getParameter(BUTTON_EDIT_HARDTOKENPROFILES) != null){ // Display profilepage.jsp profile = request.getParameter(SELECT_HARDTOKENPROFILES); if(profile != null){ if(!profile.trim().equals("")){ includefile=PAGE_HARDTOKENPROFILE; this.profilename = profile; this.profiledata = handler.getHardTokenProfile(profilename); } else{ profile= null; } } if(profile == null){ includefile=PAGE_HARDTOKENPROFILES; } } if( request.getParameter(BUTTON_DELETE_HARDTOKENPROFILES) != null) { // Delete profile and display profilespage. profile = request.getParameter(SELECT_HARDTOKENPROFILES); if(profile != null){ if(!profile.trim().equals("")){ hardtokenprofiledeletefailed = handler.removeHardTokenProfile(profile); } } includefile=PAGE_HARDTOKENPROFILES; } if( request.getParameter(BUTTON_RENAME_HARDTOKENPROFILES) != null){ // Rename selected profile and display profilespage. String newhardtokenprofilename = request.getParameter(TEXTFIELD_HARDTOKENPROFILESNAME); String oldhardtokenprofilename = request.getParameter(SELECT_HARDTOKENPROFILES); if(oldhardtokenprofilename != null && newhardtokenprofilename != null){ if(!newhardtokenprofilename.trim().equals("") && !oldhardtokenprofilename.trim().equals("")){ try{ handler.renameHardTokenProfile(oldhardtokenprofilename.trim(),newhardtokenprofilename.trim()); }catch( HardTokenProfileExistsException e){ hardtokenprofileexists=true; } } } includefile=PAGE_HARDTOKENPROFILES; } if( request.getParameter(BUTTON_ADD_HARDTOKENPROFILES) != null){ // Add profile and display profilespage. profile = request.getParameter(TEXTFIELD_HARDTOKENPROFILESNAME); if(profile != null){ if(!profile.trim().equals("")){ try{ handler.addHardTokenProfile(profile.trim(), new SwedishEIDProfile()); }catch( HardTokenProfileExistsException e){ hardtokenprofileexists=true; } } } includefile=PAGE_HARDTOKENPROFILES; } if( request.getParameter(BUTTON_CLONE_HARDTOKENPROFILES) != null){ // clone profile and display profilespage. String newhardtokenprofilename = request.getParameter(TEXTFIELD_HARDTOKENPROFILESNAME); String oldhardtokenprofilename = request.getParameter(SELECT_HARDTOKENPROFILES); if(oldhardtokenprofilename != null && newhardtokenprofilename != null){ if(!newhardtokenprofilename.trim().equals("") && !oldhardtokenprofilename.trim().equals("")){ try{ handler.cloneHardTokenProfile(oldhardtokenprofilename.trim(),newhardtokenprofilename.trim()); }catch(HardTokenProfileExistsException e){ hardtokenprofileexists=true; } } } includefile=PAGE_HARDTOKENPROFILES; } } if( action.equals(ACTION_EDIT_HARDTOKENPROFILE)){ // Display edit access rules page. profile = request.getParameter(HIDDEN_HARDTOKENPROFILENAME); if(profile != null){ if(!profile.trim().equals("")){ if(request.getParameter(BUTTON_SAVE) != null || request.getParameter(BUTTON_UPLOADENVELOPETEMP) != null || request.getParameter(BUTTON_UPLOADVISUALTEMP) != null || request.getParameter(BUTTON_UPLOADRECEIPTTEMP) != null || request.getParameter(BUTTON_UPLOADADRESSLABELTEMP) != null ){ if(profiledata == null){ String tokentype = request.getParameter(HIDDEN_HARDTOKENTYPE); if(tokentype.equals(TYPE_SWEDISHEID)) profiledata = new SwedishEIDProfile(); if(tokentype.equals(TYPE_ENCHANCEDEID)) profiledata = new EnhancedEIDProfile(); } // Save changes. // General settings String value = request.getParameter(TEXTFIELD_SNPREFIX); if(value != null){ value = value.trim(); profiledata.setHardTokenSNPrefix(value); } value = request.getParameter(CHECKBOX_EREASBLE); if(value != null){ profiledata.setEreasableToken(value.equals(CHECKBOX_VALUE)); }else profiledata.setEreasableToken(false); value = request.getParameter(SELECT_NUMOFTOKENCOPIES); if(value != null){ profiledata.setNumberOfCopies(Integer.parseInt(value)); } value = request.getParameter(CHECKBOX_USEIDENTICALPINS); if(value != null){ profiledata.setGenerateIdenticalPINForCopies(value.equals(CHECKBOX_VALUE)); }else profiledata.setGenerateIdenticalPINForCopies(false); if(profiledata instanceof HardTokenProfileWithPINEnvelope){ value = request.getParameter(SELECT_ENVELOPETYPE); if(value != null) ((HardTokenProfileWithPINEnvelope) profiledata).setPINEnvelopeType(Integer.parseInt(value)); value = request.getParameter(SELECT_NUMOFENVELOPECOPIES); if(value != null) ((HardTokenProfileWithPINEnvelope) profiledata).setNumberOfPINEnvelopeCopies(Integer.parseInt(value)); value = request.getParameter(TEXTFIELD_VISUALVALIDITY); if(value != null) ((HardTokenProfileWithPINEnvelope) profiledata).setVisualValidity(Integer.parseInt(value)); } if(profiledata instanceof HardTokenProfileWithVisualLayout){ HardTokenProfileWithVisualLayout visprof = (HardTokenProfileWithVisualLayout) profiledata; value = request.getParameter(SELECT_VISUALLAYOUTTYPE); if(value != null) visprof.setVisualLayoutType(Integer.parseInt(value)); } if(profiledata instanceof HardTokenProfileWithReceipt){ value = request.getParameter(SELECT_RECEIPTTYPE); if(value != null) ((HardTokenProfileWithReceipt) profiledata).setReceiptType(Integer.parseInt(value)); value = request.getParameter(SELECT_NUMOFRECEIPTCOPIES); if(value != null) ((HardTokenProfileWithReceipt) profiledata).setNumberOfReceiptCopies(Integer.parseInt(value)); } if(profiledata instanceof HardTokenProfileWithAdressLabel){ value = request.getParameter(SELECT_ADRESSLABELTYPE); if(value != null) ((HardTokenProfileWithAdressLabel) profiledata).setAdressLabelType(Integer.parseInt(value)); value = request.getParameter(SELECT_NUMOFADRESSLABELCOPIES); if(value != null) ((HardTokenProfileWithAdressLabel) profiledata).setNumberOfAdressLabelCopies(Integer.parseInt(value)); } if(profiledata instanceof SwedishEIDProfile){ SwedishEIDProfile sweprof = (SwedishEIDProfile) profiledata; value = request.getParameter(SELECT_MINKEYLENGTH); if(value!= null){ int val = Integer.parseInt(value); sweprof.setMinimumKeyLength(SwedishEIDProfile.CERTUSAGE_SIGN, val); sweprof.setMinimumKeyLength(SwedishEIDProfile.CERTUSAGE_AUTHENC, val); sweprof.setKeyType(SwedishEIDProfile.CERTUSAGE_SIGN, EIDProfile.KEYTYPE_RSA); sweprof.setKeyType(SwedishEIDProfile.CERTUSAGE_AUTHENC, EIDProfile.KEYTYPE_RSA); } value = request.getParameter(SELECT_CERTIFICATEPROFILE + "0"); if(value!= null) sweprof.setCertificateProfileId(SwedishEIDProfile.CERTUSAGE_SIGN, Integer.parseInt(value)); value = request.getParameter(SELECT_PINTYPE + "0"); if(value!= null) sweprof.setPINType(SwedishEIDProfile.CERTUSAGE_SIGN, Integer.parseInt(value)); value = request.getParameter(SELECT_MINPINLENGTH + "0"); if(value!= null) sweprof.setMinimumPINLength(SwedishEIDProfile.CERTUSAGE_SIGN, Integer.parseInt(value)); value = request.getParameter(SELECT_CERTIFICATEPROFILE + "1"); if(value!= null) sweprof.setCertificateProfileId(SwedishEIDProfile.CERTUSAGE_AUTHENC, Integer.parseInt(value)); value = request.getParameter(SELECT_PINTYPE + "1"); if(value!= null) sweprof.setPINType(SwedishEIDProfile.CERTUSAGE_AUTHENC, Integer.parseInt(value)); value = request.getParameter(SELECT_MINPINLENGTH + "1"); if(value!= null) sweprof.setMinimumPINLength(SwedishEIDProfile.CERTUSAGE_AUTHENC, Integer.parseInt(value)); } if(profiledata instanceof EnhancedEIDProfile){ EnhancedEIDProfile enhprof = (EnhancedEIDProfile) profiledata; value = request.getParameter(SELECT_MINKEYLENGTH); if(value!= null){ int val = Integer.parseInt(value); enhprof.setMinimumKeyLength(EnhancedEIDProfile.CERTUSAGE_SIGN, val); enhprof.setMinimumKeyLength(EnhancedEIDProfile.CERTUSAGE_AUTH, val); enhprof.setMinimumKeyLength(EnhancedEIDProfile.CERTUSAGE_ENC, val); enhprof.setKeyType(EnhancedEIDProfile.CERTUSAGE_SIGN, EIDProfile.KEYTYPE_RSA); enhprof.setKeyType(EnhancedEIDProfile.CERTUSAGE_ENC, EIDProfile.KEYTYPE_RSA); enhprof.setKeyType(EnhancedEIDProfile.CERTUSAGE_ENC, EIDProfile.KEYTYPE_RSA); } value = request.getParameter(SELECT_CERTIFICATEPROFILE + "0"); if(value!= null) enhprof.setCertificateProfileId(EnhancedEIDProfile.CERTUSAGE_SIGN, Integer.parseInt(value)); value = request.getParameter(SELECT_CA + "0"); if(value!= null) enhprof.setCAId(EnhancedEIDProfile.CERTUSAGE_SIGN, Integer.parseInt(value)); value = request.getParameter(SELECT_PINTYPE + "0"); value = request.getParameter(SELECT_MINPINLENGTH + "0"); if(value!= null) enhprof.setMinimumPINLength(EnhancedEIDProfile.CERTUSAGE_SIGN, Integer.parseInt(value)); if(value!= null) enhprof.setPINType(EnhancedEIDProfile.CERTUSAGE_SIGN, Integer.parseInt(value)); enhprof.setIsKeyRecoverable(EnhancedEIDProfile.CERTUSAGE_SIGN, false); value = request.getParameter(SELECT_CERTIFICATEPROFILE + "1"); if(value!= null) enhprof.setCertificateProfileId(EnhancedEIDProfile.CERTUSAGE_AUTH, Integer.parseInt(value)); value = request.getParameter(SELECT_CA + "1"); if(value!= null) enhprof.setCAId(EnhancedEIDProfile.CERTUSAGE_AUTH, Integer.parseInt(value)); value = request.getParameter(SELECT_PINTYPE + "1"); if(value!= null) enhprof.setPINType(EnhancedEIDProfile.CERTUSAGE_AUTH, Integer.parseInt(value)); value = request.getParameter(SELECT_MINPINLENGTH + "1"); if(value!= null) enhprof.setMinimumPINLength(EnhancedEIDProfile.CERTUSAGE_AUTH, Integer.parseInt(value)); enhprof.setIsKeyRecoverable(EnhancedEIDProfile.CERTUSAGE_AUTH, false); value = request.getParameter(SELECT_CERTIFICATEPROFILE + "2"); if(value!= null) enhprof.setCertificateProfileId(EnhancedEIDProfile.CERTUSAGE_ENC, Integer.parseInt(value)); value = request.getParameter(SELECT_CA + "2"); if(value!= null) enhprof.setCAId(EnhancedEIDProfile.CERTUSAGE_ENC, Integer.parseInt(value)); value = request.getParameter(SELECT_PINTYPE + "2"); if(value!= null) enhprof.setPINType(EnhancedEIDProfile.CERTUSAGE_ENC, Integer.parseInt(value)); value = request.getParameter(SELECT_MINPINLENGTH + "2"); if(value!= null) enhprof.setMinimumPINLength(EnhancedEIDProfile.CERTUSAGE_ENC, Integer.parseInt(value)); value = request.getParameter(CHECKBOX_KEYRECOVERABLE + "2"); if(value != null) enhprof.setIsKeyRecoverable(EnhancedEIDProfile.CERTUSAGE_ENC, value.equals(CHECKBOX_VALUE)); else enhprof.setIsKeyRecoverable(EnhancedEIDProfile.CERTUSAGE_ENC, false); } if(request.getParameter(BUTTON_SAVE) != null){ handler.changeHardTokenProfile(profile,profiledata); includefile=PAGE_HARDTOKENPROFILES; } if(request.getParameter(BUTTON_UPLOADENVELOPETEMP) != null){ uploadmode = UPLOADMODE_ENVELOPE; includefile=PAGE_UPLOADTEMPLATE; } if(request.getParameter(BUTTON_UPLOADVISUALTEMP) != null){ uploadmode = UPLOADMODE_VISUAL; includefile=PAGE_UPLOADTEMPLATE; } if(request.getParameter(BUTTON_UPLOADRECEIPTTEMP) != null){ uploadmode = UPLOADMODE_RECEIPT; includefile=PAGE_UPLOADTEMPLATE; } if(request.getParameter(BUTTON_UPLOADADRESSLABELTEMP) != null){ uploadmode = UPLOADMODE_ADRESSLABEL; includefile=PAGE_UPLOADTEMPLATE; } } if(request.getParameter(BUTTON_CANCEL) != null){ // Don't save changes. includefile=PAGE_HARDTOKENPROFILES; } } } } if( action.equals(ACTION_CHANGE_PROFILETYPE)){ this.profilename = request.getParameter(HIDDEN_HARDTOKENPROFILENAME); String value = request.getParameter(SELECT_HARDTOKENTYPE); if(value!=null){ int profiletype = Integer.parseInt(value); switch(profiletype){ case SwedishEIDProfile.TYPE_SWEDISHEID : profiledata = new SwedishEIDProfile(); break; case EnhancedEIDProfile.TYPE_ENHANCEDEID: profiledata = new EnhancedEIDProfile(); break; } } includefile=PAGE_HARDTOKENPROFILE; } if( action.equals(ACTION_UPLOADENVELOPETEMP)){ if(buttonupload){ if(profiledata instanceof IPINEnvelopeSettings){ try{ BufferedReader br = new BufferedReader(new InputStreamReader(file,"UTF8")); String filecontent = ""; String nextline = ""; while(nextline!=null){ nextline = br.readLine(); if(nextline != null) filecontent += nextline + "\n"; } ((IPINEnvelopeSettings) profiledata).setPINEnvelopeData(filecontent); ((IPINEnvelopeSettings) profiledata).setPINEnvelopeTemplateFilename(filename); fileuploadsuccess = true; }catch(IOException ioe){ fileuploadfailed = true; } } } includefile=PAGE_HARDTOKENPROFILE; } if( action.equals(ACTION_UPLOADVISUALTEMP)){ if(profiledata instanceof IVisualLayoutSettings){ try{ BufferedReader br = new BufferedReader(new InputStreamReader(file,"UTF8")); String filecontent = ""; String nextline = ""; while(nextline!=null){ nextline = br.readLine(); if(nextline != null) filecontent += nextline + "\n"; } ((IVisualLayoutSettings) profiledata).setVisualLayoutData(filecontent); ((IVisualLayoutSettings) profiledata).setVisualLayoutTemplateFilename(filename); fileuploadsuccess = true; }catch(IOException ioe){ fileuploadfailed = true; } } includefile=PAGE_HARDTOKENPROFILE; } if( action.equals(ACTION_UPLOADRECEIPTTEMP)){ if(profiledata instanceof IReceiptSettings){ try{ BufferedReader br = new BufferedReader(new InputStreamReader(file,"UTF8")); String filecontent = ""; String nextline = ""; while(nextline!=null){ nextline = br.readLine(); if(nextline != null) filecontent += nextline + "\n"; } ((IReceiptSettings) profiledata).setReceiptData(filecontent); ((IReceiptSettings) profiledata).setReceiptTemplateFilename(filename); fileuploadsuccess = true; }catch(IOException ioe){ fileuploadfailed = true; } } includefile=PAGE_HARDTOKENPROFILE; } if( action.equals(ACTION_UPLOADADRESSLABELTEMP)){ if(profiledata instanceof IAdressLabelSettings){ try{ BufferedReader br = new BufferedReader(new InputStreamReader(file,"UTF8")); String filecontent = ""; String nextline = ""; while(nextline!=null){ nextline = br.readLine(); if(nextline != null) filecontent += nextline + "\n"; } ((IAdressLabelSettings) profiledata).setAdressLabelData(filecontent); ((IAdressLabelSettings) profiledata).setAdressLabelTemplateFilename(filename); fileuploadsuccess = true; }catch(IOException ioe){ fileuploadfailed = true; } } includefile=PAGE_HARDTOKENPROFILE; } } return includefile; }
4109 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4109/beccfd55d27b1b7afc70d260312797dadb67af36/EditHardTokenProfileJSPHelper.java/clean/src/java/se/anatom/ejbca/webdist/hardtokeninterface/EditHardTokenProfileJSPHelper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 1109, 691, 12, 2940, 18572, 590, 13, 1216, 10234, 15877, 95, 1377, 514, 2823, 89, 536, 398, 273, 11549, 67, 44, 8085, 8412, 3373, 12669, 31, 3196, 225, 514, 3042, 273, 446, 31, 202, 225, 670, 1060, 1345, 4029, 751, 1503, 1838, 225, 273, 7877, 2316, 14496, 18, 588, 29601, 1345, 4029, 751, 1503, 5621, 202, 1377, 514, 1301, 273, 446, 31, 202, 225, 5037, 585, 273, 446, 31, 202, 3639, 1250, 3568, 6327, 273, 629, 31, 1377, 514, 1544, 273, 446, 31, 202, 225, 309, 12, 812, 4777, 2171, 18, 291, 12024, 1350, 12, 2293, 3719, 95, 202, 282, 202, 698, 95, 1377, 202, 282, 9506, 225, 12951, 812, 4777, 3617, 273, 394, 12951, 812, 4777, 5621, 1082, 225, 3617, 18, 542, 1225, 2747, 12, 22, 9449, 1769, 10792, 1082, 225, 3617, 18, 542, 1225, 7614, 12, 21, 22866, 1769, 1082, 225, 987, 1748, 1387, 1180, 1195, 1516, 273, 3617, 18, 2670, 691, 12, 2293, 1769, 1377, 1082, 225, 4498, 1400, 273, 1516, 18, 9838, 5621, 1082, 225, 1323, 261, 2165, 18, 5332, 2134, 10756, 288, 1377, 1082, 225, 1387, 1180, 761, 273, 261, 812, 1180, 13, 1400, 18, 4285, 5621, 1082, 565, 309, 261, 1726, 18, 291, 27317, 10756, 288, 1850, 9506, 225, 309, 12, 1726, 18, 588, 7287, 7675, 14963, 12, 12249, 3719, 9506, 565, 1301, 273, 761, 18, 588, 780, 5621, 30306, 309, 12, 1726, 18, 588, 7287, 7675, 14963, 12, 44, 18216, 67, 44, 8085, 8412, 3373, 16080, 3719, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 1109, 691, 12, 2940, 18572, 590, 13, 1216, 10234, 15877, 95, 1377, 514, 2823, 89, 536, 398, 273, 11549, 67, 44, 8085, 8412, 3373, 12669, 31, 3196, 225, 514, 3042, 273, 446, 31, 202, 225, 670, 1060, 1345, 4029, 751, 1503, 1838, 225, 273, 7877, 2316, 14496, 18, 588, 29601, 1345, 4029, 751, 1503, 5621, 202, 1377, 514, 1301, 273, 446, 31, 202, 225, 5037, 585, 273, 446, 31, 202, 3639, 1250, 3568, 6327, 273, 629, 31, 1377, 514, 1544, 273, 446, 31, 202, 225, 309, 12, 812, 4777, 2171, 18, 291, 12024, 1350, 12, 2293, 3719, 95, 202, 282, 202, 698, 95, 1377, 202, 282, 9506, 225, 12951, 812, 4777, 3617, 273, 394, 12951, 812, 2 ]
}
}
public long getValue() { return (value);}
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/e8834e60eedea5a65712de1e0c0fa2d875e22b9c/Lease.java/clean/core/src/classpath/java/java/rmi/dgc/Lease.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 1525, 2366, 1435, 288, 202, 2463, 261, 1132, 1769, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 1525, 2366, 1435, 288, 202, 2463, 261, 1132, 1769, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
monitor.checkStatus(addr, new HashMap(), m_pollerConfig.getPackage("TestPackage"));
monitor.poll(addr, new HashMap(), m_pollerConfig.getPackage("TestPackage"));
public void testInvalidPoll() throws UnknownHostException { m_network.resetInvalidPollCount(); IPv4NetworkInterface addr = new MockNetworkInterface("1.1.1.1"); ServiceMonitor monitor = m_pollerConfig.getServiceMonitor("ICMP"); try { monitor.checkStatus(addr, new HashMap(), m_pollerConfig.getPackage("TestPackage")); fail("expected exception"); } catch (Exception e) { // expected this } assertEquals(1, m_network.getInvalidPollCount()); }
47678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47678/cf3cfd7c0406f90c8f4e36754c53b8dcef4a6a6e/MockNetworkTest.java/clean/src/services/org/opennms/netmgt/mock/MockNetworkTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1941, 19085, 1435, 1216, 30592, 288, 3639, 312, 67, 5185, 18, 6208, 1941, 19085, 1380, 5621, 3639, 7853, 24, 27413, 3091, 273, 394, 7867, 27413, 2932, 21, 18, 21, 18, 21, 18, 21, 8863, 3639, 1956, 7187, 6438, 273, 312, 67, 3915, 749, 809, 18, 588, 1179, 7187, 2932, 2871, 4566, 8863, 3639, 775, 288, 5411, 6438, 18, 13835, 12, 4793, 16, 394, 4317, 9334, 312, 67, 3915, 749, 809, 18, 588, 2261, 2932, 4709, 2261, 7923, 1769, 5411, 2321, 2932, 3825, 1520, 8863, 3639, 289, 1044, 261, 503, 425, 13, 288, 5411, 368, 2665, 333, 3639, 289, 3639, 1815, 8867, 12, 21, 16, 312, 67, 5185, 18, 588, 1941, 19085, 1380, 10663, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1941, 19085, 1435, 1216, 30592, 288, 3639, 312, 67, 5185, 18, 6208, 1941, 19085, 1380, 5621, 3639, 7853, 24, 27413, 3091, 273, 394, 7867, 27413, 2932, 21, 18, 21, 18, 21, 18, 21, 8863, 3639, 1956, 7187, 6438, 273, 312, 67, 3915, 749, 809, 18, 588, 1179, 7187, 2932, 2871, 4566, 8863, 3639, 775, 288, 5411, 6438, 18, 13835, 12, 4793, 16, 394, 4317, 9334, 312, 67, 3915, 749, 809, 18, 588, 2261, 2932, 4709, 2261, 7923, 1769, 5411, 2321, 2932, 3825, 1520, 8863, 3639, 289, 1044, 261, 503, 425, 13, 288, 5411, 368, 2665, 333, 3639, 289, 3639, 1815, 8867, 12, 21, 16, 312, 67, 5185, 18, 588, 1941, 19085, 1380, 10663, 565, 289, 2 ]
public XmlElementDescriptor[] getRootElementsDescriptors() { return (myDelegate!=null)?myDelegate.getRootElementsDescriptors():XmlElementDescriptor.EMPTY_ARRAY;
public XmlElementDescriptor[] getRootElementsDescriptors(final XmlDocument document) { return (myDelegate!=null)?myDelegate.getRootElementsDescriptors(document):XmlElementDescriptor.EMPTY_ARRAY;
public XmlElementDescriptor[] getRootElementsDescriptors() { return (myDelegate!=null)?myDelegate.getRootElementsDescriptors():XmlElementDescriptor.EMPTY_ARRAY; }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/190286ca0a803ff8ef85666b23939fbb8775d405/HtmlNSDescriptorImpl.java/clean/source/com/intellij/psi/impl/source/html/dtd/HtmlNSDescriptorImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 15412, 3187, 8526, 7656, 3471, 12705, 1435, 288, 565, 327, 261, 4811, 9586, 5, 33, 2011, 9945, 4811, 9586, 18, 588, 2375, 3471, 12705, 13332, 4432, 1046, 3187, 18, 13625, 67, 8552, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 15412, 3187, 8526, 7656, 3471, 12705, 1435, 288, 565, 327, 261, 4811, 9586, 5, 33, 2011, 9945, 4811, 9586, 18, 588, 2375, 3471, 12705, 13332, 4432, 1046, 3187, 18, 13625, 67, 8552, 31, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
fs.put("URI", uri.toString(false));
fs.put("URI", uri.toString(false, false));
public synchronized SimpleFieldSet getFieldSet() { SimpleFieldSet fs = new SimpleFieldSet(); // we will need multi-level later... fs.put("Type", "GET"); fs.put("URI", uri.toString(false)); fs.put("Identifier", identifier); fs.put("Verbosity", Integer.toString(verbosity)); fs.put("PriorityClass", Short.toString(priorityClass)); fs.put("ReturnType", ClientGetMessage.returnTypeString(returnType)); fs.put("Persistence", persistenceTypeString(persistenceType)); fs.put("ClientName", client.name); if(targetFile != null) fs.put("Filename", targetFile.getPath()); if(tempFile != null) fs.put("TempFilename", tempFile.getPath()); if(clientToken != null) fs.put("ClientToken", clientToken); fs.put("IgnoreDS", Boolean.toString(fctx.ignoreStore)); fs.put("DSOnly", Boolean.toString(fctx.localRequestOnly)); fs.put("MaxRetries", Integer.toString(fctx.maxNonSplitfileRetries)); fs.put("Finished", Boolean.toString(finished)); fs.put("Succeeded", Boolean.toString(succeeded)); if(finished) { if(succeeded) { fs.put("FoundDataLength", Long.toString(foundDataLength)); fs.put("FoundDataMimeType", foundDataMimeType); if(postFetchProtocolErrorMessage != null) { fs.put("PostFetchProtocolError", postFetchProtocolErrorMessage.getFieldSet()); } } else { if(getFailedMessage != null) { fs.put("GetFailed", getFailedMessage.getFieldSet(false)); } } } // Return bucket if(returnType == ClientGetMessage.RETURN_TYPE_DIRECT) { PaddedEphemerallyEncryptedBucket b = (PaddedEphemerallyEncryptedBucket) returnBucket; FileBucket underlying = (FileBucket) (b.getUnderlying()); fs.put("ReturnBucket.DecryptKey", HexUtil.bytesToHex(b.getKey())); fs.put("ReturnBucket.Filename", underlying.getName()); } fs.put("Global", Boolean.toString(client.isGlobalQueue)); return fs; }
8026 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8026/1c876261ab73159d57a26624667ec7bf7acd15b8/ClientGet.java/buggy/src/freenet/node/fcp/ClientGet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3852, 4477, 974, 694, 5031, 694, 1435, 288, 202, 202, 5784, 974, 694, 2662, 273, 394, 4477, 974, 694, 5621, 368, 732, 903, 1608, 3309, 17, 2815, 5137, 2777, 202, 202, 2556, 18, 458, 2932, 559, 3113, 315, 3264, 8863, 202, 202, 2556, 18, 458, 2932, 3098, 3113, 2003, 18, 10492, 12, 5743, 10019, 202, 202, 2556, 18, 458, 2932, 3004, 3113, 2756, 1769, 202, 202, 2556, 18, 458, 2932, 30594, 3113, 2144, 18, 10492, 12, 16629, 8807, 10019, 202, 202, 2556, 18, 458, 2932, 8183, 797, 3113, 7925, 18, 10492, 12, 8457, 797, 10019, 202, 202, 2556, 18, 458, 2932, 9102, 3113, 2445, 967, 1079, 18, 2463, 559, 780, 12, 2463, 559, 10019, 202, 202, 2556, 18, 458, 2932, 13182, 3113, 9756, 559, 780, 12, 24854, 559, 10019, 202, 202, 2556, 18, 458, 2932, 1227, 461, 3113, 1004, 18, 529, 1769, 202, 202, 430, 12, 3299, 812, 480, 446, 13, 1082, 202, 2556, 18, 458, 2932, 5359, 3113, 21254, 18, 588, 743, 10663, 202, 202, 430, 12, 5814, 812, 480, 446, 13, 1082, 202, 2556, 18, 458, 2932, 7185, 5359, 3113, 18286, 18, 588, 743, 10663, 202, 202, 430, 12, 2625, 1345, 480, 446, 13, 1082, 202, 2556, 18, 458, 2932, 1227, 1345, 3113, 1004, 1345, 1769, 202, 202, 2556, 18, 458, 2932, 3777, 3948, 3113, 3411, 18, 10492, 12, 74, 5900, 18, 6185, 2257, 10019, 202, 202, 2556, 18, 458, 2932, 3948, 3386, 3113, 3411, 18, 10492, 12, 74, 5900, 18, 3729, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4477, 974, 694, 5031, 694, 1435, 288, 202, 202, 5784, 974, 694, 2662, 273, 394, 4477, 974, 694, 5621, 368, 732, 903, 1608, 3309, 17, 2815, 5137, 2777, 202, 202, 2556, 18, 458, 2932, 559, 3113, 315, 3264, 8863, 202, 202, 2556, 18, 458, 2932, 3098, 3113, 2003, 18, 10492, 12, 5743, 10019, 202, 202, 2556, 18, 458, 2932, 3004, 3113, 2756, 1769, 202, 202, 2556, 18, 458, 2932, 30594, 3113, 2144, 18, 10492, 12, 16629, 8807, 10019, 202, 202, 2556, 18, 458, 2932, 8183, 797, 3113, 7925, 18, 10492, 12, 8457, 797, 10019, 202, 202, 2556, 18, 458, 2932, 9102, 3113, 2445, 967, 1079, 18, 2463, 559, 780, 12, 2463, 559, 10019, 202, 202, 2 ]
String fileName = GlobalModelNaming.getDisplayFullPath(doc);
String fileName = doc.getDisplayFullPath();
public void testMatchBraceText() { try{ DefinitionsPane definitions = _frame.getCurrentDefPane(); OpenDefinitionsDocument doc = definitions.getOpenDefDocument(); _assertDocumentEmpty(doc, "before testing"); doc.insertString(0, "{\n" + "public class Foo {\n" + //21 " private int whatev\n" + //42 " private void _method()\n" + //67 " {\n" + //71 " do stuff\n" + //85 " new Object() {\n" + //105 " }\n" + //116 " }\n" + "}" + "}" , null); String fileName = GlobalModelNaming.getDisplayFullPath(doc); definitions.setCaretPosition(4); assertEquals("Should display the document path", fileName, _frame.getFileNameField()); definitions.setCaretPosition(115); assertEquals("Should display the line matched", "Matches: new Object() {", _frame.getFileNameField()); definitions.setCaretPosition(102); assertEquals("Should display the document matched", fileName, _frame.getFileNameField()); definitions.setCaretPosition(119); assertEquals("Should display the line matched", "Matches: private void _method()...{", _frame.getFileNameField()); definitions.setCaretPosition(121); assertEquals("Should display the line matched", "Matches: public class Foo {", _frame.getFileNameField()); definitions.setCaretPosition(122); assertEquals("Should display only one brace when matching an open brace that is the first character in a line", "Matches: {", _frame.getFileNameField()); } catch (BadLocationException e) {throw new UnexpectedException(e);} }
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/838397e908a24e107f724695c1466c1c498ec946/DefinitionsPaneTest.java/buggy/drjava/src/edu/rice/cs/drjava/ui/DefinitionsPaneTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1842, 2060, 21965, 1528, 1435, 288, 565, 775, 95, 1377, 10849, 87, 8485, 6377, 273, 389, 3789, 18, 588, 3935, 3262, 8485, 5621, 1377, 3502, 7130, 2519, 997, 273, 6377, 18, 588, 3678, 3262, 2519, 5621, 1377, 389, 11231, 2519, 1921, 12, 2434, 16, 315, 5771, 7769, 8863, 1377, 997, 18, 6387, 780, 12, 20, 16, 13491, 4144, 64, 82, 6, 397, 15604, 315, 482, 667, 23077, 18890, 82, 6, 397, 368, 5340, 15604, 315, 225, 3238, 509, 600, 340, 90, 64, 82, 6, 397, 368, 9452, 15604, 315, 225, 3238, 918, 389, 2039, 1435, 64, 82, 6, 397, 368, 9599, 15604, 315, 225, 18890, 82, 6, 397, 368, 11212, 15604, 315, 377, 741, 10769, 64, 82, 6, 397, 368, 7140, 15604, 315, 377, 394, 1033, 1435, 18890, 82, 6, 397, 368, 21661, 15604, 315, 540, 289, 64, 82, 6, 397, 368, 20562, 15604, 315, 225, 289, 64, 82, 6, 397, 15604, 11883, 397, 15604, 11883, 7682, 269, 446, 1769, 5411, 514, 3968, 273, 997, 18, 588, 4236, 24173, 5621, 5411, 6377, 18, 542, 39, 20731, 2555, 12, 24, 1769, 1377, 1815, 8867, 2932, 14309, 2562, 326, 1668, 589, 3113, 3968, 16, 389, 3789, 18, 588, 4771, 974, 10663, 1377, 6377, 18, 542, 39, 20731, 2555, 12, 22062, 1769, 1377, 1815, 8867, 2932, 14309, 2562, 326, 980, 4847, 3113, 315, 6869, 30, 1377, 394, 1033, 1435, 288, 3113, 389, 3789, 18, 588, 4771, 974, 10663, 1377, 6377, 18, 542, 39, 20731, 2555, 12, 20481, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2060, 21965, 1528, 1435, 288, 565, 775, 95, 1377, 10849, 87, 8485, 6377, 273, 389, 3789, 18, 588, 3935, 3262, 8485, 5621, 1377, 3502, 7130, 2519, 997, 273, 6377, 18, 588, 3678, 3262, 2519, 5621, 1377, 389, 11231, 2519, 1921, 12, 2434, 16, 315, 5771, 7769, 8863, 1377, 997, 18, 6387, 780, 12, 20, 16, 13491, 4144, 64, 82, 6, 397, 15604, 315, 482, 667, 23077, 18890, 82, 6, 397, 368, 5340, 15604, 315, 225, 3238, 509, 600, 340, 90, 64, 82, 6, 397, 368, 9452, 15604, 315, 225, 3238, 918, 389, 2039, 1435, 64, 82, 6, 397, 368, 9599, 15604, 315, 225, 18890, 82, 6, 397, 368, 11212, 15604, 315, 377, 741, 10769, 64, 2 ]
arrange(new Rectangle(leftOfLayout, topOfLayout, clientArea.width, trim_top), top.getCaches(), !top.isVertical(), spacing);
protected void layout(Composite composite, boolean flushCache) { removeDisposed(); TrimArea top = (TrimArea) fTrimArea.get(TOP_ID); TrimArea bottom = (TrimArea) fTrimArea.get(BOTTOM_ID); TrimArea left = (TrimArea) fTrimArea.get(LEFT_ID); TrimArea right = (TrimArea) fTrimArea.get(RIGHT_ID); Rectangle clientArea = composite.getClientArea(); clientArea.x += marginWidth; clientArea.width -= 2 * marginWidth; clientArea.y += marginHeight; clientArea.height -= 2 * marginHeight; int trim_top = top.calculateTrimSize(clientArea.width, clientArea.height); int trim_bottom = bottom.calculateTrimSize(clientArea.width, clientArea.height); int trim_left = left.calculateTrimSize(clientArea.width, clientArea.height); int trim_right = right.calculateTrimSize(clientArea.width, clientArea.height); int leftOfLayout = clientArea.x; int leftOfCenterPane = leftOfLayout + trim_left + leftSpacing; int widthOfCenterPane = clientArea.width - trim_left - trim_right - leftSpacing - rightSpacing; int rightOfCenterPane = clientArea.x + clientArea.width - trim_right; int topOfLayout = clientArea.y; int topOfCenterPane = topOfLayout + trim_top + topSpacing; int heightOfCenterPane = clientArea.height - trim_top - trim_bottom - topSpacing - bottomSpacing; int bottomOfCenterPane = clientArea.y + clientArea.height - trim_bottom; arrange(new Rectangle(leftOfLayout, topOfLayout, clientArea.width, trim_top), top.getCaches(), !top.isVertical(), spacing); arrange(new Rectangle(leftOfCenterPane, bottomOfCenterPane, widthOfCenterPane, trim_bottom), bottom.getCaches(), !bottom .isVertical(), spacing); arrange(new Rectangle(leftOfLayout, topOfCenterPane, trim_left, clientArea.height - trim_top), left.getCaches(), !left .isVertical(), spacing); arrange(new Rectangle(rightOfCenterPane, topOfCenterPane, trim_right, clientArea.height - trim_top), right.getCaches(), !right .isVertical(), spacing); if (centerArea.getControl() != null) { centerArea.getControl().setBounds(leftOfCenterPane, topOfCenterPane, widthOfCenterPane, heightOfCenterPane); } }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/d6df4e4739daf59149b21bc513405b18a3433f00/TrimLayout.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/layout/TrimLayout.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 3511, 12, 9400, 9635, 16, 1250, 3663, 1649, 13, 288, 202, 202, 4479, 1669, 7423, 5621, 202, 202, 14795, 5484, 1760, 273, 261, 14795, 5484, 13, 284, 14795, 5484, 18, 588, 12, 10462, 67, 734, 1769, 202, 202, 14795, 5484, 5469, 273, 261, 14795, 5484, 13, 284, 14795, 5484, 18, 588, 12, 28891, 67, 734, 1769, 202, 202, 14795, 5484, 2002, 273, 261, 14795, 5484, 13, 284, 14795, 5484, 18, 588, 12, 10066, 67, 734, 1769, 202, 202, 14795, 5484, 2145, 273, 261, 14795, 5484, 13, 284, 14795, 5484, 18, 588, 12, 11847, 67, 734, 1769, 202, 202, 19463, 1004, 5484, 273, 9635, 18, 588, 1227, 5484, 5621, 202, 202, 2625, 5484, 18, 92, 1011, 7333, 2384, 31, 202, 202, 2625, 5484, 18, 2819, 3947, 576, 380, 7333, 2384, 31, 202, 202, 2625, 5484, 18, 93, 1011, 7333, 2686, 31, 202, 202, 2625, 5484, 18, 4210, 3947, 576, 380, 7333, 2686, 31, 202, 202, 474, 2209, 67, 3669, 273, 1760, 18, 11162, 14795, 1225, 12, 2625, 5484, 18, 2819, 16, 9506, 202, 2625, 5484, 18, 4210, 1769, 202, 202, 474, 2209, 67, 9176, 273, 5469, 18, 11162, 14795, 1225, 12, 2625, 5484, 18, 2819, 16, 9506, 202, 2625, 5484, 18, 4210, 1769, 202, 202, 474, 2209, 67, 4482, 273, 2002, 18, 11162, 14795, 1225, 12, 2625, 5484, 18, 2819, 16, 9506, 202, 2625, 5484, 18, 4210, 1769, 202, 202, 474, 2209, 67, 4083, 273, 2145, 18, 11162, 14795, 1225, 12, 2625, 5484, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3511, 12, 9400, 9635, 16, 1250, 3663, 1649, 13, 288, 202, 202, 4479, 1669, 7423, 5621, 202, 202, 14795, 5484, 1760, 273, 261, 14795, 5484, 13, 284, 14795, 5484, 18, 588, 12, 10462, 67, 734, 1769, 202, 202, 14795, 5484, 5469, 273, 261, 14795, 5484, 13, 284, 14795, 5484, 18, 588, 12, 28891, 67, 734, 1769, 202, 202, 14795, 5484, 2002, 273, 261, 14795, 5484, 13, 284, 14795, 5484, 18, 588, 12, 10066, 67, 734, 1769, 202, 202, 14795, 5484, 2145, 273, 261, 14795, 5484, 13, 284, 14795, 5484, 18, 588, 12, 11847, 67, 734, 1769, 202, 202, 19463, 1004, 5484, 273, 9635, 18, 588, 1227, 5484, 5621, 202, 202, 2625, 5484, 18, 92, 1011, 2 ]
if (laf.equals("looks"))
if ("looks".equals(laf))
protected void loadLookAndFeel() throws Exception { // Do we have any preference for this OS ? String syskey = "unix"; if (OsVersion.IS_WINDOWS) { syskey = "windows"; } else if (OsVersion.IS_OSX) { syskey = "mac"; } String laf = null; if (installdata.guiPrefs.lookAndFeelMapping.containsKey(syskey)) { laf = (String) installdata.guiPrefs.lookAndFeelMapping.get(syskey); } // Let's use the system LAF // Resolve whether button icons should be used or not. boolean useButtonIcons = true; if (installdata.guiPrefs.modifier.containsKey("useButtonIcons") && ((String) installdata.guiPrefs.modifier.get("useButtonIcons")) .equalsIgnoreCase("no")) useButtonIcons = false; ButtonFactory.useButtonIcons(useButtonIcons); boolean useLabelIcons = true; if (installdata.guiPrefs.modifier.containsKey("useLabelIcons") && ((String) installdata.guiPrefs.modifier.get("useLabelIcons")) .equalsIgnoreCase("no")) useLabelIcons = false; LabelFactory.setUseLabelIcons(useLabelIcons); if (laf == null) { if (!syskey.equals("mac")) { String syslaf = UIManager.getSystemLookAndFeelClassName(); UIManager.setLookAndFeel(syslaf); if (UIManager.getLookAndFeel() instanceof MetalLookAndFeel) { MetalLookAndFeel.setCurrentTheme(new IzPackMetalTheme()); ButtonFactory.useHighlightButtons(); // Reset the use button icons state because // useHighlightButtons // make it always true. ButtonFactory.useButtonIcons(useButtonIcons); installdata.buttonsHColor = new Color(182, 182, 204); } } lnf = "swing"; return; } // Kunststoff (http://www.incors.org/) if (laf.equals("kunststoff")) { ButtonFactory.useHighlightButtons(); // Reset the use button icons state because useHighlightButtons // make it always true. ButtonFactory.useButtonIcons(useButtonIcons); installdata.buttonsHColor = new Color(255, 255, 255); Class lafClass = Class.forName("com.incors.plaf.kunststoff.KunststoffLookAndFeel"); Class mtheme = Class.forName("javax.swing.plaf.metal.MetalTheme"); Class[] params = { mtheme}; Class theme = Class.forName("com.izforge.izpack.gui.IzPackKMetalTheme"); Method setCurrentThemeMethod = lafClass.getMethod("setCurrentTheme", params); // We invoke and place Kunststoff as our L&F LookAndFeel kunststoff = (LookAndFeel) lafClass.newInstance(); MetalTheme ktheme = (MetalTheme) theme.newInstance(); Object[] kparams = { ktheme}; UIManager.setLookAndFeel(kunststoff); setCurrentThemeMethod.invoke(kunststoff, kparams); lnf = "kunststoff"; return; } // Liquid (http://liquidlnf.sourceforge.net/) if (laf.equals("liquid")) { UIManager.setLookAndFeel("com.birosoft.liquid.LiquidLookAndFeel"); lnf = "liquid"; Map params = (Map) installdata.guiPrefs.lookAndFeelParams.get(laf); if (params.containsKey("decorate.frames")) { String value = (String) params.get("decorate.frames"); if (value.equals("yes")) { JFrame.setDefaultLookAndFeelDecorated(true); } } if (params.containsKey("decorate.dialogs")) { String value = (String) params.get("decorate.dialogs"); if (value.equals("yes")) { JDialog.setDefaultLookAndFeelDecorated(true); } } return; } // Metouia (http://mlf.sourceforge.net/) if (laf.equals("metouia")) { UIManager.setLookAndFeel("net.sourceforge.mlf.metouia.MetouiaLookAndFeel"); lnf = "metouia"; return; } // JGoodies Looks (http://looks.dev.java.net/) if (laf.equals("looks")) { Map variants = new TreeMap(); variants.put("extwin", "com.jgoodies.plaf.windows.ExtWindowsLookAndFeel"); variants.put("plastic", "com.jgoodies.plaf.plastic.PlasticLookAndFeel"); variants.put("plastic3D", "com.jgoodies.plaf.plastic.Plastic3DLookAndFeel"); variants.put("plasticXP", "com.jgoodies.plaf.plastic.PlasticXPLookAndFeel"); String variant = (String) variants.get("plasticXP"); Map params = (Map) installdata.guiPrefs.lookAndFeelParams.get(laf); if (params.containsKey("variant")) { String param = (String) params.get("variant"); if (variants.containsKey(param)) { variant = (String) variants.get(param); } } UIManager.setLookAndFeel(variant); } }
28044 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28044/9619b3a25f43787dc92011111668210e06c00c71/GUIInstaller.java/clean/src/lib/com/izforge/izpack/installer/GUIInstaller.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1262, 9794, 1876, 2954, 292, 1435, 1216, 1185, 565, 288, 3639, 368, 2256, 732, 1240, 1281, 11555, 364, 333, 5932, 692, 3639, 514, 2589, 856, 273, 315, 21136, 14432, 3639, 309, 261, 15112, 1444, 18, 5127, 67, 31874, 13, 3639, 288, 5411, 2589, 856, 273, 315, 13226, 14432, 3639, 289, 3639, 469, 309, 261, 15112, 1444, 18, 5127, 67, 4618, 60, 13, 3639, 288, 5411, 2589, 856, 273, 315, 5821, 14432, 3639, 289, 3639, 514, 328, 1727, 273, 446, 31, 3639, 309, 261, 5425, 892, 18, 20292, 1386, 2556, 18, 7330, 1876, 2954, 292, 3233, 18, 12298, 653, 12, 9499, 856, 3719, 3639, 288, 5411, 328, 1727, 273, 261, 780, 13, 3799, 892, 18, 20292, 1386, 2556, 18, 7330, 1876, 2954, 292, 3233, 18, 588, 12, 9499, 856, 1769, 3639, 289, 3639, 368, 10559, 1807, 999, 326, 2619, 2928, 42, 3639, 368, 9910, 2856, 3568, 17455, 1410, 506, 1399, 578, 486, 18, 3639, 1250, 999, 3616, 27510, 273, 638, 31, 3639, 309, 261, 5425, 892, 18, 20292, 1386, 2556, 18, 20597, 18, 12298, 653, 2932, 1202, 3616, 27510, 7923, 7734, 597, 14015, 780, 13, 3799, 892, 18, 20292, 1386, 2556, 18, 20597, 18, 588, 2932, 1202, 3616, 27510, 6, 3719, 13491, 263, 14963, 5556, 2932, 2135, 6, 3719, 999, 3616, 27510, 273, 629, 31, 3639, 12569, 1733, 18, 1202, 3616, 27510, 12, 1202, 3616, 27510, 1769, 3639, 1250, 999, 2224, 27510, 273, 638, 31, 3639, 309, 261, 5425, 892, 18, 20292, 1386, 2556, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1262, 9794, 1876, 2954, 292, 1435, 1216, 1185, 565, 288, 3639, 368, 2256, 732, 1240, 1281, 11555, 364, 333, 5932, 692, 3639, 514, 2589, 856, 273, 315, 21136, 14432, 3639, 309, 261, 15112, 1444, 18, 5127, 67, 31874, 13, 3639, 288, 5411, 2589, 856, 273, 315, 13226, 14432, 3639, 289, 3639, 469, 309, 261, 15112, 1444, 18, 5127, 67, 4618, 60, 13, 3639, 288, 5411, 2589, 856, 273, 315, 5821, 14432, 3639, 289, 3639, 514, 328, 1727, 273, 446, 31, 3639, 309, 261, 5425, 892, 18, 20292, 1386, 2556, 18, 7330, 1876, 2954, 292, 3233, 18, 12298, 653, 12, 9499, 856, 3719, 3639, 288, 5411, 328, 1727, 273, 261, 780, 13, 3799, 892, 18, 20292, 1386, 2 ]
final String message = REZ.getString( "get-type.error", file ); throw new FileSystemException( message );
throw new FileSystemException( "vfs.provider.local/get-type.error", file );
protected FileType doGetType() throws Exception { if ( !file.exists() ) { return null; } if ( file.isDirectory() ) { return FileType.FOLDER; } if ( file.isFile() ) { return FileType.FILE; } final String message = REZ.getString( "get-type.error", file ); throw new FileSystemException( message ); }
50122 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50122/4ee826b62afd102046c4f84d8f2a82bb7210454d/LocalFile.java/clean/src/java/org/apache/commons/vfs/provider/local/LocalFile.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 29449, 23611, 559, 1435, 3639, 1216, 1185, 565, 288, 3639, 309, 261, 401, 768, 18, 1808, 1435, 262, 3639, 288, 5411, 327, 446, 31, 3639, 289, 3639, 309, 261, 585, 18, 291, 2853, 1435, 262, 3639, 288, 5411, 327, 29449, 18, 17357, 31, 3639, 289, 3639, 309, 261, 585, 18, 291, 812, 1435, 262, 3639, 288, 5411, 327, 29449, 18, 3776, 31, 3639, 289, 3639, 727, 514, 883, 273, 2438, 62, 18, 588, 780, 12, 315, 588, 17, 723, 18, 1636, 3113, 585, 11272, 3639, 604, 394, 10931, 503, 12, 883, 11272, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 4750, 29449, 23611, 559, 1435, 3639, 1216, 1185, 565, 288, 3639, 309, 261, 401, 768, 18, 1808, 1435, 262, 3639, 288, 5411, 327, 446, 31, 3639, 289, 3639, 309, 261, 585, 18, 291, 2853, 1435, 262, 3639, 288, 5411, 327, 29449, 18, 17357, 31, 3639, 289, 3639, 309, 261, 585, 18, 291, 812, 1435, 262, 3639, 288, 5411, 327, 29449, 18, 3776, 31, 3639, 289, 3639, 727, 514, 883, 273, 2438, 62, 18, 588, 780, 12, 315, 588, 17, 723, 18, 1636, 3113, 585, 11272, 3639, 604, 394, 10931, 503, 12, 883, 11272, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
"27:23: 'method' is followed by whitespace.",
"27:24: '(' is preceded with whitespace.",
public void testDefault() throws Exception { final String[] expected = { "11:31: 'InputMethodParamPad' is followed by whitespace.", "13:14: 'super' is followed by whitespace.", "17:9: '(' should be on the previous line.", "20:13: '(' should be on the previous line.", "27:23: 'method' is followed by whitespace.", "32:9: '(' should be on the previous line.", "36:38: 'InputMethodParamPad' is followed by whitespace.", "38:13: '(' should be on the previous line.", "42:15: 'method' is followed by whitespace.", "44:13: '(' should be on the previous line.", "50:20: 'method' is followed by whitespace.", "52:13: '(' should be on the previous line.", "56:17: 'method' is followed by whitespace.", "58:13: '(' should be on the previous line.", "61:35: 'parseInt' is followed by whitespace.", "63:13: '(' should be on the previous line.", }; verify(checkConfig, getPath("whitespace/InputMethodParamPad.java"), expected); }
50482 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50482/1c372d10613a83d66d9e781f11059a0b9c137523/MethodParamPadCheckTest.java/clean/src/tests/com/puppycrawl/tools/checkstyle/checks/whitespace/MethodParamPadCheckTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 1868, 1435, 1216, 1185, 565, 288, 3639, 727, 514, 8526, 2665, 273, 288, 5411, 315, 2499, 30, 6938, 30, 296, 1210, 1305, 786, 14878, 11, 353, 10860, 635, 7983, 1199, 16, 5411, 315, 3437, 30, 3461, 30, 296, 9565, 11, 353, 10860, 635, 7983, 1199, 16, 5411, 315, 4033, 30, 29, 30, 7321, 1410, 506, 603, 326, 2416, 980, 1199, 16, 5411, 315, 3462, 30, 3437, 30, 7321, 1410, 506, 603, 326, 2416, 980, 1199, 16, 5411, 315, 5324, 30, 3247, 30, 7321, 353, 29953, 598, 7983, 1199, 16, 5411, 315, 1578, 30, 29, 30, 7321, 1410, 506, 603, 326, 2416, 980, 1199, 16, 5411, 315, 5718, 30, 7414, 30, 296, 1210, 1305, 786, 14878, 11, 353, 10860, 635, 7983, 1199, 16, 5411, 315, 7414, 30, 3437, 30, 7321, 1410, 506, 603, 326, 2416, 980, 1199, 16, 5411, 315, 9452, 30, 3600, 30, 296, 2039, 11, 353, 10860, 635, 7983, 1199, 16, 5411, 315, 6334, 30, 3437, 30, 7321, 1410, 506, 603, 326, 2416, 980, 1199, 16, 5411, 315, 3361, 30, 3462, 30, 296, 2039, 11, 353, 10860, 635, 7983, 1199, 16, 5411, 315, 9401, 30, 3437, 30, 7321, 1410, 506, 603, 326, 2416, 980, 1199, 16, 5411, 315, 4313, 30, 4033, 30, 296, 2039, 11, 353, 10860, 635, 7983, 1199, 16, 5411, 315, 8204, 30, 3437, 30, 7321, 1410, 506, 603, 326, 2416, 980, 1199, 16, 5411, 315, 9498, 30, 4763, 30, 296, 2670, 1702, 11, 353, 10860, 635, 7983, 1199, 16, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1868, 1435, 1216, 1185, 565, 288, 3639, 727, 514, 8526, 2665, 273, 288, 5411, 315, 2499, 30, 6938, 30, 296, 1210, 1305, 786, 14878, 11, 353, 10860, 635, 7983, 1199, 16, 5411, 315, 3437, 30, 3461, 30, 296, 9565, 11, 353, 10860, 635, 7983, 1199, 16, 5411, 315, 4033, 30, 29, 30, 7321, 1410, 506, 603, 326, 2416, 980, 1199, 16, 5411, 315, 3462, 30, 3437, 30, 7321, 1410, 506, 603, 326, 2416, 980, 1199, 16, 5411, 315, 5324, 30, 3247, 30, 7321, 353, 29953, 598, 7983, 1199, 16, 5411, 315, 1578, 30, 29, 30, 7321, 1410, 506, 603, 326, 2416, 980, 1199, 16, 5411, 315, 5718, 30, 7414, 30, 296, 1210, 1305, 786, 14878, 2 ]
tableName = tableName.toLowerCase();
tableName = tableName.toLowerCase(Locale.US);
public void initialize() throws Exception { getLogger().debug( this.getClass().getName() + ".initialize()"); // Get the data-source required. m_datasource = (DataSourceComponent)m_datasources.select(m_datasourceName); // Test the connection to the database, by getting the DatabaseMetaData. Connection conn = openConnection(); try{ DatabaseMetaData dbMetaData = conn.getMetaData(); // Initialise the sql strings. String fileName = m_sqlFileName.substring("file://".length()); if (!(fileName.startsWith("/"))) { fileName = ((BlockContext)context).getBaseDirectory() + File.separator + fileName; } File sqlFile = (new File(fileName)).getCanonicalFile(); getLogger().debug("Reading SQL resources from file: " + sqlFile.getAbsolutePath() + ", section " + this.getClass().getName() + "."); SqlResources sqlStatements = new SqlResources(); sqlStatements.init(sqlFile, this.getClass().getName(), conn, m_sqlParameters); // Create the SQL Strings to use for this table. // Fetches all Users from the db. m_getUsersSql = sqlStatements.getSqlString("select", true); // Get a user by lowercase name. (optional) // If not provided, the entire list is iterated to find a user. m_userByNameCaseInsensitiveSql = sqlStatements.getSqlString("selectByLowercaseName"); // Insert, update and delete are not guaranteed to be case-insensitive // Will always be called with correct case in username.. m_insertUserSql = sqlStatements.getSqlString("insert", true); m_updateUserSql = sqlStatements.getSqlString("update", true); m_deleteUserSql = sqlStatements.getSqlString("delete", true); // Creates a single table with "username" the Primary Key. m_createUserTableSql = sqlStatements.getSqlString("createTable", true); // Check if the required table exists. If not, create it. // The table name is defined in the SqlResources. String tableName = sqlStatements.getSqlString("tableName", true); // Need to ask in the case that identifiers are stored, ask the DatabaseMetaInfo. // NB this should work, but some drivers (eg mm MySQL) // don't return the right details, hence the hackery below. /* String tableName = m_tableName; if ( dbMetaData.storesLowerCaseIdentifiers() ) { tableName = tableName.toLowerCase(); } else if ( dbMetaData.storesUpperCaseIdentifiers() ) { tableName = tableName.toUpperCase(); } */ // Try UPPER, lower, and MixedCase, to see if the table is there. if (! ( tableExists(dbMetaData, tableName) || tableExists(dbMetaData, tableName.toUpperCase()) || tableExists(dbMetaData, tableName.toLowerCase()) )) { // Users table doesn't exist - create it. PreparedStatement createStatement = conn.prepareStatement(m_createUserTableSql); createStatement.execute(); createStatement.close(); getLogger().info(this.getClass().getName() + ": Created table \'" + tableName + "\'."); } else { getLogger().debug("Using table: " + tableName); } } finally { closeConnection( conn ); } }
47102 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47102/2557fc80c334a8bf037aa78d48c3d733651ee9a9/AbstractJdbcUsersRepository.java/clean/trunk/src/java/org/apache/james/userrepository/AbstractJdbcUsersRepository.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 4046, 1435, 1216, 1185, 377, 288, 3639, 7156, 7675, 4148, 12, 333, 18, 588, 797, 7675, 17994, 1435, 397, 3552, 11160, 1435, 8863, 3639, 368, 968, 326, 501, 17, 3168, 1931, 18, 3639, 312, 67, 13178, 552, 273, 261, 8597, 1841, 13, 81, 67, 13178, 1418, 18, 4025, 12, 81, 67, 13178, 552, 461, 1769, 3639, 368, 7766, 326, 1459, 358, 326, 2063, 16, 635, 8742, 326, 5130, 6998, 18, 3639, 4050, 1487, 273, 24982, 5621, 3639, 775, 95, 5411, 5130, 6998, 1319, 6998, 273, 1487, 18, 588, 6998, 5621, 5411, 368, 31739, 326, 1847, 2064, 18, 5411, 514, 3968, 273, 312, 67, 4669, 4771, 18, 28023, 2932, 768, 2207, 9654, 2469, 10663, 5411, 309, 16051, 12, 17812, 18, 17514, 1190, 2932, 4898, 20349, 288, 7734, 3968, 273, 14015, 1768, 1042, 13, 2472, 2934, 588, 2171, 2853, 1435, 397, 21821, 1387, 18, 11287, 397, 3968, 31, 5411, 289, 5411, 1387, 1847, 812, 273, 261, 2704, 1387, 12, 17812, 13, 2934, 588, 15512, 812, 5621, 13491, 7156, 7675, 4148, 2932, 15714, 3063, 2703, 628, 585, 30, 315, 397, 1171, 9079, 1847, 812, 18, 588, 10368, 743, 1435, 397, 3104, 2442, 315, 397, 17311, 333, 18, 588, 797, 7675, 17994, 1435, 397, 4585, 1769, 5411, 8855, 3805, 1847, 14663, 273, 394, 8855, 3805, 5621, 5411, 1847, 14663, 18, 2738, 12, 4669, 812, 16, 333, 18, 588, 797, 7675, 17994, 9334, 27573, 1487, 16, 312, 67, 4669, 2402, 1769, 5411, 368, 1788, 326, 3063, 8139, 358, 999, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4046, 1435, 1216, 1185, 377, 288, 3639, 7156, 7675, 4148, 12, 333, 18, 588, 797, 7675, 17994, 1435, 397, 3552, 11160, 1435, 8863, 3639, 368, 968, 326, 501, 17, 3168, 1931, 18, 3639, 312, 67, 13178, 552, 273, 261, 8597, 1841, 13, 81, 67, 13178, 1418, 18, 4025, 12, 81, 67, 13178, 552, 461, 1769, 3639, 368, 7766, 326, 1459, 358, 326, 2063, 16, 635, 8742, 326, 5130, 6998, 18, 3639, 4050, 1487, 273, 24982, 5621, 3639, 775, 95, 5411, 5130, 6998, 1319, 6998, 273, 1487, 18, 588, 6998, 5621, 5411, 368, 31739, 326, 1847, 2064, 18, 5411, 514, 3968, 273, 312, 67, 4669, 4771, 18, 28023, 2932, 768, 2207, 9654, 2469, 10663, 5411, 309, 16051, 2 ]
ps.print("(#%module/");
out.startLogicalBlock("(Module/", ")", 2);
public void print (java.io.PrintWriter ps) { ps.print("(#%module/"); if (name != null) { ps.print(name); ps.print('/'); } ps.print(id); ps.println("/ ("); for (Declaration decl = firstDecl(); decl != null; decl = decl.nextDecl()) { ps.print(" "); ps.println(decl); } ps.print(") "); if (body == null) ps.print("<null body>"); else body.print (ps); ps.print(")"); }
36870 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/36870/a12944db23ad7376950f82bf79897674cbfa5b4e/ModuleExp.java/clean/gnu/expr/ModuleExp.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1172, 261, 6290, 18, 1594, 18, 5108, 2289, 4250, 13, 225, 288, 565, 596, 18, 1937, 17955, 1768, 2932, 12, 3120, 19, 3113, 7310, 16, 576, 1769, 565, 309, 261, 529, 480, 446, 13, 1377, 288, 202, 1121, 18, 1188, 12, 529, 1769, 202, 1121, 18, 1188, 2668, 2473, 1769, 1377, 289, 565, 4250, 18, 1188, 12, 350, 1769, 565, 4250, 18, 8222, 2932, 19, 7566, 1769, 565, 364, 261, 6094, 3496, 273, 1122, 3456, 5621, 540, 3496, 480, 446, 31, 225, 3496, 273, 3496, 18, 4285, 3456, 10756, 1377, 288, 202, 1121, 18, 1188, 2932, 225, 315, 1769, 202, 1121, 18, 8222, 12, 8840, 1769, 1377, 289, 565, 4250, 18, 1188, 2932, 13, 315, 1769, 565, 309, 261, 3432, 422, 446, 13, 1377, 4250, 18, 1188, 2932, 32, 2011, 1417, 2984, 1769, 565, 469, 1377, 1417, 18, 1188, 261, 1121, 1769, 565, 4250, 18, 1188, 2932, 2225, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 1172, 261, 6290, 18, 1594, 18, 5108, 2289, 4250, 13, 225, 288, 565, 596, 18, 1937, 17955, 1768, 2932, 12, 3120, 19, 3113, 7310, 16, 576, 1769, 565, 309, 261, 529, 480, 446, 13, 1377, 288, 202, 1121, 18, 1188, 12, 529, 1769, 202, 1121, 18, 1188, 2668, 2473, 1769, 1377, 289, 565, 4250, 18, 1188, 12, 350, 1769, 565, 4250, 18, 8222, 2932, 19, 7566, 1769, 565, 364, 261, 6094, 3496, 273, 1122, 3456, 5621, 540, 3496, 480, 446, 31, 225, 3496, 273, 3496, 18, 4285, 3456, 10756, 1377, 288, 202, 1121, 18, 1188, 2932, 225, 315, 1769, 202, 1121, 18, 8222, 12, 8840, 1769, 1377, 289, 565, 4250, 18, 1188, 2932, 13, 315, 1769, 2 ]
if (verbose >= 1) traceContext.pop();
if (verbose >= 2) traceContext.pop();
private static int traverseObject(Object jdkObject) throws IllegalAccessException { // // don't traverse an object twice // final Object wrapper = jdkObject; Object key = new Object() { public int hashCode() { return System.identityHashCode(wrapper); } public boolean equals(Object o) { return getClass() == o.getClass() && hashCode() == o.hashCode(); } }; Integer sz = (Integer) traversed.get(key); if (sz != null) return sz.intValue(); // object already traversed traversed.put(key, VISITED); if (verbose >= 2) depth++; // // fetch object's type information // Class jdkType = jdkObject.getClass(); int size = OBJECT_HEADER_SIZE; // // recursively traverse object // if (jdkType.isArray()) { size += 4; // length int arrayCount = Array.getLength(jdkObject); // // traverse array elements // recurse on values that are references // Class jdkElementType = jdkType.getComponentType(); if (jdkElementType.isPrimitive()) { // array element is logical or numeric type if (jdkElementType == Boolean.TYPE) { size += arrayCount*4; } else if (jdkElementType == Byte.TYPE) { size += arrayCount*1; } else if (jdkElementType == Character.TYPE) { size += arrayCount*2; } else if (jdkElementType == Short.TYPE) { size += arrayCount*2; } else if (jdkElementType == Integer.TYPE) { size += arrayCount*4; } else if (jdkElementType == Long.TYPE) { size += arrayCount*8; } else if (jdkElementType == Float.TYPE) { size += arrayCount*4; } else if (jdkElementType == Double.TYPE) { size += arrayCount*8; } else fail("unexpected array type: " + jdkType); } else { // array element is reference type size += arrayCount*4; Object values[] = (Object []) jdkObject; for (int i = 0; i < arrayCount; ++i) { if (values[i] != null) { if (verbose >= 1) traceContext.push(values[i].getClass().getName(), jdkType.getName(), i); traverseObject(values[i]); if (verbose >= 1) traceContext.pop(); } } } if (verbose >= 2) { if (depth == depthCutoff) say(SPACES.substring(0,depth+1), "TOO DEEP: cutting off"); else if (depth < depthCutoff) { String tab = SPACES.substring(0,depth+1); if (depth == 0 && jtocCount >= 0) tab = tab + "jtoc #" + String.valueOf(jtocCount); say(tab, "Traversed array ", jdkType.getName(), " length=", String.valueOf(arrayCount), " total size=", String.valueOf(size), (size >= LARGE_ARRAY_SIZE) ?" large object!!!" : ""); } } } else { // // traverse object fields // recurse on values that are references // for (Class type = jdkType; type != null; type = type.getSuperclass()) { Field[] jdkFields = type.getDeclaredFields(); for (int i = 0, n = jdkFields.length; i < n; ++i) { Field jdkField = jdkFields[i]; jdkField.setAccessible(true); Class jdkFieldType = jdkField.getType(); if (jdkFieldType.isPrimitive()) { // field is logical or numeric type if (jdkFieldType == Boolean.TYPE) size += 4; else if (jdkFieldType == Byte.TYPE) size += 4; else if (jdkFieldType == Character.TYPE) size += 4; else if (jdkFieldType == Short.TYPE) size += 4; else if (jdkFieldType == Integer.TYPE) size += 4; else if (jdkFieldType == Long.TYPE) size += 8; else if (jdkFieldType == Float.TYPE) size += 4; else if (jdkFieldType == Double.TYPE) size += 8; else fail("unexpected field type: " + jdkFieldType); } else { // field is reference type size += 4; Object value = jdkField.get(jdkObject); if (value != null) { if (verbose >= 1) traceContext.push(value.getClass().getName(), jdkType.getName(), jdkField.getName()); traverseObject(value); if (verbose >= 1) traceContext.pop(); } } } } if (verbose >= 2) { if (depth == depthCutoff) say(SPACES.substring(0,depth+1), "TOO DEEP: cutting off"); else if (depth < depthCutoff) { String tab = SPACES.substring(0,depth+1); if (depth == 0 && jtocCount >= 0) tab = tab + "#" + String.valueOf(jtocCount); say(tab, "Traversed object ", jdkType.getName(), " total size=", String.valueOf(size), (size >= LARGE_SCALAR_SIZE) ? " large object!!!" : ""); } } } traversed.put(key, new Integer(size)); if (verbose >= 2) depth--; return size; }
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/85fa7f91d1f8a559835edf381c02c874e4ecde25/BootImageWriter.java/buggy/rvm/src/tools/bootImageWriter/BootImageWriter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 760, 509, 10080, 921, 12, 921, 525, 2883, 921, 13, 565, 1216, 11900, 565, 288, 1377, 368, 1377, 368, 2727, 1404, 10080, 392, 733, 13605, 1377, 368, 1377, 727, 1033, 4053, 273, 525, 2883, 921, 31, 1377, 1033, 498, 273, 394, 1033, 1435, 288, 3639, 1071, 509, 13374, 1435, 288, 327, 2332, 18, 10781, 21952, 12, 8376, 1769, 289, 3639, 1071, 1250, 1606, 12, 921, 320, 13, 288, 1850, 327, 2900, 1435, 422, 320, 18, 588, 797, 1435, 597, 13374, 1435, 422, 320, 18, 2816, 1085, 5621, 3639, 289, 1377, 289, 31, 1377, 2144, 11262, 273, 261, 4522, 13, 29062, 18, 588, 12, 856, 1769, 1377, 309, 261, 24575, 480, 446, 13, 327, 11262, 18, 474, 620, 5621, 368, 733, 1818, 29062, 1377, 29062, 18, 458, 12, 856, 16, 776, 5127, 1285, 2056, 1769, 1377, 309, 261, 11369, 1545, 576, 13, 3598, 9904, 31, 1377, 368, 1377, 368, 2158, 733, 1807, 618, 1779, 1377, 368, 1377, 1659, 525, 2883, 559, 273, 525, 2883, 921, 18, 588, 797, 5621, 1377, 509, 963, 273, 12166, 67, 7557, 67, 4574, 31, 1377, 368, 1377, 368, 8536, 10080, 733, 1377, 368, 1377, 309, 261, 78, 2883, 559, 18, 291, 1076, 10756, 288, 3639, 963, 1011, 1059, 31, 368, 769, 3639, 509, 526, 1380, 4202, 273, 1510, 18, 588, 1782, 12, 78, 2883, 921, 1769, 3639, 368, 3639, 368, 10080, 526, 2186, 3639, 368, 11502, 603, 924, 716, 854, 5351, 3639, 368, 3639, 1659, 525, 2883, 17481, 273, 525, 2883, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 509, 10080, 921, 12, 921, 525, 2883, 921, 13, 565, 1216, 11900, 565, 288, 1377, 368, 1377, 368, 2727, 1404, 10080, 392, 733, 13605, 1377, 368, 1377, 727, 1033, 4053, 273, 525, 2883, 921, 31, 1377, 1033, 498, 273, 394, 1033, 1435, 288, 3639, 1071, 509, 13374, 1435, 288, 327, 2332, 18, 10781, 21952, 12, 8376, 1769, 289, 3639, 1071, 1250, 1606, 12, 921, 320, 13, 288, 1850, 327, 2900, 1435, 422, 320, 18, 588, 797, 1435, 597, 13374, 1435, 422, 320, 18, 2816, 1085, 5621, 3639, 289, 1377, 289, 31, 1377, 2144, 11262, 273, 261, 4522, 13, 29062, 18, 588, 12, 856, 1769, 1377, 309, 261, 24575, 480, 446, 13, 327, 11262, 18, 474, 620, 2 ]
logger.severe( dcAvailability.length + " mandatory dc alternatives checked, but fewer than preSampleSize=" + preSampleSize + " alternatives are available for sample of alternatives.");
logger.fatal( dcAvailability.length + " mandatory dc alternatives checked, but fewer than preSampleSize=" + preSampleSize + " alternatives are available for sample of alternatives.");
public void indivNonMandatoryTourDc ( Household hh ) { long markTime=0; long startTime = System.currentTimeMillis(); if (useMessageWindow) mw.setMessage1 ("Destination Choice for Non-mandatory Tours"); if (useMessageWindow) mw.setMessage2 ( "household " + count + " (" + hh_id + ")" ); count++; // get the array of mandatory tours for this household. if (hh.getIndivTours() == null) return; // get person array for this household. Person[] persons = hh.getPersonArray(); hh_id = hh.getID(); hh_taz_id = hh.getTazID(); hh.setOrigTaz (hh_taz_id); hh.setTourCategory( TourType.NON_MANDATORY_CATEGORY ); // loop over all puposes for the individual non-mandatory tour category in order for (int m=0; m < tourTypes.length; m++) { // loop over individual tours of the tour purpose of interest for the hh for (int t=0; t < hh.indivTours.length; t++) { if ( hh.indivTours[t].getTourType() != tourTypes[m] ) continue; person = hh.indivTours[t].getTourPerson(); hh.indivTours[t].setOrigTaz (hh_taz_id); hh.setPersonID ( person ); hh.setTourID ( t ); // get the destination choice sample of alternatives markTime = System.currentTimeMillis(); Arrays.fill ( dcAvailability, false ); // determine the set of alternatives from which the sample of alternatives will be drawn if (preSampleSize > 0) { // select the first preSampleSize alternatives to be available for being in the sample of alternatives k = 0; preSampleCount = 0; while ( preSampleCount < preSampleSize ) { // set destination choice alternative availability to true if size > 0 for the segment. preSampleAlt = (int) (dcAvailability.length * SeededRandom.getRandom()); float size = zdm.getTotSize (tourTypes[m], preSampleAlt ); if ( size > 0.0 ) { dcAvailability[preSampleAlt] = true; preSampleCount++; } k++; if (k >= dcAvailability.length) { logger.severe( dcAvailability.length + " mandatory dc alternatives checked, but fewer than preSampleSize=" + preSampleSize + " alternatives are available for sample of alternatives."); System.exit(-1); } } } else { for (k=0; k < dcAvailability.length; k++) { // set destination choice alternative availability to true if size > 0 for the segment. float size = zdm.getTotSize (tourTypes[m], k ); if ( size > 0.0 ) { dcAvailability[k] = true; } } } soa[m][0].applySampleOfAlternativesChoiceModel ( hh, dcAvailability ); int[] sample = soa[m][0].getSampleOfAlternatives(); float[] corrections = soa[m][0].getSampleCorrectionFactors(); Arrays.fill(dcSample, 0); Arrays.fill(dcAvailability, false); Arrays.fill(dcCorrections[processorId], 0.0f); for (int i=1; i < sample.length; i++) { dcSample[sample[i]] = 1; dcAvailability[sample[i]] = true; dcCorrections[processorId][sample[i]] = corrections[i]; } soaTime += (System.currentTimeMillis()-markTime); k = 1; markTime = System.currentTimeMillis(); for (int i=1; i < sample.length; i++) { int d = (int)((sample[i]-1)/WALK_SEGMENTS) + 1; int s = sample[i] - (d-1)*WALK_SEGMENTS - 1; hh.setChosenDest( d ); hh.setChosenWalkSegment( s ); // calculate mode choice logsum based on appropriate od skims for each individual non-mandatory purpose if (TourType.NON_MANDATORY_TYPES[m] == TourType.ESCORTING) { hh.setTODDefaults ( TourType.NON_MANDATORY_CATEGORY, "MdMd" ); zdm.setLogsumDcMDMD ( processorId, sample[i], getMcLogsums(hh, m) ); } else { hh.setTODDefaults ( TourType.NON_MANDATORY_CATEGORY, "MdMd" ); zdm.setLogsumDcMDMD ( processorId, sample[i], getMcLogsums(hh, m) ); hh.setTODDefaults ( TourType.NON_MANDATORY_CATEGORY, "PmNt" ); zdm.setLogsumDcPMNT ( processorId, sample[i], getMcLogsums(hh, m) ); } } dcLogsumTime += (System.currentTimeMillis()-markTime); // compute destination choice proportions and choose alternative markTime = System.currentTimeMillis(); dc[m].updateLogitModel ( hh, dcAvailability, dcSample ); int chosen = dc[m].getChoiceResult(); int chosenDestAlt = (int)((chosen-1)/WALK_SEGMENTS) + 1; int chosenShrtWlk = chosen - (chosenDestAlt-1)*WALK_SEGMENTS - 1; dcTime += (System.currentTimeMillis() - markTime); // set the chosen value in DMU and tour objects hh.indivTours[t].setDestTaz (chosenDestAlt); hh.indivTours[t].setDestShrtWlk (chosenShrtWlk); // check to make sure that the DC subzone selected has subzone proportion > 0.0. if ( zdm.getWalkPct ( chosenShrtWlk, chosenDestAlt ) == 0.0f ) { logger.severe( TourType.TYPE_CATEGORY_LABELS[tourTypeCategory] + " " + TourType.TYPE_LABELS[tourTypeCategory][m] + " tour " + t + " for person " + person + " in household " + hh_id); logger.severe( "selected DC alternative " + chosen + " which translates to Dest TAZ " + chosenDestAlt + " and subzone " + chosenShrtWlk); logger.severe( "however, the selected subzone has proportion " + (chosenDestAlt == 1 ? "short walk" : "long walk") + " equal to 0.0."); System.exit(1); } } } }
1120 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1120/ca343a527cdff81450c6dae2017cdd7596546cc4/DTMHousehold.java/clean/src/java/com/pb/morpc/models/DTMHousehold.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 6335, 3989, 49, 10018, 56, 477, 40, 71, 261, 670, 3793, 21056, 18629, 262, 288, 202, 202, 5748, 2267, 950, 33, 20, 31, 202, 202, 5748, 8657, 273, 2332, 18, 2972, 28512, 5621, 202, 202, 430, 261, 1202, 1079, 3829, 13, 14721, 18, 542, 1079, 21, 7566, 5683, 16432, 364, 3858, 17, 889, 8452, 399, 4390, 8863, 202, 202, 430, 261, 1202, 1079, 3829, 13, 14721, 18, 542, 1079, 22, 261, 315, 13028, 21056, 315, 397, 1056, 397, 315, 7566, 397, 18629, 67, 350, 397, 7310, 11272, 202, 202, 1883, 9904, 31, 6862, 9506, 202, 759, 336, 326, 526, 434, 11791, 19797, 87, 364, 333, 23867, 21056, 18, 1082, 202, 430, 261, 21622, 18, 588, 382, 2892, 56, 4390, 1435, 422, 446, 13, 1082, 202, 2463, 31, 6862, 202, 759, 336, 6175, 526, 364, 333, 23867, 21056, 18, 202, 202, 8346, 8526, 6175, 87, 273, 18629, 18, 588, 8346, 1076, 5621, 202, 202, 21622, 67, 350, 377, 273, 18629, 18, 588, 734, 5621, 202, 202, 21622, 67, 88, 1561, 67, 350, 273, 18629, 18, 588, 56, 1561, 734, 5621, 202, 202, 21622, 18, 542, 4741, 56, 1561, 261, 21622, 67, 88, 1561, 67, 350, 1769, 202, 202, 21622, 18, 542, 56, 477, 4457, 12, 399, 477, 559, 18, 3993, 67, 11712, 3575, 61, 67, 24847, 11272, 202, 202, 759, 2798, 1879, 777, 293, 416, 538, 281, 364, 326, 7327, 1661, 17, 889, 8452, 19797, 3150, 316, 1353, 202, 202, 1884, 261, 474, 312, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6335, 3989, 49, 10018, 56, 477, 40, 71, 261, 670, 3793, 21056, 18629, 262, 288, 202, 202, 5748, 2267, 950, 33, 20, 31, 202, 202, 5748, 8657, 273, 2332, 18, 2972, 28512, 5621, 202, 202, 430, 261, 1202, 1079, 3829, 13, 14721, 18, 542, 1079, 21, 7566, 5683, 16432, 364, 3858, 17, 889, 8452, 399, 4390, 8863, 202, 202, 430, 261, 1202, 1079, 3829, 13, 14721, 18, 542, 1079, 22, 261, 315, 13028, 21056, 315, 397, 1056, 397, 315, 7566, 397, 18629, 67, 350, 397, 7310, 11272, 202, 202, 1883, 9904, 31, 6862, 9506, 202, 759, 336, 326, 526, 434, 11791, 19797, 87, 364, 333, 23867, 21056, 18, 1082, 202, 430, 261, 21622, 18, 588, 2 ]
QName qn = QName.parse(context, name.getText()); FunctionSignature signature = new FunctionSignature(qn); UserDefinedFunction func = new UserDefinedFunction(context, signature); List varList = new ArrayList(3);
QName qn= QName.parse(context, name.getText()); FunctionSignature signature= new FunctionSignature(qn); UserDefinedFunction func= new UserDefinedFunction(context, signature); List varList= new ArrayList(3);
public final void functionDecl(AST _t, PathExpr path ) throws RecognitionException, PermissionDeniedException,EXistException,XPathException { AST functionDecl_AST_in = (AST)_t; AST name = null; AST __t215 = _t; name = _t==ASTNULL ? null :(AST)_t; match(_t,FUNCTION_DECL); _t = _t.getFirstChild(); PathExpr body = new PathExpr(context); QName qn = QName.parse(context, name.getText()); FunctionSignature signature = new FunctionSignature(qn); UserDefinedFunction func = new UserDefinedFunction(context, signature); List varList = new ArrayList(3); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case VARIABLE_BINDING: { paramList(_t,varList); _t = _retTree; break; } case LCURLY: case LITERAL_as: { break; } default: { throw new NoViableAltException(_t); } } } SequenceType[] types = new SequenceType[varList.size()]; int j = 0; for(Iterator i = varList.iterator(); i.hasNext(); j++) { FunctionParameter param = (FunctionParameter)i.next(); types[j] = param.type; func.addVariable(param.varName); } signature.setArgumentTypes(types); context.declareFunction(func); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_as: { AST __t218 = _t; AST tmp24_AST_in = (AST)_t; match(_t,LITERAL_as); _t = _t.getFirstChild(); SequenceType type = new SequenceType(); sequenceType(_t,type); _t = _retTree; signature.setReturnType(type); _t = __t218; _t = _t.getNextSibling(); break; } case LCURLY: { break; } default: { throw new NoViableAltException(_t); } } } AST __t219 = _t; AST tmp25_AST_in = (AST)_t; match(_t,LCURLY); _t = _t.getFirstChild(); expr(_t,body); _t = _retTree; func.setFunctionBody(body); _t = __t219; _t = _t.getNextSibling(); _t = __t215; _t = _t.getNextSibling(); _retTree = _t; }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/be23536931f66ed6f552941df1c272ed48eeb933/XPathTreeParser2.java/clean/src/org/exist/parser/XPathTreeParser2.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 445, 3456, 12, 9053, 389, 88, 16, 202, 202, 743, 4742, 589, 202, 13, 1216, 9539, 16, 8509, 15877, 16, 2294, 376, 503, 16, 14124, 503, 288, 9506, 202, 9053, 445, 3456, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 9053, 508, 273, 446, 31, 9506, 202, 9053, 1001, 88, 22, 3600, 273, 389, 88, 31, 202, 202, 529, 273, 389, 88, 631, 9053, 8560, 692, 446, 294, 12, 9053, 13, 67, 88, 31, 202, 202, 1916, 24899, 88, 16, 7788, 67, 23956, 1769, 202, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 202, 202, 743, 4742, 1417, 273, 394, 2666, 4742, 12, 2472, 1769, 6862, 1082, 202, 13688, 31054, 273, 16723, 18, 2670, 12, 2472, 16, 508, 18, 588, 1528, 10663, 6862, 202, 2083, 5374, 3372, 273, 394, 4284, 5374, 12, 15785, 1769, 6862, 202, 1299, 8116, 2083, 1326, 273, 394, 2177, 8116, 2083, 12, 2472, 16, 3372, 1769, 6862, 202, 682, 569, 682, 273, 394, 2407, 12, 23, 1769, 25083, 202, 95, 202, 202, 430, 261, 67, 88, 631, 2011, 13, 389, 88, 33, 9053, 8560, 31, 202, 202, 9610, 261, 389, 88, 18, 588, 559, 10756, 288, 202, 202, 3593, 22965, 67, 2739, 30, 202, 202, 95, 1082, 202, 891, 682, 24899, 88, 16, 1401, 682, 1769, 1082, 202, 67, 88, 273, 389, 1349, 2471, 31, 1082, 202, 8820, 31, 202, 202, 97, 202, 202, 3593, 511, 26314, 30, 202, 202, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 445, 3456, 12, 9053, 389, 88, 16, 202, 202, 743, 4742, 589, 202, 13, 1216, 9539, 16, 8509, 15877, 16, 2294, 376, 503, 16, 14124, 503, 288, 9506, 202, 9053, 445, 3456, 67, 9053, 67, 267, 273, 261, 9053, 13, 67, 88, 31, 202, 202, 9053, 508, 273, 446, 31, 9506, 202, 9053, 1001, 88, 22, 3600, 273, 389, 88, 31, 202, 202, 529, 273, 389, 88, 631, 9053, 8560, 692, 446, 294, 12, 9053, 13, 67, 88, 31, 202, 202, 1916, 24899, 88, 16, 7788, 67, 23956, 1769, 202, 202, 67, 88, 273, 389, 88, 18, 588, 3759, 1763, 5621, 202, 202, 743, 4742, 1417, 273, 394, 2666, 4742, 12, 2472, 1769, 6862, 2 ]
new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MinSwampsWarn")).show();
new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MinSwampsWarn")).setVisible(true);
private boolean applyValues() { int boardWidth; int boardHeight; int hilliness, range, cliffs; int minWaterSpots, maxWaterSpots, minWaterSize, maxWaterSize, probDeep; int minForestSpots, maxForestSpots, minForestSize, maxForestSize, probHeavy; int minRoughSpots, maxRoughSpots, minRoughSize, maxRoughSize; int minPavementSpots, maxPavementSpots, minPavementSize, maxPavementSize; int minRubbleSpots, maxRubbleSpots, minRubbleSize, maxRubbleSize; int minFortifiedSpots, maxFortifiedSpots, minFortifiedSize, maxFortifiedSize; int minIceSpots, maxIceSpots, minIceSize, maxIceSize; int minSwampSpots, maxSwampSpots, minSwampSize, maxSwampSize; int probRoad, probRiver, probInvert; int minRadius, maxRadius, minCraters, maxCraters, probCrater; int drought,fire,freeze,flood,fxmod; int algorithmToUse; String theme=""; String cityType; int cityBlocks = 4; int cityMinCF = 10; int cityMaxCF = 100; int cityMinFloors = 1; int cityMaxFloors = 6; int cityDensity = 75; int townSize = 60; int mountainPeaks,mountainHeightMin,mountainHeightMax; int mountainStyle,mountainWidthMin,mountainWidthMax; int invertNegative = 0; try { boardWidth = Integer.parseInt(texBoardWidth.getText()); boardHeight = Integer.parseInt(texBoardHeight.getText()); } catch (NumberFormatException ex) { new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.OnlyIntegersWarn")).show(); //$NON-NLS-1$ return false; } if (boardHeight <= 0 || boardHeight <= 0) { new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.BoardSizeWarn")).show(); //$NON-NLS-1$ return false; } theme = texTheme.getText(); if (advanced) { try { hilliness = Integer.parseInt(texHilliness.getText()); range = Integer.parseInt(texRange.getText()); cliffs = Integer.parseInt(texCliffs.getText()); probInvert = Integer.parseInt(texProbInvert.getText()); minWaterSpots = Integer.parseInt(texMinWaterSpots.getText()); maxWaterSpots = Integer.parseInt(texMaxWaterSpots.getText()); minWaterSize = Integer.parseInt(texMinWaterSize.getText()); maxWaterSize = Integer.parseInt(texMaxWaterSize.getText()); minForestSpots = Integer.parseInt(texMinForestSpots.getText()); maxForestSpots = Integer.parseInt(texMaxForestSpots.getText()); minForestSize = Integer.parseInt(texMinForestSize.getText()); maxForestSize = Integer.parseInt(texMaxForestSize.getText()); minRoughSpots = Integer.parseInt(texMinRoughSpots.getText()); maxRoughSpots = Integer.parseInt(texMaxRoughSpots.getText()); minRoughSize = Integer.parseInt(texMinRoughSize.getText()); maxRoughSize = Integer.parseInt(texMaxRoughSize.getText()); minSwampSpots = Integer.parseInt(texMinSwampSpots.getText()); maxSwampSpots = Integer.parseInt(texMaxSwampSpots.getText()); minSwampSize = Integer.parseInt(texMinSwampSize.getText()); maxSwampSize = Integer.parseInt(texMaxSwampSize.getText()); minPavementSpots = Integer.parseInt(texMinPavementSpots.getText()); maxPavementSpots = Integer.parseInt(texMaxPavementSpots.getText()); minPavementSize = Integer.parseInt(texMinPavementSize.getText()); maxPavementSize = Integer.parseInt(texMaxPavementSize.getText()); minRubbleSpots = Integer.parseInt(texMinRubbleSpots.getText()); maxRubbleSpots = Integer.parseInt(texMaxRubbleSpots.getText()); minRubbleSize = Integer.parseInt(texMinRubbleSize.getText()); maxRubbleSize = Integer.parseInt(texMaxRubbleSize.getText()); minFortifiedSpots = Integer.parseInt(texMinFortifiedSpots.getText()); maxFortifiedSpots = Integer.parseInt(texMaxFortifiedSpots.getText()); minFortifiedSize = Integer.parseInt(texMinFortifiedSize.getText()); maxFortifiedSize = Integer.parseInt(texMaxFortifiedSize.getText()); minIceSpots = Integer.parseInt(texMinIceSpots.getText()); maxIceSpots = Integer.parseInt(texMaxIceSpots.getText()); minIceSize = Integer.parseInt(texMinIceSize.getText()); maxIceSize = Integer.parseInt(texMaxIceSize.getText()); probRoad = Integer.parseInt(texProbRoad.getText()); probRiver = Integer.parseInt(texProbRiver.getText()); probHeavy = Integer.parseInt(texProbHeavy.getText()); probDeep = Integer.parseInt(texProbDeep.getText()); probCrater = Integer.parseInt(texProbCrater.getText()); minRadius = Integer.parseInt(texMinRadius.getText()); maxRadius = Integer.parseInt(texMaxRadius.getText()); maxCraters = Integer.parseInt(texMaxCraters.getText()); minCraters = Integer.parseInt(texMinCraters.getText()); algorithmToUse = Integer.parseInt(texAlgorithmToUse.getText()); drought = Integer.parseInt(texProbDrought.getText()); fire = Integer.parseInt(texProbFire.getText()); freeze = Integer.parseInt(texProbFreeze.getText()); flood = Integer.parseInt(texProbFlood.getText()); fxmod = Integer.parseInt(texFxMod.getText()); cityBlocks = Integer.parseInt(texCityBlocks.getText()); cityMinCF = Integer.parseInt(texCityMinCF.getText()); cityMaxCF = Integer.parseInt(texCityMaxCF.getText()); cityMinFloors = Integer.parseInt(texCityMinFloors.getText()); cityMaxFloors = Integer.parseInt(texCityMaxFloors.getText()); cityDensity = Integer.parseInt(texCityDensity.getText()); mountainHeightMin = Integer.parseInt(texMountainHeightMin.getText()); mountainHeightMax = Integer.parseInt(texMountainHeightMax.getText()); mountainWidthMin = Integer.parseInt(texMountainWidthMin.getText()); mountainWidthMax = Integer.parseInt(texMountainWidthMax.getText()); mountainStyle = Integer.parseInt(texMountainStyle.getText()); mountainPeaks = Integer.parseInt(texMountainPeaks.getText()); invertNegative = Integer.parseInt(texInvertNegative.getText()); } catch (NumberFormatException ex) { new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.OnlyIntegersWarn")).show(); //$NON-NLS-1$ return false; } if (hilliness < 0 || hilliness > 99) { new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.AmmountOfElevationWarn")).show(); //$NON-NLS-1$ return false; } if (cliffs < 0 || cliffs > 100) { new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.CliffsWarn")).show(); //$NON-NLS-1$ return false; } if (range < 0) { new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.elevRangeWarn")).show(); //$NON-NLS-1$ return false; } if (probInvert < 0 || probInvert > 100) { new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.depressionWarn")).show(); //$NON-NLS-1$ return false; } if (minWaterSpots < 0) { new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MinLakesWarn")).show(); //$NON-NLS-1$ return false; } if (maxWaterSpots < 0) { new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MaxLakesWarn1")).show(); //$NON-NLS-1$ return false; } if (maxWaterSpots < minWaterSpots) { new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MaxLakesWarn2")).show(); //$NON-NLS-1$ return false; } if (minWaterSize < 0) { new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MinLakeSizeWarn")).show(); //$NON-NLS-1$ return false; } if (maxWaterSize < 0) { new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MaxLakeSizeWarn")).show(); //$NON-NLS-1$ return false; } if (maxWaterSize < minWaterSize) { new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MaxLakeSizeWarn1")).show(); //$NON-NLS-1$ return false; } if (probDeep < 0 || probDeep > 100) { new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.DeepWaterProbWarn")).show(); //$NON-NLS-1$ return false; } if (minForestSpots < 0) { new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MinForestsWarn")).show(); //$NON-NLS-1$ return false; } if (maxForestSpots < 0) { new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MaxForestsWarn")).show(); //$NON-NLS-1$ return false; } if (maxForestSpots < minForestSpots) { new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MaxForestsWarn1")).show(); //$NON-NLS-1$ return false; } if (minForestSize < 0) { new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MinForestSizeWarn")).show(); //$NON-NLS-1$ return false; } if (maxForestSize < 0) { new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MaxForestSizeWarn")).show(); //$NON-NLS-1$ return false; } if (maxForestSize < minForestSize) { new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MaxForestSizeWarn1")).show(); //$NON-NLS-1$ return false; } if (probHeavy < 0 || probHeavy > 100) { new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.HeavyForestProbWarn")).show(); //$NON-NLS-1$ return false; } if (minRoughSpots < 0) { new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MinRoughsWarn")).show(); //$NON-NLS-1$ return false; } if (maxRoughSpots < 0) { new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MaxRoughsWarn")).show(); //$NON-NLS-1$ return false; } if (maxRoughSpots < minRoughSpots) { new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MaxRoughsWarn1")).show(); //$NON-NLS-1$ return false; } if (minRoughSize < 0) { new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MinRoughSizeWarn")).show(); //$NON-NLS-1$ return false; } if (maxRoughSize < 0) { new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MaxRoughSizeWarn")).show(); //$NON-NLS-1$ return false; } if (maxRoughSize < minRoughSize) { new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MaxRoughSizeWarn1")).show(); //$NON-NLS-1$ return false; } if (minSwampSpots < 0) { new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MinSwampsWarn")).show(); //$NON-NLS-1$ return false; } if (maxSwampSpots < 0) { new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MaxSwampsWarn")).show(); //$NON-NLS-1$ return false; } if (maxSwampSpots < minSwampSpots) { new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MaxSwampsWarn1")).show(); //$NON-NLS-1$ return false; } if (minSwampSize < 0) { new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MinSwampSizeWarn")).show(); //$NON-NLS-1$ return false; } if (maxSwampSize < 0) { new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MaxSwampSizeWarn")).show(); //$NON-NLS-1$ return false; } if (maxSwampSize < minSwampSize) { new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MaxSwampSizeWarn1")).show(); //$NON-NLS-1$ return false; } if (minPavementSpots < 0) { new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MinPavementWarn")).show(); //$NON-NLS-1$ return false; } if (maxPavementSpots < 0) { new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MaxPavementWarn")).show(); //$NON-NLS-1$ return false; } if (maxPavementSpots < minPavementSpots) { new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MaxPavementWarn1")).show(); //$NON-NLS-1$ return false; } if (minPavementSize < 0) { new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MinPavementSizeWarn")).show(); //$NON-NLS-1$ return false; } if (maxPavementSize < 0) { new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MaxPavementSizeWarn")).show(); //$NON-NLS-1$ return false; } if (maxPavementSize < minPavementSize) { new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MaxPavementSizeWarn1")).show(); //$NON-NLS-1$ return false; } if (minRubbleSpots < 0) { new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MinRubbleWarn")).show(); //$NON-NLS-1$ return false; } if (maxRubbleSpots < 0) { new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MaxRubbleWarn")).show(); //$NON-NLS-1$ return false; } if (maxRubbleSpots < minRubbleSpots) { new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MaxRubbleWarn1")).show(); //$NON-NLS-1$ return false; } if (minRubbleSize < 0) { new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MinRubbleSizeWarn")).show(); //$NON-NLS-1$ return false; } if (maxRubbleSize < 0) { new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MaxRubbleSizeWarn")).show(); //$NON-NLS-1$ return false; } if (maxRubbleSize < minRubbleSize) { new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MaxRubbleSizeWarn1")).show(); //$NON-NLS-1$ return false; } if (minFortifiedSpots < 0) { new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MinFortifiedWarn")).show(); //$NON-NLS-1$ return false; } if (maxFortifiedSpots < 0) { new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MaxFortifiedWarn")).show(); //$NON-NLS-1$ return false; } if (maxFortifiedSpots < minFortifiedSpots) { new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MaxFortifiedWarn1")).show(); //$NON-NLS-1$ return false; } if (minFortifiedSize < 0) { new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MinFortifiedSizeWarn")).show(); //$NON-NLS-1$ return false; } if (maxFortifiedSize < 0) { new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MaxFortifiedSizeWarn")).show(); //$NON-NLS-1$ return false; } if (maxFortifiedSize < minFortifiedSize) { new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MaxFortifiedSizeWarn1")).show(); //$NON-NLS-1$ return false; } if (minIceSpots < 0) { new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MinIceWarn")).show(); //$NON-NLS-1$ return false; } if (maxIceSpots < 0) { new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MaxIceWarn")).show(); //$NON-NLS-1$ return false; } if (maxIceSpots < minIceSpots) { new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MaxIceWarn1")).show(); //$NON-NLS-1$ return false; } if (minIceSize < 0) { new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MinIceSizeWarn")).show(); //$NON-NLS-1$ return false; } if (maxIceSize < 0) { new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MaxIceSizeWarn")).show(); //$NON-NLS-1$ return false; } if (maxIceSize < minIceSize) { new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MaxIceSizeWarn1")).show(); //$NON-NLS-1$ return false; } if (probRiver < 0 || probRiver > 100) { new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.RiverProbWarn")).show(); //$NON-NLS-1$ return false; } if (probRoad < 0 || probRoad > 100) { new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.RoadProbWarn")).show(); //$NON-NLS-1$ return false; } if (probCrater < 0 || probCrater > 100) { new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.CratersProbWarn")).show(); //$NON-NLS-1$ return false; } if (minRadius < 0) { new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MinCraterRadiusWarn")).show(); //$NON-NLS-1$ return false; } if (maxRadius < 0) { new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MaxCraterRadiusWarn")).show(); //$NON-NLS-1$ return false; } if (maxRadius < minRadius) { new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MaxCraterRadiusWarn1")).show(); //$NON-NLS-1$ return false; } if (maxCraters < 0) { new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MaxCratersWarn")).show(); //$NON-NLS-1$ return false; } if (minCraters < 0) { new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MinCratersWarn")).show(); //$NON-NLS-1$ return false; } if (maxCraters < minCraters) { new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MaxCratersWarn1")).show(); //$NON-NLS-1$ return false; } if (algorithmToUse < 0 || algorithmToUse > 2) { new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.AlgorithmWarn")).show(); //$NON-NLS-1$ return false; } if (cityMinCF < 1 || cityMaxCF > 150) { new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.CFOutOfRangeWarn")).show(); //$NON-NLS-1$ return false; } if (cityMinFloors < 1 || cityMaxFloors > 100) { new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.FloorsOutOfRangeWarn")).show(); //$NON-NLS-1$ return false; } if (cityDensity < 1 || cityDensity > 100) { new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.DensityOutOfRangeWarn")).show(); //$NON-NLS-1$ return false; } if ((mountainWidthMin < 1 || mountainWidthMax < mountainWidthMin) && mountainPeaks > 0) { new AlertDialog(frame, INVALID_SETTING, Messages.getString("RandomMapDialog.MountainWidthOutOfRangeWarn")).setVisible(true); //$NON-NLS-1$ } } else { String s = choElevation.getSelectedItem(); if (s.equals(NONE)) { hilliness = 0; range = 0; } else if (s.equals(LOW)) { hilliness = 25; range = 3; } else if (s.equals(MEDIUM)) { hilliness = 50; range = 5; } else { hilliness = 75; range = 8; } s = choCliffs.getSelectedItem(); if (s.equals(NONE)) { cliffs = 0; } else if (s.equals(LOW)) { cliffs = 25; } else if (s.equals(MEDIUM)) { cliffs = 50; } else { cliffs = 75; } s = choWoods.getSelectedItem(); if (s.equals(NONE)) { minForestSize = 0; maxForestSize = 0; minForestSpots = 0; maxForestSpots = 0; probHeavy = 0; } else if (s.equals(LOW)) { minForestSize = 3; maxForestSize = 6; minForestSpots = 3; maxForestSpots = 6; probHeavy = 20; } else if (s.equals(MEDIUM)) { minForestSize = 3; maxForestSize = 10; minForestSpots = 4; maxForestSpots = 8; probHeavy = 30; } else { minForestSize = 8; maxForestSize = 13; minForestSpots = 6; maxForestSpots = 10; probHeavy = 45; } s = choLakes.getSelectedItem(); if (s.equals(NONE)) { minWaterSize = 0; maxWaterSize = 0; minWaterSpots = 0; maxWaterSpots = 0; probDeep = 0; } else if (s.equals(LOW)) { minWaterSize = 1; maxWaterSize = 5; minWaterSpots = 1; maxWaterSpots = 5; probDeep = 20; } else if (s.equals(MEDIUM)) { minWaterSize = 6; maxWaterSize = 10; minWaterSpots = 2; maxWaterSpots = 5; probDeep = 30; } else { minWaterSize = 8; maxWaterSize = 15; minWaterSpots = 3; maxWaterSpots = 6; probDeep = 45; } s = choRough.getSelectedItem(); if (s.equals(NONE)) { minRoughSize = 0; maxRoughSize = 0; minRoughSpots = 0; maxRoughSpots = 0; } else if (s.equals(LOW)) { minRoughSize = 1; maxRoughSize = 2; minRoughSpots = 2; maxRoughSpots = 6; } else if (s.equals(MEDIUM)) { minRoughSize = 2; maxRoughSize = 5; minRoughSpots = 3; maxRoughSpots = 8; } else { minRoughSize = 3; maxRoughSize = 7; minRoughSpots = 5; maxRoughSpots = 10; } s = choSwamp.getSelectedItem(); if (s.equals(NONE)) { minSwampSize = 0; maxSwampSize = 0; minSwampSpots = 0; maxSwampSpots = 0; } else if (s.equals(LOW)) { minSwampSize = 1; maxSwampSize = 2; minSwampSpots = 2; maxSwampSpots = 6; } else if (s.equals(MEDIUM)) { minSwampSize = 2; maxSwampSize = 5; minSwampSpots = 3; maxSwampSpots = 8; } else { minSwampSize = 3; maxSwampSize = 7; minSwampSpots = 5; maxSwampSpots = 10; } s = choPavement.getSelectedItem(); if (s.equals(NONE)) { minPavementSize = 0; maxPavementSize = 0; minPavementSpots = 0; maxPavementSpots = 0; } else if (s.equals(LOW)) { minPavementSize = 1; maxPavementSize = 2; minPavementSpots = 2; maxPavementSpots = 6; } else if (s.equals(MEDIUM)) { minPavementSize = 2; maxPavementSize = 5; minPavementSpots = 3; maxPavementSpots = 8; } else { minPavementSize = 3; maxPavementSize = 7; minPavementSpots = 5; maxPavementSpots = 10; } s = choRubble.getSelectedItem(); if (s.equals(NONE)) { minRubbleSize = 0; maxRubbleSize = 0; minRubbleSpots = 0; maxRubbleSpots = 0; } else if (s.equals(LOW)) { minRubbleSize = 1; maxRubbleSize = 2; minRubbleSpots = 2; maxRubbleSpots = 6; } else if (s.equals(MEDIUM)) { minRubbleSize = 2; maxRubbleSize = 5; minRubbleSpots = 3; maxRubbleSpots = 8; } else { minRubbleSize = 3; maxRubbleSize = 7; minRubbleSpots = 5; maxRubbleSpots = 10; } s = choFortified.getSelectedItem(); if (s.equals(NONE)) { minFortifiedSize = 0; maxFortifiedSize = 0; minFortifiedSpots = 0; maxFortifiedSpots = 0; } else if (s.equals(LOW)) { minFortifiedSize = 1; maxFortifiedSize = 2; minFortifiedSpots = 1; maxFortifiedSpots = 2; } else if (s.equals(MEDIUM)) { minFortifiedSize = 2; maxFortifiedSize = 3; minFortifiedSpots = 2; maxFortifiedSpots = 4; } else { minFortifiedSize = 2; maxFortifiedSize = 4; minFortifiedSpots = 3; maxFortifiedSpots = 6; } s = choIce.getSelectedItem(); if (s.equals(NONE)) { minIceSize = 0; maxIceSize = 0; minIceSpots = 0; maxIceSpots = 0; } else if (s.equals(LOW)) { minIceSize = 1; maxIceSize = 2; minIceSpots = 2; maxIceSpots = 6; } else if (s.equals(MEDIUM)) { minIceSize = 2; maxIceSize = 5; minIceSpots = 3; maxIceSpots = 8; } else { minIceSize = 3; maxIceSize = 7; minIceSpots = 5; maxIceSpots = 10; } s = choRoads.getSelectedItem(); if (s.equals(NONE)) { probRoad = 0; } else if (s.equals(LOW)) { probRoad = 25; } else if (s.equals(MEDIUM)) { probRoad = 50; } else { probRoad = 75; } s = choRivers.getSelectedItem(); if (s.equals(NONE)) { probRiver = 0; } else if (s.equals(LOW)) { probRiver = 25; } else if (s.equals(MEDIUM)) { probRiver = 50; } else { probRiver = 75; } s = choCraters.getSelectedItem(); if(s.equals(NONE)) { probCrater = 0; minRadius = 0; maxRadius = 0; minCraters = 0; maxCraters = 0; } else if (s.equals(LOW)) { probCrater = 25; minRadius = 1; maxRadius = 3; minCraters = 1; maxCraters = 3; } else if (s.equals(MEDIUM)) { probCrater = 50; minRadius = 1; maxRadius = 5; minCraters = 3; maxCraters = 8; } else { probCrater = 75; minRadius = 3; maxRadius = 9; minCraters = 6; maxCraters = 14; } s = choMountain.getSelectedItem(); if(s.equals(NONE)) { mountainPeaks = 0; mountainHeightMin = 4; mountainHeightMax = 6; mountainWidthMin = 7; mountainWidthMax = 10; mountainStyle = 0; } else if (s.equals(LOW)) { mountainPeaks = 1; mountainHeightMin = 4; mountainHeightMax = 6; mountainWidthMin = 7; mountainWidthMax = 10; mountainStyle = 0; } else if (s.equals(MEDIUM)) { mountainPeaks = 2; mountainHeightMin = 6; mountainHeightMax = 8; mountainWidthMin = 7; mountainWidthMax = 10; mountainStyle = 0; } else { mountainPeaks = 3; mountainHeightMin = 8; mountainHeightMax = 10; mountainWidthMin = 9; mountainWidthMax = 14; mountainStyle = MapSettings.MOUNTAIN_SNOWCAPPED; } cityBlocks = 16; cityMinCF = 10; cityMaxCF = 100; cityMinFloors = 1; cityMaxFloors = 6; cityDensity = 75; townSize = 60; algorithmToUse = 0; probInvert = 0; fxmod = 0; flood = 0; freeze = 0; fire = 0; drought = 0; } cityType = choCity.getSelectedItem(); if(!advanced && cityType.equals("TOWN")) { cityBlocks = 3; cityMaxCF = 50; cityMaxFloors = 3; } mapSettings.setBoardSize(boardWidth, boardHeight); mapSettings.setElevationParams(hilliness, range, probInvert); mapSettings.setCliffParam(cliffs); mapSettings.setWaterParams(minWaterSpots, maxWaterSpots, minWaterSize, maxWaterSize, probDeep); mapSettings.setForestParams(minForestSpots, maxForestSpots, minForestSize, maxForestSize, probHeavy); mapSettings.setRoughParams(minRoughSpots, maxRoughSpots, minRoughSize, maxRoughSize); mapSettings.setSwampParams(minSwampSpots, maxSwampSpots, minSwampSize, maxSwampSize); mapSettings.setPavementParams(minPavementSpots, maxPavementSpots, minPavementSize, maxPavementSize); mapSettings.setRubbleParams(minRubbleSpots, maxRubbleSpots, minRubbleSize, maxRubbleSize); mapSettings.setFortifiedParams(minFortifiedSpots, maxFortifiedSpots, minFortifiedSize, maxFortifiedSize); mapSettings.setIceParams(minIceSpots, maxIceSpots, minIceSize, maxIceSize); mapSettings.setRiverParam(probRiver); mapSettings.setRoadParam(probRoad); mapSettings.setCraterParam(probCrater, minCraters, maxCraters, minRadius, maxRadius); mapSettings.setSpecialFX(fxmod, fire, freeze, flood, drought); mapSettings.setAlgorithmToUse(algorithmToUse); mapSettings.setCityParams(cityBlocks, cityType, cityMinCF, cityMaxCF, cityMinFloors, cityMaxFloors, cityDensity, townSize); mapSettings.setMountainParams(mountainPeaks, mountainWidthMin, mountainWidthMax, mountainHeightMin, mountainHeightMax, mountainStyle); mapSettings.setInvertNegativeTerrain(invertNegative); mapSettings.setTheme(theme); if (!advanced) { loadValues(); } bsd.updateMapSettings(mapSettings); return true; }
4135 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4135/c1d9d15832147777c7866e12b2a22073e12e3714/RandomMapDialog.java/clean/megamek/src/megamek/client/ui/AWT/RandomMapDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 2230, 1972, 1435, 288, 3639, 509, 11094, 2384, 31, 3639, 509, 11094, 2686, 31, 3639, 509, 366, 737, 6336, 16, 1048, 16, 927, 430, 2556, 31, 3639, 509, 1131, 24064, 3389, 6968, 16, 943, 24064, 3389, 6968, 16, 1131, 24064, 1225, 16, 943, 24064, 1225, 16, 3137, 13980, 31, 3639, 509, 1131, 13573, 334, 3389, 6968, 16, 943, 13573, 334, 3389, 6968, 16, 1131, 13573, 334, 1225, 16, 943, 13573, 334, 1225, 16, 3137, 5256, 23935, 31, 3639, 509, 1131, 54, 4966, 3389, 6968, 16, 943, 54, 4966, 3389, 6968, 16, 1131, 54, 4966, 1225, 16, 943, 54, 4966, 1225, 31, 3639, 509, 1131, 52, 842, 820, 3389, 6968, 16, 943, 52, 842, 820, 3389, 6968, 16, 1131, 52, 842, 820, 1225, 16, 943, 52, 842, 820, 1225, 31, 3639, 509, 1131, 54, 14787, 3389, 6968, 16, 943, 54, 14787, 3389, 6968, 16, 1131, 54, 14787, 1225, 16, 943, 54, 14787, 1225, 31, 3639, 509, 1131, 42, 499, 939, 3389, 6968, 16, 943, 42, 499, 939, 3389, 6968, 16, 1131, 42, 499, 939, 1225, 16, 943, 42, 499, 939, 1225, 31, 3639, 509, 1131, 45, 311, 3389, 6968, 16, 943, 45, 311, 3389, 6968, 16, 1131, 45, 311, 1225, 16, 943, 45, 311, 1225, 31, 3639, 509, 1131, 6050, 931, 3389, 6968, 16, 943, 6050, 931, 3389, 6968, 16, 1131, 6050, 931, 1225, 16, 943, 6050, 931, 1225, 31, 3639, 509, 3137, 54, 6189, 16, 3137, 54, 1667, 16, 3137, 382, 1097, 31, 3639, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 2230, 1972, 1435, 288, 3639, 509, 11094, 2384, 31, 3639, 509, 11094, 2686, 31, 3639, 509, 366, 737, 6336, 16, 1048, 16, 927, 430, 2556, 31, 3639, 509, 1131, 24064, 3389, 6968, 16, 943, 24064, 3389, 6968, 16, 1131, 24064, 1225, 16, 943, 24064, 1225, 16, 3137, 13980, 31, 3639, 509, 1131, 13573, 334, 3389, 6968, 16, 943, 13573, 334, 3389, 6968, 16, 1131, 13573, 334, 1225, 16, 943, 13573, 334, 1225, 16, 3137, 5256, 23935, 31, 3639, 509, 1131, 54, 4966, 3389, 6968, 16, 943, 54, 4966, 3389, 6968, 16, 1131, 54, 4966, 1225, 16, 943, 54, 4966, 1225, 31, 3639, 509, 1131, 52, 842, 820, 3389, 6968, 16, 943, 52, 842, 820, 3389, 6968, 2 ]
OpenGLTextureHelp.createTextureForTGAFile(gl, glu, textureIDs[0], "ogl.tga");
TextureHelp.createTextureForTGAFile(gl, glu, textureIDs[0], "ogl.tga");
public void glInit(GeometryViewer viewer, GL gl, GLU glu) { gl.enable(TEXTURE_2D); textureIDs = new int[3]; gl.genTextures(textureIDs); OpenGLTextureHelp.createTextureForTGAFile(gl, glu, textureIDs[0], "ogl.tga"); }
12777 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12777/2966343f610efc6afc9e4229c68e647aa5c77c7b/TexturedCube.java/buggy/trunk/YAJOGLB/DIR/tests/TexturedCube.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 5118, 2570, 12, 9823, 18415, 14157, 16, 10252, 5118, 16, 10252, 57, 5118, 89, 13, 288, 565, 5118, 18, 7589, 12, 24652, 67, 22, 40, 1769, 565, 11428, 5103, 273, 394, 509, 63, 23, 15533, 565, 5118, 18, 4507, 1528, 1823, 12, 955, 594, 5103, 1769, 565, 3502, 11261, 10967, 6696, 18, 2640, 10967, 1290, 56, 25043, 812, 12, 7043, 16, 5118, 89, 16, 25083, 1377, 11428, 5103, 63, 20, 6487, 315, 717, 80, 18, 88, 15833, 8863, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5118, 2570, 12, 9823, 18415, 14157, 16, 10252, 5118, 16, 10252, 57, 5118, 89, 13, 288, 565, 5118, 18, 7589, 12, 24652, 67, 22, 40, 1769, 565, 11428, 5103, 273, 394, 509, 63, 23, 15533, 565, 5118, 18, 4507, 1528, 1823, 12, 955, 594, 5103, 1769, 565, 3502, 11261, 10967, 6696, 18, 2640, 10967, 1290, 56, 25043, 812, 12, 7043, 16, 5118, 89, 16, 25083, 1377, 11428, 5103, 63, 20, 6487, 315, 717, 80, 18, 88, 15833, 8863, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
} else if(keyName.equals(Constants.SAFELIST_TARGET_ADDR_RP)) {
} else if(keyName.equals(Constants.SAFELIST_TARGET_ADDR_RP)) {
protected String getValue() { String s = null; if(getKeyName() != null) { String keyName = getKeyName().toLowerCase().trim(); if(keyName.equals(Constants.AUTH_TOKEN_RP)) { s = Constants.AUTH_TOKEN_RP; } else if(keyName.equals(Constants.ACTION_RP)) { s = Constants.ACTION_RP; } else if(keyName.equals(Constants.MAIL_ID_RP)) { s = Constants.MAIL_ID_RP; } else if(keyName.equals(Constants.REQ_DIGEST_ADDR_RP)) { s = Constants.REQ_DIGEST_ADDR_RP; } else if(keyName.equals(Constants.SORT_BY_RP)) { s = Constants.SORT_BY_RP; } else if(keyName.equals(Constants.SORT_ASCEND_RP)) { s = Constants.SORT_ASCEND_RP; } else if(keyName.equals(Constants.FIRST_RECORD_RP)) { s = Constants.FIRST_RECORD_RP; } else if(keyName.equals(Constants.SAFELIST_TARGET_ADDR_RP)) { s = Constants.SAFELIST_TARGET_ADDR_RP; } } else if(getValueName() != null) { String valueName = getValueName().trim().toLowerCase(); if(valueName.equals(Constants.PURGE_RV)) { s = Constants.PURGE_RV; } else if(valueName.equals(Constants.RESCUE_RV)) { s = Constants.RESCUE_RV; } else if(valueName.equals(Constants.VIEW_INBOX_RV)) { s = Constants.VIEW_INBOX_RV; } else if(valueName.equals(Constants.SAFELIST_VIEW_RV)) { s = Constants.SAFELIST_VIEW_RV; } else if(valueName.equals(Constants.SAFELIST_ADD_RV)) { s = Constants.SAFELIST_ADD_RV; } else if(valueName.equals(Constants.SAFELIST_REMOVE_RV)) { s = Constants.SAFELIST_REMOVE_RV; } else if(valueName.equals(Constants.VIEW_INBOX_RV)) { s = Constants.VIEW_INBOX_RV; } } return s; }
49954 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49954/6f3fbb8101e35525ce32ffdd02bd7409bb62efd9/ConstantsTag.java/clean/tran/mail/webapps/quarantine/src/com/metavize/tran/mail/web/euv/tags/ConstantsTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 514, 2366, 1435, 288, 565, 514, 272, 273, 446, 31, 565, 309, 12, 588, 13987, 1435, 480, 446, 13, 288, 1377, 514, 13564, 273, 24474, 7675, 869, 5630, 7675, 5290, 5621, 1377, 309, 12, 856, 461, 18, 14963, 12, 2918, 18, 7131, 67, 8412, 67, 54, 52, 3719, 288, 3639, 272, 273, 5245, 18, 7131, 67, 8412, 67, 54, 52, 31, 1377, 289, 1377, 469, 309, 12, 856, 461, 18, 14963, 12, 2918, 18, 12249, 67, 54, 52, 3719, 288, 3639, 272, 273, 5245, 18, 12249, 67, 54, 52, 31, 1377, 289, 1377, 469, 309, 12, 856, 461, 18, 14963, 12, 2918, 18, 18191, 67, 734, 67, 54, 52, 3719, 288, 3639, 272, 273, 5245, 18, 18191, 67, 734, 67, 54, 52, 31, 1377, 289, 1377, 469, 309, 12, 856, 461, 18, 14963, 12, 2918, 18, 20373, 67, 2565, 27332, 67, 14142, 67, 54, 52, 3719, 288, 3639, 272, 273, 5245, 18, 20373, 67, 2565, 27332, 67, 14142, 67, 54, 52, 31, 1377, 289, 1377, 469, 309, 12, 856, 461, 18, 14963, 12, 2918, 18, 23988, 67, 6486, 67, 54, 52, 3719, 288, 3639, 272, 273, 5245, 18, 23988, 67, 6486, 67, 54, 52, 31, 1377, 289, 1377, 469, 309, 12, 856, 461, 18, 14963, 12, 2918, 18, 23988, 67, 8633, 4415, 67, 54, 52, 3719, 288, 3639, 272, 273, 5245, 18, 23988, 67, 8633, 4415, 67, 54, 52, 31, 1377, 289, 1377, 469, 309, 12, 856, 461, 18, 14963, 12, 2918, 18, 15354, 67, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 514, 2366, 1435, 288, 565, 514, 272, 273, 446, 31, 565, 309, 12, 588, 13987, 1435, 480, 446, 13, 288, 1377, 514, 13564, 273, 24474, 7675, 869, 5630, 7675, 5290, 5621, 1377, 309, 12, 856, 461, 18, 14963, 12, 2918, 18, 7131, 67, 8412, 67, 54, 52, 3719, 288, 3639, 272, 273, 5245, 18, 7131, 67, 8412, 67, 54, 52, 31, 1377, 289, 1377, 469, 309, 12, 856, 461, 18, 14963, 12, 2918, 18, 12249, 67, 54, 52, 3719, 288, 3639, 272, 273, 5245, 18, 12249, 67, 54, 52, 31, 1377, 289, 1377, 469, 309, 12, 856, 461, 18, 14963, 12, 2918, 18, 18191, 67, 734, 67, 54, 52, 3719, 288, 3639, 272, 273, 5245, 18, 18191, 2 ]
setOnblur((String) evalAttr("onblur", getOnblur(), String.class));
setOnblur((String) evalAttr("onblur", getOnblurExpr(), String.class));
private void evaluateExpressions() throws JspException { try { setAccesskey((String) evalAttr("accessKey", getAccesskey(), String.class)); } catch (NullAttributeException ex) { setAccesskey(null); } try { setAlt((String) evalAttr("alt", getAlt(), String.class)); } catch (NullAttributeException ex) { setAlt(null); } try { setAltKey((String) evalAttr("altKey", getAltKey(), String.class)); } catch (NullAttributeException ex) { setAltKey(null); } try { setDisabled(((Boolean) evalAttr("disabled", getDisabledExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { setDisabled(false); } try { setName((String) evalAttr("name", getName(), String.class)); } catch (NullAttributeException ex) { setName(null); } try { setOnblur((String) evalAttr("onblur", getOnblur(), String.class)); } catch (NullAttributeException ex) { setOnblur(null); } try { setOnchange((String) evalAttr("onchange", getOnchange(), String.class)); } catch (NullAttributeException ex) { setOnchange(null); } try { setOnclick((String) evalAttr("onclick", getOnclick(), String.class)); } catch (NullAttributeException ex) { setOnclick(null); } try { setOndblclick((String) evalAttr("ondblclick", getOndblclick(), String.class)); } catch (NullAttributeException ex) { setOndblclick(null); } try { setOnfocus((String) evalAttr("onfocus", getOnfocus(), String.class)); } catch (NullAttributeException ex) { setOnfocus(null); } try { setOnkeydown((String) evalAttr("onkeydown", getOnkeydown(), String.class)); } catch (NullAttributeException ex) { setOnkeydown(null); } try { setOnkeypress((String) evalAttr("onkeypress", getOnkeypress(), String.class)); } catch (NullAttributeException ex) { setOnkeypress(null); } try { setOnkeyup((String) evalAttr("onkeyup", getOnkeyup(), String.class)); } catch (NullAttributeException ex) { setOnkeyup(null); } try { setOnmousedown((String) evalAttr("onmousedown", getOnmousedown(), String.class)); } catch (NullAttributeException ex) { setOnmousedown(null); } try { setOnmousemove((String) evalAttr("onmousemove", getOnmousemove(), String.class)); } catch (NullAttributeException ex) { setOnmousemove(null); } try { setOnmouseout((String) evalAttr("onmouseout", getOnmouseout(), String.class)); } catch (NullAttributeException ex) { setOnmouseout(null); } try { setOnmouseover((String) evalAttr("onmouseover", getOnmouseover(), String.class)); } catch (NullAttributeException ex) { setOnmouseover(null); } try { setOnmouseup((String) evalAttr("onmouseup", getOnmouseup(), String.class)); } catch (NullAttributeException ex) { setOnmouseup(null); } try { setProperty((String) evalAttr("property", getProperty(), String.class)); } catch (NullAttributeException ex) { setProperty(null); } try { setStyle((String) evalAttr("style", getStyle(), String.class)); } catch (NullAttributeException ex) { setStyle(null); } try { setStyleClass((String) evalAttr("styleClass", getStyleClass(), String.class)); } catch (NullAttributeException ex) { setStyleClass(null); } try { setStyleId((String) evalAttr("styleId", getStyleId(), String.class)); } catch (NullAttributeException ex) { setStyleId(null); } try { setTabindex((String) evalAttr("tabindex", getTabindex(), String.class)); } catch (NullAttributeException ex) { setTabindex(null); } try { setTitle((String) evalAttr("title", getTitle(), String.class)); } catch (NullAttributeException ex) { setTitle(null); } try { setTitleKey((String) evalAttr("titleKey", getTitleKey(), String.class)); } catch (NullAttributeException ex) { setTitleKey(null); } try { setValue((String) evalAttr("value", getValue(), String.class)); } catch (NullAttributeException ex) { setValue(null); } }
48068 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48068/db064e19656421b94aaf753550935d95f44bd5f9/ELMultiboxTag.java/clean/contrib/struts-el/src/share/org/apache/strutsel/taglib/html/ELMultiboxTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 5956, 8927, 1435, 1216, 27485, 288, 3639, 775, 288, 5411, 444, 1862, 856, 12443, 780, 13, 5302, 3843, 2932, 3860, 653, 3113, 21909, 856, 9334, 4766, 6647, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 5411, 444, 1862, 856, 12, 2011, 1769, 3639, 289, 3639, 775, 288, 5411, 444, 10655, 12443, 780, 13, 5302, 3843, 2932, 2390, 3113, 336, 10655, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 5411, 444, 10655, 12, 2011, 1769, 3639, 289, 3639, 775, 288, 5411, 444, 10655, 653, 12443, 780, 13, 5302, 3843, 2932, 2390, 653, 3113, 336, 10655, 653, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 5411, 444, 10655, 653, 12, 2011, 1769, 3639, 289, 3639, 775, 288, 5411, 444, 8853, 12443, 12, 5507, 13, 5302, 3843, 2932, 9278, 3113, 336, 8853, 4742, 9334, 4766, 5411, 3411, 18, 1106, 13, 2934, 13491, 16708, 10663, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 5411, 444, 8853, 12, 5743, 1769, 3639, 289, 3639, 775, 288, 5411, 6788, 12443, 780, 13, 5302, 3843, 2932, 529, 3113, 1723, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 5411, 6788, 12, 2011, 1769, 3639, 289, 3639, 775, 288, 5411, 22131, 27065, 12443, 780, 13, 5302, 3843, 2932, 265, 27065, 3113, 30070, 27065, 4742, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5956, 8927, 1435, 1216, 27485, 288, 3639, 775, 288, 5411, 444, 1862, 856, 12443, 780, 13, 5302, 3843, 2932, 3860, 653, 3113, 21909, 856, 9334, 4766, 6647, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 5411, 444, 1862, 856, 12, 2011, 1769, 3639, 289, 3639, 775, 288, 5411, 444, 10655, 12443, 780, 13, 5302, 3843, 2932, 2390, 3113, 336, 10655, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 261, 2041, 1499, 503, 431, 13, 288, 5411, 444, 10655, 12, 2011, 1769, 3639, 289, 3639, 775, 288, 5411, 444, 10655, 653, 12443, 780, 13, 5302, 3843, 2932, 2390, 653, 3113, 336, 10655, 653, 9334, 514, 18, 1106, 10019, 3639, 289, 1044, 2 ]
Vector agentURLs = new Vector(); getCommunities();
getCommunities();
private void makePlanGraph() { Vector agentURLs = new Vector(); getCommunities(); // get community<->agent mapping ULPlanFilter filter = new ULPlanFilter(communityToAgents); if (!filter.preFilter()) return; // user cancelled filter Vector agentsToContact = filter.getAgentsSelected(); for (int i = 0; i < agentsToContact.size(); i++) { String URL = (String)agentToURL.get((String)agentsToContact.elementAt(i)); if (URL != null) agentURLs.add(URL); } String PSPId = PSP_PLAN; String filterValue = filter.getIgnoreObjectTypes(); Collection objectsFromPSP = Util.getCollectionFromClusters(agentURLs, PSPId + "?" + PropertyNames.PLAN_OBJECTS_TO_IGNORE + "=" + filterValue, null); if (objectsFromPSP == null) return; Vector nodeObjects = new Vector(); // System.out.println("Received plan objects: " + objectsFromPSP.size()); int duplicates = 0; Vector UIDs = new Vector(); for (Iterator i = objectsFromPSP.iterator(); i.hasNext(); ) { PropertyTree properties = (PropertyTree)i.next(); String UID = (String)properties.get(PropertyNames.UID_ATTR); // filter duplicates by UID if (!UIDs.contains(UID)) { String agentName = (String)properties.get(PropertyNames.AGENT_ATTR); String communityName = ""; if (agentName != null) communityName = (String)agentToCommunity.get(agentName); nodeObjects.add(new ULPlanNode(properties, communityName)); UIDs.add(UID); } else { duplicates++; // for debugging // Set keys = properties.keySet(); // System.out.println("Property names/values........"); // for (Iterator j = keys.iterator(); j.hasNext(); ) { // String s = (String)j.next(); // System.out.println(s + "," + properties.get(s)); // } // end for debugging } } // end of for loop over objectsFromPSP // System.out.println("Duplicates: " + duplicates); // limit number of objects graphed int n = filter.getNumberOfObjects(); if (nodeObjects.size() > n) nodeObjects.setSize(n); // if not filtering out direct objects, then handle their links specially if (filterValue == null || filterValue.indexOf(PropertyNames.DIRECT_OBJECT) == -1) nodeObjects = processDirectObjects(nodeObjects); if (nodeObjects.size() != 0) { Window w = (Window)new ULPlanFrame(NamedFrame.PLAN, new CSMARTGraph(nodeObjects, CSMARTGraph.GRAPH_TYPE_PLAN), filter); myWindows.add(w); } }
9368 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9368/3724657b614efe156852908cb4fa6a300e627fa9/CSMARTUL.java/clean/csmart/src/org/cougaar/tools/csmart/ui/monitor/viewer/CSMARTUL.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 1221, 5365, 4137, 1435, 288, 565, 5589, 4040, 15749, 273, 394, 5589, 5621, 565, 336, 12136, 318, 1961, 5621, 368, 336, 19833, 32, 2122, 5629, 2874, 565, 587, 48, 5365, 1586, 1034, 273, 394, 587, 48, 5365, 1586, 12, 20859, 774, 23400, 1769, 565, 309, 16051, 2188, 18, 1484, 1586, 10756, 1377, 327, 31, 368, 729, 13927, 1034, 565, 5589, 4040, 11634, 6567, 273, 1034, 18, 588, 23400, 7416, 5621, 565, 364, 261, 474, 277, 273, 374, 31, 277, 411, 4040, 11634, 6567, 18, 1467, 5621, 277, 27245, 288, 1377, 514, 1976, 273, 565, 202, 12, 780, 13, 5629, 774, 1785, 18, 588, 12443, 780, 13, 23560, 774, 6567, 18, 2956, 861, 12, 77, 10019, 1377, 309, 261, 1785, 480, 446, 13, 282, 202, 5629, 15749, 18, 1289, 12, 1785, 1769, 565, 289, 565, 514, 453, 3118, 548, 273, 453, 3118, 67, 6253, 1258, 31, 565, 514, 1034, 620, 273, 1034, 18, 588, 3777, 921, 2016, 5621, 565, 2200, 2184, 1265, 52, 3118, 273, 1377, 3564, 18, 588, 2532, 1265, 13698, 12, 5629, 15749, 16, 4405, 377, 453, 3118, 548, 397, 13574, 397, 6862, 377, 4276, 1557, 18, 6253, 1258, 67, 9422, 55, 67, 4296, 67, 20118, 397, 6862, 377, 9671, 397, 6862, 377, 1034, 620, 16, 6862, 377, 446, 1769, 565, 309, 261, 6911, 1265, 52, 3118, 422, 446, 13, 1377, 327, 31, 565, 5589, 756, 4710, 273, 394, 5589, 5621, 565, 368, 565, 2332, 18, 659, 18, 8222, 2932, 8872, 4995, 2184, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1221, 5365, 4137, 1435, 288, 565, 5589, 4040, 15749, 273, 394, 5589, 5621, 565, 336, 12136, 318, 1961, 5621, 368, 336, 19833, 32, 2122, 5629, 2874, 565, 587, 48, 5365, 1586, 1034, 273, 394, 587, 48, 5365, 1586, 12, 20859, 774, 23400, 1769, 565, 309, 16051, 2188, 18, 1484, 1586, 10756, 1377, 327, 31, 368, 729, 13927, 1034, 565, 5589, 4040, 11634, 6567, 273, 1034, 18, 588, 23400, 7416, 5621, 565, 364, 261, 474, 277, 273, 374, 31, 277, 411, 4040, 11634, 6567, 18, 1467, 5621, 277, 27245, 288, 1377, 514, 1976, 273, 565, 202, 12, 780, 13, 5629, 774, 1785, 18, 588, 12443, 780, 13, 23560, 774, 6567, 18, 2956, 861, 12, 77, 10019, 1377, 2 ]
DataHandler annotateDataObjects(Set nodes)
DataHandler annotateDataObjects(JFrame owner, Set nodes)
DataHandler annotateDataObjects(Set nodes) { Object uo; Set toAnnotate = new HashSet(); Iterator i = nodes.iterator(); while (i.hasNext()) { uo = ((ImageDisplay) i.next()).getHierarchyObject(); if (uo instanceof DataObject) toAnnotate.add(uo); } dataHandler = AnnotatorFactory.getAnnotator(toAnnotate, HiViewerAgent.getRegistry()); return dataHandler; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/464efde90db6bc5095c0a7e5952f51ad0f37ca86/HiViewerModel.java/clean/SRC/org/openmicroscopy/shoola/agents/hiviewer/view/HiViewerModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 751, 1503, 13795, 751, 4710, 12, 694, 2199, 13, 202, 95, 202, 202, 921, 582, 83, 31, 202, 202, 694, 358, 31638, 273, 394, 6847, 5621, 202, 202, 3198, 277, 273, 2199, 18, 9838, 5621, 202, 202, 17523, 261, 77, 18, 5332, 2134, 10756, 288, 1082, 202, 89, 83, 273, 14015, 2040, 4236, 13, 277, 18, 4285, 1435, 2934, 588, 12074, 921, 5621, 1082, 202, 430, 261, 89, 83, 1276, 18914, 13, 358, 31638, 18, 1289, 12, 89, 83, 1769, 1082, 202, 97, 202, 202, 892, 1503, 273, 8497, 639, 1733, 18, 588, 11280, 639, 12, 869, 31638, 16, 4697, 202, 25009, 18415, 3630, 18, 588, 4243, 10663, 202, 202, 2463, 501, 1503, 31, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 751, 1503, 13795, 751, 4710, 12, 694, 2199, 13, 202, 95, 202, 202, 921, 582, 83, 31, 202, 202, 694, 358, 31638, 273, 394, 6847, 5621, 202, 202, 3198, 277, 273, 2199, 18, 9838, 5621, 202, 202, 17523, 261, 77, 18, 5332, 2134, 10756, 288, 1082, 202, 89, 83, 273, 14015, 2040, 4236, 13, 277, 18, 4285, 1435, 2934, 588, 12074, 921, 5621, 1082, 202, 430, 261, 89, 83, 1276, 18914, 13, 358, 31638, 18, 1289, 12, 89, 83, 1769, 1082, 202, 97, 202, 202, 892, 1503, 273, 8497, 639, 1733, 18, 588, 11280, 639, 12, 869, 31638, 16, 4697, 202, 25009, 18415, 3630, 18, 588, 4243, 10663, 202, 202, 2463, 501, 1503, 31, 202, 97, 2, -100 ]
cmbFontNames.select( iC );
cmbFontNames.select( iC + 1 );
private void populateLists( ) { // Populate font names list GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment( ); String[] saFontNames = ge.getAvailableFontFamilyNames( ); String currentFont = ChartUIUtil.getFontName( fdCurrent ); cmbFontNames.add( FONT_AUTO ); if ( FONT_AUTO.equals( currentFont ) ) { cmbFontNames.select( 0 ); } for ( int iC = 0; iC < saFontNames.length; iC++ ) { cmbFontNames.add( saFontNames[iC] ); if ( saFontNames[iC].equalsIgnoreCase( currentFont ) ) { cmbFontNames.select( iC ); } } if ( cmbFontNames.getSelectionIndex( ) == -1 ) { cmbFontNames.select( 0 ); } // Select alignment button if ( isAlignmentEnabled && fdCurrent.getAlignment( ) != null && fdCurrent.getAlignment( ).isSetHorizontalAlignment( ) && fdCurrent.getAlignment( ).isSetVerticalAlignment( ) ) { HorizontalAlignment ha = fdCurrent.getAlignment( ) .getHorizontalAlignment( ); VerticalAlignment va = fdCurrent.getAlignment( ) .getVerticalAlignment( ); if ( HorizontalAlignment.LEFT_LITERAL.equals( ha ) ) { if ( VerticalAlignment.TOP_LITERAL.equals( va ) ) { btnATopLeft.setSelection( true ); } else if ( VerticalAlignment.BOTTOM_LITERAL.equals( va ) ) { btnABottomLeft.setSelection( true ); } else { btnACenterLeft.setSelection( true ); } } else if ( HorizontalAlignment.RIGHT_LITERAL.equals( ha ) ) { if ( VerticalAlignment.TOP_LITERAL.equals( va ) ) { btnATopRight.setSelection( true ); } else if ( VerticalAlignment.BOTTOM_LITERAL.equals( va ) ) { btnABottomRight.setSelection( true ); } else { btnACenterRight.setSelection( true ); } } else { if ( VerticalAlignment.TOP_LITERAL.equals( va ) ) { btnATopCenter.setSelection( true ); } else if ( VerticalAlignment.BOTTOM_LITERAL.equals( va ) ) { btnABottomCenter.setSelection( true ); } else { btnACenter.setSelection( true ); } } } }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/0d9d81803532d5206784a4087286d7f47f8b2bc4/FontDefinitionDialog.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/composites/FontDefinitionDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 6490, 7432, 12, 262, 202, 95, 202, 202, 759, 22254, 3512, 1257, 666, 202, 202, 17558, 5494, 8244, 273, 16830, 5494, 18, 588, 2042, 17558, 5494, 12, 11272, 202, 202, 780, 8526, 7864, 5711, 1557, 273, 8244, 18, 588, 5268, 5711, 9203, 1557, 12, 11272, 202, 202, 780, 783, 5711, 273, 14804, 5370, 1304, 18, 588, 5711, 461, 12, 5194, 3935, 11272, 202, 202, 71, 1627, 5711, 1557, 18, 1289, 12, 27104, 67, 18909, 11272, 202, 202, 430, 261, 27104, 67, 18909, 18, 14963, 12, 783, 5711, 262, 262, 202, 202, 95, 1082, 202, 71, 1627, 5711, 1557, 18, 4025, 12, 374, 11272, 202, 202, 97, 202, 202, 1884, 261, 509, 277, 39, 273, 374, 31, 277, 39, 411, 7864, 5711, 1557, 18, 2469, 31, 277, 39, 9904, 262, 202, 202, 95, 1082, 202, 71, 1627, 5711, 1557, 18, 1289, 12, 7864, 5711, 1557, 63, 77, 39, 65, 11272, 1082, 202, 430, 261, 7864, 5711, 1557, 63, 77, 39, 8009, 14963, 5556, 12, 783, 5711, 262, 262, 1082, 202, 95, 9506, 202, 71, 1627, 5711, 1557, 18, 4025, 12, 277, 39, 11272, 1082, 202, 97, 202, 202, 97, 202, 202, 430, 261, 276, 1627, 5711, 1557, 18, 588, 6233, 1016, 12, 262, 422, 300, 21, 262, 202, 202, 95, 1082, 202, 71, 1627, 5711, 1557, 18, 4025, 12, 374, 11272, 202, 202, 97, 202, 202, 759, 6766, 8710, 3568, 202, 202, 430, 261, 353, 11535, 1526, 9506, 202, 10, 10, 5194, 3935, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 6490, 7432, 12, 262, 202, 95, 202, 202, 759, 22254, 3512, 1257, 666, 202, 202, 17558, 5494, 8244, 273, 16830, 5494, 18, 588, 2042, 17558, 5494, 12, 11272, 202, 202, 780, 8526, 7864, 5711, 1557, 273, 8244, 18, 588, 5268, 5711, 9203, 1557, 12, 11272, 202, 202, 780, 783, 5711, 273, 14804, 5370, 1304, 18, 588, 5711, 461, 12, 5194, 3935, 11272, 202, 202, 71, 1627, 5711, 1557, 18, 1289, 12, 27104, 67, 18909, 11272, 202, 202, 430, 261, 27104, 67, 18909, 18, 14963, 12, 783, 5711, 262, 262, 202, 202, 95, 1082, 202, 71, 1627, 5711, 1557, 18, 4025, 12, 374, 11272, 202, 202, 97, 202, 202, 1884, 261, 509, 277, 39, 273, 374, 2 ]
return nilSymbol(runtime);
return runtime.getNil();
public static RubySymbol getSymbol(Ruby runtime, long id) { RubySymbol result = runtime.symbolTable.lookup(id); if (result == null) { return nilSymbol(runtime); } return result; }
46770 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46770/cc20d41e6031b7e9c9ed46676d32e45334ed0d53/RubySymbol.java/buggy/src/org/jruby/RubySymbol.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 19817, 5335, 18712, 12, 54, 10340, 3099, 16, 1525, 612, 13, 288, 3639, 19817, 5335, 563, 273, 3099, 18, 7175, 1388, 18, 8664, 12, 350, 1769, 3639, 309, 261, 2088, 422, 446, 13, 288, 5411, 327, 3099, 18, 588, 12616, 5621, 3639, 289, 3639, 327, 563, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 760, 19817, 5335, 18712, 12, 54, 10340, 3099, 16, 1525, 612, 13, 288, 3639, 19817, 5335, 563, 273, 3099, 18, 7175, 1388, 18, 8664, 12, 350, 1769, 3639, 309, 261, 2088, 422, 446, 13, 288, 5411, 327, 3099, 18, 588, 12616, 5621, 3639, 289, 3639, 327, 563, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
field.setName(rep.getStepAttributeString(id_step, i, "field_name")); field.setType(Value.getType(rep.getStepAttributeString(id_step, i, "field_type"))); field.setFormat(rep.getStepAttributeString(id_step, i, "field_format")); field.setCurrencySymbol(rep.getStepAttributeString(id_step, i, "field_currency")); field.setDecimalSymbol(rep.getStepAttributeString(id_step, i, "field_decimal")); field.setGroupSymbol(rep.getStepAttributeString(id_step, i, "field_group")); field.setNullString(rep.getStepAttributeString(id_step, i, "field_nullif")); field.setIfNullValue(rep.getStepAttributeString(id_step, i, "field_ifnull")); field.setPosition((int) rep.getStepAttributeInteger(id_step, i, "field_position")); field.setLength((int) rep.getStepAttributeInteger(id_step, i, "field_length")); field.setPrecision((int) rep.getStepAttributeInteger(id_step, i, "field_precision")); field.setTrimType(getTrimTypeByCode(rep.getStepAttributeString(id_step, i, "field_trim_type"))); field.setRepeated(rep.getStepAttributeBoolean(id_step, i, "field_repeat"));
for (int i = 0; i < nrfilters; i++) { filter[i] = new TextFileFilter(); filter[i].setFilterPosition((int) rep.getStepAttributeInteger(id_step, i, "filter_position")); filter[i].setFilterString(rep.getStepAttributeString(id_step, i, "filter_string")); filter[i].setFilterLastLine(rep.getStepAttributeBoolean(id_step, i, "filter_is_last_line")); }
public void readRep(Repository rep, long id_step, ArrayList databases, Hashtable counters) throws KettleException { try { getFileFromChef = rep.getStepAttributeBoolean(id_step,"get_from_chef"); separator = rep.getStepAttributeString(id_step, "separator"); enclosure = rep.getStepAttributeString(id_step, "enclosure"); breakInEnclosureAllowed = rep.getStepAttributeBoolean(id_step, "enclosure_breaks"); escapeCharacter = rep.getStepAttributeString(id_step, "escapechar"); header = rep.getStepAttributeBoolean(id_step, "header"); nrHeaderLines = (int)rep.getStepAttributeInteger(id_step, "nr_headerlines"); footer = rep.getStepAttributeBoolean(id_step, "footer"); nrFooterLines = (int)rep.getStepAttributeInteger(id_step, "nr_footerlines"); lineWrapped = rep.getStepAttributeBoolean(id_step, "line_wrapped"); nrWraps = (int)rep.getStepAttributeInteger(id_step, "nr_wraps"); layoutPaged = rep.getStepAttributeBoolean(id_step, "layout_paged"); nrLinesPerPage = (int)rep.getStepAttributeInteger(id_step, "nr_lines_per_page"); nrLinesDocHeader = (int)rep.getStepAttributeInteger(id_step, "nr_lines_doc_header"); noEmptyLines = rep.getStepAttributeBoolean(id_step, "noempty"); includeFilename = rep.getStepAttributeBoolean(id_step, "include"); filenameField = rep.getStepAttributeString(id_step, "include_field"); includeRowNumber = rep.getStepAttributeBoolean(id_step, "rownum"); rowNumberField = rep.getStepAttributeString(id_step, "rownum_field"); fileFormat = rep.getStepAttributeString(id_step, "format"); encoding = rep.getStepAttributeString(id_step, "encoding"); rowLimit = (int) rep.getStepAttributeInteger(id_step, "limit"); int nrfiles = rep.countNrStepAttributes(id_step, "file_name"); int nrfields = rep.countNrStepAttributes(id_step, "field_name"); int nrfilters = rep.countNrStepAttributes(id_step, "filter_string"); allocate(nrfiles, nrfields, nrfilters); for (int i = 0; i < nrfiles; i++) { fileName[i] = rep.getStepAttributeString(id_step, i, "file_name"); fileMask[i] = rep.getStepAttributeString(id_step, i, "file_mask"); fileRequired[i] = rep.getStepAttributeString(id_step, i, "file_required"); if(!YES.equalsIgnoreCase(fileRequired[i])) fileRequired[i] = NO; } fileType = rep.getStepAttributeString(id_step, "file_type"); zipped = rep.getStepAttributeBoolean(id_step, "file_zipped"); for (int i = 0; i < nrfilters; i++) { filter[i] = new TextFileFilter(); filter[i].setFilterPosition( (int) rep.getStepAttributeInteger(id_step, i, "filter_position") ); filter[i].setFilterString( rep.getStepAttributeString(id_step, i, "filter_string") ); filter[i].setFilterLastLine( rep.getStepAttributeBoolean(id_step, i, "filter_is_last_line") ); } for (int i = 0; i < nrfields; i++) { TextFileInputField field = new TextFileInputField(); field.setName(rep.getStepAttributeString(id_step, i, "field_name")); field.setType(Value.getType(rep.getStepAttributeString(id_step, i, "field_type"))); field.setFormat(rep.getStepAttributeString(id_step, i, "field_format")); field.setCurrencySymbol(rep.getStepAttributeString(id_step, i, "field_currency")); field.setDecimalSymbol(rep.getStepAttributeString(id_step, i, "field_decimal")); field.setGroupSymbol(rep.getStepAttributeString(id_step, i, "field_group")); field.setNullString(rep.getStepAttributeString(id_step, i, "field_nullif")); field.setIfNullValue(rep.getStepAttributeString(id_step, i, "field_ifnull")); field.setPosition((int) rep.getStepAttributeInteger(id_step, i, "field_position")); field.setLength((int) rep.getStepAttributeInteger(id_step, i, "field_length")); field.setPrecision((int) rep.getStepAttributeInteger(id_step, i, "field_precision")); field.setTrimType(getTrimTypeByCode(rep.getStepAttributeString(id_step, i, "field_trim_type"))); field.setRepeated(rep.getStepAttributeBoolean(id_step, i, "field_repeat")); inputFields[i] = field; } errorIgnored = rep.getStepAttributeBoolean(id_step, "error_ignored"); errorLineSkipped = rep.getStepAttributeBoolean(id_step, "error_line_skipped"); errorCountField = rep.getStepAttributeString(id_step, "error_count_field"); errorFieldsField = rep.getStepAttributeString(id_step, "error_fields_field"); errorTextField = rep.getStepAttributeString(id_step, "error_text_field"); warningFilesDestinationDirectory = rep.getStepAttributeString(id_step, "bad_line_files_dest_dir"); warningFilesExtension = rep.getStepAttributeString(id_step, "bad_line_files_ext"); errorFilesDestinationDirectory = rep.getStepAttributeString(id_step, "error_line_files_dest_dir"); errorFilesExtension = rep.getStepAttributeString(id_step, "error_line_files_ext"); lineNumberFilesDestinationDirectory = rep.getStepAttributeString(id_step, "line_number_files_dest_dir"); lineNumberFilesExtension = rep.getStepAttributeString(id_step, "line_number_files_ext"); dateFormatLenient = rep.getStepAttributeBoolean(id_step, 0, "date_format_lenient", true); String dateLocale = rep.getStepAttributeString(id_step, 0, "date_format_locale"); if (dateLocale!=null) { dateFormatLocale = new Locale(dateLocale); } else { dateFormatLocale = Locale.getDefault(); } } catch (Exception e) { throw new KettleException("Unexpected error reading step information from the repository", e); } }
9547 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9547/dec476e31491451da3a8cd348e87c60e7e36c715/TextFileInputMeta.java/clean/src/be/ibridge/kettle/trans/step/textfileinput/TextFileInputMeta.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 855, 18933, 12, 3305, 2071, 16, 1525, 612, 67, 4119, 16, 2407, 16358, 16, 18559, 13199, 13, 1216, 1475, 278, 5929, 503, 565, 288, 3639, 775, 3639, 288, 5411, 6034, 1265, 39, 580, 74, 273, 2071, 18, 588, 4160, 1499, 5507, 12, 350, 67, 4119, 10837, 588, 67, 2080, 67, 343, 10241, 8863, 5411, 4182, 273, 2071, 18, 588, 4160, 1499, 780, 12, 350, 67, 4119, 16, 315, 11287, 8863, 5411, 23423, 273, 2071, 18, 588, 4160, 1499, 780, 12, 350, 67, 4119, 16, 315, 1331, 5919, 8863, 5411, 898, 382, 4280, 5919, 5042, 273, 2071, 18, 588, 4160, 1499, 5507, 12, 350, 67, 4119, 16, 315, 1331, 5919, 67, 29292, 8863, 5411, 4114, 7069, 273, 2071, 18, 588, 4160, 1499, 780, 12, 350, 67, 4119, 16, 315, 6939, 3001, 8863, 5411, 1446, 273, 2071, 18, 588, 4160, 1499, 5507, 12, 350, 67, 4119, 16, 315, 3374, 8863, 5411, 9884, 1864, 5763, 273, 261, 474, 13, 14462, 18, 588, 4160, 1499, 4522, 12, 350, 67, 4119, 16, 315, 11611, 67, 3374, 3548, 8863, 5411, 9860, 273, 2071, 18, 588, 4160, 1499, 5507, 12, 350, 67, 4119, 16, 315, 14723, 8863, 5411, 9884, 13787, 5763, 273, 261, 474, 13, 14462, 18, 588, 4160, 1499, 4522, 12, 350, 67, 4119, 16, 315, 11611, 67, 14723, 3548, 8863, 5411, 980, 17665, 273, 2071, 18, 588, 4160, 1499, 5507, 12, 350, 67, 4119, 16, 315, 1369, 67, 18704, 8863, 5411, 9884, 20785, 273, 261, 474, 13, 14462, 18, 2 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 855, 18933, 12, 3305, 2071, 16, 1525, 612, 67, 4119, 16, 2407, 16358, 16, 18559, 13199, 13, 1216, 1475, 278, 5929, 503, 565, 288, 3639, 775, 3639, 288, 5411, 6034, 1265, 39, 580, 74, 273, 2071, 18, 588, 4160, 1499, 5507, 12, 350, 67, 4119, 10837, 588, 67, 2080, 67, 343, 10241, 8863, 5411, 4182, 273, 2071, 18, 588, 4160, 1499, 780, 12, 350, 67, 4119, 16, 315, 11287, 8863, 5411, 23423, 273, 2071, 18, 588, 4160, 1499, 780, 12, 350, 67, 4119, 16, 315, 1331, 5919, 8863, 5411, 898, 382, 4280, 5919, 5042, 273, 2071, 18, 588, 4160, 1499, 5507, 12, 350, 67, 4119, 16, 315, 1331, 5919, 67, 29292, 8863, 5411, 4114, 7069, 273, 2 ]
iCodeTop = addIcode(Icode_DUPSECOND, iCodeTop); iCodeTop = addIcode(Icode_DUPSECOND, iCodeTop); itsStackDepth += 2; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addToken(Token.GETPROP, iCodeTop); itsStackDepth--;
iCodeTop = addIcode(Icode_DUP, iCodeTop); stackChange(1); iCodeTop = addStringOp(Token.GETPROP, property, iCodeTop);
private int generateICode(Node node, int iCodeTop) { int type = node.getType(); Node child = node.getFirstChild(); Node firstChild = child; int savedStackDepth = itsStackDepth; int stackDelta = 0; // expected stack change for subtree code boolean stackShouldBeZero = false; switch (type) { case Token.FUNCTION : { int fnIndex = node.getExistingIntProp(Node.FUNCTION_PROP); FunctionNode fn = scriptOrFn.getFunctionNode(fnIndex); if (fn.getFunctionType() != FunctionNode.FUNCTION_STATEMENT) { stackDelta = 1; // Only function expressions or function expression // statements needs closure code creating new function // object on stack as function statements are initialized // at script/function start iCodeTop = addIndexOp(Icode_CLOSURE, fnIndex, iCodeTop); stackChange(1); } else { stackShouldBeZero = true; } break; } case Token.SCRIPT : stackShouldBeZero = true; iCodeTop = updateLineNumber(node, iCodeTop); while (child != null) { if (child.getType() != Token.FUNCTION) iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); } break; case Token.CASE : // Skip case condition child = child.getNext(); // fallthrough case Token.LABEL : case Token.LOOP : case Token.DEFAULT : case Token.BLOCK : case Token.EMPTY : stackShouldBeZero = true; iCodeTop = updateLineNumber(node, iCodeTop); while (child != null) { iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); } break; case Token.WITH : ++itsWithDepth; stackShouldBeZero = true; iCodeTop = updateLineNumber(node, iCodeTop); while (child != null) { iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); } --itsWithDepth; break; case Token.LOCAL_BLOCK : stackShouldBeZero = true; if ((itsLocalTop & ~0xFF) != 0) { throw Context.reportRuntimeError( "Program too complex (out of locals)"); } node.putIntProp(Node.LOCAL_PROP, itsLocalTop); ++itsLocalTop; if (itsLocalTop > itsData.itsMaxLocals) { itsData.itsMaxLocals = itsLocalTop; } iCodeTop = updateLineNumber(node, iCodeTop); while (child != null) { iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); } --itsLocalTop; break; case Token.LOCAL_LOAD : { stackDelta = 1; int localIndex = getLocalBlockRef(node); iCodeTop = addIndexOp(Token.LOCAL_LOAD, localIndex, iCodeTop); stackChange(1); break; } case Token.COMMA : stackDelta = 1; iCodeTop = generateICode(child, iCodeTop); while (null != (child = child.getNext())) { if (1 != itsStackDepth - savedStackDepth) Kit.codeBug(); iCodeTop = addToken(Token.POP, iCodeTop); itsStackDepth--; iCodeTop = generateICode(child, iCodeTop); } break; case Token.INIT_LIST : stackDelta = 1; iCodeTop = generateICode(child, iCodeTop); while (null != (child = child.getNext())) { if (1 != itsStackDepth - savedStackDepth) Kit.codeBug(); iCodeTop = addIcode(Icode_DUP, iCodeTop); // No stack adjusting: USE_STACK in subtree will do it iCodeTop = generateICode(child, iCodeTop); iCodeTop = addToken(Token.POP, iCodeTop); itsStackDepth--; } break; case Token.USE_STACK: // Indicates that stack was modified externally, // like placed catch object stackDelta = 1; itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case Token.SWITCH : { stackShouldBeZero = true; Node.Jump switchNode = (Node.Jump)node; iCodeTop = updateLineNumber(switchNode, iCodeTop); iCodeTop = generateICode(child, iCodeTop); ObjArray cases = (ObjArray) switchNode.getProp(Node.CASES_PROP); for (int i = 0; i < cases.size(); i++) { Node thisCase = (Node)cases.get(i); Node first = thisCase.getFirstChild(); // the case expression is the firstmost child // the rest will be generated when the case // statements are encountered as siblings of // the switch statement. iCodeTop = generateICode(first, iCodeTop); iCodeTop = addIcode(Icode_DUPSECOND, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addToken(Token.SHEQ, iCodeTop); itsStackDepth--; Node.Target target = new Node.Target(); thisCase.addChildAfter(target, first); // If true, Icode_IFEQ_POP will jump and remove case value // from stack iCodeTop = addGoto(target, Icode_IFEQ_POP, iCodeTop); itsStackDepth--; } iCodeTop = addToken(Token.POP, iCodeTop); itsStackDepth--; Node defaultNode = (Node) switchNode.getProp(Node.DEFAULT_PROP); if (defaultNode != null) { Node.Target defaultTarget = new Node.Target(); defaultNode.getFirstChild(). addChildToFront(defaultTarget); iCodeTop = addGoto(defaultTarget, Token.GOTO, iCodeTop); } Node.Target breakTarget = switchNode.target; iCodeTop = addGoto(breakTarget, Token.GOTO, iCodeTop); break; } case Token.TARGET : stackShouldBeZero = true; markTargetLabel((Node.Target)node, iCodeTop); break; case Token.NEW : case Token.CALL : { stackDelta = 1; if (type == Token.NEW) { iCodeTop = generateICode(child, iCodeTop); } else { iCodeTop = generateCallFunAndThis(child, iCodeTop); if (itsStackDepth - savedStackDepth != 2) Kit.codeBug(); } int argCount = 0; while ((child = child.getNext()) != null) { iCodeTop = generateICode(child, iCodeTop); ++argCount; } int callType = node.getIntProp(Node.SPECIALCALL_PROP, Node.NON_SPECIALCALL); if (callType != Node.NON_SPECIALCALL) { // embed line number and source filename iCodeTop = addIndexOp(Icode_CALLSPECIAL, argCount, iCodeTop); iCodeTop = addByte(callType, iCodeTop); iCodeTop = addByte(type == Token.NEW ? 1 : 0, iCodeTop); iCodeTop = addShort(itsLineNumber, iCodeTop); } else { iCodeTop = addIndexOp(type, argCount, iCodeTop); } // adjust stack if (type == Token.NEW) { // f, args -> results itsStackDepth -= argCount; } else { // f, thisObj, args -> results itsStackDepth -= (argCount + 1); } if (argCount > itsData.itsMaxCalleeArgs) itsData.itsMaxCalleeArgs = argCount; break; } case Token.IFEQ : case Token.IFNE : iCodeTop = generateICode(child, iCodeTop); itsStackDepth--; // after the conditional GOTO, really // fall thru... case Token.GOTO : { stackShouldBeZero = true; Node.Target target = ((Node.Jump)node).target; iCodeTop = addGoto(target, (byte) type, iCodeTop); break; } case Token.JSR : { stackShouldBeZero = true; Node.Target target = ((Node.Jump)node).target; iCodeTop = addGoto(target, Icode_GOSUB, iCodeTop); break; } case Token.FINALLY : { stackShouldBeZero = true; // Account for incomming exception or GOTOSUB address ++itsStackDepth; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int finallyRegister = getLocalBlockRef(node); iCodeTop = addIndexOp(Token.LOCAL_SAVE, finallyRegister, iCodeTop); itsStackDepth--; while (child != null) { iCodeTop = generateICode(child, iCodeTop); if (itsStackDepth != 0) Kit.codeBug(); child = child.getNext(); } iCodeTop = addIndexOp(Icode_RETSUB, finallyRegister, iCodeTop); break; } case Token.AND : case Token.OR : { stackDelta = 1; iCodeTop = generateICode(child, iCodeTop); iCodeTop = addIcode(Icode_DUP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int afterSecondJumpStart = iCodeTop; int jump = (type == Token.AND) ? Token.IFNE : Token.IFEQ; iCodeTop = addForwardGoto(jump, iCodeTop); itsStackDepth--; iCodeTop = addToken(Token.POP, iCodeTop); itsStackDepth--; child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); resolveForwardGoto(afterSecondJumpStart, iCodeTop); break; } case Token.HOOK : { stackDelta = 1; Node ifThen = child.getNext(); Node ifElse = ifThen.getNext(); iCodeTop = generateICode(child, iCodeTop); int elseJumpStart = iCodeTop; iCodeTop = addForwardGoto(Token.IFNE, iCodeTop); itsStackDepth--; iCodeTop = generateICode(ifThen, iCodeTop); int afterElseJumpStart = iCodeTop; iCodeTop = addForwardGoto(Token.GOTO, iCodeTop); resolveForwardGoto(elseJumpStart, iCodeTop); itsStackDepth = savedStackDepth; iCodeTop = generateICode(ifElse, iCodeTop); resolveForwardGoto(afterElseJumpStart, iCodeTop); break; } case Token.GETPROP : stackDelta = 1; iCodeTop = visitGetProp(iCodeTop, node, child, false); break; case Token.GETELEM : stackDelta = 1; iCodeTop = visitGetElem(iCodeTop, node, child, false); break; case Token.DELPROP : case Token.BITAND : case Token.BITOR : case Token.BITXOR : case Token.LSH : case Token.RSH : case Token.URSH : case Token.ADD : case Token.SUB : case Token.MOD : case Token.DIV : case Token.MUL : case Token.EQ: case Token.NE: case Token.SHEQ: case Token.SHNE: case Token.IN : case Token.INSTANCEOF : case Token.LE : case Token.LT : case Token.GE : case Token.GT : stackDelta = 1; iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addToken(type, iCodeTop); itsStackDepth--; break; case Token.POS : case Token.NEG : case Token.NOT : case Token.BITNOT : case Token.TYPEOF : case Token.VOID : stackDelta = 1; iCodeTop = generateICode(child, iCodeTop); if (type == Token.VOID) { iCodeTop = addToken(Token.POP, iCodeTop); iCodeTop = addToken(Token.UNDEFINED, iCodeTop); } else { iCodeTop = addToken(type, iCodeTop); } break; case Token.SETPROP : case Token.SETPROP_OP : { stackDelta = 1; iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); int special = node.getIntProp(Node.SPECIAL_PROP_PROP, 0); if (special != 0) { if (type == Token.SETPROP_OP) { iCodeTop = addIcode(Icode_DUP, iCodeTop); if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; if (special == Node.SPECIAL_PROP_PROTO) { iCodeTop = addIcode(Icode_GETPROTO, iCodeTop); } else if (special == Node.SPECIAL_PROP_PARENT) { iCodeTop = addIcode(Icode_GETSCOPEPARENT, iCodeTop); } else { throw badTree(node); } // Compensate for the following USE_STACK itsStackDepth--; } iCodeTop = generateICode(child, iCodeTop); if (special == Node.SPECIAL_PROP_PROTO) { iCodeTop = addIcode(Icode_SETPROTO, iCodeTop); } else if (special == Node.SPECIAL_PROP_PARENT) { iCodeTop = addIcode(Icode_SETPARENT, iCodeTop); } else { throw badTree(node); } itsStackDepth--; } else { iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); if (type == Token.SETPROP_OP) { iCodeTop = addIcode(Icode_DUPSECOND, iCodeTop); iCodeTop = addIcode(Icode_DUPSECOND, iCodeTop); itsStackDepth += 2; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addToken(Token.GETPROP, iCodeTop); itsStackDepth--; // Compensate for the following USE_STACK itsStackDepth--; } iCodeTop = generateICode(child, iCodeTop); iCodeTop = addToken(Token.SETPROP, iCodeTop); itsStackDepth -= 2; } break; } case Token.SETELEM : case Token.SETELEM_OP : stackDelta = 1; iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); if (type == Token.SETELEM_OP) { iCodeTop = addIcode(Icode_DUPSECOND, iCodeTop); iCodeTop = addIcode(Icode_DUPSECOND, iCodeTop); itsStackDepth += 2; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addToken(Token.GETELEM, iCodeTop); itsStackDepth--; // Compensate for the following USE_STACK itsStackDepth--; } iCodeTop = generateICode(child, iCodeTop); iCodeTop = addToken(Token.SETELEM, iCodeTop); itsStackDepth -= 2; break; case Token.SETNAME : stackDelta = 1; iCodeTop = generateICode(child, iCodeTop); child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addStringOp(Token.SETNAME, firstChild.getString(), iCodeTop); itsStackDepth--; break; case Token.TYPEOFNAME : { stackDelta = 1; String name = node.getString(); int index = -1; // use typeofname if an activation frame exists // since the vars all exist there instead of in jregs if (itsInFunctionFlag && !itsData.itsNeedsActivation) index = scriptOrFn.getParamOrVarIndex(name); if (index == -1) { iCodeTop = addStringOp(Icode_TYPEOFNAME, name, iCodeTop); stackChange(1); } else { iCodeTop = addToken(Token.GETVAR, iCodeTop); iCodeTop = addByte(index, iCodeTop); stackChange(1); iCodeTop = addToken(Token.TYPEOF, iCodeTop); } break; } case Token.BINDNAME : case Token.NAME : case Token.STRING : stackDelta = 1; iCodeTop = addStringOp(type, node.getString(), iCodeTop); stackChange(1); break; case Token.INC : case Token.DEC : { stackDelta = 1; int childType = child.getType(); switch (childType) { case Token.GETVAR : { String name = child.getString(); if (itsData.itsNeedsActivation) { iCodeTop = addIcode(Icode_SCOPE, iCodeTop); iCodeTop = addStringOp(Token.STRING, name, iCodeTop); itsStackDepth += 2; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addIcode(type == Token.INC ? Icode_PROPINC : Icode_PROPDEC, iCodeTop); itsStackDepth--; } else { int i = scriptOrFn.getParamOrVarIndex(name); iCodeTop = addIcode(type == Token.INC ? Icode_VARINC : Icode_VARDEC, iCodeTop); iCodeTop = addByte(i, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; } case Token.GETPROP : case Token.GETELEM : { Node getPropChild = child.getFirstChild(); iCodeTop = generateICode(getPropChild, iCodeTop); getPropChild = getPropChild.getNext(); iCodeTop = generateICode(getPropChild, iCodeTop); int icode; if (childType == Token.GETPROP) { icode = (type == Token.INC) ? Icode_PROPINC : Icode_PROPDEC; } else { icode = (type == Token.INC) ? Icode_ELEMINC : Icode_ELEMDEC; } iCodeTop = addIcode(icode, iCodeTop); itsStackDepth--; break; } default : { iCodeTop = addStringOp(type == Token.INC ? Icode_NAMEINC : Icode_NAMEDEC, child.getString(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; } } break; } case Token.NUMBER : { stackDelta = 1; double num = node.getDouble(); int inum = (int)num; if (inum == num) { if (inum == 0) { iCodeTop = addToken(Token.ZERO, iCodeTop); // Check for negative zero if (1.0 / num < 0.0) { iCodeTop = addToken(Token.NEG, iCodeTop); } } else if (inum == 1) { iCodeTop = addToken(Token.ONE, iCodeTop); } else if ((short)inum == inum) { iCodeTop = addIcode(Icode_SHORTNUMBER, iCodeTop); iCodeTop = addShort(inum, iCodeTop); } else { iCodeTop = addIcode(Icode_INTNUMBER, iCodeTop); iCodeTop = addInt(inum, iCodeTop); } } else { int index = getDoubleIndex(num); iCodeTop = addIndexOp(Token.NUMBER, index, iCodeTop); } stackChange(1); break; } case Token.POPV : stackShouldBeZero = true; // fallthrough case Token.POP : iCodeTop = updateLineNumber(node, iCodeTop); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addToken(type, iCodeTop); itsStackDepth--; break; case Token.ENTERWITH : stackShouldBeZero = true; iCodeTop = generateICode(child, iCodeTop); iCodeTop = addToken(Token.ENTERWITH, iCodeTop); itsStackDepth--; break; case Token.CATCH_SCOPE : stackDelta = 1; iCodeTop = generateICode(child, iCodeTop); iCodeTop = addStringOp(Token.CATCH_SCOPE, node.getString(), iCodeTop); break; case Token.LEAVEWITH : stackShouldBeZero = true; iCodeTop = addToken(Token.LEAVEWITH, iCodeTop); break; case Token.TRY : { stackShouldBeZero = true; Node.Jump tryNode = (Node.Jump)node; int exceptionObjectLocal = getLocalBlockRef(tryNode); Node catchTarget = tryNode.target; Node finallyTarget = tryNode.getFinally(); int tryStart = iCodeTop; int tryEnd = -1; int catchStart = -1; int finallyStart = -1; while (child != null) { boolean generated = false; if (child == catchTarget) { if (tryEnd >= 0) Kit.codeBug(); tryEnd = iCodeTop; catchStart = iCodeTop; markTargetLabel((Node.Target)child, iCodeTop); generated = true; } else if (child == finallyTarget) { if (tryEnd < 0) { tryEnd = iCodeTop; } finallyStart = iCodeTop; markTargetLabel((Node.Target)child, iCodeTop); generated = true; } if (!generated) { iCodeTop = generateICode(child, iCodeTop); } child = child.getNext(); } // [tryStart, tryEnd) contains GOSUB to call finally when it // presents at the end of try code and before return, break // continue that transfer control outside try. // After finally is executed the control will be // transfered back into [tryStart, tryEnd) and exception // handling assumes that the only code executed after // finally returns will be a jump outside try which could not // trigger exceptions. // It does not hold if instruction observer throws during // goto. Currently it may lead to double execution of finally. addExceptionHandler(tryStart, tryEnd, catchStart, finallyStart, itsWithDepth, exceptionObjectLocal); break; } case Token.THROW : stackShouldBeZero = true; iCodeTop = updateLineNumber(node, iCodeTop); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addToken(Token.THROW, iCodeTop); iCodeTop = addShort(itsLineNumber, iCodeTop); itsStackDepth--; break; case Token.RETURN : stackShouldBeZero = true; iCodeTop = updateLineNumber(node, iCodeTop); if (child != null) { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addToken(Token.RETURN, iCodeTop); itsStackDepth--; } else { iCodeTop = addIcode(Icode_RETUNDEF, iCodeTop); } break; case Token.RETURN_POPV : stackShouldBeZero = true; iCodeTop = updateLineNumber(node, iCodeTop); iCodeTop = addToken(Token.RETURN_POPV, iCodeTop); break; case Token.GETVAR : { stackDelta = 1; String name = node.getString(); if (itsData.itsNeedsActivation) { // SETVAR handled this by turning into a SETPROP, but // we can't do that to a GETVAR without manufacturing // bogus children. Instead we use a special op to // push the current scope. iCodeTop = addIcode(Icode_SCOPE, iCodeTop); iCodeTop = addStringOp(Token.STRING, name, iCodeTop); itsStackDepth += 2; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addToken(Token.GETPROP, iCodeTop); itsStackDepth--; } else { int index = scriptOrFn.getParamOrVarIndex(name); iCodeTop = addToken(Token.GETVAR, iCodeTop); iCodeTop = addByte(index, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; } case Token.SETVAR : { stackDelta = 1; if (itsData.itsNeedsActivation) { child.setType(Token.BINDNAME); node.setType(Token.SETNAME); iCodeTop = generateICode(node, iCodeTop); } else { String name = child.getString(); child = child.getNext(); iCodeTop = generateICode(child, iCodeTop); int index = scriptOrFn.getParamOrVarIndex(name); iCodeTop = addToken(Token.SETVAR, iCodeTop); iCodeTop = addByte(index, iCodeTop); } break; } case Token.NULL: case Token.THIS: case Token.THISFN: case Token.FALSE: case Token.TRUE: case Token.UNDEFINED: stackDelta = 1; iCodeTop = addToken(type, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case Token.ENUM_INIT : stackShouldBeZero = true; iCodeTop = generateICode(child, iCodeTop); iCodeTop = addIndexOp(Token.ENUM_INIT, getLocalBlockRef(node), iCodeTop); stackChange(-1); break; case Token.ENUM_NEXT : case Token.ENUM_ID : stackDelta = 1; iCodeTop = addIndexOp(type, getLocalBlockRef(node), iCodeTop); stackChange(1); break; case Token.REGEXP : { stackDelta = 1; int index = node.getExistingIntProp(Node.REGEXP_PROP); iCodeTop = addIndexOp(Token.REGEXP, index, iCodeTop); stackChange(1); break; } case Token.ARRAYLIT: case Token.OBJECTLIT: stackDelta = 1; iCodeTop = visitLiteral(iCodeTop, node, child); break; default : throw badTree(node); } if (stackDelta != itsStackDepth - savedStackDepth) { //System.out.println("Bad stack delta: type="+Token.name(type)+" expected="+stackDelta+" real="+ (itsStackDepth - savedStackDepth)); Kit.codeBug(); } if (stackShouldBeZero && !(stackDelta == 0 && itsStackDepth == 0)) { Kit.codeBug(); } return iCodeTop; }
47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/bf289c63543f0cc34416017db6f071919cda9b64/Interpreter.java/buggy/js/rhino/src/org/mozilla/javascript/Interpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 2103, 45, 1085, 12, 907, 756, 16, 509, 277, 1085, 3401, 13, 565, 288, 3639, 509, 618, 273, 756, 18, 588, 559, 5621, 3639, 2029, 1151, 273, 756, 18, 588, 3759, 1763, 5621, 3639, 2029, 15070, 273, 1151, 31, 3639, 509, 5198, 2624, 6148, 273, 2097, 2624, 6148, 31, 3639, 509, 2110, 9242, 273, 374, 31, 368, 2665, 2110, 2549, 364, 12773, 981, 3639, 1250, 2110, 14309, 1919, 7170, 273, 629, 31, 3639, 1620, 261, 723, 13, 288, 5411, 648, 3155, 18, 7788, 294, 288, 7734, 509, 2295, 1016, 273, 756, 18, 588, 9895, 1702, 4658, 12, 907, 18, 7788, 67, 15811, 1769, 7734, 4284, 907, 2295, 273, 2728, 1162, 5372, 18, 588, 2083, 907, 12, 4293, 1016, 1769, 7734, 309, 261, 4293, 18, 588, 2083, 559, 1435, 480, 4284, 907, 18, 7788, 67, 28411, 13, 288, 10792, 2110, 9242, 273, 404, 31, 10792, 368, 5098, 445, 8041, 578, 445, 2652, 10792, 368, 6317, 4260, 7213, 981, 4979, 394, 445, 10792, 368, 733, 603, 2110, 487, 445, 6317, 854, 6454, 10792, 368, 622, 2728, 19, 915, 787, 10792, 277, 1085, 3401, 273, 26794, 3817, 12, 45, 710, 67, 22693, 55, 4830, 16, 2295, 1016, 16, 277, 1085, 3401, 1769, 10792, 2110, 3043, 12, 21, 1769, 7734, 289, 469, 288, 10792, 2110, 14309, 1919, 7170, 273, 638, 31, 7734, 289, 7734, 898, 31, 5411, 289, 5411, 648, 3155, 18, 10885, 294, 7734, 2110, 14309, 1919, 7170, 273, 638, 31, 7734, 277, 1085, 3401, 273, 1089, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 2103, 45, 1085, 12, 907, 756, 16, 509, 277, 1085, 3401, 13, 565, 288, 3639, 509, 618, 273, 756, 18, 588, 559, 5621, 3639, 2029, 1151, 273, 756, 18, 588, 3759, 1763, 5621, 3639, 2029, 15070, 273, 1151, 31, 3639, 509, 5198, 2624, 6148, 273, 2097, 2624, 6148, 31, 3639, 509, 2110, 9242, 273, 374, 31, 368, 2665, 2110, 2549, 364, 12773, 981, 3639, 1250, 2110, 14309, 1919, 7170, 273, 629, 31, 3639, 1620, 261, 723, 13, 288, 5411, 648, 3155, 18, 7788, 294, 288, 7734, 509, 2295, 1016, 273, 756, 18, 588, 9895, 1702, 4658, 12, 907, 18, 7788, 67, 15811, 1769, 7734, 4284, 907, 2295, 273, 2728, 1162, 5372, 18, 588, 2083, 907, 12, 2 ]
} else { loc = unselectedLocation;
public void setSelected(boolean b) { if (b != isSelected) { Point loc = getLocation(); isSelected = b; if (isSelected) { unselectedLocation = (Point) loc.clone(); switch (orientation) { case SwingConstants.BOTTOM: loc.y -= 10; break; case SwingConstants.LEFT: loc.x += 10; break; case SwingConstants.TOP: loc.y += 10; break; case SwingConstants.RIGHT: loc.x -= 10; break; default: throw new IllegalStateException( "orientation must be one of SwingConstants.TOP, LEFT, BOTTOM, RIGHT"); } // loc.y += (int) Math.round(10 * -Math.cos(angle)); // loc.x += (int) Math.round(10 * Math.sin(angle)); } else { loc = unselectedLocation; } setLocation(loc); getParent().repaint(); } }
45800 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45800/23c32d20ba1d34b1d6932fbe1ebff065876b6050/Sprite.java/buggy/java/src/ggz/cards/Sprite.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 23006, 12, 6494, 324, 13, 288, 3639, 309, 261, 70, 480, 20956, 13, 288, 5411, 4686, 1515, 273, 13312, 5621, 5411, 20956, 273, 324, 31, 5411, 309, 261, 291, 7416, 13, 288, 7734, 640, 8109, 2735, 273, 261, 2148, 13, 1515, 18, 14056, 5621, 7734, 1620, 261, 19235, 13, 288, 7734, 648, 26145, 2918, 18, 28891, 30, 10792, 1515, 18, 93, 3947, 1728, 31, 10792, 898, 31, 7734, 648, 26145, 2918, 18, 10066, 30, 10792, 1515, 18, 92, 1011, 1728, 31, 10792, 898, 31, 7734, 648, 26145, 2918, 18, 10462, 30, 10792, 1515, 18, 93, 1011, 1728, 31, 10792, 898, 31, 7734, 648, 26145, 2918, 18, 11847, 30, 10792, 1515, 18, 92, 3947, 1728, 31, 10792, 898, 31, 7734, 805, 30, 10792, 604, 394, 5477, 12, 18701, 315, 19235, 1297, 506, 1245, 434, 26145, 2918, 18, 10462, 16, 9686, 16, 30666, 16, 13135, 8863, 7734, 289, 7734, 368, 1515, 18, 93, 1011, 261, 474, 13, 2361, 18, 2260, 12, 2163, 380, 300, 10477, 18, 14445, 12, 4341, 10019, 7734, 368, 1515, 18, 92, 1011, 261, 474, 13, 2361, 18, 2260, 12, 2163, 380, 2361, 18, 21861, 12, 4341, 10019, 5411, 289, 469, 288, 7734, 1515, 273, 640, 8109, 2735, 31, 5411, 289, 5411, 21751, 12, 1829, 1769, 5411, 5089, 7675, 14462, 1598, 5621, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 23006, 12, 6494, 324, 13, 288, 3639, 309, 261, 70, 480, 20956, 13, 288, 5411, 4686, 1515, 273, 13312, 5621, 5411, 20956, 273, 324, 31, 5411, 309, 261, 291, 7416, 13, 288, 7734, 640, 8109, 2735, 273, 261, 2148, 13, 1515, 18, 14056, 5621, 7734, 1620, 261, 19235, 13, 288, 7734, 648, 26145, 2918, 18, 28891, 30, 10792, 1515, 18, 93, 3947, 1728, 31, 10792, 898, 31, 7734, 648, 26145, 2918, 18, 10066, 30, 10792, 1515, 18, 92, 1011, 1728, 31, 10792, 898, 31, 7734, 648, 26145, 2918, 18, 10462, 30, 10792, 1515, 18, 93, 1011, 1728, 31, 10792, 898, 31, 7734, 648, 26145, 2918, 18, 11847, 30, 10792, 1515, 18, 92, 3947, 1728, 31, 10792, 2 ]
System.err.println("traversing completed!");
public static void main (String args[]) throws Exception { DefaultHandler handler = new DefaultHandler(); XSDHandler me = new XSDHandler(new XSGrammarResolver(), new XMLErrorReporter(), new EntityResolverWrapper(new org.apache.xerces.impl.v2.XSDHandler.DummyResolver()), new SymbolTable()); me.parseSchema(args[0], args[1]); Enumeration types = me.fUnparsedTypeRegistry.keys(); String name = null; while(types.hasMoreElements()) { name = (String)types.nextElement(); System.err.println(name); } System.err.println("traversing completed!"); } // main
46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/0f2aae2c22c5dc0957f0413b6320b4c5497482e8/XSDHandler.java/buggy/src/org/apache/xerces/impl/v2/XSDHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2774, 261, 780, 833, 63, 5717, 1216, 1185, 288, 3639, 2989, 1503, 1838, 273, 394, 2989, 1503, 5621, 3639, 26462, 1503, 1791, 273, 394, 26462, 1503, 12, 2704, 1139, 55, 18576, 4301, 9334, 394, 3167, 668, 13289, 9334, 394, 3887, 4301, 3611, 12, 2704, 2358, 18, 19211, 18, 92, 264, 764, 18, 11299, 18, 90, 22, 18, 31244, 1503, 18, 20094, 4301, 1435, 3631, 394, 8565, 1388, 10663, 3639, 1791, 18, 2670, 3078, 12, 1968, 63, 20, 6487, 833, 63, 21, 19226, 3639, 13864, 1953, 273, 1791, 18, 74, 984, 10817, 559, 4243, 18, 2452, 5621, 3639, 514, 508, 273, 446, 31, 3639, 1323, 12, 2352, 18, 5332, 7417, 3471, 10756, 288, 5411, 508, 273, 261, 780, 13, 2352, 18, 4285, 1046, 5621, 5411, 2332, 18, 370, 18, 8222, 12, 529, 1769, 3639, 289, 5411, 289, 368, 2774, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 760, 918, 2774, 261, 780, 833, 63, 5717, 1216, 1185, 288, 3639, 2989, 1503, 1838, 273, 394, 2989, 1503, 5621, 3639, 26462, 1503, 1791, 273, 394, 26462, 1503, 12, 2704, 1139, 55, 18576, 4301, 9334, 394, 3167, 668, 13289, 9334, 394, 3887, 4301, 3611, 12, 2704, 2358, 18, 19211, 18, 92, 264, 764, 18, 11299, 18, 90, 22, 18, 31244, 1503, 18, 20094, 4301, 1435, 3631, 394, 8565, 1388, 10663, 3639, 1791, 18, 2670, 3078, 12, 1968, 63, 20, 6487, 833, 63, 21, 19226, 3639, 13864, 1953, 273, 1791, 18, 74, 984, 10817, 559, 4243, 18, 2452, 5621, 3639, 514, 508, 273, 446, 31, 3639, 1323, 12, 2352, 18, 5332, 7417, 3471, 10756, 288, 5411, 508, 273, 2 ]
tmp = "jks";
tmp = "gkr";
public static final String getDefaultType() { // Security reads every property in java.security so it // will return this property if it exists. String tmp = Security.getProperty("keystore.type"); if (tmp == null) tmp = "jks"; return tmp; }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/8e6a933c7311b8af73a149d26777089b7dc8bd68/KeyStore.java/clean/core/src/classpath/java/java/security/KeyStore.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 727, 514, 4829, 559, 1435, 225, 288, 565, 368, 6036, 6838, 3614, 1272, 316, 2252, 18, 7462, 1427, 518, 377, 368, 903, 327, 333, 1272, 309, 518, 1704, 18, 377, 514, 1853, 273, 6036, 18, 588, 1396, 2932, 856, 2233, 18, 723, 8863, 565, 309, 261, 5645, 422, 446, 13, 1377, 1853, 273, 315, 75, 79, 86, 14432, 565, 327, 1853, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 760, 727, 514, 4829, 559, 1435, 225, 288, 565, 368, 6036, 6838, 3614, 1272, 316, 2252, 18, 7462, 1427, 518, 377, 368, 903, 327, 333, 1272, 309, 518, 1704, 18, 377, 514, 1853, 273, 6036, 18, 588, 1396, 2932, 856, 2233, 18, 723, 8863, 565, 309, 261, 5645, 422, 446, 13, 1377, 1853, 273, 315, 75, 79, 86, 14432, 565, 327, 1853, 31, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
Plugin plugin = new Plugin(doc, item.isDependent());
Plugin plugin = new Plugin(item.getDirectory(), doc, item.isDependent());
public EclipseClasspath execute() throws EclipseClasspathException, DocumentException, IOException { // Build plugin directory map File pluginDir = new File(eclipseDir, "plugins"); File[] dirList = pluginDir.listFiles(new FileFilter() { public boolean accept(File pathname) { return pathname.isDirectory(); } }); if (dirList == null) throw new EclipseClasspathException("Could not list plugins in directory " + pluginDir); for (int i = 0; i < dirList.length; ++i) { String pluginId = getPluginId(dirList[i].getName()); if (pluginId != null) { //System.out.println(pluginId + " ==> " + dirList[i]); pluginDirectoryMap.put(pluginId, dirList[i]); } } Map<String, Plugin> requiredPluginMap = new HashMap<String, Plugin>(); LinkedList<WorkListItem> workList = new LinkedList<WorkListItem>(); workList.add(new WorkListItem(rootPluginDir, false)); while (!workList.isEmpty()) { WorkListItem item = workList.removeFirst(); // Read the plugin file SAXReader reader = new SAXReader(); Document doc = reader.read(new EclipseXMLReader(new FileReader(item.getDescriptorFileName()))); // Add to the map Plugin plugin = new Plugin(doc, item.isDependent()); requiredPluginMap.put(plugin.getId(), plugin); // Add unresolved required plugins to the worklist for (Iterator<String> i = plugin.requiredPluginIdIterator(); i.hasNext(); ) { String requiredPluginId = i.next(); if (requiredPluginMap.get(requiredPluginId) == null) { // Find the plugin's directory File requiredPluginDir = pluginDirectoryMap.get(requiredPluginId); if (requiredPluginDir == null) throw new EclipseClasspathException("Unable to find plugin " + requiredPluginId); workList.add(new WorkListItem(requiredPluginDir.getPath(), true)); } } } System.out.println("Found " + requiredPluginMap.size() + " required plugins"); return this; }
7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/798922d9cc74c0c8d239adf7199cf9dcec6d0fd8/EclipseClasspath.java/clean/findbugs/src/tools/edu/umd/cs/findbugs/EclipseClasspath.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 20840, 10472, 17461, 1836, 1435, 1216, 20840, 10472, 17461, 503, 16, 4319, 503, 16, 1860, 288, 202, 202, 759, 3998, 1909, 1867, 852, 202, 202, 812, 1909, 1621, 273, 394, 1387, 12, 20416, 1621, 16, 315, 8057, 8863, 202, 202, 812, 8526, 1577, 682, 273, 1909, 1621, 18, 1098, 2697, 12, 2704, 1387, 1586, 1435, 288, 1082, 202, 482, 1250, 2791, 12, 812, 9806, 13, 288, 9506, 202, 2463, 9806, 18, 291, 2853, 5621, 1082, 202, 97, 202, 202, 22938, 202, 202, 430, 261, 1214, 682, 422, 446, 13, 1082, 202, 12849, 394, 20840, 10472, 17461, 503, 2932, 4445, 486, 666, 4799, 316, 1867, 315, 397, 1909, 1621, 1769, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 1577, 682, 18, 2469, 31, 965, 77, 13, 288, 1082, 202, 780, 1909, 548, 273, 16319, 548, 12, 1214, 682, 63, 77, 8009, 17994, 10663, 1082, 202, 430, 261, 4094, 548, 480, 446, 13, 288, 9506, 202, 759, 3163, 18, 659, 18, 8222, 12, 4094, 548, 397, 315, 422, 34, 315, 397, 1577, 682, 63, 77, 19226, 9506, 202, 4094, 2853, 863, 18, 458, 12, 4094, 548, 16, 1577, 682, 63, 77, 19226, 1082, 202, 97, 202, 202, 97, 202, 202, 863, 32, 780, 16, 6258, 34, 1931, 3773, 863, 273, 394, 4317, 32, 780, 16, 6258, 34, 5621, 202, 202, 13174, 682, 32, 2421, 13575, 34, 1440, 682, 273, 394, 10688, 32, 2421, 13575, 34, 5621, 202, 202, 1252, 682, 18, 1289, 12, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 20840, 10472, 17461, 1836, 1435, 1216, 20840, 10472, 17461, 503, 16, 4319, 503, 16, 1860, 288, 202, 202, 759, 3998, 1909, 1867, 852, 202, 202, 812, 1909, 1621, 273, 394, 1387, 12, 20416, 1621, 16, 315, 8057, 8863, 202, 202, 812, 8526, 1577, 682, 273, 1909, 1621, 18, 1098, 2697, 12, 2704, 1387, 1586, 1435, 288, 1082, 202, 482, 1250, 2791, 12, 812, 9806, 13, 288, 9506, 202, 2463, 9806, 18, 291, 2853, 5621, 1082, 202, 97, 202, 202, 22938, 202, 202, 430, 261, 1214, 682, 422, 446, 13, 1082, 202, 12849, 394, 20840, 10472, 17461, 503, 2932, 4445, 486, 666, 4799, 316, 1867, 315, 397, 1909, 1621, 1769, 202, 202, 1884, 261, 474, 277, 273, 2 ]
((dataSize>0&&dataSize<limitCount) || limitCount==UNLIMITED_COUNT)
((dataSize>0) && ((dataSize<limitCount) || limitCount==UNLIMITED_COUNT))
public final Result searchAndCountWithoutLimit() { final Collection data = search(); final int dataSize = data.size(); return new Result(data, ((dataSize>0&&dataSize<limitCount) || limitCount==UNLIMITED_COUNT) ? (limitStart+dataSize) : countWithoutLimit()); }
50290 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50290/169289f0f23c15f7eaff9432d2c79ee7c7d05d52/Query.java/clean/lib/src/com/exedio/cope/Query.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 3438, 1623, 1876, 1380, 8073, 3039, 1435, 202, 95, 202, 202, 6385, 2200, 501, 273, 1623, 5621, 202, 202, 6385, 509, 30216, 273, 501, 18, 1467, 5621, 202, 202, 2463, 394, 3438, 12, 892, 16, 9506, 202, 12443, 892, 1225, 34, 20, 10, 10, 892, 1225, 32, 3595, 1380, 13, 747, 1800, 1380, 631, 2124, 8283, 2056, 67, 7240, 13, 9506, 202, 35, 261, 3595, 1685, 15, 892, 1225, 13, 9506, 202, 30, 1056, 8073, 3039, 10663, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3438, 1623, 1876, 1380, 8073, 3039, 1435, 202, 95, 202, 202, 6385, 2200, 501, 273, 1623, 5621, 202, 202, 6385, 509, 30216, 273, 501, 18, 1467, 5621, 202, 202, 2463, 394, 3438, 12, 892, 16, 9506, 202, 12443, 892, 1225, 34, 20, 10, 10, 892, 1225, 32, 3595, 1380, 13, 747, 1800, 1380, 631, 2124, 8283, 2056, 67, 7240, 13, 9506, 202, 35, 261, 3595, 1685, 15, 892, 1225, 13, 9506, 202, 30, 1056, 8073, 3039, 10663, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
Throwable running= null;
Throwable exception= null;
public void runBare() throws Throwable { Throwable running= null; setUp(); try { runTest(); } catch (Throwable e) { running= e; } finally { try { tearDown(); } catch (Exception e) { throw (running != null) ? running : e; } } }
48424 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48424/3214326e44841a7bdd9139c343f4f0834d4b3c70/TestCase.java/buggy/junit/framework/TestCase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1086, 31242, 1435, 1216, 4206, 288, 202, 202, 15155, 3549, 33, 446, 31, 202, 202, 542, 1211, 5621, 202, 202, 698, 288, 1082, 202, 2681, 4709, 5621, 202, 202, 97, 1044, 261, 15155, 425, 13, 288, 1082, 202, 8704, 33, 425, 31, 202, 202, 97, 202, 202, 23417, 288, 1082, 202, 698, 288, 9506, 202, 736, 297, 4164, 5621, 1082, 202, 97, 1044, 261, 503, 425, 13, 288, 9506, 202, 12849, 261, 8704, 480, 446, 13, 692, 3549, 294, 425, 31, 1082, 202, 97, 202, 202, 97, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1086, 31242, 1435, 1216, 4206, 288, 202, 202, 15155, 3549, 33, 446, 31, 202, 202, 542, 1211, 5621, 202, 202, 698, 288, 1082, 202, 2681, 4709, 5621, 202, 202, 97, 1044, 261, 15155, 425, 13, 288, 1082, 202, 8704, 33, 425, 31, 202, 202, 97, 202, 202, 23417, 288, 1082, 202, 698, 288, 9506, 202, 736, 297, 4164, 5621, 1082, 202, 97, 1044, 261, 503, 425, 13, 288, 9506, 202, 12849, 261, 8704, 480, 446, 13, 692, 3549, 294, 425, 31, 1082, 202, 97, 202, 202, 97, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
CategoryJavaObject o = new CategoryJavaObject(); CategoryJavaObjectHandler.initialize_category_java_object(o);
CategoryJavaObject o = (CategoryJavaObject) p0;
static void initialize_java_object_attributes(java.lang.Object p0, java.lang.Object p1) throws java.lang.Exception { CategoryJavaObject o = new CategoryJavaObject(); CategoryJavaObjectHandler.initialize_category_java_object(o); if (o != null) { java.lang.System.out.println("INFO: Initialize java object attributes."); o.category = read_attribute(p1, CategoryHandler.CATEGORY); org.w3c.dom.NamedNodeMap m = (org.w3c.dom.NamedNodeMap) p1; if (m != null) { int i = 0; int size = m.getLength(); org.w3c.dom.Node n = null; while (i < size) { n = m.item(i); if (n != null) { MapHandler.add_map_element(o.attributes, n.getNodeValue(), "attribute"); } else { java.lang.System.out.println("WARNING: Could not initialize java object attributes. An attribute node is null."); } } } else { java.lang.System.out.println("WARNING: Could not initialize java object attributes. The node map is null."); } } else { java.lang.System.out.println("ERROR: Could not initialize java object attributes. The java object is null."); } }
11597 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11597/54f8df075b66077f4b50af8cd7c721a5d9ae9d08/CategoryHandler.java/buggy/trunk/src/cyboi/cyboi/CategoryHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 918, 4046, 67, 6290, 67, 1612, 67, 4350, 12, 6290, 18, 4936, 18, 921, 293, 20, 16, 2252, 18, 4936, 18, 921, 293, 21, 13, 1216, 2252, 18, 4936, 18, 503, 288, 3639, 9856, 5852, 921, 320, 273, 394, 9856, 5852, 921, 5621, 3639, 9856, 5852, 921, 1503, 18, 11160, 67, 4743, 67, 6290, 67, 1612, 12, 83, 1769, 7734, 309, 261, 83, 480, 446, 13, 288, 10792, 2252, 18, 4936, 18, 3163, 18, 659, 18, 8222, 2932, 5923, 30, 9190, 2252, 733, 1677, 1199, 1769, 13491, 320, 18, 4743, 273, 855, 67, 4589, 12, 84, 21, 16, 9856, 1503, 18, 24847, 1769, 5411, 2358, 18, 91, 23, 71, 18, 9859, 18, 7604, 907, 863, 312, 273, 261, 3341, 18, 91, 23, 71, 18, 9859, 18, 7604, 907, 863, 13, 293, 21, 31, 7734, 309, 261, 81, 480, 446, 13, 288, 13491, 509, 277, 273, 374, 31, 7734, 509, 963, 273, 312, 18, 588, 1782, 5621, 7734, 2358, 18, 91, 23, 71, 18, 9859, 18, 907, 290, 273, 446, 31, 27573, 1323, 261, 77, 411, 963, 13, 288, 4766, 5411, 290, 273, 312, 18, 1726, 12, 77, 1769, 4766, 3639, 309, 261, 82, 480, 446, 13, 288, 4766, 7734, 1635, 1503, 18, 1289, 67, 1458, 67, 2956, 12, 83, 18, 4350, 16, 290, 18, 588, 907, 620, 9334, 315, 4589, 8863, 4766, 565, 289, 469, 288, 4766, 7734, 2252, 18, 4936, 18, 3163, 18, 659, 18, 8222, 2932, 9511, 30, 14312, 486, 4046, 2252, 733, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 760, 918, 4046, 67, 6290, 67, 1612, 67, 4350, 12, 6290, 18, 4936, 18, 921, 293, 20, 16, 2252, 18, 4936, 18, 921, 293, 21, 13, 1216, 2252, 18, 4936, 18, 503, 288, 3639, 9856, 5852, 921, 320, 273, 394, 9856, 5852, 921, 5621, 3639, 9856, 5852, 921, 1503, 18, 11160, 67, 4743, 67, 6290, 67, 1612, 12, 83, 1769, 7734, 309, 261, 83, 480, 446, 13, 288, 10792, 2252, 18, 4936, 18, 3163, 18, 659, 18, 8222, 2932, 5923, 30, 9190, 2252, 733, 1677, 1199, 1769, 13491, 320, 18, 4743, 273, 855, 67, 4589, 12, 84, 21, 16, 9856, 1503, 18, 24847, 1769, 5411, 2358, 18, 91, 23, 71, 18, 9859, 18, 7604, 907, 863, 312, 273, 2 ]
ToolItem perspectiveToolItem = (ToolItem) popupMenu .getData(); if (perspectiveToolItem != null && !perspectiveToolItem.isDisposed()) { PerspectiveBarContributionItem item = (PerspectiveBarContributionItem) perspectiveToolItem .getData(); item.getPage().closeAllPerspectives(true, true);
MenuItem item = (MenuItem) e.widget; String pref = null; if (item.equals(menuItemLeft)) { updateLocationItems(subMenu, LEFT); pref = IWorkbenchPreferenceConstants.LEFT; } else if (item.equals(menuItemTopLeft)) { updateLocationItems(subMenu, TOP_LEFT); pref = IWorkbenchPreferenceConstants.TOP_LEFT; } else { updateLocationItems(subMenu, TOP_RIGHT); pref = IWorkbenchPreferenceConstants.TOP_RIGHT;
public void widgetSelected(SelectionEvent e) { ToolItem perspectiveToolItem = (ToolItem) popupMenu .getData(); if (perspectiveToolItem != null && !perspectiveToolItem.isDisposed()) { PerspectiveBarContributionItem item = (PerspectiveBarContributionItem) perspectiveToolItem .getData(); item.getPage().closeAllPerspectives(true, true); } }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/7a0039da241eaf40f8a304728c4bfef9fe602d1a/PerspectiveSwitcher.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/PerspectiveSwitcher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 3604, 7416, 12, 6233, 1133, 425, 13, 288, 7734, 13288, 1180, 26651, 6364, 1180, 273, 261, 6364, 1180, 13, 10431, 4599, 13491, 263, 588, 751, 5621, 7734, 309, 261, 10422, 16772, 6364, 1180, 480, 446, 13491, 597, 401, 10422, 16772, 6364, 1180, 18, 291, 1669, 7423, 10756, 288, 10792, 453, 414, 16772, 5190, 442, 4027, 1180, 761, 273, 261, 14781, 16772, 5190, 442, 4027, 1180, 13, 26651, 6364, 1180, 18701, 263, 588, 751, 5621, 10792, 761, 18, 588, 1964, 7675, 4412, 1595, 14781, 1181, 3606, 12, 3767, 16, 638, 1769, 7734, 289, 5411, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 3604, 7416, 12, 6233, 1133, 425, 13, 288, 7734, 13288, 1180, 26651, 6364, 1180, 273, 261, 6364, 1180, 13, 10431, 4599, 13491, 263, 588, 751, 5621, 7734, 309, 261, 10422, 16772, 6364, 1180, 480, 446, 13491, 597, 401, 10422, 16772, 6364, 1180, 18, 291, 1669, 7423, 10756, 288, 10792, 453, 414, 16772, 5190, 442, 4027, 1180, 761, 273, 261, 14781, 16772, 5190, 442, 4027, 1180, 13, 26651, 6364, 1180, 18701, 263, 588, 751, 5621, 10792, 761, 18, 588, 1964, 7675, 4412, 1595, 14781, 1181, 3606, 12, 3767, 16, 638, 1769, 7734, 289, 5411, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public void pushReportItem( ReportItemHandle handle )
public void pushReportItem( ReportElementHandle handle )
public void pushReportItem( ReportItemHandle handle ) { reportItems.push( handle ); scriptContext.registerBean( "itemDesign", handle ); //$NON-NLS-1$ }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/317e0084872a4973a293289bd7b020e7649a70fe/ExecutionContext.java/clean/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/executor/ExecutionContext.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1817, 4820, 1180, 12, 8706, 1180, 3259, 1640, 262, 202, 95, 202, 202, 6006, 3126, 18, 6206, 12, 1640, 11272, 202, 202, 4263, 1042, 18, 4861, 3381, 12, 315, 1726, 15478, 3113, 1640, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1817, 4820, 1180, 12, 8706, 1180, 3259, 1640, 262, 202, 95, 202, 202, 6006, 3126, 18, 6206, 12, 1640, 11272, 202, 202, 4263, 1042, 18, 4861, 3381, 12, 315, 1726, 15478, 3113, 1640, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
int hc = 0;
int hc = 0;
public int hashCode() { // if this class is a direct sub-class of Object: int hc = 0; // only take into account fields of this class (not of super-class): hc = ObjectUtil.hashCode(hc, querySequence); hc = ObjectUtil.hashCode(hc, sequenceDB); hc = ObjectUtil.hashCode(hc, searchParameters); hc = ObjectUtil.hashCode(hc, hits); return hc; }
50397 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50397/5d8f0472e505e38cb8a0a330aae9d45cebac1fbf/SimpleSeqSimilaritySearchResult.java/clean/src/org/biojava/bio/search/SimpleSeqSimilaritySearchResult.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 13374, 1435, 565, 288, 202, 759, 309, 333, 667, 353, 279, 2657, 720, 17, 1106, 434, 1033, 30, 202, 474, 11684, 273, 374, 31, 202, 759, 1338, 4862, 1368, 2236, 1466, 434, 333, 667, 261, 902, 434, 2240, 17, 1106, 4672, 202, 28353, 273, 1033, 1304, 18, 2816, 1085, 12, 28353, 16, 843, 4021, 1769, 202, 28353, 273, 1033, 1304, 18, 2816, 1085, 12, 28353, 16, 3102, 2290, 1769, 202, 28353, 273, 1033, 1304, 18, 2816, 1085, 12, 28353, 16, 1623, 2402, 1769, 202, 28353, 273, 1033, 1304, 18, 2816, 1085, 12, 28353, 16, 11076, 1769, 202, 2463, 11684, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 13374, 1435, 565, 288, 202, 759, 309, 333, 667, 353, 279, 2657, 720, 17, 1106, 434, 1033, 30, 202, 474, 11684, 273, 374, 31, 202, 759, 1338, 4862, 1368, 2236, 1466, 434, 333, 667, 261, 902, 434, 2240, 17, 1106, 4672, 202, 28353, 273, 1033, 1304, 18, 2816, 1085, 12, 28353, 16, 843, 4021, 1769, 202, 28353, 273, 1033, 1304, 18, 2816, 1085, 12, 28353, 16, 3102, 2290, 1769, 202, 28353, 273, 1033, 1304, 18, 2816, 1085, 12, 28353, 16, 1623, 2402, 1769, 202, 28353, 273, 1033, 1304, 18, 2816, 1085, 12, 28353, 16, 11076, 1769, 202, 2463, 11684, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100 ]
public ModuleConfigImpl(String prefix) { super(); this.prefix = prefix; this.actionConfigs = new HashMap(); this.actionConfigList = new ArrayList(); this.actionFormBeanClass = "org.apache.struts.action.ActionFormBean"; this.actionMappingClass = "org.apache.struts.action.ActionMapping"; this.actionForwardClass = "org.apache.struts.action.ActionForward"; this.configured = false; this.controllerConfig = null; this.exceptions = new HashMap(); this.formBeans = new HashMap(); this.forwards = new HashMap(); this.messageResources = new HashMap(); this.plugIns = new ArrayList();
public ModuleConfigImpl() { this("");
public ModuleConfigImpl(String prefix) { super(); this.prefix = prefix; this.actionConfigs = new HashMap(); this.actionConfigList = new ArrayList(); this.actionFormBeanClass = "org.apache.struts.action.ActionFormBean"; this.actionMappingClass = "org.apache.struts.action.ActionMapping"; this.actionForwardClass = "org.apache.struts.action.ActionForward"; this.configured = false; this.controllerConfig = null; this.exceptions = new HashMap(); this.formBeans = new HashMap(); this.forwards = new HashMap(); this.messageResources = new HashMap(); this.plugIns = new ArrayList(); }
2722 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2722/029cef275759ce8d20bb3ec04c0f65bec78c38a4/ModuleConfigImpl.java/buggy/src/java/org/apache/struts/config/impl/ModuleConfigImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 5924, 809, 2828, 12, 780, 1633, 13, 288, 3639, 2240, 5621, 3639, 333, 18, 3239, 273, 1633, 31, 3639, 333, 18, 1128, 8062, 273, 394, 4317, 5621, 3639, 333, 18, 1128, 809, 682, 273, 394, 2407, 5621, 3639, 333, 18, 1128, 1204, 3381, 797, 273, 315, 3341, 18, 19211, 18, 701, 12940, 18, 1128, 18, 1803, 1204, 3381, 14432, 3639, 333, 18, 1128, 3233, 797, 273, 315, 3341, 18, 19211, 18, 701, 12940, 18, 1128, 18, 1803, 3233, 14432, 3639, 333, 18, 1128, 8514, 797, 273, 315, 3341, 18, 19211, 18, 701, 12940, 18, 1128, 18, 1803, 8514, 14432, 3639, 333, 18, 16449, 273, 629, 31, 3639, 333, 18, 5723, 809, 273, 446, 31, 3639, 333, 18, 11855, 273, 394, 4317, 5621, 3639, 333, 18, 687, 14495, 273, 394, 4317, 5621, 3639, 333, 18, 1884, 6397, 273, 394, 4317, 5621, 3639, 333, 18, 2150, 3805, 273, 394, 4317, 5621, 3639, 333, 18, 22045, 5048, 273, 394, 2407, 5621, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 5924, 809, 2828, 12, 780, 1633, 13, 288, 3639, 2240, 5621, 3639, 333, 18, 3239, 273, 1633, 31, 3639, 333, 18, 1128, 8062, 273, 394, 4317, 5621, 3639, 333, 18, 1128, 809, 682, 273, 394, 2407, 5621, 3639, 333, 18, 1128, 1204, 3381, 797, 273, 315, 3341, 18, 19211, 18, 701, 12940, 18, 1128, 18, 1803, 1204, 3381, 14432, 3639, 333, 18, 1128, 3233, 797, 273, 315, 3341, 18, 19211, 18, 701, 12940, 18, 1128, 18, 1803, 3233, 14432, 3639, 333, 18, 1128, 8514, 797, 273, 315, 3341, 18, 19211, 18, 701, 12940, 18, 1128, 18, 1803, 8514, 14432, 3639, 333, 18, 16449, 273, 629, 31, 3639, 333, 18, 5723, 809, 273, 446, 31, 3639, 333, 18, 2 ]
public void actionNew() throws JspException { // get the collector used to create the new content int pos = m_paramNewLink.indexOf('|'); String collectorName = m_paramNewLink.substring(0, pos); String param = m_paramNewLink.substring(pos + 1); // get the collector used for calculating the next file name I_CmsResourceCollector collector = OpenCms.getResourceManager().getContentCollector(collectorName); try { // one resource serves as a "template" for the new resource CmsFile templateFile = getCms().readFile(getParamResource(), CmsResourceFilter.IGNORE_EXPIRATION); CmsXmlContent template = CmsXmlContentFactory.unmarshal(getCms(), templateFile); Locale locale = (Locale)OpenCms.getLocaleManager().getDefaultLocales(getCms(), getParamResource()).get(0); // now create a new XML content based on the templates content definition CmsXmlContent newContent = CmsXmlContentFactory.createDocument( getCms(), locale, template.getEncoding(), template.getContentDefinition()); // IMPORTANT: calculation of the name MUST be done here so the file name is ensured to be valid String newFileName = collector.getCreateLink(getCms(), collectorName, param); // now create the resource, fill it with the marshalled XML and write it back to the VFS getCms().createResource(newFileName, templateFile.getTypeId()); // re-read the created resource CmsFile newFile = getCms().readFile(newFileName, CmsResourceFilter.ALL); newFile.setContents(newContent.marshal()); // write the file with the updated content getCms().writeFile(newFile); // wipe out parameters for the editor to ensure proper operation setParamNewLink(null); setParamAction(null); setParamResource(newFileName); setAction(ACTION_DEFAULT); // create the temporary file to work with setParamTempfile(createTempFile()); // set the member variables for the content m_file = newFile; m_content = newContent; } catch (CmsException e) { if (LOG.isErrorEnabled()) { LOG.error(Messages.get().key(Messages.LOG_CREATE_XML_CONTENT_ITEM_1, m_paramNewLink) , e); } throw new JspException(e); } }
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/2fa0efcae8f9aa5971c7763269a3b033e9256d4b/CmsXmlContentEditor.java/buggy/src/org/opencms/workplace/editors/CmsXmlContentEditor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1301, 1908, 1435, 1216, 27485, 288, 7734, 368, 336, 326, 8543, 1399, 358, 752, 326, 394, 913, 3639, 509, 949, 273, 312, 67, 891, 1908, 2098, 18, 31806, 2668, 96, 8284, 3639, 514, 8543, 461, 273, 312, 67, 891, 1908, 2098, 18, 28023, 12, 20, 16, 949, 1769, 3639, 514, 579, 273, 312, 67, 891, 1908, 2098, 18, 28023, 12, 917, 397, 404, 1769, 7734, 368, 336, 326, 8543, 1399, 364, 21046, 326, 1024, 585, 508, 3639, 467, 67, 4747, 1420, 7134, 8543, 273, 10319, 18, 588, 1420, 1318, 7675, 588, 1350, 7134, 12, 21356, 461, 1769, 10792, 775, 288, 13491, 368, 1245, 1058, 26255, 487, 279, 315, 3202, 6, 364, 326, 394, 1058, 5411, 28118, 28215, 273, 14413, 7675, 896, 812, 12, 588, 786, 1420, 9334, 21082, 18, 20118, 67, 18433, 24284, 1769, 5411, 25169, 1542, 273, 25169, 1733, 18, 318, 3108, 12, 588, 4747, 9334, 28215, 1769, 5411, 6458, 2573, 273, 261, 3916, 13, 3678, 4747, 18, 588, 3916, 1318, 7675, 588, 1868, 13310, 12, 588, 4747, 9334, 9027, 1420, 1435, 2934, 588, 12, 20, 1769, 5411, 368, 2037, 752, 279, 394, 3167, 913, 2511, 603, 326, 5539, 913, 2379, 13491, 25169, 24358, 273, 25169, 1733, 18, 2640, 2519, 12, 7734, 14413, 9334, 7734, 2573, 16, 7734, 1542, 18, 588, 4705, 9334, 7734, 1542, 18, 588, 1350, 1852, 10663, 5411, 368, 21840, 6856, 30, 11096, 434, 326, 508, 10685, 506, 2731, 2674, 1427, 326, 585, 508, 353, 3387, 72, 358, 506, 923, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1301, 1908, 1435, 1216, 27485, 288, 7734, 368, 336, 326, 8543, 1399, 358, 752, 326, 394, 913, 3639, 509, 949, 273, 312, 67, 891, 1908, 2098, 18, 31806, 2668, 96, 8284, 3639, 514, 8543, 461, 273, 312, 67, 891, 1908, 2098, 18, 28023, 12, 20, 16, 949, 1769, 3639, 514, 579, 273, 312, 67, 891, 1908, 2098, 18, 28023, 12, 917, 397, 404, 1769, 7734, 368, 336, 326, 8543, 1399, 364, 21046, 326, 1024, 585, 508, 3639, 467, 67, 4747, 1420, 7134, 8543, 273, 10319, 18, 588, 1420, 1318, 7675, 588, 1350, 7134, 12, 21356, 461, 1769, 10792, 775, 288, 13491, 368, 1245, 1058, 26255, 487, 279, 315, 3202, 6, 364, 326, 394, 1058, 5411, 28118, 2 ]
VM_TypeReference.getTypeRef(typeReferenceID).resolve().asClass().getClassForType();
VM_TypeReference.getTypeRef(typeReferenceID).resolve().getClassForType();
public static int findOrCreateClassLiteral(int typeReferenceID) { Class literalAsClass = VM_TypeReference.getTypeRef(typeReferenceID).resolve().asClass().getClassForType(); Integer offAsInt; synchronized(objectLiterals) { offAsInt = (Integer)objectLiterals.get(literalAsClass); } if (offAsInt != null) { return offAsInt.intValue(); } else { Offset newOff = allocateReferenceSlot(); Integer newOffAsInt = new Integer(newOff.toInt()); synchronized(objectLiterals) { objectLiterals.put(literalAsClass, newOffAsInt); setSlotContents(newOff, literalAsClass); } return newOff.toInt(); } }
5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/ed150101ea3f30308f0a688cd64caa46039d9883/VM_Statics.java/buggy/rvm/src/vm/runtime/VM_Statics.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 509, 1104, 17717, 797, 6177, 12, 474, 618, 2404, 734, 13, 288, 565, 1659, 7158, 1463, 797, 273, 1377, 8251, 67, 7534, 18, 588, 25950, 12, 723, 2404, 734, 2934, 10828, 7675, 588, 797, 22405, 5621, 565, 2144, 3397, 31720, 31, 565, 3852, 12, 1612, 48, 11235, 13, 288, 1377, 3397, 31720, 273, 261, 4522, 13, 1612, 48, 11235, 18, 588, 12, 13107, 1463, 797, 1769, 565, 289, 565, 309, 261, 3674, 31720, 480, 446, 13, 288, 1377, 327, 3397, 31720, 18, 474, 620, 5621, 565, 289, 469, 288, 1377, 9874, 394, 7210, 273, 10101, 2404, 8764, 5621, 1377, 2144, 394, 7210, 31720, 273, 394, 2144, 12, 2704, 7210, 18, 869, 1702, 10663, 1377, 3852, 12, 1612, 48, 11235, 13, 288, 3639, 733, 48, 11235, 18, 458, 12, 13107, 1463, 797, 16, 394, 7210, 31720, 1769, 3639, 444, 8764, 6323, 12, 2704, 7210, 16, 7158, 1463, 797, 1769, 1377, 289, 1377, 327, 394, 7210, 18, 869, 1702, 5621, 565, 289, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 760, 509, 1104, 17717, 797, 6177, 12, 474, 618, 2404, 734, 13, 288, 565, 1659, 7158, 1463, 797, 273, 1377, 8251, 67, 7534, 18, 588, 25950, 12, 723, 2404, 734, 2934, 10828, 7675, 588, 797, 22405, 5621, 565, 2144, 3397, 31720, 31, 565, 3852, 12, 1612, 48, 11235, 13, 288, 1377, 3397, 31720, 273, 261, 4522, 13, 1612, 48, 11235, 18, 588, 12, 13107, 1463, 797, 1769, 565, 289, 565, 309, 261, 3674, 31720, 480, 446, 13, 288, 1377, 327, 3397, 31720, 18, 474, 620, 5621, 565, 289, 469, 288, 1377, 9874, 394, 7210, 273, 10101, 2404, 8764, 5621, 1377, 2144, 394, 7210, 31720, 273, 394, 2144, 12, 2704, 7210, 18, 869, 1702, 10663, 1377, 3852, 12, 2 ]
ShowLegion(JFrame parentFrame, Legion legion, Point point, boolean
ShowLegion(Frame parentFrame, Legion legion, Point point, boolean
ShowLegion(JFrame parentFrame, Legion legion, Point point, boolean allVisible) { super(parentFrame, "Contents of Legion " + legion.getMarkerId(), false); int scale = 60; pack(); setBackground(java.awt.Color.lightGray); setSize(2 * scale / 5 + scale * legion.getHeight(), 8 * scale / 5); // Place dialog relative to parentFrame's origin, and fully on-screen. Point parentOrigin = parentFrame.getLocation(); Point origin = new Point(point.x + parentOrigin.x - scale, point.y + parentOrigin.y - scale); if (origin.x < 0) { origin.x = 0; } if (origin.y < 0) { origin.y = 0; } Dimension d = Toolkit.getDefaultToolkit().getScreenSize(); int adj = origin.x + getSize().width - d.width; if (adj > 0) { origin.x -= adj; } adj = origin.y + getSize().height - d.height; if (adj > 0) { origin.y -= adj; } setLocation(origin); getContentPane().setLayout(null); this.legion = legion; chits = new Chit[legion.getHeight()]; if (allVisible) { for (int i = 0; i < legion.getHeight(); i++) { chits[i] = new Chit(i * scale + (scale / 5), scale / 2, scale, legion.getCreature(i).getImageName(), this); } } else { for (int i = 0; i < legion.getHeight(); i++) { Critter critter = legion.getCritter(i); String imageName; if (!critter.isVisible()) { imageName = "images" + File.separator + "Question.gif"; } else { imageName = critter.getImageName(); } chits[i] = new Chit(i * scale + (scale / 5), scale / 2, scale, imageName, this); } } tracker = new MediaTracker(this); for (int i = 0; i < legion.getHeight(); i++) { tracker.addImage(chits[i].getImage(), 0); } try { tracker.waitForAll(); } catch (InterruptedException e) { JOptionPane.showMessageDialog(parentFrame, "waitForAll was interrupted"); } imagesLoaded = true; addMouseListener(this); setVisible(true); repaint(); }
51862 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51862/5dd2d6d9beae6289719f63e8ae13bd15a70f8240/ShowLegion.java/buggy/Colossus/ShowLegion.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 9674, 8329, 285, 12, 3219, 982, 3219, 16, 17167, 285, 4553, 285, 16, 4686, 1634, 16, 1250, 540, 777, 6207, 13, 565, 288, 3639, 2240, 12, 2938, 3219, 16, 315, 6323, 434, 17167, 285, 315, 397, 4553, 285, 18, 588, 7078, 548, 9334, 629, 1769, 3639, 509, 3159, 273, 4752, 31, 3639, 2298, 5621, 3639, 31217, 12, 6290, 18, 2219, 88, 18, 2957, 18, 5099, 23521, 1769, 3639, 19106, 12, 22, 380, 3159, 342, 1381, 397, 3159, 380, 4553, 285, 18, 588, 2686, 9334, 1725, 380, 3159, 342, 1381, 1769, 3639, 368, 13022, 6176, 3632, 358, 982, 3219, 1807, 4026, 16, 471, 7418, 603, 17, 9252, 18, 3639, 4686, 982, 7571, 273, 982, 3219, 18, 588, 2735, 5621, 3639, 4686, 4026, 273, 394, 4686, 12, 1153, 18, 92, 397, 982, 7571, 18, 92, 300, 3159, 16, 1634, 18, 93, 397, 5411, 982, 7571, 18, 93, 300, 3159, 1769, 3639, 309, 261, 10012, 18, 92, 411, 374, 13, 3639, 288, 5411, 4026, 18, 92, 273, 374, 31, 3639, 289, 3639, 309, 261, 10012, 18, 93, 411, 374, 13, 3639, 288, 5411, 4026, 18, 93, 273, 374, 31, 3639, 289, 3639, 13037, 302, 273, 13288, 8691, 18, 588, 1868, 6364, 8691, 7675, 588, 7956, 1225, 5621, 3639, 509, 8307, 273, 4026, 18, 92, 397, 9950, 7675, 2819, 300, 302, 18, 2819, 31, 3639, 309, 261, 13829, 405, 374, 13, 3639, 288, 5411, 4026, 18, 92, 3947, 8307, 31, 3639, 289, 3639, 8307, 273, 4026, 18, 93, 397, 9950, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 9674, 8329, 285, 12, 3219, 982, 3219, 16, 17167, 285, 4553, 285, 16, 4686, 1634, 16, 1250, 540, 777, 6207, 13, 565, 288, 3639, 2240, 12, 2938, 3219, 16, 315, 6323, 434, 17167, 285, 315, 397, 4553, 285, 18, 588, 7078, 548, 9334, 629, 1769, 3639, 509, 3159, 273, 4752, 31, 3639, 2298, 5621, 3639, 31217, 12, 6290, 18, 2219, 88, 18, 2957, 18, 5099, 23521, 1769, 3639, 19106, 12, 22, 380, 3159, 342, 1381, 397, 3159, 380, 4553, 285, 18, 588, 2686, 9334, 1725, 380, 3159, 342, 1381, 1769, 3639, 368, 13022, 6176, 3632, 358, 982, 3219, 1807, 4026, 16, 471, 7418, 603, 17, 9252, 18, 3639, 4686, 982, 7571, 273, 982, 3219, 18, 588, 2735, 5621, 2 ]
};
}
public static PsiVariable[] guessMatchingVariables (final PsiExpression expression) { List<ExpectedTypeInfo[]> typesList = new ArrayList<ExpectedTypeInfo[]>(); final List<String> expectedMethodNames = new ArrayList<String>(); final List<String> expectedFieldNames = new ArrayList<String>(); getExpectedInformation(expression, typesList, expectedMethodNames, expectedFieldNames); final List<PsiVariable> list = new ArrayList<PsiVariable>(); VariablesProcessor varproc = new VariablesProcessor("", true, list){ public boolean execute(PsiElement element, PsiSubstitutor substitutor) { if(!(element instanceof PsiField) || element.getManager().getResolveHelper().isAccessible(((PsiField)element), expression, null)) { return super.execute(element, substitutor); } return true; } }; PsiScopesUtil.treeWalkUp(varproc, expression, null); PsiVariable[] allVars = varproc.getResultsAsArray(); ExpectedTypeInfo[] infos = ExpectedTypeUtil.intersect(typesList); final List<PsiVariable> result = new ArrayList<PsiVariable>(); nextVar: for (int i = 0; i < allVars.length; i++) { PsiVariable variable = allVars[i]; PsiType varType = variable.getType(); if (!(varType instanceof PsiClassType)) continue; PsiClass aClass = ((PsiClassType)varType).resolve(); if (aClass == null) continue; boolean matched = infos.length == 0; for (int j = 0; j < infos.length; j++) { if (ExpectedTypeUtil.matches(varType, infos[j])) { matched = true; break; }; } if (matched) { for (Iterator<String> iterator = expectedFieldNames.iterator(); iterator.hasNext();) { String name = iterator.next(); if (aClass.findFieldByName(name, true) == null) continue nextVar; } for (Iterator<String> iterator = expectedMethodNames.iterator(); iterator.hasNext();) { String name = iterator.next(); PsiMethod[] methods = aClass.findMethodsByName(name, true); if (methods == null || methods.length == 0) continue nextVar; } result.add(variable); } } return result.toArray(new PsiVariable[result.size()]); }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/7d80171d44ac4ccb4ad6097837cdd93ed07c5340/CreateFromUsageUtils.java/clean/source/com/intellij/codeInsight/daemon/impl/quickfix/CreateFromUsageUtils.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 453, 7722, 3092, 8526, 7274, 9517, 6158, 261, 6385, 453, 7722, 2300, 2652, 13, 288, 565, 987, 32, 6861, 17305, 8526, 34, 1953, 682, 273, 394, 2407, 32, 6861, 17305, 8526, 34, 5621, 565, 727, 987, 32, 780, 34, 2665, 1305, 1557, 273, 394, 2407, 32, 780, 34, 5621, 565, 727, 987, 32, 780, 34, 2665, 20393, 225, 273, 394, 2407, 32, 780, 34, 5621, 565, 336, 6861, 5369, 12, 8692, 16, 1953, 682, 16, 2665, 1305, 1557, 16, 2665, 20393, 1769, 565, 727, 987, 32, 52, 7722, 3092, 34, 666, 273, 394, 2407, 32, 52, 7722, 3092, 34, 5621, 565, 23536, 5164, 569, 9381, 273, 394, 23536, 5164, 2932, 3113, 638, 16, 666, 15329, 1377, 1071, 1250, 1836, 12, 52, 7722, 1046, 930, 16, 453, 7722, 1676, 5223, 3408, 7461, 3408, 13, 288, 3639, 309, 12, 5, 12, 2956, 1276, 453, 7722, 974, 13, 747, 6647, 930, 18, 588, 1318, 7675, 588, 8460, 2276, 7675, 291, 10451, 12443, 12, 52, 7722, 974, 13, 2956, 3631, 2652, 16, 446, 3719, 288, 1850, 327, 2240, 18, 8837, 12, 2956, 16, 7461, 3408, 1769, 3639, 289, 3639, 327, 638, 31, 1377, 289, 565, 289, 565, 453, 7722, 12668, 1304, 18, 3413, 9463, 1211, 12, 1401, 9381, 16, 2652, 16, 446, 1769, 565, 453, 7722, 3092, 8526, 777, 5555, 273, 569, 9381, 18, 588, 3447, 19196, 5621, 565, 13219, 17305, 8526, 10626, 273, 13219, 559, 1304, 18, 12288, 12, 2352, 682, 1769, 565, 727, 987, 32, 52, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 453, 7722, 3092, 8526, 7274, 9517, 6158, 261, 6385, 453, 7722, 2300, 2652, 13, 288, 565, 987, 32, 6861, 17305, 8526, 34, 1953, 682, 273, 394, 2407, 32, 6861, 17305, 8526, 34, 5621, 565, 727, 987, 32, 780, 34, 2665, 1305, 1557, 273, 394, 2407, 32, 780, 34, 5621, 565, 727, 987, 32, 780, 34, 2665, 20393, 225, 273, 394, 2407, 32, 780, 34, 5621, 565, 336, 6861, 5369, 12, 8692, 16, 1953, 682, 16, 2665, 1305, 1557, 16, 2665, 20393, 1769, 565, 727, 987, 32, 52, 7722, 3092, 34, 666, 273, 394, 2407, 32, 52, 7722, 3092, 34, 5621, 565, 23536, 5164, 569, 9381, 273, 394, 23536, 5164, 2932, 3113, 638, 16, 666, 15329, 1377, 2 ]
List pointcuts = m_system.getThrowsPointcuts(getTargetClass().getName(), m_metadata);
List pointcuts = m_system.getThrowsPointcuts(m_classMetaData, m_methodMetaData);
protected void loadAdvices() { synchronized (m_adviceIndexes) { List adviceIndexes = new ArrayList(); // get all the throws pointcuts for this class List pointcuts = m_system.getThrowsPointcuts(getTargetClass().getName(), m_metadata); for (Iterator it = pointcuts.iterator(); it.hasNext();) { ThrowsPointcut throwsPointcut = (ThrowsPointcut)it.next(); int[] advices = throwsPointcut.getAdviceIndexes(); for (int j = 0; j < advices.length; j++) { adviceIndexes.add(new Integer(advices[j])); } } m_adviceIndexes = new int[adviceIndexes.size()]; int i = 0; for (Iterator it = adviceIndexes.iterator(); it.hasNext(); i++) { m_adviceIndexes[i] = ((Integer)it.next()).intValue(); } } }
7954 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7954/797e662bcd4bca47d6ac84f41fbf32bf15013a33/ThrowsJoinPoint.java/clean/aspectwerkz/src/main/org/codehaus/aspectwerkz/joinpoint/ThrowsJoinPoint.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1262, 1871, 2094, 1435, 288, 3639, 3852, 261, 81, 67, 361, 633, 8639, 13, 288, 5411, 987, 29929, 8639, 273, 394, 2407, 5621, 5411, 368, 336, 777, 326, 1216, 29774, 87, 364, 333, 667, 5411, 987, 29774, 87, 273, 312, 67, 4299, 18, 588, 21845, 2148, 5150, 87, 12, 81, 67, 1106, 6998, 16, 312, 67, 2039, 6998, 1769, 5411, 364, 261, 3198, 518, 273, 29774, 87, 18, 9838, 5621, 518, 18, 5332, 2134, 5621, 13, 288, 7734, 22435, 2148, 5150, 1216, 2148, 5150, 273, 261, 21845, 2148, 5150, 13, 305, 18, 4285, 5621, 7734, 509, 8526, 1261, 2094, 273, 1216, 2148, 5150, 18, 588, 1871, 633, 8639, 5621, 7734, 364, 261, 474, 525, 273, 374, 31, 525, 411, 1261, 2094, 18, 2469, 31, 525, 27245, 288, 10792, 29929, 8639, 18, 1289, 12, 2704, 2144, 12, 361, 2094, 63, 78, 5717, 1769, 7734, 289, 5411, 289, 5411, 312, 67, 361, 633, 8639, 273, 394, 509, 63, 361, 633, 8639, 18, 1467, 1435, 15533, 5411, 509, 277, 273, 374, 31, 5411, 364, 261, 3198, 518, 273, 29929, 8639, 18, 9838, 5621, 518, 18, 5332, 2134, 5621, 277, 27245, 288, 7734, 312, 67, 361, 633, 8639, 63, 77, 65, 273, 14015, 4522, 13, 305, 18, 4285, 1435, 2934, 474, 620, 5621, 5411, 289, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1262, 1871, 2094, 1435, 288, 3639, 3852, 261, 81, 67, 361, 633, 8639, 13, 288, 5411, 987, 29929, 8639, 273, 394, 2407, 5621, 5411, 368, 336, 777, 326, 1216, 29774, 87, 364, 333, 667, 5411, 987, 29774, 87, 273, 312, 67, 4299, 18, 588, 21845, 2148, 5150, 87, 12, 81, 67, 1106, 6998, 16, 312, 67, 2039, 6998, 1769, 5411, 364, 261, 3198, 518, 273, 29774, 87, 18, 9838, 5621, 518, 18, 5332, 2134, 5621, 13, 288, 7734, 22435, 2148, 5150, 1216, 2148, 5150, 273, 261, 21845, 2148, 5150, 13, 305, 18, 4285, 5621, 7734, 509, 8526, 1261, 2094, 273, 1216, 2148, 5150, 18, 588, 1871, 633, 8639, 5621, 7734, 364, 261, 474, 525, 273, 374, 2 ]
"ASN.1 string type identifier is expected at [" + tagOffset + "], but encountered: " + Integer.toHexString(tag));
Messages.getString("security.13A", tagOffset, Integer.toHexString(tag)));
public void readString(ASN1StringType type) throws IOException { //FIXME check string content if (tag == type.id) { readContent(); } else if (tag == type.constrId) { throw new ASN1Exception("Decoding constructed ASN.1 string " + " type is not provided"); } else { throw new ASN1Exception( "ASN.1 string type identifier is expected at [" + tagOffset + "], but encountered: " + Integer.toHexString(tag)); } }
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/c7fdc88348ff6da63262b6309c2810876f42c6d8/BerInputStream.java/clean/modules/security/src/main/java/common/org/apache/harmony/security/asn1/BerInputStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 18646, 12, 22269, 21, 780, 559, 618, 13, 1216, 1860, 288, 3639, 368, 25810, 866, 533, 913, 3639, 309, 261, 2692, 422, 618, 18, 350, 13, 288, 5411, 855, 1350, 5621, 3639, 289, 469, 309, 261, 2692, 422, 618, 18, 591, 701, 548, 13, 288, 5411, 604, 394, 18598, 21, 503, 2932, 1799, 4751, 15688, 18598, 18, 21, 533, 315, 10792, 397, 315, 618, 353, 486, 2112, 8863, 3639, 289, 469, 288, 5411, 604, 394, 18598, 21, 503, 12, 10792, 315, 22269, 18, 21, 533, 618, 2756, 353, 2665, 622, 8247, 397, 1047, 2335, 18701, 397, 315, 6487, 1496, 9919, 30, 315, 397, 2144, 18, 869, 14866, 12, 2692, 10019, 3639, 289, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 18646, 12, 22269, 21, 780, 559, 618, 13, 1216, 1860, 288, 3639, 368, 25810, 866, 533, 913, 3639, 309, 261, 2692, 422, 618, 18, 350, 13, 288, 5411, 855, 1350, 5621, 3639, 289, 469, 309, 261, 2692, 422, 618, 18, 591, 701, 548, 13, 288, 5411, 604, 394, 18598, 21, 503, 2932, 1799, 4751, 15688, 18598, 18, 21, 533, 315, 10792, 397, 315, 618, 353, 486, 2112, 8863, 3639, 289, 469, 288, 5411, 604, 394, 18598, 21, 503, 12, 10792, 315, 22269, 18, 21, 533, 618, 2756, 353, 2665, 622, 8247, 397, 1047, 2335, 18701, 397, 315, 6487, 1496, 9919, 30, 315, 397, 2144, 18, 869, 14866, 12, 2692, 10019, 3639, 289, 565, 289, 2, -100, -100 ]
String target = "pages/common/Error.jsp"; request.setAttribute( "error", context.getBean( ).getException( ) ); RequestDispatcher rd = request.getRequestDispatcher( target ); rd.include( request, response );
displayException( request, response, context.getBean( ) .getException( ) );
public void doGet( HttpServletRequest request, HttpServletResponse response ) throws ServletException, IOException { ReportEngineService.getInstance( ).setEngineContext( getServletContext( ), request ); // Exception happened during context init. BirtContext context = new BirtContext( request ); if ( context.getBean( ).getException( ) != null ) { context.finalize( ); String target = "pages/common/Error.jsp"; //$NON-NLS-1$ request.setAttribute( "error", context.getBean( ).getException( ) ); //$NON-NLS-1$ RequestDispatcher rd = request.getRequestDispatcher( target ); rd.include( request, response ); } else { try { if ( "/frameset".equalsIgnoreCase( request.getServletPath( ) ) ) //$NON-NLS-1$ { viewer.service( request, response ); } if ( "/preview".equalsIgnoreCase( request.getServletPath( ) ) ) //$NON-NLS-1$ { preview.service( request, response ); } else if ( "/run".equalsIgnoreCase( request.getServletPath( ) ) ) //$NON-NLS-1$ { engine.service( request, response ); } else if ( "/parameter".equalsIgnoreCase( request.getServletPath( ) ) )//$NON-NLS-1$ { parameter.service( request, response ); } } catch ( BirtException e ) { String target = "pages/common/Error.jsp"; //$NON-NLS-1$ request.setAttribute( "error", e ); //$NON-NLS-1$ RequestDispatcher rd = request.getRequestDispatcher( target ); rd.include( request, response ); } finally { context.finalize( ); } } }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/abd1c6fce7b8bae3da991b12423aa7e1044a0961/ViewerServlet.java/clean/viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/servlet/ViewerServlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 23611, 12, 9984, 590, 16, 12446, 766, 262, 1082, 202, 15069, 16517, 16, 1860, 202, 95, 202, 202, 4820, 4410, 1179, 18, 588, 1442, 12, 262, 18, 542, 4410, 1042, 12, 9506, 202, 588, 4745, 1042, 12, 262, 16, 590, 11272, 202, 202, 759, 1185, 17497, 4982, 819, 1208, 18, 202, 202, 38, 2714, 1042, 819, 273, 394, 605, 2714, 1042, 12, 590, 11272, 202, 202, 430, 261, 819, 18, 588, 3381, 12, 262, 18, 588, 503, 12, 262, 480, 446, 262, 202, 202, 95, 1082, 202, 2472, 18, 30343, 12, 11272, 1082, 202, 780, 1018, 273, 315, 7267, 19, 6054, 19, 668, 18, 24926, 14432, 4329, 3993, 17, 5106, 17, 21, 8, 1082, 202, 2293, 18, 542, 1499, 12, 315, 1636, 3113, 819, 18, 588, 3381, 12, 262, 18, 588, 503, 12, 262, 11272, 4329, 3993, 17, 5106, 17, 21, 8, 1082, 202, 691, 6681, 9437, 273, 590, 18, 588, 691, 6681, 12, 1018, 11272, 1082, 202, 13623, 18, 6702, 12, 590, 16, 766, 11272, 202, 202, 97, 202, 202, 12107, 202, 202, 95, 1082, 202, 698, 1082, 202, 95, 9506, 202, 430, 261, 2206, 10278, 278, 9654, 14963, 5556, 12, 590, 18, 588, 4745, 743, 12, 262, 262, 262, 4329, 3993, 17, 5106, 17, 21, 8, 9506, 202, 95, 6862, 202, 25256, 18, 3278, 12, 590, 16, 766, 11272, 9506, 202, 97, 9506, 202, 430, 261, 2206, 12102, 9654, 14963, 5556, 12, 590, 18, 588, 4745, 743, 12, 262, 262, 262, 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, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 23611, 12, 9984, 590, 16, 12446, 766, 262, 1082, 202, 15069, 16517, 16, 1860, 202, 95, 202, 202, 4820, 4410, 1179, 18, 588, 1442, 12, 262, 18, 542, 4410, 1042, 12, 9506, 202, 588, 4745, 1042, 12, 262, 16, 590, 11272, 202, 202, 759, 1185, 17497, 4982, 819, 1208, 18, 202, 202, 38, 2714, 1042, 819, 273, 394, 605, 2714, 1042, 12, 590, 11272, 202, 202, 430, 261, 819, 18, 588, 3381, 12, 262, 18, 588, 503, 12, 262, 480, 446, 262, 202, 202, 95, 1082, 202, 2472, 18, 30343, 12, 11272, 1082, 202, 780, 1018, 273, 315, 7267, 19, 6054, 19, 668, 18, 24926, 14432, 4329, 3993, 17, 5106, 17, 21, 8, 1082, 202, 2 ]