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
public Patch createNewPatch()
public IPatch createNewPatch()
public Patch createNewPatch() { return new Patch(initSysex, this); }
7591 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7591/b6e99a36d447b749f8ec1622f6d2477fcd586fcb/DX7FamilyMicroTuningSingleDriver.java/clean/JSynthLib/synthdrivers/YamahaDX7/common/DX7FamilyMicroTuningSingleDriver.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 12042, 15291, 7332, 1435, 202, 95, 202, 202, 2463, 394, 12042, 12, 2738, 10876, 20909, 16, 333, 1769, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 12042, 15291, 7332, 1435, 202, 95, 202, 202, 2463, 394, 12042, 12, 2738, 10876, 20909, 16, 333, 1769, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -10...
MO = getTableOfAssessments(iwc);
private PresentationObject doAssess(IWContext iwc)throws RemoteException { //add(handler.getClass().getName()); PresentationObject MO = new Text("failed"); if (iwc.getParameter("pay_date") != null) { String date = iwc.getParameter("pay_date"); String start = iwc.getParameter("start_date"); String end = iwc.getParameter("end_date"); String roundName = iwc.getParameter("round_name"); String accountKeyId = iwc.getParameter("account_key_id"); Integer excessRoundID = Integer.valueOf(iwc.getParameter("excess_round_id")); //add(accountKeyId); if (date != null && date.length() == 10) { if (roundName != null && roundName.trim().length() > 1) { roundName = roundName == null ? "" : roundName; Integer accKeyId = accountKeyId != null ? Integer.valueOf(accountKeyId) :null; IWTimestamp paydate = new IWTimestamp(date); IWTimestamp startdate = new IWTimestamp(start); IWTimestamp enddate = new IWTimestamp(end); //add(paydate.getISLDate()); debug("Starting Execution " + IWTimestamp.RightNow().toString()); handler.executeAssessment(iwc,getFinanceCategoryId(), groupID, roundName,new Integer( 1), accKeyId, paydate, startdate, enddate,excessRoundID); debug("Ending Execution " + IWTimestamp.RightNow().toString()); /*if (assessed) { status.setMessage(localize("assessment_sucess", "Assessment succeded")); } else { status.setMessage(localize("assessment_failure", "Assessment failed")); }*/ MO = getTableOfAssessments(iwc); } else { add(localize("no_name_error", "No name entered")); MO = doMainTable(iwc); } } else { MO = doMainTable(iwc); } } else System.err.println("did not have pay_date"); return MO; }
57001 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57001/3bf65427455ac142d829579c104fa96ec0a57a07/TariffAssessments.java/buggy/src/java/com/idega/block/finance/presentation/TariffAssessments.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 25130, 367, 921, 741, 2610, 403, 12, 45, 59, 1042, 25522, 71, 13, 15069, 18361, 288, 202, 202, 759, 1289, 12, 4176, 18, 588, 797, 7675, 17994, 10663, 202, 202, 6351, 367, 921...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 25130, 367, 921, 741, 2610, 403, 12, 45, 59, 1042, 25522, 71, 13, 15069, 18361, 288, 202, 202, 759, 1289, 12, 4176, 18, 588, 797, 7675, 17994, 10663, 202, 202, 6351, 367, 921...
case 571: break; case 572: {
case 571: {
public void ruleAction(int ruleNumber) { if (bad_rule != 0) return; switch (ruleNumber) { // // Rule 1: identifier ::= IDENTIFIER // case 1: { if (prsStream.getKind(btParser.getToken(1)) != X10Parsersym.TK_IDENTIFIER) { System.out.println("Parser turning keyword " + prsStream.getName(btParser.getToken(1)) + " at " + prsStream.getLine(btParser.getToken(1)) + ":" + prsStream.getColumn(btParser.getToken(1)) + " into an identifier"); } break; } // // Rule 2: PrimitiveType ::= NumericType // case 2: break; // // Rule 3: PrimitiveType ::= boolean // case 3: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Boolean())); break; } // // Rule 4: NumericType ::= IntegralType // case 4: break; // // Rule 5: NumericType ::= FloatingPointType // case 5: break; // // Rule 6: IntegralType ::= byte // case 6: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Byte())); break; } // // Rule 7: IntegralType ::= char // case 7: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Char())); break; } // // Rule 8: IntegralType ::= short // case 8: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Short())); break; } // // Rule 9: IntegralType ::= int // case 9: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Int())); break; } // // Rule 10: IntegralType ::= long // case 10: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Long())); break; } // // Rule 11: FloatingPointType ::= float // case 11: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Float())); break; } // // Rule 12: FloatingPointType ::= double // case 12: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Double())); break; } // // Rule 13: ReferenceType ::= ClassOrInterfaceType // case 13: break; // // Rule 14: ReferenceType ::= ArrayType // case 14: break; // // Rule 15: ClassOrInterfaceType ::= ClassType // case 15: break; // // Rule 16: ClassType ::= TypeName // case 16: {//vj assert(btParser.getSym(2) == null); // generic not yet supported Name a = (Name) btParser.getSym(1); btParser.setSym1(a.toType()); break; } // // Rule 17: InterfaceType ::= TypeName // case 17: {//vj assert(btParser.getSym(2) == null); // generic not yet supported Name a = (Name) btParser.getSym(1); btParser.setSym1(a.toType()); break; } // // Rule 18: TypeName ::= identifier // case 18: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 19: TypeName ::= TypeName DOT identifier // case 19: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 20: ClassName ::= TypeName // case 20: break; // // Rule 21: TypeVariable ::= identifier // case 21: break; // // Rule 22: ArrayType ::= Type LBRACKET RBRACKET // case 22: { TypeNode a = (TypeNode) btParser.getSym(1); btParser.setSym1(array(a, pos(), 1)); break; } // // Rule 23: TypeParameter ::= TypeVariable TypeBoundopt // case 23: bad_rule = 23; break; // // Rule 24: TypeBound ::= extends ClassOrInterfaceType AdditionalBoundListopt // case 24: bad_rule = 24; break; // // Rule 25: AdditionalBoundList ::= AdditionalBound // case 25: bad_rule = 25; break; // // Rule 26: AdditionalBoundList ::= AdditionalBoundList AdditionalBound // case 26: bad_rule = 26; break; // // Rule 27: AdditionalBound ::= AND InterfaceType // case 27: bad_rule = 27; break; // // Rule 28: TypeArguments ::= LESS ActualTypeArgumentList GREATER // case 28: bad_rule = 28; break; // // Rule 29: ActualTypeArgumentList ::= ActualTypeArgument // case 29: bad_rule = 29; break; // // Rule 30: ActualTypeArgumentList ::= ActualTypeArgumentList COMMA ActualTypeArgument // case 30: bad_rule = 30; break; // // Rule 31: Wildcard ::= QUESTION WildcardBoundsOpt // case 31: bad_rule = 31; break; // // Rule 32: WildcardBounds ::= extends ReferenceType // case 32: bad_rule = 32; break; // // Rule 33: WildcardBounds ::= super ReferenceType // case 33: bad_rule = 33; break; // // Rule 34: PackageName ::= identifier // case 34: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 35: PackageName ::= PackageName DOT identifier // case 35: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 36: ExpressionName ::= identifier // case 36: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 37: ExpressionName ::= AmbiguousName DOT identifier // case 37: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 38: MethodName ::= identifier // case 38: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 39: MethodName ::= AmbiguousName DOT identifier // case 39: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 40: PackageOrTypeName ::= identifier // case 40: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 41: PackageOrTypeName ::= PackageOrTypeName DOT identifier // case 41: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 42: AmbiguousName ::= identifier // case 42: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 43: AmbiguousName ::= AmbiguousName DOT identifier // case 43: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(new Name(nf, ts, pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier())); break; } // // Rule 44: CompilationUnit ::= Commentsopt PackageDeclarationopt ImportDeclarationsopt TypeDeclarationsopt // case 44: { Object comment = btParser.getSym(1); PackageNode a = (PackageNode) btParser.getSym(2); List b = (List) btParser.getSym(3), c = (List) btParser.getSym(4); Node n = nf.SourceFile(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b, c); if (comment != null) { n.setComment(comment.toString()); } btParser.setSym1(n); break; } // // Rule 45: Comments ::= Comment // case 45: { Object comment = comment(btParser.getToken(1)); btParser.setSym1(comment); break; } // // Rule 46: Comments ::= Comments Comment // case 46: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 47: ImportDeclarations ::= ImportDeclaration // case 47: { List l = new TypedList(new LinkedList(), Import.class, false); Import a = (Import) btParser.getSym(1); l.add(a); btParser.setSym1(l); break; } // // Rule 48: ImportDeclarations ::= ImportDeclarations ImportDeclaration // case 48: { List l = (TypedList) btParser.getSym(1); Import b = (Import) btParser.getSym(2); if (b != null) l.add(b); //btParser.setSym1(l); break; } // // Rule 49: TypeDeclarations ::= Commentsopt TypeDeclaration // case 49: { Object comment = btParser.getSym(1); List l = new TypedList(new LinkedList(), TopLevelDecl.class, false); TopLevelDecl a = (TopLevelDecl) btParser.getSym(2); if (a != null) l.add(a); if (comment != null) { a.setComment(comment.toString()); } btParser.setSym1(l); break; } // // Rule 50: TypeDeclarations ::= TypeDeclarations TypeDeclaration // case 50: { List l = (TypedList) btParser.getSym(1); TopLevelDecl b = (TopLevelDecl) btParser.getSym(2); if (b != null) l.add(b); //btParser.setSym1(l); break; } // // Rule 51: PackageDeclaration ::= package PackageName SEMICOLON // case 51: {//vj assert(btParser.getSym(1) == null); // generic not yet supported Name a = (Name) btParser.getSym(2); btParser.setSym1(a.toPackage()); break; } // // Rule 52: ImportDeclaration ::= SingleTypeImportDeclaration // case 52: break; // // Rule 53: ImportDeclaration ::= TypeImportOnDemandDeclaration // case 53: break; // // Rule 54: ImportDeclaration ::= SingleStaticImportDeclaration // case 54: break; // // Rule 55: ImportDeclaration ::= StaticImportOnDemandDeclaration // case 55: break; // // Rule 56: SingleTypeImportDeclaration ::= import TypeName SEMICOLON // case 56: { Name a = (Name) btParser.getSym(2); btParser.setSym1(nf.Import(pos(btParser.getFirstToken(), btParser.getLastToken()), Import.CLASS, a.toString())); break; } // // Rule 57: TypeImportOnDemandDeclaration ::= import PackageOrTypeName DOT MULTIPLY SEMICOLON // case 57: { Name a = (Name) btParser.getSym(2); btParser.setSym1(nf.Import(pos(btParser.getFirstToken(), btParser.getLastToken()), Import.PACKAGE, a.toString())); break; } // // Rule 58: SingleStaticImportDeclaration ::= import static TypeName DOT identifier SEMICOLON // case 58: bad_rule = 58; break; // // Rule 59: StaticImportOnDemandDeclaration ::= import static TypeName DOT MULTIPLY SEMICOLON // case 59: bad_rule = 59; break; // // Rule 60: TypeDeclaration ::= ClassDeclaration // case 60: break; // // Rule 61: TypeDeclaration ::= InterfaceDeclaration // case 61: break; // // Rule 62: TypeDeclaration ::= SEMICOLON // case 62: { btParser.setSym1(null); break; } // // Rule 63: ClassDeclaration ::= NormalClassDeclaration // case 63: break; // // Rule 64: NormalClassDeclaration ::= Commentsopt ClassModifiersopt class identifier Superopt Interfacesopt ClassBody // case 64: { Object comment = btParser.getSym(1); Flags a = (Flags) btParser.getSym(2); polyglot.lex.Identifier b = id(btParser.getToken(4));//vj assert(btParser.getSym(4) == null); TypeNode c = (TypeNode) btParser.getSym(5); // by default extend x10.lang.Object if (c == null) { c= new Name(nf, ts, pos(), "x10.lang.Object").toType(); } List d = (List) btParser.getSym(6); ClassBody e = (ClassBody) btParser.getSym(7); Node n = a.isValue() ? nf.ValueClassDecl(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier(), c, d, e) : nf.ClassDecl(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier(), c, d, e); if (comment != null) n.setComment(comment.toString()); btParser.setSym1(n); break; } // // Rule 65: ClassModifiers ::= ClassModifier // case 65: break; // // Rule 66: ClassModifiers ::= ClassModifiers ClassModifier // case 66: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 67: ClassModifier ::= public // case 67: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 68: ClassModifier ::= protected // case 68: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 69: ClassModifier ::= private // case 69: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 70: ClassModifier ::= abstract // case 70: { btParser.setSym1(Flags.ABSTRACT); break; } // // Rule 71: ClassModifier ::= static // case 71: { btParser.setSym1(Flags.STATIC); break; } // // Rule 72: ClassModifier ::= final // case 72: { btParser.setSym1(Flags.FINAL); break; } // // Rule 73: ClassModifier ::= strictfp // case 73: { btParser.setSym1(Flags.STRICTFP); break; } // // Rule 74: TypeParameters ::= LESS TypeParameterList GREATER // case 74: bad_rule = 74; break; // // Rule 75: TypeParameterList ::= TypeParameter // case 75: bad_rule = 75; break; // // Rule 76: TypeParameterList ::= TypeParameterList COMMA TypeParameter // case 76: bad_rule = 76; break; // // Rule 77: Super ::= extends ClassType // case 77: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 78: Interfaces ::= implements InterfaceTypeList // case 78: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 79: InterfaceTypeList ::= InterfaceType // case 79: { List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 80: InterfaceTypeList ::= InterfaceTypeList COMMA InterfaceType // case 80: { List l = (TypedList) btParser.getSym(1); l.add(btParser.getSym(2)); btParser.setSym1(l); break; } // // Rule 81: ClassBody ::= LBRACE ClassBodyDeclarationsopt RBRACE // case 81: { btParser.setSym1(nf.ClassBody(pos(btParser.getFirstToken(), btParser.getLastToken()), (List) btParser.getSym(2))); break; } // // Rule 82: ClassBodyDeclarations ::= ClassBodyDeclaration // case 82: break; // // Rule 83: ClassBodyDeclarations ::= ClassBodyDeclarations ClassBodyDeclaration // case 83: { List a = (List) btParser.getSym(1), b = (List) btParser.getSym(2); a.addAll(b); // btParser.setSym1(a); break; } // // Rule 84: ClassBodyDeclaration ::= ClassMemberDeclaration // case 84: break; // // Rule 85: ClassBodyDeclaration ::= InstanceInitializer // case 85: { List l = new TypedList(new LinkedList(), ClassMember.class, false); Block a = (Block) btParser.getSym(1); l.add(nf.Initializer(pos(), Flags.NONE, a)); btParser.setSym1(l); break; } // // Rule 86: ClassBodyDeclaration ::= StaticInitializer // case 86: { List l = new TypedList(new LinkedList(), ClassMember.class, false); Block a = (Block) btParser.getSym(1); l.add(nf.Initializer(pos(), Flags.STATIC, a)); btParser.setSym1(l); break; } // // Rule 87: ClassBodyDeclaration ::= ConstructorDeclaration // case 87: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 88: ClassMemberDeclaration ::= FieldDeclaration // case 88: break; // // Rule 89: ClassMemberDeclaration ::= MethodDeclaration // case 89: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 90: ClassMemberDeclaration ::= ClassDeclaration // case 90: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 91: ClassMemberDeclaration ::= InterfaceDeclaration // case 91: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 92: ClassMemberDeclaration ::= SEMICOLON // case 92: { List l = new TypedList(new LinkedList(), ClassMember.class, false); btParser.setSym1(l); break; } // // Rule 93: FieldDeclaration ::= Commentsopt FieldModifiersopt Type VariableDeclarators SEMICOLON // case 93: { Object comment = btParser.getSym(1); List l = new TypedList(new LinkedList(), ClassMember.class, false); Flags a = (Flags) btParser.getSym(2); TypeNode b = (TypeNode) btParser.getSym(3); List c = (List) btParser.getSym(4); for (Iterator i = c.iterator(); i.hasNext();) { VarDeclarator d = (VarDeclarator) i.next(); l.add(nf.FieldDecl(pos(btParser.getFirstToken(2), btParser.getLastToken()), a, array(b, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), d.dims), d.name, d.init)); } if (comment != null) ((Node) l.get(0)).setComment(comment.toString()); btParser.setSym1(l); break; } // // Rule 94: VariableDeclarators ::= VariableDeclarator // case 94: { List l = new TypedList(new LinkedList(), VarDeclarator.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 95: VariableDeclarators ::= VariableDeclarators COMMA VariableDeclarator // case 95: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 96: VariableDeclarator ::= VariableDeclaratorId // case 96: break; // // Rule 97: VariableDeclarator ::= VariableDeclaratorId EQUAL VariableInitializer // case 97: { VarDeclarator a = (VarDeclarator) btParser.getSym(1); Expr b = (Expr) btParser.getSym(3); a.init = b; // btParser.setSym1(a); break; } // // Rule 98: VariableDeclaratorId ::= identifier // case 98: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new VarDeclarator(pos(), a.getIdentifier())); break; } // // Rule 99: VariableDeclaratorId ::= VariableDeclaratorId LBRACKET RBRACKET // case 99: { VarDeclarator a = (VarDeclarator) btParser.getSym(1); a.dims++; // btParser.setSym1(a); break; } // // Rule 100: VariableInitializer ::= Expression // case 100: break; // // Rule 101: VariableInitializer ::= ArrayInitializer // case 101: break; // // Rule 102: FieldModifiers ::= FieldModifier // case 102: break; // // Rule 103: FieldModifiers ::= FieldModifiers FieldModifier // case 103: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 104: FieldModifier ::= public // case 104: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 105: FieldModifier ::= protected // case 105: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 106: FieldModifier ::= private // case 106: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 107: FieldModifier ::= static // case 107: { btParser.setSym1(Flags.STATIC); break; } // // Rule 108: FieldModifier ::= final // case 108: { btParser.setSym1(Flags.FINAL); break; } // // Rule 109: FieldModifier ::= transient // case 109: { btParser.setSym1(Flags.TRANSIENT); break; } // // Rule 110: FieldModifier ::= volatile // case 110: { btParser.setSym1(Flags.VOLATILE); break; } // // Rule 111: MethodDeclaration ::= Commentsopt MethodHeader MethodBody // case 111: { Object comment = btParser.getSym(1); MethodDecl a = (MethodDecl) btParser.getSym(2); Block b = (Block) btParser.getSym(3); if (comment != null) a.setComment(comment.toString()); btParser.setSym1(a.body(b)); break; } // // Rule 112: MethodHeader ::= MethodModifiersopt ResultType MethodDeclarator Throwsopt // case 112: { Flags a = (Flags) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); TypeNode b = (TypeNode) btParser.getSym(2); Object[] o = (Object []) btParser.getSym(3); Name c = (Name) o[0]; List d = (List) o[1]; Integer e = (Integer) o[2]; List f = (List) btParser.getSym(4); if (b.type() == ts.Void() && e.intValue() > 0) { // TODO: error!!! } btParser.setSym1(nf.MethodDecl(pos(btParser.getFirstToken(2), btParser.getLastToken(3)), a, array((TypeNode) b, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), e.intValue()), c.toString(), d, f, null)); break; } // // Rule 113: ResultType ::= Type // case 113: break; // // Rule 114: ResultType ::= void // case 114: { btParser.setSym1(nf.CanonicalTypeNode(pos(), ts.Void())); break; } // // Rule 115: MethodDeclarator ::= identifier LPAREN FormalParameterListopt RPAREN // case 115: { Object[] a = new Object[3]; a[0] = new Name(nf, ts, pos(), id(btParser.getToken(1)).getIdentifier()); a[1] = btParser.getSym(3); a[2] = new Integer(0); btParser.setSym1(a); break; } // // Rule 116: MethodDeclarator ::= MethodDeclarator LBRACKET RBRACKET // case 116: { Object[] a = (Object []) btParser.getSym(1); a[2] = new Integer(((Integer) a[2]).intValue() + 1); // btParser.setSym1(a); break; } // // Rule 117: FormalParameterList ::= LastFormalParameter // case 117: { List l = new TypedList(new LinkedList(), Formal.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 118: FormalParameterList ::= FormalParameters COMMA LastFormalParameter // case 118: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 119: FormalParameters ::= FormalParameter // case 119: { List l = new TypedList(new LinkedList(), Formal.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 120: FormalParameters ::= FormalParameters COMMA FormalParameter // case 120: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 121: FormalParameter ::= VariableModifiersopt Type VariableDeclaratorId // case 121: { Flags f = (Flags) btParser.getSym(1); TypeNode a = (TypeNode) btParser.getSym(2); VarDeclarator b = (VarDeclarator) btParser.getSym(3); btParser.setSym1(nf.Formal(pos(), f, array(a, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), b.dims), b.name)); break; } // // Rule 123: VariableModifiers ::= VariableModifiers VariableModifier // case 123: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 124: VariableModifier ::= final // case 124: { btParser.setSym1(Flags.FINAL); break; } // // Rule 125: LastFormalParameter ::= VariableModifiersopt Type ...opt VariableDeclaratorId // case 125: { Flags f = (Flags) btParser.getSym(1); TypeNode a = (TypeNode) btParser.getSym(2); assert(btParser.getSym(3) == null); VarDeclarator b = (VarDeclarator) btParser.getSym(4); btParser.setSym1(nf.Formal(pos(), f, array(a, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), b.dims), b.name)); break; } // // Rule 126: MethodModifiers ::= MethodModifier // case 126: break; // // Rule 127: MethodModifiers ::= MethodModifiers MethodModifier // case 127: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 128: MethodModifier ::= public // case 128: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 129: MethodModifier ::= protected // case 129: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 130: MethodModifier ::= private // case 130: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 131: MethodModifier ::= abstract // case 131: { btParser.setSym1(Flags.ABSTRACT); break; } // // Rule 132: MethodModifier ::= static // case 132: { btParser.setSym1(Flags.STATIC); break; } // // Rule 133: MethodModifier ::= final // case 133: { btParser.setSym1(Flags.FINAL); break; } // // Rule 134: MethodModifier ::= synchronized // case 134: { btParser.setSym1(Flags.SYNCHRONIZED); break; } // // Rule 135: MethodModifier ::= native // case 135: { btParser.setSym1(Flags.NATIVE); break; } // // Rule 136: MethodModifier ::= strictfp // case 136: { btParser.setSym1(Flags.STRICTFP); break; } // // Rule 137: Throws ::= throws ExceptionTypeList // case 137: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 138: ExceptionTypeList ::= ExceptionType // case 138: { List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 139: ExceptionTypeList ::= ExceptionTypeList COMMA ExceptionType // case 139: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 140: ExceptionType ::= ClassType // case 140: break; // // Rule 141: ExceptionType ::= TypeVariable // case 141: break; // // Rule 142: MethodBody ::= Block // case 142: break; // // Rule 143: MethodBody ::= SEMICOLON // case 143: btParser.setSym1(null); break; // // Rule 144: InstanceInitializer ::= Block // case 144: break; // // Rule 145: StaticInitializer ::= static Block // case 145: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 146: ConstructorDeclaration ::= ConstructorModifiersopt ConstructorDeclarator Throwsopt ConstructorBody // case 146: { Flags m = (Flags) btParser.getSym(1); Object[] o = (Object []) btParser.getSym(2); Name a = (Name) o[1]; List b = (List) o[2]; List c = (List) btParser.getSym(3); Block d = (Block) btParser.getSym(4); btParser.setSym1(nf.ConstructorDecl(pos(), m, a.toString(), b, c, d)); break; } // // Rule 147: ConstructorDeclarator ::= SimpleTypeName LPAREN FormalParameterListopt RPAREN // case 147: {//vj assert(btParser.getSym(1) == null); Object[] a = new Object[3];//vj a[0] = btParser.getSym(1); a[1] = btParser.getSym(1); a[2] = btParser.getSym(3); btParser.setSym1(a); break; } // // Rule 148: SimpleTypeName ::= identifier // case 148: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 149: ConstructorModifiers ::= ConstructorModifier // case 149: break; // // Rule 150: ConstructorModifiers ::= ConstructorModifiers ConstructorModifier // case 150: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 151: ConstructorModifier ::= public // case 151: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 152: ConstructorModifier ::= protected // case 152: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 153: ConstructorModifier ::= private // case 153: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 154: ConstructorBody ::= LBRACE ExplicitConstructorInvocationopt BlockStatementsopt RBRACE // case 154: { Stmt a = (Stmt) btParser.getSym(2); List l; if (a == null) l = (List) btParser.getSym(3); else { l = new TypedList(new LinkedList(), Stmt.class, false); List l2 = (List) btParser.getSym(3); l.add(a); l.addAll(l2); } btParser.setSym1(nf.Block(pos(), l)); break; } // // Rule 155: ExplicitConstructorInvocation ::= this LPAREN ArgumentListopt RPAREN SEMICOLON // case 155: {//vj assert(btParser.getSym(1) == null); List b = (List) btParser.getSym(3); btParser.setSym1(nf.ThisCall(pos(), b)); break; } // // Rule 156: ExplicitConstructorInvocation ::= super LPAREN ArgumentListopt RPAREN SEMICOLON // case 156: {//vj assert(btParser.getSym(1) == null); List b = (List) btParser.getSym(3); btParser.setSym1(nf.SuperCall(pos(), b)); break; } // // Rule 157: ExplicitConstructorInvocation ::= Primary DOT this LPAREN ArgumentListopt RPAREN SEMICOLON // case 157: { Expr a = (Expr) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); List b = (List) btParser.getSym(5); btParser.setSym1(nf.ThisCall(pos(), a, b)); break; } // // Rule 158: ExplicitConstructorInvocation ::= Primary DOT super LPAREN ArgumentListopt RPAREN SEMICOLON // case 158: { Expr a = (Expr) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); List b = (List) btParser.getSym(5); btParser.setSym1(nf.SuperCall(pos(), a, b)); break; } // // Rule 159: EnumDeclaration ::= ClassModifiersopt enum identifier Interfacesopt EnumBody // case 159: bad_rule = 159; break; // // Rule 160: EnumBody ::= LBRACE EnumConstantsopt ,opt EnumBodyDeclarationsopt RBRACE // case 160: bad_rule = 160; break; // // Rule 161: EnumConstants ::= EnumConstant // case 161: bad_rule = 161; break; // // Rule 162: EnumConstants ::= EnumConstants COMMA EnumConstant // case 162: bad_rule = 162; break; // // Rule 163: EnumConstant ::= identifier Argumentsopt ClassBodyopt // case 163: bad_rule = 163; break; // // Rule 164: Arguments ::= LPAREN ArgumentListopt RPAREN // case 164: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 165: EnumBodyDeclarations ::= SEMICOLON ClassBodyDeclarationsopt // case 165: bad_rule = 165; break; // // Rule 166: InterfaceDeclaration ::= NormalInterfaceDeclaration // case 166: break; // // Rule 167: NormalInterfaceDeclaration ::= Commentsopt InterfaceModifiersopt interface identifier ExtendsInterfacesopt InterfaceBody // case 167: { Object comment = btParser.getSym(1); Flags a = (Flags) btParser.getSym(2); polyglot.lex.Identifier b = id(btParser.getToken(4));//vj assert(btParser.getSym(4) == null); List c = (List) btParser.getSym(5); ClassBody d = (ClassBody) btParser.getSym(6); Node n = nf.ClassDecl(pos(), a.Interface(), b.getIdentifier(), null, c, d); if (comment != null) n.setComment( comment.toString() ); btParser.setSym1(n); break; } // // Rule 168: InterfaceModifiers ::= InterfaceModifier // case 168: break; // // Rule 169: InterfaceModifiers ::= InterfaceModifiers InterfaceModifier // case 169: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 170: InterfaceModifier ::= public // case 170: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 171: InterfaceModifier ::= protected // case 171: { btParser.setSym1(Flags.PROTECTED); break; } // // Rule 172: InterfaceModifier ::= private // case 172: { btParser.setSym1(Flags.PRIVATE); break; } // // Rule 173: InterfaceModifier ::= abstract // case 173: { btParser.setSym1(Flags.ABSTRACT); break; } // // Rule 174: InterfaceModifier ::= static // case 174: { btParser.setSym1(Flags.STATIC); break; } // // Rule 175: InterfaceModifier ::= strictfp // case 175: { btParser.setSym1(Flags.STRICTFP); break; } // // Rule 176: ExtendsInterfaces ::= extends InterfaceType // case 176: { List l = new TypedList(new LinkedList(), TypeNode.class, false); l.add(btParser.getSym(2)); btParser.setSym1(l); break; } // // Rule 177: ExtendsInterfaces ::= ExtendsInterfaces COMMA InterfaceType // case 177: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); // btParser.setSym1(l); break; } // // Rule 178: InterfaceBody ::= LBRACE InterfaceMemberDeclarationsopt RBRACE // case 178: { List a = (List)btParser.getSym(2); btParser.setSym1(nf.ClassBody(pos(), a)); break; } // // Rule 179: InterfaceMemberDeclarations ::= InterfaceMemberDeclaration // case 179: break; // // Rule 180: InterfaceMemberDeclarations ::= InterfaceMemberDeclarations InterfaceMemberDeclaration // case 180: { List l = (List) btParser.getSym(1), l2 = (List) btParser.getSym(2); l.addAll(l2); // btParser.setSym1(l); break; } // // Rule 181: InterfaceMemberDeclaration ::= ConstantDeclaration // case 181: break; // // Rule 182: InterfaceMemberDeclaration ::= AbstractMethodDeclaration // case 182: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 183: InterfaceMemberDeclaration ::= ClassDeclaration // case 183: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 184: InterfaceMemberDeclaration ::= InterfaceDeclaration // case 184: { List l = new TypedList(new LinkedList(), ClassMember.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 185: InterfaceMemberDeclaration ::= SEMICOLON // case 185: { btParser.setSym1(Collections.EMPTY_LIST); break; } // // Rule 186: ConstantDeclaration ::= ConstantModifiersopt Type VariableDeclarators // case 186: { List l = new TypedList(new LinkedList(), ClassMember.class, false); Flags a = (Flags) btParser.getSym(1); TypeNode b = (TypeNode) btParser.getSym(2); List c = (List) btParser.getSym(3); for (Iterator i = c.iterator(); i.hasNext();) { VarDeclarator d = (VarDeclarator) i.next(); l.add(nf.FieldDecl(pos(btParser.getFirstToken(2), btParser.getLastToken()), a, array(b, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), d.dims), d.name, d.init)); } btParser.setSym1(l); break; } // // Rule 187: ConstantModifiers ::= ConstantModifier // case 187: break; // // Rule 188: ConstantModifiers ::= ConstantModifiers ConstantModifier // case 188: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 189: ConstantModifier ::= public // case 189: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 190: ConstantModifier ::= static // case 190: { btParser.setSym1(Flags.STATIC); break; } // // Rule 191: ConstantModifier ::= final // case 191: { btParser.setSym1(Flags.FINAL); break; } // // Rule 192: AbstractMethodDeclaration ::= AbstractMethodModifiersopt ResultType MethodDeclarator Throwsopt SEMICOLON // case 192: { Flags a = (Flags) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); TypeNode b = (TypeNode) btParser.getSym(2); Object[] o = (Object []) btParser.getSym(3); Name c = (Name) o[0]; List d = (List) o[1]; Integer e = (Integer) o[2]; List f = (List) btParser.getSym(4); if (b.type() == ts.Void() && e.intValue() > 0) { // TODO: error!!! } btParser.setSym1(nf.MethodDecl(pos(btParser.getFirstToken(2), btParser.getLastToken(3)), a, array((TypeNode) b, pos(btParser.getFirstToken(2), btParser.getLastToken(2)), e.intValue()), c.toString(), d, f, null)); break; } // // Rule 193: AbstractMethodModifiers ::= AbstractMethodModifier // case 193: break; // // Rule 194: AbstractMethodModifiers ::= AbstractMethodModifiers AbstractMethodModifier // case 194: { Flags a = (Flags) btParser.getSym(1), b = (Flags) btParser.getSym(2); btParser.setSym1(a.set(b)); break; } // // Rule 195: AbstractMethodModifier ::= public // case 195: { btParser.setSym1(Flags.PUBLIC); break; } // // Rule 196: AbstractMethodModifier ::= abstract // case 196: { btParser.setSym1(Flags.ABSTRACT); break; } // // Rule 197: AnnotationTypeDeclaration ::= InterfaceModifiersopt AT interface identifier AnnotationTypeBody // case 197: bad_rule = 197; break; // // Rule 198: AnnotationTypeBody ::= LBRACE AnnotationTypeElementDeclarationsopt RBRACE // case 198: bad_rule = 198; break; // // Rule 199: AnnotationTypeElementDeclarations ::= AnnotationTypeElementDeclaration // case 199: bad_rule = 199; break; // // Rule 200: AnnotationTypeElementDeclarations ::= AnnotationTypeElementDeclarations AnnotationTypeElementDeclaration // case 200: bad_rule = 200; break; // // Rule 201: AnnotationTypeElementDeclaration ::= AbstractMethodModifiersopt Type identifier LPAREN RPAREN DefaultValueopt SEMICOLON // case 201: bad_rule = 201; break; // // Rule 202: AnnotationTypeElementDeclaration ::= ConstantDeclaration // case 202: bad_rule = 202; break; // // Rule 203: AnnotationTypeElementDeclaration ::= ClassDeclaration // case 203: bad_rule = 203; break; // // Rule 204: AnnotationTypeElementDeclaration ::= InterfaceDeclaration // case 204: bad_rule = 204; break; // // Rule 205: AnnotationTypeElementDeclaration ::= EnumDeclaration // case 205: bad_rule = 205; break; // // Rule 206: AnnotationTypeElementDeclaration ::= AnnotationTypeDeclaration // case 206: bad_rule = 206; break; // // Rule 207: AnnotationTypeElementDeclaration ::= SEMICOLON // case 207: bad_rule = 207; break; // // Rule 208: DefaultValue ::= default ElementValue // case 208: bad_rule = 208; break; // // Rule 209: Annotations ::= Annotation // case 209: bad_rule = 209; break; // // Rule 210: Annotations ::= Annotations Annotation // case 210: bad_rule = 210; break; // // Rule 211: Annotation ::= NormalAnnotation // case 211: bad_rule = 211; break; // // Rule 212: Annotation ::= MarkerAnnotation // case 212: bad_rule = 212; break; // // Rule 213: Annotation ::= SingleElementAnnotation // case 213: bad_rule = 213; break; // // Rule 214: NormalAnnotation ::= AT TypeName LPAREN ElementValuePairsopt RPAREN // case 214: bad_rule = 214; break; // // Rule 215: ElementValuePairs ::= ElementValuePair // case 215: bad_rule = 215; break; // // Rule 216: ElementValuePairs ::= ElementValuePairs COMMA ElementValuePair // case 216: bad_rule = 216; break; // // Rule 217: ElementValuePair ::= SimpleName EQUAL ElementValue // case 217: bad_rule = 217; break; // // Rule 218: SimpleName ::= identifier // case 218: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 219: ElementValue ::= ConditionalExpression // case 219: bad_rule = 219; break; // // Rule 220: ElementValue ::= Annotation // case 220: bad_rule = 220; break; // // Rule 221: ElementValue ::= ElementValueArrayInitializer // case 221: bad_rule = 221; break; // // Rule 222: ElementValueArrayInitializer ::= LBRACE ElementValuesopt ,opt RBRACE // case 222: bad_rule = 222; break; // // Rule 223: ElementValues ::= ElementValue // case 223: bad_rule = 223; break; // // Rule 224: ElementValues ::= ElementValues COMMA ElementValue // case 224: bad_rule = 224; break; // // Rule 225: MarkerAnnotation ::= AT TypeName // case 225: bad_rule = 225; break; // // Rule 226: SingleElementAnnotation ::= AT TypeName LPAREN ElementValue RPAREN // case 226: bad_rule = 226; break; // // Rule 227: ArrayInitializer ::= LBRACE VariableInitializersopt ,opt RBRACE // case 227: { List a = (List) btParser.getSym(2); if (a == null) btParser.setSym1(nf.ArrayInit(pos())); else btParser.setSym1(nf.ArrayInit(pos(), a)); break; } // // Rule 228: VariableInitializers ::= VariableInitializer // case 228: { List l = new TypedList(new LinkedList(), Expr.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 229: VariableInitializers ::= VariableInitializers COMMA VariableInitializer // case 229: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); //btParser.setSym1(l); break; } // // Rule 230: Block ::= LBRACE BlockStatementsopt RBRACE // case 230: { List l = (List) btParser.getSym(2); btParser.setSym1(nf.Block(pos(), l)); break; } // // Rule 231: BlockStatements ::= BlockStatement // case 231: { List l = new TypedList(new LinkedList(), Stmt.class, false), l2 = (List) btParser.getSym(1); l.addAll(l2); btParser.setSym1(l); break; } // // Rule 232: BlockStatements ::= BlockStatements BlockStatement // case 232: { List l = (List) btParser.getSym(1), l2 = (List) btParser.getSym(2); l.addAll(l2); //btParser.setSym1(l); break; } // // Rule 233: BlockStatement ::= LocalVariableDeclarationStatement // case 233: break; // // Rule 234: BlockStatement ::= ClassDeclaration // case 234: { ClassDecl a = (ClassDecl) btParser.getSym(1); List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(nf.LocalClassDecl(pos(), a)); btParser.setSym1(l); break; } // // Rule 235: BlockStatement ::= Statement // case 235: { List l = new TypedList(new LinkedList(), Stmt.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 236: LocalVariableDeclarationStatement ::= LocalVariableDeclaration SEMICOLON // case 236: break; // // Rule 237: LocalVariableDeclaration ::= VariableModifiersopt Type VariableDeclarators // case 237: { Flags flags = (Flags) btParser.getSym(1); TypeNode a = (TypeNode) btParser.getSym(2); List b = (List) btParser.getSym(3); List l = new TypedList(new LinkedList(), LocalDecl.class, false); for (Iterator i = b.iterator(); i.hasNext(); ) { VarDeclarator d = (VarDeclarator) i.next(); l.add(nf.LocalDecl(pos(d), flags, array(a, pos(d), d.dims), d.name, d.init)); } btParser.setSym1(l); break; } // // Rule 238: Statement ::= StatementWithoutTrailingSubstatement // case 238: break; // // Rule 239: Statement ::= LabeledStatement // case 239: break; // // Rule 240: Statement ::= IfThenStatement // case 240: break; // // Rule 241: Statement ::= IfThenElseStatement // case 241: break; // // Rule 242: Statement ::= WhileStatement // case 242: break; // // Rule 243: Statement ::= ForStatement // case 243: break; // // Rule 244: StatementWithoutTrailingSubstatement ::= Block // case 244: break; // // Rule 245: StatementWithoutTrailingSubstatement ::= EmptyStatement // case 245: break; // // Rule 246: StatementWithoutTrailingSubstatement ::= ExpressionStatement // case 246: break; // // Rule 247: StatementWithoutTrailingSubstatement ::= AssertStatement // case 247: break; // // Rule 248: StatementWithoutTrailingSubstatement ::= SwitchStatement // case 248: break; // // Rule 249: StatementWithoutTrailingSubstatement ::= DoStatement // case 249: break; // // Rule 250: StatementWithoutTrailingSubstatement ::= BreakStatement // case 250: break; // // Rule 251: StatementWithoutTrailingSubstatement ::= ContinueStatement // case 251: break; // // Rule 252: StatementWithoutTrailingSubstatement ::= ReturnStatement // case 252: break; // // Rule 253: StatementWithoutTrailingSubstatement ::= SynchronizedStatement // case 253: break; // // Rule 254: StatementWithoutTrailingSubstatement ::= ThrowStatement // case 254: break; // // Rule 255: StatementWithoutTrailingSubstatement ::= TryStatement // case 255: break; // // Rule 256: StatementNoShortIf ::= StatementWithoutTrailingSubstatement // case 256: break; // // Rule 257: StatementNoShortIf ::= LabeledStatementNoShortIf // case 257: break; // // Rule 258: StatementNoShortIf ::= IfThenElseStatementNoShortIf // case 258: break; // // Rule 259: StatementNoShortIf ::= WhileStatementNoShortIf // case 259: break; // // Rule 260: StatementNoShortIf ::= ForStatementNoShortIf // case 260: break; // // Rule 261: IfThenStatement ::= if LPAREN Expression RPAREN Statement // case 261: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.If(pos(), a, b)); break; } // // Rule 262: IfThenElseStatement ::= if LPAREN Expression RPAREN StatementNoShortIf else Statement // case 262: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); Stmt c = (Stmt) btParser.getSym(7); btParser.setSym1(nf.If(pos(), a, b, c)); break; } // // Rule 263: IfThenElseStatementNoShortIf ::= if LPAREN Expression RPAREN StatementNoShortIf else StatementNoShortIf // case 263: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); Stmt c = (Stmt) btParser.getSym(7); btParser.setSym1(nf.If(pos(), a, b, c)); break; } // // Rule 264: EmptyStatement ::= SEMICOLON // case 264: { btParser.setSym1(nf.Empty(pos())); break; } // // Rule 265: LabeledStatement ::= identifier COLON Statement // case 265: { polyglot.lex.Identifier a = id(btParser.getToken(1)); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Labeled(pos(), a.getIdentifier(), b)); break; } // // Rule 266: LabeledStatementNoShortIf ::= identifier COLON StatementNoShortIf // case 266: { polyglot.lex.Identifier a = id(btParser.getToken(1)); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Labeled(pos(), a.getIdentifier(), b)); break; } // // Rule 267: ExpressionStatement ::= StatementExpression SEMICOLON // case 267: { Expr a = (Expr) btParser.getSym(1); btParser.setSym1(nf.Eval(pos(), a)); break; } // // Rule 268: StatementExpression ::= Assignment // case 268: break; // // Rule 269: StatementExpression ::= PreIncrementExpression // case 269: break; // // Rule 270: StatementExpression ::= PreDecrementExpression // case 270: break; // // Rule 271: StatementExpression ::= PostIncrementExpression // case 271: break; // // Rule 272: StatementExpression ::= PostDecrementExpression // case 272: break; // // Rule 273: StatementExpression ::= MethodInvocation // case 273: break; // // Rule 274: StatementExpression ::= ClassInstanceCreationExpression // case 274: break; // // Rule 275: AssertStatement ::= assert Expression SEMICOLON // case 275: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Assert(pos(), a)); break; } // // Rule 276: AssertStatement ::= assert Expression COLON Expression SEMICOLON // case 276: { Expr a = (Expr) btParser.getSym(2), b = (Expr) btParser.getSym(4); btParser.setSym1(nf.Assert(pos(), a, b)); break; } // // Rule 277: SwitchStatement ::= switch LPAREN Expression RPAREN SwitchBlock // case 277: { Expr a = (Expr) btParser.getSym(3); List b = (List) btParser.getSym(5); btParser.setSym1(nf.Switch(pos(), a, b)); break; } // // Rule 278: SwitchBlock ::= LBRACE SwitchBlockStatementGroupsopt SwitchLabelsopt RBRACE // case 278: { List l = (List) btParser.getSym(2), l2 = (List) btParser.getSym(3); l.addAll(l2); // btParser.setSym1(l); break; } // // Rule 279: SwitchBlockStatementGroups ::= SwitchBlockStatementGroup // case 279: break; // // Rule 280: SwitchBlockStatementGroups ::= SwitchBlockStatementGroups SwitchBlockStatementGroup // case 280: { List l = (List) btParser.getSym(1), l2 = (List) btParser.getSym(2); l.addAll(l2); // btParser.setSym1(l); break; } // // Rule 281: SwitchBlockStatementGroup ::= SwitchLabels BlockStatements // case 281: { List l = new TypedList(new LinkedList(), SwitchElement.class, false); List l1 = (List) btParser.getSym(1), l2 = (List) btParser.getSym(2); l.addAll(l1); l.add(nf.SwitchBlock(pos(), l2)); btParser.setSym1(l); break; } // // Rule 282: SwitchLabels ::= SwitchLabel // case 282: { List l = new TypedList(new LinkedList(), Case.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 283: SwitchLabels ::= SwitchLabels SwitchLabel // case 283: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(2)); //btParser.setSym1(l); break; } // // Rule 284: SwitchLabel ::= case ConstantExpression COLON // case 284: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Case(pos(), a)); break; } // // Rule 285: SwitchLabel ::= case EnumConstant COLON // case 285: bad_rule = 285; break; // // Rule 286: SwitchLabel ::= default COLON // case 286: { btParser.setSym1(nf.Default(pos())); break; } // // Rule 287: EnumConstant ::= identifier // case 287: bad_rule = 287; break; // // Rule 288: WhileStatement ::= while LPAREN Expression RPAREN Statement // case 288: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.While(pos(), a, b)); break; } // // Rule 289: WhileStatementNoShortIf ::= while LPAREN Expression RPAREN StatementNoShortIf // case 289: { Expr a = (Expr) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.While(pos(), a, b)); break; } // // Rule 290: DoStatement ::= do Statement while LPAREN Expression RPAREN SEMICOLON // case 290: { Stmt a = (Stmt) btParser.getSym(2); Expr b = (Expr) btParser.getSym(5); btParser.setSym1(nf.Do(pos(), a, b)); break; } // // Rule 291: ForStatement ::= BasicForStatement // case 291: break; // // Rule 292: ForStatement ::= EnhancedForStatement // case 292: break; // // Rule 293: BasicForStatement ::= for LPAREN ForInitopt SEMICOLON Expressionopt SEMICOLON ForUpdateopt RPAREN Statement // case 293: { List a = (List) btParser.getSym(3); Expr b = (Expr) btParser.getSym(5); List c = (List) btParser.getSym(7); Stmt d = (Stmt) btParser.getSym(9); btParser.setSym1(nf.For(pos(), a, b, c, d)); break; } // // Rule 294: ForStatementNoShortIf ::= for LPAREN ForInitopt SEMICOLON Expressionopt SEMICOLON ForUpdateopt RPAREN StatementNoShortIf // case 294: { List a = (List) btParser.getSym(3); Expr b = (Expr) btParser.getSym(5); List c = (List) btParser.getSym(7); Stmt d = (Stmt) btParser.getSym(9); btParser.setSym1(nf.For(pos(), a, b, c, d)); break; } // // Rule 295: ForInit ::= StatementExpressionList // case 295: break; // // Rule 296: ForInit ::= LocalVariableDeclaration // case 296: { List l = new TypedList(new LinkedList(), ForInit.class, false), l2 = (List) btParser.getSym(1); l.addAll(l2); //btParser.setSym1(l); break; } // // Rule 297: ForUpdate ::= StatementExpressionList // case 297: break; // // Rule 298: StatementExpressionList ::= StatementExpression // case 298: { List l = new TypedList(new LinkedList(), Eval.class, false); Expr a = (Expr) btParser.getSym(1); l.add(nf.Eval(pos(), a)); btParser.setSym1(l); break; } // // Rule 299: StatementExpressionList ::= StatementExpressionList COMMA StatementExpression // case 299: { List l = (List) btParser.getSym(1); Expr a = (Expr) btParser.getSym(3); l.add(nf.Eval(pos(), a)); //btParser.setSym1(l); break; } // // Rule 300: BreakStatement ::= break identifieropt SEMICOLON // case 300: { Name a = (Name) btParser.getSym(2); if (a == null) btParser.setSym1(nf.Break(pos())); else btParser.setSym1(nf.Break(pos(), a.toString())); break; } // // Rule 301: ContinueStatement ::= continue identifieropt SEMICOLON // case 301: { Name a = (Name) btParser.getSym(2); if (a == null) btParser.setSym1(nf.Continue(pos())); else btParser.setSym1(nf.Continue(pos(), a.toString())); break; } // // Rule 302: ReturnStatement ::= return Expressionopt SEMICOLON // case 302: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Return(pos(), a)); break; } // // Rule 303: ThrowStatement ::= throw Expression SEMICOLON // case 303: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Throw(pos(), a)); break; } // // Rule 304: SynchronizedStatement ::= synchronized LPAREN Expression RPAREN Block // case 304: { Expr a = (Expr) btParser.getSym(3); Block b = (Block) btParser.getSym(5); btParser.setSym1(nf.Synchronized(pos(), a, b)); break; } // // Rule 305: TryStatement ::= try Block Catches // case 305: { Block a = (Block) btParser.getSym(2); List b = (List) btParser.getSym(3); btParser.setSym1(nf.Try(pos(), a, b)); break; } // // Rule 306: TryStatement ::= try Block Catchesopt Finally // case 306: { Block a = (Block) btParser.getSym(2); List b = (List) btParser.getSym(3); Block c = (Block) btParser.getSym(4); btParser.setSym1(nf.Try(pos(), a, b, c)); break; } // // Rule 307: Catches ::= CatchClause // case 307: { List l = new TypedList(new LinkedList(), Catch.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 308: Catches ::= Catches CatchClause // case 308: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(2)); //btParser.setSym1(l); break; } // // Rule 309: CatchClause ::= catch LPAREN FormalParameter RPAREN Block // case 309: { Formal a = (Formal) btParser.getSym(3); Block b = (Block) btParser.getSym(5); btParser.setSym1(nf.Catch(pos(), a, b)); break; } // // Rule 310: Finally ::= finally Block // case 310: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 311: Primary ::= PrimaryNoNewArray // case 311: break; // // Rule 312: Primary ::= ArrayCreationExpression // case 312: break; // // Rule 313: PrimaryNoNewArray ::= Literal // case 313: break; // // Rule 314: PrimaryNoNewArray ::= Type DOT class // case 314: { Object o = btParser.getSym(1); if (o instanceof Name) { Name a = (Name) o; btParser.setSym1(nf.ClassLit(pos(), a.toType())); } else if (o instanceof TypeNode) { TypeNode a = (TypeNode) o; btParser.setSym1(nf.ClassLit(pos(), a)); } else if (o instanceof CanonicalTypeNode) { CanonicalTypeNode a = (CanonicalTypeNode) o; btParser.setSym1(nf.ClassLit(pos(), a)); } else assert(false); break; } // // Rule 315: PrimaryNoNewArray ::= void DOT class // case 315: { btParser.setSym1(nf.ClassLit(pos(), nf.CanonicalTypeNode(pos(btParser.getToken(1)), ts.Void()))); break; } // // Rule 316: PrimaryNoNewArray ::= this // case 316: { btParser.setSym1(nf.This(pos())); break; } // // Rule 317: PrimaryNoNewArray ::= ClassName DOT this // case 317: { Name a = (Name) btParser.getSym(1); btParser.setSym1(nf.This(pos(), a.toType())); break; } // // Rule 318: PrimaryNoNewArray ::= LPAREN Expression RPAREN // case 318: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 319: PrimaryNoNewArray ::= ClassInstanceCreationExpression // case 319: break; // // Rule 320: PrimaryNoNewArray ::= FieldAccess // case 320: break; // // Rule 321: PrimaryNoNewArray ::= MethodInvocation // case 321: break; // // Rule 322: PrimaryNoNewArray ::= ArrayAccess // case 322: break; // // Rule 323: Literal ::= IntegerLiteral // case 323: { // TODO: remove any prefix (such as 0x) polyglot.lex.IntegerLiteral a = int_lit(btParser.getToken(1), 10); btParser.setSym1(nf.IntLit(pos(), IntLit.INT, a.getValue().intValue())); break; } // // Rule 324: Literal ::= LongLiteral // case 324: { // TODO: remove any suffix (such as L) or prefix (such as 0x) polyglot.lex.LongLiteral a = long_lit(btParser.getToken(1), 10); btParser.setSym1(nf.IntLit(pos(), IntLit.LONG, a.getValue().longValue())); break; } // // Rule 325: Literal ::= FloatingPointLiteral // case 325: { // TODO: remove any suffix (such as F) polyglot.lex.FloatLiteral a = float_lit(btParser.getToken(1)); btParser.setSym1(nf.FloatLit(pos(), FloatLit.FLOAT, a.getValue().floatValue())); break; } // // Rule 326: Literal ::= DoubleLiteral // case 326: { // TODO: remove any suffix (such as D) polyglot.lex.DoubleLiteral a = double_lit(btParser.getToken(1)); btParser.setSym1(nf.FloatLit(pos(), FloatLit.DOUBLE, a.getValue().doubleValue())); break; } // // Rule 327: Literal ::= BooleanLiteral // case 327: { polyglot.lex.BooleanLiteral a = boolean_lit(btParser.getToken(1)); btParser.setSym1(nf.BooleanLit(pos(), a.getValue().booleanValue())); break; } // // Rule 328: Literal ::= CharacterLiteral // case 328: { polyglot.lex.CharacterLiteral a = char_lit(btParser.getToken(1)); btParser.setSym1(nf.CharLit(pos(), a.getValue().charValue())); break; } // // Rule 329: Literal ::= StringLiteral // case 329: { String s = prsStream.getName(btParser.getToken(1)); btParser.setSym1(nf.StringLit(pos(), s.substring(1, s.length() - 2))); break; } // // Rule 330: Literal ::= null // case 330: { btParser.setSym1(nf.NullLit(pos())); break; } // // Rule 331: BooleanLiteral ::= true // case 331: break; // // Rule 332: BooleanLiteral ::= false // case 332: break; // // Rule 333: ClassInstanceCreationExpression ::= new ClassOrInterfaceType LPAREN ArgumentListopt RPAREN ClassBodyopt // case 333: {//vj assert(btParser.getSym(2) == null); TypeNode a = (TypeNode) btParser.getSym(2);//vj assert(btParser.getSym(4) == null); List b = (List) btParser.getSym(4); ClassBody c = (ClassBody) btParser.getSym(6); if (c == null) btParser.setSym1(nf.New(pos(), a, b)); else btParser.setSym1(nf.New(pos(), a, b, c)); break; } // // Rule 334: ClassInstanceCreationExpression ::= Primary DOT new identifier LPAREN ArgumentListopt RPAREN ClassBodyopt // case 334: { Expr a = (Expr) btParser.getSym(1);//vj assert(btParser.getSym(2) == null); Name b = new Name(nf, ts, pos(), id(btParser.getToken(4)).getIdentifier());//vj assert(btParser.getSym(4) == null); List c = (List) btParser.getSym(6); ClassBody d = (ClassBody) btParser.getSym(8); if (d == null) btParser.setSym1(nf.New(pos(), a, b.toType(), c)); else btParser.setSym1(nf.New(pos(), a, b.toType(), c, d)); break; } // // Rule 335: ClassInstanceCreationExpression ::= AmbiguousName DOT new identifier LPAREN ArgumentListopt RPAREN ClassBodyopt // case 335: { Name a = (Name) btParser.getSym(1);//vj assert(btParser.getSym(4) == null); Name b = new Name(nf, ts, pos(), id(btParser.getToken(4)).getIdentifier());//vj assert(btParser.getSym(6) == null); List c = (List) btParser.getSym(6); ClassBody d = (ClassBody) btParser.getSym(8); if (d == null) btParser.setSym1(nf.New(pos(), a.toExpr(), b.toType(), c)); else btParser.setSym1(nf.New(pos(), a.toExpr(), b.toType(), c, d)); break; } // // Rule 336: ArgumentList ::= Expression // case 336: { List l = new TypedList(new LinkedList(), Expr.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 337: ArgumentList ::= ArgumentList COMMA Expression // case 337: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(3)); //btParser.setSym1(l); break; } // // Rule 338: DimExprs ::= DimExpr // case 338: { List l = new TypedList(new LinkedList(), Expr.class, false); l.add(btParser.getSym(1)); btParser.setSym1(l); break; } // // Rule 339: DimExprs ::= DimExprs DimExpr // case 339: { List l = (List) btParser.getSym(1); l.add(btParser.getSym(2)); //btParser.setSym1(l); break; } // // Rule 340: DimExpr ::= LBRACKET Expression RBRACKET // case 340: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(a.position(pos())); break; } // // Rule 341: Dims ::= LBRACKET RBRACKET // case 341: { btParser.setSym1(new Integer(1)); break; } // // Rule 342: Dims ::= Dims LBRACKET RBRACKET // case 342: { Integer a = (Integer) btParser.getSym(1); btParser.setSym1(new Integer(a.intValue() + 1)); break; } // // Rule 343: FieldAccess ::= Primary DOT identifier // case 343: { Expr a = (Expr) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(nf.Field(pos(), a, b.getIdentifier())); break; } // // Rule 344: FieldAccess ::= super DOT identifier // case 344: { polyglot.lex.Identifier a = id(btParser.getToken(3)); btParser.setSym1(nf.Field(pos(btParser.getLastToken()), nf.Super(pos(btParser.getFirstToken())), a.getIdentifier())); break; } // // Rule 345: FieldAccess ::= ClassName DOT super DOT identifier // case 345: { Name a = (Name) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); btParser.setSym1(nf.Field(pos(btParser.getLastToken()), nf.Super(pos(btParser.getFirstToken(3)), a.toType()), b.getIdentifier())); break; } // // Rule 346: MethodInvocation ::= MethodName LPAREN ArgumentListopt RPAREN // case 346: { Name a = (Name) btParser.getSym(1); List b = (List) btParser.getSym(3); btParser.setSym1(nf.Call(pos(), a.prefix == null ? null : a.prefix.toReceiver(), a.name, b)); break; } // // Rule 347: MethodInvocation ::= Primary DOT identifier LPAREN ArgumentListopt RPAREN // case 347: { Expr a = (Expr) btParser.getSym(1);//vj assert(btParser.getSym(3) == null); polyglot.lex.Identifier b = id(btParser.getToken(3)); List c = (List) btParser.getSym(5); btParser.setSym1(nf.Call(pos(), a, b.getIdentifier(), c)); break; } // // Rule 348: MethodInvocation ::= super DOT identifier LPAREN ArgumentListopt RPAREN // case 348: {//vj assert(btParser.getSym(3) == null); polyglot.lex.Identifier b = id(btParser.getToken(3)); List c = (List) btParser.getSym(5); btParser.setSym1(nf.Call(pos(), nf.Super(pos(btParser.getFirstToken())), b.getIdentifier(), c)); break; } // // Rule 349: MethodInvocation ::= ClassName DOT super DOT identifier LPAREN ArgumentListopt RPAREN // case 349: { Name a = (Name) btParser.getSym(1);//vj assert(btParser.getSym(5) == null); polyglot.lex.Identifier b = id(btParser.getToken(5)); List c = (List) btParser.getSym(7); btParser.setSym1(nf.Call(pos(), nf.Super(pos(btParser.getFirstToken(3)), a.toType()), b.getIdentifier(), c)); break; } // // Rule 350: PostfixExpression ::= Primary // case 350: break; // // Rule 351: PostfixExpression ::= ExpressionName // case 351: { Name a = (Name) btParser.getSym(1); btParser.setSym1(a.toExpr()); break; } // // Rule 352: PostfixExpression ::= PostIncrementExpression // case 352: break; // // Rule 353: PostfixExpression ::= PostDecrementExpression // case 353: break; // // Rule 354: PostIncrementExpression ::= PostfixExpression PLUS_PLUS // case 354: { Expr a = (Expr) btParser.getSym(1); btParser.setSym1(nf.Unary(pos(), a, Unary.POST_INC)); break; } // // Rule 355: PostDecrementExpression ::= PostfixExpression MINUS_MINUS // case 355: { Expr a = (Expr) btParser.getSym(1); btParser.setSym1(nf.Unary(pos(), a, Unary.POST_DEC)); break; } // // Rule 356: UnaryExpression ::= PreIncrementExpression // case 356: break; // // Rule 357: UnaryExpression ::= PreDecrementExpression // case 357: break; // // Rule 358: UnaryExpression ::= PLUS UnaryExpression // case 358: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.POS, a)); break; } // // Rule 359: UnaryExpression ::= MINUS UnaryExpression // case 359: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.NEG, a)); break; } // // Rule 361: PreIncrementExpression ::= PLUS_PLUS UnaryExpression // case 361: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.PRE_INC, a)); break; } // // Rule 362: PreDecrementExpression ::= MINUS_MINUS UnaryExpression // case 362: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.PRE_DEC, a)); break; } // // Rule 363: UnaryExpressionNotPlusMinus ::= PostfixExpression // case 363: break; // // Rule 364: UnaryExpressionNotPlusMinus ::= TWIDDLE UnaryExpression // case 364: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.BIT_NOT, a)); break; } // // Rule 365: UnaryExpressionNotPlusMinus ::= NOT UnaryExpression // case 365: { Expr a = (Expr) btParser.getSym(2); btParser.setSym1(nf.Unary(pos(), Unary.NOT, a)); break; } // // Rule 367: MultiplicativeExpression ::= UnaryExpression // case 367: break; // // Rule 368: MultiplicativeExpression ::= MultiplicativeExpression MULTIPLY UnaryExpression // case 368: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.MUL, b)); break; } // // Rule 369: MultiplicativeExpression ::= MultiplicativeExpression DIVIDE UnaryExpression // case 369: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.DIV, b)); break; } // // Rule 370: MultiplicativeExpression ::= MultiplicativeExpression REMAINDER UnaryExpression // case 370: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.MOD, b)); break; } // // Rule 371: AdditiveExpression ::= MultiplicativeExpression // case 371: break; // // Rule 372: AdditiveExpression ::= AdditiveExpression PLUS MultiplicativeExpression // case 372: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.ADD, b)); break; } // // Rule 373: AdditiveExpression ::= AdditiveExpression MINUS MultiplicativeExpression // case 373: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.SUB, b)); break; } // // Rule 374: ShiftExpression ::= AdditiveExpression // case 374: break; // // Rule 375: ShiftExpression ::= ShiftExpression LEFT_SHIFT AdditiveExpression // case 375: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.SHL, b)); break; } // // Rule 376: ShiftExpression ::= ShiftExpression GREATER GREATER AdditiveExpression // case 376: { // TODO: make sure that there is no space between the ">" signs Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(4); btParser.setSym1(nf.Binary(pos(), a, Binary.SHR, b)); break; } // // Rule 377: ShiftExpression ::= ShiftExpression GREATER GREATER GREATER AdditiveExpression // case 377: { // TODO: make sure that there is no space between the ">" signs Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(5); btParser.setSym1(nf.Binary(pos(), a, Binary.USHR, b)); break; } // // Rule 378: RelationalExpression ::= ShiftExpression // case 378: break; // // Rule 379: RelationalExpression ::= RelationalExpression LESS ShiftExpression // case 379: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.LT, b)); break; } // // Rule 380: RelationalExpression ::= RelationalExpression GREATER ShiftExpression // case 380: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.GT, b)); break; } // // Rule 381: RelationalExpression ::= RelationalExpression LESS_EQUAL ShiftExpression // case 381: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.LE, b)); break; } // // Rule 382: RelationalExpression ::= RelationalExpression GREATER EQUAL ShiftExpression // case 382: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(4); btParser.setSym1(nf.Binary(pos(), a, Binary.GE, b)); break; } // // Rule 383: EqualityExpression ::= RelationalExpression // case 383: break; // // Rule 384: EqualityExpression ::= EqualityExpression EQUAL_EQUAL RelationalExpression // case 384: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.EQ, b)); break; } // // Rule 385: EqualityExpression ::= EqualityExpression NOT_EQUAL RelationalExpression // case 385: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.NE, b)); break; } // // Rule 386: AndExpression ::= EqualityExpression // case 386: break; // // Rule 387: AndExpression ::= AndExpression AND EqualityExpression // case 387: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.BIT_AND, b)); break; } // // Rule 388: ExclusiveOrExpression ::= AndExpression // case 388: break; // // Rule 389: ExclusiveOrExpression ::= ExclusiveOrExpression XOR AndExpression // case 389: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.BIT_XOR, b)); break; } // // Rule 390: InclusiveOrExpression ::= ExclusiveOrExpression // case 390: break; // // Rule 391: InclusiveOrExpression ::= InclusiveOrExpression OR ExclusiveOrExpression // case 391: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.BIT_OR, b)); break; } // // Rule 392: ConditionalAndExpression ::= InclusiveOrExpression // case 392: break; // // Rule 393: ConditionalAndExpression ::= ConditionalAndExpression AND_AND InclusiveOrExpression // case 393: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.COND_AND, b)); break; } // // Rule 394: ConditionalOrExpression ::= ConditionalAndExpression // case 394: break; // // Rule 395: ConditionalOrExpression ::= ConditionalOrExpression OR_OR ConditionalAndExpression // case 395: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3); btParser.setSym1(nf.Binary(pos(), a, Binary.COND_OR, b)); break; } // // Rule 396: ConditionalExpression ::= ConditionalOrExpression // case 396: break; // // Rule 397: ConditionalExpression ::= ConditionalOrExpression QUESTION Expression COLON ConditionalExpression // case 397: { Expr a = (Expr) btParser.getSym(1), b = (Expr) btParser.getSym(3), c = (Expr) btParser.getSym(5); btParser.setSym1(nf.Conditional(pos(), a, b, c)); break; } // // Rule 398: AssignmentExpression ::= ConditionalExpression // case 398: break; // // Rule 399: AssignmentExpression ::= Assignment // case 399: break; // // Rule 400: Assignment ::= LeftHandSide AssignmentOperator AssignmentExpression // case 400: { Expr a = (Expr) btParser.getSym(1); Assign.Operator b = (Assign.Operator) btParser.getSym(2); Expr c = (Expr) btParser.getSym(3); btParser.setSym1(nf.Assign(pos(), a, b, c)); break; } // // Rule 401: LeftHandSide ::= ExpressionName // case 401: { Name a = (Name) btParser.getSym(1); btParser.setSym1(a.toExpr()); break; } // // Rule 402: LeftHandSide ::= FieldAccess // case 402: break; // // Rule 403: LeftHandSide ::= ArrayAccess // case 403: break; // // Rule 404: AssignmentOperator ::= EQUAL // case 404: { btParser.setSym1(Assign.ASSIGN); break; } // // Rule 405: AssignmentOperator ::= MULTIPLY_EQUAL // case 405: { btParser.setSym1(Assign.MUL_ASSIGN); break; } // // Rule 406: AssignmentOperator ::= DIVIDE_EQUAL // case 406: { btParser.setSym1(Assign.DIV_ASSIGN); break; } // // Rule 407: AssignmentOperator ::= REMAINDER_EQUAL // case 407: { btParser.setSym1(Assign.MOD_ASSIGN); break; } // // Rule 408: AssignmentOperator ::= PLUS_EQUAL // case 408: { btParser.setSym1(Assign.ADD_ASSIGN); break; } // // Rule 409: AssignmentOperator ::= MINUS_EQUAL // case 409: { btParser.setSym1(Assign.SUB_ASSIGN); break; } // // Rule 410: AssignmentOperator ::= LEFT_SHIFT_EQUAL // case 410: { btParser.setSym1(Assign.SHL_ASSIGN); break; } // // Rule 411: AssignmentOperator ::= GREATER GREATER EQUAL // case 411: { // TODO: make sure that there is no space between the ">" signs btParser.setSym1(Assign.SHR_ASSIGN); break; } // // Rule 412: AssignmentOperator ::= GREATER GREATER GREATER EQUAL // case 412: { // TODO: make sure that there is no space between the ">" signs btParser.setSym1(Assign.USHR_ASSIGN); break; } // // Rule 413: AssignmentOperator ::= AND_EQUAL // case 413: { btParser.setSym1(Assign.BIT_AND_ASSIGN); break; } // // Rule 414: AssignmentOperator ::= XOR_EQUAL // case 414: { btParser.setSym1(Assign.BIT_XOR_ASSIGN); break; } // // Rule 415: AssignmentOperator ::= OR_EQUAL // case 415: { btParser.setSym1(Assign.BIT_OR_ASSIGN); break; } // // Rule 416: Expression ::= AssignmentExpression // case 416: break; // // Rule 417: ConstantExpression ::= Expression // case 417: break; // // Rule 418: Dimsopt ::= // case 418: { btParser.setSym1(new Integer(0)); break; } // // Rule 419: Dimsopt ::= Dims // case 419: break; // // Rule 420: Catchesopt ::= // case 420: { btParser.setSym1(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 421: Catchesopt ::= Catches // case 421: break; // // Rule 422: identifieropt ::= // case 422: btParser.setSym1(null); break; // // Rule 423: identifieropt ::= identifier // case 423: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 424: ForUpdateopt ::= // case 424: { btParser.setSym1(new TypedList(new LinkedList(), ForUpdate.class, false)); break; } // // Rule 425: ForUpdateopt ::= ForUpdate // case 425: break; // // Rule 426: Expressionopt ::= // case 426: btParser.setSym1(null); break; // // Rule 427: Expressionopt ::= Expression // case 427: break; // // Rule 428: ForInitopt ::= // case 428: { btParser.setSym1(new TypedList(new LinkedList(), ForInit.class, false)); break; } // // Rule 429: ForInitopt ::= ForInit // case 429: break; // // Rule 430: SwitchLabelsopt ::= // case 430: { btParser.setSym1(new TypedList(new LinkedList(), Case.class, false)); break; } // // Rule 431: SwitchLabelsopt ::= SwitchLabels // case 431: break; // // Rule 432: SwitchBlockStatementGroupsopt ::= // case 432: { btParser.setSym1(new TypedList(new LinkedList(), SwitchElement.class, false)); break; } // // Rule 433: SwitchBlockStatementGroupsopt ::= SwitchBlockStatementGroups // case 433: break; // // Rule 434: VariableModifiersopt ::= // case 434: { btParser.setSym1(Flags.NONE); break; } // // Rule 435: VariableModifiersopt ::= VariableModifiers // case 435: break; // // Rule 436: VariableInitializersopt ::= // case 436: btParser.setSym1(null); break; // // Rule 437: VariableInitializersopt ::= VariableInitializers // case 437: break; // // Rule 438: ElementValuesopt ::= // case 438: btParser.setSym1(null); break; // // Rule 439: ElementValuesopt ::= ElementValues // case 439: bad_rule = 439; break; // // Rule 440: ElementValuePairsopt ::= // case 440: btParser.setSym1(null); break; // // Rule 441: ElementValuePairsopt ::= ElementValuePairs // case 441: bad_rule = 441; break; // // Rule 442: DefaultValueopt ::= // case 442: btParser.setSym1(null); break; // // Rule 443: DefaultValueopt ::= DefaultValue // case 443: break; // // Rule 444: AnnotationTypeElementDeclarationsopt ::= // case 444: btParser.setSym1(null); break; // // Rule 445: AnnotationTypeElementDeclarationsopt ::= AnnotationTypeElementDeclarations // case 445: bad_rule = 445; break; // // Rule 446: AbstractMethodModifiersopt ::= // case 446: { btParser.setSym1(Flags.NONE); break; } // // Rule 447: AbstractMethodModifiersopt ::= AbstractMethodModifiers // case 447: break; // // Rule 448: ConstantModifiersopt ::= // case 448: { btParser.setSym1(Flags.NONE); break; } // // Rule 449: ConstantModifiersopt ::= ConstantModifiers // case 449: break; // // Rule 450: InterfaceMemberDeclarationsopt ::= // case 450: { btParser.setSym1(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 451: InterfaceMemberDeclarationsopt ::= InterfaceMemberDeclarations // case 451: break; // // Rule 452: ExtendsInterfacesopt ::= // case 452: { btParser.setSym1(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 453: ExtendsInterfacesopt ::= ExtendsInterfaces // case 453: break; // // Rule 454: InterfaceModifiersopt ::= // case 454: { btParser.setSym1(Flags.NONE); break; } // // Rule 455: InterfaceModifiersopt ::= InterfaceModifiers // case 455: break; // // Rule 456: ClassBodyopt ::= // case 456: btParser.setSym1(null); break; // // Rule 457: ClassBodyopt ::= ClassBody // case 457: break; // // Rule 458: Argumentsopt ::= // case 458: btParser.setSym1(null); break; // // Rule 459: Argumentsopt ::= Arguments // case 459: bad_rule = 459; break; // // Rule 460: EnumBodyDeclarationsopt ::= // case 460: btParser.setSym1(null); break; // // Rule 461: EnumBodyDeclarationsopt ::= EnumBodyDeclarations // case 461: bad_rule = 461; break; // // Rule 462: ,opt ::= // case 462: btParser.setSym1(null); break; // // Rule 463: ,opt ::= COMMA // case 463: break; // // Rule 464: EnumConstantsopt ::= // case 464: btParser.setSym1(null); break; // // Rule 465: EnumConstantsopt ::= EnumConstants // case 465: bad_rule = 465; break; // // Rule 466: ArgumentListopt ::= // case 466: { btParser.setSym1(new TypedList(new LinkedList(), Catch.class, false)); break; } // // Rule 467: ArgumentListopt ::= ArgumentList // case 467: break; // // Rule 468: BlockStatementsopt ::= // case 468: { btParser.setSym1(new TypedList(new LinkedList(), Stmt.class, false)); break; } // // Rule 469: BlockStatementsopt ::= BlockStatements // case 469: break; // // Rule 470: ExplicitConstructorInvocationopt ::= // case 470: btParser.setSym1(null); break; // // Rule 471: ExplicitConstructorInvocationopt ::= ExplicitConstructorInvocation // case 471: break; // // Rule 472: ConstructorModifiersopt ::= // case 472: { btParser.setSym1(Flags.NONE); break; } // // Rule 473: ConstructorModifiersopt ::= ConstructorModifiers // case 473: break; // // Rule 474: ...opt ::= // case 474: btParser.setSym1(null); break; // // Rule 475: ...opt ::= ELLIPSIS // case 475: break; // // Rule 476: FormalParameterListopt ::= // case 476: { btParser.setSym1(new TypedList(new LinkedList(), Formal.class, false)); break; } // // Rule 477: FormalParameterListopt ::= FormalParameterList // case 477: break; // // Rule 478: Throwsopt ::= // case 478: { btParser.setSym1(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 479: Throwsopt ::= Throws // case 479: break; // // Rule 480: MethodModifiersopt ::= // case 480: { btParser.setSym1(Flags.NONE); break; } // // Rule 481: MethodModifiersopt ::= MethodModifiers // case 481: break; // // Rule 482: FieldModifiersopt ::= // case 482: { btParser.setSym1(Flags.NONE); break; } // // Rule 483: FieldModifiersopt ::= FieldModifiers // case 483: break; // // Rule 484: ClassBodyDeclarationsopt ::= // case 484: { btParser.setSym1(new TypedList(new LinkedList(), ClassMember.class, false)); break; } // // Rule 485: ClassBodyDeclarationsopt ::= ClassBodyDeclarations // case 485: break; // // Rule 486: Interfacesopt ::= // case 486: { btParser.setSym1(new TypedList(new LinkedList(), TypeNode.class, false)); break; } // // Rule 487: Interfacesopt ::= Interfaces // case 487: break; // // Rule 488: Superopt ::= // case 488: btParser.setSym1(null); break; // // Rule 489: Superopt ::= Super // case 489: break; // // Rule 490: TypeParametersopt ::= // case 490: btParser.setSym1(null); break; // // Rule 491: TypeParametersopt ::= TypeParameters // case 491: break; // // Rule 492: ClassModifiersopt ::= // case 492: { btParser.setSym1(Flags.NONE); break; } // // Rule 493: ClassModifiersopt ::= ClassModifiers // case 493: break; // // Rule 494: Annotationsopt ::= // case 494: btParser.setSym1(null); break; // // Rule 495: Annotationsopt ::= Annotations // case 495: bad_rule = 495; break; // // Rule 496: TypeDeclarationsopt ::= // case 496: { btParser.setSym1(new TypedList(new LinkedList(), TopLevelDecl.class, false)); break; } // // Rule 497: TypeDeclarationsopt ::= TypeDeclarations // case 497: break; // // Rule 498: ImportDeclarationsopt ::= // case 498: { btParser.setSym1(new TypedList(new LinkedList(), Import.class, false)); break; } // // Rule 499: ImportDeclarationsopt ::= ImportDeclarations // case 499: break; // // Rule 500: PackageDeclarationopt ::= // case 500: btParser.setSym1(null); break; // // Rule 501: PackageDeclarationopt ::= PackageDeclaration // case 501: break; // // Rule 502: WildcardBoundsOpt ::= // case 502: btParser.setSym1(null); break; // // Rule 503: WildcardBoundsOpt ::= WildcardBounds // case 503: bad_rule = 503; break; // // Rule 504: AdditionalBoundListopt ::= // case 504: btParser.setSym1(null); break; // // Rule 505: AdditionalBoundListopt ::= AdditionalBoundList // case 505: bad_rule = 505; break; // // Rule 506: TypeBoundopt ::= // case 506: btParser.setSym1(null); break; // // Rule 507: TypeBoundopt ::= TypeBound // case 507: bad_rule = 507; break; // // Rule 508: TypeArgumentsopt ::= // case 508: btParser.setSym1(null); break; // // Rule 509: TypeArgumentsopt ::= TypeArguments // case 509: bad_rule = 509; break; // // Rule 510: Commentsopt ::= // case 510: btParser.setSym1(null); break; // // Rule 511: Commentsopt ::= Comments // case 511: break; // // Rule 512: Type ::= DataType PlaceTypeSpecifieropt // case 512: { assert(btParser.getSym(2) == null); //btParser.setSym1(); break; } // // Rule 513: Type ::= nullable LESS Type GREATER // case 513: { TypeNode a = (TypeNode) btParser.getSym(3); btParser.setSym1(nf.Nullable(pos(), a)); break; } // // Rule 514: Type ::= future LESS Type GREATER // case 514: { TypeNode a = (TypeNode) btParser.getSym(3); btParser.setSym1(nf.Future(pos(), a)); break; } // // Rule 515: Type ::= boxed LESS Type GREATER // case 515: bad_rule = 515; break; // // Rule 516: Type ::= fun LESS Type COMMA Type GREATER // case 516: bad_rule = 516; break; // // Rule 517: DataType ::= PrimitiveType // case 517: break; // // Rule 518: DataType ::= ClassOrInterfaceType // case 518: break; // // Rule 519: DataType ::= ArrayType // case 519: break; // // Rule 520: PlaceTypeSpecifier ::= AT PlaceType // case 520: bad_rule = 520; break; // // Rule 521: PlaceType ::= place // case 521: break; // // Rule 522: PlaceType ::= activity // case 522: break; // // Rule 523: PlaceType ::= method // case 523: break; // // Rule 524: PlaceType ::= current // case 524: break; // // Rule 525: PlaceType ::= PlaceExpression // case 525: break; // // Rule 526: ClassOrInterfaceType ::= TypeName DepParametersopt // case 526: { Name a = (Name) btParser.getSym(1); TypeNode t = a.toType(); DepParameterExpr b = (DepParameterExpr) btParser.getSym(2); btParser.setSym1(nf.ParametricTypeNode(pos(), t, b)); break; } // // Rule 527: DepParameters ::= LPAREN DepParameterExpr RPAREN // case 527: break; // // Rule 528: DepParameterExpr ::= ArgumentList WhereClauseopt // case 528: { List a = (List) btParser.getSym(1); Expr b = (Expr) btParser.getSym(2); btParser.setSym1(nf.DepParameterExpr(pos(),a,b)); break; } // // Rule 529: DepParameterExpr ::= WhereClause // case 529: { Expr b = (Expr) btParser.getSym(1); btParser.setSym1(nf.DepParameterExpr(pos(), null, b)); break; } // // Rule 530: WhereClause ::= COLON Expression // case 530: break; // // Rule 532: X10ArrayType ::= Type LBRACKET DOT RBRACKET // case 532: { TypeNode a = (TypeNode) btParser.getSym(1); TypeNode t = nf.X10ArrayTypeNode(pos(), a, false, null); btParser.setSym1(t); break; } // // Rule 533: X10ArrayType ::= Type reference LBRACKET DOT RBRACKET // case 533: { TypeNode a = (TypeNode) btParser.getSym(1); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, false, null)); break; } // // Rule 534: X10ArrayType ::= Type value LBRACKET DOT RBRACKET // case 534: { TypeNode a = (TypeNode) btParser.getSym(1); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, true, null)); break; } // // Rule 535: X10ArrayType ::= Type LBRACKET DepParameterExpr RBRACKET // case 535: { TypeNode a = (TypeNode) btParser.getSym(1); DepParameterExpr b = (DepParameterExpr) btParser.getSym(2); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, false, b)); break; } // // Rule 536: X10ArrayType ::= Type reference LBRACKET DepParameterExpr RBRACKET // case 536: { TypeNode a = (TypeNode) btParser.getSym(1); DepParameterExpr b = (DepParameterExpr) btParser.getSym(2); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, false, b)); break; } // // Rule 537: X10ArrayType ::= Type value LBRACKET DepParameterExpr RBRACKET // case 537: { TypeNode a = (TypeNode) btParser.getSym(1); DepParameterExpr b = (DepParameterExpr) btParser.getSym(2); btParser.setSym1(nf.X10ArrayTypeNode(pos(), a, true, b)); break; } // // Rule 538: ObjectKind ::= value // case 538: bad_rule = 538; break; // // Rule 539: ObjectKind ::= reference // case 539: bad_rule = 539; break; // // Rule 540: MethodModifier ::= atomic // case 540: { btParser.setSym1(Flags.ATOMIC); break; } // // Rule 541: MethodModifier ::= extern // case 541: { btParser.setSym1(Flags.NATIVE); break; } // // Rule 542: ClassDeclaration ::= ValueClassDeclaration // case 542: break; // // Rule 543: ValueClassDeclaration ::= ClassModifiersopt value identifier Superopt Interfacesopt ClassBody // case 543: { Flags a = (Flags) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); TypeNode c = (TypeNode) btParser.getSym(4); List d = (List) btParser.getSym(5); ClassBody e = (ClassBody) btParser.getSym(6); btParser.setSym1(nf.ValueClassDecl(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier(), c, d, e)); break; } // // Rule 544: ValueClassDeclaration ::= ClassModifiersopt value class identifier Superopt Interfacesopt ClassBody // case 544: { Flags a = (Flags) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(4)); TypeNode c = (TypeNode) btParser.getSym(5); List d = (List) btParser.getSym(6); ClassBody e = (ClassBody) btParser.getSym(7); btParser.setSym1(nf.ValueClassDecl(pos(btParser.getFirstToken(), btParser.getLastToken()), a, b.getIdentifier(), c, d, e)); break; } // // Rule 545: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt LBRACKET RBRACKET ArrayInitializer // case 545: { TypeNode a = (TypeNode) btParser.getSym(2); ArrayInit d = (ArrayInit) btParser.getSym(6); // btParser.setSym1(nf.ArrayConstructor(pos(), a, false, null, d)); btParser.setSym1(nf.NewArray(pos(), a, 1, d)); break; } // // Rule 546: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt LBRACKET Expression RBRACKET // case 546: { TypeNode a = (TypeNode) btParser.getSym(2); boolean unsafe = (btParser.getSym(3) != null); Expr c = (Expr) btParser.getSym(5); btParser.setSym1(nf.ArrayConstructor(pos(), a, unsafe, false, c, null)); break; } // // Rule 547: ArrayCreationExpression ::= new ArrayBaseType Unsafeopt LBRACKET Expression RBRACKET Expression // case 547: { TypeNode a = (TypeNode) btParser.getSym(2); boolean unsafe = (btParser.getSym(3) != null); Expr c = (Expr) btParser.getSym(5); Expr d = (Expr) btParser.getSym(7); btParser.setSym1(nf.ArrayConstructor(pos(), a, unsafe, false, c, d)); break; } // // Rule 548: ArrayCreationExpression ::= new ArrayBaseType value Unsafeopt LBRACKET Expression RBRACKET // case 548: { TypeNode a = (TypeNode) btParser.getSym(2); boolean unsafe = (btParser.getSym(3) != null); Expr c = (Expr) btParser.getSym(5); btParser.setSym1(nf.ArrayConstructor(pos(), a, unsafe, true, c, null)); break; } // // Rule 549: ArrayCreationExpression ::= new ArrayBaseType value Unsafeopt LBRACKET Expression RBRACKET Expression // case 549: { TypeNode a = (TypeNode) btParser.getSym(2); boolean unsafe = (btParser.getSym(3) != null); Expr c = (Expr) btParser.getSym(5); Expr d = (Expr) btParser.getSym(7); btParser.setSym1(nf.ArrayConstructor(pos(), a, unsafe, true, c, d)); break; } // // Rule 550: ArrayBaseType ::= PrimitiveType // case 550: break; // // Rule 551: ArrayBaseType ::= ClassOrInterfaceType // case 551: break; // // Rule 552: ArrayAccess ::= ExpressionName LBRACKET ArgumentList RBRACKET // case 552: { Name e = (Name) btParser.getSym(1); List b = (List) btParser.getSym(3); if (b.size() == 1) btParser.setSym1(nf.X10ArrayAccess1(pos(), e.toExpr(), (Expr) b.get(0))); else btParser.setSym1(nf.X10ArrayAccess(pos(), e.toExpr(), b)); break; } // // Rule 553: ArrayAccess ::= PrimaryNoNewArray LBRACKET ArgumentList RBRACKET // case 553: { Expr a = (Expr) btParser.getSym(1); List b = (List) btParser.getSym(3); if (b.size() == 1) btParser.setSym1(nf.X10ArrayAccess1(pos(), a, (Expr) b.get(0))); else btParser.setSym1(nf.X10ArrayAccess(pos(), a, b)); break; } // // Rule 554: Statement ::= NowStatement // case 554: break; // // Rule 555: Statement ::= ClockedStatement // case 555: break; // // Rule 556: Statement ::= AsyncStatement // case 556: break; // // Rule 557: Statement ::= AtomicStatement // case 557: break; // // Rule 558: Statement ::= WhenStatement // case 558: break; // // Rule 559: Statement ::= ForEachStatement // case 559: break; // // Rule 560: Statement ::= AtEachStatement // case 560: break; // // Rule 561: Statement ::= FinishStatement // case 561: break; // // Rule 562: StatementWithoutTrailingSubstatement ::= NextStatement // case 562: break; // // Rule 563: StatementWithoutTrailingSubstatement ::= AwaitStatement // case 563: break; // // Rule 564: StatementNoShortIf ::= NowStatementNoShortIf // case 564: break; // // Rule 565: StatementNoShortIf ::= ClockedStatementNoShortIf // case 565: break; // // Rule 566: StatementNoShortIf ::= AsyncStatementNoShortIf // case 566: break; // // Rule 567: StatementNoShortIf ::= AtomicStatementNoShortIf // case 567: break; // // Rule 568: StatementNoShortIf ::= WhenStatementNoShortIf // case 568: break; // // Rule 569: StatementNoShortIf ::= ForEachStatementNoShortIf // case 569: break; // // Rule 570: StatementNoShortIf ::= AtEachStatementNoShortIf // case 570: break; // // Rule 571: StatementNoShortIf ::= FinishStatementNoShortIf // case 571: break; // // Rule 572: NowStatement ::= now LPAREN Clock RPAREN Statement // case 572: { Name a = (Name) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Now(pos(), a.toExpr(), b)); break; } // // Rule 573: ClockedStatement ::= clocked LPAREN ClockList RPAREN Statement // case 573: { List a = (List) btParser.getSym(3); Block b = (Block) btParser.getSym(5); btParser.setSym1(nf.Clocked(pos(), a, b)); break; } // // Rule 574: AsyncStatement ::= async PlaceExpressionSingleListopt Statement // case 574: { Expr e = (Expr) btParser.getSym(2); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Async(pos(), (e == null ? nf.Here(pos(btParser.getFirstToken())) : e), b)); break; } // // Rule 575: AsyncStatement ::= async LPAREN here RPAREN Statement // case 575: { Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Async(pos(), nf.Here(pos(btParser.getFirstToken())), b)); break; } // // Rule 576: AtomicStatement ::= atomic PlaceExpressionSingleListopt Statement // case 576: { Expr e = (Expr) btParser.getSym(2); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Atomic(pos(), (e == null ? nf.Here(pos(btParser.getFirstToken())) : e), b)); break; } // // Rule 577: AtomicStatement ::= atomic LPAREN here RPAREN Statement // case 577: { Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Atomic(pos(), nf.Here(pos(btParser.getFirstToken())), b)); break; } // // Rule 578: WhenStatement ::= when LPAREN Expression RPAREN Statement // case 578: { Expr e = (Expr) btParser.getSym(3); Stmt s = (Stmt) btParser.getSym(5); btParser.setSym1(nf.When(pos(), e,s)); break; } // // Rule 579: WhenStatement ::= WhenStatement or LPAREN Expression RPAREN Statement // case 579: { When w = (When) btParser.getSym(1); Expr e = (Expr) btParser.getSym(4); Stmt s = (Stmt) btParser.getSym(6); w.add(new When_c.Branch_c(e,s)); btParser.setSym1(w); break; } // // Rule 580: ForEachStatement ::= foreach LPAREN FormalParameter COLON Expression RPAREN Statement // case 580: { Formal f = (Formal) btParser.getSym(3); Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.ForEach(pos(), f, e, s); btParser.setSym1(x); break; } // // Rule 581: AtEachStatement ::= ateach LPAREN FormalParameter COLON Expression RPAREN Statement // case 581: { Formal f = (Formal) btParser.getSym(3); Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.AtEach(pos(), f, e, s); btParser.setSym1(x); break; } // // Rule 582: EnhancedForStatement ::= for LPAREN FormalParameter COLON Expression RPAREN Statement // case 582: { Formal f = (Formal) btParser.getSym(3); Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.ForLoop(pos(), f, e, s); btParser.setSym1(x); break; } // // Rule 583: FinishStatement ::= finish Statement // case 583: { Stmt b = (Stmt) btParser.getSym(2); btParser.setSym1(nf.Finish(pos(), b)); break; } // // Rule 584: NowStatementNoShortIf ::= now LPAREN Clock RPAREN StatementNoShortIf // case 584: { Name a = (Name) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Now(pos(), a.toExpr(), b)); break; } // // Rule 585: ClockedStatementNoShortIf ::= clocked LPAREN ClockList RPAREN StatementNoShortIf // case 585: { List a = (List) btParser.getSym(3); Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Clocked(pos(), a, b)); break; } // // Rule 586: AsyncStatementNoShortIf ::= async PlaceExpressionSingleListopt StatementNoShortIf // case 586: { Expr e = (Expr) btParser.getSym(2); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Async(pos(), (e == null ? nf.Here(pos(btParser.getFirstToken())) : e), b)); break; } // // Rule 587: AsyncStatementNoShortIf ::= async LPAREN here RPAREN StatementNoShortIf // case 587: { Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Async(pos(), nf.Here(pos(btParser.getFirstToken())), b)); break; } // // Rule 588: AtomicStatementNoShortIf ::= atomic StatementNoShortIf // case 588: { Expr e = (Expr) btParser.getSym(2); Stmt b = (Stmt) btParser.getSym(3); btParser.setSym1(nf.Atomic(pos(), (e == null ? nf.Here(pos(btParser.getFirstToken())) : e), b)); break; } // // Rule 589: AtomicStatementNoShortIf ::= atomic LPAREN here RPAREN StatementNoShortIf // case 589: { Stmt b = (Stmt) btParser.getSym(5); btParser.setSym1(nf.Atomic(pos(), nf.Here(pos(btParser.getFirstToken())), b)); break; } // // Rule 590: WhenStatementNoShortIf ::= when LPAREN Expression RPAREN StatementNoShortIf // case 590: { Expr e = (Expr) btParser.getSym(3); Stmt s = (Stmt) btParser.getSym(5); btParser.setSym1(nf.When(pos(), e,s)); break; } // // Rule 591: WhenStatementNoShortIf ::= WhenStatement or LPAREN Expression RPAREN StatementNoShortIf // case 591: { When w = (When) btParser.getSym(1); Expr e = (Expr) btParser.getSym(4); Stmt s = (Stmt) btParser.getSym(6); w.add(new When_c.Branch_c(e,s)); btParser.setSym1(w); break; } // // Rule 592: ForEachStatementNoShortIf ::= foreach LPAREN FormalParameter COLON Expression RPAREN StatementNoShortIf // case 592: { Formal f = (Formal) btParser.getSym(3); Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.ForEach(pos(), f, e, s); btParser.setSym1(x); break; } // // Rule 593: AtEachStatementNoShortIf ::= ateach LPAREN FormalParameter COLON Expression RPAREN StatementNoShortIf // case 593: { Formal f = (Formal) btParser.getSym(3); Expr e = (Expr) btParser.getSym(5); Stmt s = (Stmt) btParser.getSym(7); X10Loop x = nf.AtEach(pos(), f, e, s); btParser.setSym1(x); break; } // // Rule 594: FinishStatementNoShortIf ::= finish StatementNoShortIf // case 594: { Stmt b = (Stmt) btParser.getSym(2); btParser.setSym1(nf.Finish(pos(), b)); break; } // // Rule 595: PlaceExpressionSingleList ::= LPAREN PlaceExpression RPAREN // case 595: { btParser.setSym1(btParser.getSym(2)); break; } // // Rule 596: PlaceExpression ::= here // case 596: { btParser.setSym1(nf.Here(pos(btParser.getFirstToken()))); break; } // // Rule 597: PlaceExpression ::= this // case 597: { btParser.setSym1(nf.Field(pos(btParser.getFirstToken()), nf.This(pos(btParser.getFirstToken())), "place")); break; } // // Rule 598: PlaceExpression ::= Expression // case 598: break; // // Rule 599: PlaceExpression ::= ArrayAccess // case 599: bad_rule = 599; break; // // Rule 600: NextStatement ::= next SEMICOLON // case 600: { btParser.setSym1(nf.Next(pos())); break; } // // Rule 601: AwaitStatement ::= await Expression SEMICOLON // case 601: { Expr e = (Expr) btParser.getSym(2); btParser.setSym1(nf.Await(pos(), e)); break; } // // Rule 602: ClockList ::= Clock // case 602: { Name c = (Name) btParser.getSym(1); List l = new TypedList(new LinkedList(), Expr.class, false); l.add(c.toExpr()); btParser.setSym1(l); break; } // // Rule 603: ClockList ::= ClockList COMMA Clock // case 603: { List l = (List) btParser.getSym(1); Name c = (Name) btParser.getSym(3); l.add(c.toExpr()); // btParser.setSym1(l); break; } // // Rule 604: Clock ::= identifier // case 604: { polyglot.lex.Identifier a = id(btParser.getToken(1)); btParser.setSym1(new Name(nf, ts, pos(), a.getIdentifier())); break; } // // Rule 605: CastExpression ::= LPAREN Type RPAREN UnaryExpressionNotPlusMinus // case 605: { TypeNode a = (TypeNode) btParser.getSym(2); Expr b = (Expr) btParser.getSym(4); btParser.setSym1(nf.Cast(pos(), a, b)); break; } // // Rule 606: MethodInvocation ::= Primary ARROW identifier LPAREN ArgumentListopt RPAREN // case 606: { Expr a = (Expr) btParser.getSym(1); polyglot.lex.Identifier b = id(btParser.getToken(3)); List c = (List) btParser.getSym(5); btParser.setSym1(nf.RemoteCall(pos(), a, b.getIdentifier(), c)); break; } // // Rule 607: RelationalExpression ::= RelationalExpression instanceof Type // case 607: { Expr a = (Expr) btParser.getSym(1); TypeNode b = (TypeNode) btParser.getSym(3); btParser.setSym1(nf.Instanceof(pos(), a, b)); break; } // // Rule 608: ExpressionName ::= here // case 608: { btParser.setSym1(new Name(nf, ts, pos(), "here"){ public Expr toExpr() { return nf.Here(pos); } }); break; } // // Rule 609: Primary ::= FutureExpression // case 609: break; // // Rule 610: FutureExpression ::= future PlaceExpressionSingleListopt LBRACE Expression RBRACE // case 610: { Expr e1 = (Expr) btParser.getSym(2), e2 = (Expr) btParser.getSym(4); btParser.setSym1(nf.Future(pos(), (e1 == null ? nf.Here(pos(btParser.getFirstToken())) : e1), e2)); break; } // // Rule 611: FutureExpression ::= future LPAREN here RPAREN LBRACE Expression RBRACE // case 611: { Expr e2 = (Expr) btParser.getSym(6); btParser.setSym1(nf.Future(pos(), nf.Here(pos(btParser.getFirstToken(3))), e2)); break; } // // Rule 612: FunExpression ::= fun Type LPAREN FormalParameterListopt RPAREN LBRACE Expression RBRACE // case 612: bad_rule = 612; break; // // Rule 613: MethodInvocation ::= MethodName LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN // case 613: bad_rule = 613; break; // // Rule 614: MethodInvocation ::= Primary DOT identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN // case 614: bad_rule = 614; break; // // Rule 615: MethodInvocation ::= super DOT identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN // case 615: bad_rule = 615; break; // // Rule 616: MethodInvocation ::= ClassName DOT super DOT identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN // case 616: bad_rule = 616; break; // // Rule 617: MethodInvocation ::= TypeName DOT identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN // case 617: bad_rule = 617; break; // // Rule 618: ClassInstanceCreationExpression ::= new ClassOrInterfaceType LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN ClassBodyopt // case 618: bad_rule = 618; break; // // Rule 619: ClassInstanceCreationExpression ::= Primary DOT new identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN ClassBodyopt // case 619: bad_rule = 619; break; // // Rule 620: ClassInstanceCreationExpression ::= AmbiguousName DOT new identifier LPAREN ArgumentListopt RPAREN LPAREN ArgumentListopt RPAREN ClassBodyopt // case 620: bad_rule = 620; break; // // Rule 621: PlaceTypeSpecifieropt ::= // case 621: btParser.setSym1(null); break; // // Rule 622: PlaceTypeSpecifieropt ::= PlaceTypeSpecifier // case 622: break; // // Rule 623: DepParametersopt ::= // case 623: btParser.setSym1(null); break; // // Rule 624: DepParametersopt ::= DepParameters // case 624: break; // // Rule 625: WhereClauseopt ::= // case 625: btParser.setSym1(null); break; // // Rule 626: WhereClauseopt ::= WhereClause // case 626: break; // // Rule 627: ObjectKindopt ::= // case 627: btParser.setSym1(null); break; // // Rule 628: ObjectKindopt ::= ObjectKind // case 628: break; // // Rule 629: ArrayInitializeropt ::= // case 629: btParser.setSym1(null); break; // // Rule 630: ArrayInitializeropt ::= ArrayInitializer // case 630: break; // // Rule 631: ConcreteDistributionopt ::= // case 631: btParser.setSym1(null); break; // // Rule 632: ConcreteDistributionopt ::= ConcreteDistribution // case 632: break; // // Rule 633: PlaceExpressionSingleListopt ::= // case 633: btParser.setSym1(null); break; // // Rule 634: PlaceExpressionSingleListopt ::= PlaceExpressionSingleList // case 634: break; // // Rule 635: ArgumentListopt ::= // case 635: btParser.setSym1(null); break; // // Rule 636: ArgumentListopt ::= ArgumentList // case 636: break; // // Rule 637: DepParametersopt ::= // case 637: btParser.setSym1(null); break; // // Rule 638: DepParametersopt ::= DepParameters // case 638: break; // // Rule 639: Unsafeopt ::= // case 639: btParser.setSym1(null); break; // // Rule 640: Unsafeopt ::= unsafe // case 640: { btParser.setSym1(nf.Here(pos(btParser.getFirstToken(1)))); break; } default: break; } return; }
1832 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1832/a0ef25c366453f5aff64a3c99c145987b17c8f23/X10Parser.java/buggy/x10.compiler/src/x10/parser/X10Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1720, 1803, 12, 474, 1720, 1854, 13, 565, 288, 3639, 309, 261, 8759, 67, 5345, 480, 374, 13, 5411, 327, 31, 3639, 1620, 261, 5345, 1854, 13, 3639, 288, 2398, 368, 5411, 368, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1720, 1803, 12, 474, 1720, 1854, 13, 565, 288, 3639, 309, 261, 8759, 67, 5345, 480, 374, 13, 5411, 327, 31, 3639, 1620, 261, 5345, 1854, 13, 3639, 288, 2398, 368, 5411, 368, ...
start = saveStart + index[Transliterator.START];
start = saveStart + index.start;
protected void handleKeyTyped(KeyEvent e) { char ch = e.getKeyChar(); if (translit == null) { super.handleKeyTyped(e); return; } // ------------------------------------------------------------ // The following case motivates the two lines that recompute // start and cursor below. // " " // a b c q r|s t u m m // 0 1 2 3 4 5 6 7 8 9 // 0 1 2 // start 3, cursor 5, sel 6 -> { 0, 3, 2 } // : new int[] { 0, sel - start, cursor - start }; // sz>99|9 // " { " // a b c q r 9 9|9 t u m m // 0 1 2 3 4 5 6 7 8 9 a b // 0 1 2 3 4 // { 3, 5, 4 } -> start 6, cursor 7, sel 8 // : start += index[0]; // : cursor = start + index[2] - index[0]; // ------------------------------------------------------------ // Need to save start because calls to replaceRange will update // start and cursor. int saveStart = start; ReplaceableString buf = new ReplaceableString(); buf.getStringBuffer().append(getText().substring(start, getSelectionStart())); int[] index = new int[] { 0, getSelectionStart() - start, cursor - start}; StringBuffer log = null; if (DEBUG) { log = new StringBuffer(); log.append("start " + start + ", cursor " + cursor); log.append(", sel " + getSelectionStart()); log.append(", {" + index[0] + ", " + index[1] + ", " + index[2] + "}, "); log.append('"' + buf.toString() + "\" + '" + ch + "' -> \""); } translit.keyboardTransliterate(buf, index, ch); replaceRange(buf.toString(), start, getSelectionEnd()); // At this point start has been changed by the callback to // resetTransliteratorStart() via replaceRange() -- so use our // local copy, saveStart. // The START index is zero-based. On entry to keyboardTransliterate(), // it was zero. We can therefore just add it to our original // getText()-based index value of start (in saveStart) to get // the new getText()-based start. start = saveStart + index[Transliterator.START]; // Make the cursor getText()-based. The CURSOR index is zero-based. cursor = start + index[Transliterator.CURSOR] - index[Transliterator.START]; if (DEBUG) { String out = buf.toString(); log.append(out.substring(0, index[Transliterator.START])). append('{'). append(out.substring(index[Transliterator.START], index[Transliterator.CURSOR])). append('|'). append(out.substring(index[Transliterator.CURSOR])). append('"'); log.append(", {" + index[0] + ", " + index[1] + ", " + index[2] + "}, "); log.append("start " + start + ", cursor " + cursor); log.append(", sel " + getSelectionStart()); System.out.println(escape(log.toString())); } }
5620 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5620/6978562befd1c4efbb829b9befb80540800061a2/TransliteratingTextComponent.java/buggy/icu4j/src/com/ibm/text/components/TransliteratingTextComponent.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1640, 653, 11985, 12, 653, 1133, 425, 13, 288, 3639, 1149, 462, 273, 425, 18, 588, 653, 2156, 5621, 3639, 309, 261, 5379, 305, 422, 446, 13, 288, 5411, 2240, 18, 4110, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1640, 653, 11985, 12, 653, 1133, 425, 13, 288, 3639, 1149, 462, 273, 425, 18, 588, 653, 2156, 5621, 3639, 309, 261, 5379, 305, 422, 446, 13, 288, 5411, 2240, 18, 4110, ...
AST tmp203_AST = null; tmp203_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp203_AST);
AST tmp206_AST = null; tmp206_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp206_AST);
public final void forwardAxisSpecifier() throws RecognitionException, TokenStreamException { returnAST = null; ASTPair currentAST = new ASTPair(); AST forwardAxisSpecifier_AST = null; switch ( LA(1)) { case LITERAL_child: { AST tmp201_AST = null; tmp201_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp201_AST); match(LITERAL_child); forwardAxisSpecifier_AST = (AST)currentAST.root; break; } case LITERAL_self: { AST tmp202_AST = null; tmp202_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp202_AST); match(LITERAL_self); forwardAxisSpecifier_AST = (AST)currentAST.root; break; } case LITERAL_attribute: { AST tmp203_AST = null; tmp203_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp203_AST); match(LITERAL_attribute); forwardAxisSpecifier_AST = (AST)currentAST.root; break; } case LITERAL_descendant: { AST tmp204_AST = null; tmp204_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp204_AST); match(LITERAL_descendant); forwardAxisSpecifier_AST = (AST)currentAST.root; break; } case 100: { AST tmp205_AST = null; tmp205_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp205_AST); match(100); forwardAxisSpecifier_AST = (AST)currentAST.root; break; } case 101: { AST tmp206_AST = null; tmp206_AST = astFactory.create(LT(1)); astFactory.addASTChild(currentAST, tmp206_AST); match(101); forwardAxisSpecifier_AST = (AST)currentAST.root; break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } returnAST = forwardAxisSpecifier_AST; }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/be23536931f66ed6f552941df1c272ed48eeb933/XPathParser2.java/buggy/src/org/exist/parser/XPathParser2.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 5104, 6558, 21416, 1435, 1216, 9539, 16, 3155, 1228, 503, 288, 9506, 202, 2463, 9053, 273, 446, 31, 202, 202, 9053, 4154, 783, 9053, 273, 394, 9183, 4154, 5621, 202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 5104, 6558, 21416, 1435, 1216, 9539, 16, 3155, 1228, 503, 288, 9506, 202, 2463, 9053, 273, 446, 31, 202, 202, 9053, 4154, 783, 9053, 273, 394, 9183, 4154, 5621, 202, ...
logger.severe("PUMS variable: " + PUMSVariable + " not found in data dictionary."); logger.severe("exiting getPUMSVariableIndex(" + PUMSVariable + ") in DataDictionary."); logger.severe("exit (10)");
logger.fatal("PUMS variable: " + PUMSVariable + " not found in data dictionary."); logger.fatal("exiting getPUMSVariableIndex(" + PUMSVariable + ") in DataDictionary."); logger.fatal("exit (10)");
private int getPUMSVariableIndex (ArrayList attribs, String PUMSVariable) { int index = -1; for (int i=0; i < attribs.size(); i++) { if (((DataDictionaryRecord)attribs.get(i)).variable.equals(PUMSVariable)) { index = i; break; } } if (index < 0) { logger.severe("PUMS variable: " + PUMSVariable + " not found in data dictionary."); logger.severe("exiting getPUMSVariableIndex(" + PUMSVariable + ") in DataDictionary."); logger.severe("exit (10)"); System.exit (10); } return index; }
1120 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1120/ca343a527cdff81450c6dae2017cdd7596546cc4/DataDictionary.java/buggy/src/java/com/pb/morpc/synpop/pums/DataDictionary.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 509, 1689, 2799, 55, 3092, 1016, 261, 19558, 11460, 16, 514, 453, 2799, 55, 3092, 13, 288, 5411, 509, 770, 273, 300, 21, 31, 7734, 364, 261, 474, 277, 33, 20, 31, 277, 411, 1146...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1689, 2799, 55, 3092, 1016, 261, 19558, 11460, 16, 514, 453, 2799, 55, 3092, 13, 288, 5411, 509, 770, 273, 300, 21, 31, 7734, 364, 261, 474, 277, 33, 20, 31, 277, 411, 1146...
public int open() { if (getShell() == null) { // create the window create(); } // limit the shell size to the display size constrainShellSize(); // open the window getShell().setVisible(true); return getReturnCode(); }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/f4ddecebf080b9a12fc07328e132394359390e74/ProgressFloatingWindow.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressFloatingWindow.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 474, 3190, 1435, 95, 202, 202, 430, 12, 588, 13220, 1435, 631, 2011, 15329, 1082, 202, 759, 27350, 546, 359, 1700, 1082, 202, 2640, 5621, 202, 202, 97, 202, 202, 759, 3595, 45...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 474, 3190, 1435, 95, 202, 202, 430, 12, 588, 13220, 1435, 631, 2011, 15329, 1082, 202, 759, 27350, 546, 359, 1700, 1082, 202, 2640, 5621, 202, 202, 97, 202, 202, 759, 3595, 45...
return RubyBoolean.newBoolean(runtime, valueMap.containsValue(value));
return getRuntime().newBoolean(valueMap.containsValue(value));
public RubyBoolean has_value(IRubyObject value) { return RubyBoolean.newBoolean(runtime, valueMap.containsValue(value)); }
48072 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48072/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyHash.java/clean/src/org/jruby/RubyHash.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 5507, 711, 67, 1132, 12, 7937, 10340, 921, 460, 13, 288, 3639, 327, 18814, 7675, 2704, 5507, 12, 1132, 863, 18, 12298, 620, 12, 1132, 10019, 565, 289, 2, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 19817, 5507, 711, 67, 1132, 12, 7937, 10340, 921, 460, 13, 288, 3639, 327, 18814, 7675, 2704, 5507, 12, 1132, 863, 18, 12298, 620, 12, 1132, 10019, 565, 289, 2, -100, -100, -100, ...
SimpleFieldSet sfs = new SimpleFieldSet();
SimpleFieldSet sfs = new SimpleFieldSet(false);
public SimpleFieldSet getFieldSet() { SimpleFieldSet sfs = new SimpleFieldSet(); if(ident != null) sfs.put("Identifier", ident); sfs.put("Code", Integer.toString(code)); sfs.put("CodeDescription", codeDescription()); if(extra != null) sfs.put("ExtraDescription", extra); sfs.put("Fatal", Boolean.toString(fatal)); return sfs; }
52909 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52909/2d2b5012400f5bab60d65d3d26d67efa9cf7d1d6/ProtocolErrorMessage.java/buggy/src/freenet/node/fcp/ProtocolErrorMessage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 4477, 974, 694, 5031, 694, 1435, 288, 202, 202, 5784, 974, 694, 272, 2556, 273, 394, 4477, 974, 694, 5621, 202, 202, 430, 12, 6392, 480, 446, 13, 1082, 202, 87, 2556, 18, 45...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4477, 974, 694, 5031, 694, 1435, 288, 202, 202, 5784, 974, 694, 272, 2556, 273, 394, 4477, 974, 694, 5621, 202, 202, 430, 12, 6392, 480, 446, 13, 1082, 202, 87, 2556, 18, 45...
if (element instanceof IContainer) {
if (element instanceof IContainer && checkExpandedState && (state || elementGrayChecked)) {
private void setSubtreeChecked(IContainer container, boolean state, boolean checkExpandedState) { if (container.isAccessible() == false || tree.getExpandedState(container) == false && checkExpandedState) { return; } IResource[] members = null; try { members = container.members(); } catch (CoreException ex) { handleCoreException(ex, getShell(), WorkbenchMessages.getString("ResourceWorkingSetPage.error"), //$NON-NLS-1$ WorkbenchMessages.getString("ResourceWorkingSetPage.error.updateCheckedState")); //$NON-NLS-1$ } for (int i = members.length - 1; i >= 0; i--) { IResource element = members[i]; if (state) { tree.setChecked(element, true); tree.setGrayed(element, false); } else { tree.setGrayChecked(element, false); } if (element instanceof IContainer) { setSubtreeChecked((IContainer) element, state, true); } } }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/e066b68a6337aa0879878c3c443197848a9ca7cb/ResourceWorkingSetPage.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/ResourceWorkingSetPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 444, 18615, 11454, 12, 45, 2170, 1478, 16, 1250, 919, 16, 1250, 866, 17957, 1119, 13, 288, 202, 202, 430, 261, 3782, 18, 291, 10451, 1435, 422, 629, 747, 2151, 18, 588, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 444, 18615, 11454, 12, 45, 2170, 1478, 16, 1250, 919, 16, 1250, 866, 17957, 1119, 13, 288, 202, 202, 430, 261, 3782, 18, 291, 10451, 1435, 422, 629, 747, 2151, 18, 588, ...
if (SHOW_ALL && factory.log != null) factory.log.println("unparsedEntityDecl: " + name
if (SHOW_ALL && log != null) log.println("unparsedEntityDecl: " + name
public void unparsedEntityDecl (String name, String publicId, String systemId, String notationName) { if (SHOW_ALL && factory.log != null) factory.log.println("unparsedEntityDecl: " + name + ", " + publicId + ", " + systemId + ", " + notationName ); }
27800 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27800/b564efdc1b9b9276d7806f7fc7f3b60bd26dfa31/CLDRFile.java/clean/tools/java/org/unicode/cldr/util/CLDRFile.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 27810, 1943, 3456, 261, 780, 508, 16, 514, 1071, 548, 16, 13491, 514, 30083, 16, 514, 12155, 461, 13, 288, 5411, 309, 261, 16677, 67, 4685, 597, 613, 480, 446, 13, 613, 18, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 27810, 1943, 3456, 261, 780, 508, 16, 514, 1071, 548, 16, 13491, 514, 30083, 16, 514, 12155, 461, 13, 288, 5411, 309, 261, 16677, 67, 4685, 597, 613, 480, 446, 13, 613, 18, ...
MRJSession.out = System.out; MRJSession.err = System.err;
File consoleFile = new File(consolePath); File parentFile = consoleFile.getParentFile(); if (!parentFile.exists()) { parentFile.mkdirs(); } MRJSession.out = System.out; MRJSession.err = System.err;
public static void open(String consolePath) throws IOException { String pluginHome = System.getProperty("netscape.oji.plugin.home"); Properties props = loadProperties(pluginHome); boolean append = Boolean.valueOf(props.getProperty("netscape.oji.plugin.console.append")).booleanValue(); // redirect I/O to specified file. MRJSession.out = System.out; MRJSession.err = System.err; console = new PrintStream(new FileOutputStream(consolePath, append)); System.setOut(console); System.setErr(console); Date date = new Date(); String version = props.getProperty("netscape.oji.plugin.version"); System.out.println("MRJ Plugin for Mac OS X v" + version); System.out.println("[starting up Java Applet Security @ " + date + "]"); // bring up MRJ Applet Security. if (System.getSecurityManager() == null) { try { // make sure that the classes in MRJPlugin.jar are granted all permissions. // see p. 117 of "Inside Java 2 Platform Security" for more information. System.setProperty("java.security.policy", "file:" + pluginHome + "/MRJPlugin.policy"); String name = props.getProperty("netscape.oji.plugin.security"); SecurityManager securityManager = (SecurityManager) Class.forName(name).newInstance(); System.setSecurityManager(securityManager); } catch (Exception ex) { } } }
51996 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51996/d13cda72a38dba7f0427de2b0f79b81d41d9e273/MRJSession.java/clean/plugin/oji/MRJCarbon/plugin/Source/MRJSession.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 1696, 12, 780, 2983, 743, 13, 1216, 1860, 288, 3639, 514, 1909, 8684, 273, 2332, 18, 588, 1396, 2932, 2758, 12476, 18, 10089, 18, 4094, 18, 8712, 8863, 3639, 6183, 3458, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1696, 12, 780, 2983, 743, 13, 1216, 1860, 288, 3639, 514, 1909, 8684, 273, 2332, 18, 588, 1396, 2932, 2758, 12476, 18, 10089, 18, 4094, 18, 8712, 8863, 3639, 6183, 3458, ...
public void frameworkStopping() { super.frameworkStopping();
public void frameworkStopping(BundleContext context) { super.frameworkStopping(context);
public void frameworkStopping() { super.frameworkStopping(); stopping = true; new BundleStopper().stopBundles(); }
2516 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2516/36478d0215cba7b73573a7fe601ce82211ae6fa8/EclipseAdaptor.java/clean/bundles/org.eclipse.osgi/eclipseAdaptor/src/org/eclipse/core/runtime/adaptor/EclipseAdaptor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 8257, 21994, 1435, 288, 202, 202, 9565, 18, 12303, 21994, 5621, 202, 202, 5681, 1382, 273, 638, 31, 202, 202, 2704, 8539, 4947, 457, 7675, 5681, 16151, 5621, 202, 97, 2, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 8257, 21994, 1435, 288, 202, 202, 9565, 18, 12303, 21994, 5621, 202, 202, 5681, 1382, 273, 638, 31, 202, 202, 2704, 8539, 4947, 457, 7675, 5681, 16151, 5621, 202, 97, 2, ...
throw new IllegalArgumentException("no such item");
throw new IllegalArgumentException(Messages.getString("awt.73"));
public void remove(String item) { toolkit.lockAWT(); try { int index = items.indexOf(item); if (index < 0) { throw new IllegalArgumentException("no such item"); } remove(index); } finally { toolkit.unlockAWT(); } }
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/3b500ee5922bc7890c276ddee76f1520b369f2fd/List.java/buggy/modules/awt/src/main/java/common/java/awt/List.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1206, 12, 780, 761, 13, 288, 3639, 5226, 8691, 18, 739, 37, 8588, 5621, 3639, 775, 288, 5411, 509, 770, 273, 1516, 18, 31806, 12, 1726, 1769, 5411, 309, 261, 1615, 411, 374, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1206, 12, 780, 761, 13, 288, 3639, 5226, 8691, 18, 739, 37, 8588, 5621, 3639, 775, 288, 5411, 509, 770, 273, 1516, 18, 31806, 12, 1726, 1769, 5411, 309, 261, 1615, 411, 374, ...
namespaceURI = ""; localName = qname;
rootPrefix = ""; rootLocalName = rootQName; rootNamespaceURI = "";
public void readImpl(PipelineContext context, ContentHandler contentHandler) { try { // Read config Element config = readCacheInputAsDOM4J(context, INPUT_CONFIG).getRootElement(); String qname = config.element("root").getText(); String namespaceURI; String localName; // Get declared namespaces int columnPosition = qname.indexOf(':'); if (columnPosition == -1) { namespaceURI = ""; localName = qname; } else { String prefix = qname.substring(0, columnPosition); localName = qname.substring(columnPosition + 1); namespaceURI = null; for (Iterator i = config.elements("namespace").iterator(); i.hasNext();) { Element namespaceElement = (Element) i.next(); if (namespaceElement.attributeValue("prefix").equals(prefix)) { namespaceURI = namespaceElement.attributeValue("uri"); break; } } if (namespaceURI == null) throw new ValidationException("Undeclared namespace prefix '" + prefix + "'", (LocationData) config.getData()); } // Start document contentHandler.startDocument(); contentHandler.startElement(namespaceURI, localName, qname, XMLUtils.EMPTY_ATTRIBUTES); // Processor input processors for (Iterator i = getInputsByName(INPUT_DATA).iterator(); i.hasNext();) { ProcessorInput input = (ProcessorInput) i.next(); readInputAsSAX(context, input, new EmbeddedDocumentContentHandler(contentHandler)); } // End document contentHandler.endElement(namespaceURI, localName, qname); contentHandler.endDocument(); } catch (SAXException e) { throw new OXFException(e); } }
57229 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57229/62eabac7eb1abdc6a8498b9a67e23ed69ae6ceb7/AggregatorProcessor.java/clean/src/java/org/orbeon/oxf/processor/pipeline/AggregatorProcessor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 855, 2828, 12, 8798, 1042, 819, 16, 3697, 1503, 913, 1503, 13, 288, 7734, 775, 288, 10792, 368, 2720, 642, 10792, 3010, 642, 273, 855, 1649, 1210, 1463, 8168, 24, 46, 12, 24...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2398, 1071, 918, 855, 2828, 12, 8798, 1042, 819, 16, 3697, 1503, 913, 1503, 13, 288, 7734, 775, 288, 10792, 368, 2720, 642, 10792, 3010, 642, 273, 855, 1649, 1210, 1463, 8168, 24, 46, 12, 24...
return ((RCBaseMutator)ActivePlan.mutator());
return ((RCBaseMutator) ActivePlan.mutator());
public static final RCBaseMutator collector() { return ((RCBaseMutator)ActivePlan.mutator()); }
49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/57a34fa3e6e607d84b46e06082997a4771a25a85/RCBase.java/buggy/MMTk/src/org/mmtk/plan/refcount/RCBase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 727, 24206, 2171, 28410, 8543, 1435, 288, 565, 327, 14015, 11529, 2171, 28410, 13, 8857, 5365, 18, 10735, 639, 10663, 225, 289, 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, 0, 0, 0, 0, 0, 0, 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, 24206, 2171, 28410, 8543, 1435, 288, 565, 327, 14015, 11529, 2171, 28410, 13, 8857, 5365, 18, 10735, 639, 10663, 225, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100,...
try { afterMessage = bundle.getString("stripes.errors.afterMessage"); }
try { afterMessage = bundle.getString("stripes.messages.afterMessage"); }
public int doEndTag() throws JspException { try { List<Message> messages = getMessages(); if (messages != null && messages.size() > 0) { JspWriter writer = getPageContext().getOut(); // Output all errors in a standard format Locale locale = getPageContext().getRequest().getLocale(); ResourceBundle bundle = StripesFilter.getConfiguration() .getLocalizationBundleFactory().getErrorMessageBundle(locale); // Fetch the header and footer String header, footer, beforeMessage, afterMessage; try { header = bundle.getString("stripes.messages.header"); } catch (MissingResourceException mre) { header = DEFAULT_HEADER; } try { footer = bundle.getString("stripes.messages.footer"); } catch (MissingResourceException mre) { footer = DEFAULT_FOOTER; } try { beforeMessage = bundle.getString("stripes.messages.beforeMessage"); } catch (MissingResourceException mre) { beforeMessage = "<li>"; } try { afterMessage = bundle.getString("stripes.errors.afterMessage"); } catch (MissingResourceException mre) { afterMessage = "</li>"; } // Write out the error messages writer.write(header); for (Message message : messages) { writer.write(beforeMessage); writer.write(message.getMessage(locale)); writer.write(afterMessage); } writer.write(footer); } return EVAL_PAGE; } catch (IOException e) { throw new JspException("IOException encountered while writing messages " + "tag to the JspWriter.", e); } }
9306 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9306/ae09d72c24b16b38e5ad5a99fb627ce886967114/MessagesTag.java/buggy/stripes/src/net/sourceforge/stripes/tag/MessagesTag.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 741, 25633, 1435, 1216, 27485, 288, 3639, 775, 288, 5411, 987, 32, 1079, 34, 2743, 273, 20202, 5621, 5411, 309, 261, 6833, 480, 446, 597, 2743, 18, 1467, 1435, 405, 374, 13, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 741, 25633, 1435, 1216, 27485, 288, 3639, 775, 288, 5411, 987, 32, 1079, 34, 2743, 273, 20202, 5621, 5411, 309, 261, 6833, 480, 446, 597, 2743, 18, 1467, 1435, 405, 374, 13, ...
try {
try {
public ODStandardPanel(JDialog parent, AJSettings ajSettings, ConnectionSettings remote) { logger = Logger.getLogger(getClass()); try { this.remote = remote; this.parent = parent; this.ajSettings = ajSettings; init(); } catch (Exception e) { if (logger.isEnabledFor(Level.ERROR)) logger.error("Unbehandelte Exception", e); } }
13641 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13641/7bd97d0a77fb2ebf9f42039475411a894331cc02/ODStandardPanel.java/buggy/AJClientGUI/src/de/applejuicenet/client/gui/ODStandardPanel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 531, 40, 8336, 5537, 12, 46, 6353, 982, 16, 432, 46, 2628, 24787, 2628, 16, 4050, 2628, 2632, 13, 288, 3639, 1194, 273, 4242, 18, 588, 3328, 12, 588, 797, 10663, 3639, 775, 3639, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 531, 40, 8336, 5537, 12, 46, 6353, 982, 16, 432, 46, 2628, 24787, 2628, 16, 4050, 2628, 2632, 13, 288, 3639, 1194, 273, 4242, 18, 588, 3328, 12, 588, 797, 10663, 3639, 775, 3639, ...
combined = new ReportCombinedTemplateCreationEntry( ELEMENT_NAME_DATA, TOOL_TIP_DATA_REPORT_ITEM, IReportElementConstants.REPORT_ELEMENT_DATA, new ReportElementFactory( IReportElementConstants.REPORT_ELEMENT_DATA ), ReportPlatformUIImages.getImageDescriptor( IReportGraphicConstants.ICON_ELEMENT_DATA ), ReportPlatformUIImages.getImageDescriptor( IReportGraphicConstants.ICON_ELEMENT_DATA ), getAbstractToolHandleExtendsFromPalletName(IReportElementConstants.REPORT_ELEMENT_DATA) );
combined = new ReportCombinedTemplateCreationEntry( ELEMENT_NAME_TEXT, TOOL_TIP_TEXT_REPORT_ITEM, IReportElementConstants.REPORT_ELEMENT_TEXT, new ReportElementFactory( IReportElementConstants.REPORT_ELEMENT_TEXT ), ReportPlatformUIImages .getImageDescriptor( IReportGraphicConstants.ICON_ELEMENT_TEXT ), ReportPlatformUIImages .getImageDescriptor( IReportGraphicConstants.ICON_ELEMENT_TEXT ), getAbstractToolHandleExtendsFromPalletName( IReportElementConstants.REPORT_ELEMENT_TEXT ) );
private static PaletteContainer createContentCategory( ) { PaletteCategory category = new PaletteCategory( IPreferenceConstants.PALETTE_CONTENT, REPORT_ITEMS_LABEL, null ); List entries = new ArrayList( ); CombinedTemplateCreationEntry combined = new ReportCombinedTemplateCreationEntry( ELEMENT_NAME_LABEL, TOOL_TIP_LABEL_REPORT_ITEM, IReportElementConstants.REPORT_ELEMENT_LABEL, new ReportElementFactory( IReportElementConstants.REPORT_ELEMENT_LABEL ), ReportPlatformUIImages.getImageDescriptor( IReportGraphicConstants.ICON_ELEMENT_LABEL ), ReportPlatformUIImages.getImageDescriptor( IReportGraphicConstants.ICON_ELEMENT_LABEL ), getAbstractToolHandleExtendsFromPalletName(IReportElementConstants.REPORT_ELEMENT_LABEL) ); entries.add( combined ); combined = new ReportCombinedTemplateCreationEntry( ELEMENT_NAME_TEXT, TOOL_TIP_TEXT_REPORT_ITEM, IReportElementConstants.REPORT_ELEMENT_TEXT, new ReportElementFactory( IReportElementConstants.REPORT_ELEMENT_TEXT ), ReportPlatformUIImages.getImageDescriptor( IReportGraphicConstants.ICON_ELEMENT_TEXT ), ReportPlatformUIImages.getImageDescriptor( IReportGraphicConstants.ICON_ELEMENT_TEXT ), getAbstractToolHandleExtendsFromPalletName(IReportElementConstants.REPORT_ELEMENT_TEXT) ); entries.add( combined ); combined = new ReportCombinedTemplateCreationEntry( ELEMENT_NAME_DATA, TOOL_TIP_DATA_REPORT_ITEM, IReportElementConstants.REPORT_ELEMENT_DATA, new ReportElementFactory( IReportElementConstants.REPORT_ELEMENT_DATA ), ReportPlatformUIImages.getImageDescriptor( IReportGraphicConstants.ICON_ELEMENT_DATA ), ReportPlatformUIImages.getImageDescriptor( IReportGraphicConstants.ICON_ELEMENT_DATA ), getAbstractToolHandleExtendsFromPalletName(IReportElementConstants.REPORT_ELEMENT_DATA) ); entries.add( combined ); combined = new ReportCombinedTemplateCreationEntry( ELEMENT_NAME_IMAGE, TOOL_TIP_IMAGE_REPORT_ITEM, IReportElementConstants.REPORT_ELEMENT_IMAGE, new ReportElementFactory( IReportElementConstants.REPORT_ELEMENT_IMAGE ), ReportPlatformUIImages.getImageDescriptor( IReportGraphicConstants.ICON_ELEMENT_IMAGE ), ReportPlatformUIImages.getImageDescriptor( IReportGraphicConstants.ICON_ELEMENT_IMAGE ), getAbstractToolHandleExtendsFromPalletName(IReportElementConstants.REPORT_ELEMENT_IMAGE) ); entries.add( combined ); combined = new ReportCombinedTemplateCreationEntry( ELEMENT_NAME_GRID, TOOL_TIP_GRID_REPORT_ITEM, IReportElementConstants.REPORT_ELEMENT_GRID, new ReportElementFactory( IReportElementConstants.REPORT_ELEMENT_GRID ), ReportPlatformUIImages.getImageDescriptor( IReportGraphicConstants.ICON_ELEMENT_GRID ), ReportPlatformUIImages.getImageDescriptor( IReportGraphicConstants.ICON_ELEMENT_GRID ), getAbstractToolHandleExtendsFromPalletName(IReportElementConstants.REPORT_ELEMENT_GRID) ); entries.add( combined ); combined = new ReportCombinedTemplateCreationEntry( ELEMENT_NAME_LIST, TOOL_TIP_LIST_REPORT_ITEM, IReportElementConstants.REPORT_ELEMENT_LIST, new ReportElementFactory( IReportElementConstants.REPORT_ELEMENT_LIST ), ReportPlatformUIImages.getImageDescriptor( IReportGraphicConstants.ICON_ELEMENT_LIST ), ReportPlatformUIImages.getImageDescriptor( IReportGraphicConstants.ICON_ELEMENT_LIST ), getAbstractToolHandleExtendsFromPalletName(IReportElementConstants.REPORT_ELEMENT_LIST) ); entries.add( combined ); combined = new ReportCombinedTemplateCreationEntry( ELEMENT_NAME_TABLE, TOOL_TIP_TABLE_REPORT_ITEM, IReportElementConstants.REPORT_ELEMENT_TABLE, new ReportElementFactory( IReportElementConstants.REPORT_ELEMENT_TABLE ), ReportPlatformUIImages.getImageDescriptor( IReportGraphicConstants.ICON_ELEMENT_TABLE ), ReportPlatformUIImages.getImageDescriptor( IReportGraphicConstants.ICON_ELEMENT_TABLE ), getAbstractToolHandleExtendsFromPalletName(IReportElementConstants.REPORT_ELEMENT_TABLE) ); entries.add( combined ); category.addAll( entries ); return category; }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/04c0fff3428d48e39b79934e3718691f7e83ec98/DesignerPaletteFactory.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/palette/DesignerPaletteFactory.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 453, 8786, 2170, 752, 1350, 4457, 12, 262, 202, 95, 202, 202, 25863, 4457, 3150, 273, 394, 453, 8786, 4457, 12, 467, 9624, 2918, 18, 4066, 15146, 1448, 67, 9689, 16, 950...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 453, 8786, 2170, 752, 1350, 4457, 12, 262, 202, 95, 202, 202, 25863, 4457, 3150, 273, 394, 453, 8786, 4457, 12, 467, 9624, 2918, 18, 4066, 15146, 1448, 67, 9689, 16, 950...
AST __t440 = _t;
AST __t169 = _t;
public final Expression generalComp(AST _t, PathExpr path ) throws RecognitionException, PermissionDeniedException,EXistException,XPathException { Expression step; org.exist.xquery.parser.XQueryAST generalComp_AST_in = (_t == ASTNULL) ? null : (org.exist.xquery.parser.XQueryAST)_t; org.exist.xquery.parser.XQueryAST eq = null; org.exist.xquery.parser.XQueryAST neq = null; org.exist.xquery.parser.XQueryAST lt = null; org.exist.xquery.parser.XQueryAST lteq = null; org.exist.xquery.parser.XQueryAST gt = null; org.exist.xquery.parser.XQueryAST gteq = null; step= null; PathExpr left= new PathExpr(context); PathExpr right= new PathExpr(context); if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EQ: { AST __t435 = _t; eq = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,EQ); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; step= new GeneralComparison(context, left, right, Constants.EQ); step.setASTNode(eq); path.add(step); _t = __t435; _t = _t.getNextSibling(); break; } case NEQ: { AST __t436 = _t; neq = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,NEQ); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; step= new GeneralComparison(context, left, right, Constants.NEQ); step.setASTNode(neq); path.add(step); _t = __t436; _t = _t.getNextSibling(); break; } case LT: { AST __t437 = _t; lt = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,LT); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; step= new GeneralComparison(context, left, right, Constants.LT); step.setASTNode(lt); path.add(step); _t = __t437; _t = _t.getNextSibling(); break; } case LTEQ: { AST __t438 = _t; lteq = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,LTEQ); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; step= new GeneralComparison(context, left, right, Constants.LTEQ); step.setASTNode(lteq); path.add(step); _t = __t438; _t = _t.getNextSibling(); break; } case GT: { AST __t439 = _t; gt = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,GT); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; step= new GeneralComparison(context, left, right, Constants.GT); step.setASTNode(gt); path.add(step); _t = __t439; _t = _t.getNextSibling(); break; } case GTEQ: { AST __t440 = _t; gteq = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,GTEQ); _t = _t.getFirstChild(); step=expr(_t,left); _t = _retTree; step=expr(_t,right); _t = _retTree; step= new GeneralComparison(context, left, right, Constants.GTEQ); step.setASTNode(gteq); path.add(step); _t = __t440; _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } _retTree = _t; return step; }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/06537933dfbae14c444eb15b44247b312b5f47d7/XQueryTreeParser.java/clean/src/org/exist/xquery/parser/XQueryTreeParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 5371, 225, 7470, 2945, 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, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 5371, 225, 7470, 2945, 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, 2...
}
}
protected void insureUniqueness() { // TODO } // insureUniqueness()
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/affa0d2d6f465179c4324a2357a64c93083d6c43/DefaultTreeSelectionModel.java/buggy/core/src/classpath/javax/javax/swing/tree/DefaultTreeSelectionModel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 316, 2055, 984, 18988, 15681, 1435, 288, 202, 202, 759, 2660, 202, 97, 368, 316, 2055, 984, 18988, 15681, 1435, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 316, 2055, 984, 18988, 15681, 1435, 288, 202, 202, 759, 2660, 202, 97, 368, 316, 2055, 984, 18988, 15681, 1435, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
verifyEquals("Click Page Target", selenium.getTitle());
verifyEquals("Click Page Target", selenium.getTitle());
public void test() throws Throwable { selenium.setContext("Test Back and Forward", "info"); /* Test Back and Forward */ // open|./tests/html/test_click_page1.html| selenium.open("./tests/html/test_click_page1.html"); // verifyTitle|Click Page 1| verifyEquals("Click Page 1", selenium.getTitle()); /* Click a regular link */ // clickAndWait|link| selenium.click("link"); selenium.waitForPageToLoad("60000"); // verifyTitle|Click Page Target| verifyEquals("Click Page Target", selenium.getTitle()); // goBackAndWait|| selenium.goBack(); selenium.waitForPageToLoad("60000"); // verifyTitle|Click Page 1| verifyEquals("Click Page 1", selenium.getTitle()); /* history.forward() generates 'Permission Denied' in IE >>>>>goForward////////////<<<<< // verifyTitle|Click Page Target| verifyEquals("Click Page Target", selenium.getTitle()); */ checkForVerificationErrors(); }
4718 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4718/15660ffa40e3fe9cdf6de2752e79d93831571a27/TestGoBack.java/buggy/clients/java/src/test/java/com/thoughtworks/selenium/generated/TestGoBack.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 1842, 1435, 1216, 4206, 288, 202, 202, 1786, 17327, 18, 542, 1042, 2932, 4709, 4297, 471, 17206, 3113, 315, 1376, 8863, 225, 1748, 7766, 4297, 471, 17206, 4202, 1195, 1082, 202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 1842, 1435, 1216, 4206, 288, 202, 202, 1786, 17327, 18, 542, 1042, 2932, 4709, 4297, 471, 17206, 3113, 315, 1376, 8863, 225, 1748, 7766, 4297, 471, 17206, 4202, 1195, 1082, 202, ...
+ (isParametric() ? "" + typeParameters.toString() + "" : "") + (depClause == null ? "" : "(:" + depClause.toString() + ")");
+ (isParametric() ? "/"+"*" + typeParameters.toString() + "*"+"/" : "") + (depClause == null ? "" : "/"+"*"+"(:" + depClause.toString() + ")"+"*"+"/");
public String toString() { if (false) Report.report(5,"X10ParsedClassType: toString |" + super.toString() + "|(#" + this.hashCode() + this.getClass() + ") typeParameters=|" + typeParameters+"|"); return ((baseType == this) ? super.toString() : ((X10ParsedClassType_c) baseType).toString()) + (isParametric() ? "" + typeParameters.toString() + "" : "") + (depClause == null ? "" : "(:" + depClause.toString() + ")"); // + "(#" + hashCode() + ")"; }
1832 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1832/e66a16391adff4947490da2e630fb0a744f60ab2/X10ParsedClassType_c.java/clean/x10.compiler/src/polyglot/ext/x10/types/X10ParsedClassType_c.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 1762, 1435, 288, 3196, 202, 430, 261, 5743, 13, 1082, 202, 4820, 18, 6006, 12, 25, 10837, 60, 2163, 11257, 18328, 30, 1762, 571, 6, 397, 2240, 18, 10492, 1435, 397, 11747...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 514, 1762, 1435, 288, 3196, 202, 430, 261, 5743, 13, 1082, 202, 4820, 18, 6006, 12, 25, 10837, 60, 2163, 11257, 18328, 30, 1762, 571, 6, 397, 2240, 18, 10492, 1435, 397, 11747...
port = Integer.parseInt(getAttribute(PerlLaunchConfigurationConstants.ATTR_DEBUG_ERROR_PORT)); mErrorStream = new RemotePort(port);
mErrorStream = new RemotePort();
public DebuggerProxy(PerlDB fDebugger,String fLabel) throws InstantiationException { mDebugger = fDebugger; mLabel = fLabel; mLaunch = fDebugger.getLaunch(); int port ; port = Integer.parseInt(getAttribute(PerlLaunchConfigurationConstants.ATTR_DEBUG_IO_PORT)); mIOStream = new RemotePort(port); mIOStream.startConnect(); mDebugger.redirectIO(port); if( mIOStream.waitForConnect(true) != RemotePort.mWaitOK) throw new InstantiationException("Could not Create Connection to Debugger on Port("+port+")"); port = Integer.parseInt(getAttribute(PerlLaunchConfigurationConstants.ATTR_DEBUG_ERROR_PORT)); mErrorStream = new RemotePort(port); mErrorStream.startConnect(); mDebugger.redirectError(port); if( mErrorStream.waitForConnect(true)!= RemotePort.mWaitOK ) throw new InstantiationException("Could not Create Connection to Debugger on Port("+port+")"); mMonitorIn = new InputStreamMonitor(mIOStream.getOutStream()); mMonitorOut = new OutputStreamMonitor(mIOStream.getInStream()); mMonitorError = new OutputStreamMonitor(mErrorStream.getInStream()); mMonitorIn.startMonitoring(); mMonitorOut.startMonitoring(); mMonitorError.startMonitoring(); mOut = mIOStream.getWriteStream(); fireCreationEvent(); }
48756 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48756/5049f6eadb6eff8f7d24ae4a36bc564cb893e02c/DebuggerProxy.java/clean/org.epic.debug/src/org/epic/debug/util/DebuggerProxy.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 28645, 3886, 12, 2173, 80, 2290, 284, 24113, 16, 780, 284, 2224, 13, 1216, 19248, 202, 95, 202, 202, 81, 24113, 273, 284, 24113, 31, 202, 202, 81, 2224, 273, 284, 2224, 31, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 28645, 3886, 12, 2173, 80, 2290, 284, 24113, 16, 780, 284, 2224, 13, 1216, 19248, 202, 95, 202, 202, 81, 24113, 273, 284, 24113, 31, 202, 202, 81, 2224, 273, 284, 2224, 31, ...
NutchConf conf = new NutchConf();
Configuration conf = NutchConfiguration.create();
public void testIt() throws ProtocolException, ParseException { String urlString; Protocol protocol; Content content; Parse parse; NutchConf conf = new NutchConf(); for (int i = 0; i < sampleFiles.length; i++) { urlString = "file:" + sampleDir + fileSeparator + sampleFiles[i]; protocol = new ProtocolFactory(conf).getProtocol(urlString); content = protocol.getProtocolOutput(new UTF8(urlString), new CrawlDatum()).getContent(); parse = new ParseUtil(conf).parseByParserId("parse-zip",content); assertTrue(parse.getText().equals(expectedText)); } }
46828 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46828/25437bc825d50715dcc9a289a1b4c8fbbc6aced1/TestZipParser.java/buggy/src/plugin/parse-zip/src/test/org/apache/nutch/parse/zip/TestZipParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1842, 7193, 1435, 1216, 4547, 503, 16, 10616, 288, 565, 514, 29374, 31, 565, 4547, 1771, 31, 565, 3697, 913, 31, 565, 2884, 1109, 31, 565, 4659, 2195, 273, 423, 322, 343, 175...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 7193, 1435, 1216, 4547, 503, 16, 10616, 288, 565, 514, 29374, 31, 565, 4547, 1771, 31, 565, 3697, 913, 31, 565, 2884, 1109, 31, 565, 4659, 2195, 273, 423, 322, 343, 175...
m_requestFilterStubFactory.peekFirst().getMethod()
m_requestFilterStubFactory.peekFirst().getMethod().getName()
private void httpProxyEngineGoodRequestTests(AbstractTCPProxyEngine engine) throws Exception { final AcceptAndEcho echoer = new AcceptAndEcho(); final Socket clientSocket = new Socket(engine.getListenEndPoint().getHost(), engine.getListenEndPoint().getPort()); final PrintWriter clientWriter = new PrintWriter(clientSocket.getOutputStream(), true); final String message0 = "GET http://" + echoer.getEndPoint() + "/foo HTTP/1.1\r\n" + "foo: bah\r\n" + "\r\n" + "A \u00e0 message"; clientWriter.print(message0); clientWriter.flush(); final String response0 = readResponse(clientSocket, "message$"); AssertUtilities.assertStartsWith(response0, "GET /foo HTTP/1.1\r\n"); AssertUtilities.assertContainsHeader(response0, "foo", "bah"); AssertUtilities.assertContainsPattern(response0, "\r\n\r\nA \u00e0 message$"); m_requestFilterStubFactory.assertSuccess("connectionOpened", ConnectionDetails.class); m_requestFilterStubFactory.assertSuccess("handle", ConnectionDetails.class, new byte[0].getClass(), Integer.class); m_requestFilterStubFactory.assertNoMoreCalls(); m_responseFilterStubFactory.assertSuccess("connectionOpened", ConnectionDetails.class); m_responseFilterStubFactory.assertSuccess("handle", ConnectionDetails.class, new byte[0].getClass(), Integer.class); m_responseFilterStubFactory.assertNoMoreCalls(); m_loggerStubFactory.assertNoMoreCalls(); final String message1Headers = "POST http://" + echoer.getEndPoint() + "/blah?x=123&y=99 HTTP/1.0\r\n" + "\r\n" + "Another message"; clientWriter.print(message1Headers); clientWriter.flush(); final String message1PostBody = "Some data, lah 0x810x820x830x84 dah"; clientWriter.print(message1PostBody); clientWriter.flush(); final String response1 = readResponse(clientSocket, "dah$"); AssertUtilities.assertStartsWith(response1, "POST /blah?x=123&y=99 HTTP/1.0\r\n"); AssertUtilities.assertContainsPattern(response1, "\r\n\r\nAnother message" + message1PostBody + "$"); // Do again, but force engine to handle body in two parts. clientWriter.print(message1Headers); clientWriter.flush(); final String response2a = readResponse(clientSocket, "Another message$"); AssertUtilities.assertStartsWith(response2a, "POST /blah?x=123&y=99 HTTP/1.0\r\n"); clientWriter.print(message1PostBody); clientWriter.flush(); final String response2b = readResponse(clientSocket, "dah$"); assertNotNull(response2b); clientSocket.close(); waitUntilAllStreamThreadsStopped(engine); m_requestFilterStubFactory.assertSuccess("handle", ConnectionDetails.class, new byte[0].getClass(), Integer.class); m_requestFilterStubFactory.assertSuccess("handle", ConnectionDetails.class, new byte[0].getClass(), Integer.class); m_requestFilterStubFactory.assertSuccess("handle", ConnectionDetails.class, new byte[0].getClass(), Integer.class); // handle() must have been called at least 3 times, but can be called // more. while (m_requestFilterStubFactory.peekFirst() != null && m_requestFilterStubFactory.peekFirst().getMethod() .equals("handle")) { m_requestFilterStubFactory.assertSuccess("handle", ConnectionDetails.class, new byte[0].getClass(), Integer.class); } m_responseFilterStubFactory.assertSuccess("handle", ConnectionDetails.class, new byte[0].getClass(), Integer.class); m_responseFilterStubFactory.assertSuccess("handle", ConnectionDetails.class, new byte[0].getClass(), Integer.class); m_responseFilterStubFactory.assertSuccess("handle", ConnectionDetails.class, new byte[0].getClass(), Integer.class); while (m_responseFilterStubFactory.peekFirst() != null && m_responseFilterStubFactory.peekFirst().getMethod() .equals("handle")) { m_responseFilterStubFactory.assertSuccess("handle", ConnectionDetails.class, new byte[0].getClass(), Integer.class); } m_requestFilterStubFactory.assertSuccess("connectionClosed", ConnectionDetails.class); m_requestFilterStubFactory.assertNoMoreCalls(); m_responseFilterStubFactory.assertSuccess("connectionClosed", ConnectionDetails.class); m_responseFilterStubFactory.assertNoMoreCalls(); m_loggerStubFactory.assertNoMoreCalls(); }
7770 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7770/f5467e517379518f32d04870894f50eceb685a0a/TestHTTPProxyTCPProxyEngine.java/clean/source/tests-src/net/grinder/tools/tcpproxy/TestHTTPProxyTCPProxyEngine.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 1062, 3886, 4410, 18195, 691, 14650, 12, 7469, 13891, 3886, 4410, 4073, 13, 565, 1216, 1185, 288, 565, 727, 8662, 1876, 19704, 3376, 264, 273, 394, 8662, 1876, 19704, 5621, 565, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 1062, 3886, 4410, 18195, 691, 14650, 12, 7469, 13891, 3886, 4410, 4073, 13, 565, 1216, 1185, 288, 565, 727, 8662, 1876, 19704, 3376, 264, 273, 394, 8662, 1876, 19704, 5621, 565, ...
addPointcut(pointcutDef);
addPointcutDef(pointcutDef);
private static void weaveGetFieldPointcutAttributes( final AspectWerkzDefinition definition, final String className, final QDoxParser qdoxParser) { String pointcutName = GETFIELD_POINTCUT_NAME + className.replaceAll("\\.", "_"); int counter = 0; final JavaField[] javaFields = qdoxParser.getJavaFields(); for (int i = 0; i < javaFields.length; i++) { DocletTag[] getFieldTags = javaFields[i].getTagsByName(AttributeTag.GET_FIELD); for (int j = 0; j < getFieldTags.length; j++) { if (getFieldTags[j] == null) { continue; } String[] getFieldAttributes = getFieldTags[j].getParameters(); for (int k = 0; k < getFieldAttributes.length; k++) { String attribute = getFieldAttributes[k]; for (Iterator it2 = definition.getAdviceDefinitions().iterator(); it2.hasNext();) { String expression = pointcutName + counter; // create A add a new pointcut def PointcutDefinition pointcutDef = new PointcutDefinition(); pointcutDef.setName(expression); pointcutDef.setClassPattern(className); pointcutDef.setPattern(createFieldPattern(javaFields[i])); pointcutDef.setType(PointcutDefinition.GET_FIELD); definition.getAspectDefinition(AspectWerkzDefinition.SYSTEM_ASPECT). addPointcut(pointcutDef); String adviceAttribute = ((AdviceDefinition)it2.next()).getAttribute(); if (adviceAttribute == null) { continue; } if (adviceAttribute.equals(attribute)) { // get the advice ref String adviceRef = definition.getAdviceNameByAttribute(adviceAttribute); if (adviceRef == null) { continue; // attribute not mapped to an advice } // create A add a new weaving rule def AdviceWeavingRule weavingRule = new AdviceWeavingRule(); weavingRule.setExpression(expression); weavingRule.addAdviceRef(adviceRef); definition.getAspectDefinition(AspectWerkzDefinition.SYSTEM_ASPECT). addAdviceWeavingRule(weavingRule); counter++; break; } } } } } }
7954 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7954/a963297246be4fe2dccc15b9a0d970317687b6f3/SourceFileMetaDataCompiler.java/clean/aspectwerkz/src/main/org/codehaus/aspectwerkz/metadata/SourceFileMetaDataCompiler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 732, 836, 967, 974, 2148, 5150, 2498, 12, 5411, 727, 2970, 1181, 59, 264, 79, 94, 1852, 2379, 16, 5411, 727, 514, 2658, 16, 5411, 727, 2238, 40, 2409, 2678, 1043, 72, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 732, 836, 967, 974, 2148, 5150, 2498, 12, 5411, 727, 2970, 1181, 59, 264, 79, 94, 1852, 2379, 16, 5411, 727, 514, 2658, 16, 5411, 727, 2238, 40, 2409, 2678, 1043, 72, ...
protected void updateColorImage() { Display display = fButton.getDisplay(); GC gc = new GC(fImage); gc.setForeground(display.getSystemColor(SWT.COLOR_BLACK)); gc.drawRectangle(0, 2, fExtent.x - 1, fExtent.y - 4); if (fColor != null) fColor.dispose(); fColor = new Color(display, fColorValue); gc.setBackground(fColor); gc.fillRectangle(1, 3, fExtent.x - 2, fExtent.y - 5); gc.dispose(); fButton.setImage(fImage); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/be95edd129a1deef61176d5d63fd605f9dfe18a5/ColorSelector.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/preference/ColorSelector.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 6459, 2725, 2957, 2040, 1435, 95, 202, 202, 4236, 5417, 33, 74, 3616, 18, 588, 4236, 5621, 202, 202, 15396, 13241, 33, 2704, 15396, 12, 74, 2040, 1769, 202, 202, 13241, 18, 5...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 6459, 2725, 2957, 2040, 1435, 95, 202, 202, 4236, 5417, 33, 74, 3616, 18, 588, 4236, 5621, 202, 202, 15396, 13241, 33, 2704, 15396, 12, 74, 2040, 1769, 202, 202, 13241, 18, 5...
this.instanceOfCheckMap = new HashMap<BasicBlock, InstanceOfCheck>();
public TypeAnalysis(MethodGen methodGen, CFG cfg, DepthFirstSearch dfs, TypeMerger typeMerger, TypeFrameModelingVisitor visitor, RepositoryLookupFailureCallback lookupFailureCallback, ExceptionSetFactory exceptionSetFactory) { super(dfs); this.methodGen = methodGen; this.cfg = cfg; this.typeMerger = typeMerger; this.visitor = visitor; this.thrownExceptionSetMap = new HashMap<BasicBlock, CachedExceptionSet>(); this.lookupFailureCallback = lookupFailureCallback; this.exceptionSetFactory = exceptionSetFactory; if (DEBUG) { System.out.println("\n\nAnalyzing " + methodGen); } this.instanceOfCheckMap = new HashMap<BasicBlock, InstanceOfCheck>(); }
10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/17b998944835cefcc7f3065bf65b56e9843802f0/TypeAnalysis.java/clean/findbugs/src/java/edu/umd/cs/findbugs/ba/type/TypeAnalysis.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1412, 9418, 12, 1305, 7642, 707, 7642, 16, 7577, 2776, 16, 25210, 3759, 2979, 13868, 16, 202, 10792, 1412, 8478, 693, 618, 8478, 693, 16, 1412, 3219, 1488, 310, 7413, 8000, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1412, 9418, 12, 1305, 7642, 707, 7642, 16, 7577, 2776, 16, 25210, 3759, 2979, 13868, 16, 202, 10792, 1412, 8478, 693, 618, 8478, 693, 16, 1412, 3219, 1488, 310, 7413, 8000, 16, ...
return new ScriptValue( SKILL_TYPE, -1, "none" );
return SKILL_INIT;
private static ScriptValue makeSkillValue( int num ) { String name = ClassSkillsDatabase.getSkillName( num ); if ( name == null ) return new ScriptValue( SKILL_TYPE, -1, "none" ); return new ScriptValue( SKILL_TYPE, num, name ); }
50364 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50364/5e2010e6d54621206c31c17a102dc33b4a1ccb9b/KoLmafiaASH.java/clean/src/net/sourceforge/kolmafia/KoLmafiaASH.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 7739, 620, 1221, 9030, 620, 12, 509, 818, 262, 202, 95, 202, 202, 780, 508, 273, 1659, 20057, 4254, 18, 588, 9030, 461, 12, 818, 11272, 202, 202, 430, 261, 508, 422, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 7739, 620, 1221, 9030, 620, 12, 509, 818, 262, 202, 95, 202, 202, 780, 508, 273, 1659, 20057, 4254, 18, 588, 9030, 461, 12, 818, 11272, 202, 202, 430, 261, 508, 422, 4...
getSite().getPage().addPartListener(partListener2);
getSite().getPage().addPartListener(partListener2);
public void createPartControl(Composite parent) { busyCursor = new Cursor(parent.getDisplay(), SWT.CURSOR_WAIT); handCursor = new Cursor(parent.getDisplay(), SWT.CURSOR_HAND); settings = SVNUIPlugin.getPlugin().getPreferenceStore(); this.linkingEnabled = settings.getBoolean(ISVNUIConstants.PREF_HISTORY_VIEW_EDITOR_LINKING); sashForm = new SashForm(parent, SWT.VERTICAL); sashForm.setLayoutData(new GridData(GridData.FILL_BOTH)); tableHistoryViewer = createTableHistory(sashForm); innerSashForm = new SashForm(sashForm, SWT.HORIZONTAL); textViewer = createText(innerSashForm); Font font = PlatformUI.getWorkbench().getThemeManager().getCurrentTheme().getFontRegistry().get(ISVNUIConstants.SVN_COMMENT_FONT); if (font != null) textViewer.getTextWidget().setFont(font); textViewer.getTextWidget().addMouseListener(new MouseAdapter() { public void mouseDown(MouseEvent e) { if (e.button != 1) { return; } mouseDown = true; } public void mouseUp(MouseEvent e) { mouseDown = false; StyledText text = (StyledText)e.widget; int offset = text.getCaretOffset(); if (dragEvent) { // don't activate a link during a drag/mouse up operation dragEvent = false; if (linkList != null && linkList.isLinkAt(offset)) { text.setCursor(handCursor); } } else { if (linkList != null && linkList.isLinkAt(offset)) { text.setCursor(busyCursor); openLink(linkList.getLinkAt(offset)); text.setCursor(null); } } } }); textViewer.getTextWidget().addMouseMoveListener(new MouseMoveListener() { public void mouseMove(MouseEvent e) { // Do not change cursor on drag events if (mouseDown) { if (!dragEvent) { StyledText text = (StyledText)e.widget; text.setCursor(null); } dragEvent = true; return; } StyledText text = (StyledText)e.widget; int offset = -1; try { offset = text.getOffsetAtLocation(new Point(e.x, e.y)); } catch (IllegalArgumentException ex) {} if (offset == -1) text.setCursor(null); else if (linkList != null && linkList.isLinkAt(offset)) text.setCursor(handCursor); else text.setCursor(null); } }); tableChangePathViewer = createTableChangePath(innerSashForm); sashForm.setWeights(new int[] { 70, 30 }); contributeActions(); // set F1 help WorkbenchHelp.setHelp(sashForm, IHelpContextIds.RESOURCE_HISTORY_VIEW); initDragAndDrop(); // add listener for editor page activation - this is to support editor linking getSite().getPage().addPartListener(partListener); getSite().getPage().addPartListener(partListener2); setViewerVisibility(); }
6016 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6016/3802873fa3a6a3dd1bff7aa70a056bf7e3c86beb/HistoryView.java/clean/subclipse/ui/src/org/tigris/subversion/subclipse/ui/history/HistoryView.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 752, 1988, 3367, 12, 9400, 982, 13, 288, 202, 565, 21697, 6688, 273, 394, 13949, 12, 2938, 18, 588, 4236, 9334, 348, 8588, 18, 7509, 55, 916, 67, 19046, 1769, 202, 565, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 752, 1988, 3367, 12, 9400, 982, 13, 288, 202, 565, 21697, 6688, 273, 394, 13949, 12, 2938, 18, 588, 4236, 9334, 348, 8588, 18, 7509, 55, 916, 67, 19046, 1769, 202, 565, ...
return new RegionStart(parent);
return new org.apache.fop.fo.pagination.RegionStart(parent);
public FONode make(FONode parent) { return new RegionStart(parent); }
5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/2df4339f59bcc6f70db6522520f1c1640a5d00e2/FOElementMapping.java/buggy/src/org/apache/fop/fo/FOElementMapping.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 478, 673, 390, 1221, 12, 42, 673, 390, 982, 13, 288, 5411, 327, 394, 2358, 18, 19211, 18, 74, 556, 18, 617, 18, 17202, 18, 5165, 1685, 12, 2938, 1769, 3639, 289, 2, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 478, 673, 390, 1221, 12, 42, 673, 390, 982, 13, 288, 5411, 327, 394, 2358, 18, 19211, 18, 74, 556, 18, 617, 18, 17202, 18, 5165, 1685, 12, 2938, 1769, 3639, 289, 2, -100, -100, ...
public void DestroyEMWindow(int winNumber) { count--; if (count == 0) { System.out.println("closing application"); try { BrowserControlFactory.appTerminate();
public void DestroyEMWindow(int winNumber) { count--; if (count == 0) { System.out.println("closing application"); try { BrowserControlFactory.appTerminate(); } catch(Exception e) { System.out.println("got Exception on exit: " + e.getMessage()); } System.exit(0);
public void DestroyEMWindow(int winNumber) { count--; if (count == 0) { System.out.println("closing application"); try { BrowserControlFactory.appTerminate(); } catch(Exception e) { System.out.println("got Exception on exit: " + e.getMessage()); } System.exit(0); }}
12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/38f4fc5217c8d4efeac2913a5387be22a4d2d700/EmbeddedMozillaImpl.java/clean/java/webclient/classes_spec/org/mozilla/webclient/test/EmbeddedMozillaImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 918, 15701, 3375, 3829, 12, 474, 5657, 1854, 13, 288, 225, 1056, 413, 31, 225, 309, 261, 1883, 422, 374, 13, 288, 565, 2332, 18, 659, 18, 8222, 2932, 19506, 2521, 8863, 565, 775, 288, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 918, 15701, 3375, 3829, 12, 474, 5657, 1854, 13, 288, 225, 1056, 413, 31, 225, 309, 261, 1883, 422, 374, 13, 288, 565, 2332, 18, 659, 18, 8222, 2932, 19506, 2521, 8863, 565, 775, 288, ...
if( _testFailed ) {
if ( _testFailed ) {
public void tearDown() throws IOException { if( _testFailed ) { fail("test failed in another thread"); } }
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/35da9b77b7d75aca3d6277e27e3ba3dc86f3eaa9/MultiThreadedTestCase.java/buggy/drjava/src/edu/rice/cs/drjava/model/MultiThreadedTestCase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 268, 2091, 4164, 1435, 1216, 1860, 288, 565, 309, 261, 389, 3813, 2925, 262, 288, 1377, 2321, 2932, 3813, 2535, 316, 4042, 2650, 8863, 565, 289, 225, 289, 2, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 268, 2091, 4164, 1435, 1216, 1860, 288, 565, 309, 261, 389, 3813, 2925, 262, 288, 1377, 2321, 2932, 3813, 2535, 316, 4042, 2650, 8863, 565, 289, 225, 289, 2, -100, -100, -100, ...
else if ( currentRound == 1 )
else if ( currentRound == 0 )
public void nextRound() { clearDataFields(); // Now, to test if the user should run away from the // battle - this is an HP test. int haltTolerance = (int)( StaticEntity.getFloatProperty( "battleStop" ) * (float) KoLCharacter.getMaximumHP() ); action1 = CombatSettings.getShortCombatOptionName( StaticEntity.getProperty( "battleAction" ) ); action2 = null; for ( int i = 0; i < RARE_MONSTERS.length; ++i ) if ( encounterLookup.indexOf( RARE_MONSTERS[i] ) != -1 ) KoLmafia.updateDisplay( ABORT_STATE, "You have encountered the " + encounter ); if ( currentRound == 1 ) { action1 = StaticEntity.getProperty( "defaultAutoAttack" ); if ( action1.equals( "" ) || action1.equals( "0" ) ) action1 = "attack"; } else if ( action1.equals( "custom" ) ) { action1 = CombatSettings.getSetting( encounterLookup, currentRound - 2 ); } // If the person wants to use their own script, // then this is where it happens. if ( action1.startsWith( "consult" ) ) { responseText = StaticEntity.globalStringReplace( responseText, "\"", "\\\"" ); DEFAULT_SHELL.executeCommand( "call", action1.substring( "consult".length() ).trim() + " (" + currentRound + ", \"" + encounterLookup + "\", \"" + responseText + "\" )" ); return; } // Let the de-level action figure out what // should be done, and then re-process. if ( action1.equals( "delevel" ) ) action1 = getMonsterWeakenAction(); if ( action1 == null || action1.equals( "abort" ) || !KoLmafia.permitsContinue() ) { // If the user has chosen to abort combat, flag it. action1 = null; } else if ( currentRound == 1 ) { // If this is the first round, you do not // submit extra data. } else if ( haltTolerance != 0 && KoLCharacter.getCurrentHP() <= haltTolerance ) { // If you plan on halting the battle // due to HP loss, then flag it. action1 = null; } else if ( action1.startsWith( "run" ) ) { action1 = "runaway"; addFormField( "action", action1 ); } else if ( action1.equals( "attack" ) ) { action1 = "attack"; addFormField( "action", action1 ); } // If the player wants to use an item, make sure he has one else if ( action1.startsWith( "item" ) ) { int itemID = StaticEntity.parseInt( action1.substring( 4 ) ); int itemCount = (new AdventureResult( itemID, 1 )).getCount( inventory ); if ( itemCount == 0 ) { action1 = "attack"; addFormField( "action", action1 ); } else { addFormField( "action", "useitem" ); addFormField( "whichitem", String.valueOf( itemID ) ); if ( KoLCharacter.hasSkill( "Ambidextrous Funkslinging" ) && itemCount >= 2 ) { action2 = action1; addFormField( "whichitem2", String.valueOf( itemID ) ); } } } // Skills use MP. Make sure the character has enough else if ( KoLCharacter.getCurrentMP() < getActionCost() && passwordHash != null ) { action1 = "attack"; addFormField( "action", action1 ); } // If the player wants to use a skill, make sure he knows it else { String skillName = ClassSkillsDatabase.getSkillName( StaticEntity.parseInt( action1 ) ); if ( KoLmafiaCLI.getCombatSkillName( skillName ) == null ) { action1 = "attack"; addFormField( "action", action1 ); } else { addFormField( "action", "skill" ); addFormField( "whichskill", action1 ); } } }
50364 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50364/59a7f9b85a2620fec38b13250eda168e84d58d8f/FightRequest.java/clean/src/net/sourceforge/kolmafia/FightRequest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1024, 11066, 1435, 202, 95, 202, 202, 8507, 751, 2314, 5621, 202, 202, 759, 4494, 16, 358, 1842, 309, 326, 729, 1410, 1086, 10804, 628, 326, 202, 202, 759, 324, 4558, 298...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1024, 11066, 1435, 202, 95, 202, 202, 8507, 751, 2314, 5621, 202, 202, 759, 4494, 16, 358, 1842, 309, 326, 729, 1410, 1086, 10804, 628, 326, 202, 202, 759, 324, 4558, 298...
form.getErr().emit("org.bedework.error.badcalendarid");
form.getErr().emit("org.bedework.client.error.badcalendarid");
public String doAction(HttpServletRequest request, BwActionForm form) throws Throwable { /* CalSvcI svci = form.getCalSvcI(); if (form.getGuest()) { return "doNothing"; } boolean subscribe = false; String reqpar = request.getParameter("subscribe"); if (Util.checkNull(reqpar) != null) { subscribe = true; } else { reqpar = request.getParameter("unsubscribe"); } int calid; if (Util.checkNull(reqpar) != null) { try { calid = Integer.parseInt(reqpar); } catch (Throwable t) { form.getErr().emit("org.bedework.error.badcalendarid"); return "error"; } BwCalendar cal = svci.getCalendar(calid); if (cal == null) { form.getErr().emit("org.bedework.error.badcalendarid"); return "error"; } if (subscribe) { svci.addSubscription(cal); return "edit"; } svci.removeSubscription(cal); return "success"; } /* Not subscribe/unsubscribe - do the edit actions */ return "success"; }
50848 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50848/c1293a42b06c6fa689edc1cb788361298967d933/BwSubscribeAction.java/clean/calendar3/webclient/src/org/bedework/webclient/BwSubscribeAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 741, 1803, 12, 2940, 18572, 590, 16, 7682, 605, 91, 1803, 1204, 646, 13, 1216, 4206, 288, 282, 202, 20308, 565, 3596, 17444, 45, 7538, 77, 273, 646, 18, 588, 3005, 17444, 45,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 514, 741, 1803, 12, 2940, 18572, 590, 16, 7682, 605, 91, 1803, 1204, 646, 13, 1216, 4206, 288, 282, 202, 20308, 565, 3596, 17444, 45, 7538, 77, 273, 646, 18, 588, 3005, 17444, 45,...
part.getTitleImage();
if(part != null) part.getTitleImage();
public void releaseReferences() { id = null; tooltip = null; title = null; //make sure part has inc. the reference count. part.getTitleImage(); ReferenceCounter imageCache = WorkbenchImages.getImageCache(); Image image = (Image)imageCache.get(imageDescritor); if(image != null) { imageCache.removeRef(imageDescritor); } image = null; imageDescritor = null; }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/1b5e5b2f6b1a9ea65d43b0dca2ae8c092a04bbf6/WorkbenchPartReference.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPartReference.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3992, 8221, 1435, 288, 202, 202, 350, 273, 446, 31, 202, 202, 19798, 273, 446, 31, 202, 202, 2649, 273, 446, 31, 202, 202, 759, 6540, 3071, 1087, 711, 7290, 18, 326, 21...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 3992, 8221, 1435, 288, 202, 202, 350, 273, 446, 31, 202, 202, 19798, 273, 446, 31, 202, 202, 2649, 273, 446, 31, 202, 202, 759, 6540, 3071, 1087, 711, 7290, 18, 326, 21...
match(input,ID,FOLLOW_ID_in_fact_binding1227); following.push(FOLLOW_opt_eol_in_fact_binding1237);
match(input,ID,FOLLOW_ID_in_fact_binding1192); following.push(FOLLOW_opt_eol_in_fact_binding1202);
public PatternDescr fact_binding() throws RecognitionException { PatternDescr d; Token id=null; PatternDescr f = null; d=null; boolean multi=false; try { // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:391:17: (id= ID opt_eol ':' opt_eol f= fact opt_eol ( 'or' f= fact )* ) // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:391:17: id= ID opt_eol ':' opt_eol f= fact opt_eol ( 'or' f= fact )* { id=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_fact_binding1227); following.push(FOLLOW_opt_eol_in_fact_binding1237); opt_eol(); following.pop(); match(input,29,FOLLOW_29_in_fact_binding1239); following.push(FOLLOW_opt_eol_in_fact_binding1241); opt_eol(); following.pop(); following.push(FOLLOW_fact_in_fact_binding1249); f=fact(); following.pop(); following.push(FOLLOW_opt_eol_in_fact_binding1251); opt_eol(); following.pop(); ((ColumnDescr)f).setIdentifier( id.getText() ); d = f; // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:399:17: ( 'or' f= fact )* loop38: do { int alt38=2; int LA38_0 = input.LA(1); if ( LA38_0==38 ) { alt38=1; } switch (alt38) { case 1 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:399:25: 'or' f= fact { match(input,38,FOLLOW_38_in_fact_binding1263); if ( ! multi ) { PatternDescr first = d; d = new OrDescr(); ((OrDescr)d).addDescr( first ); multi=true; } following.push(FOLLOW_fact_in_fact_binding1277); f=fact(); following.pop(); ((ColumnDescr)f).setIdentifier( id.getText() ); ((OrDescr)d).addDescr( f ); } break; default : break loop38; } } while (true); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return d; }
5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/61acd40072560afada3f7897673309e5b51b402d/RuleParser.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 6830, 16198, 5410, 67, 7374, 1435, 1216, 9539, 288, 6647, 6830, 16198, 302, 31, 3639, 3155, 612, 33, 2011, 31, 3639, 6830, 16198, 284, 273, 446, 31, 1171, 202, 202, 72, 33, 2011, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 6830, 16198, 5410, 67, 7374, 1435, 1216, 9539, 288, 6647, 6830, 16198, 302, 31, 3639, 3155, 612, 33, 2011, 31, 3639, 6830, 16198, 284, 273, 446, 31, 1171, 202, 202, 72, 33, 2011, ...
return format(date, new StringBuffer(),new FieldPosition(0)).toString();
if (obj instanceof Date) return format( (Date)obj, toAppendTo, fieldPosition ); else if (obj instanceof Number) return format( new Date(((Number)obj).longValue()), toAppendTo, fieldPosition ); else throw new IllegalArgumentException("Cannot format given Object as a Date");
public final String format(Date date) { return format(date, new StringBuffer(),new FieldPosition(0)).toString(); }
5620 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5620/8dbcde14d01c1c6865073b1041e9c348179dbcfb/DateFormat.java/buggy/icu4j/src/com/ibm/icu/text/DateFormat.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 514, 740, 12, 1626, 1509, 13, 565, 288, 3639, 309, 261, 2603, 1276, 2167, 13, 327, 740, 12, 261, 1626, 13, 2603, 16, 358, 5736, 774, 16, 652, 2555, 11272, 469, 309, 261, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 727, 514, 740, 12, 1626, 1509, 13, 565, 288, 3639, 309, 261, 2603, 1276, 2167, 13, 327, 740, 12, 261, 1626, 13, 2603, 16, 358, 5736, 774, 16, 652, 2555, 11272, 469, 309, 261, 26...
switch ( eDerivedStructuralFeatureID( eFeature ) )
switch ( featureID )
public boolean eIsSet( EStructuralFeature eFeature ) { switch ( eDerivedStructuralFeatureID( eFeature ) ) { case ModelPackage.CHART_WITHOUT_AXES__VERSION : return isSetVersion( ); case ModelPackage.CHART_WITHOUT_AXES__TYPE : return TYPE_EDEFAULT == null ? type != null : !TYPE_EDEFAULT.equals( type ); case ModelPackage.CHART_WITHOUT_AXES__SUB_TYPE : return SUB_TYPE_EDEFAULT == null ? subType != null : !SUB_TYPE_EDEFAULT.equals( subType ); case ModelPackage.CHART_WITHOUT_AXES__DESCRIPTION : return description != null; case ModelPackage.CHART_WITHOUT_AXES__BLOCK : return block != null; case ModelPackage.CHART_WITHOUT_AXES__DIMENSION : return isSetDimension( ); case ModelPackage.CHART_WITHOUT_AXES__SCRIPT : return SCRIPT_EDEFAULT == null ? script != null : !SCRIPT_EDEFAULT.equals( script ); case ModelPackage.CHART_WITHOUT_AXES__UNITS : return UNITS_EDEFAULT == null ? units != null : !UNITS_EDEFAULT.equals( units ); case ModelPackage.CHART_WITHOUT_AXES__SERIES_THICKNESS : return isSetSeriesThickness( ); case ModelPackage.CHART_WITHOUT_AXES__GRID_COLUMN_COUNT : return isSetGridColumnCount( ); case ModelPackage.CHART_WITHOUT_AXES__EXTENDED_PROPERTIES : return extendedProperties != null && !extendedProperties.isEmpty( ); case ModelPackage.CHART_WITHOUT_AXES__SAMPLE_DATA : return sampleData != null; case ModelPackage.CHART_WITHOUT_AXES__STYLES : return styles != null && !styles.isEmpty( ); case ModelPackage.CHART_WITHOUT_AXES__INTERACTIVITY : return interactivity != null; case ModelPackage.CHART_WITHOUT_AXES__SERIES_DEFINITIONS : return seriesDefinitions != null && !seriesDefinitions.isEmpty( ); case ModelPackage.CHART_WITHOUT_AXES__MIN_SLICE : return isSetMinSlice( ); case ModelPackage.CHART_WITHOUT_AXES__MIN_SLICE_PERCENT : return isSetMinSlicePercent( ); case ModelPackage.CHART_WITHOUT_AXES__MIN_SLICE_LABEL : return MIN_SLICE_LABEL_EDEFAULT == null ? minSliceLabel != null : !MIN_SLICE_LABEL_EDEFAULT.equals( minSliceLabel ); } return eDynamicIsSet( eFeature ); }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/036e8c78765730b146e5854b9d6c397a296fed86/ChartWithoutAxesImpl.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/impl/ChartWithoutAxesImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 20372, 12, 512, 14372, 4595, 425, 4595, 262, 202, 95, 202, 202, 9610, 261, 425, 21007, 14372, 4595, 734, 12, 425, 4595, 262, 262, 202, 202, 95, 1082, 202, 3593, 3164, 22...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 20372, 12, 512, 14372, 4595, 425, 4595, 262, 202, 95, 202, 202, 9610, 261, 425, 21007, 14372, 4595, 734, 12, 425, 4595, 262, 262, 202, 202, 95, 1082, 202, 3593, 3164, 22...
case '+': case '-':
case '+': case '-': case '.':
protected void parses() throws ParseException { read(); skipSpaces(); for (;;) { switch (current) { default: return; case '+': case '-': case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': } try { float x2 = parseFloat(); skipCommaSpaces(); float y2 = parseFloat(); skipCommaSpaces(); float x = parseFloat(); skipCommaSpaces(); float y = parseFloat(); pathHandler.curvetoCubicSmoothRel(x2, y2, x, y); } catch (NumberFormatException e) { reportError("float.format", new Object[] { getBufferContent() }); skipSubPath(); return; } skipCommaSpaces(); } }
45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/97ca9a9d6094cf074e18f1606eec5322cb55b506/PathParser.java/clean/sources/org/apache/batik/parser/PathParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 8940, 1435, 1216, 10616, 288, 202, 896, 5621, 202, 7457, 12077, 5621, 202, 1884, 261, 25708, 13, 288, 202, 565, 1620, 261, 2972, 13, 288, 202, 565, 805, 30, 202, 202, 2463, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 8940, 1435, 1216, 10616, 288, 202, 896, 5621, 202, 7457, 12077, 5621, 202, 1884, 261, 25708, 13, 288, 202, 565, 1620, 261, 2972, 13, 288, 202, 565, 805, 30, 202, 202, 2463, 3...
}
}
public void testDrillThrough2() { Result result = runQuery( "WITH MEMBER [Measures].[Price] AS '[Measures].[Store Sales] / [Measures].[Unit Sales]'" + nl + "SELECT {[Measures].[Unit Sales], [Measures].[Price]} on columns," + nl + " {[Product].Children} on rows" + nl + "from Sales"); String sql = result.getCell(new int[] {0, 0}).getDrillThroughSQL(true); //System.out.println("Drillthrough= " + sql); RolapConnection conn = (RolapConnection) getConnection(); String jdbc_url = conn.getConnectInfo().get("Jdbc"); String fname_plus_lname; if (jdbc_url.toLowerCase().indexOf("mysql") >= 0 ) { // Mysql would generate "CONCAT( ... )" fname_plus_lname = " CONCAT(`customer`.`fname`, ' ', `customer`.`lname`) as `Name`,"; } else if (jdbc_url.toLowerCase().indexOf("postgresql") >= 0 || jdbc_url.toLowerCase().indexOf("oracle") >= 0) { fname_plus_lname = " `fname` || ' ' || `lname` as `Name`,"; } else { fname_plus_lname = " fname + ' ' + lname as `Name`,";/* * What about generic? <SQL dialect="generic"> lname </SQL>*/ } // the following replacement is for databases in ANSI mode // using '"' to quote identifiers sql = sql.replace('"', '`'); String tableQualifier = "as "; if (jdbc_url.toLowerCase().indexOf("oracle") >= 0) { // " + tableQualifier + " tableQualifier = ""; } assertEquals("select `store`.`store_name` as `Store Name`," + " `store`.`store_city` as `Store City`," + " `store`.`store_state` as `Store State`," + " `store`.`store_country` as `Store Country`," + " `store`.`store_sqft` as `Store Sqft`," + " `store`.`store_type` as `Store Type`," + " `time_by_day`.`month_of_year` as `Month`," + " `time_by_day`.`quarter` as `Quarter`," + " `time_by_day`.`the_year` as `Year`," + " `product`.`product_name` as `Product Name`," + " `product`.`brand_name` as `Brand Name`," + " `product_class`.`product_subcategory` as `Product Subcategory`," + " `product_class`.`product_category` as `Product Category`," + " `product_class`.`product_department` as `Product Department`," + " `product_class`.`product_family` as `Product Family`," + " `promotion`.`media_type` as `Media Type`," + " `promotion`.`promotion_name` as `Promotion Name`," + fname_plus_lname + //" fname + ' ' + lname as `Name`," + " `customer`.`city` as `City`," + " `customer`.`state_province` as `State Province`," + " `customer`.`country` as `Country`," + " `customer`.`education` as `Education Level`," + " `customer`.`gender` as `Gender`," + " `customer`.`marital_status` as `Marital Status`," + " `customer`.`yearly_income` as `Yearly Income`," + " `sales_fact_1997`.`unit_sales` as `Unit Sales` " + "from `store` " + tableQualifier + "`store`," + " `sales_fact_1997` " + tableQualifier + "`sales_fact_1997`," + " `time_by_day` " + tableQualifier + "`time_by_day`," + " `product` " + tableQualifier + "`product`," + " `product_class` " + tableQualifier + "`product_class`," + " `promotion` " + tableQualifier + "`promotion`," + " `customer` " + tableQualifier + "`customer` " + "where `sales_fact_1997`.`store_id` = `store`.`store_id`" + " and `sales_fact_1997`.`store_id` = `store`.`store_id`" + " and `sales_fact_1997`.`store_id` = `store`.`store_id`" + " and `sales_fact_1997`.`store_id` = `store`.`store_id`" + " and `sales_fact_1997`.`store_id` = `store`.`store_id`" + " and `sales_fact_1997`.`store_id` = `store`.`store_id`" + " and `sales_fact_1997`.`time_id` = `time_by_day`.`time_id`" + " and `sales_fact_1997`.`time_id` = `time_by_day`.`time_id`" + " and `sales_fact_1997`.`time_id` = `time_by_day`.`time_id`" + " and `time_by_day`.`the_year` = 1997" + " and `sales_fact_1997`.`product_id` = `product`.`product_id`" + " and `sales_fact_1997`.`product_id` = `product`.`product_id`" + " and `sales_fact_1997`.`product_id` = `product`.`product_id`" + " and `product`.`product_class_id` = `product_class`.`product_class_id`" + " and `sales_fact_1997`.`product_id` = `product`.`product_id`" + " and `product`.`product_class_id` = `product_class`.`product_class_id`" + " and `sales_fact_1997`.`product_id` = `product`.`product_id`" + " and `product`.`product_class_id` = `product_class`.`product_class_id`" + " and `sales_fact_1997`.`product_id` = `product`.`product_id`" + " and `product`.`product_class_id` = `product_class`.`product_class_id`" + " and `product_class`.`product_family` = 'Drink'" + " and `sales_fact_1997`.`promotion_id` = `promotion`.`promotion_id`" + " and `sales_fact_1997`.`promotion_id` = `promotion`.`promotion_id`" + " and `sales_fact_1997`.`customer_id` = `customer`.`customer_id`" + " and `sales_fact_1997`.`customer_id` = `customer`.`customer_id`" + " and `sales_fact_1997`.`customer_id` = `customer`.`customer_id`" + " and `sales_fact_1997`.`customer_id` = `customer`.`customer_id`" + " and `sales_fact_1997`.`customer_id` = `customer`.`customer_id`" + " and `sales_fact_1997`.`customer_id` = `customer`.`customer_id`" + " and `sales_fact_1997`.`customer_id` = `customer`.`customer_id`" + " and `sales_fact_1997`.`customer_id` = `customer`.`customer_id`", sql); sql = result.getCell(new int[] {1, 1}).getDrillThroughSQL(true); assertNull(sql); // because it is a calculated member }
4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/b5b5168edc3af09cb74945a80b0c36e6630ed502/BasicQueryTest.java/clean/testsrc/main/mondrian/test/BasicQueryTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 8956, 737, 14287, 22, 1435, 288, 202, 202, 1253, 563, 273, 1086, 1138, 12, 9506, 202, 6, 9147, 18990, 6271, 306, 23177, 1823, 8009, 63, 5147, 65, 5355, 5271, 23177, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 8956, 737, 14287, 22, 1435, 288, 202, 202, 1253, 563, 273, 1086, 1138, 12, 9506, 202, 6, 9147, 18990, 6271, 306, 23177, 1823, 8009, 63, 5147, 65, 5355, 5271, 23177, ...
assign((Object)null); }
assign((Object)null); }
void clear() { assign((Object)null); }
45325 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45325/9098faa5f45fdfa96731176b094266a62dff5353/SparseViterbi.java/clean/src/iitb/CRF/SparseViterbi.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 2424, 1435, 288, 202, 565, 2683, 12443, 921, 13, 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,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 6459, 2424, 1435, 288, 202, 565, 2683, 12443, 921, 13, 2011, 1769, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
AST tmp799_AST_in = (AST)_t;
AST tmp809_AST_in = (AST)_t;
public final void classstate(AST _t) throws RecognitionException { AST classstate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST c = null; AST __t214 = _t; c = _t==ASTNULL ? null :(AST)_t; match(_t,CLASS); _t = _t.getFirstChild(); if ( inputState.guessing==0 ) { action.classState(c); } AST tmp793_AST_in = (AST)_t; match(_t,TYPE_NAME); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case INHERITS: { AST __t216 = _t; AST tmp794_AST_in = (AST)_t; match(_t,INHERITS); _t = _t.getFirstChild(); AST tmp795_AST_in = (AST)_t; match(_t,TYPE_NAME); _t = _t.getNextSibling(); _t = __t216; _t = _t.getNextSibling(); break; } case PERIOD: case LEXCOLON: case FINAL: case IMPLEMENTS: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case IMPLEMENTS: { AST __t218 = _t; AST tmp796_AST_in = (AST)_t; match(_t,IMPLEMENTS); _t = _t.getFirstChild(); AST tmp797_AST_in = (AST)_t; match(_t,TYPE_NAME); _t = _t.getNextSibling(); { _loop220: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==COMMA)) { AST tmp798_AST_in = (AST)_t; match(_t,COMMA); _t = _t.getNextSibling(); AST tmp799_AST_in = (AST)_t; match(_t,TYPE_NAME); _t = _t.getNextSibling(); } else { break _loop220; } } while (true); } _t = __t218; _t = _t.getNextSibling(); break; } case PERIOD: case LEXCOLON: case FINAL: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case FINAL: { AST tmp800_AST_in = (AST)_t; match(_t,FINAL); _t = _t.getNextSibling(); break; } case PERIOD: case LEXCOLON: { break; } default: { throw new NoViableAltException(_t); } } } block_colon(_t); _t = _retTree; code_block(_t); _t = _retTree; AST __t222 = _t; AST tmp801_AST_in = (AST)_t; match(_t,END); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case CLASS: { AST tmp802_AST_in = (AST)_t; match(_t,CLASS); _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t222; _t = _t.getNextSibling(); state_end(_t); _t = _retTree; _t = __t214; _t = _t.getNextSibling(); _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/f492fd11e745beb562b4e209643ba003aa8a6271/TreeParser01.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 667, 2019, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 667, 2019, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 667, 2019, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 667, 2019, 67, 9053, 67, 267, 273, 261, 67, 88, 422, 9183, 8560, 13, 692, 446, 294, 261, 9053, ...
Properties p = new Properties();
Properties p = new Properties();
private static Properties doDefaultUser() { Properties p = new Properties(); p.setProperty( "user_id", "" ); p.setProperty( "login_name", "" ); p.setProperty( "login_password", "" ); p.setProperty( "first_name", "" ); p.setProperty( "last_name", "" ); p.setProperty( "title", "" ); p.setProperty( "company", "" ); p.setProperty( "address", "" ); p.setProperty( "city", "" ); p.setProperty( "zip", "" ); p.setProperty( "country", "" ); p.setProperty( "country_council", "" ); p.setProperty( "email", "" ); p.setProperty( "external", "" ); p.setProperty( "last_page", "" ); p.setProperty( "archive_mode", "" ); p.setProperty( "lang_id", "" ); p.setProperty( "user_type", "" ); p.setProperty( "active", "" ); p.setProperty( "create_date", "" ); return p; } // End of
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/ebf0781020199f986e0621851cc0ceaef92969e2/UserChangePrefs.java/clean/server/src/com/imcode/imcms/servlet/UserChangePrefs.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 760, 6183, 741, 1868, 1299, 1435, 288, 1377, 6183, 293, 273, 394, 6183, 5621, 1377, 293, 18, 542, 1396, 12, 315, 1355, 67, 350, 3113, 1408, 11272, 1377, 293, 18, 542, 1396, 12, 31...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 3238, 760, 6183, 741, 1868, 1299, 1435, 288, 1377, 6183, 293, 273, 394, 6183, 5621, 1377, 293, 18, 542, 1396, 12, 315, 1355, 67, 350, 3113, 1408, 11272, 1377, 293, 18, 542, 1396, 12, 31...
if ( fs == null ) { df = new DecimalFormat( sc.getNumericPattern( dAxisValue ) ); }
public void handlePreEachTick( int i ) throws ChartException { // PERFORM COMPUTATIONS ONLY IF AXIS LABEL IS VISIBLE if ( bRenderAxisLabels ) { if ( fs == null ) { df = new DecimalFormat( sc.getNumericPattern( dAxisValue ) ); } nde.setValue( dAxisValue ); try { sText = ValueFormatter.format( nde, fs, ax.getRunTimeContext( ).getULocale( ), df ); } catch ( ChartException dfex ) { logger.log( dfex ); sText = IConstants.NULL_STRING; } la.getCaption( ).setValue( sText ); } }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/1db269ddab11c27e468307ae5cd39daa0fada25b/AxesRenderHelper.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/render/AxesRenderHelper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 918, 1640, 1386, 3442, 6264, 12, 509, 277, 262, 1216, 14804, 503, 202, 202, 95, 1082, 202, 759, 10950, 4983, 5423, 4762, 15297, 20747, 11083, 29539, 5127, 18210, 4437, 25289, 108...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1640, 1386, 3442, 6264, 12, 509, 277, 262, 1216, 14804, 503, 202, 202, 95, 1082, 202, 759, 10950, 4983, 5423, 4762, 15297, 20747, 11083, 29539, 5127, 18210, 4437, 25289, 108...
boolean newFeatures = true; try { newFeatures = settings.getLong(FEATURES_CHANGE_STAMP) != featuresStamp; } catch (NumberFormatException e) { } if(newFeatures) settings.put(FEATURES_CHANGE_STAMP,featuresStamp);
private void readFeaturesInfo() { long featuresStamp = BootLoader.getCurrentPlatformConfiguration().getFeaturesChangeStamp(); IDialogSettings settings = WorkbenchPlugin.getDefault().getDialogSettings(); boolean newFeatures = true; try { newFeatures = settings.getLong(FEATURES_CHANGE_STAMP) != featuresStamp; } catch (NumberFormatException e) { } if(newFeatures) settings.put(FEATURES_CHANGE_STAMP,featuresStamp); String[] oldFeaturesArray = settings.getArray(INSTALLED_FEATURES); List oldFeatures = null; if (oldFeaturesArray != null) oldFeatures = Arrays.asList(oldFeaturesArray); ArrayList aboutInfos = new ArrayList(); ArrayList newAboutInfos = new ArrayList(); if(newFeatures) { //Keep all references to VersionedIdentifier. Do not want to activate //update plugin unless needed. VersionedIdentifier featureEntries[] = collectFeatures(); String[] idArray = new String[featureEntries.length]; for (int i = 0; i < featureEntries.length; i++) { VersionedIdentifier entry = (VersionedIdentifier)featureEntries[i]; String id = entry.getIdentifier(); PluginVersionIdentifier vid = entry.getVersion(); String versionedId = id + ":" + vid; idArray[i] = versionedId; try { AboutInfo info = new AboutInfo(id, vid); aboutInfos.add(info); if (oldFeatures != null && !oldFeatures.contains(versionedId)) // only report a feature as new if we have a previous record of old features newAboutInfos.add(info); } catch (RuntimeException e) { if (WorkbenchPlugin.DEBUG) // only report ini problems if the -debug command line argument is used WorkbenchPlugin.log("Error parsing version \"" + vid + "\" for plugin: " + id + " in Workbench.readFeaturesInfo()"); // continue } } settings.put(INSTALLED_FEATURES, idArray); } // ensure a consistent ordering Collections.sort(aboutInfos, new Comparator() { Collator coll = Collator.getInstance(); public int compare(Object a, Object b) { AboutInfo infoA = (AboutInfo) a; AboutInfo infoB = (AboutInfo) b; int c = coll.compare(infoA.getFeatureId(), infoB.getFeatureId()); if (c == 0) { c = infoA.getVersionId().isGreaterThan(infoB.getVersionId()) ? 1 : -1; } return c; } }); featuresInfo = new AboutInfo[aboutInfos.size()]; aboutInfos.toArray(featuresInfo); for (int i = 0; i < featuresInfo.length; i++) { try { featuresInfo[i].readINIFile(); // Exclude any feature for which there is no corresponding plug-in if (featuresInfo[i].getDescriptor() == null) { aboutInfos.remove(featuresInfo[i]); newAboutInfos.remove(featuresInfo[i]); } } catch (CoreException e) { if (WorkbenchPlugin.DEBUG) // only report ini problems if the -debug command line argument is used WorkbenchPlugin.log("Error reading about info file for feature: " + featuresInfo[i].getFeatureId(), e.getStatus()); //$NON-NLS-1$ } } newFeaturesInfo = new AboutInfo[newAboutInfos.size()]; newAboutInfos.toArray(newFeaturesInfo); if (aboutInfos.size() < featuresInfo.length) { featuresInfo = new AboutInfo[aboutInfos.size()]; aboutInfos.toArray(featuresInfo); } }
58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/25425fe3505bc6f62e9021f3f79e33d77a752241/Workbench.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/Workbench.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 855, 8696, 966, 1435, 288, 202, 202, 5748, 4467, 8860, 273, 26254, 2886, 18, 588, 3935, 8201, 1750, 7675, 588, 8696, 3043, 8860, 5621, 202, 202, 734, 3529, 2628, 1947, 273...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 855, 8696, 966, 1435, 288, 202, 202, 5748, 4467, 8860, 273, 26254, 2886, 18, 588, 3935, 8201, 1750, 7675, 588, 8696, 3043, 8860, 5621, 202, 202, 734, 3529, 2628, 1947, 273...
super(name); }
super(name); }
public DefaultResultStubTest( String name ) { super(name); }
2796 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2796/a917aff361c58c31c5dce12a5e8052df6803dbe1/DefaultResultStubTest.java/clean/jmock/core/src/test/jmock/core/stub/DefaultResultStubTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2989, 1253, 11974, 4709, 12, 514, 508, 262, 288, 202, 202, 9565, 12, 529, 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...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 2989, 1253, 11974, 4709, 12, 514, 508, 262, 288, 202, 202, 9565, 12, 529, 1769, 202, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
public boolean isSet(org.quickfix.field.UnderlyingSecurityAltID field)
public boolean isSet(quickfix.field.UnderlyingSecurityAltID field)
public boolean isSet(org.quickfix.field.UnderlyingSecurityAltID field) { return isSetField(field); }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/OrderCancelReplaceRequest.java/buggy/src/java/src/quickfix/fix44/OrderCancelReplaceRequest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 13532, 12, 19525, 904, 18, 1518, 18, 14655, 6291, 4368, 10655, 734, 652, 13, 225, 288, 327, 13532, 974, 12, 1518, 1769, 289, 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, 0, 0, 0, 0, 0, 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, 1250, 13532, 12, 19525, 904, 18, 1518, 18, 14655, 6291, 4368, 10655, 734, 652, 13, 225, 288, 327, 13532, 974, 12, 1518, 1769, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100,...
setMajorGrid((Grid)null);
setMajorGrid((Grid) null);
public void eUnset(EStructuralFeature eFeature) { switch (eDerivedStructuralFeatureID(eFeature)) { case ComponentPackage.AXIS__TYPE: unsetType(); return; case ComponentPackage.AXIS__TITLE: setTitle((Label)null); return; case ComponentPackage.AXIS__SUBTITLE: setSubtitle((Label)null); return; case ComponentPackage.AXIS__TITLE_POSITION: unsetTitlePosition(); return; case ComponentPackage.AXIS__ASSOCIATED_AXES: getAssociatedAxes().clear(); return; case ComponentPackage.AXIS__SERIES_DEFINITIONS: getSeriesDefinitions().clear(); return; case ComponentPackage.AXIS__GAP_WIDTH: unsetGapWidth(); return; case ComponentPackage.AXIS__ORIENTATION: unsetOrientation(); return; case ComponentPackage.AXIS__LINE_ATTRIBUTES: setLineAttributes((LineAttributes)null); return; case ComponentPackage.AXIS__LABEL: setLabel((Label)null); return; case ComponentPackage.AXIS__FORMAT_SPECIFIER: setFormatSpecifier((FormatSpecifier)null); return; case ComponentPackage.AXIS__LABEL_POSITION: unsetLabelPosition(); return; case ComponentPackage.AXIS__STAGGERED: unsetStaggered(); return; case ComponentPackage.AXIS__MARKER_LINES: getMarkerLines().clear(); return; case ComponentPackage.AXIS__MARKER_RANGES: getMarkerRanges().clear(); return; case ComponentPackage.AXIS__MAJOR_GRID: setMajorGrid((Grid)null); return; case ComponentPackage.AXIS__MINOR_GRID: setMinorGrid((Grid)null); return; case ComponentPackage.AXIS__SCALE: setScale((Scale)null); return; case ComponentPackage.AXIS__ORIGIN: setOrigin((AxisOrigin)null); return; case ComponentPackage.AXIS__PRIMARY_AXIS: unsetPrimaryAxis(); return; case ComponentPackage.AXIS__CATEGORY_AXIS: unsetCategoryAxis(); return; case ComponentPackage.AXIS__PERCENT: unsetPercent(); return; } eDynamicUnset(eFeature); }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/e5c78f0e8317166d02fa384e14c3dd7aa1796f2c/AxisImpl.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/component/impl/AxisImpl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 19698, 12, 41, 14372, 4595, 425, 4595, 13, 565, 288, 3639, 1620, 261, 73, 21007, 14372, 4595, 734, 12, 73, 4595, 3719, 3639, 288, 5411, 648, 5435, 2261, 18, 25614, 972, 2399, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 19698, 12, 41, 14372, 4595, 425, 4595, 13, 565, 288, 3639, 1620, 261, 73, 21007, 14372, 4595, 734, 12, 73, 4595, 3719, 3639, 288, 5411, 648, 5435, 2261, 18, 25614, 972, 2399, ...
item.setEnabled(false);
interruptOnlyItems.add(item); } else { runOnlyItems.add(item);
Menubar(DebugGui debugGui) { super(); this.debugGui = debugGui; String[] fileItems = {"Open...", "Run...", "", "Exit"}; String[] fileCmds = {"Open", "Load", "", "Exit"}; char[] fileShortCuts = {'0', 'N', '\0', 'X'}; int[] fileAccelerators = {KeyEvent.VK_O, KeyEvent.VK_N, 0, KeyEvent.VK_Q}; String[] editItems = {"Cut", "Copy", "Paste", "Go to function..."}; char[] editShortCuts = {'T', 'C', 'P', 'F'}; String[] debugItems = {"Break", "Go", "Step Into", "Step Over", "Step Out"}; char[] debugShortCuts = {'B', 'G', 'I', 'O', 'T'}; String[] plafItems = {"Metal", "Windows", "Motif"}; char [] plafShortCuts = {'M', 'W', 'F'}; int[] debugAccelerators = {KeyEvent.VK_PAUSE, KeyEvent.VK_F5, KeyEvent.VK_F11, KeyEvent.VK_F7, KeyEvent.VK_F8, 0, 0}; JMenu fileMenu = new JMenu("File"); fileMenu.setMnemonic('F'); JMenu editMenu = new JMenu("Edit"); editMenu.setMnemonic('E'); JMenu plafMenu = new JMenu("Platform"); plafMenu.setMnemonic('P'); JMenu debugMenu = new JMenu("Debug"); debugMenu.setMnemonic('D'); windowMenu = new JMenu("Window"); windowMenu.setMnemonic('W'); for (int i = 0; i < fileItems.length; ++i) { if (fileItems[i].length() == 0) { fileMenu.addSeparator(); } else { JMenuItem item = new JMenuItem(fileItems[i], fileShortCuts[i]); item.setActionCommand(fileCmds[i]); item.addActionListener(this); fileMenu.add(item); if (fileAccelerators[i] != 0) { KeyStroke k = KeyStroke.getKeyStroke(fileAccelerators[i], Event.CTRL_MASK); item.setAccelerator(k); } } } for (int i = 0; i < editItems.length; ++i) { JMenuItem item = new JMenuItem(editItems[i], editShortCuts[i]); item.addActionListener(this); editMenu.add(item); } for (int i = 0; i < plafItems.length; ++i) { JMenuItem item = new JMenuItem(plafItems[i], plafShortCuts[i]); item.addActionListener(this); plafMenu.add(item); } for (int i = 0; i < debugItems.length; ++i) { JMenuItem item = new JMenuItem(debugItems[i], debugShortCuts[i]); item.addActionListener(this); if (debugAccelerators[i] != 0) { KeyStroke k = KeyStroke.getKeyStroke(debugAccelerators[i], 0); item.setAccelerator(k); } if (i != 0) { item.setEnabled(false); } debugMenu.add(item); } breakOnExceptions = new JCheckBoxMenuItem("Break on Exceptions"); breakOnExceptions.setMnemonic('X'); breakOnExceptions.addActionListener(this); breakOnExceptions.setSelected(false); debugMenu.add(breakOnExceptions); breakOnEnter = new JCheckBoxMenuItem("Break on Function Enter"); breakOnEnter.setMnemonic('E'); breakOnEnter.addActionListener(this); breakOnEnter.setSelected(false); debugMenu.add(breakOnEnter); breakOnReturn = new JCheckBoxMenuItem("Break on Function Return"); breakOnReturn.setMnemonic('R'); breakOnReturn.addActionListener(this); breakOnReturn.setSelected(false); debugMenu.add(breakOnReturn); add(fileMenu); add(editMenu); //add(plafMenu); add(debugMenu); JMenuItem item; windowMenu.add(item = new JMenuItem("Cascade", 'A')); item.addActionListener(this); windowMenu.add(item = new JMenuItem("Tile", 'T')); item.addActionListener(this); windowMenu.addSeparator(); windowMenu.add(item = new JMenuItem("Console", 'C')); item.addActionListener(this); add(windowMenu); }
47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/012fd059015fa654428b0b45979a41d4b4108437/DebugGui.java/clean/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/DebugGui.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 490, 275, 373, 297, 12, 2829, 18070, 1198, 18070, 13, 288, 3639, 2240, 5621, 3639, 333, 18, 4148, 18070, 273, 1198, 18070, 31, 3639, 514, 8526, 585, 3126, 225, 273, 12528, 3678, 7070, 16,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 490, 275, 373, 297, 12, 2829, 18070, 1198, 18070, 13, 288, 3639, 2240, 5621, 3639, 333, 18, 4148, 18070, 273, 1198, 18070, 31, 3639, 514, 8526, 585, 3126, 225, 273, 12528, 3678, 7070, 16,...
if(this.connection != null && this.connection.isConnected()) { this.disconnect();
if((connection != null) && connection.isConnected()) { disconnect();
public boolean initNodeConnection() { if(this.getMainWindow() != null) this.getMainWindow().setStatus(I18n.getMessage("thaw.statusBar.connecting")); try { if(this.queueManager != null) this.queueManager.stopScheduler(); if(this.connection != null && this.connection.isConnected()) { this.disconnect(); } if(this.connection == null) { this.connection = new FCPConnection(this.config.getValue("nodeAddress"), Integer.parseInt(this.config.getValue("nodePort")), Integer.parseInt(this.config.getValue("maxUploadSpeed")), Boolean.valueOf(this.config.getValue("multipleSockets")).booleanValue()); } else { this.connection.setNodeAddress(this.config.getValue("nodeAddress")); this.connection.setNodePort(Integer.parseInt(this.config.getValue("nodePort"))); this.connection.setMaxUploadSpeed(Integer.parseInt(this.config.getValue("maxUploadSpeed"))); } if(!this.connection.connect()) { Logger.warning(this, "Unable to connect !"); } if(this.queryManager == null) this.queryManager = new FCPQueryManager(this.connection); if(this.queueManager == null) this.queueManager = new FCPQueueManager(this.queryManager, this.config.getValue("thawId"), Integer.parseInt(this.config.getValue("maxSimultaneousDownloads")), Integer.parseInt(this.config.getValue("maxSimultaneousInsertions"))); else { this.queueManager.setThawId(this.config.getValue("thawId")); this.queueManager.setMaxDownloads(Integer.parseInt(this.config.getValue("maxSimultaneousDownloads"))); this.queueManager.setMaxInsertions(Integer.parseInt(this.config.getValue("maxSimultaneousInsertions"))); } if(this.connection.isConnected()) { this.queryManager.startListening(); QueueKeeper.loadQueue(this.queueManager, "thaw.queue.xml"); this.clientHello = new FCPClientHello(this.queryManager, this.config.getValue("thawId")); if(!this.clientHello.start(null)) { Logger.warning(this, "Id already used !"); this.connection.disconnect(); new WarningWindow(this, "Unable to connect to "+this.config.getValue("nodeAddress")+":"+this.config.getValue("nodePort")); return false; } else { Logger.debug(this, "Hello successful"); Logger.debug(this, "Node name : "+this.clientHello.getNodeName()); Logger.debug(this, "FCP version : "+this.clientHello.getNodeFCPVersion()); Logger.debug(this, "Node version : "+this.clientHello.getNodeVersion()); this.queueManager.startScheduler(); this.queueManager.restartNonPersistent(); FCPWatchGlobal watchGlobal = new FCPWatchGlobal(true); watchGlobal.start(this.queueManager); FCPQueueLoader queueLoader = new FCPQueueLoader(this.config.getValue("thawId")); queueLoader.start(this.queueManager); } } else { return false; } } catch(Exception e) { /* A little bit not ... "nice" ... */ Logger.warning(this, "Exception while connecting : "+e.toString()+" ; "+e.getMessage() + " ; "+e.getCause()); e.printStackTrace(); return false; } if(this.connection.isConnected()) this.connection.addObserver(this); if(this.getMainWindow() != null) this.getMainWindow().setStatus(I18n.getMessage("thaw.statusBar.ready")); return true; }
47012 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47012/0458430a0dc8a713aa2b4d64f000cbbaaeb4adea/Core.java/buggy/src/thaw/core/Core.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 1208, 907, 1952, 1435, 288, 202, 202, 430, 12, 2211, 18, 588, 6376, 3829, 1435, 480, 446, 13, 1082, 202, 2211, 18, 588, 6376, 3829, 7675, 542, 1482, 12, 45, 2643, 82, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 1208, 907, 1952, 1435, 288, 202, 202, 430, 12, 2211, 18, 588, 6376, 3829, 1435, 480, 446, 13, 1082, 202, 2211, 18, 588, 6376, 3829, 7675, 542, 1482, 12, 45, 2643, 82, ...
jj_la1[119] = jj_gen;
jj_la1[121] = jj_gen;
final public void Annotation() throws ParseException { /*@bgen(jjtree) Annotation */ ASTAnnotation jjtn000 = new ASTAnnotation(this, JJTANNOTATION); boolean jjtc000 = true; jjtree.openNodeScope(jjtn000); try { if (jj_2_46(2147483647)) { NormalAnnotation(); } else if (jj_2_47(2147483647)) { SingleMemberAnnotation(); } else { switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case AT: MarkerAnnotation(); break; default: jj_la1[119] = jj_gen; jj_consume_token(-1); throw new ParseException(); } } } catch (Throwable jjte000) { if (jjtc000) { jjtree.clearNodeScope(jjtn000); jjtc000 = false; } else { jjtree.popNode(); } if (jjte000 instanceof RuntimeException) { {if (true) throw (RuntimeException)jjte000;} } if (jjte000 instanceof ParseException) { {if (true) throw (ParseException)jjte000;} } {if (true) throw (RuntimeException)jjte000;} } finally { if (jjtc000) { jjtree.closeNodeScope(jjtn000, true); } } }
45569 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45569/b068fe5a79db07a544f081402e946a51a0f553c2/JavaParser.java/clean/pmd/src/net/sourceforge/pmd/ast/JavaParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 727, 1071, 918, 6090, 1435, 1216, 10616, 288, 1748, 36, 70, 4507, 12, 78, 78, 3413, 13, 6090, 1195, 225, 9183, 3257, 10684, 5088, 3784, 273, 394, 9183, 3257, 12, 2211, 16, 804, 46, 56, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 727, 1071, 918, 6090, 1435, 1216, 10616, 288, 1748, 36, 70, 4507, 12, 78, 78, 3413, 13, 6090, 1195, 225, 9183, 3257, 10684, 5088, 3784, 273, 394, 9183, 3257, 12, 2211, 16, 804, 46, 56, ...
result = (int) firstNode.getLocation() - (int) secondNode.getLocation();
result = (firstNode.getLocation() - secondNode.getLocation()) < 0 ? -1 : 1;
public void handleGet(URI uri, ToadletContext ctx) throws ToadletContextClosedException, IOException, RedirectException { final HTTPRequest request = new HTTPRequest(uri); String path = uri.getPath(); if(path.endsWith("myref.fref")) { SimpleFieldSet fs = node.exportPublicFieldSet(); StringWriter sw = new StringWriter(); fs.writeTo(sw); this.writeReply(ctx, 200, "text/plain", "OK", sw.toString()); return; } final boolean advancedEnabled = node.isAdvancedDarknetEnabled(); final boolean fProxyJavascriptEnabled = node.isFProxyJavascriptEnabled(); /* gather connection statistics */ PeerNodeStatus[] peerNodeStatuses = node.getPeerNodeStatuses(); Arrays.sort(peerNodeStatuses, new Comparator() { public int compare(Object first, Object second) { int result = 0; boolean isSet = true; PeerNodeStatus firstNode = (PeerNodeStatus) first; PeerNodeStatus secondNode = (PeerNodeStatus) second; if(request.isParameterSet("sortBy")){ final String sortBy = request.getParam("sortBy"); if(sortBy.equals("name")){ result = firstNode.getName().compareToIgnoreCase(secondNode.getName()); }else if(sortBy.equals("address")){ result = firstNode.getPeerAddress().compareToIgnoreCase(secondNode.getPeerAddress()); }else if(sortBy.equals("location")){ result = (int) firstNode.getLocation() - (int) secondNode.getLocation(); }else if(sortBy.equals("version")){ result = Version.getArbitraryBuildNumber(firstNode.getVersion()) - Version.getArbitraryBuildNumber(secondNode.getVersion()); }else if(sortBy.equals("privnote")){ result = firstNode.getPrivateDarknetCommentNote().compareToIgnoreCase(secondNode.getPrivateDarknetCommentNote()); }else isSet=false; }else isSet=false; if(!isSet){ int statusDifference = firstNode.getStatusValue() - secondNode.getStatusValue(); if (statusDifference != 0) result = (statusDifference < 0 ? -1 : 1); else result = firstNode.getName().compareToIgnoreCase(secondNode.getName()); } if(result == 0){ return 0; }else if(request.isParameterSet("reversed")){ isReversed = true; return result > 0 ? -1 : 1; }else{ isReversed = false; return result < 0 ? -1 : 1; } } }); int numberOfConnected = PeerNodeStatus.getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_CONNECTED); int numberOfRoutingBackedOff = PeerNodeStatus.getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_ROUTING_BACKED_OFF); int numberOfTooNew = PeerNodeStatus.getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_TOO_NEW); int numberOfTooOld = PeerNodeStatus.getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_TOO_OLD); int numberOfDisconnected = PeerNodeStatus.getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_DISCONNECTED); int numberOfNeverConnected = PeerNodeStatus.getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_NEVER_CONNECTED); int numberOfDisabled = PeerNodeStatus.getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_DISABLED); int numberOfBursting = PeerNodeStatus.getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_BURSTING); int numberOfListening = PeerNodeStatus.getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_LISTENING); int numberOfListenOnly = PeerNodeStatus.getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_LISTEN_ONLY); int numberOfSimpleConnected = numberOfConnected + numberOfRoutingBackedOff; int numberOfNotConnected = numberOfTooNew + numberOfTooOld + numberOfDisconnected + numberOfNeverConnected + numberOfDisabled + numberOfBursting + numberOfListening + numberOfListenOnly; String titleCountString = null; if(advancedEnabled) { titleCountString = "(" + numberOfConnected + '/' + numberOfRoutingBackedOff + '/' + numberOfTooNew + '/' + numberOfTooOld + '/' + numberOfNotConnected + ')'; } else { titleCountString = (numberOfNotConnected + numberOfSimpleConnected)>0 ? String.valueOf(numberOfSimpleConnected) : ""; } HTMLNode pageNode = ctx.getPageMaker().getPageNode(titleCountString + " Darknet Peers of " + node.getMyName()); HTMLNode contentNode = ctx.getPageMaker().getContentNode(pageNode); // FIXME! We need some nice images long now = System.currentTimeMillis(); contentNode.addChild(core.alerts.createSummary()); if(peerNodeStatuses.length>0){ /* node status values */ long nodeUptimeSeconds = (now - node.startupTime) / 1000; int bwlimitDelayTime = (int) node.getBwlimitDelayTime(); int nodeAveragePingTime = (int) node.getNodeAveragePingTime(); int networkSizeEstimateSession = node.getNetworkSizeEstimate(-1); int networkSizeEstimateRecent = 0; if(nodeUptimeSeconds > (48*60*60)) { // 48 hours networkSizeEstimateRecent = node.getNetworkSizeEstimate(now - (48*60*60*1000)); // 48 hours } DecimalFormat fix4 = new DecimalFormat("0.0000"); double routingMissDistance = node.routingMissDistance.currentValue(); DecimalFormat fix1 = new DecimalFormat("##0.0%"); double backedOffPercent = node.backedOffPercent.currentValue(); String nodeUptimeString = TimeUtil.formatTime(nodeUptimeSeconds * 1000); // *1000 to convert to milliseconds // BEGIN OVERVIEW TABLE HTMLNode overviewTable = contentNode.addChild("table", "class", "column"); HTMLNode overviewTableRow = overviewTable.addChild("tr"); HTMLNode nextTableCell = overviewTableRow.addChild("td", "class", "first"); /* node status overview box */ if(advancedEnabled) { HTMLNode overviewInfobox = nextTableCell.addChild("div", "class", "infobox"); overviewInfobox.addChild("div", "class", "infobox-header", "Node status overview"); HTMLNode overviewInfoboxContent = overviewInfobox.addChild("div", "class", "infobox-content"); HTMLNode overviewList = overviewInfoboxContent.addChild("ul"); overviewList.addChild("li", "bwlimitDelayTime:\u00a0" + bwlimitDelayTime + "ms"); overviewList.addChild("li", "nodeAveragePingTime:\u00a0" + nodeAveragePingTime + "ms"); overviewList.addChild("li", "networkSizeEstimateSession:\u00a0" + networkSizeEstimateSession + "\u00a0nodes"); if(nodeUptimeSeconds > (48*60*60)) { // 48 hours overviewList.addChild("li", "networkSizeEstimateRecent:\u00a0" + networkSizeEstimateRecent + "\u00a0nodes"); } overviewList.addChild("li", "nodeUptime:\u00a0" + nodeUptimeString); overviewList.addChild("li", "routingMissDistance:\u00a0" + fix4.format(routingMissDistance)); overviewList.addChild("li", "backedOffPercent:\u00a0" + fix1.format(backedOffPercent)); overviewList.addChild("li", "pInstantReject:\u00a0" + fix1.format(node.pRejectIncomingInstantly())); nextTableCell = overviewTableRow.addChild("td"); } // Activity box int numInserts = node.getNumInserts(); int numRequests = node.getNumRequests(); int numTransferringRequests = node.getNumTransferringRequests(); int numARKFetchers = node.getNumARKFetchers(); HTMLNode activityInfobox = nextTableCell.addChild("div", "class", "infobox"); activityInfobox.addChild("div", "class", "infobox-header", "Current activity"); HTMLNode activityInfoboxContent = activityInfobox.addChild("div", "class", "infobox-content"); if ((numInserts == 0) && (numRequests == 0) && (numTransferringRequests == 0) && (numARKFetchers == 0)) { activityInfoboxContent.addChild("#", "Your node is not processing any requests right now."); } else { HTMLNode activityList = activityInfoboxContent.addChild("ul"); if (numInserts > 0) { activityList.addChild("li", "Inserts:\u00a0" + numInserts); } if (numRequests > 0) { activityList.addChild("li", "Requests:\u00a0" + numRequests); } if (numTransferringRequests > 0) { activityList.addChild("li", "Transferring\u00a0Requests:\u00a0" + numTransferringRequests); } if (advancedEnabled) { if (numARKFetchers > 0) { activityList.addChild("li", "ARK\u00a0Fetch\u00a0Requests:\u00a0" + numARKFetchers); } long[] total = IOStatisticCollector.getTotalIO(); long total_output_rate = (total[0]) / nodeUptimeSeconds; long total_input_rate = (total[1]) / nodeUptimeSeconds; long totalPayload = node.getTotalPayloadSent(); long total_payload_rate = totalPayload / nodeUptimeSeconds; int percent = (int) (100 * totalPayload / total[0]); activityList.addChild("li", "Total Output:\u00a0" + SizeUtil.formatSize(total[0], true) + "\u00a0(" + SizeUtil.formatSize(total_output_rate, true) + "ps)"); activityList.addChild("li", "Payload Output:\u00a0" + SizeUtil.formatSize(totalPayload, true) + "\u00a0(" + SizeUtil.formatSize(total_payload_rate, true) + "ps) ("+percent+"%)"); activityList.addChild("li", "Total Input:\u00a0" + SizeUtil.formatSize(total[1], true) + "\u00a0(" + SizeUtil.formatSize(total_input_rate, true) + "ps)"); long[] rate = node.getNodeIOStats(); long delta = (rate[5] - rate[2]) / 1000; long output_rate = (rate[3] - rate[0]) / delta; long input_rate = (rate[4] - rate[1]) / delta; SubConfig nodeConfig = node.config.get("node"); int outputBandwidthLimit = nodeConfig.getInt("outputBandwidthLimit"); int inputBandwidthLimit = nodeConfig.getInt("inputBandwidthLimit"); if(inputBandwidthLimit == -1) { inputBandwidthLimit = outputBandwidthLimit * 4; } activityList.addChild("li", "Output Rate:\u00a0" + SizeUtil.formatSize(output_rate, true) + "ps (of\u00a0"+SizeUtil.formatSize(outputBandwidthLimit, true)+"ps)"); activityList.addChild("li", "Input Rate:\u00a0" + SizeUtil.formatSize(input_rate, true) + "ps (of\u00a0"+SizeUtil.formatSize(inputBandwidthLimit, true)+"ps)"); } } nextTableCell = advancedEnabled ? overviewTableRow.addChild("td") : overviewTableRow.addChild("td", "class", "last"); // Peer statistics box HTMLNode peerStatsInfobox = nextTableCell.addChild("div", "class", "infobox"); peerStatsInfobox.addChild("div", "class", "infobox-header", "Peer statistics"); HTMLNode peerStatsContent = peerStatsInfobox.addChild("div", "class", "infobox-content"); HTMLNode peerStatsList = peerStatsContent.addChild("ul"); if (numberOfConnected > 0) { HTMLNode peerStatsConnectedListItem = peerStatsList.addChild("li").addChild("span"); peerStatsConnectedListItem.addChild("span", new String[] { "class", "title", "style" }, new String[] { "peer_connected", "Connected: We're successfully connected to these nodes", "border-bottom: 1px dotted; cursor: help;" }, "Connected"); peerStatsConnectedListItem.addChild("span", ":\u00a0" + numberOfConnected); } if (numberOfRoutingBackedOff > 0) { HTMLNode peerStatsRoutingBackedOffListItem = peerStatsList.addChild("li").addChild("span"); peerStatsRoutingBackedOffListItem.addChild("span", new String[] { "class", "title", "style" }, new String[] { "peer_backed_off", (advancedEnabled ? "Connected but backed off: These peers are connected but we're backed off of them" : "Busy: These peers are connected but they're busy") + ", so the node is not routing requests to them", "border-bottom: 1px dotted; cursor: help;" }, advancedEnabled ? "Backed off" : "Busy"); peerStatsRoutingBackedOffListItem.addChild("span", ":\u00a0" + numberOfRoutingBackedOff); } if (numberOfTooNew > 0) { HTMLNode peerStatsTooNewListItem = peerStatsList.addChild("li").addChild("span"); peerStatsTooNewListItem.addChild("span", new String[] { "class", "title", "style" }, new String[] { "peer_too_new", "Connected but too new: These peers' minimum mandatory build is higher than this node's build. This node is not routing requests to them", "border-bottom: 1px dotted; cursor: help;" }, "Too New"); peerStatsTooNewListItem.addChild("span", ":\u00a0" + numberOfTooNew); } if (numberOfTooOld > 0) { HTMLNode peerStatsTooOldListItem = peerStatsList.addChild("li").addChild("span"); peerStatsTooOldListItem.addChild("span", new String[] { "class", "title", "style" }, new String[] { "peer_too_old", "Connected but too old: This node's minimum mandatory build is higher than these peers' build. This node is not routing requests to them", "border-bottom: 1px dotted; cursor: help;" }, "Too Old"); peerStatsTooOldListItem.addChild("span", ":\u00a0" + numberOfTooOld); } if (numberOfDisconnected > 0) { HTMLNode peerStatsDisconnectedListItem = peerStatsList.addChild("li").addChild("span"); peerStatsDisconnectedListItem.addChild("span", new String[] { "class", "title", "style" }, new String[] { "peer_disconnected", "Not connected: No connection so far but this node is continuously trying to connect", "border-bottom: 1px dotted; cursor: help;" }, "Disconnected"); peerStatsDisconnectedListItem.addChild("span", ":\u00a0" + numberOfDisconnected); } if (numberOfNeverConnected > 0) { HTMLNode peerStatsNeverConnectedListItem = peerStatsList.addChild("li").addChild("span"); peerStatsNeverConnectedListItem.addChild("span", new String[] { "class", "title", "style" }, new String[] { "peer_never_connected", "Never Connected: The node has never connected with these peers", "border-bottom: 1px dotted; cursor: help;" }, "Never Connected"); peerStatsNeverConnectedListItem.addChild("span", ":\u00a0" + numberOfNeverConnected); } if (numberOfDisabled > 0) { HTMLNode peerStatsDisabledListItem = peerStatsList.addChild("li").addChild("span"); peerStatsDisabledListItem.addChild("span", new String[] { "class", "title", "style" }, new String[] { "peer_disabled", "Not connected and disabled: because the user has instructed to not connect to peers ", "border-bottom: 1px dotted; cursor: help;" }, "Disabled"); peerStatsDisabledListItem.addChild("span", ":\u00a0" + numberOfDisabled); } if (numberOfBursting > 0) { HTMLNode peerStatsBurstingListItem = peerStatsList.addChild("li").addChild("span"); peerStatsBurstingListItem.addChild("span", new String[] { "class", "title", "style" }, new String[] { "peer_bursting", "Not connected and bursting: this node is, for a short period, trying to connect to these peers because the user has set BurstOnly on them", "border-bottom: 1px dotted; cursor: help;" }, "Bursting"); peerStatsBurstingListItem.addChild("span", ":\u00a0" + numberOfBursting); } if (numberOfListening > 0) { HTMLNode peerStatsListeningListItem = peerStatsList.addChild("li").addChild("span"); peerStatsListeningListItem.addChild("span", new String[] { "class", "title", "style" }, new String[] { "peer_listening", "Not connected but listening: this node won't try to connect to these peers very often because the user has set BurstOnly on them", "border-bottom: 1px dotted; cursor: help;" }, "Listening"); peerStatsListeningListItem.addChild("span", ":\u00a0" + numberOfListening); } if (numberOfListenOnly > 0) { HTMLNode peerStatsListenOnlyListItem = peerStatsList.addChild("li").addChild("span"); peerStatsListenOnlyListItem.addChild("span", new String[] { "class", "title", "style" }, new String[] { "peer_listen_only", "Not connected and listen only: this node won't try to connect to these peers at all because the user has set ListenOnly on them", "border-bottom: 1px dotted; cursor: help;" }, "Listen Only"); peerStatsListenOnlyListItem.addChild("span", ":\u00a0" + numberOfListenOnly); } // Peer routing backoff reason box if(advancedEnabled) { nextTableCell = overviewTableRow.addChild("td", "class", "last"); HTMLNode backoffReasonInfobox = nextTableCell.addChild("div", "class", "infobox"); backoffReasonInfobox.addChild("div", "class", "infobox-header", "Peer backoff reasons"); HTMLNode backoffReasonContent = backoffReasonInfobox.addChild("div", "class", "infobox-content"); String [] routingBackoffReasons = node.getPeerNodeRoutingBackoffReasons(); if(routingBackoffReasons.length == 0) { backoffReasonContent.addChild("#", "Good, your node is not backed off from any peers!"); } else { HTMLNode reasonList = backoffReasonContent.addChild("ul"); for(int i=0;i<routingBackoffReasons.length;i++) { int reasonCount = node.getPeerNodeRoutingBackoffReasonSize(routingBackoffReasons[i]); if(reasonCount > 0) { reasonList.addChild("li", routingBackoffReasons[i] + '\u00a0' + reasonCount); } } } } // END OVERVIEW TABLE // BEGIN PEER TABLE if(fProxyJavascriptEnabled) { StringBuffer jsBuf = new StringBuffer(); // FIXME: There's probably some icky Javascript in here (this is the first thing that worked for me); feel free to fix up to Javascript guru standards jsBuf.append( " function peerNoteChange() {\n" ); jsBuf.append( " var theobj = document.getElementById( \"action\" );\n" ); jsBuf.append( " var length = theobj.options.length;\n" ); jsBuf.append( " for (var i = 0; i < length; i++) {\n" ); jsBuf.append( " if(theobj.options[i] == \"update_notes\") {\n" ); jsBuf.append( " theobj.options[i].select = true;\n" ); jsBuf.append( " } else {\n" ); jsBuf.append( " theobj.options[i].select = false;\n" ); jsBuf.append( " }\n" ); jsBuf.append( " }\n" ); jsBuf.append( " theobj.value=\"update_notes\";\n" ); //jsBuf.append( " document.getElementById( \"peersForm\" ).submit();\n" ); jsBuf.append( " document.getElementById( \"peersForm\" ).doAction.click();\n" ); jsBuf.append( " }\n" ); jsBuf.append( " function peerNoteBlur() {\n" ); jsBuf.append( " var theobj = document.getElementById( \"action\" );\n" ); jsBuf.append( " var length = theobj.options.length;\n" ); jsBuf.append( " for (var i = 0; i < length; i++) {\n" ); jsBuf.append( " if(theobj.options[i] == \"update_notes\") {\n" ); jsBuf.append( " theobj.options[i].select = true;\n" ); jsBuf.append( " } else {\n" ); jsBuf.append( " theobj.options[i].select = false;\n" ); jsBuf.append( " }\n" ); jsBuf.append( " }\n" ); jsBuf.append( " theobj.value=\"update_notes\";\n" ); jsBuf.append( " }\n" ); contentNode.addChild("script", "type", "text/javascript").addChild("%", jsBuf.toString()); } HTMLNode peerTableInfobox = contentNode.addChild("div", "class", "infobox infobox-normal"); HTMLNode peerTableInfoboxHeader = peerTableInfobox.addChild("div", "class", "infobox-header"); peerTableInfoboxHeader.addChild("#", "My peers"); if (advancedEnabled) { if (!path.endsWith("displaymessagetypes.html")) { peerTableInfoboxHeader.addChild("#", " "); peerTableInfoboxHeader.addChild("a", "href", "displaymessagetypes.html", "(more detailed)"); } } HTMLNode peerTableInfoboxContent = peerTableInfobox.addChild("div", "class", "infobox-content"); if (peerNodeStatuses.length == 0) { peerTableInfoboxContent.addChild("#", "Freenet can not work as you have not added any peers so far. Please go to the "); peerTableInfoboxContent.addChild("a", "href", "/", "node homepage"); peerTableInfoboxContent.addChild("#", " and read the top infobox to see how it is done."); } else { HTMLNode peerForm = ctx.addFormChild(peerTableInfoboxContent, ".", "peersForm"); HTMLNode peerTable = peerForm.addChild("table", "class", "darknet_connections"); HTMLNode peerTableHeaderRow = peerTable.addChild("tr"); peerTableHeaderRow.addChild("th"); peerTableHeaderRow.addChild("th").addChild("a", "href", (isReversed ? "?sortBy=status" : "?sortBy=status&reversed")).addChild("#", "Status"); peerTableHeaderRow.addChild("th").addChild("a", "href", (isReversed ? "?sortBy=name" : "?sortBy=name&reversed")).addChild("span", new String[] { "title", "style" }, new String[] { "The node's name. Click on the name link to send the node a N2NTM (Node To Node Text Message)", "border-bottom: 1px dotted; cursor: help;" }, "Name"); if (advancedEnabled) { peerTableHeaderRow.addChild("th").addChild("a", "href", (isReversed ? "?sortBy=address" : "?sortBy=address&reversed")).addChild("span", new String[] { "title", "style" }, new String[] { "The node's network address as IP:Port", "border-bottom: 1px dotted; cursor: help;" }, "Address"); } peerTableHeaderRow.addChild("th").addChild("a", "href", (isReversed ? "?sortBy=version" : "?sortBy=version&reversed")).addChild("#", "Version"); if (advancedEnabled) { peerTableHeaderRow.addChild("th").addChild("a", "href", (isReversed ? "?sortBy=location" : "?sortBy=location&reversed")).addChild("#", "Location"); peerTableHeaderRow.addChild("th").addChild("span", new String[] { "title", "style" }, new String[] { "Other node busy? Display: Percentage of time the node is overloaded, Current wait time remaining (0=not overloaded)/total/last overload reason", "border-bottom: 1px dotted; cursor: help;" }, "Backoff"); peerTableHeaderRow.addChild("th").addChild("span", new String[] { "title", "style" }, new String[] { "Probability of the node rejecting a request due to overload or causing a timeout.", "border-bottom: 1px dotted; cursor: help;" }, "Overload Probability"); } peerTableHeaderRow.addChild("th").addChild("span", new String[] { "title", "style" }, new String[] { "How long since the node was connected or last seen", "border-bottom: 1px dotted; cursor: help;" }, "Connected\u00a0/\u00a0Idle"); peerTableHeaderRow.addChild("th").addChild("a", "href", (isReversed ? "?sortBy=privnote" : "?sortBy=privnote&reversed")).addChild("span", new String[] { "title", "style" }, new String[] { "A private note concerning this peer", "border-bottom: 1px dotted; cursor: help;" }, "Private Note"); if(advancedEnabled) { peerTableHeaderRow.addChild("th", "%\u00a0Time Routable"); peerTableHeaderRow.addChild("th", "Total\u00a0Traffic\u00a0(in/out)"); } for (int peerIndex = 0, peerCount = peerNodeStatuses.length; peerIndex < peerCount; peerIndex++) { PeerNodeStatus peerNodeStatus = peerNodeStatuses[peerIndex]; HTMLNode peerRow = peerTable.addChild("tr"); // check box column peerRow.addChild("td", "class", "peer-marker").addChild("input", new String[] { "type", "name" }, new String[] { "checkbox", "node_" + peerNodeStatus.hashCode() }); // status column String statusString = peerNodeStatus.getStatusName(); if (!advancedEnabled && (peerNodeStatus.getStatusValue() == Node.PEER_NODE_STATUS_ROUTING_BACKED_OFF)) { statusString = "BUSY"; } peerRow.addChild("td", "class", "peer-status").addChild("span", "class", peerNodeStatus.getStatusCSSName(), statusString + (peerNodeStatus.isFetchingARK() ? "*" : "")); // name column peerRow.addChild("td", "class", "peer-name").addChild("a", "href", "/send_n2ntm/?peernode_hashcode=" + peerNodeStatus.hashCode(), peerNodeStatus.getName()); // address column if (advancedEnabled) { String pingTime = ""; if (peerNodeStatus.isConnected()) { pingTime = " (" + (int) peerNodeStatus.getAveragePingTime() + "ms)"; } peerRow.addChild("td", "class", "peer-address").addChild("#", ((peerNodeStatus.getPeerAddress() != null) ? (peerNodeStatus.getPeerAddress() + ':' + peerNodeStatus.getPeerPort()) : ("(unknown address)")) + pingTime); } // version column if (peerNodeStatus.getStatusValue() != Node.PEER_NODE_STATUS_NEVER_CONNECTED && (peerNodeStatus.isPublicInvalidVersion() || peerNodeStatus.isPublicReverseInvalidVersion())) { // Don't draw attention to a version problem if NEVER CONNECTED peerRow.addChild("td", "class", "peer-version").addChild("span", "class", "peer_version_problem", peerNodeStatus.getSimpleVersion()); } else { peerRow.addChild("td", "class", "peer-version").addChild("#", peerNodeStatus.getSimpleVersion()); } // location column if (advancedEnabled) { peerRow.addChild("td", "class", "peer-location", String.valueOf(peerNodeStatus.getLocation())); } if (advancedEnabled) { // backoff column HTMLNode backoffCell = peerRow.addChild("td", "class", "peer-backoff"); backoffCell.addChild("#", fix1.format(peerNodeStatus.getBackedOffPercent())); int backoff = (int) (Math.max(peerNodeStatus.getRoutingBackedOffUntil() - now, 0)); // Don't list the backoff as zero before it's actually zero if ((backoff > 0) && (backoff < 1000)) { backoff = 1000; } backoffCell.addChild("#", ' ' + String.valueOf(backoff / 1000) + '/' + String.valueOf(peerNodeStatus.getRoutingBackoffLength() / 1000)); backoffCell.addChild("#", (peerNodeStatus.getLastBackoffReason() == null) ? "" : ('/' + (peerNodeStatus.getLastBackoffReason()))); // overload probability column HTMLNode pRejectCell = peerRow.addChild("td", "class", "peer-backoff"); // FIXME pRejectCell.addChild("#", fix1.format(peerNodeStatus.getPReject())); } // idle column long idle = peerNodeStatus.getTimeLastRoutable(); if (peerNodeStatus.isRoutable()) { idle = peerNodeStatus.getTimeLastConnectionCompleted(); } else if (peerNodeStatus.getStatusValue() == Node.PEER_NODE_STATUS_NEVER_CONNECTED) { idle = peerNodeStatus.getPeerAddedTime(); } if(!peerNodeStatus.isConnected() && (now - idle) > (2 * 7 * 24 * 60 * 60 * (long) 1000)) { // 2 weeks peerRow.addChild("td", "class", "peer-idle").addChild("span", "class", "peer_idle_old", idleToString(now, idle)); } else { peerRow.addChild("td", "class", "peer-idle", idleToString(now, idle)); } // private darknet node comment note column if(fProxyJavascriptEnabled) { peerRow.addChild("td", "class", "peer-private-darknet-comment-note").addChild("input", new String[] { "type", "name", "size", "maxlength", "onBlur", "onChange", "value" }, new String[] { "text", "peerPrivateNote_" + peerNodeStatus.hashCode(), "16", "250", "peerNoteBlur();", "peerNoteChange();", peerNodeStatus.getPrivateDarknetCommentNote() }); } else { peerRow.addChild("td", "class", "peer-private-darknet-comment-note").addChild("input", new String[] { "type", "name", "size", "maxlength", "value" }, new String[] { "text", "peerPrivateNote_" + peerNodeStatus.hashCode(), "16", "250", peerNodeStatus.getPrivateDarknetCommentNote() }); } if(advancedEnabled) { // percent of time connected column peerRow.addChild("td", "class", "peer-idle" /* FIXME */).addChild("#", fix1.format(peerNodeStatus.getPercentTimeRoutableConnection())); // total traffic column peerRow.addChild("td", "class", "peer-idle" /* FIXME */).addChild("#", SizeUtil.formatSize(peerNodeStatus.getTotalInputBytes())+" / "+SizeUtil.formatSize(peerNodeStatus.getTotalOutputBytes())); } if (path.endsWith("displaymessagetypes.html")) { HTMLNode messageCountRow = peerTable.addChild("tr", "class", "message-status"); messageCountRow.addChild("td", "colspan", "2"); HTMLNode messageCountCell = messageCountRow.addChild("td", "colspan", String.valueOf(advancedEnabled ? 9 : 5)); // = total table row width - 2 from above colspan HTMLNode messageCountTable = messageCountCell.addChild("table", "class", "message-count"); HTMLNode countHeaderRow = messageCountTable.addChild("tr"); countHeaderRow.addChild("th", "Message"); countHeaderRow.addChild("th", "Incoming"); countHeaderRow.addChild("th", "Outgoing"); List messageNames = new ArrayList(); Map messageCounts = new HashMap(); for (Iterator incomingMessages = peerNodeStatus.getLocalMessagesReceived().keySet().iterator(); incomingMessages.hasNext(); ) { String messageName = (String) incomingMessages.next(); messageNames.add(messageName); Long messageCount = (Long) peerNodeStatus.getLocalMessagesReceived().get(messageName); messageCounts.put(messageName, new Long[] { messageCount, new Long(0) }); } for (Iterator outgoingMessages = peerNodeStatus.getLocalMessagesSent().keySet().iterator(); outgoingMessages.hasNext(); ) { String messageName = (String) outgoingMessages.next(); if (!messageNames.contains(messageName)) { messageNames.add(messageName); } Long messageCount = (Long) peerNodeStatus.getLocalMessagesSent().get(messageName); Long[] existingCounts = (Long[]) messageCounts.get(messageName); if (existingCounts == null) { messageCounts.put(messageName, new Long[] { new Long(0), messageCount }); } else { existingCounts[1] = messageCount; } } Collections.sort(messageNames, new Comparator() { public int compare(Object first, Object second) { return ((String) first).compareToIgnoreCase((String) second); } }); for (Iterator messageNamesIterator = messageNames.iterator(); messageNamesIterator.hasNext(); ) { String messageName = (String) messageNamesIterator.next(); Long[] messageCount = (Long[]) messageCounts.get(messageName); HTMLNode messageRow = messageCountTable.addChild("tr"); messageRow.addChild("td", messageName); messageRow.addChild("td", "class", "right-align", String.valueOf(messageCount[0])); messageRow.addChild("td", "class", "right-align", String.valueOf(messageCount[1])); } } } HTMLNode actionSelect = peerForm.addChild("select", new String[] { "id", "name" }, new String[] { "action", "action" }); actionSelect.addChild("option", "value", "", "-- Select action --"); actionSelect.addChild("option", "value", "send_n2ntm", "Send N2NTM to selected peers"); actionSelect.addChild("option", "value", "update_notes", "Update changed private notes"); if(advancedEnabled) { actionSelect.addChild("option", "value", "enable", "Enable selected peers"); actionSelect.addChild("option", "value", "disable", "Disable selected peers"); actionSelect.addChild("option", "value", "set_burst_only", "On selected peers, set BurstOnly (only set this if you have a static IP and are not NATed and neither is the peer)"); actionSelect.addChild("option", "value", "clear_burst_only", "On selected peers, clear BurstOnly"); actionSelect.addChild("option", "value", "set_listen_only", "On selected peers, set ListenOnly (not recommended)"); actionSelect.addChild("option", "value", "clear_listen_only", "On selected peers, clear ListenOnly"); actionSelect.addChild("option", "value", "set_allow_local", "On selected peers, set allowLocalAddresses (useful if you are connecting to another node on the same LAN)"); actionSelect.addChild("option", "value", "clear_allow_local", "On selected peers, clear allowLocalAddresses"); actionSelect.addChild("option", "value", "set_ignore_source_port", "On selected peers, set ignoreSourcePort (try this if behind an evil corporate firewall; otherwise not recommended)"); actionSelect.addChild("option", "value", "clear_ignore_source_port", "On selected peers, clear ignoreSourcePort"); } actionSelect.addChild("option", "value", "", "-- -- --"); actionSelect.addChild("option", "value", "remove", "Remove selected peers"); peerForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "doAction", "Go" }); } // END PEER TABLE } // BEGIN PEER ADDITION BOX HTMLNode peerAdditionInfobox = contentNode.addChild("div", "class", "infobox infobox-normal"); peerAdditionInfobox.addChild("div", "class", "infobox-header", "Add another peer"); HTMLNode peerAdditionContent = peerAdditionInfobox.addChild("div", "class", "infobox-content"); HTMLNode peerAdditionForm = ctx.addFormChild(peerAdditionContent, ".", "addPeerForm"); peerAdditionForm.addChild("#", "Paste the reference here:"); peerAdditionForm.addChild("br"); peerAdditionForm.addChild("textarea", new String[] { "id", "name", "rows", "cols" }, new String[] { "reftext", "ref", "8", "74" }); peerAdditionForm.addChild("br"); peerAdditionForm.addChild("#", "Enter the URL of the reference here: "); peerAdditionForm.addChild("input", new String[] { "id", "type", "name" }, new String[] { "refurl", "text", "url" }); peerAdditionForm.addChild("br"); peerAdditionForm.addChild("#", "Choose the file containing the reference here: "); peerAdditionForm.addChild("input", new String[] { "id", "type", "name" }, new String[] { "reffile", "file", "reffile" }); peerAdditionForm.addChild("br"); peerAdditionForm.addChild("#", "Enter a node description: "); peerAdditionForm.addChild("input", new String[] { "id", "type", "name", "size", "maxlength", "value" }, new String[] { "peerPrivateNote", "text", "peerPrivateNote", "16", "250", "" }); peerAdditionForm.addChild("br"); peerAdditionForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "add", "Add" }); // our reference HTMLNode referenceInfobox = contentNode.addChild("div", "class", "infobox infobox-normal"); referenceInfobox.addChild("div", "class", "infobox-header").addChild("a", "href", "myref.fref", "My reference"); referenceInfobox.addChild("div", "class", "infobox-content").addChild("pre", "id", "reference", node.exportPublicFieldSet().toString()); // our ports HTMLNode portInfobox = contentNode.addChild("div", "class", "infobox infobox-normal"); portInfobox.addChild("div", "class", "infobox-header", "Node's Ports"); HTMLNode portInfoboxContent = portInfobox.addChild("div", "class", "infobox-content"); HTMLNode portInfoList = portInfoboxContent.addChild("ul"); SimpleFieldSet fproxyConfig = node.config.get("fproxy").exportFieldSet(true); SimpleFieldSet fcpConfig = node.config.get("fcp").exportFieldSet(true); SimpleFieldSet tmciConfig = node.config.get("console").exportFieldSet(true); portInfoList.addChild("li", "FNP:\u00a0" + node.getFNPPort() + "/udp\u00a0\u00a0\u00a0(between nodes; this is usually the only port that you might want to port forward)"); try { if(fproxyConfig.getBoolean("enabled", false)) { portInfoList.addChild("li", "FProxy:\u00a0" + fproxyConfig.getInt("port") + "/tcp\u00a0\u00a0\u00a0(this web interface)"); } else { portInfoList.addChild("li", "FProxy:\u00a0disabled/tcp\u00a0\u00a0\u00a0(this web interface)"); } if(fcpConfig.getBoolean("enabled", false)) { portInfoList.addChild("li", "FCP:\u00a0" + fcpConfig.getInt("port") + "/tcp\u00a0\u00a0\u00a0(for Freenet clients such as Frost and Thaw)"); } else { portInfoList.addChild("li", "FCP:\u00a0disabled/tcp\u00a0\u00a0\u00a0(for Freenet clients such as Frost and Thaw)"); } if(tmciConfig.getBoolean("enabled", false)) { portInfoList.addChild("li", "TMCI:\u00a0" + tmciConfig.getInt("port") + "/tcp\u00a0\u00a0\u00a0(simple telnet-based command-line interface)"); } else { portInfoList.addChild("li", "TMCI:\u00a0disabled/tcp\u00a0\u00a0\u00a0(simple telnet-based command-line interface)"); } } catch (FSParseException e) { // ignore } StringBuffer pageBuffer = new StringBuffer(); pageNode.generate(pageBuffer); this.writeReply(ctx, 200, "text/html", "OK", pageBuffer.toString()); }
48807 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48807/4d38a0a098e67d881889a8b46b742ae4c7a2fd9f/DarknetConnectionsToadlet.java/buggy/src/freenet/clients/http/DarknetConnectionsToadlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1640, 967, 12, 3098, 2003, 16, 2974, 361, 1810, 1042, 1103, 13, 1216, 2974, 361, 1810, 1042, 7395, 503, 16, 1860, 16, 9942, 503, 288, 202, 202, 6385, 25238, 590, 273, 394...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1640, 967, 12, 3098, 2003, 16, 2974, 361, 1810, 1042, 1103, 13, 1216, 2974, 361, 1810, 1042, 7395, 503, 16, 1860, 16, 9942, 503, 288, 202, 202, 6385, 25238, 590, 273, 394...
if (n < blockSize) {
}
protected int readBlock() { blockSize = read(); int n = 0; if (blockSize > 0) { try { int count = 0; while (n < blockSize) { count = in.read(block, n, blockSize - n); if (count == -1) break; n += count; } } catch (IOException e) { } if (n < blockSize) { status = STATUS_FORMAT_ERROR; } } return n; }
6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/38deb5a3770dd936982e996839c13f192aaf5f29/GifDecoder.java/buggy/Ajax/src/com/zimbra/ajax/imagemerge/GifDecoder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 509, 855, 1768, 1435, 288, 3639, 13766, 273, 855, 5621, 3639, 509, 290, 273, 374, 31, 3639, 309, 261, 2629, 1225, 405, 374, 13, 288, 5411, 775, 288, 7734, 509, 1056, 273, 374, 31,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 509, 855, 1768, 1435, 288, 3639, 13766, 273, 855, 5621, 3639, 509, 290, 273, 374, 31, 3639, 309, 261, 2629, 1225, 405, 374, 13, 288, 5411, 775, 288, 7734, 509, 1056, 273, 374, 31,...
Object retValue = info.getAllChildren( ).get( columnNumber - 1 );
Object retValue = null; if ( info != null && columnNumber >= 1 && info.getAllChildren( ).size( ) >= columnNumber ) { retValue = info.getAllChildren( ).get( columnNumber - 1 ); }
public Object getCell( int rowNumber, int columnNumber, boolean bool ) { Object obj = getRow( rowNumber ); TableHandleAdapter.RowUIInfomation info = getRowInfo( obj ); Object retValue = info.getAllChildren( ).get( columnNumber - 1 ); if ( bool ) { return retValue; } if ( HandleAdapterFactory.getInstance( ) .getCellHandleAdapter( retValue ) .getRowNumber( ) != rowNumber || HandleAdapterFactory.getInstance( ) .getCellHandleAdapter( retValue ) .getColumnNumber( ) != columnNumber ) { retValue = null; } return retValue; }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/3f68fc5f1415365694db90b8a0a0e9ae13313612/TableHandleAdapter.java/clean/UI/org.eclipse.birt.report.designer.core/src/org/eclipse/birt/report/designer/core/model/schematic/TableHandleAdapter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1033, 16458, 12, 509, 1027, 1854, 16, 509, 1057, 1854, 16, 1250, 1426, 262, 202, 95, 202, 202, 921, 1081, 273, 11835, 12, 1027, 1854, 11272, 202, 202, 1388, 3259, 4216, 18, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1033, 16458, 12, 509, 1027, 1854, 16, 509, 1057, 1854, 16, 1250, 1426, 262, 202, 95, 202, 202, 921, 1081, 273, 11835, 12, 1027, 1854, 11272, 202, 202, 1388, 3259, 4216, 18, 19...
if (imports[i].getName().equals(name)) {
if (exp.getName().equals(imports[i].getName())) {
ResolverImport getImport(String name) { ResolverImport[] imports = getImportPackages(); for (int i = 0; i < imports.length; i++) { if (imports[i].getName().equals(name)) { return imports[i]; } } return null; }
2516 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2516/14d9430fa7015bc3df94300230ae3b64ae377f67/ResolverBundle.java/buggy/bundles/org.eclipse.osgi/resolver/src/org/eclipse/osgi/internal/module/ResolverBundle.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 4301, 5010, 336, 5010, 12, 780, 508, 13, 288, 202, 202, 4301, 5010, 8526, 10095, 273, 336, 5010, 11425, 5621, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 10095, 18, 2469...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4301, 5010, 336, 5010, 12, 780, 508, 13, 288, 202, 202, 4301, 5010, 8526, 10095, 273, 336, 5010, 11425, 5621, 202, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 10095, 18, 2469...
m_predefExtensions.addElement(new ExtensionNamespaceSupport(uri, handlerClassName,
m_predefExtensions.add(new ExtensionNamespaceSupport(uri, handlerClassName,
private void setPredefinedNamespaces() { String uri = Constants.S_EXTENSIONS_JAVA_URL; String handlerClassName = "org.apache.xalan.extensions.ExtensionHandlerJavaPackage"; String lang = "javapackage"; String lib = ""; m_predefExtensions.addElement(new ExtensionNamespaceSupport(uri, handlerClassName, new Object[]{uri, lang, lib})); uri = Constants.S_EXTENSIONS_OLD_JAVA_URL; m_predefExtensions.addElement(new ExtensionNamespaceSupport(uri, handlerClassName, new Object[]{uri, lang, lib})); uri = Constants.S_EXTENSIONS_LOTUSXSL_JAVA_URL; m_predefExtensions.addElement(new ExtensionNamespaceSupport(uri, handlerClassName, new Object[]{uri, lang, lib})); uri = Constants.S_BUILTIN_EXTENSIONS_URL; handlerClassName = "org.apache.xalan.extensions.ExtensionHandlerJavaClass"; lang = "javaclass"; // for remaining predefined extension namespaces. lib = "org.apache.xalan.lib.Extensions"; m_predefExtensions.addElement(new ExtensionNamespaceSupport(uri, handlerClassName, new Object[]{uri, lang, lib})); uri = Constants.S_BUILTIN_OLD_EXTENSIONS_URL; m_predefExtensions.addElement(new ExtensionNamespaceSupport(uri, handlerClassName, new Object[]{uri, lang, lib})); // Xalan extension namespaces (redirect, pipe and SQL). uri = Constants.S_EXTENSIONS_REDIRECT_URL; lib = "org.apache.xalan.lib.Redirect"; m_predefExtensions.addElement(new ExtensionNamespaceSupport(uri, handlerClassName, new Object[]{uri, lang, lib})); uri = Constants.S_EXTENSIONS_PIPE_URL; lib = "org.apache.xalan.lib.PipeDocument"; m_predefExtensions.addElement(new ExtensionNamespaceSupport(uri, handlerClassName, new Object[]{uri, lang, lib})); uri = Constants.S_EXTENSIONS_SQL_URL; lib = "org.apache.xalan.lib.sql.XConnection"; m_predefExtensions.addElement(new ExtensionNamespaceSupport(uri, handlerClassName, new Object[]{uri, lang, lib})); //EXSLT namespaces (not including EXSLT function namespaces which are // registered by the associated ElemFunction. uri = Constants.S_EXSLT_COMMON_URL; lib = "org.apache.xalan.lib.ExsltCommon"; m_predefExtensions.addElement(new ExtensionNamespaceSupport(uri, handlerClassName, new Object[]{uri, lang, lib})); uri = Constants.S_EXSLT_MATH_URL; lib = "org.apache.xalan.lib.ExsltMath"; m_predefExtensions.addElement(new ExtensionNamespaceSupport(uri, handlerClassName, new Object[]{uri, lang, lib})); uri = Constants.S_EXSLT_SETS_URL; lib = "org.apache.xalan.lib.ExsltSets"; m_predefExtensions.addElement(new ExtensionNamespaceSupport(uri, handlerClassName, new Object[]{uri, lang, lib})); uri = Constants.S_EXSLT_DATETIME_URL; lib = "org.apache.xalan.lib.ExsltDatetime"; m_predefExtensions.addElement(new ExtensionNamespaceSupport(uri, handlerClassName, new Object[]{uri, lang, lib})); uri = Constants.S_EXSLT_DYNAMIC_URL; lib = "org.apache.xalan.lib.ExsltDynamic"; m_predefExtensions.addElement(new ExtensionNamespaceSupport(uri, handlerClassName, new Object[]{uri, lang, lib})); uri = Constants.S_EXSLT_STRINGS_URL; lib = "org.apache.xalan.lib.ExsltStrings"; m_predefExtensions.addElement(new ExtensionNamespaceSupport(uri, handlerClassName, new Object[]{uri, lang, lib})); }
46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/b79ad6dcb756824a80ad486e17c3ec334285a2d5/ExtensionNamespacesManager.java/buggy/src/org/apache/xalan/extensions/ExtensionNamespacesManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 444, 1386, 2178, 13180, 1435, 225, 288, 3639, 514, 2003, 273, 5245, 18, 55, 67, 12796, 55, 67, 27264, 67, 1785, 31, 565, 514, 1838, 3834, 273, 315, 3341, 18, 19211, 18, 92, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 918, 444, 1386, 2178, 13180, 1435, 225, 288, 3639, 514, 2003, 273, 5245, 18, 55, 67, 12796, 55, 67, 27264, 67, 1785, 31, 565, 514, 1838, 3834, 273, 315, 3341, 18, 19211, 18, 92, ...
jjAddStates(87, 88);
jjAddStates(92, 93);
private final int jjMoveNfa_5(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 16; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << curChar; MatchLoop: do { switch(jjstateSet[--i]) { case 3: if (curChar == 36) { if (kind > 13) kind = 13; jjCheckNAddTwoStates(13, 14); } else if (curChar == 46) jjstateSet[jjnewStateCnt++] = 7; else if (curChar == 35) jjstateSet[jjnewStateCnt++] = 2; break; case 0: if (curChar == 42) jjstateSet[jjnewStateCnt++] = 1; break; case 1: if ((0xfffffff7ffffffffL & l) != 0L && kind > 16) kind = 16; break; case 2: if (curChar == 42) jjstateSet[jjnewStateCnt++] = 0; break; case 5: if ((0x3ff200000000000L & l) == 0L) break; if (kind > 60) kind = 60; jjstateSet[jjnewStateCnt++] = 5; break; case 6: if (curChar == 46) jjstateSet[jjnewStateCnt++] = 7; break; case 10: if (curChar == 36 && kind > 13) kind = 13; break; case 12: if (curChar == 36) jjCheckNAddTwoStates(13, 14); break; case 14: if (curChar == 33 && kind > 14) kind = 14; break; case 15: if (curChar != 36) break; if (kind > 13) kind = 13; jjCheckNAddTwoStates(13, 14); break; default : break; } } while(i != startsAt); } else if (curChar < 128) { long l = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 3: if ((0x7fffffe87fffffeL & l) != 0L) { if (kind > 60) kind = 60; jjCheckNAdd(5); } else if (curChar == 92) jjCheckNAddStates(83, 86); break; case 1: if (kind > 16) kind = 16; break; case 4: case 5: if ((0x7fffffe87fffffeL & l) == 0L) break; if (kind > 60) kind = 60; jjCheckNAdd(5); break; case 7: if ((0x7fffffe07fffffeL & l) != 0L && kind > 61) kind = 61; break; case 8: if (curChar == 92) jjCheckNAddStates(83, 86); break; case 9: if (curChar == 92) jjCheckNAddTwoStates(9, 10); break; case 11: if (curChar == 92) jjCheckNAddTwoStates(11, 12); break; case 13: if (curChar == 92) jjAddStates(87, 88); break; default : break; } } while(i != startsAt); } else { int hiByte = (int)(curChar >> 8); int i1 = hiByte >> 6; long l1 = 1L << (hiByte & 077); int i2 = (curChar & 0xff) >> 6; long l2 = 1L << (curChar & 077); MatchLoop: do { switch(jjstateSet[--i]) { case 1: if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 16) kind = 16; break; default : break; } } while(i != startsAt); } if (kind != 0x7fffffff) { jjmatchedKind = kind; jjmatchedPos = curPos; kind = 0x7fffffff; } ++curPos; if ((i = jjnewStateCnt) == (startsAt = 16 - (jjnewStateCnt = startsAt))) return curPos; try { curChar = input_stream.readChar(); } catch(java.io.IOException e) { return curPos; } }}
55820 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55820/5b85dc5e122a5bdf3ea90d4f89cebe71413fc26b/ParserTokenManager.java/clean/src/java/org/apache/velocity/runtime/parser/ParserTokenManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 727, 509, 10684, 7607, 50, 507, 67, 25, 12, 474, 787, 1119, 16, 509, 662, 1616, 15329, 282, 509, 8526, 1024, 7629, 31, 282, 509, 2542, 861, 273, 374, 31, 282, 10684, 2704, 1119, 11750,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 727, 509, 10684, 7607, 50, 507, 67, 25, 12, 474, 787, 1119, 16, 509, 662, 1616, 15329, 282, 509, 8526, 1024, 7629, 31, 282, 509, 2542, 861, 273, 374, 31, 282, 10684, 2704, 1119, 11750,...
ParsedClassInfo(ClassManager classManager, InputStream classFileStream)
ParsedClassInfo(ClassManager classManager, File classFile)
ParsedClassInfo(ClassManager classManager, InputStream classFileStream) throws IOException, ClassParseException { super(classManager); try { parse(new ClassParser(classFileStream, null).parse()); } catch(ClassFormatError cfe) { throw new ClassParseException(cfe); } }
4887 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4887/24f67ef9927271b1836fb11c3549fc422a17818a/ParsedClassInfo.java/buggy/macker/src/net/innig/macker/structure/ParsedClassInfo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 19244, 19455, 12, 797, 1318, 667, 1318, 16, 1387, 29728, 13, 3639, 1216, 1860, 16, 1659, 13047, 3639, 288, 3639, 2240, 12, 1106, 1318, 1769, 3639, 775, 288, 1109, 12, 2704, 1659, 2678, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 19244, 19455, 12, 797, 1318, 667, 1318, 16, 1387, 29728, 13, 3639, 1216, 1860, 16, 1659, 13047, 3639, 288, 3639, 2240, 12, 1106, 1318, 1769, 3639, 775, 288, 1109, 12, 2704, 1659, 2678, 12...
protected void handleCodeRSHIFT(long expressionCounter, long leftExpressionReference, long rightExpressionReference, String value, String type, Highlight h) {
protected void handleCodeRSHIFT(long expressionCounter, long leftExpressionReference, long rightExpressionReference, String value, String type, Highlight h) {
protected void handleCodeRSHIFT(long expressionCounter, long leftExpressionReference, long rightExpressionReference, String value, String type, Highlight h) { handleBinaryExpression(expressionCounter, leftExpressionReference, rightExpressionReference, value, type, h, MCodeUtilities .resolveBinOperator(Code.RSHIFT)); }
49293 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49293/5ef437d8b8621983333af90d2ca218c9d8fbfe52/TheaterMCodeInterpreter.java/clean/src/jeliot/mcode/TheaterMCodeInterpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1640, 1085, 54, 23191, 12, 5748, 2652, 4789, 16, 5411, 1525, 2002, 2300, 2404, 16, 1525, 2145, 2300, 2404, 16, 5411, 514, 460, 16, 514, 618, 16, 31386, 366, 13, 288, 3639, 16...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1640, 1085, 54, 23191, 12, 5748, 2652, 4789, 16, 5411, 1525, 2002, 2300, 2404, 16, 1525, 2145, 2300, 2404, 16, 5411, 514, 460, 16, 514, 618, 16, 31386, 366, 13, 288, 3639, 16...
aTemp.chosenFeatStrings = new HashMap<String, String>(chosenFeatStrings);
aTemp.chosenFeatStrings = new HashMap<String, String>( chosenFeatStrings);
public Object clone() throws CloneNotSupportedException { final PCTemplate aTemp = (PCTemplate) super.clone(); aTemp.templates = new ArrayList<String>(templates); if ( theLevelAbilities != null ) { aTemp.theLevelAbilities = new DoubleKeyMap<Integer, String, String>(theLevelAbilities); } if (getListSize(hitDiceStrings) != 0) { aTemp.hitDiceStrings = new ArrayList<String>(hitDiceStrings); } if (abilityCatStore != null && !abilityCatStore.isEmpty()) { aTemp.abilityCatStore = new AbilityStore(); aTemp.abilityCatStore.addAbilityInfo( abilityCatStore.getParsableStringRepresentation(), "", "|", false, false); } if (getListSize(featStrings) != 0) { aTemp.featStrings = new ArrayList<String>(featStrings); } if ( theAutoAbilityKeys != null ) { aTemp.theAutoAbilityKeys = new HashMap<AbilityCategory, List<String>>(theAutoAbilityKeys); } if (chosenFeatStrings != null) { aTemp.chosenFeatStrings = new HashMap<String, String>(chosenFeatStrings); } if ( theChosenAbilityKeys != null ) { aTemp.theChosenAbilityKeys = new HashMap<AbilityCategory, Map<String, String>>(theChosenAbilityKeys); } return aTemp; }
48301 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48301/376816acf8bf134fa77bd6ea5c602dbe9af9bfbd/PCTemplate.java/buggy/code/src/java/pcgen/core/PCTemplate.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1033, 3236, 1435, 1216, 12758, 25482, 202, 95, 202, 202, 6385, 453, 1268, 29761, 279, 7185, 273, 261, 52, 1268, 29761, 13, 2240, 18, 14056, 5621, 202, 202, 69, 7185, 18, 8502, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1033, 3236, 1435, 1216, 12758, 25482, 202, 95, 202, 202, 6385, 453, 1268, 29761, 279, 7185, 273, 261, 52, 1268, 29761, 13, 2240, 18, 14056, 5621, 202, 202, 69, 7185, 18, 8502, ...
if ( objURI.getScheme( ).length( ) == 1 )
if ( objURI.getScheme( ).length( ) == 1 || objURI.getScheme( ).equalsIgnoreCase( JAR_SCHEMA ) )
public static String getLocalPath( String uri ) { if ( uri == null ) return null; URI objURI = null; try { objURI = new URI( uri ); } catch ( URISyntaxException e ) { return getLocalFileOfFailedURI( uri ); } if ( objURI.getScheme( ) == null ) { if ( isFileProtocol( uri ) ) return uri; } else if ( objURI.getScheme( ).equalsIgnoreCase( FILE_SCHEMA ) ) { return objURI.getSchemeSpecificPart( ); } else { // this is for files on the windows platforms. if ( objURI.getScheme( ).length( ) == 1 ) { return uri; } } return null; }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/22165bd0e5b8e6eae1e5acbdf5a7377ab1882684/URIUtil.java/buggy/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/util/URIUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 514, 6993, 743, 12, 514, 2003, 262, 202, 95, 202, 202, 430, 261, 2003, 422, 446, 262, 1082, 202, 2463, 446, 31, 202, 202, 3098, 1081, 3098, 273, 446, 31, 202, 202, 698,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 760, 514, 6993, 743, 12, 514, 2003, 262, 202, 95, 202, 202, 430, 261, 2003, 422, 446, 262, 1082, 202, 2463, 446, 31, 202, 202, 3098, 1081, 3098, 273, 446, 31, 202, 202, 698,...
dfaResult.addTransition(statePowerSet.indexOf(currentIntSet), statePowerSet.indexOf(destSet), currChar); }
IntegerSet oldStartSet = aut.getStartSet(); IntegerSet oldFinalSet = aut.getFinalSet(); IntegerSet myClone; for ( IntegerSet currentIntSet : statePowerSet ) { if (currentIntSet.equals(oldStartSet)) { dfaResult.setStartFlag(statePowerSet.indexOf(currentIntSet), true); } myClone = (IntegerSet)currentIntSet.clone(); myClone.intersect(oldFinalSet); if (!myClone.isEmpty()) { dfaResult.setFinalFlag(statePowerSet.indexOf(currentIntSet), true); } } dfaResult = generatePositions(dfaResult); dfaResult = removeIsolatedStates(dfaResult); }
public static FSA determ(FSA aut, JDialog _waitDlg) { FSA dfaResult = new FSA(); BusyDialog waitDlg = (BusyDialog)_waitDlg; /* erstelle die Zustandsmenge des Automaten */ Set<Integer> tempSet; IntegerSet stateSet; stateSet = new IntegerSet(); for ( Integer i : aut.getStates() ) { stateSet.insert(i); } // Potenzmenge davon berechnen Vector<IntegerSet> statePowerSet; //waitDlg.setCurrentStep("calculating powerset"); statePowerSet = stateSet.getPowerset(); // aktuelle teilmenge der Potenzmenge Vector<Integer> currentSet; // eingabealphabet Vector<Character> alpha; alpha = aut.getAlphabet(); // aktuelle Transitionsliste LinkedList<Transition> transList; // der neue Zustand (==Zustandsmenge) im neuen Automaten IntegerSet destSet; int stateId; int progress,count = -1,pSetSize = statePowerSet.size(); // nimm einen Zustand des neuen Automaten her... (also eine Teilmenge der Potmenge) for ( IntegerSet currentIntSet : statePowerSet ) { count++; progress = (count*100)/pSetSize; // waitDlg.setProgress(progress); // waitDlg.setCurrentStep("checking set "+count+" of "+pSetSize); // (TODO?) IntegerSet implementiert (noch) nicht Iterator currentSet = currentIntSet.pureElements(); // eine spezielle Teilmenge der Potenzmenge, nmlich die leere // Menge, wird gesondert behandelt, sie dient gewissermaen // als Fangzustand if (currentSet.isEmpty()) { // fge fr alle Buchstaben die Transitionen ein die beim // Zustand verbleibt stateId = statePowerSet.indexOf(currentIntSet); for ( Character cChar : alpha ) { dfaResult.addTransition(stateId,stateId, cChar); } continue; } // durchlaufe fr diesen Zustand alle Buchstaben des Eingabealphabets for ( Character currChar : alpha ) { // lege eine neue (zunchst) leere Menge an, hier kommen // alle Zustnde hinein die von stateId mit currChar aus erreichbar sind destSet = new IntegerSet(); // durchlaufe die aktuelle Menge (=Zustand) .... for ( Integer stId : currentSet ) { // besorge alle Transitionen dieses (alten) Zustands aus dem // alten Automaten transList = aut.getStateTransitions(stId); if (transList==null) continue; // betrachte nun die ausgehenden Transition dieses ZUstands im alten Aut. for ( Transition t : transList ) { // gab es im alten Automaten eine Transition von stateId mit currChar // irgendwo anders hin, fge den jeweiligen Zielzustand in die // neue Zielzustandsmenge ein if (t.getChar() == currChar && t.getStartState()==stId) { destSet.insert(t.getEndState()); } } // ber den Index im Vector der Potenzmenge werden die einzelnen // Menge eindeutig identifiziert, hier wird die endgltige Transition eingefgt } dfaResult.addTransition(statePowerSet.indexOf(currentIntSet), statePowerSet.indexOf(destSet), currChar); } } // bestimme den neuen Startzustand des Automaten // der neue Startzustand ist jene Zustandsmenge, welche alle alten // Startzustnde enthlt, die Potenzmenge wird danach durchsucht // wird auch in der schleife weiter unten getan IntegerSet oldStartSet = aut.getStartSet(); // abschlieend bestimmen wir nun noch die neuen Endzustnde des Automaten // dazu nehmen wir die ursprngliche Endzustandsmenge und schneiden mit // jedem Element der Potenzmenge, ist der Schnitt nicht leer, ist der // entsprechende Zustand (==Menge) ein endzustand im neuen Automat // einfach gesagt, jede Zustandsmenge des Potenzautomaten die // den einen alten Endzustand enthlt ist Endzustand. IntegerSet oldFinalSet = aut.getFinalSet(); IntegerSet myClone; for ( IntegerSet currentIntSet : statePowerSet ) { // bevor wir hier rumschneiden, erst schauen ob das nicht // der neue Startzustand ist if (currentIntSet.equals(oldStartSet)) { dfaResult.setStartFlag(statePowerSet.indexOf(currentIntSet), true); } myClone = (IntegerSet)currentIntSet.clone(); myClone.intersect(oldFinalSet); if (!myClone.isEmpty()) { dfaResult.setFinalFlag(statePowerSet.indexOf(currentIntSet), true); } } // erzeuge die noch nicht vorhandenen Pixelpositionen der Zustnde dfaResult = generatePositions(dfaResult); //waitDlg.setCurrentStep("reducing"); // ein wenig Minimierung ohne den User zu fragen ;) // knnte man als optional einbauen dfaResult = removeIsolatedStates(dfaResult); return dfaResult; }
11750 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11750/6731f33a64e284e4b0cc7f5af38c67ca01c32da2/FSAAlgo.java/clean/src/algo/FSAAlgo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 478, 5233, 302, 847, 81, 12, 4931, 37, 2059, 16, 804, 6353, 389, 7048, 40, 23623, 13, 288, 3639, 478, 5233, 23074, 1253, 273, 394, 478, 5233, 5621, 3639, 13190, 93, 6353, 252...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 478, 5233, 302, 847, 81, 12, 4931, 37, 2059, 16, 804, 6353, 389, 7048, 40, 23623, 13, 288, 3639, 478, 5233, 23074, 1253, 273, 394, 478, 5233, 5621, 3639, 13190, 93, 6353, 252...
public org.quickfix.field.CashOrderQty getCashOrderQty() throws FieldNotFound { org.quickfix.field.CashOrderQty value = new org.quickfix.field.CashOrderQty();
public quickfix.field.CashOrderQty getCashOrderQty() throws FieldNotFound { quickfix.field.CashOrderQty value = new quickfix.field.CashOrderQty();
public org.quickfix.field.CashOrderQty getCashOrderQty() throws FieldNotFound { org.quickfix.field.CashOrderQty value = new org.quickfix.field.CashOrderQty(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/NewOrderList.java/clean/src/java/src/quickfix/fix44/NewOrderList.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 39, 961, 2448, 53, 4098, 1927, 961, 2448, 53, 4098, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 39, 961, 2448, 53, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2358, 18, 19525, 904, 18, 1518, 18, 39, 961, 2448, 53, 4098, 1927, 961, 2448, 53, 4098, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 39, 961, 2448, 53, ...
registerGlobalAction(findAction);
register(findAction);
private void makeActions(IWorkbenchConfigurer workbenchConfigurer, IActionBarConfigurer actionBarConfigurer) { // The actions in jface do not have menu vs. enable, vs. disable vs. color // There are actions in here being passed the workbench - problem setCurrentActionBarConfigurer(actionBarConfigurer); // @issue should obtain from ConfigurationItemFactory statusLineItem = new StatusLineContributionItem("ModeContributionItem"); //$NON-NLS-1$ newWizardAction = ActionFactory.NEW.create(getWindow()); registerGlobalAction(newWizardAction); newWizardDropDownAction = IDEActionFactory.NEW_WIZARD_DROP_DOWN .create(getWindow()); importResourcesAction = ActionFactory.IMPORT.create(getWindow()); registerGlobalAction(importResourcesAction); exportResourcesAction = ActionFactory.EXPORT.create(getWindow()); registerGlobalAction(exportResourcesAction); buildAllAction = IDEActionFactory.BUILD.create(getWindow()); registerGlobalAction(buildAllAction); cleanAction = IDEActionFactory.BUILD_CLEAN.create(getWindow()); registerGlobalAction(cleanAction); toggleAutoBuildAction = IDEActionFactory.BUILD_AUTOMATICALLY .create(getWindow()); registerGlobalAction(toggleAutoBuildAction); saveAction = ActionFactory.SAVE.create(getWindow()); registerGlobalAction(saveAction); saveAsAction = ActionFactory.SAVE_AS.create(getWindow()); registerGlobalAction(saveAsAction); saveAllAction = ActionFactory.SAVE_ALL.create(getWindow()); registerGlobalAction(saveAllAction); undoAction = ActionFactory.UNDO.create(getWindow()); registerGlobalAction(undoAction); redoAction = ActionFactory.REDO.create(getWindow()); registerGlobalAction(redoAction); cutAction = ActionFactory.CUT.create(getWindow()); registerGlobalAction(cutAction); copyAction = ActionFactory.COPY.create(getWindow()); registerGlobalAction(copyAction); pasteAction = ActionFactory.PASTE.create(getWindow()); registerGlobalAction(pasteAction); printAction = ActionFactory.PRINT.create(getWindow()); registerGlobalAction(printAction); selectAllAction = ActionFactory.SELECT_ALL.create(getWindow()); registerGlobalAction(selectAllAction); findAction = ActionFactory.FIND.create(getWindow()); registerGlobalAction(findAction); closeAction = ActionFactory.CLOSE.create(getWindow()); registerGlobalAction(closeAction); closeAllAction = ActionFactory.CLOSE_ALL.create(getWindow()); registerGlobalAction(closeAllAction); closeAllSavedAction = ActionFactory.CLOSE_ALL_SAVED.create(getWindow()); registerGlobalAction(closeAllSavedAction); helpContentsAction = ActionFactory.HELP_CONTENTS.create(getWindow()); registerGlobalAction(helpContentsAction); aboutAction = ActionFactory.ABOUT.create(getWindow()); aboutAction .setImageDescriptor(IDEInternalWorkbenchImages .getImageDescriptor(IDEInternalWorkbenchImages.IMG_OBJS_DEFAULT_PROD)); registerGlobalAction(aboutAction); openPreferencesAction = ActionFactory.PREFERENCES.create(getWindow()); registerGlobalAction(openPreferencesAction); addBookmarkAction = IDEActionFactory.BOOKMARK.create(getWindow()); registerGlobalAction(addBookmarkAction); addTaskAction = IDEActionFactory.ADD_TASK.create(getWindow()); registerGlobalAction(addTaskAction); deleteAction = ActionFactory.DELETE.create(getWindow()); registerGlobalAction(deleteAction); AboutInfo[] infos = IDEWorkbenchPlugin.getDefault().getFeatureInfos(); // See if a welcome page is specified for (int i = 0; i < infos.length; i++) { if (infos[i].getWelcomePageURL() != null) { quickStartAction = IDEActionFactory.QUICK_START .create(getWindow()); registerGlobalAction(quickStartAction); break; } } // See if a tips and tricks page is specified for (int i = 0; i < infos.length; i++) { if (infos[i].getTipsAndTricksHref() != null) { tipsAndTricksAction = IDEActionFactory.TIPS_AND_TRICKS .create(getWindow()); registerGlobalAction(tipsAndTricksAction); break; } } // Actions for invisible accelerators showViewMenuAction = ActionFactory.SHOW_VIEW_MENU.create(getWindow()); registerGlobalAction(showViewMenuAction); showPartPaneMenuAction = ActionFactory.SHOW_PART_PANE_MENU .create(getWindow()); registerGlobalAction(showPartPaneMenuAction); nextEditorAction = ActionFactory.NEXT_EDITOR.create(getWindow()); prevEditorAction = ActionFactory.PREVIOUS_EDITOR.create(getWindow()); ActionFactory.linkCycleActionPair(nextEditorAction, prevEditorAction); registerGlobalAction(nextEditorAction); registerGlobalAction(prevEditorAction); nextPartAction = ActionFactory.NEXT_PART.create(getWindow()); prevPartAction = ActionFactory.PREVIOUS_PART.create(getWindow()); ActionFactory.linkCycleActionPair(nextPartAction, prevPartAction); registerGlobalAction(nextPartAction); registerGlobalAction(prevPartAction); nextPerspectiveAction = ActionFactory.NEXT_PERSPECTIVE .create(getWindow()); prevPerspectiveAction = ActionFactory.PREVIOUS_PERSPECTIVE .create(getWindow()); ActionFactory.linkCycleActionPair(nextPerspectiveAction, prevPerspectiveAction); registerGlobalAction(nextPerspectiveAction); registerGlobalAction(prevPerspectiveAction); activateEditorAction = ActionFactory.ACTIVATE_EDITOR .create(getWindow()); registerGlobalAction(activateEditorAction); maximizePartAction = ActionFactory.MAXIMIZE.create(getWindow()); registerGlobalAction(maximizePartAction); minimizePartAction = ActionFactory.MINIMIZE.create(getWindow()); registerGlobalAction(minimizePartAction); workbenchEditorsAction = ActionFactory.SHOW_OPEN_EDITORS .create(getWindow()); registerGlobalAction(workbenchEditorsAction); workbookEditorsAction = ActionFactory.SHOW_WORKBOOK_EDITORS .create(getWindow()); registerGlobalAction(workbookEditorsAction); hideShowEditorAction = ActionFactory.SHOW_EDITOR.create(getWindow()); registerGlobalAction(hideShowEditorAction); savePerspectiveAction = ActionFactory.SAVE_PERSPECTIVE .create(getWindow()); registerGlobalAction(savePerspectiveAction); editActionSetAction = ActionFactory.EDIT_ACTION_SETS .create(getWindow()); registerGlobalAction(editActionSetAction); lockToolBarAction = ActionFactory.LOCK_TOOL_BAR.create(getWindow()); registerGlobalAction(lockToolBarAction); resetPerspectiveAction = ActionFactory.RESET_PERSPECTIVE .create(getWindow()); registerGlobalAction(resetPerspectiveAction); closePerspAction = ActionFactory.CLOSE_PERSPECTIVE.create(getWindow()); registerGlobalAction(closePerspAction); closeAllPerspsAction = ActionFactory.CLOSE_ALL_PERSPECTIVES .create(getWindow()); registerGlobalAction(closeAllPerspsAction); forwardHistoryAction = ActionFactory.FORWARD_HISTORY .create(getWindow()); registerGlobalAction(forwardHistoryAction); backwardHistoryAction = ActionFactory.BACKWARD_HISTORY .create(getWindow()); registerGlobalAction(backwardHistoryAction); revertAction = ActionFactory.REVERT.create(getWindow()); registerGlobalAction(revertAction); refreshAction = ActionFactory.REFRESH.create(getWindow()); registerGlobalAction(refreshAction); propertiesAction = ActionFactory.PROPERTIES.create(getWindow()); registerGlobalAction(propertiesAction); quitAction = ActionFactory.QUIT.create(getWindow()); registerGlobalAction(quitAction); moveAction = ActionFactory.MOVE.create(getWindow()); registerGlobalAction(moveAction); renameAction = ActionFactory.RENAME.create(getWindow()); registerGlobalAction(renameAction); goIntoAction = ActionFactory.GO_INTO.create(getWindow()); registerGlobalAction(goIntoAction); backAction = ActionFactory.BACK.create(getWindow()); registerGlobalAction(backAction); forwardAction = ActionFactory.FORWARD.create(getWindow()); registerGlobalAction(forwardAction); upAction = ActionFactory.UP.create(getWindow()); registerGlobalAction(upAction); nextAction = ActionFactory.NEXT.create(getWindow()); nextAction .setImageDescriptor(IDEInternalWorkbenchImages .getImageDescriptor(IDEInternalWorkbenchImages.IMG_ETOOL_NEXT_NAV)); registerGlobalAction(nextAction); previousAction = ActionFactory.PREVIOUS.create(getWindow()); previousAction .setImageDescriptor(IDEInternalWorkbenchImages .getImageDescriptor(IDEInternalWorkbenchImages.IMG_ETOOL_PREVIOUS_NAV)); registerGlobalAction(previousAction); buildProjectAction = IDEActionFactory.BUILD_PROJECT.create(getWindow()); registerGlobalAction(buildProjectAction); openProjectAction = IDEActionFactory.OPEN_PROJECT.create(getWindow()); registerGlobalAction(openProjectAction); closeProjectAction = IDEActionFactory.CLOSE_PROJECT.create(getWindow()); registerGlobalAction(closeProjectAction); openWorkspaceAction = IDEActionFactory.OPEN_WORKSPACE .create(getWindow()); registerGlobalAction(openWorkspaceAction); projectPropertyDialogAction = IDEActionFactory.OPEN_PROJECT_PROPERTIES .create(getWindow()); registerGlobalAction(projectPropertyDialogAction); if (getWindow().getWorkbench().getIntroManager().hasIntro()) { introAction = ActionFactory.INTRO.create(window); registerGlobalAction(introAction); } final String showInQuickMenuId = "org.eclipse.ui.navigate.showInQuickMenu"; //$NON-NLS-1$ showInQuickMenu = new QuickMenuAction(showInQuickMenuId) { protected void fillMenu(IMenuManager menu) { menu.add(ContributionItemFactory.VIEWS_SHOW_IN .create(getWindow())); } }; registerGlobalAction(showInQuickMenu); final String newQuickMenuId = "org.eclipse.ui.file.newQuickMenu"; //$NON-NLS-1$ newQuickMenu = new QuickMenuAction(newQuickMenuId) { protected void fillMenu(IMenuManager menu) { menu.add(new NewWizardMenu(getWindow())); } }; registerGlobalAction(newQuickMenu); pinEditorContributionItem = ContributionItemFactory.PIN_EDITOR .create(getWindow()); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/02a63c83a96f095b44f6c4a9bd0de64e8b842628/WorkbenchActionBuilder.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/WorkbenchActionBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1221, 6100, 12, 45, 2421, 22144, 809, 11278, 1440, 22144, 809, 11278, 16, 5411, 467, 1803, 5190, 809, 11278, 1301, 5190, 809, 11278, 13, 288, 3639, 368, 1021, 4209, 316, 525, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1221, 6100, 12, 45, 2421, 22144, 809, 11278, 1440, 22144, 809, 11278, 16, 5411, 467, 1803, 5190, 809, 11278, 1301, 5190, 809, 11278, 13, 288, 3639, 368, 1021, 4209, 316, 525, 8...
public void testTopicScale2()
public void testTopicScale2() throws PerfException
public void testTopicScale2() { log.info("Running test testTopicScale2"); Execution execution = createExecution("TopicScale2"); for (int i = 1; i <= scaleNumber; i++) { log.trace("Running with " + i + " connection(s)"); //Create the jobs Job[] jobs = new Job[i + 1]; //One sender - many receivers for (int j = 0; j < i; j++) { ReceiverJob receiver = createDefaultReceiverJob(this.topicName); jobs[j] = receiver; receiver.setAckMode(Session.AUTO_ACKNOWLEDGE); receiver.setTransacted(false); receiver.setNumMessages(numMessages); receiver.setSlaveURL(slaveURLs[j % this.numSlaves]); } SenderJob sender = createDefaultSenderJob(this.topicName); jobs[i] = sender; sender.setNumMessages(numMessages); sender.setMsgSize(standardMessageSize); sender.setMf(new TextMessageMessageFactory()); sender.setTransacted(false); sender.setDeliveryMode(DeliveryMode.NON_PERSISTENT); sender.setSlaveURL(slaveURLs[i % this.numSlaves]); sender.setInitialPause(initialPause); JobResult[] results = runJobs(jobs); if (!checkResults(results, "TopicScale2")) { return; } long minTimeOfFirstSend = Long.MAX_VALUE; long maxTimeOfLastReceive = Long.MIN_VALUE; for (int j = 0; j < i; j++) { JobResult senderResult = results[j * 2]; JobResult receiverResult = results[j * 2 + 1]; long timeOfFirstSend = senderResult.startTime; minTimeOfFirstSend = Math.min(minTimeOfFirstSend, timeOfFirstSend); long timeOfLastReceive = receiverResult.endTime; maxTimeOfLastReceive = Math.max(maxTimeOfLastReceive, timeOfLastReceive); } long totalTimeTaken = maxTimeOfLastReceive - minTimeOfFirstSend; long totalMessagesSent = i * numMessages; Measurement measure = new Measurement("throughput", 1000 * ((double)totalMessagesSent) / totalTimeTaken); measure.setVariableValue("numberOfConnections", i); execution.addMeasurement(measure); } pm.saveExecution(execution); log.info("Test testTopicScale2 finished"); }
3806 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3806/bb5207822a56158d5b94faff7c6dbe5f094f6f4c/PerfRunner.java/buggy/src/main/org/jboss/jms/perf/framework/PerfRunner.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 1842, 6657, 5587, 22, 1435, 1216, 5722, 74, 503, 282, 288, 1377, 613, 18, 1376, 2932, 7051, 1842, 1842, 6657, 5587, 22, 8863, 5375, 8687, 4588, 273, 752, 3210, 2932, 6657, 5587...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 1842, 6657, 5587, 22, 1435, 1216, 5722, 74, 503, 282, 288, 1377, 613, 18, 1376, 2932, 7051, 1842, 1842, 6657, 5587, 22, 8863, 5375, 8687, 4588, 273, 752, 3210, 2932, 6657, 5587...
if(nodeIP.equals(localhost)) return p;
if(nodeIP != null && nodeIP.equals(localhost)) return p;
public Peer[] getHandshakeIPs(){ Peer[] p=null; if(detectedPeer == null && nominalPeer.size() == 0) return new Peer[0]; if( ! nominalPeer.contains(detectedPeer)){ p= new Peer[1+nominalPeer.size()]; p[0]=detectedPeer; for(int i=1;i<nominalPeer.size()+1;i++) p[i]=(Peer) nominalPeer.get(i); }else{ p = (Peer[]) nominalPeer.toArray(new Peer[nominalPeer.size()]); } // Hack for two nodes on the same IP that can't talk over inet for routing reasons InetAddress localhost = node.localhostAddress; InetAddress nodeIP = node.getPrimaryIPAddress(); if(nodeIP.equals(localhost)) return p; InetAddress peerIP = detectedPeer.getAddress(); if(peerIP.equals(localhost)) return p; if(nodeIP.equals(peerIP)) { Peer[] newPeers = new Peer[p.length+1]; System.arraycopy(p, 0, newPeers, 0, p.length); newPeers[newPeers.length-1] = new Peer(node.localhostAddress, detectedPeer.getPort()); p = newPeers; } return p; }
46035 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46035/fa21fc2b2e82ab4c1d7f97de65394dfb49e03cbd/PeerNode.java/buggy/src/freenet/node/PeerNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 10669, 8526, 336, 14545, 18246, 1435, 95, 377, 202, 6813, 8526, 293, 33, 2011, 31, 377, 202, 377, 202, 430, 12, 8238, 828, 6813, 422, 446, 597, 12457, 1490, 6813, 18, 1467, 1435, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 10669, 8526, 336, 14545, 18246, 1435, 95, 377, 202, 6813, 8526, 293, 33, 2011, 31, 377, 202, 377, 202, 430, 12, 8238, 828, 6813, 422, 446, 597, 12457, 1490, 6813, 18, 1467, 1435, ...
if (mainPage.getPackageText() != null && mainPage.getPackageText().length() >0) className = mainPage.getPackageText() + "." + mainPage.getTypeName();
if (mainPage.getPackageText() != null && mainPage.getPackageText().length() > 0) className = mainPage.getPackageText() + "." + mainPage.getTypeName();
public boolean performFinish() { if (mainPage.getPackageText() != null && mainPage.getPackageText().length() >0) className = mainPage.getPackageText() + "." + mainPage.getTypeName(); else className = mainPage.getTypeName(); classArgs = mainPage.getClassArgs(); IWorkspaceRunnable op = new IWorkspaceRunnable(){ public void run(IProgressMonitor monitor){ try { mainPage.createType(monitor); IResource resource = mainPage.getModifiedResource(); if (resource!=null){ selectAndReveal(resource); if (project.hasNature(JavaCore.NATURE_ID)){ IJavaProject jProject = JavaCore.create(project); IJavaElement jElement = jProject.findElement(resource.getProjectRelativePath().removeFirstSegments(1)); if (jElement != null) JavaUI.openInEditor(jElement); } else { if (resource instanceof IFile){ IWorkbenchPage page = PDEPlugin.getActivePage(); IDE.openEditor(page, (IFile)resource, true); } } } } catch (CoreException e) { PDEPlugin.logException(e); } catch (InterruptedException e) { PDEPlugin.logException(e); } } }; try { getContainer().run(false, true, new WorkbenchRunnableAdapter(op, getSchedulingRule())); } catch (InvocationTargetException e) { PDEPlugin.logException(e); } catch (InterruptedException e) { PDEPlugin.logException(e); } return true; }
8783 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8783/dbc9c49c0425074db74240da6f9fef6ef9fc350e/JavaAttributeWizard.java/clean/ui/org.eclipse.pde.ui/src_Forms/org/eclipse/pde/internal/ui/neweditor/manifest/JavaAttributeWizard.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 3073, 11641, 1435, 288, 202, 202, 430, 261, 5254, 1964, 18, 588, 2261, 1528, 1435, 480, 446, 597, 2774, 1964, 18, 588, 2261, 1528, 7675, 2469, 1435, 405, 20, 13, 1082, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 3073, 11641, 1435, 288, 202, 202, 430, 261, 5254, 1964, 18, 588, 2261, 1528, 1435, 480, 446, 597, 2774, 1964, 18, 588, 2261, 1528, 7675, 2469, 1435, 405, 20, 13, 1082, 2...
int newSearch = startSearch - 1;
int newSearch = startSearch - leaf.charCount();
public int find(int stringIndex, CharSequence testString, MatchResultImpl matchResult) { int startSearch = next.find(stringIndex, testString, matchResult); if (startSearch < 0) return -1; int newSearch = startSearch - 1; while (newSearch >= stringIndex && leaf.accepts(newSearch, testString) > 0) { startSearch = newSearch; newSearch--; } return startSearch; }
54769 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54769/4c58a60009678e2d97111b84c8692e6317ed3112/UnifiedQuantifierSet.java/buggy/modules/regex/src/main/java/java/util/regex/UnifiedQuantifierSet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 1104, 12, 474, 533, 1016, 16, 9710, 1842, 780, 16, 5411, 4639, 1253, 2828, 845, 1253, 13, 288, 3639, 509, 787, 2979, 273, 1024, 18, 4720, 12, 1080, 1016, 16, 1842, 780, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 1104, 12, 474, 533, 1016, 16, 9710, 1842, 780, 16, 5411, 4639, 1253, 2828, 845, 1253, 13, 288, 3639, 509, 787, 2979, 273, 1024, 18, 4720, 12, 1080, 1016, 16, 1842, 780, 16, ...
public org.quickfix.field.UnderlyingSecurityExchange getUnderlyingSecurityExchange() throws FieldNotFound { org.quickfix.field.UnderlyingSecurityExchange value = new org.quickfix.field.UnderlyingSecurityExchange();
public quickfix.field.UnderlyingSecurityExchange getUnderlyingSecurityExchange() throws FieldNotFound { quickfix.field.UnderlyingSecurityExchange value = new quickfix.field.UnderlyingSecurityExchange();
public org.quickfix.field.UnderlyingSecurityExchange getUnderlyingSecurityExchange() throws FieldNotFound { org.quickfix.field.UnderlyingSecurityExchange value = new org.quickfix.field.UnderlyingSecurityExchange(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/DerivativeSecurityListRequest.java/buggy/src/java/src/quickfix/fix44/DerivativeSecurityListRequest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 4368, 11688, 10833, 765, 6291, 4368, 11688, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 4368, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 4368, 11688, 10833, 765, 6291, 4368, 11688, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 14655, 6291, 4368, ...
touch( new File( outputDirectory ), pluginItem );
touch( outDir, pluginItem );
public void execute() throws MojoExecutionException { touch( new File( outputDirectory ), "touch.txt" ); // This parameter should be aligned to the basedir as the parameter type is specified // as java.io.File if ( basedirAlignmentDirectory.getPath().equals( "target/test-basedir-alignment" ) ) { throw new MojoExecutionException( "basedirAlignmentDirectory not aligned" ); } touch( basedirAlignmentDirectory, "touch.txt" ); // Test parameter setting if ( pluginItem != null ) { touch( new File( outputDirectory ), pluginItem ); } if ( goalItem != null ) { touch( new File( outputDirectory ), goalItem ); } project.getBuild().setFinalName( "coreitified" ); }
47050 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47050/73e549b231b86b280deaf4fa649280f5294c827f/CoreItMojo.java/clean/maven-core-it-plugin/src/main/java/org/apache/maven/plugin/coreit/CoreItMojo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1836, 1435, 3639, 1216, 18780, 565, 288, 3639, 6920, 12, 394, 1387, 12, 29373, 262, 16, 315, 14084, 18, 5830, 6, 11272, 3639, 368, 1220, 1569, 1410, 506, 13939, 358, 326, 15573...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1836, 1435, 3639, 1216, 18780, 565, 288, 3639, 6920, 12, 394, 1387, 12, 29373, 262, 16, 315, 14084, 18, 5830, 6, 11272, 3639, 368, 1220, 1569, 1410, 506, 13939, 358, 326, 15573...
}catch(CharacterCodingException e) { LOG.info( e );
public void testCoding() throws Exception { for (int i = 0; i < NUM_ITERATIONS; i++) { try { // generate a random string String before; if(i == 0 ) before = getLongString(); else before = getTestString(); // test string to utf8 ByteBuffer bb = Text.encode(before); byte[] utf8Text = bb.array(); byte[] utf8Java = before.getBytes("UTF-8"); assertEquals(0, WritableComparator.compareBytes( utf8Text, 0, bb.limit(), utf8Java, 0, utf8Java.length)); // test utf8 to string String after = Text.decode(utf8Java); assertTrue(before.equals(after)); }catch(CharacterCodingException e) { LOG.info( e ); } } }
50370 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50370/ade1478723edce95f407a038027d26b7e05459d5/TestText.java/clean/src/test/org/apache/hadoop/io/TestText.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1842, 30315, 1435, 1216, 1185, 288, 565, 364, 261, 474, 277, 273, 374, 31, 277, 411, 9443, 67, 11844, 15297, 31, 277, 27245, 288, 1377, 775, 288, 1850, 368, 2103, 279, 2744, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 30315, 1435, 1216, 1185, 288, 565, 364, 261, 474, 277, 273, 374, 31, 277, 411, 9443, 67, 11844, 15297, 31, 277, 27245, 288, 1377, 775, 288, 1850, 368, 2103, 279, 2744, ...
balancing = new BalanceThread(this); Thread t = new Thread(balancing); t.start();
xr = new XmlReader(url); navigator = new Navigator(graph, xr); Balancer balancing = new Balancer(this); navigator.navigateFirst(startNodeName); Thread navigateThread = new Thread(navigator); Thread balanceThread = new Thread(balancing); balanceThread.start(); navigateThread.start();
public void start() { xr = new XmlReader(url); graph.setXmlReader(xr); xr.getNodeData(startNodeName,graph); graph.navigateTo(Graph.centerNode); bi = new BufferedImage( Config.windowwidth, Config.windowheight, BufferedImage.TYPE_INT_RGB); bg = (Graphics2D) bi.getGraphics(); bg.setClip( Config.viewstartx, Config.viewstarty, Config.viewwidth, Config.viewheight); balancing = new BalanceThread(this); Thread t = new Thread(balancing); t.start(); //CanvaxVertex.setanimator(a); }
2030 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2030/6ec2b188c58c3fccef25d6997824ed2b13d92e3c/Can3d.java/clean/lib/wiki3d/Can3d.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 787, 1435, 288, 202, 202, 92, 86, 273, 394, 5714, 2514, 12, 718, 1769, 202, 202, 4660, 18, 542, 4432, 2514, 12, 92, 86, 1769, 202, 202, 92, 86, 18, 588, 23911, 12, 19...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 787, 1435, 288, 202, 202, 92, 86, 273, 394, 5714, 2514, 12, 718, 1769, 202, 202, 4660, 18, 542, 4432, 2514, 12, 92, 86, 1769, 202, 202, 92, 86, 18, 588, 23911, 12, 19...
removeButton.setEnabled( !getSelection( ).isEmpty( ) );
if ( modifier instanceof ITableAreaModifier ) { removeButton.setEnabled( !getSelection( ).isEmpty( ) ); }
private void updateButtons( ) { boolean enable = ( getSelection( ).size( ) == 1 ); editButton.setEnabled( enable ); if ( modifier instanceof ISortedTableAreaModifier ) { int index = tableViewer.getTable( ).getSelectionIndex( ); upButton.setEnabled( enable && index != 0 ); downButton.setEnabled( enable && index != tableViewer.getTable( ).getItemCount( ) - 1 ); } removeButton.setEnabled( !getSelection( ).isEmpty( ) ); }
5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/9def0d3f4770404bae8ad9c41d93b5cca9b94576/TableArea.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/swt/custom/TableArea.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1089, 14388, 12, 262, 202, 95, 202, 202, 6494, 4237, 273, 261, 23204, 12, 262, 18, 1467, 12, 262, 422, 404, 11272, 202, 202, 4619, 3616, 18, 542, 1526, 12, 4237, 11272, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 1089, 14388, 12, 262, 202, 95, 202, 202, 6494, 4237, 273, 261, 23204, 12, 262, 18, 1467, 12, 262, 422, 404, 11272, 202, 202, 4619, 3616, 18, 542, 1526, 12, 4237, 11272, ...
public RemoteStub exportObject(Remote obj) throws RemoteException { if (myself == null) { myself = obj; manager.serverobj = obj;
public Remote exportObject(Remote obj) throws RemoteException { if (myself == null) { myself = obj; manager.serverobj = obj;
public RemoteStub exportObject(Remote obj) throws RemoteException { if (myself == null) { myself = obj; // Save it to server manager, to let client calls in the same VM to issue // local call manager.serverobj = obj; // Find and install the stub Class cls = obj.getClass(); Class expCls; try { // where ist the _Stub? (check superclasses also) expCls = findStubSkelClass(cls); } catch (Exception ex) { throw new RemoteException("can not find stubs for class: " + cls, ex); } stub = (RemoteStub)getHelperClass(expCls, "_Stub"); if (stub == null) { throw new RemoteException("failed to export: " + cls); } // Find and install the skeleton (if there is one) skel = (Skeleton)getHelperClass(expCls, "_Skel"); // Build hash of methods which may be called. buildMethodHash(obj.getClass(), true); // Export it. UnicastServer.exportObject(this); } return (stub);}
45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/3878be593002f301580025b16c264e41f364beae/UnicastServerRef.java/buggy/libraries/javalib/external/classpath/gnu/java/rmi/server/UnicastServerRef.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6304, 11974, 3359, 921, 12, 5169, 1081, 13, 1216, 18361, 288, 202, 430, 261, 4811, 2890, 422, 446, 13, 288, 202, 202, 4811, 2890, 273, 1081, 31, 202, 202, 759, 7074, 518, 358, 1438, 33...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 6304, 11974, 3359, 921, 12, 5169, 1081, 13, 1216, 18361, 288, 202, 430, 261, 4811, 2890, 422, 446, 13, 288, 202, 202, 4811, 2890, 273, 1081, 31, 202, 202, 759, 7074, 518, 358, 1438, 33...
assertTrue("Expected a result set", rs.next()); assertEquals(rs.getString("c255"), blong); assertEquals(rs.getString("v255"), blong);
assertTrue("Expected a result set", rs.next()); assertEquals(rs.getString("c255"), blong); assertEquals(rs.getString("v255"), blong);
public void testPreparedStatement0040() throws Exception { Connection cx = getConnection(); dropTable("#t0040"); Statement stmt = cx.createStatement(); stmt.executeUpdate("create table #t0040 (" + " c255 char(255) not null, " + " v255 varchar(255) not null) "); PreparedStatement pStmt1 = cx.prepareStatement("insert into #t0040 values (?, ?)"); PreparedStatement pStmt2 = cx.prepareStatement("select c255, v255 from #t0040 order by c255"); String along = getLongString('a'); String blong = getLongString('b'); pStmt1.setString(1, along); pStmt1.setString(2, along); int count = pStmt1.executeUpdate(); assertTrue(count == 1); count = stmt.executeUpdate("" + "insert into #t0040 values ( " + "'" + blong + "', " + "'" + blong + "')"); assertTrue(count == 1); ResultSet rs = pStmt2.executeQuery(); assertNotNull(rs); assertTrue("Expected a result set", rs.next()); assertEquals(rs.getString("c255"), along); assertEquals(rs.getString("v255"), along); assertTrue("Expected a result set", rs.next()); assertEquals(rs.getString("c255"), blong); assertEquals(rs.getString("v255"), blong); assertTrue("Expected no result set", !rs.next()); rs = stmt.executeQuery("select c255, v255 from #t0040 order by c255"); assertNotNull(rs); assertTrue("Expected a result set", rs.next()); assertEquals(rs.getString("c255"), along); assertEquals(rs.getString("v255"), along); assertTrue("Expected a result set", rs.next()); assertEquals(rs.getString("c255"), blong); assertEquals(rs.getString("v255"), blong); assertTrue("Expected no result set", !rs.next()); }
439 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/439/d9d3f9d24e5fe3f189bd2899a4d10846c0832a3b/TimestampTest.java/buggy/trunk/jtds/src.old/test/freetds/TimestampTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 29325, 713, 7132, 1435, 1216, 1185, 202, 95, 202, 202, 1952, 9494, 273, 6742, 5621, 202, 202, 7285, 1388, 2932, 7, 88, 713, 7132, 8863, 202, 202, 3406, 3480, 273, 9...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 29325, 713, 7132, 1435, 1216, 1185, 202, 95, 202, 202, 1952, 9494, 273, 6742, 5621, 202, 202, 7285, 1388, 2932, 7, 88, 713, 7132, 8863, 202, 202, 3406, 3480, 273, 9...
verifier.verify();
System.out.println("*** Verifying: fail when [ERROR] detected? " + chokeOnErrorOutput + " ***"); verifier.verify( chokeOnErrorOutput );
public static void main( String args[] ) { String basedir = System.getProperty( "user.dir" ); localRepo = retrieveLocalRepo(); List tests = null; try { tests = loadFile( basedir, "integration-tests.txt" ); } catch ( VerificationException e ) { System.err.println( "Unable to load integration tests file" ); System.err.println( e.getMessage() ); System.exit( 2 ); } if ( tests.size() == 0 ) { System.out.println( "No tests to run" ); } int exitCode = 0; for ( Iterator i = tests.iterator(); i.hasNext(); ) { String test = (String) i.next(); System.out.print( test + "... " ); Verifier verifier = new Verifier( basedir + "/" + test ); try { verifier.executeHook( "prebuild-hook.txt" ); Properties properties = verifier.loadProperties( "system.properties" ); verifier.executeGoals( properties, "goals.txt" ); verifier.executeHook( "postbuild-hook.txt" ); verifier.verify(); verifier.resetStreams(); System.out.println( "OK" ); } catch ( VerificationException e ) { verifier.resetStreams(); System.out.println( "FAILED" ); verifier.displayStreamBuffers(); System.out.println(">>>>>> Error Stacktrace:"); e.printStackTrace(System.out); System.out.println("<<<<<< Error Stacktrace"); verifier.displayLogFile(); exitCode = 1; } } System.exit( exitCode ); }
47050 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47050/4b53aba3bb6839694970739baeb1918bbf4acec0/Verifier.java/clean/maven-core-it-verifier/src/main/java/org/apache/maven/it/Verifier.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2774, 12, 514, 833, 8526, 262, 565, 288, 3639, 514, 15573, 273, 2332, 18, 588, 1396, 12, 315, 1355, 18, 1214, 6, 11272, 3639, 1191, 8791, 273, 4614, 2042, 8791, 5621, 36...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2774, 12, 514, 833, 8526, 262, 565, 288, 3639, 514, 15573, 273, 2332, 18, 588, 1396, 12, 315, 1355, 18, 1214, 6, 11272, 3639, 1191, 8791, 273, 4614, 2042, 8791, 5621, 36...
if (isEmpty(addThem)) {
if (!state.isOutOfDate()) {
public void executeMain() throws BuildException { if (baseDir == null && filesets.size() == 0 && groupfilesets.size() == 0 && "zip".equals(archiveType)) { throw new BuildException("basedir attribute must be set, " + "or at least " + "one fileset must be given!"); } if (zipFile == null) { throw new BuildException("You must specify the " + archiveType + " file to create!"); } // Renamed version of original file, if it exists File renamedFile = null; // Whether or not an actual update is required - // we don't need to update if the original file doesn't exist addingNewFiles = true; doUpdate = doUpdate && zipFile.exists(); // Add the files found in groupfileset to fileset for (int i = 0; i < groupfilesets.size(); i++) { log("Processing groupfileset ", Project.MSG_VERBOSE); FileSet fs = (FileSet) groupfilesets.elementAt(i); FileScanner scanner = fs.getDirectoryScanner(getProject()); String[] files = scanner.getIncludedFiles(); File basedir = scanner.getBasedir(); for (int j = 0; j < files.length; j++) { log("Adding file " + files[j] + " to fileset", Project.MSG_VERBOSE); ZipFileSet zf = new ZipFileSet(); zf.setSrc(new File(basedir, files[j])); filesets.addElement(zf); filesetsFromGroupfilesets.addElement(zf); } } // collect filesets to pass them to getResourcesToAdd Vector vfss = new Vector(); if (baseDir != null) { FileSet fs = (FileSet) getImplicitFileSet().clone(); fs.setDir(baseDir); vfss.addElement(fs); } for (int i = 0; i < filesets.size(); i++) { FileSet fs = (FileSet) filesets.elementAt(i); vfss.addElement(fs); } FileSet[] fss = new FileSet[vfss.size()]; vfss.copyInto(fss); boolean success = false; try { Resource[][] addThem = getResourcesToAdd(fss, zipFile, false); // quick exit if the target is up to date // can also handle empty archives if (isEmpty(addThem)) { return; } if (doUpdate) { renamedFile = fileUtils.createTempFile("zip", ".tmp", fileUtils.getParentFile(zipFile)); try { if (!zipFile.renameTo(renamedFile)) { throw new BuildException("Unable to rename old file " + "to temporary file"); } } catch (SecurityException e) { throw new BuildException("Not allowed to rename old file " + "to temporary file"); } } String action = doUpdate ? "Updating " : "Building "; log(action + archiveType + ": " + zipFile.getAbsolutePath()); ZipOutputStream zOut = null; try { if (! skipWriting) { zOut = new ZipOutputStream(new FileOutputStream(zipFile)); zOut.setEncoding(encoding); if (doCompress) { zOut.setMethod(ZipOutputStream.DEFLATED); } else { zOut.setMethod(ZipOutputStream.STORED); } } initZipOutputStream(zOut); // Add the explicit filesets to the archive. for (int i = 0; i < fss.length; i++) { if (addThem[i].length != 0) { addResources(fss[i], addThem[i], zOut); } } if (doUpdate) { addingNewFiles = false; ZipFileSet oldFiles = new ZipFileSet(); oldFiles.setSrc(renamedFile); for (int i = 0; i < addedFiles.size(); i++) { PatternSet.NameEntry ne = oldFiles.createExclude(); ne.setName((String) addedFiles.elementAt(i)); } DirectoryScanner ds = oldFiles.getDirectoryScanner(getProject()); String[] f = ds.getIncludedFiles(); Resource[] r = new Resource[f.length]; for (int i = 0; i < f.length; i++) { r[i] = ds.getResource(f[i]); } addResources(oldFiles, r, zOut); } finalizeZipOutputStream(zOut); // If we've been successful on an update, delete the // temporary file if (doUpdate) { if (!renamedFile.delete()) { log ("Warning: unable to delete temporary file " + renamedFile.getName(), Project.MSG_WARN); } } success = true; } finally { // Close the output stream. try { if (zOut != null) { zOut.close(); } } catch (IOException ex) { // If we're in this finally clause because of an // exception, we don't really care if there's an // exception when closing the stream. E.g. if it // throws "ZIP file must have at least one entry", // because an exception happened before we added // any files, then we must swallow this // exception. Otherwise, the error that's reported // will be the close() error, which is not the // real cause of the problem. if (success) { throw ex; } } } } catch (IOException ioe) { String msg = "Problem creating " + archiveType + ": " + ioe.getMessage(); // delete a bogus ZIP file (but only if it's not the original one) if ((!doUpdate || renamedFile != null) && !zipFile.delete()) { msg += " (and the archive is probably corrupt but I could not " + "delete it)"; } if (doUpdate && renamedFile != null) { if (!renamedFile.renameTo(zipFile)) { msg += " (and I couldn't rename the temporary file " + renamedFile.getName() + " back)"; } } throw new BuildException(msg, ioe, getLocation()); } finally { cleanUp(); } }
17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/12be5d336dbb6960150a64c058362d3d3554bb20/Zip.java/buggy/src/main/org/apache/tools/ant/taskdefs/Zip.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1836, 6376, 1435, 1216, 18463, 288, 3639, 309, 261, 1969, 1621, 422, 446, 597, 1390, 2413, 18, 1467, 1435, 422, 374, 5411, 597, 1041, 2354, 2413, 18, 1467, 1435, 422, 374, 597,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1836, 6376, 1435, 1216, 18463, 288, 3639, 309, 261, 1969, 1621, 422, 446, 597, 1390, 2413, 18, 1467, 1435, 422, 374, 5411, 597, 1041, 2354, 2413, 18, 1467, 1435, 422, 374, 597,...
Object insertObject; if ( index == -1 ) { insertObject = newKeyExpr.trim( ); } else { insertObject = columnList.get( index ); } DesignElementHandle dataItemHandle = InsertInLayoutUtil.performInsert( insertObject, slotHandle, inputGroup.getContainer( ) );
DataItemHandle dataItemHandle = inputGroup.getElementFactory( ) .newDataItem( null ); dataItemHandle.setResultSetColumn( ( (ComputedColumnHandle) columnList.get( index ) ).getName( ) );
protected void okPressed( ) { try { inputGroup.setName( nameEditor.getText( ) ); String newToc = UIUtil.convertToModelString( tocEditor.getText( ), true ); if ( newToc != inputGroup.getTocExpression( ) ) { if ( newToc == null || !newToc.equals( inputGroup.getTocExpression( ) ) ) { inputGroup.setTocExpression( newToc ); } } int index = keyChooser.getSelectionIndex( ); String oldKeyExpr = inputGroup.getKeyExpr( ); String newKeyExpr = getKeyExpression( ); inputGroup.setKeyExpr( newKeyExpr ); if ( newKeyExpr != null && newKeyExpr.length( ) != 0 && !newKeyExpr.equals( oldKeyExpr ) ) { SlotHandle slotHandle = null; if ( inputGroup instanceof ListGroupHandle ) { slotHandle = inputGroup.getHeader( ); } else if ( inputGroup instanceof TableGroupHandle ) { if ( inputGroup.getHeader( ).getCount( ) != 0 ) { RowHandle rowHandle = ( (RowHandle) inputGroup.getHeader( ) .get( 0 ) ); CellHandle cellHandle = (CellHandle) rowHandle.getCells( ) .get( 0 ); slotHandle = cellHandle.getContent( ); } } if ( slotHandle != null ) { Object insertObject; if ( index == -1 ) { insertObject = newKeyExpr.trim( ); } else { insertObject = columnList.get( index ); } DesignElementHandle dataItemHandle = InsertInLayoutUtil.performInsert( insertObject, slotHandle, inputGroup.getContainer( ) ); slotHandle.add( dataItemHandle ); } } index = intervalType.getSelectionIndex( ); inputGroup.setInterval( intervalChoices[index].getName( ) ); if ( index != 0 ) { inputGroup.setIntervalRange( intervalRange.getSelection( ) ); } else { inputGroup.setProperty( GroupHandle.INTERVAL_RANGE_PROP, null ); } if ( intervalBaseText.getEnabled( ) ) { inputGroup.setIntervalBase( UIUtil.convertToModelString( intervalBaseText.getText( ), false ) ); } else { inputGroup.setIntervalBase( null ); } inputGroup.setHideDetail( hideDetail.getSelection( ) ); if ( inputGroup instanceof TableGroupHandle ) { if ( includeHeader.getSelection( ) != inputGroup.hasHeader( ) ) {// the include header status changed if ( includeHeader.getSelection( ) ) {// from unchecked to checked inputGroup.getHeader( ).add( createRow( ) ); } else {// from checked to unchecked,clear the slot inputGroup.clearContents( GroupHandle.HEADER_SLOT ); } } if ( includeFooter.getSelection( ) != inputGroup.hasFooter( ) ) {// the include footer status changed if ( includeFooter.getSelection( ) ) {// from unchecked to checked inputGroup.getFooter( ).add( createRow( ) ); } else {// from checked to unchecked,clear the slot inputGroup.clearContents( GroupHandle.FOOTER_SLOT ); } } } if ( ascending.getSelection( ) ) { inputGroup.setSortDirection( DesignChoiceConstants.SORT_DIRECTION_ASC ); } else { inputGroup.setSortDirection( DesignChoiceConstants.SORT_DIRECTION_DESC ); } inputGroup.setPageBreakBefore( pagebreakBeforeChoicesAll[pagebreakBeforeCombo.getSelectionIndex( )].getName( ) ); inputGroup.setPageBreakAfter( pagebreakAfterChoicesAll[pagebreakAfterCombo.getSelectionIndex( )].getName( ) ); inputGroup.setRepeatHeader( repeatHeaderButton.getSelection( ) ); } catch ( SemanticException e ) { ExceptionHandler.handle( e ); return; } setResult( inputGroup ); super.okPressed( ); }
15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/31a5f4bf199da4750784a9487f20eb0123ebb149/GroupDialog.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/GroupDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 918, 1529, 24624, 12, 262, 202, 95, 202, 202, 698, 202, 202, 95, 1082, 202, 2630, 1114, 18, 542, 461, 12, 508, 6946, 18, 588, 1528, 12, 262, 11272, 1082, 202, 780, 394, 56,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1529, 24624, 12, 262, 202, 95, 202, 202, 698, 202, 202, 95, 1082, 202, 2630, 1114, 18, 542, 461, 12, 508, 6946, 18, 588, 1528, 12, 262, 11272, 1082, 202, 780, 394, 56,...
if (! runtime.isBlockGiven()) {
if (!runtime.isBlockGiven()) {
private static RubyThread startThread(final IRubyObject recv, final IRubyObject[] args, boolean callInit) { final Ruby runtime = recv.getRuntime(); if (! runtime.isBlockGiven()) { throw new ThreadError(runtime, "must be called with a block"); } final RubyThread thread = new RubyThread(runtime, (RubyClass) recv); if (callInit) { thread.callInit(args); } final RubyProc proc = RubyProc.newProc(runtime, runtime.getClasses().getProcClass()); final Frame currentFrame = runtime.getCurrentFrame(); final Block currentBlock = runtime.getBlockStack().getCurrent(); thread.jvmThread = new Thread(new Runnable() { public void run() { thread.hasStarted = true; runtime.registerNewContext(thread); ThreadContext context = runtime.getCurrentContext(); context.getFrameStack().push(currentFrame); context.getBlockStack().setCurrent(currentBlock); // Call the thread's code try { proc.call(args); } catch (RaiseException e) { thread.exitingException = e; } } }); thread.jvmThread.start(); return thread; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/76b67f896c21898620856bc161264cfbe0aa810b/RubyThread.java/buggy/org/jruby/RubyThread.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 19817, 3830, 787, 3830, 12, 6385, 15908, 10340, 921, 10665, 16, 727, 15908, 10340, 921, 8526, 833, 16, 1250, 745, 2570, 13, 288, 3639, 727, 19817, 3099, 273, 10665, 18, 588, 55...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 19817, 3830, 787, 3830, 12, 6385, 15908, 10340, 921, 10665, 16, 727, 15908, 10340, 921, 8526, 833, 16, 1250, 745, 2570, 13, 288, 3639, 727, 19817, 3099, 273, 10665, 18, 588, 55...
com.liferay.portlet.mail.model.MailReceipt mailReceipt = MailReceiptHBMUtil.model(mailReceiptHBM);
public com.liferay.portlet.mail.model.MailReceipt remove(String receiptId) throws NoSuchReceiptException, SystemException { Session session = null; try { session = openSession(); MailReceiptHBM mailReceiptHBM = (MailReceiptHBM)session.get(MailReceiptHBM.class, receiptId); if (mailReceiptHBM == null) { _log.warn("No MailReceipt exists with the primary key " + receiptId.toString()); throw new NoSuchReceiptException( "No MailReceipt exists with the primary key " + receiptId.toString()); } com.liferay.portlet.mail.model.MailReceipt mailReceipt = MailReceiptHBMUtil.model(mailReceiptHBM); session.delete(mailReceiptHBM); session.flush(); MailReceiptPool.remove(receiptId); return mailReceipt; } catch (HibernateException he) { throw new SystemException(he); } finally { closeSession(session); } }
57692 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57692/8c4054ea8e295b5e5e4f4309b1d8379f8887c3af/MailReceiptPersistence.java/clean/portal-ejb/src/com/liferay/portlet/mail/service/persistence/MailReceiptPersistence.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 532, 18, 10256, 15164, 18, 655, 1810, 18, 4408, 18, 2284, 18, 6759, 15636, 1206, 12, 780, 16030, 548, 13, 202, 202, 15069, 5823, 15636, 503, 16, 26731, 288, 202, 202, 2157, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 532, 18, 10256, 15164, 18, 655, 1810, 18, 4408, 18, 2284, 18, 6759, 15636, 1206, 12, 780, 16030, 548, 13, 202, 202, 15069, 5823, 15636, 503, 16, 26731, 288, 202, 202, 2157, 13...
temp = Data_2da.load2da("2da" + fileSeparator + name + ".2da");
temp = Data_2da.load2da("2da" + fileSeparator + name + ".2da", true);
public Data_2da get(String name){ if(data.containsKey(name)) return data.get(name); else{ Data_2da temp = null; try{ temp = Data_2da.load2da("2da" + fileSeparator + name + ".2da"); }catch(IllegalArgumentException e){ throw new TwoDAReadException("Problem with filename when trying to read from 2da:\n" + e); } data.put(name, temp); return temp; } }
9794 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9794/b47c456021c181403a55682d6bfc7e87a0f6a946/Main.java/clean/DocGen/prc/autodoc/Main.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3196, 202, 482, 1910, 67, 22, 2414, 336, 12, 780, 508, 15329, 1082, 202, 430, 12, 892, 18, 12298, 653, 12, 529, 3719, 9506, 202, 2463, 501, 18, 588, 12, 529, 1769, 1082, 202, 12107, 95, 95...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1910, 67, 22, 2414, 336, 12, 780, 508, 15329, 1082, 202, 430, 12, 892, 18, 12298, 653, 12, 529, 3719, 9506, 202, 2463, 501, 18, 588, 12, 529, 1769, 1082, 202, 12107, 95, 95...
public boolean isSet(org.quickfix.field.ClOrdID field)
public boolean isSet(quickfix.field.ClOrdID field)
public boolean isSet(org.quickfix.field.ClOrdID field) { return isSetField(field); }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/NewOrderSingle.java/clean/src/java/src/quickfix/fix41/NewOrderSingle.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 13532, 12, 19525, 904, 18, 1518, 18, 2009, 15383, 734, 652, 13, 225, 288, 327, 13532, 974, 12, 1518, 1769, 289, 2, 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, 0, 0, 0, 0, 0, 0, 0, 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, 1250, 13532, 12, 19525, 904, 18, 1518, 18, 2009, 15383, 734, 652, 13, 225, 288, 327, 13532, 974, 12, 1518, 1769, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
public void addBundle(IOsgiBundle bundle, Integer startLevel);
public void addBundle(IOsgiBundle bundle, BundleLaunchInfo info);
public void addBundle(IOsgiBundle bundle, Integer startLevel);
14547 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14547/7570cb0eac9e8ce8f4e3cac76f377f740d5f1f8d/IOsgiConfiguration.java/buggy/org.knopflerfish.eclipse.core/src/org/knopflerfish/eclipse/core/IOsgiConfiguration.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 527, 3405, 12, 4294, 17537, 3405, 3440, 16, 2144, 787, 2355, 1769, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 527, 3405, 12, 4294, 17537, 3405, 3440, 16, 2144, 787, 2355, 1769, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
block_sending=false;
block_sending.set(false);
private void init() { local_addr=null; channel_name=null; my_view=null; // changed by Bela Sept 25 2003 //if(mq != null && mq.closed()) // mq.reset(); connect_ok_event_received=false; disconnect_ok_event_received=false; connected=false; block_sending=false; // block send()/down() if true (unlocked by UNBLOCK_SEND event) }
51463 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51463/56d91cb893622dbe94db73b474ef0ae7c6a544fc/JChannel.java/clean/src/org/jgroups/JChannel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 1208, 1435, 288, 3639, 1191, 67, 4793, 33, 2011, 31, 3639, 1904, 67, 529, 33, 2011, 31, 3639, 3399, 67, 1945, 33, 2011, 31, 3639, 368, 3550, 635, 24907, 69, 3265, 337, 6969, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1208, 1435, 288, 3639, 1191, 67, 4793, 33, 2011, 31, 3639, 1904, 67, 529, 33, 2011, 31, 3639, 3399, 67, 1945, 33, 2011, 31, 3639, 368, 3550, 635, 24907, 69, 3265, 337, 6969, ...
appendField(8);
appendField(MILLIS);
public PeriodFormatterBuilder appendMillis() { appendField(8); return this; }
52681 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52681/5fd28fcd3425461dfcff1800753513f94807f652/PeriodFormatterBuilder.java/clean/JodaTime/src/java/org/joda/time/format/PeriodFormatterBuilder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 12698, 5074, 1263, 714, 4814, 1435, 288, 3639, 714, 974, 12, 30816, 1769, 3639, 327, 333, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 12698, 5074, 1263, 714, 4814, 1435, 288, 3639, 714, 974, 12, 30816, 1769, 3639, 327, 333, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
setBlockIncrement(int blockIncrement) { setPageIncrement (blockIncrement); }
public synchronized void setBlockIncrement(int blockIncrement) { setPageIncrement(blockIncrement); }
setBlockIncrement(int blockIncrement){ setPageIncrement (blockIncrement);}
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/bdd0bca7f46f1e8a19b790749e32f82de6de3685/Scrollbar.java/clean/core/src/classpath/java/java/awt/Scrollbar.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 444, 1768, 10798, 12, 474, 1203, 10798, 15329, 225, 18663, 10798, 261, 2629, 10798, 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, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 444, 1768, 10798, 12, 474, 1203, 10798, 15329, 225, 18663, 10798, 261, 2629, 10798, 1769, 97, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
if (!editObjectList.contains((Record)authorOccurrence)) editObjectList.add((Record)authorOccurrence);
contains = this.isInObjectList(AuthorOccurrence.class, authorOccurrence.getId()); if (contains == -1) { logger.debug("ObjectList - add authorOccurrence " + authorOccurrence.getId()); editObjectList.add((Record)authorOccurrence); } else { editObjectList.set(contains, (Record)authorOccurrence); }
public void undoInsertDelete(int isDelete) { if (tableName.equals(PlantloreConstants.ENTITY_OCCURRENCE)){ Object[] object = searchObject(PlantloreConstants.ENTITY_OCCURRENCE,recordId); if (isError()) return; //tOccurrence doesn`t contain required data Occurrence occurrence = (Occurrence)object[0]; occurrence.setDeleted(isDelete); //Add to list of changed Record if (!editObjectList.contains((Record)occurrence)) editObjectList.add((Record)occurrence); //Update author of specific occurrence isDelete = (isDelete == 1) ? 2 : isDelete; Object[] objects = getAllAuthors(occurrence, 2-isDelete); if (isError()) return; //Search authors failed int countResult = objects.length; for (int i=0; i<countResult; i++ ) { Object[] autOcc = (Object[])objects[i]; AuthorOccurrence authorOccurrence = (AuthorOccurrence)autOcc[0]; authorOccurrence.setDeleted(isDelete); //Add to list of changed Record if (!editObjectList.contains((Record)authorOccurrence)) editObjectList.add((Record)authorOccurrence); } } else if (tableName.equals(PlantloreConstants.ENTITY_AUTHOROCCURRENCE)) { Object[] object = searchObject(PlantloreConstants.ENTITY_AUTHOROCCURRENCE,recordId); if (isError()) return; //tAuthorOccurrence doesn`t contain required data AuthorOccurrence authorOccurrence = (AuthorOccurrence)object[0]; authorOccurrence.setDeleted(isDelete); //Add to list of changed Record if (!editObjectList.contains((Record)authorOccurrence)) editObjectList.add((Record)authorOccurrence); } else if (tableName.equals(PlantloreConstants.ENTITY_HABITAT)) { Object[] object = searchObject(PlantloreConstants.ENTITY_HABITAT,recordId); if (isError()) return; //tHabitat doesn`t contain required data Habitat habitat = (Habitat)object[0]; habitat.setDeleted(isDelete); //Add to list of changed Record if (!editObjectList.contains((Record)habitat)) editObjectList.add((Record)habitat); } else if (tableName.equals(PlantloreConstants.ENTITY_METADATA)) { Object[] object = searchObject(PlantloreConstants.ENTITY_METADATA,recordId); if (isError()) return; //tMetadata doesn`t contain required data Metadata metadata = (Metadata)object[0]; metadata.setDeleted(isDelete); //Add to list of changed Record if (!editObjectList.contains((Record)metadata)) editObjectList.add((Record)metadata); } else if (tableName.equals(PlantloreConstants.ENTITY_PUBLICATION)) { Object[] object = searchObject(PlantloreConstants.ENTITY_PUBLICATION,recordId); if (isError()) return; //tPublication doesn`t contain required data Publication publication = (Publication)object[0]; publication.setDeleted(isDelete); //Add to list of changed Record if (!editObjectList.contains((Record)publication)) editObjectList.add((Record)publication); } else if (tableName.equals(PlantloreConstants.ENTITY_AUTHOR)) { Object[] object = searchObject(PlantloreConstants.ENTITY_AUTHOR,recordId); if (isError()) return; //tAuthor doesn`t contain required data Author author = (Author)object[0]; author.setDeleted(isDelete); //Add to list of changed Record if (!editObjectList.contains((Record)author)) editObjectList.add((Record)author); } else { logger.error("Name of table is incorrect."); } }
57211 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57211/9b9fd6a5385ddc73153f5153a0aac6946a3b192c/History.java/clean/trunk/src/net/sf/plantlore/client/history/History.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 15436, 4600, 2613, 12, 474, 353, 2613, 13, 288, 3639, 309, 261, 18033, 18, 14963, 12, 1749, 970, 383, 266, 2918, 18, 11101, 67, 51, 6743, 1099, 24296, 1441, 3719, 95, 540, 20...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 15436, 4600, 2613, 12, 474, 353, 2613, 13, 288, 3639, 309, 261, 18033, 18, 14963, 12, 1749, 970, 383, 266, 2918, 18, 11101, 67, 51, 6743, 1099, 24296, 1441, 3719, 95, 540, 20...
pagebreakBeforeCombo.setLayoutData( new GridData(GridData.FILL_HORIZONTAL) );
pagebreakBeforeCombo.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) );
private void createGroupArea( Composite parent ) { Composite composite = new Composite( parent, SWT.NONE ); GridData layoutData = new GridData( GridData.FILL_HORIZONTAL | GridData.VERTICAL_ALIGN_BEGINNING ); layoutData.verticalSpan = 2; composite.setLayoutData( layoutData ); composite.setLayout( new GridLayout( ) ); Group sortingGroup = new Group( composite, SWT.NONE ); sortingGroup.setText( SORT_GROUP_TITLE ); sortingGroup.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); sortingGroup.setLayout( new FillLayout( SWT.VERTICAL ) ); Composite sortingGroupComposite = new Composite( sortingGroup, SWT.NONE ); sortingGroupComposite.setLayout( new GridLayout( ) ); ascending = new Button( sortingGroupComposite, SWT.RADIO ); ascending.setText( sortByAscending.getDisplayName( ) ); descending = new Button( sortingGroupComposite, SWT.RADIO ); descending.setText( sortByDescending.getDisplayName( ) ); Group pagebreakGroup = new Group( composite, SWT.NONE ); pagebreakGroup.setText( Messages.getString( "GroupDialog.PageBreak" ) ); //$NON-NLS-1$ pagebreakGroup.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); GridLayout layout = new GridLayout( ); layout.numColumns = 3; pagebreakGroup.setLayout( layout ); new Label( pagebreakGroup, SWT.NONE ).setText( Messages.getString( "GroupDialog.PageBreakBefore" ) ); //$NON-NLS-1$ pagebreakBeforeCombo = new Combo( pagebreakGroup, SWT.READ_ONLY | SWT.DROP_DOWN ); for ( int i = 0; i < pagebreakBeforeChoicesAll.length; i++ ) { pagebreakBeforeCombo.add( pagebreakBeforeChoicesAll[i].getDisplayName( ) ); } pagebreakBeforeCombo.setLayoutData( new GridData(GridData.FILL_HORIZONTAL) ); WidgetUtil.createGridPlaceholder( pagebreakGroup, 1, true ); pagebreakBeforeCombo.setData( pagebreakBeforeChoicesAll ); new Label( pagebreakGroup, SWT.NONE ).setText( Messages.getString( "GroupDialog.PageBreakAfter" ) ); //$NON-NLS-1$ pagebreakAfterCombo = new Combo( pagebreakGroup, SWT.READ_ONLY | SWT.DROP_DOWN ); for ( int i = 0; i < pagebreakAfterChoicesAll.length; i++ ) { pagebreakAfterCombo.add( pagebreakAfterChoicesAll[i].getDisplayName( ) ); } pagebreakAfterCombo.setData( pagebreakAfterChoicesAll ); pagebreakAfterCombo.setLayoutData( new GridData(GridData.FILL_HORIZONTAL) ); WidgetUtil.createGridPlaceholder( pagebreakGroup, 1, true ); new Label( pagebreakGroup, SWT.NONE ).setText( Messages.getString( "GroupDialog.PageBreakInside" ) ); //$NON-NLS-1$ pagebreakInsideCombo = new Combo( pagebreakGroup, SWT.READ_ONLY | SWT.DROP_DOWN ); for ( int i = 0; i < pagebreakInsideChoicesAll.length; i++ ) { pagebreakInsideCombo.add( pagebreakInsideChoicesAll[i].getDisplayName( ) ); } pagebreakInsideCombo.setData( pagebreakInsideChoicesAll ); pagebreakInsideCombo.setLayoutData( new GridData(GridData.FILL_HORIZONTAL) ); WidgetUtil.createGridPlaceholder( pagebreakGroup, 1, true ); repeatHeaderButton = new Button( pagebreakGroup, SWT.CHECK ); repeatHeaderButton.setText( Messages.getString( "GroupDialog.RepeatHeader" ) ); //$NON-NLS-1$ GridData data = new GridData( ); data.horizontalSpan = 3; repeatHeaderButton.setLayoutData( data ); }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/e243b97fc867ac6d2e4f8abcaadcff8c52cff6bd/GroupDialog.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/GroupDialog.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 752, 1114, 5484, 12, 14728, 982, 262, 202, 95, 202, 202, 9400, 9635, 273, 394, 14728, 12, 982, 16, 348, 8588, 18, 9826, 11272, 202, 202, 6313, 751, 3511, 751, 273, 394, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 752, 1114, 5484, 12, 14728, 982, 262, 202, 95, 202, 202, 9400, 9635, 273, 394, 14728, 12, 982, 16, 348, 8588, 18, 9826, 11272, 202, 202, 6313, 751, 3511, 751, 273, 394, ...
seeOtherParticle = true;
private int traverseComplexTypeDecl( Element complexTypeDecl ) throws Exception{ int complexTypeAbstract = fStringPool.addSymbol( complexTypeDecl.getAttribute( SchemaSymbols.ATT_ABSTRACT )); String isAbstract = complexTypeDecl.getAttribute( SchemaSymbols.ATT_ABSTRACT ); int complexTypeBase = fStringPool.addSymbol( complexTypeDecl.getAttribute( SchemaSymbols.ATT_BASE )); String base = complexTypeDecl.getAttribute(SchemaSymbols.ATT_BASE); int complexTypeBlock = fStringPool.addSymbol( complexTypeDecl.getAttribute( SchemaSymbols.ATT_BLOCK )); String blockSet = complexTypeDecl.getAttribute( SchemaSymbols.ATT_BLOCK ); int complexTypeContent = fStringPool.addSymbol( complexTypeDecl.getAttribute( SchemaSymbols.ATT_CONTENT )); String content = complexTypeDecl.getAttribute(SchemaSymbols.ATT_CONTENT); int complexTypeDerivedBy = fStringPool.addSymbol( complexTypeDecl.getAttribute( SchemaSymbols.ATT_DERIVEDBY )); String derivedBy = complexTypeDecl.getAttribute( SchemaSymbols.ATT_DERIVEDBY ); int complexTypeFinal = fStringPool.addSymbol( complexTypeDecl.getAttribute( SchemaSymbols.ATT_FINAL )); String finalSet = complexTypeDecl.getAttribute( SchemaSymbols.ATT_FINAL ); int complexTypeID = fStringPool.addSymbol( complexTypeDecl.getAttribute( SchemaSymbols.ATTVAL_ID )); String typeId = complexTypeDecl.getAttribute( SchemaSymbols.ATTVAL_ID ); int complexTypeName = fStringPool.addSymbol( complexTypeDecl.getAttribute( SchemaSymbols.ATT_NAME )); String typeName = complexTypeDecl.getAttribute(SchemaSymbols.ATT_NAME); if ( DEBUGGING ) System.out.println("traversing complex Type : " + typeName +","+base+","+content+"."); if (typeName.equals("")) { // gensym a unique name //typeName = "http://www.apache.org/xml/xerces/internalType"+fTypeCount++; typeName = "#"+fAnonTypeCount++; } int scopeDefined = fScopeCount++; int previousScope = fCurrentScope; fCurrentScope = scopeDefined; Element child = null; int contentSpecType = -1; int csnType = 0; int left = -2; int right = -2; ComplexTypeInfo baseTypeInfo = null; //if base is a complexType; DatatypeValidator baseTypeValidator = null; //if base is a simple type or a complex type derived from a simpleType DatatypeValidator simpleTypeValidator = null; int baseTypeSymbol = -1; String fullBaseName = ""; boolean baseIsSimpleSimple = false; boolean baseIsComplexSimple = false; boolean derivedByRestriction = true; boolean derivedByExtension = false; int baseContentSpecHandle = -1; Element baseTypeNode = null; //int parsedderivedBy = parseComplexDerivedBy(derivedBy); //handle the inhreitance here. if (base.length()>0) { //first check if derivedBy is present if (derivedBy.length() == 0) { reportGenericSchemaError("derivedBy must be present when base is present in " +SchemaSymbols.ELT_COMPLEXTYPE +" "+ typeName); } else { if (derivedBy.equals(SchemaSymbols.ATTVAL_EXTENSION)) { derivedByRestriction = false; } String prefix = ""; String localpart = base; int colonptr = base.indexOf(":"); if ( colonptr > 0) { prefix = base.substring(0,colonptr); localpart = base.substring(colonptr+1); } int localpartIndex = fStringPool.addSymbol(localpart); String typeURI = resolvePrefixToURI(prefix); // check if the base type is from the same Schema; if (!typeURI.equals(fTargetNSURIString) && !typeURI.equals(SchemaSymbols.URI_SCHEMAFORSCHEMA) ) { baseTypeInfo = getTypeInfoFromNS(typeURI, localpart); if (baseTypeInfo == null) { baseTypeValidator = getTypeValidatorFromNS(typeURI, localpart); if (baseTypeValidator == null) { //TO DO: report error here; System.out.println("Counld not find base type " +localpart + " in schema " + typeURI); } else{ baseIsSimpleSimple = true; } } } else { fullBaseName = typeURI+","+localpart; // assume the base is a complexType and try to locate the base type first baseTypeInfo = (ComplexTypeInfo) fComplexTypeRegistry.get(fullBaseName); // if not found, 2 possibilities: 1: ComplexType in question has not been compiled yet; // 2: base is SimpleTYpe; if (baseTypeInfo == null) { baseTypeValidator = fDatatypeRegistry.getDatatypeValidator(localpart); if (baseTypeValidator == null) { baseTypeNode = getTopLevelComponentByName(SchemaSymbols.ELT_COMPLEXTYPE,localpart); if (baseTypeNode != null) { baseTypeSymbol = traverseComplexTypeDecl( baseTypeNode ); baseTypeInfo = (ComplexTypeInfo) fComplexTypeRegistry.get(fStringPool.toString(baseTypeSymbol)); //REVISIT: should it be fullBaseName; } else { baseTypeNode = getTopLevelComponentByName(SchemaSymbols.ELT_SIMPLETYPE, localpart); if (baseTypeNode != null) { baseTypeSymbol = traverseSimpleTypeDecl( baseTypeNode ); simpleTypeValidator = baseTypeValidator = fDatatypeRegistry.getDatatypeValidator(localpart); if (simpleTypeValidator == null) { //TO DO: signal error here. } baseIsSimpleSimple = true; } else { reportGenericSchemaError("Base type could not be found : " + base); } } } else { simpleTypeValidator = baseTypeValidator; baseIsSimpleSimple = true; } } } //Schema Spec : 5.11: Complex Type Definition Properties Correct : 2 if (baseIsSimpleSimple && derivedByRestriction) { reportGenericSchemaError("base is a simpledType, can't derive by restriction in " + typeName); } //if the base is a complexType if (baseTypeInfo != null ) { //Schema Spec : 5.11: Derivation Valid ( Extension ) 1.1.1 // 5.11: Derivation Valid ( Restriction, Complex ) 1.2.1 if (derivedByRestriction) { //REVISIT: check base Type's finalset does not include "restriction" } else { //REVISIT: check base Type's finalset doest not include "extension" } if ( baseTypeInfo.contentSpecHandle > -1) { if (derivedByRestriction) { //REVISIT: !!! really hairy staff to check the particle derivation OK in 5.10 checkParticleDerivationOK(complexTypeDecl, baseTypeNode); } baseContentSpecHandle = baseTypeInfo.contentSpecHandle; } else if ( baseTypeInfo.datatypeValidator != null ) { baseTypeValidator = baseTypeInfo.datatypeValidator; baseIsComplexSimple = true; } } //Schema Spec : 5.11: Derivation Valid ( Extension ) 1.1.1 if (baseIsComplexSimple && !derivedByRestriction ) { reportGenericSchemaError("base is ComplexSimple, can't derive by extension in " + typeName); } } // END of if (derivedBy.length() == 0) {} else {} } // END of if (base.length() > 0) {} // skip refinement and annotations child = null; if (baseIsComplexSimple) { int numEnumerationLiterals = 0; int numFacets = 0; Hashtable facetData = new Hashtable(); Vector enumData = new Vector(); for (child = XUtil.getFirstChildElement(complexTypeDecl); child != null && (child.getNodeName().equals(SchemaSymbols.ELT_MINEXCLUSIVE) || child.getNodeName().equals(SchemaSymbols.ELT_MININCLUSIVE) || child.getNodeName().equals(SchemaSymbols.ELT_MAXEXCLUSIVE) || child.getNodeName().equals(SchemaSymbols.ELT_MAXINCLUSIVE) || child.getNodeName().equals(SchemaSymbols.ELT_PRECISION) || child.getNodeName().equals(SchemaSymbols.ELT_SCALE) || child.getNodeName().equals(SchemaSymbols.ELT_LENGTH) || child.getNodeName().equals(SchemaSymbols.ELT_MINLENGTH) || child.getNodeName().equals(SchemaSymbols.ELT_MAXLENGTH) || child.getNodeName().equals(SchemaSymbols.ELT_ENCODING) || child.getNodeName().equals(SchemaSymbols.ELT_PERIOD) || child.getNodeName().equals(SchemaSymbols.ELT_DURATION) || child.getNodeName().equals(SchemaSymbols.ELT_ENUMERATION) || child.getNodeName().equals(SchemaSymbols.ELT_PATTERN) || child.getNodeName().equals(SchemaSymbols.ELT_ANNOTATION)); child = XUtil.getNextSiblingElement(child)) { if ( child.getNodeType() == Node.ELEMENT_NODE ) { Element facetElt = (Element) child; numFacets++; if (facetElt.getNodeName().equals(SchemaSymbols.ELT_ENUMERATION)) { numEnumerationLiterals++; enumData.addElement(facetElt.getAttribute(SchemaSymbols.ATT_VALUE)); //Enumerations can have annotations ? ( 0 | 1 ) Element enumContent = XUtil.getFirstChildElement( facetElt ); if( enumContent.getNodeName().equals( SchemaSymbols.ELT_ANNOTATION ) ){ traverseAnnotationDecl( child ); } // TO DO: if Jeff check in new changes to TraverseSimpleType, copy them over } else { facetData.put(facetElt.getNodeName(),facetElt.getAttribute( SchemaSymbols.ATT_VALUE )); } } } if (numEnumerationLiterals > 0) { facetData.put(SchemaSymbols.ELT_ENUMERATION, enumData); } // overide the facets of the baseTypeValidator if (numFacets > 0) baseTypeValidator.setFacets(facetData, derivedBy ); // now we are ready with our own simpleTypeValidator simpleTypeValidator = baseTypeValidator; if (child != null) { reportGenericSchemaError("Invalid Schema Document"); } } // if content = textonly, base is a datatype if (content.equals(SchemaSymbols.ATTVAL_TEXTONLY)) { //TO DO if (fDatatypeRegistry.getDatatypeValidator(base) == null) // must be datatype reportSchemaError(SchemaMessageProvider.NotADatatype, new Object [] { base }); //REVISIT check forward refs //handle datatypes contentSpecType = XMLElementDecl.TYPE_SIMPLE; left = fSchemaGrammar.addContentSpecNode(XMLContentSpec.CONTENTSPECNODE_LEAF, fStringPool.addSymbol(base), -1, false); } else { contentSpecType = XMLElementDecl.TYPE_CHILDREN; csnType = XMLContentSpec.CONTENTSPECNODE_SEQ; boolean mixedContent = false; //REVISIT: is the default content " elementOnly" boolean elementContent = true; boolean textContent = false; left = -2; right = -2; boolean hadContent = false; if (content.equals(SchemaSymbols.ATTVAL_EMPTY)) { contentSpecType = XMLElementDecl.TYPE_EMPTY; left = -1; // no contentSpecNode needed } else if (content.equals(SchemaSymbols.ATTVAL_MIXED) ) { contentSpecType = XMLElementDecl.TYPE_MIXED; mixedContent = true; csnType = XMLContentSpec.CONTENTSPECNODE_CHOICE; } else if (content.equals(SchemaSymbols.ATTVAL_ELEMENTONLY) || content.equals("")) { elementContent = true; } else if (content.equals(SchemaSymbols.ATTVAL_TEXTONLY)) { textContent = true; } if (mixedContent) { // add #PCDATA leaf left = fSchemaGrammar.addContentSpecNode(XMLContentSpec.CONTENTSPECNODE_LEAF, -1, // -1 means "#PCDATA" is name -1, false); csnType = XMLContentSpec.CONTENTSPECNODE_CHOICE; } for (child = XUtil.getFirstChildElement(complexTypeDecl); child != null; child = XUtil.getNextSiblingElement(child)) { int index = -2; // to save the particle's contentSpec handle hadContent = true; boolean seeParticle = false; String childName = child.getNodeName(); if (childName.equals(SchemaSymbols.ELT_ELEMENT)) { if (mixedContent || elementContent) { if ( DEBUGGING ) System.out.println(" child element name " + child.getAttribute(SchemaSymbols.ATT_NAME)); QName eltQName = traverseElementDecl(child); index = fSchemaGrammar.addContentSpecNode( XMLContentSpec.CONTENTSPECNODE_LEAF, eltQName.localpart, eltQName.uri, false); seeParticle = true; } else { reportSchemaError(SchemaMessageProvider.EltRefOnlyInMixedElemOnly, null); } } else if (childName.equals(SchemaSymbols.ELT_GROUP)) { index = traverseGroupDecl(child); seeParticle = true; } else if (childName.equals(SchemaSymbols.ELT_ALL)) { index = traverseAll(child); seeParticle = true; } else if (childName.equals(SchemaSymbols.ELT_CHOICE)) { index = traverseChoice(child); seeParticle = true; } else if (childName.equals(SchemaSymbols.ELT_SEQUENCE)) { index = traverseSequence(child); seeParticle = true; } else if (childName.equals(SchemaSymbols.ELT_ATTRIBUTE) || childName.equals(SchemaSymbols.ELT_ATTRIBUTEGROUP)) { break; // attr processing is done later on in this method } else if (childName.equals(SchemaSymbols.ELT_ANY)) { contentSpecType = fStringPool.addSymbol("ANY"); left = -1; } else { // datatype qual if (base.equals("")) reportSchemaError(SchemaMessageProvider.DatatypeWithType, null); else reportSchemaError(SchemaMessageProvider.DatatypeQualUnsupported, new Object [] { childName }); } // check the minOccurs and maxOccurs of the particle, and fix the // contentspec accordingly if (seeParticle) { index = expandContentModel(index, child); } //end of if (seeParticle) if (left == -2) { left = index; } else if (right == -2) { right = index; } else { left = fSchemaGrammar.addContentSpecNode(csnType, left, right, false); right = index; } } //end looping through the children if (hadContent && right != -2) left = fSchemaGrammar.addContentSpecNode(csnType, left, right, false); if (mixedContent && hadContent) { // set occurrence count left = fSchemaGrammar.addContentSpecNode(XMLContentSpec.CONTENTSPECNODE_ZERO_OR_MORE, left, -1, false); } } // if derived by extension and base complextype has a content model, // compose the final content model by concatenating the base and the // current in sequence. if (!derivedByRestriction && baseContentSpecHandle > -1 ) { left = fSchemaGrammar.addContentSpecNode(XMLContentSpec.CONTENTSPECNODE_SEQ, baseContentSpecHandle, left, false); } // REVISIT: this is when sees a topelevel <complexType name="abc">attrs*</complexType> if (content.length() == 0 && base.length() == 0 && left == -2) { contentSpecType = XMLElementDecl.TYPE_ANY; } if ( DEBUGGING ) System.out.println("!!!!!>>>>>" + typeName+", "+ baseTypeInfo + ", " + baseContentSpecHandle +", " + left +", "+scopeDefined); ComplexTypeInfo typeInfo = new ComplexTypeInfo(); typeInfo.baseComplexTypeInfo = baseTypeInfo; typeInfo.baseDataTypeValidator = baseTypeValidator; int derivedByInt = -1; if (derivedBy.length() > 0) { derivedByInt = parseComplexDerivedBy(derivedBy); } typeInfo.derivedBy = derivedByInt; typeInfo.scopeDefined = scopeDefined; typeInfo.contentSpecHandle = left; typeInfo.contentType = contentSpecType; typeInfo.datatypeValidator = simpleTypeValidator; typeInfo.blockSet = parseBlockSet(complexTypeDecl.getAttribute(SchemaSymbols.ATT_BLOCK)); typeInfo.finalSet = parseFinalSet(complexTypeDecl.getAttribute(SchemaSymbols.ATT_FINAL)); //add a template element to the grammar element decl pool. int typeNameIndex = fStringPool.addSymbol(typeName); int templateElementNameIndex = fStringPool.addSymbol("$"+typeName); typeInfo.templateElementIndex = fSchemaGrammar.addElementDecl(new QName(-1, templateElementNameIndex,typeNameIndex,fTargetNSURI), (fTargetNSURI==-1) ? -1 : fCurrentScope, scopeDefined, contentSpecType, left, -1, simpleTypeValidator); typeInfo.attlistHead = fSchemaGrammar.getFirstAttributeDeclIndex(typeInfo.templateElementIndex); // (attribute | attrGroupRef)* for (child = XUtil.getFirstChildElement(complexTypeDecl); child != null; child = XUtil.getNextSiblingElement(child)) { String childName = child.getNodeName(); if (childName.equals(SchemaSymbols.ELT_ATTRIBUTE)) { traverseAttributeDecl(child, typeInfo); } else if ( childName.equals(SchemaSymbols.ELT_ATTRIBUTEGROUP) ) { traverseAttributeGroupDecl(child,typeInfo); } } typeInfo.attlistHead = fSchemaGrammar.getFirstAttributeDeclIndex(typeInfo.templateElementIndex); // merge in base type's attribute decls if (baseTypeInfo != null && baseTypeInfo.attlistHead > -1 ) { int attDefIndex = baseTypeInfo.attlistHead; while ( attDefIndex > -1 ) { fSchemaGrammar.getAttributeDecl(attDefIndex, fTempAttributeDecl); attDefIndex = fSchemaGrammar.getNextAttributeDeclIndex(attDefIndex); // if found a duplicate, if it is derived by restriction. then skip the one from the base type if (fSchemaGrammar.getAttributeDeclIndex(typeInfo.templateElementIndex, fTempAttributeDecl.name) > -1) { if (derivedByRestriction) { continue; } } //REVISIT: // int enumeration = ???? fSchemaGrammar.addAttDef( typeInfo.templateElementIndex, fTempAttributeDecl.name, fTempAttributeDecl.type, -1, fTempAttributeDecl.defaultType, fTempAttributeDecl.defaultValue, fTempAttributeDecl.datatypeValidator); } } if (!typeName.startsWith("#")) { typeName = fTargetNSURIString + "," + typeName; } fComplexTypeRegistry.put(typeName,typeInfo); // before exit the complex type definition, restore the scope, mainly for nested Anonymous Types fCurrentScope = previousScope; typeNameIndex = fStringPool.addSymbol(typeName); return typeNameIndex; } // end of method: traverseComplexTypeDecl
1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/e29d9c00492309c702ceb8d99629b65aa00b50be/TraverseSchema.java/buggy/src/org/apache/xerces/validators/schema/TraverseSchema.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2621, 8290, 1988, 3711, 273, 638, 31, 2621, 8290, 1988, 3711, 273, 638, 31, 2621, 8290, 1988, 3711, 273, 638, 31, 2621, 8290, 1988, 3711, 273, 638, 31, 6015, 815, 1340, 8290, 1988, 3711, 273, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 2621, 8290, 1988, 3711, 273, 638, 31, 2621, 8290, 1988, 3711, 273, 638, 31, 2621, 8290, 1988, 3711, 273, 638, 31, 2621, 8290, 1988, 3711, 273, 638, 31, 6015, 815, 1340, 8290, 1988, 3711, 273, ...
private static String expect_header(String header, BufferedReader br) throws IOException {
private static String expect_header(String header, BufferedReader br) throws IOException {
private static String expect_header(String header, BufferedReader br) throws IOException { String s = br.readLine(); if (s == null) { throw new JarException("unexpected end of file"); } return expect_header(header, br, s); }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/7c463aa3bd840a934d101c434976bb7b25d5b975/Manifest.java/buggy/core/src/classpath/java/java/util/jar/Manifest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 514, 4489, 67, 3374, 12, 780, 1446, 16, 10633, 5186, 13, 1216, 1860, 288, 202, 202, 780, 272, 273, 5186, 18, 896, 1670, 5621, 202, 202, 430, 261, 87, 422, 446, 13, 288...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 514, 4489, 67, 3374, 12, 780, 1446, 16, 10633, 5186, 13, 1216, 1860, 288, 202, 202, 780, 272, 273, 5186, 18, 896, 1670, 5621, 202, 202, 430, 261, 87, 422, 446, 13, 288...
ContactListModel listModel = (ContactListModel) mainFrame .getTabbedPane().getContactListPanel().getContactList() .getModel();
ContactList contactList = mainFrame.getTabbedPane() .getContactListPanel().getContactList(); ContactListModel listModel = (ContactListModel) contactList.getModel();
public void actionPerformed(ActionEvent e) { JButton button = (JButton) e.getSource(); String buttonName = button.getName(); if (buttonName.equals("add")) { } else if (buttonName.equals("config")) { mainFrame.getConfigFrame().setCalculatedSize(); mainFrame.getConfigFrame().setVisible(true); } else if (buttonName.equals("search")) { ContactListModel listModel = (ContactListModel) mainFrame .getTabbedPane().getContactListPanel().getContactList() .getModel(); if (listModel.showOffline()) { listModel.setShowOffline(false); listModel.removeOfflineContacts(); } else { listModel.setShowOffline(true); listModel.addOfflineContacts(); } } else if (buttonName.equals("info")) { } }
27035 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27035/b24194cf5338db0536703b7dc8032aa685fb8cc0/QuickMenu.java/clean/src/net/java/sip/communicator/impl/gui/main/QuickMenu.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 26100, 12, 1803, 1133, 425, 13, 288, 3639, 28804, 3568, 273, 261, 46, 3616, 13, 425, 18, 588, 1830, 5621, 3639, 514, 3568, 461, 273, 3568, 18, 17994, 5621, 3639, 309, 261, 53...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 26100, 12, 1803, 1133, 425, 13, 288, 3639, 28804, 3568, 273, 261, 46, 3616, 13, 425, 18, 588, 1830, 5621, 3639, 514, 3568, 461, 273, 3568, 18, 17994, 5621, 3639, 309, 261, 53...
assertEquals("2.18.5", config.getInstallVersion());
assertEquals("2.18.6", config.getInstallVersion());
public void test218RDFProductConfig() throws Exception { RepositoryConfigurationFactory factory = new RepositoryConfigurationFactory(); TaskRepository repository = new TaskRepository(BugzillaCorePlugin.REPOSITORY_KIND, IBugzillaConstants.TEST_BUGZILLA_218_URL); RepositoryConfiguration config = factory.getConfiguration(repository.getUrl(), null, repository.getUserName(), repository.getPassword(), null); assertNotNull(config); assertEquals("2.18.5", config.getInstallVersion()); assertEquals(7, config.getStatusValues().size()); assertEquals(8, config.getResolutions().size()); assertEquals(8, config.getPlatforms().size()); assertEquals(36, config.getOSs().size()); assertEquals(5, config.getPriorities().size()); assertEquals(7, config.getSeverities().size()); assertEquals(1, config.getProducts().size()); assertEquals(4, config.getOpenStatusValues().size()); assertEquals(1, config.getComponents("TestProduct").size()); assertEquals(1, config.getVersions("TestProduct").size()); // assertEquals(1, config.getTargetMilestones("TestProduct").size()); }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/6bd3d3c8c0ed1224b2319033ca5fc052cd18033d/BugzillaConfigurationTest.java/buggy/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/BugzillaConfigurationTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 22, 2643, 30137, 4133, 809, 1435, 1216, 1185, 288, 202, 202, 3305, 1750, 1733, 3272, 273, 394, 6281, 1750, 1733, 5621, 202, 202, 2174, 3305, 3352, 273, 394, 3837, 330...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 22, 2643, 30137, 4133, 809, 1435, 1216, 1185, 288, 202, 202, 3305, 1750, 1733, 3272, 273, 394, 6281, 1750, 1733, 5621, 202, 202, 2174, 3305, 3352, 273, 394, 3837, 330...
Object[] listeners = _listenerList.getListenerList();
Object[] listeners = listenerList.getListenerList();
private void fireTargetAdded(TargetEvent targetEvent) { // Guaranteed to return a non-null array Object[] listeners = _listenerList.getListenerList(); for (int i = listeners.length - 2; i >= 0; i -= 2) { if (listeners[i] == TargetListener.class) { // Lazily create the event: ((TargetListener) listeners[i + 1]).targetAdded(targetEvent); } } }
7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/84b7ea2387dc21ed9c5495f125fdb6ebbc202c53/TabStyle.java/clean/src_new/org/argouml/uml/ui/TabStyle.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 4452, 2326, 8602, 12, 2326, 1133, 1018, 1133, 13, 288, 3639, 368, 6467, 30164, 358, 327, 279, 1661, 17, 2011, 526, 3639, 1033, 8526, 4679, 273, 2991, 682, 18, 588, 2223, 682, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4452, 2326, 8602, 12, 2326, 1133, 1018, 1133, 13, 288, 3639, 368, 6467, 30164, 358, 327, 279, 1661, 17, 2011, 526, 3639, 1033, 8526, 4679, 273, 2991, 682, 18, 588, 2223, 682, ...
protected void initFile(String id) throws FormatException, IOException { super.initFile(id); legacy = new LegacyZVIReader(); OLEParser parser = new OLEParser(id); parser.parse(0); Vector[] files = parser.getFiles(); headerData = new Hashtable(); pixelData = new Hashtable(); int largest = 0; int largestIndex = 0; int nextItem = 0; Vector itemNames = parser.getNames(); for (int i=0; i<files[0].size(); i++) { byte[] data = (byte[]) files[1].get(i); if (data.length > largest) largestIndex = i; String pathName = ((String) files[0].get(i)).trim(); pathName = DataTools.stripString(pathName); boolean isContents = pathName.endsWith("Contents"); boolean isImage = pathName.endsWith("Image"); try { if (((isContents && ((pathName.indexOf("Item") != -1) || pathName.indexOf("Image") != -1) && data.length > 6000)) || (data.length == dataLength)) { header = data; while ((dataLength != 0) && (data.length < dataLength) && isContents && ((pathName.indexOf("Item") != -1) || pathName.indexOf("Image") != -1)) { i++; data = (byte[]) files[1].get(i); if (data.length > largest) largestIndex = i; pathName = ((String) files[0].get(i)).trim(); pathName = DataTools.stripString(pathName); isContents = pathName.endsWith("Contents"); } int imageNum = 0; if (pathName.indexOf("Item") != -1) { String num = pathName.substring(pathName.lastIndexOf("Item") + 5, pathName.lastIndexOf(")")); imageNum = Integer.parseInt(num); } if (nextItem < itemNames.size()) { String num = ((String) itemNames.get(nextItem)).trim(); if (num.length() > 1) num = DataTools.stripString(num); int n = Integer.parseInt(num); // choose whether to use imageNum or n if (n != imageNum) { if (pixelData.containsKey(new Integer(imageNum))) { imageNum = n; } } if (pathName.indexOf("Item") != -1) { num = pathName.substring(0, pathName.lastIndexOf("Item")); while (pixelData.containsKey(new Integer(imageNum)) && (num.indexOf("Item") != -1)) { String s = num.substring(num.lastIndexOf("Item") + 5, num.lastIndexOf(")")); imageNum = Integer.parseInt(s); num = num.substring(0, num.lastIndexOf("Item")); } } // if we *still* don't find a valid key, give up and use // the legacy reader if (pixelData.containsKey(new Integer(imageNum))) { if (legacy.getImageCount(id) == 1) break; needLegacy = true; legacy.initFile(id); return; } nextItem++; } int byteCount = 2; byteCount += 4; // version field byteCount += 6; // type field byteCount += 2; int numBytes = DataTools.bytesToInt(header, byteCount, 2, true); byteCount += 2 + numBytes; byteCount += 2; imageWidth = DataTools.bytesToInt(header, byteCount, 4, true); byteCount += 6; imageHeight = DataTools.bytesToInt(header, byteCount, 4, true); byteCount += 4; byteCount += 6; // depth byteCount += 6; // pixel format byteCount += 6; // count byteCount += 2; bitsPerSample = DataTools.bytesToInt(header, byteCount, 4, true); byteCount += 4; numBytes = DataTools.bytesToInt(header, byteCount, 2, true); byteCount += 2 + numBytes; // plugin CLSID byteCount += 38; // not sure what this is for byteCount += 2; numBytes = DataTools.bytesToInt(header, byteCount, 4, true); byteCount += 4 + numBytes; // layers byteCount += 2; numBytes = DataTools.bytesToInt(header, byteCount, 4, true); byteCount += 4 + numBytes; // scaling byteCount += 2; numBytes = DataTools.bytesToInt(header, byteCount, 2, true); byteCount += 2 + numBytes; // root folder name byteCount += 2; numBytes = DataTools.bytesToInt(header, byteCount, 2, true); byteCount += 2 + numBytes; // display item name byteCount += 28; // streamed header data // get pixel data if (header.length > byteCount) { byte[] head = new byte[byteCount]; System.arraycopy(header, 0, head, 0, head.length); headerData.put(new Integer(imageNum), (Object) head); byte[] px = new byte[header.length - byteCount]; System.arraycopy(header, byteCount, px, 0, px.length); if (!pixelData.containsKey(new Integer(imageNum))) { shuffle = parser.shuffle(); // nasty special case...I pity the person who finds a bug in this if (shuffle > 0) { byte[] chunkOne = new byte[shuffle]; byte[] chunkTwo = new byte[parser.length() - shuffle + 11700]; System.arraycopy(px, 0, chunkOne, 0, chunkOne.length); System.arraycopy(px, chunkOne.length, chunkTwo, 0, chunkTwo.length); byte[] tct = new byte[chunkOne.length]; int bpp = bitsPerSample / 8; int mul = (int) (imageWidth - (imageWidth * 0.01)); mul *= bpp; mul += 2; for (int k=0; k<(chunkOne.length / (bpp*imageWidth)); k++) { System.arraycopy(chunkOne, k*bpp*imageWidth, tct, (k+1)*bpp*imageWidth - mul, mul); System.arraycopy(chunkOne, k*bpp*imageWidth+mul, tct, k*bpp*imageWidth, bpp*imageWidth - mul); } chunkOne = tct; byte[] tco = new byte[chunkTwo.length]; mul = (int) (imageWidth * 0.14); mul *= bpp; for (int k=0; k<(chunkTwo.length / (bpp*imageWidth)); k++) { System.arraycopy(chunkTwo, k*bpp*imageWidth, tco, (k+1)*bpp*imageWidth - mul, mul); System.arraycopy(chunkTwo, k*bpp*imageWidth+mul, tco, k*bpp*imageWidth, bpp*imageWidth - mul); } chunkTwo = tco; px = new byte[px.length]; System.arraycopy(chunkTwo, 0, px, 0, chunkTwo.length); System.arraycopy(chunkOne, 0, px, chunkTwo.length, chunkOne.length); // now we have to shift the whole array to the right by // 0.01 * width pixels mul = imageWidth - ((int) (imageWidth * 0.01)); mul *= bpp; byte[] tmp = new byte[px.length]; for (int k=0; k<imageHeight; k++) { System.arraycopy(px, k*bpp*imageWidth, tmp, (k+1)*bpp*imageWidth - mul, mul); System.arraycopy(px, k*bpp*imageWidth+mul, tmp, k*bpp*imageWidth, bpp*imageWidth - mul); } px = tmp; } pixelData.put(new Integer(imageNum), (Object) px); dataLength = px.length + head.length; nImages++; } } else break; } else if (isContents && isImage) { // we've found the header data header = data; int pointer = 14; int length = DataTools.bytesToInt(header, pointer, 2, true); pointer += 4 + length; imageWidth = DataTools.bytesToInt(header, pointer, 4, true); pointer += 6; imageHeight = DataTools.bytesToInt(header, pointer, 4, true); pointer += 6; pointer += 6; pixelFormat = DataTools.bytesToInt(header, pointer, 4, true); pointer += 6; switch (pixelFormat) { case 1: bytesPerPixel = 3; break; case 2: bytesPerPixel = 4; break; case 3: bytesPerPixel = 1; break; case 4: bytesPerPixel = 2; break; case 6: bytesPerPixel = 4; break; case 8: bytesPerPixel = 6; break; default: bytesPerPixel = 1; } if ((bytesPerPixel % 2) != 0) channels = 3; } else if (pathName.endsWith("Tags") && pathName.startsWith("Root Entry")) { // the main tags stream tags = data; } } catch (Exception e) { } } if (nImages == 0) { // HACK // just grab the largest file header = (byte[]) files[1].get(largestIndex); String pathName = (String) files[0].get(largestIndex); int imageNum = 0; if (pathName.indexOf("Item") != -1) { String num = pathName.substring(pathName.indexOf("Item") + 5, pathName.indexOf(")")); imageNum = Integer.parseInt(num); } int byteCount = 166; byteCount += 2; imageWidth = DataTools.bytesToInt(header, byteCount, 4, true); byteCount += 6; imageHeight = DataTools.bytesToInt(header, byteCount, 4, true); byteCount += 4; byteCount += 6; // depth byteCount += 6; // pixel format byteCount += 6; // count byteCount += 2; bytesPerPixel = DataTools.bytesToInt(header, byteCount, 4, true) / 8; byteCount += 4; int numBytes = DataTools.bytesToInt(header, byteCount, 2, true); byteCount += 2 + numBytes; // plugin CLSID byteCount += 38; // not sure what this is for byteCount += 2; numBytes = DataTools.bytesToInt(header, byteCount, 4, true); byteCount += 4 + numBytes; // layers byteCount += 2; numBytes = DataTools.bytesToInt(header, byteCount, 4, true); byteCount += 4 + numBytes; // scaling byteCount += 2; numBytes = DataTools.bytesToInt(header, byteCount, 2, true); byteCount += 2 + numBytes; // root folder name byteCount += 2; numBytes = DataTools.bytesToInt(header, byteCount, 2, true); byteCount += 2 + numBytes; // display item name byteCount += 28; // streamed header data // get pixel data if (header.length > byteCount) { byte[] head = new byte[byteCount]; System.arraycopy(header, 0, head, 0, head.length); headerData.put(new Integer(nImages), (Object) head); byte[] px = new byte[header.length - byteCount]; System.arraycopy(header, byteCount, px, 0, px.length); pixelData.put(new Integer(nImages), (Object) px); nImages++; } } initMetadata(); }
55415 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55415/f8fea5aec2de454fd84e68759019ac47d99be52a/ZeissZVIReader.java/buggy/loci/formats/ZeissZVIReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1208, 812, 12, 780, 612, 13, 1216, 4077, 503, 16, 1860, 288, 565, 2240, 18, 2738, 812, 12, 350, 1769, 565, 8866, 273, 394, 22781, 62, 4136, 2514, 5621, 4202, 531, 900, 2678, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 918, 1208, 812, 12, 780, 612, 13, 1216, 4077, 503, 16, 1860, 288, 565, 2240, 18, 2738, 812, 12, 350, 1769, 565, 8866, 273, 394, 22781, 62, 4136, 2514, 5621, 4202, 531, 900, 2678, ...
if (pList.size() == 0)
if (pListOldSize > 0 && pList.size() == 0)
private void checkAddParticipant(ParameterParser params, SessionState state) { // get the participants to be added int i; Vector pList = new Vector(); String invalidEmailInIdAccountString = ServerConfigurationService.getString("invalidEmailInIdAccountString", null); //accept noEmailInIdAccounts and/or emailInIdAccount account names String noEmailInIdAccounts = ""; String emailInIdAccounts = ""; //check that there is something with which to work noEmailInIdAccounts = StringUtil.trimToNull((params.getString("noEmailInIdAccount"))); emailInIdAccounts = StringUtil.trimToNull(params.getString("emailInIdAccount")); state.setAttribute("noEmailInIdAccountValue", noEmailInIdAccounts); state.setAttribute("emailInIdAccountValue", emailInIdAccounts); //if there is no uniquname or emailInIdAccount entered if (noEmailInIdAccounts == null && emailInIdAccounts == null) { addAlert(state, rb.getString("java.guest")); state.setAttribute(STATE_TEMPLATE_INDEX, "5"); return; } String at = "@"; if (noEmailInIdAccounts != null) { // adding noEmailInIdAccounts String[] noEmailInIdAccountArray = noEmailInIdAccounts.replaceAll(",","\r\n").split("\r\n"); for (i = 0; i < noEmailInIdAccountArray.length; i++) { String noEmailInIdAccount = StringUtil.trimToNull(noEmailInIdAccountArray[i]); //if there is some text, try to use it noEmailInIdAccount.replaceAll("[\t\r\n]",""); if(noEmailInIdAccount != null) { //automaticially add emailInIdAccount account Participant participant = new Participant(); try { User u = UserDirectoryService.getUserByEid(noEmailInIdAccount); participant.name = u.getDisplayName(); participant.uniqname = noEmailInIdAccount; pList.add(participant); } catch (UserNotDefinedException e) { addAlert(state, noEmailInIdAccount + " "+rb.getString("java.username")+" "); } } } } // noEmailInIdAccounts if (emailInIdAccounts != null) { String[] emailInIdAccountArray = emailInIdAccounts.split("\r\n"); for (i = 0; i < emailInIdAccountArray.length; i++) { String emailInIdAccount = emailInIdAccountArray[i]; //if there is some text, try to use it emailInIdAccount.replaceAll("[ \t\r\n]",""); //remove the trailing dots and empty space while (emailInIdAccount.endsWith(".") || emailInIdAccount.endsWith(" ")) { emailInIdAccount = emailInIdAccount.substring(0, emailInIdAccount.length() -1); } if(emailInIdAccount != null && emailInIdAccount.length() > 0) { String[] parts = emailInIdAccount.split(at); if(emailInIdAccount.indexOf(at) == -1 ) { // must be a valid email address addAlert(state, emailInIdAccount + " "+rb.getString("java.emailaddress")); } else if((parts.length != 2) || (parts[0].length() == 0)) { // must have both id and address part addAlert(state, emailInIdAccount + " "+rb.getString("java.notemailid")); } else if (!Validator.checkEmailLocal(parts[0])) { addAlert(state, emailInIdAccount + " "+rb.getString("java.emailaddress") + INVALID_EMAIL); } else if (invalidEmailInIdAccountString != null && emailInIdAccount.indexOf(invalidEmailInIdAccountString) != -1) { // wrong string inside emailInIdAccount id addAlert(state, emailInIdAccount + " "+rb.getString("java.emailaddress")+" "); } else { Participant participant = new Participant(); try { // if the emailInIdAccount user already exists User u = UserDirectoryService.getUserByEid(emailInIdAccount); participant.name = u.getDisplayName(); participant.uniqname = emailInIdAccount; pList.add(participant); } catch (UserNotDefinedException e) { // if the emailInIdAccount user is not in the system yet participant.name = emailInIdAccount; participant.uniqname = emailInIdAccount; // TODO: what would the UDS case this name to? -ggolden pList.add(participant); } } } // if } // } // emailInIdAccounts boolean same_role = true; if (params.getString("same_role") == null) { addAlert(state, rb.getString("java.roletype")+" "); } else { same_role = params.getString("same_role").equals("true")?true:false; state.setAttribute("form_same_role", new Boolean(same_role)); } if (state.getAttribute(STATE_MESSAGE) != null) { state.setAttribute(STATE_TEMPLATE_INDEX, "5"); } else { if (same_role) { state.setAttribute(STATE_TEMPLATE_INDEX, "19"); } else { state.setAttribute(STATE_TEMPLATE_INDEX, "20"); } } // remove duplicate or existing user from participant list pList=removeDuplicateParticipants(pList, state); pList=removeExistingParticipants(pList, state); state.setAttribute(STATE_ADD_PARTICIPANTS, pList); // if the add participant list is empty after above removal, stay in the current page if (pList.size() == 0) { state.setAttribute(STATE_TEMPLATE_INDEX, "5"); addAlert(state, rb.getString("java.guest")); } return; } // checkAddParticipant
54846 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54846/370edb864dc672ca629a84a9c00c3878a8a36b32/SiteAction.java/clean/site-manage-tool/tool/src/java/org/sakaiproject/site/tool/SiteAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 866, 986, 22540, 12, 1662, 2678, 859, 16, 3877, 1119, 919, 13, 202, 95, 202, 202, 759, 336, 326, 22346, 358, 506, 3096, 202, 202, 474, 277, 31, 202, 202, 5018, 293, 68...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 866, 986, 22540, 12, 1662, 2678, 859, 16, 3877, 1119, 919, 13, 202, 95, 202, 202, 759, 336, 326, 22346, 358, 506, 3096, 202, 202, 474, 277, 31, 202, 202, 5018, 293, 68...
dna.CacheSequence(query.getSpecies(), geneloc.getChr(), geneloc.getStart(), geneloc.getEnd());
dna.CacheSequence(species, geneloc.getChr(), geneloc.getStart(), geneloc.getEnd());
void writeSequences(Integer geneID) throws SequenceException { try { Hashtable geneatts = (Hashtable) geneiDs.get( geneID ); SequenceLocation geneloc = (SequenceLocation) geneatts.get(Geneloc); String assemblyout = (String) geneatts.get(Assembly); // cache the gene sequence dna.CacheSequence(query.getSpecies(), geneloc.getChr(), geneloc.getStart(), geneloc.getEnd()); TreeMap exons = (TreeMap) geneatts.get(Exons); for (Iterator exonIter = exons.keySet().iterator(); exonIter.hasNext();) { Hashtable exonatts = (Hashtable) exons.get(exonIter.next()); SequenceLocation exonloc = (SequenceLocation) exonatts.get(Location); // write the header, starting with the displayID osr.write((String) exonatts.get(DisplayID)); String strandout = exonloc.getStrand() > 0 ? "forward" : "revearse"; osr.write(separator+"strand="+strandout+separator+"chr="+exonloc.getChr()+separator+"assembly="+assemblyout); osr.flush(); for (int j = 0, n = fields.size(); j < n; j++) { osr.write(separator); String field = (String) fields.get(j); if (exonatts.containsKey(field)) { List values = (ArrayList) exonatts.get(field); if (values.size() > 1) osr.write(field+" in "); else osr.write(field+"="); for (int vi = 0; vi < values.size(); vi++) { if (vi > 0) osr.write(","); osr.write((String) values.get(vi)); } } else osr.write(field+"= "); osr.flush(); } // write the description osr.write(separator+(String) exonatts.get(Description)); osr.write(separator); osr.flush(); //extend flanking sequence if necessary int lflank = query.getSequenceDescription().getLeftFlank(); int rflank = query.getSequenceDescription().getRightFlank(); if (lflank > 0) exonloc = exonloc.extendLeftFlank(lflank); if (rflank > 0) exonloc = exonloc.extendRightFlank(rflank); // write out the sequence if (exonloc.getStrand() < 0) osr.write( SequenceUtil.reverseComplement( dna.getSequence(query.getSpecies(), exonloc.getChr(), exonloc.getStart(), exonloc.getEnd()) ) ); else osr.write( dna.getSequence(query.getSpecies(), exonloc.getChr(), exonloc.getStart(), exonloc.getEnd()) ); osr.flush(); osr.write("\n"); osr.flush(); } } catch (SequenceException e) { logger.warn(e.getMessage()); throw e; } catch (IOException e) { logger.warn("Couldnt write to OutputStream\n"+e.getMessage()); throw new SequenceException(e); } }
2000 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2000/16dfde49e7b6eb326a73d7c831e9910a2b1a3f42/GeneExonSeqQueryRunner.java/clean/src/java/org/ensembl/mart/explorer/GeneExonSeqQueryRunner.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 225, 918, 1045, 21710, 12, 4522, 7529, 734, 13, 1216, 8370, 503, 288, 9506, 225, 775, 288, 6862, 225, 18559, 7529, 270, 3428, 273, 261, 5582, 14544, 13, 7529, 77, 22831, 18, 588, 12, 7...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1875, 225, 918, 1045, 21710, 12, 4522, 7529, 734, 13, 1216, 8370, 503, 288, 9506, 225, 775, 288, 6862, 225, 18559, 7529, 270, 3428, 273, 261, 5582, 14544, 13, 7529, 77, 22831, 18, 588, 12, 7...
Object obj = filelist.getSelectedValue();
Object obj = new String(parentPath + entry.getText());
public void actionPerformed(ActionEvent e) { Object obj = filelist.getSelectedValue(); if (obj != null) { File f = filechooser.getFileSystemView().createFileObject( obj.toString()); if (filechooser.isTraversable(f) && filechooser.getFileSelectionMode() == JFileChooser.FILES_ONLY) filechooser.setCurrentDirectory(f); else { filechooser.setSelectedFile(f); filechooser.approveSelection(); closeDialog(); } } }
47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/312ed3a41bc121830464ffbc954ac1e4b19d48c2/BasicFileChooserUI.java/buggy/javax/swing/plaf/basic/BasicFileChooserUI.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 26100, 12, 1803, 1133, 425, 13, 565, 288, 1377, 1033, 1081, 273, 394, 514, 12, 2938, 743, 397, 1241, 18, 588, 1528, 10663, 1377, 309, 261, 2603, 480, 446, 13, 3639, 288, 1850...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 26100, 12, 1803, 1133, 425, 13, 565, 288, 1377, 1033, 1081, 273, 394, 514, 12, 2938, 743, 397, 1241, 18, 588, 1528, 10663, 1377, 309, 261, 2603, 480, 446, 13, 3639, 288, 1850...
_loop246:
_loop251:
public final void prolog(AST _t, PathExpr path ) throws RecognitionException, PermissionDeniedException,EXistException,XPathException { AST prolog_AST_in = (AST)_t; AST v = null; AST prefix = null; AST uri = null; AST defu = null; AST deff = null; AST qname = null; Expression step = null; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case VERSION_DECL: { AST __t238 = _t; v = _t==ASTNULL ? null :(AST)_t; match(_t,VERSION_DECL); _t = _t.getFirstChild(); if (!v.getText().equals("1.0")) throw new XPathException("Wrong XQuery version: require 1.0"); _t = __t238; _t = _t.getNextSibling(); break; } case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case NAMESPACE_DECL: case DEF_NAMESPACE_DECL: case DEF_FUNCTION_NS_DECL: case GLOBAL_VAR: case FUNCTION_DECL: case BEFORE: case AFTER: case NCNAME: case STRING_LITERAL: case EQ: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_some: case LITERAL_every: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_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 SELF: case XML_COMMENT: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 120: case 121: case LITERAL_parent: case LITERAL_ancestor: case 124: case 125: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case XML_PI: { break; } default: { throw new NoViableAltException(_t); } } } { _loop246: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NAMESPACE_DECL: { AST __t240 = _t; prefix = _t==ASTNULL ? null :(AST)_t; match(_t,NAMESPACE_DECL); _t = _t.getFirstChild(); uri = (AST)_t; match(_t,STRING_LITERAL); _t = _t.getNextSibling(); context.declareNamespace(prefix.getText(), uri.getText()); _t = __t240; _t = _t.getNextSibling(); break; } case DEF_NAMESPACE_DECL: { AST __t241 = _t; AST tmp31_AST_in = (AST)_t; match(_t,DEF_NAMESPACE_DECL); _t = _t.getFirstChild(); defu = (AST)_t; match(_t,STRING_LITERAL); _t = _t.getNextSibling(); context.declareNamespace("", defu.getText()); _t = __t241; _t = _t.getNextSibling(); break; } case DEF_FUNCTION_NS_DECL: { AST __t242 = _t; AST tmp32_AST_in = (AST)_t; match(_t,DEF_FUNCTION_NS_DECL); _t = _t.getFirstChild(); deff = (AST)_t; match(_t,STRING_LITERAL); _t = _t.getNextSibling(); context.setDefaultFunctionNamespace(deff.getText()); _t = __t242; _t = _t.getNextSibling(); break; } case GLOBAL_VAR: { AST __t243 = _t; qname = _t==ASTNULL ? null :(AST)_t; match(_t,GLOBAL_VAR); _t = _t.getFirstChild(); PathExpr enclosed= new PathExpr(context); SequenceType type= null; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LITERAL_as: { AST __t245 = _t; AST tmp33_AST_in = (AST)_t; match(_t,LITERAL_as); _t = _t.getFirstChild(); type= new SequenceType(); sequenceType(_t,type); _t = _retTree; _t = __t245; _t = _t.getNextSibling(); break; } case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case BEFORE: case AFTER: case NCNAME: case STRING_LITERAL: case EQ: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_some: case LITERAL_every: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_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 SELF: case XML_COMMENT: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_attribute: case LITERAL_descendant: case 120: case 121: case LITERAL_parent: case LITERAL_ancestor: case 124: case 125: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case XML_PI: { break; } default: { throw new NoViableAltException(_t); } } } step=expr(_t,enclosed); _t = _retTree; VariableDeclaration decl= new VariableDeclaration(context, qname.getText(), enclosed); decl.setSequenceType(type); path.add(decl); _t = __t243; _t = _t.getNextSibling(); break; } case FUNCTION_DECL: { functionDecl(_t,path); _t = _retTree; break; } default: { break _loop246; } } } while (true); } _retTree = _t; }
2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/1d6298911c93c664b283d6052b53ef5b8e0b20cb/XPathTreeParser2.java/clean/src/org/exist/parser/XPathTreeParser2.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 450, 1330, 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, 450, 13...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 450, 1330, 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, 450, 13...