rem stringlengths 1 226k | add stringlengths 0 227k | context stringlengths 6 326k | meta stringlengths 143 403 | input_ids listlengths 256 256 | attention_mask listlengths 256 256 | labels listlengths 128 128 |
|---|---|---|---|---|---|---|
if (encoding != null && encoding.indexOf("gzip") != -1) | if (encoding != null && encoding.toLowerCase().indexOf("gzip") != -1) | void uncompressContent (Reply reply) throws IOException { if ("text/html".equals(reply.getHeaderField("Content-type"))) { String encoding = reply.getHeaderField("Content-Encoding"); if (encoding != null && encoding.indexOf("gzip") != -1) { // System.out.println ("gzipped: " + reply.getRequest ().getURL ()); //DEBUG reply.removeHeaderField("Content-Encoding"); InputStream gzipIn = new GZIPInputStream(reply.getContent ()); /* fix the Content-length */ ByteArrayOutputStream buffer = new ByteArrayOutputStream(); copy(gzipIn, buffer, -1, false); // remember the old content length String oldContentLength = reply.getHeaderField("Content-length"); if (oldContentLength != null) { reply.setHeaderField(Reply.GzipContentLengthAttribute, oldContentLength); } reply.setHeaderField("Content-length", buffer.size()); gzipIn = new ByteArrayInputStream(buffer.toByteArray()); reply.setContent(gzipIn); } } } | 1353 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1353/268b49b506c57b63feb9b9233e331dece7d68b4d/Handler.java/clean/src/org/doit/muffin/Handler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
12704,
1028,
1350,
261,
7817,
4332,
13,
565,
1216,
1860,
288,
3639,
309,
7566,
955,
19,
2620,
9654,
14963,
12,
10629,
18,
588,
1864,
974,
2932,
1350,
17,
723,
6,
20349,
3639,
288,
5411,
514,
2688,
273,
4332,
18,
588,
1864,
974,
2932,
1350,
17,
4705,
8863,
5411,
309,
261,
5999,
480,
446,
597,
2688,
18,
869,
5630,
7675,
31806,
2932,
17380,
7923,
480,
300,
21,
13,
5411,
288,
7734,
368,
2332,
18,
659,
18,
8222,
7566,
17380,
1845,
30,
315,
397,
4332,
18,
588,
691,
1832,
18,
588,
1785,
1832,
1769,
368,
9394,
7734,
4332,
18,
4479,
1864,
974,
2932,
1350,
17,
4705,
8863,
7734,
5037,
10331,
382,
273,
394,
24013,
4348,
12,
10629,
18,
588,
1350,
1832,
1769,
7734,
1748,
2917,
326,
3697,
17,
2469,
1195,
7734,
11559,
1613,
273,
394,
11559,
5621,
7734,
1610,
12,
17380,
382,
16,
1613,
16,
300,
21,
16,
629,
1769,
7734,
368,
11586,
326,
1592,
913,
769,
7734,
514,
1592,
1350,
1782,
273,
4332,
18,
588,
1864,
974,
2932,
1350,
17,
2469,
8863,
7734,
309,
261,
1673,
1350,
1782,
480,
446,
13,
288,
10792,
4332,
18,
542,
1864,
974,
12,
7817,
18,
27825,
1350,
1782,
1499,
16,
1592,
1350,
1782,
1769,
7734,
289,
7734,
4332,
18,
542,
1864,
974,
2932,
1350,
17,
2469,
3113,
1613,
18,
1467,
10663,
7734,
10331,
382,
273,
394,
16180,
12,
4106,
18,
869,
8826,
10663,
7734,
4332,
18,
542,
1350,
12,
17380,
382,
1769,
5411,
289,
3639,
289,
565,
289,
2,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
12704,
1028,
1350,
261,
7817,
4332,
13,
565,
1216,
1860,
288,
3639,
309,
7566,
955,
19,
2620,
9654,
14963,
12,
10629,
18,
588,
1864,
974,
2932,
1350,
17,
723,
6,
20349,
3639,
288,
5411,
514,
2688,
273,
4332,
18,
588,
1864,
974,
2932,
1350,
17,
4705,
8863,
5411,
309,
261,
5999,
480,
446,
597,
2688,
18,
869,
5630,
7675,
31806,
2932,
17380,
7923,
480,
300,
21,
13,
5411,
288,
7734,
368,
2332,
18,
659,
18,
8222,
7566,
17380,
1845,
30,
315,
397,
4332,
18,
588,
691,
1832,
18,
588,
1785,
1832,
1769,
368,
9394,
7734,
4332,
18,
4479,
1864,
974,
2932,
1350,
17,
4705,
8863,
7734,
5037,
10331,
382,
273,
394,
24013,
4348,
12,
10629,
18,
588,
2
] |
case 364 : if (DEBUG) { System.out.println("DimWithOrWithOutExpr ::= LBRACKET RBRACKET"); } | case 365 : if (DEBUG) { System.out.println("DimWithOrWithOutExpr ::= LBRACKET RBRACKET"); } | protected void consumeRule(int act) { switch ( act ) { case 29 : if (DEBUG) { System.out.println("Type ::= PrimitiveType"); } //$NON-NLS-1$ consumePrimitiveType(); break; case 43 : if (DEBUG) { System.out.println("ReferenceType ::= ClassOrInterfaceType"); } //$NON-NLS-1$ consumeReferenceType(); break; case 47 : if (DEBUG) { System.out.println("ClassOrInterface ::= Name"); } //$NON-NLS-1$ consumeClassOrInterfaceName(); break; case 48 : if (DEBUG) { System.out.println("ClassOrInterface ::= GenericType DOT Name"); } //$NON-NLS-1$ consumeClassOrInterface(); break; case 49 : if (DEBUG) { System.out.println("GenericType ::= ClassOrInterface TypeArguments"); } //$NON-NLS-1$ consumeGenericType(); break; case 50 : if (DEBUG) { System.out.println("ArrayTypeWithTypeArgumentsName ::= GenericType DOT Name"); } //$NON-NLS-1$ consumeArrayTypeWithTypeArgumentsName(); break; case 51 : if (DEBUG) { System.out.println("ArrayType ::= PrimitiveType Dims"); } //$NON-NLS-1$ consumePrimitiveArrayType(); break; case 52 : if (DEBUG) { System.out.println("ArrayType ::= Name Dims"); } //$NON-NLS-1$ consumeNameArrayType(); break; case 53 : if (DEBUG) { System.out.println("ArrayType ::= ArrayTypeWithTypeArgumentsName Dims"); } //$NON-NLS-1$ consumeGenericTypeNameArrayType(); break; case 54 : if (DEBUG) { System.out.println("ArrayType ::= GenericType Dims"); } //$NON-NLS-1$ consumeGenericTypeArrayType(); break; case 59 : if (DEBUG) { System.out.println("QualifiedName ::= Name DOT SimpleName"); } //$NON-NLS-1$ consumeQualifiedName(); break; case 60 : if (DEBUG) { System.out.println("CompilationUnit ::= EnterCompilationUnit..."); } //$NON-NLS-1$ consumeCompilationUnit(); break; case 61 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= PackageDeclaration"); } //$NON-NLS-1$ consumeInternalCompilationUnit(); break; case 62 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= PackageDeclaration..."); } //$NON-NLS-1$ consumeInternalCompilationUnit(); break; case 63 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= PackageDeclaration..."); } //$NON-NLS-1$ consumeInternalCompilationUnitWithTypes(); break; case 64 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= PackageDeclaration..."); } //$NON-NLS-1$ consumeInternalCompilationUnitWithTypes(); break; case 65 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= ImportDeclarations..."); } //$NON-NLS-1$ consumeInternalCompilationUnit(); break; case 66 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= TypeDeclarations"); } //$NON-NLS-1$ consumeInternalCompilationUnitWithTypes(); break; case 67 : if (DEBUG) { System.out.println("InternalCompilationUnit ::= ImportDeclarations..."); } //$NON-NLS-1$ consumeInternalCompilationUnitWithTypes(); break; case 68 : if (DEBUG) { System.out.println("InternalCompilationUnit ::="); } //$NON-NLS-1$ consumeEmptyInternalCompilationUnit(); break; case 69 : if (DEBUG) { System.out.println("ReduceImports ::="); } //$NON-NLS-1$ consumeReduceImports(); break; case 70 : if (DEBUG) { System.out.println("EnterCompilationUnit ::="); } //$NON-NLS-1$ consumeEnterCompilationUnit(); break; case 86 : if (DEBUG) { System.out.println("CatchHeader ::= catch LPAREN FormalParameter RPAREN..."); } //$NON-NLS-1$ consumeCatchHeader(); break; case 88 : if (DEBUG) { System.out.println("ImportDeclarations ::= ImportDeclarations..."); } //$NON-NLS-1$ consumeImportDeclarations(); break; case 90 : if (DEBUG) { System.out.println("TypeDeclarations ::= TypeDeclarations TypeDeclaration"); } //$NON-NLS-1$ consumeTypeDeclarations(); break; case 91 : if (DEBUG) { System.out.println("PackageDeclaration ::= PackageDeclarationName SEMICOLON"); } //$NON-NLS-1$ consumePackageDeclaration(); break; case 92 : if (DEBUG) { System.out.println("PackageDeclarationName ::= Modifiers package..."); } //$NON-NLS-1$ consumePackageDeclarationNameWithModifiers(); break; case 93 : if (DEBUG) { System.out.println("PackageDeclarationName ::= PackageComment package Name"); } //$NON-NLS-1$ consumePackageDeclarationName(); break; case 94 : if (DEBUG) { System.out.println("PackageComment ::="); } //$NON-NLS-1$ consumePackageComment(); break; case 99 : if (DEBUG) { System.out.println("SingleTypeImportDeclaration ::=..."); } //$NON-NLS-1$ consumeImportDeclaration(); break; case 100 : if (DEBUG) { System.out.println("SingleTypeImportDeclarationName ::= import Name"); } //$NON-NLS-1$ consumeSingleTypeImportDeclarationName(); break; case 101 : if (DEBUG) { System.out.println("TypeImportOnDemandDeclaration ::=..."); } //$NON-NLS-1$ consumeImportDeclaration(); break; case 102 : if (DEBUG) { System.out.println("TypeImportOnDemandDeclarationName ::= import Name DOT..."); } //$NON-NLS-1$ consumeTypeImportOnDemandDeclarationName(); break; case 105 : if (DEBUG) { System.out.println("TypeDeclaration ::= SEMICOLON"); } //$NON-NLS-1$ consumeEmptyTypeDeclaration(); break; case 109 : if (DEBUG) { System.out.println("Modifiers ::= Modifiers Modifier"); } //$NON-NLS-1$ consumeModifiers2(); break; case 121 : if (DEBUG) { System.out.println("Modifier ::= Annotation"); } //$NON-NLS-1$ consumeAnnotationAsModifier(); break; case 122 : if (DEBUG) { System.out.println("ClassDeclaration ::= ClassHeader ClassBody"); } //$NON-NLS-1$ consumeClassDeclaration(); break; case 123 : if (DEBUG) { System.out.println("ClassHeader ::= ClassHeaderName ClassHeaderExtendsopt..."); } //$NON-NLS-1$ consumeClassHeader(); break; case 124 : if (DEBUG) { System.out.println("ClassHeaderName ::= ClassHeaderName1 TypeParameters"); } //$NON-NLS-1$ consumeTypeHeaderNameWithTypeParameters(); break; case 126 : if (DEBUG) { System.out.println("ClassHeaderName1 ::= Modifiersopt class Identifier"); } //$NON-NLS-1$ consumeClassHeaderName1(); break; case 127 : if (DEBUG) { System.out.println("ClassHeaderExtends ::= extends ClassType"); } //$NON-NLS-1$ consumeClassHeaderExtends(); break; case 128 : if (DEBUG) { System.out.println("ClassHeaderImplements ::= implements InterfaceTypeList"); } //$NON-NLS-1$ consumeClassHeaderImplements(); break; case 130 : if (DEBUG) { System.out.println("InterfaceTypeList ::= InterfaceTypeList COMMA..."); } //$NON-NLS-1$ consumeInterfaceTypeList(); break; case 131 : if (DEBUG) { System.out.println("InterfaceType ::= ClassOrInterfaceType"); } //$NON-NLS-1$ consumeInterfaceType(); break; case 134 : if (DEBUG) { System.out.println("ClassBodyDeclarations ::= ClassBodyDeclarations..."); } //$NON-NLS-1$ consumeClassBodyDeclarations(); break; case 138 : if (DEBUG) { System.out.println("ClassBodyDeclaration ::= Diet NestedMethod Block"); } //$NON-NLS-1$ consumeClassBodyDeclaration(); break; case 139 : if (DEBUG) { System.out.println("Diet ::="); } //$NON-NLS-1$ consumeDiet(); break; case 140 : if (DEBUG) { System.out.println("Initializer ::= Diet NestedMethod Block"); } //$NON-NLS-1$ consumeClassBodyDeclaration(); break; case 147 : if (DEBUG) { System.out.println("ClassMemberDeclaration ::= SEMICOLON"); } //$NON-NLS-1$ consumeEmptyClassMemberDeclaration(); break; case 150 : if (DEBUG) { System.out.println("FieldDeclaration ::= Modifiersopt Type..."); } //$NON-NLS-1$ consumeFieldDeclaration(); break; case 152 : if (DEBUG) { System.out.println("VariableDeclarators ::= VariableDeclarators COMMA..."); } //$NON-NLS-1$ consumeVariableDeclarators(); break; case 155 : if (DEBUG) { System.out.println("EnterVariable ::="); } //$NON-NLS-1$ consumeEnterVariable(); break; case 156 : if (DEBUG) { System.out.println("ExitVariableWithInitialization ::="); } //$NON-NLS-1$ consumeExitVariableWithInitialization(); break; case 157 : if (DEBUG) { System.out.println("ExitVariableWithoutInitialization ::="); } //$NON-NLS-1$ consumeExitVariableWithoutInitialization(); break; case 158 : if (DEBUG) { System.out.println("ForceNoDiet ::="); } //$NON-NLS-1$ consumeForceNoDiet(); break; case 159 : if (DEBUG) { System.out.println("RestoreDiet ::="); } //$NON-NLS-1$ consumeRestoreDiet(); break; case 164 : if (DEBUG) { System.out.println("MethodDeclaration ::= MethodHeader MethodBody"); } //$NON-NLS-1$ // set to true to consume a method with a body consumeMethodDeclaration(true); break; case 165 : if (DEBUG) { System.out.println("AbstractMethodDeclaration ::= MethodHeader SEMICOLON"); } //$NON-NLS-1$ // set to false to consume a method without body consumeMethodDeclaration(false); break; case 166 : if (DEBUG) { System.out.println("MethodHeader ::= MethodHeaderName FormalParameterListopt"); } //$NON-NLS-1$ consumeMethodHeader(); break; case 167 : if (DEBUG) { System.out.println("MethodHeaderName ::= Modifiersopt TypeParameters Type..."); } //$NON-NLS-1$ consumeMethodHeaderNameWithTypeParameters(false); break; case 168 : if (DEBUG) { System.out.println("MethodHeaderName ::= Modifiersopt Type Identifier LPAREN"); } //$NON-NLS-1$ consumeMethodHeaderName(false); break; case 169 : if (DEBUG) { System.out.println("MethodHeaderRightParen ::= RPAREN"); } //$NON-NLS-1$ consumeMethodHeaderRightParen(); break; case 170 : if (DEBUG) { System.out.println("MethodHeaderExtendedDims ::= Dimsopt"); } //$NON-NLS-1$ consumeMethodHeaderExtendedDims(); break; case 171 : if (DEBUG) { System.out.println("MethodHeaderThrowsClause ::= throws ClassTypeList"); } //$NON-NLS-1$ consumeMethodHeaderThrowsClause(); break; case 172 : if (DEBUG) { System.out.println("ConstructorHeader ::= ConstructorHeaderName..."); } //$NON-NLS-1$ consumeConstructorHeader(); break; case 173 : if (DEBUG) { System.out.println("ConstructorHeaderName ::= Modifiersopt TypeParameters..."); } //$NON-NLS-1$ consumeConstructorHeaderNameWithTypeParameters(); break; case 174 : if (DEBUG) { System.out.println("ConstructorHeaderName ::= Modifiersopt Identifier LPAREN"); } //$NON-NLS-1$ consumeConstructorHeaderName(); break; case 176 : if (DEBUG) { System.out.println("FormalParameterList ::= FormalParameterList COMMA..."); } //$NON-NLS-1$ consumeFormalParameterList(); break; case 177 : if (DEBUG) { System.out.println("FormalParameter ::= Modifiersopt Type..."); } //$NON-NLS-1$ consumeFormalParameter(false); break; case 178 : if (DEBUG) { System.out.println("FormalParameter ::= Modifiersopt Type ELLIPSIS..."); } //$NON-NLS-1$ consumeFormalParameter(true); break; case 180 : if (DEBUG) { System.out.println("ClassTypeList ::= ClassTypeList COMMA ClassTypeElt"); } //$NON-NLS-1$ consumeClassTypeList(); break; case 181 : if (DEBUG) { System.out.println("ClassTypeElt ::= ClassType"); } //$NON-NLS-1$ consumeClassTypeElt(); break; case 182 : if (DEBUG) { System.out.println("MethodBody ::= NestedMethod LBRACE BlockStatementsopt..."); } //$NON-NLS-1$ consumeMethodBody(); break; case 183 : if (DEBUG) { System.out.println("NestedMethod ::="); } //$NON-NLS-1$ consumeNestedMethod(); break; case 184 : if (DEBUG) { System.out.println("StaticInitializer ::= StaticOnly Block"); } //$NON-NLS-1$ consumeStaticInitializer(); break; case 185 : if (DEBUG) { System.out.println("StaticOnly ::= static"); } //$NON-NLS-1$ consumeStaticOnly(); break; case 186 : if (DEBUG) { System.out.println("ConstructorDeclaration ::= ConstructorHeader MethodBody"); } //$NON-NLS-1$ consumeConstructorDeclaration() ; break; case 187 : if (DEBUG) { System.out.println("ConstructorDeclaration ::= ConstructorHeader SEMICOLON"); } //$NON-NLS-1$ consumeInvalidConstructorDeclaration() ; break; case 188 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= this LPAREN..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(0, THIS_CALL); break; case 189 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= OnlyTypeArguments this"); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(0,THIS_CALL); break; case 190 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= super LPAREN..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(0,SUPER_CALL); break; case 191 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= OnlyTypeArguments..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(0,SUPER_CALL); break; case 192 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Primary DOT super..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(1, SUPER_CALL); break; case 193 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Primary DOT..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(1, SUPER_CALL); break; case 194 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Name DOT super LPAREN"); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(2, SUPER_CALL); break; case 195 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Name DOT..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(2, SUPER_CALL); break; case 196 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Primary DOT this..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(1, THIS_CALL); break; case 197 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Primary DOT..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(1, THIS_CALL); break; case 198 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Name DOT this LPAREN"); } //$NON-NLS-1$ consumeExplicitConstructorInvocation(2, THIS_CALL); break; case 199 : if (DEBUG) { System.out.println("ExplicitConstructorInvocation ::= Name DOT..."); } //$NON-NLS-1$ consumeExplicitConstructorInvocationWithTypeArguments(2, THIS_CALL); break; case 200 : if (DEBUG) { System.out.println("InterfaceDeclaration ::= InterfaceHeader InterfaceBody"); } //$NON-NLS-1$ consumeInterfaceDeclaration(); break; case 201 : if (DEBUG) { System.out.println("InterfaceHeader ::= InterfaceHeaderName..."); } //$NON-NLS-1$ consumeInterfaceHeader(); break; case 202 : if (DEBUG) { System.out.println("InterfaceHeaderName ::= InterfaceHeaderName1..."); } //$NON-NLS-1$ consumeTypeHeaderNameWithTypeParameters(); break; case 204 : if (DEBUG) { System.out.println("InterfaceHeaderName1 ::= Modifiersopt interface..."); } //$NON-NLS-1$ consumeInterfaceHeaderName1(); break; case 205 : if (DEBUG) { System.out.println("InterfaceHeaderExtends ::= extends InterfaceTypeList"); } //$NON-NLS-1$ consumeInterfaceHeaderExtends(); break; case 208 : if (DEBUG) { System.out.println("InterfaceMemberDeclarations ::=..."); } //$NON-NLS-1$ consumeInterfaceMemberDeclarations(); break; case 209 : if (DEBUG) { System.out.println("InterfaceMemberDeclaration ::= SEMICOLON"); } //$NON-NLS-1$ consumeEmptyInterfaceMemberDeclaration(); break; case 211 : if (DEBUG) { System.out.println("InterfaceMemberDeclaration ::= MethodHeader MethodBody"); } //$NON-NLS-1$ consumeInvalidMethodDeclaration(); break; case 212 : if (DEBUG) { System.out.println("InvalidConstructorDeclaration ::= ConstructorHeader..."); } //$NON-NLS-1$ consumeInvalidConstructorDeclaration(true); break; case 213 : if (DEBUG) { System.out.println("InvalidConstructorDeclaration ::= ConstructorHeader..."); } //$NON-NLS-1$ consumeInvalidConstructorDeclaration(false); break; case 221 : if (DEBUG) { System.out.println("PushLeftBrace ::="); } //$NON-NLS-1$ consumePushLeftBrace(); break; case 222 : if (DEBUG) { System.out.println("ArrayInitializer ::= LBRACE PushLeftBrace ,opt RBRACE"); } //$NON-NLS-1$ consumeEmptyArrayInitializer(); break; case 223 : if (DEBUG) { System.out.println("ArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeArrayInitializer(); break; case 224 : if (DEBUG) { System.out.println("ArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeArrayInitializer(); break; case 226 : if (DEBUG) { System.out.println("VariableInitializers ::= VariableInitializers COMMA..."); } //$NON-NLS-1$ consumeVariableInitializers(); break; case 227 : if (DEBUG) { System.out.println("Block ::= OpenBlock LBRACE BlockStatementsopt RBRACE"); } //$NON-NLS-1$ consumeBlock(); break; case 228 : if (DEBUG) { System.out.println("OpenBlock ::="); } //$NON-NLS-1$ consumeOpenBlock() ; break; case 230 : if (DEBUG) { System.out.println("BlockStatements ::= BlockStatements BlockStatement"); } //$NON-NLS-1$ consumeBlockStatements() ; break; case 234 : if (DEBUG) { System.out.println("BlockStatement ::= InterfaceDeclaration"); } //$NON-NLS-1$ consumeInvalidInterfaceDeclaration(); break; case 235 : if (DEBUG) { System.out.println("BlockStatement ::= AnnotationTypeDeclaration"); } //$NON-NLS-1$ consumeInvalidAnnotationTypeDeclaration(); break; case 236 : if (DEBUG) { System.out.println("BlockStatement ::= EnumDeclaration"); } //$NON-NLS-1$ consumeInvalidEnumDeclaration(); break; case 237 : if (DEBUG) { System.out.println("LocalVariableDeclarationStatement ::=..."); } //$NON-NLS-1$ consumeLocalVariableDeclarationStatement(); break; case 238 : if (DEBUG) { System.out.println("LocalVariableDeclaration ::= Type PushModifiers..."); } //$NON-NLS-1$ consumeLocalVariableDeclaration(); break; case 239 : if (DEBUG) { System.out.println("LocalVariableDeclaration ::= Modifiers Type..."); } //$NON-NLS-1$ consumeLocalVariableDeclaration(); break; case 240 : if (DEBUG) { System.out.println("PushModifiers ::="); } //$NON-NLS-1$ consumePushModifiers(); break; case 241 : if (DEBUG) { System.out.println("PushModifiersForHeader ::="); } //$NON-NLS-1$ consumePushModifiersForHeader(); break; case 242 : if (DEBUG) { System.out.println("PushRealModifiers ::="); } //$NON-NLS-1$ consumePushRealModifiers(); break; case 268 : if (DEBUG) { System.out.println("EmptyStatement ::= SEMICOLON"); } //$NON-NLS-1$ consumeEmptyStatement(); break; case 269 : if (DEBUG) { System.out.println("LabeledStatement ::= Identifier COLON Statement"); } //$NON-NLS-1$ consumeStatementLabel() ; break; case 270 : if (DEBUG) { System.out.println("LabeledStatementNoShortIf ::= Identifier COLON..."); } //$NON-NLS-1$ consumeStatementLabel() ; break; case 271 : if (DEBUG) { System.out.println("ExpressionStatement ::= StatementExpression SEMICOLON"); } //$NON-NLS-1$ consumeExpressionStatement(); break; case 280 : if (DEBUG) { System.out.println("IfThenStatement ::= if LPAREN Expression RPAREN..."); } //$NON-NLS-1$ consumeStatementIfNoElse(); break; case 281 : if (DEBUG) { System.out.println("IfThenElseStatement ::= if LPAREN Expression RPAREN..."); } //$NON-NLS-1$ consumeStatementIfWithElse(); break; case 282 : if (DEBUG) { System.out.println("IfThenElseStatementNoShortIf ::= if LPAREN Expression..."); } //$NON-NLS-1$ consumeStatementIfWithElse(); break; case 283 : if (DEBUG) { System.out.println("SwitchStatement ::= switch LPAREN Expression RPAREN..."); } //$NON-NLS-1$ consumeStatementSwitch() ; break; case 284 : if (DEBUG) { System.out.println("SwitchBlock ::= LBRACE RBRACE"); } //$NON-NLS-1$ consumeEmptySwitchBlock() ; break; case 287 : if (DEBUG) { System.out.println("SwitchBlock ::= LBRACE SwitchBlockStatements..."); } //$NON-NLS-1$ consumeSwitchBlock() ; break; case 289 : if (DEBUG) { System.out.println("SwitchBlockStatements ::= SwitchBlockStatements..."); } //$NON-NLS-1$ consumeSwitchBlockStatements() ; break; case 290 : if (DEBUG) { System.out.println("SwitchBlockStatement ::= SwitchLabels BlockStatements"); } //$NON-NLS-1$ consumeSwitchBlockStatement() ; break; case 292 : if (DEBUG) { System.out.println("SwitchLabels ::= SwitchLabels SwitchLabel"); } //$NON-NLS-1$ consumeSwitchLabels() ; break; case 293 : if (DEBUG) { System.out.println("SwitchLabel ::= case ConstantExpression COLON"); } //$NON-NLS-1$ consumeCaseLabel(); break; case 294 : if (DEBUG) { System.out.println("SwitchLabel ::= default COLON"); } //$NON-NLS-1$ consumeDefaultLabel(); break; case 295 : if (DEBUG) { System.out.println("WhileStatement ::= while LPAREN Expression RPAREN..."); } //$NON-NLS-1$ consumeStatementWhile() ; break; case 296 : if (DEBUG) { System.out.println("WhileStatementNoShortIf ::= while LPAREN Expression..."); } //$NON-NLS-1$ consumeStatementWhile() ; break; case 297 : if (DEBUG) { System.out.println("DoStatement ::= do Statement while LPAREN Expression..."); } //$NON-NLS-1$ consumeStatementDo() ; break; case 298 : if (DEBUG) { System.out.println("ForStatement ::= for LPAREN ForInitopt SEMICOLON..."); } //$NON-NLS-1$ consumeStatementFor() ; break; case 299 : if (DEBUG) { System.out.println("ForStatementNoShortIf ::= for LPAREN ForInitopt..."); } //$NON-NLS-1$ consumeStatementFor() ; break; case 300 : if (DEBUG) { System.out.println("ForInit ::= StatementExpressionList"); } //$NON-NLS-1$ consumeForInit() ; break; case 304 : if (DEBUG) { System.out.println("StatementExpressionList ::= StatementExpressionList..."); } //$NON-NLS-1$ consumeStatementExpressionList() ; break; case 305 : if (DEBUG) { System.out.println("AssertStatement ::= assert Expression SEMICOLON"); } //$NON-NLS-1$ consumeSimpleAssertStatement() ; break; case 306 : if (DEBUG) { System.out.println("AssertStatement ::= assert Expression COLON Expression"); } //$NON-NLS-1$ consumeAssertStatement() ; break; case 307 : if (DEBUG) { System.out.println("BreakStatement ::= break SEMICOLON"); } //$NON-NLS-1$ consumeStatementBreak() ; break; case 308 : if (DEBUG) { System.out.println("BreakStatement ::= break Identifier SEMICOLON"); } //$NON-NLS-1$ consumeStatementBreakWithLabel() ; break; case 309 : if (DEBUG) { System.out.println("ContinueStatement ::= continue SEMICOLON"); } //$NON-NLS-1$ consumeStatementContinue() ; break; case 310 : if (DEBUG) { System.out.println("ContinueStatement ::= continue Identifier SEMICOLON"); } //$NON-NLS-1$ consumeStatementContinueWithLabel() ; break; case 311 : if (DEBUG) { System.out.println("ReturnStatement ::= return Expressionopt SEMICOLON"); } //$NON-NLS-1$ consumeStatementReturn() ; break; case 312 : if (DEBUG) { System.out.println("ThrowStatement ::= throw Expression SEMICOLON"); } //$NON-NLS-1$ consumeStatementThrow(); break; case 313 : if (DEBUG) { System.out.println("SynchronizedStatement ::= OnlySynchronized LPAREN..."); } //$NON-NLS-1$ consumeStatementSynchronized(); break; case 314 : if (DEBUG) { System.out.println("OnlySynchronized ::= synchronized"); } //$NON-NLS-1$ consumeOnlySynchronized(); break; case 315 : if (DEBUG) { System.out.println("TryStatement ::= try TryBlock Catches"); } //$NON-NLS-1$ consumeStatementTry(false); break; case 316 : if (DEBUG) { System.out.println("TryStatement ::= try TryBlock Catchesopt Finally"); } //$NON-NLS-1$ consumeStatementTry(true); break; case 318 : if (DEBUG) { System.out.println("ExitTryBlock ::="); } //$NON-NLS-1$ consumeExitTryBlock(); break; case 320 : if (DEBUG) { System.out.println("Catches ::= Catches CatchClause"); } //$NON-NLS-1$ consumeCatches(); break; case 321 : if (DEBUG) { System.out.println("CatchClause ::= catch LPAREN FormalParameter RPAREN..."); } //$NON-NLS-1$ consumeStatementCatch() ; break; case 323 : if (DEBUG) { System.out.println("PushLPAREN ::= LPAREN"); } //$NON-NLS-1$ consumeLeftParen(); break; case 324 : if (DEBUG) { System.out.println("PushRPAREN ::= RPAREN"); } //$NON-NLS-1$ consumeRightParen(); break; case 329 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= this"); } //$NON-NLS-1$ consumePrimaryNoNewArrayThis(); break; case 330 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= PushLPAREN Expression_NotName..."); } //$NON-NLS-1$ consumePrimaryNoNewArray(); break; case 331 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= PushLPAREN Name PushRPAREN"); } //$NON-NLS-1$ consumePrimaryNoNewArrayWithName(); break; case 334 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= Name DOT this"); } //$NON-NLS-1$ consumePrimaryNoNewArrayNameThis(); break; case 335 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= Name DOT super"); } //$NON-NLS-1$ consumePrimaryNoNewArrayNameSuper(); break; case 336 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= Name DOT class"); } //$NON-NLS-1$ consumePrimaryNoNewArrayName(); break; case 337 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= Name Dims DOT class"); } //$NON-NLS-1$ consumePrimaryNoNewArrayArrayType(); break; case 338 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= PrimitiveType Dims DOT class"); } //$NON-NLS-1$ consumePrimaryNoNewArrayPrimitiveArrayType(); break; case 339 : if (DEBUG) { System.out.println("PrimaryNoNewArray ::= PrimitiveType DOT class"); } //$NON-NLS-1$ consumePrimaryNoNewArrayPrimitiveType(); break; case 342 : if (DEBUG) { System.out.println("AllocationHeader ::= new ClassType LPAREN..."); } //$NON-NLS-1$ consumeAllocationHeader(); break; case 343 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::= new..."); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionWithTypeArguments(); break; case 344 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::= new ClassType LPAREN"); } //$NON-NLS-1$ consumeClassInstanceCreationExpression(); break; case 345 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::= Primary DOT new..."); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionQualifiedWithTypeArguments() ; break; case 346 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::= Primary DOT new..."); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionQualified() ; break; case 347 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::=..."); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionQualified() ; break; case 348 : if (DEBUG) { System.out.println("ClassInstanceCreationExpression ::=..."); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionQualifiedWithTypeArguments() ; break; case 349 : if (DEBUG) { System.out.println("ClassInstanceCreationExpressionName ::= Name DOT"); } //$NON-NLS-1$ consumeClassInstanceCreationExpressionName() ; break; case 350 : if (DEBUG) { System.out.println("ClassBodyopt ::="); } //$NON-NLS-1$ consumeClassBodyopt(); break; case 352 : if (DEBUG) { System.out.println("EnterAnonymousClassBody ::="); } //$NON-NLS-1$ consumeEnterAnonymousClassBody(); break; case 354 : if (DEBUG) { System.out.println("ArgumentList ::= ArgumentList COMMA Expression"); } //$NON-NLS-1$ consumeArgumentList(); break; case 355 : if (DEBUG) { System.out.println("ArrayCreationHeader ::= new PrimitiveType..."); } //$NON-NLS-1$ consumeArrayCreationHeader(); break; case 356 : if (DEBUG) { System.out.println("ArrayCreationHeader ::= new ClassOrInterfaceType..."); } //$NON-NLS-1$ consumeArrayCreationHeader(); break; case 357 : if (DEBUG) { System.out.println("ArrayCreationWithoutArrayInitializer ::= new..."); } //$NON-NLS-1$ consumeArrayCreationExpressionWithoutInitializer(); break; case 358 : if (DEBUG) { System.out.println("ArrayCreationWithArrayInitializer ::= new PrimitiveType"); } //$NON-NLS-1$ consumeArrayCreationExpressionWithInitializer(); break; case 359 : if (DEBUG) { System.out.println("ArrayCreationWithoutArrayInitializer ::= new..."); } //$NON-NLS-1$ consumeArrayCreationExpressionWithoutInitializer(); break; case 360 : if (DEBUG) { System.out.println("ArrayCreationWithArrayInitializer ::= new..."); } //$NON-NLS-1$ consumeArrayCreationExpressionWithInitializer(); break; case 362 : if (DEBUG) { System.out.println("DimWithOrWithOutExprs ::= DimWithOrWithOutExprs..."); } //$NON-NLS-1$ consumeDimWithOrWithOutExprs(); break; case 364 : if (DEBUG) { System.out.println("DimWithOrWithOutExpr ::= LBRACKET RBRACKET"); } //$NON-NLS-1$ consumeDimWithOrWithOutExpr(); break; case 365 : if (DEBUG) { System.out.println("Dims ::= DimsLoop"); } //$NON-NLS-1$ consumeDims(); break; case 368 : if (DEBUG) { System.out.println("OneDimLoop ::= LBRACKET RBRACKET"); } //$NON-NLS-1$ consumeOneDimLoop(); break; case 369 : if (DEBUG) { System.out.println("FieldAccess ::= Primary DOT Identifier"); } //$NON-NLS-1$ consumeFieldAccess(false); break; case 370 : if (DEBUG) { System.out.println("FieldAccess ::= super DOT Identifier"); } //$NON-NLS-1$ consumeFieldAccess(true); break; case 371 : if (DEBUG) { System.out.println("MethodInvocation ::= Name LPAREN ArgumentListopt RPAREN"); } //$NON-NLS-1$ consumeMethodInvocationName(); break; case 372 : if (DEBUG) { System.out.println("MethodInvocation ::= Name DOT OnlyTypeArguments..."); } //$NON-NLS-1$ consumeMethodInvocationNameWithTypeArguments(); break; case 373 : if (DEBUG) { System.out.println("MethodInvocation ::= Primary DOT OnlyTypeArguments..."); } //$NON-NLS-1$ consumeMethodInvocationPrimaryWithTypeArguments(); break; case 374 : if (DEBUG) { System.out.println("MethodInvocation ::= Primary DOT Identifier LPAREN..."); } //$NON-NLS-1$ consumeMethodInvocationPrimary(); break; case 375 : if (DEBUG) { System.out.println("MethodInvocation ::= super DOT OnlyTypeArguments..."); } //$NON-NLS-1$ consumeMethodInvocationSuperWithTypeArguments(); break; case 376 : if (DEBUG) { System.out.println("MethodInvocation ::= super DOT Identifier LPAREN..."); } //$NON-NLS-1$ consumeMethodInvocationSuper(); break; case 377 : if (DEBUG) { System.out.println("ArrayAccess ::= Name LBRACKET Expression RBRACKET"); } //$NON-NLS-1$ consumeArrayAccess(true); break; case 378 : if (DEBUG) { System.out.println("ArrayAccess ::= PrimaryNoNewArray LBRACKET Expression..."); } //$NON-NLS-1$ consumeArrayAccess(false); break; case 379 : if (DEBUG) { System.out.println("ArrayAccess ::= ArrayCreationWithArrayInitializer..."); } //$NON-NLS-1$ consumeArrayAccess(false); break; case 381 : if (DEBUG) { System.out.println("PostfixExpression ::= Name"); } //$NON-NLS-1$ consumePostfixExpression(); break; case 384 : if (DEBUG) { System.out.println("PostIncrementExpression ::= PostfixExpression PLUS_PLUS"); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.PLUS,true); break; case 385 : if (DEBUG) { System.out.println("PostDecrementExpression ::= PostfixExpression..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.MINUS,true); break; case 386 : if (DEBUG) { System.out.println("PushPosition ::="); } //$NON-NLS-1$ consumePushPosition(); break; case 389 : if (DEBUG) { System.out.println("UnaryExpression ::= PLUS PushPosition UnaryExpression"); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.PLUS); break; case 390 : if (DEBUG) { System.out.println("UnaryExpression ::= MINUS PushPosition UnaryExpression"); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.MINUS); break; case 392 : if (DEBUG) { System.out.println("PreIncrementExpression ::= PLUS_PLUS PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.PLUS,false); break; case 393 : if (DEBUG) { System.out.println("PreDecrementExpression ::= MINUS_MINUS PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.MINUS,false); break; case 395 : if (DEBUG) { System.out.println("UnaryExpressionNotPlusMinus ::= TWIDDLE PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.TWIDDLE); break; case 396 : if (DEBUG) { System.out.println("UnaryExpressionNotPlusMinus ::= NOT PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.NOT); break; case 398 : if (DEBUG) { System.out.println("CastExpression ::= PushLPAREN PrimitiveType Dimsopt..."); } //$NON-NLS-1$ consumeCastExpressionWithPrimitiveType(); break; case 399 : if (DEBUG) { System.out.println("CastExpression ::= PushLPAREN Name..."); } //$NON-NLS-1$ consumeCastExpressionWithGenericsArray(); break; case 400 : if (DEBUG) { System.out.println("CastExpression ::= PushLPAREN Name..."); } //$NON-NLS-1$ consumeCastExpressionWithQualifiedGenericsArray(); break; case 401 : if (DEBUG) { System.out.println("CastExpression ::= PushLPAREN Name PushRPAREN..."); } //$NON-NLS-1$ consumeCastExpressionLL1(); break; case 402 : if (DEBUG) { System.out.println("CastExpression ::= PushLPAREN Name Dims PushRPAREN..."); } //$NON-NLS-1$ consumeCastExpressionWithNameArray(); break; case 403 : if (DEBUG) { System.out.println("OnlyTypeArgumentsForCastExpression ::= OnlyTypeArguments"); } //$NON-NLS-1$ consumeOnlyTypeArgumentsForCastExpression(); break; case 404 : if (DEBUG) { System.out.println("InsideCastExpression ::="); } //$NON-NLS-1$ consumeInsideCastExpression(); break; case 405 : if (DEBUG) { System.out.println("InsideCastExpressionLL1 ::="); } //$NON-NLS-1$ consumeInsideCastExpressionLL1(); break; case 406 : if (DEBUG) { System.out.println("InsideCastExpressionWithQualifiedGenerics ::="); } //$NON-NLS-1$ consumeInsideCastExpressionWithQualifiedGenerics(); break; case 408 : if (DEBUG) { System.out.println("MultiplicativeExpression ::= MultiplicativeExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.MULTIPLY); break; case 409 : if (DEBUG) { System.out.println("MultiplicativeExpression ::= MultiplicativeExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.DIVIDE); break; case 410 : if (DEBUG) { System.out.println("MultiplicativeExpression ::= MultiplicativeExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.REMAINDER); break; case 412 : if (DEBUG) { System.out.println("AdditiveExpression ::= AdditiveExpression PLUS..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.PLUS); break; case 413 : if (DEBUG) { System.out.println("AdditiveExpression ::= AdditiveExpression MINUS..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.MINUS); break; case 415 : if (DEBUG) { System.out.println("ShiftExpression ::= ShiftExpression LEFT_SHIFT..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LEFT_SHIFT); break; case 416 : if (DEBUG) { System.out.println("ShiftExpression ::= ShiftExpression RIGHT_SHIFT..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.RIGHT_SHIFT); break; case 417 : if (DEBUG) { System.out.println("ShiftExpression ::= ShiftExpression UNSIGNED_RIGHT_SHIFT"); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.UNSIGNED_RIGHT_SHIFT); break; case 419 : if (DEBUG) { System.out.println("RelationalExpression ::= RelationalExpression LESS..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LESS); break; case 420 : if (DEBUG) { System.out.println("RelationalExpression ::= RelationalExpression GREATER..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.GREATER); break; case 421 : if (DEBUG) { System.out.println("RelationalExpression ::= RelationalExpression LESS_EQUAL"); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LESS_EQUAL); break; case 422 : if (DEBUG) { System.out.println("RelationalExpression ::= RelationalExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.GREATER_EQUAL); break; case 424 : if (DEBUG) { System.out.println("InstanceofExpression ::= InstanceofExpression instanceof"); } //$NON-NLS-1$ consumeInstanceOfExpression(); break; case 426 : if (DEBUG) { System.out.println("EqualityExpression ::= EqualityExpression EQUAL_EQUAL..."); } //$NON-NLS-1$ consumeEqualityExpression(OperatorIds.EQUAL_EQUAL); break; case 427 : if (DEBUG) { System.out.println("EqualityExpression ::= EqualityExpression NOT_EQUAL..."); } //$NON-NLS-1$ consumeEqualityExpression(OperatorIds.NOT_EQUAL); break; case 429 : if (DEBUG) { System.out.println("AndExpression ::= AndExpression AND EqualityExpression"); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.AND); break; case 431 : if (DEBUG) { System.out.println("ExclusiveOrExpression ::= ExclusiveOrExpression XOR..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.XOR); break; case 433 : if (DEBUG) { System.out.println("InclusiveOrExpression ::= InclusiveOrExpression OR..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.OR); break; case 435 : if (DEBUG) { System.out.println("ConditionalAndExpression ::= ConditionalAndExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.AND_AND); break; case 437 : if (DEBUG) { System.out.println("ConditionalOrExpression ::= ConditionalOrExpression..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.OR_OR); break; case 439 : if (DEBUG) { System.out.println("ConditionalExpression ::= ConditionalOrExpression..."); } //$NON-NLS-1$ consumeConditionalExpression(OperatorIds.QUESTIONCOLON) ; break; case 442 : if (DEBUG) { System.out.println("Assignment ::= PostfixExpression AssignmentOperator..."); } //$NON-NLS-1$ consumeAssignment(); break; case 444 : if (DEBUG) { System.out.println("Assignment ::= InvalidArrayInitializerAssignement"); } //$NON-NLS-1$ ignoreExpressionAssignment(); break; case 445 : if (DEBUG) { System.out.println("AssignmentOperator ::= EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(EQUAL); break; case 446 : if (DEBUG) { System.out.println("AssignmentOperator ::= MULTIPLY_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(MULTIPLY); break; case 447 : if (DEBUG) { System.out.println("AssignmentOperator ::= DIVIDE_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(DIVIDE); break; case 448 : if (DEBUG) { System.out.println("AssignmentOperator ::= REMAINDER_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(REMAINDER); break; case 449 : if (DEBUG) { System.out.println("AssignmentOperator ::= PLUS_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(PLUS); break; case 450 : if (DEBUG) { System.out.println("AssignmentOperator ::= MINUS_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(MINUS); break; case 451 : if (DEBUG) { System.out.println("AssignmentOperator ::= LEFT_SHIFT_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(LEFT_SHIFT); break; case 452 : if (DEBUG) { System.out.println("AssignmentOperator ::= RIGHT_SHIFT_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(RIGHT_SHIFT); break; case 453 : if (DEBUG) { System.out.println("AssignmentOperator ::= UNSIGNED_RIGHT_SHIFT_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(UNSIGNED_RIGHT_SHIFT); break; case 454 : if (DEBUG) { System.out.println("AssignmentOperator ::= AND_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(AND); break; case 455 : if (DEBUG) { System.out.println("AssignmentOperator ::= XOR_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(XOR); break; case 456 : if (DEBUG) { System.out.println("AssignmentOperator ::= OR_EQUAL"); } //$NON-NLS-1$ consumeAssignmentOperator(OR); break; case 460 : if (DEBUG) { System.out.println("Expressionopt ::="); } //$NON-NLS-1$ consumeEmptyExpression(); break; case 465 : if (DEBUG) { System.out.println("ClassBodyDeclarationsopt ::="); } //$NON-NLS-1$ consumeEmptyClassBodyDeclarationsopt(); break; case 466 : if (DEBUG) { System.out.println("ClassBodyDeclarationsopt ::= NestedType..."); } //$NON-NLS-1$ consumeClassBodyDeclarationsopt(); break; case 467 : if (DEBUG) { System.out.println("Modifiersopt ::="); } //$NON-NLS-1$ consumeDefaultModifiers(); break; case 468 : if (DEBUG) { System.out.println("Modifiersopt ::= Modifiers"); } //$NON-NLS-1$ consumeModifiers(); break; case 469 : if (DEBUG) { System.out.println("BlockStatementsopt ::="); } //$NON-NLS-1$ consumeEmptyBlockStatementsopt(); break; case 471 : if (DEBUG) { System.out.println("Dimsopt ::="); } //$NON-NLS-1$ consumeEmptyDimsopt(); break; case 473 : if (DEBUG) { System.out.println("ArgumentListopt ::="); } //$NON-NLS-1$ consumeEmptyArgumentListopt(); break; case 477 : if (DEBUG) { System.out.println("FormalParameterListopt ::="); } //$NON-NLS-1$ consumeFormalParameterListopt(); break; case 481 : if (DEBUG) { System.out.println("InterfaceMemberDeclarationsopt ::="); } //$NON-NLS-1$ consumeEmptyInterfaceMemberDeclarationsopt(); break; case 482 : if (DEBUG) { System.out.println("InterfaceMemberDeclarationsopt ::= NestedType..."); } //$NON-NLS-1$ consumeInterfaceMemberDeclarationsopt(); break; case 483 : if (DEBUG) { System.out.println("NestedType ::="); } //$NON-NLS-1$ consumeNestedType(); break; case 484 : if (DEBUG) { System.out.println("ForInitopt ::="); } //$NON-NLS-1$ consumeEmptyForInitopt(); break; case 486 : if (DEBUG) { System.out.println("ForUpdateopt ::="); } //$NON-NLS-1$ consumeEmptyForUpdateopt(); break; case 490 : if (DEBUG) { System.out.println("Catchesopt ::="); } //$NON-NLS-1$ consumeEmptyCatchesopt(); break; case 492 : if (DEBUG) { System.out.println("EnumDeclaration ::= EnumHeader EnumBody"); } //$NON-NLS-1$ consumeEnumDeclaration(); break; case 493 : if (DEBUG) { System.out.println("EnumHeader ::= EnumHeaderName ClassHeaderImplementsopt"); } //$NON-NLS-1$ consumeEnumHeader(); break; case 494 : if (DEBUG) { System.out.println("EnumHeaderName ::= Modifiersopt enum Identifier"); } //$NON-NLS-1$ consumeEnumHeaderName(); break; case 495 : if (DEBUG) { System.out.println("EnumBody ::= LBRACE EnumBodyDeclarationsopt RBRACE"); } //$NON-NLS-1$ consumeEnumBodyNoConstants(); break; case 496 : if (DEBUG) { System.out.println("EnumBody ::= LBRACE COMMA EnumBodyDeclarationsopt..."); } //$NON-NLS-1$ consumeEnumBodyNoConstants(); break; case 497 : if (DEBUG) { System.out.println("EnumBody ::= LBRACE EnumConstants COMMA..."); } //$NON-NLS-1$ consumeEnumBodyWithConstants(); break; case 498 : if (DEBUG) { System.out.println("EnumBody ::= LBRACE EnumConstants..."); } //$NON-NLS-1$ consumeEnumBodyWithConstants(); break; case 500 : if (DEBUG) { System.out.println("EnumConstants ::= EnumConstants COMMA EnumConstant"); } //$NON-NLS-1$ consumeEnumConstants(); break; case 501 : if (DEBUG) { System.out.println("EnumConstantHeaderName ::= Modifiersopt Identifier"); } //$NON-NLS-1$ consumeEnumConstantHeaderName(); break; case 502 : if (DEBUG) { System.out.println("EnumConstantHeader ::= EnumConstantHeaderName..."); } //$NON-NLS-1$ consumeEnumConstantHeader(); break; case 503 : if (DEBUG) { System.out.println("EnumConstant ::= EnumConstantHeader ForceNoDiet..."); } //$NON-NLS-1$ consumeEnumConstantWithClassBody(); break; case 504 : if (DEBUG) { System.out.println("EnumConstant ::= EnumConstantHeader"); } //$NON-NLS-1$ consumeEnumConstantNoClassBody(); break; case 505 : if (DEBUG) { System.out.println("Arguments ::= LPAREN ArgumentListopt RPAREN"); } //$NON-NLS-1$ consumeArguments(); break; case 506 : if (DEBUG) { System.out.println("Argumentsopt ::="); } //$NON-NLS-1$ consumeEmptyArguments(); break; case 508 : if (DEBUG) { System.out.println("EnumDeclarations ::= SEMICOLON ClassBodyDeclarationsopt"); } //$NON-NLS-1$ consumeEnumDeclarations(); break; case 509 : if (DEBUG) { System.out.println("EnumBodyDeclarationsopt ::="); } //$NON-NLS-1$ consumeEmptyEnumDeclarations(); break; case 511 : if (DEBUG) { System.out.println("EnhancedForStatement ::= EnhancedForStatementHeader..."); } //$NON-NLS-1$ consumeEnhancedForStatement(); break; case 512 : if (DEBUG) { System.out.println("EnhancedForStatementNoShortIf ::=..."); } //$NON-NLS-1$ consumeEnhancedForStatement(); break; case 513 : if (DEBUG) { System.out.println("EnhancedForStatementHeaderInit ::= for LPAREN Type..."); } //$NON-NLS-1$ consumeEnhancedForStatementHeaderInit(false); break; case 514 : if (DEBUG) { System.out.println("EnhancedForStatementHeaderInit ::= for LPAREN Modifiers"); } //$NON-NLS-1$ consumeEnhancedForStatementHeaderInit(true); break; case 515 : if (DEBUG) { System.out.println("EnhancedForStatementHeader ::=..."); } //$NON-NLS-1$ consumeEnhancedForStatementHeader(); break; case 516 : if (DEBUG) { System.out.println("SingleStaticImportDeclaration ::=..."); } //$NON-NLS-1$ consumeImportDeclaration(); break; case 517 : if (DEBUG) { System.out.println("SingleStaticImportDeclarationName ::= import static Name"); } //$NON-NLS-1$ consumeSingleStaticImportDeclarationName(); break; case 518 : if (DEBUG) { System.out.println("StaticImportOnDemandDeclaration ::=..."); } //$NON-NLS-1$ consumeImportDeclaration(); break; case 519 : if (DEBUG) { System.out.println("StaticImportOnDemandDeclarationName ::= import static..."); } //$NON-NLS-1$ consumeStaticImportOnDemandDeclarationName(); break; case 520 : if (DEBUG) { System.out.println("TypeArguments ::= LESS TypeArgumentList1"); } //$NON-NLS-1$ consumeTypeArguments(); break; case 521 : if (DEBUG) { System.out.println("OnlyTypeArguments ::= LESS TypeArgumentList1"); } //$NON-NLS-1$ consumeOnlyTypeArguments(); break; case 523 : if (DEBUG) { System.out.println("TypeArgumentList1 ::= TypeArgumentList COMMA..."); } //$NON-NLS-1$ consumeTypeArgumentList1(); break; case 525 : if (DEBUG) { System.out.println("TypeArgumentList ::= TypeArgumentList COMMA TypeArgument"); } //$NON-NLS-1$ consumeTypeArgumentList(); break; case 526 : if (DEBUG) { System.out.println("TypeArgument ::= ReferenceType"); } //$NON-NLS-1$ consumeTypeArgument(); break; case 530 : if (DEBUG) { System.out.println("ReferenceType1 ::= ReferenceType GREATER"); } //$NON-NLS-1$ consumeReferenceType1(); break; case 531 : if (DEBUG) { System.out.println("ReferenceType1 ::= ClassOrInterface LESS..."); } //$NON-NLS-1$ consumeTypeArgumentReferenceType1(); break; case 533 : if (DEBUG) { System.out.println("TypeArgumentList2 ::= TypeArgumentList COMMA..."); } //$NON-NLS-1$ consumeTypeArgumentList2(); break; case 536 : if (DEBUG) { System.out.println("ReferenceType2 ::= ReferenceType RIGHT_SHIFT"); } //$NON-NLS-1$ consumeReferenceType2(); break; case 537 : if (DEBUG) { System.out.println("ReferenceType2 ::= ClassOrInterface LESS..."); } //$NON-NLS-1$ consumeTypeArgumentReferenceType2(); break; case 539 : if (DEBUG) { System.out.println("TypeArgumentList3 ::= TypeArgumentList COMMA..."); } //$NON-NLS-1$ consumeTypeArgumentList3(); break; case 542 : if (DEBUG) { System.out.println("ReferenceType3 ::= ReferenceType UNSIGNED_RIGHT_SHIFT"); } //$NON-NLS-1$ consumeReferenceType3(); break; case 543 : if (DEBUG) { System.out.println("Wildcard ::= QUESTION"); } //$NON-NLS-1$ consumeWildcard(); break; case 544 : if (DEBUG) { System.out.println("Wildcard ::= QUESTION WildcardBounds"); } //$NON-NLS-1$ consumeWildcardWithBounds(); break; case 545 : if (DEBUG) { System.out.println("WildcardBounds ::= extends ReferenceType"); } //$NON-NLS-1$ consumeWildcardBoundsExtends(); break; case 546 : if (DEBUG) { System.out.println("WildcardBounds ::= super ReferenceType"); } //$NON-NLS-1$ consumeWildcardBoundsSuper(); break; case 547 : if (DEBUG) { System.out.println("Wildcard1 ::= QUESTION GREATER"); } //$NON-NLS-1$ consumeWildcard1(); break; case 548 : if (DEBUG) { System.out.println("Wildcard1 ::= QUESTION WildcardBounds1"); } //$NON-NLS-1$ consumeWildcard1WithBounds(); break; case 549 : if (DEBUG) { System.out.println("WildcardBounds1 ::= extends ReferenceType1"); } //$NON-NLS-1$ consumeWildcardBounds1Extends(); break; case 550 : if (DEBUG) { System.out.println("WildcardBounds1 ::= super ReferenceType1"); } //$NON-NLS-1$ consumeWildcardBounds1Super(); break; case 551 : if (DEBUG) { System.out.println("Wildcard2 ::= QUESTION RIGHT_SHIFT"); } //$NON-NLS-1$ consumeWildcard2(); break; case 552 : if (DEBUG) { System.out.println("Wildcard2 ::= QUESTION WildcardBounds2"); } //$NON-NLS-1$ consumeWildcard2WithBounds(); break; case 553 : if (DEBUG) { System.out.println("WildcardBounds2 ::= extends ReferenceType2"); } //$NON-NLS-1$ consumeWildcardBounds2Extends(); break; case 554 : if (DEBUG) { System.out.println("WildcardBounds2 ::= super ReferenceType2"); } //$NON-NLS-1$ consumeWildcardBounds2Super(); break; case 555 : if (DEBUG) { System.out.println("Wildcard3 ::= QUESTION UNSIGNED_RIGHT_SHIFT"); } //$NON-NLS-1$ consumeWildcard3(); break; case 556 : if (DEBUG) { System.out.println("Wildcard3 ::= QUESTION WildcardBounds3"); } //$NON-NLS-1$ consumeWildcard3WithBounds(); break; case 557 : if (DEBUG) { System.out.println("WildcardBounds3 ::= extends ReferenceType3"); } //$NON-NLS-1$ consumeWildcardBounds3Extends(); break; case 558 : if (DEBUG) { System.out.println("WildcardBounds3 ::= super ReferenceType3"); } //$NON-NLS-1$ consumeWildcardBounds3Super(); break; case 559 : if (DEBUG) { System.out.println("TypeParameterHeader ::= Identifier"); } //$NON-NLS-1$ consumeTypeParameterHeader(); break; case 560 : if (DEBUG) { System.out.println("TypeParameters ::= LESS TypeParameterList1"); } //$NON-NLS-1$ consumeTypeParameters(); break; case 562 : if (DEBUG) { System.out.println("TypeParameterList ::= TypeParameterList COMMA..."); } //$NON-NLS-1$ consumeTypeParameterList(); break; case 564 : if (DEBUG) { System.out.println("TypeParameter ::= TypeParameterHeader extends..."); } //$NON-NLS-1$ consumeTypeParameterWithExtends(); break; case 565 : if (DEBUG) { System.out.println("TypeParameter ::= TypeParameterHeader extends..."); } //$NON-NLS-1$ consumeTypeParameterWithExtendsAndBounds(); break; case 567 : if (DEBUG) { System.out.println("AdditionalBoundList ::= AdditionalBoundList..."); } //$NON-NLS-1$ consumeAdditionalBoundList(); break; case 568 : if (DEBUG) { System.out.println("AdditionalBound ::= AND ReferenceType"); } //$NON-NLS-1$ consumeAdditionalBound(); break; case 570 : if (DEBUG) { System.out.println("TypeParameterList1 ::= TypeParameterList COMMA..."); } //$NON-NLS-1$ consumeTypeParameterList1(); break; case 571 : if (DEBUG) { System.out.println("TypeParameter1 ::= TypeParameterHeader GREATER"); } //$NON-NLS-1$ consumeTypeParameter1(); break; case 572 : if (DEBUG) { System.out.println("TypeParameter1 ::= TypeParameterHeader extends..."); } //$NON-NLS-1$ consumeTypeParameter1WithExtends(); break; case 573 : if (DEBUG) { System.out.println("TypeParameter1 ::= TypeParameterHeader extends..."); } //$NON-NLS-1$ consumeTypeParameter1WithExtendsAndBounds(); break; case 575 : if (DEBUG) { System.out.println("AdditionalBoundList1 ::= AdditionalBoundList..."); } //$NON-NLS-1$ consumeAdditionalBoundList1(); break; case 576 : if (DEBUG) { System.out.println("AdditionalBound1 ::= AND ReferenceType1"); } //$NON-NLS-1$ consumeAdditionalBound1(); break; case 582 : if (DEBUG) { System.out.println("UnaryExpression_NotName ::= PLUS PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.PLUS); break; case 583 : if (DEBUG) { System.out.println("UnaryExpression_NotName ::= MINUS PushPosition..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.MINUS); break; case 586 : if (DEBUG) { System.out.println("UnaryExpressionNotPlusMinus_NotName ::= TWIDDLE..."); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.TWIDDLE); break; case 587 : if (DEBUG) { System.out.println("UnaryExpressionNotPlusMinus_NotName ::= NOT PushPosition"); } //$NON-NLS-1$ consumeUnaryExpression(OperatorIds.NOT); break; case 590 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.MULTIPLY); break; case 591 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::= Name MULTIPLY..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.MULTIPLY); break; case 592 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.DIVIDE); break; case 593 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::= Name DIVIDE..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.DIVIDE); break; case 594 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.REMAINDER); break; case 595 : if (DEBUG) { System.out.println("MultiplicativeExpression_NotName ::= Name REMAINDER..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.REMAINDER); break; case 597 : if (DEBUG) { System.out.println("AdditiveExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.PLUS); break; case 598 : if (DEBUG) { System.out.println("AdditiveExpression_NotName ::= Name PLUS..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.PLUS); break; case 599 : if (DEBUG) { System.out.println("AdditiveExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.MINUS); break; case 600 : if (DEBUG) { System.out.println("AdditiveExpression_NotName ::= Name MINUS..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.MINUS); break; case 602 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= ShiftExpression_NotName..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LEFT_SHIFT); break; case 603 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= Name LEFT_SHIFT..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.LEFT_SHIFT); break; case 604 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= ShiftExpression_NotName..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.RIGHT_SHIFT); break; case 605 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= Name RIGHT_SHIFT..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.RIGHT_SHIFT); break; case 606 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= ShiftExpression_NotName..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.UNSIGNED_RIGHT_SHIFT); break; case 607 : if (DEBUG) { System.out.println("ShiftExpression_NotName ::= Name UNSIGNED_RIGHT_SHIFT..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.UNSIGNED_RIGHT_SHIFT); break; case 609 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= ShiftExpression_NotName"); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LESS); break; case 610 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= Name LESS..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.LESS); break; case 611 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= ShiftExpression_NotName"); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.GREATER); break; case 612 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= Name GREATER..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.GREATER); break; case 613 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.LESS_EQUAL); break; case 614 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= Name LESS_EQUAL..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.LESS_EQUAL); break; case 615 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.GREATER_EQUAL); break; case 616 : if (DEBUG) { System.out.println("RelationalExpression_NotName ::= Name GREATER_EQUAL..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.GREATER_EQUAL); break; case 618 : if (DEBUG) { System.out.println("InstanceofExpression_NotName ::= Name instanceof..."); } //$NON-NLS-1$ consumeInstanceOfExpressionWithName(); break; case 619 : if (DEBUG) { System.out.println("InstanceofExpression_NotName ::=..."); } //$NON-NLS-1$ consumeInstanceOfExpression(); break; case 621 : if (DEBUG) { System.out.println("EqualityExpression_NotName ::=..."); } //$NON-NLS-1$ consumeEqualityExpression(OperatorIds.EQUAL_EQUAL); break; case 622 : if (DEBUG) { System.out.println("EqualityExpression_NotName ::= Name EQUAL_EQUAL..."); } //$NON-NLS-1$ consumeEqualityExpressionWithName(OperatorIds.EQUAL_EQUAL); break; case 623 : if (DEBUG) { System.out.println("EqualityExpression_NotName ::=..."); } //$NON-NLS-1$ consumeEqualityExpression(OperatorIds.NOT_EQUAL); break; case 624 : if (DEBUG) { System.out.println("EqualityExpression_NotName ::= Name NOT_EQUAL..."); } //$NON-NLS-1$ consumeEqualityExpressionWithName(OperatorIds.NOT_EQUAL); break; case 626 : if (DEBUG) { System.out.println("AndExpression_NotName ::= AndExpression_NotName AND..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.AND); break; case 627 : if (DEBUG) { System.out.println("AndExpression_NotName ::= Name AND EqualityExpression"); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.AND); break; case 629 : if (DEBUG) { System.out.println("ExclusiveOrExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.XOR); break; case 630 : if (DEBUG) { System.out.println("ExclusiveOrExpression_NotName ::= Name XOR AndExpression"); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.XOR); break; case 632 : if (DEBUG) { System.out.println("InclusiveOrExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.OR); break; case 633 : if (DEBUG) { System.out.println("InclusiveOrExpression_NotName ::= Name OR..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.OR); break; case 635 : if (DEBUG) { System.out.println("ConditionalAndExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.AND_AND); break; case 636 : if (DEBUG) { System.out.println("ConditionalAndExpression_NotName ::= Name AND_AND..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.AND_AND); break; case 638 : if (DEBUG) { System.out.println("ConditionalOrExpression_NotName ::=..."); } //$NON-NLS-1$ consumeBinaryExpression(OperatorIds.OR_OR); break; case 639 : if (DEBUG) { System.out.println("ConditionalOrExpression_NotName ::= Name OR_OR..."); } //$NON-NLS-1$ consumeBinaryExpressionWithName(OperatorIds.OR_OR); break; case 641 : if (DEBUG) { System.out.println("ConditionalExpression_NotName ::=..."); } //$NON-NLS-1$ consumeConditionalExpression(OperatorIds.QUESTIONCOLON) ; break; case 642 : if (DEBUG) { System.out.println("ConditionalExpression_NotName ::= Name QUESTION..."); } //$NON-NLS-1$ consumeConditionalExpressionWithName(OperatorIds.QUESTIONCOLON) ; break; case 646 : if (DEBUG) { System.out.println("AnnotationTypeDeclarationHeaderName ::= Modifiers AT..."); } //$NON-NLS-1$ consumeAnnotationTypeDeclarationHeaderName() ; break; case 647 : if (DEBUG) { System.out.println("AnnotationTypeDeclarationHeaderName ::= AT..."); } //$NON-NLS-1$ consumeAnnotationTypeDeclarationHeaderName() ; break; case 648 : if (DEBUG) { System.out.println("AnnotationTypeDeclarationHeader ::=..."); } //$NON-NLS-1$ consumeAnnotationTypeDeclarationHeader() ; break; case 649 : if (DEBUG) { System.out.println("AnnotationTypeDeclaration ::=..."); } //$NON-NLS-1$ consumeAnnotationTypeDeclaration() ; break; case 651 : if (DEBUG) { System.out.println("AnnotationTypeMemberDeclarationsopt ::="); } //$NON-NLS-1$ consumeEmptyAnnotationTypeMemberDeclarationsopt() ; break; case 652 : if (DEBUG) { System.out.println("AnnotationTypeMemberDeclarationsopt ::= NestedType..."); } //$NON-NLS-1$ consumeAnnotationTypeMemberDeclarationsopt() ; break; case 654 : if (DEBUG) { System.out.println("AnnotationTypeMemberDeclarations ::=..."); } //$NON-NLS-1$ consumeAnnotationTypeMemberDeclarations() ; break; case 655 : if (DEBUG) { System.out.println("AnnotationMethodHeaderName ::= Modifiersopt..."); } //$NON-NLS-1$ consumeMethodHeaderNameWithTypeParameters(true); break; case 656 : if (DEBUG) { System.out.println("AnnotationMethodHeaderName ::= Modifiersopt Type..."); } //$NON-NLS-1$ consumeMethodHeaderName(true); break; case 657 : if (DEBUG) { System.out.println("AnnotationMethodHeaderDefaultValueopt ::="); } //$NON-NLS-1$ consumeEmptyMethodHeaderDefaultValue() ; break; case 658 : if (DEBUG) { System.out.println("AnnotationMethodHeaderDefaultValueopt ::= DefaultValue"); } //$NON-NLS-1$ consumeMethodHeaderDefaultValue(); break; case 659 : if (DEBUG) { System.out.println("AnnotationMethodHeader ::= AnnotationMethodHeaderName..."); } //$NON-NLS-1$ consumeMethodHeader(); break; case 660 : if (DEBUG) { System.out.println("AnnotationTypeMemberDeclaration ::=..."); } //$NON-NLS-1$ consumeAnnotationTypeMemberDeclaration() ; break; case 668 : if (DEBUG) { System.out.println("AnnotationName ::= AT Name"); } //$NON-NLS-1$ consumeAnnotationName() ; break; case 669 : if (DEBUG) { System.out.println("NormalAnnotation ::= AnnotationName LPAREN..."); } //$NON-NLS-1$ consumeNormalAnnotation() ; break; case 670 : if (DEBUG) { System.out.println("MemberValuePairsopt ::="); } //$NON-NLS-1$ consumeEmptyMemberValuePairsopt() ; break; case 673 : if (DEBUG) { System.out.println("MemberValuePairs ::= MemberValuePairs COMMA..."); } //$NON-NLS-1$ consumeMemberValuePairs() ; break; case 674 : if (DEBUG) { System.out.println("MemberValuePair ::= SimpleName EQUAL EnterMemberValue..."); } //$NON-NLS-1$ consumeMemberValuePair() ; break; case 675 : if (DEBUG) { System.out.println("EnterMemberValue ::="); } //$NON-NLS-1$ consumeEnterMemberValue() ; break; case 676 : if (DEBUG) { System.out.println("ExitMemberValue ::="); } //$NON-NLS-1$ consumeExitMemberValue() ; break; case 678 : if (DEBUG) { System.out.println("MemberValue ::= Name"); } //$NON-NLS-1$ consumeMemberValueAsName() ; break; case 681 : if (DEBUG) { System.out.println("MemberValueArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeMemberValueArrayInitializer() ; break; case 682 : if (DEBUG) { System.out.println("MemberValueArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeMemberValueArrayInitializer() ; break; case 683 : if (DEBUG) { System.out.println("MemberValueArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeEmptyMemberValueArrayInitializer() ; break; case 684 : if (DEBUG) { System.out.println("MemberValueArrayInitializer ::= LBRACE PushLeftBrace..."); } //$NON-NLS-1$ consumeEmptyMemberValueArrayInitializer() ; break; case 686 : if (DEBUG) { System.out.println("MemberValues ::= MemberValues COMMA MemberValue"); } //$NON-NLS-1$ consumeMemberValues() ; break; case 687 : if (DEBUG) { System.out.println("MarkerAnnotation ::= AnnotationName"); } //$NON-NLS-1$ consumeMarkerAnnotation() ; break; case 688 : if (DEBUG) { System.out.println("SingleMemberAnnotation ::= AnnotationName LPAREN..."); } //$NON-NLS-1$ consumeSingleMemberAnnotation() ; break; case 689 : if (DEBUG) { System.out.println("RecoveryMethodHeaderName ::= Modifiersopt TypeParameters"); } //$NON-NLS-1$ consumeRecoveryMethodHeaderNameWithTypeParameters(); break; case 690 : if (DEBUG) { System.out.println("RecoveryMethodHeaderName ::= Modifiersopt Type..."); } //$NON-NLS-1$ consumeRecoveryMethodHeaderName(); break; case 691 : if (DEBUG) { System.out.println("RecoveryMethodHeader ::= RecoveryMethodHeaderName..."); } //$NON-NLS-1$ consumeMethodHeader(); break; case 692 : if (DEBUG) { System.out.println("RecoveryMethodHeader ::= RecoveryMethodHeaderName..."); } //$NON-NLS-1$ consumeMethodHeader(); break; }} | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/189d8495dd269a3e1a6eabd4118e6586a867755d/Parser.java/buggy/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
918,
7865,
2175,
12,
474,
1328,
13,
288,
225,
1620,
261,
1328,
262,
288,
565,
648,
12899,
294,
309,
261,
9394,
13,
288,
2332,
18,
659,
18,
8222,
2932,
559,
493,
33,
14488,
559,
8863,
289,
225,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
565,
7865,
9840,
559,
5621,
26924,
202,
8820,
31,
377,
648,
21193,
294,
309,
261,
9394,
13,
288,
2332,
18,
659,
18,
8222,
2932,
2404,
559,
493,
33,
1659,
1162,
1358,
559,
8863,
289,
225,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
565,
7865,
2404,
559,
5621,
565,
1082,
202,
8820,
31,
377,
648,
17495,
294,
309,
261,
9394,
13,
288,
2332,
18,
659,
18,
8222,
2932,
797,
1162,
1358,
493,
33,
1770,
8863,
289,
225,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
565,
7865,
797,
1162,
24730,
5621,
565,
1082,
202,
8820,
31,
377,
648,
9934,
294,
309,
261,
9394,
13,
288,
2332,
18,
659,
18,
8222,
2932,
797,
1162,
1358,
493,
33,
7928,
559,
15772,
1770,
8863,
289,
225,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
565,
7865,
797,
1162,
1358,
5621,
565,
1082,
202,
8820,
31,
377,
648,
17160,
294,
309,
261,
9394,
13,
288,
2332,
18,
659,
18,
8222,
2932,
30982,
493,
33,
1659,
1162,
1358,
1412,
4628,
8863,
289,
225,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
565,
7865,
30982,
5621,
565,
1082,
202,
8820,
31,
377,
648,
6437,
294,
309,
261,
9394,
13,
288,
2332,
18,
659,
18,
8222,
2932,
27182,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
918,
7865,
2175,
12,
474,
1328,
13,
288,
225,
1620,
261,
1328,
262,
288,
565,
648,
12899,
294,
309,
261,
9394,
13,
288,
2332,
18,
659,
18,
8222,
2932,
559,
493,
33,
14488,
559,
8863,
289,
225,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
565,
7865,
9840,
559,
5621,
26924,
202,
8820,
31,
377,
648,
21193,
294,
309,
261,
9394,
13,
288,
2332,
18,
659,
18,
8222,
2932,
2404,
559,
493,
33,
1659,
1162,
1358,
559,
8863,
289,
225,
4329,
3993,
17,
5106,
17,
21,
8,
1082,
565,
7865,
2404,
559,
5621,
565,
1082,
202,
8820,
31,
377,
648,
17495,
294,
309,
261,
9394,
13,
288,
2332,
18,
659,
18,
8222,
2932,
797,
1162,
1358,
493,
33,
2
] |
protected Composite getComponent( Composite parent ) { // Layout for the content composite GridLayout glContent = new GridLayout( ); glContent.numColumns = 2; glContent.horizontalSpacing = 5; glContent.verticalSpacing = 5; glContent.marginHeight = 7; glContent.marginWidth = 7; // Layout for the general composite GridLayout glGeneral = new GridLayout( ); glGeneral.numColumns = 10; glGeneral.horizontalSpacing = 5; glGeneral.verticalSpacing = 5; glGeneral.marginHeight = 4; glGeneral.marginWidth = 4; // Layout for the gap width composite GridLayout glGapWidth = new GridLayout( ); glGapWidth.numColumns = 8; glGapWidth.horizontalSpacing = 5; glGapWidth.marginHeight = 2; glGapWidth.marginWidth = 2; // Layout for the Major Grid group FillLayout flMajor = new FillLayout( ); // Main content composite cmpContent = new Composite( parent, SWT.NONE ); cmpContent.setLayout( glContent ); // General attributes composite cmpGeneral = new Composite( cmpContent, SWT.NONE ); GridData gdCMPGeneral = new GridData( GridData.FILL_BOTH ); gdCMPGeneral.horizontalSpan = 2; gdCMPGeneral.grabExcessVerticalSpace = false; cmpGeneral.setLayoutData( gdCMPGeneral ); cmpGeneral.setLayout( glGeneral ); // The axis from the model for convenient access Axis axis = null; try { axis = getAxisForProcessing( ); } catch ( ClassCastException cce ) { cce.printStackTrace( ); } // Axis Visibility cbHidden = new Button( cmpGeneral, SWT.CHECK ); GridData gdCBVisible = new GridData( GridData.FILL_BOTH ); gdCBVisible.horizontalSpan = 5; cbHidden.setLayoutData( gdCBVisible ); cbHidden.setText( Messages.getString( "BaseAxisAttributeSheetImpl.Lbl.HideAxisLine" ) ); //$NON-NLS-1$ cbHidden.setSelection( !axis.getLineAttributes( ).isVisible( ) ); cbHidden.addSelectionListener( this ); // Axis as Category / Value type cbCategory = new Button( cmpGeneral, SWT.CHECK ); GridData gdCBCategory = new GridData( GridData.HORIZONTAL_ALIGN_BEGINNING ); gdCBCategory.horizontalSpan = 5; cbCategory.setLayoutData( gdCBCategory ); cbCategory.setText( Messages.getString( "BaseAxisAttributeSheetImpl.Lbl.IsCategoryAxis" ) ); //$NON-NLS-1$ cbCategory.setSelection( axis.isCategoryAxis( ) ); cbCategory.addSelectionListener( this ); cbCategory.setEnabled( ScatterChart.TYPE_LITERAL.equals( chart.getType( ) ) ); // Axis Line Color Label lblColor = new Label( cmpGeneral, SWT.NONE ); GridData gdLBLColor = new GridData( GridData.FILL ); lblColor.setLayoutData( gdLBLColor ); lblColor.setText( Messages.getString( "BaseAxisAttributeSheetImpl.Lbl.AxisLineColor" ) ); //$NON-NLS-1$ ColorDefinition clrCurrent = null; if ( axis.eIsSet( ComponentPackage.eINSTANCE.getAxis_LineAttributes( ) ) ) { clrCurrent = axis.getLineAttributes( ).getColor( ); } fccLine = new FillChooserComposite( cmpGeneral, SWT.NONE, getContext( ), clrCurrent, false, false ); GridData gdFCCLine = new GridData( GridData.FILL_BOTH ); gdFCCLine.horizontalSpan = 9; gdFCCLine.widthHint = 260; gdFCCLine.heightHint = fccLine.getPreferredSize( ).y; gdFCCLine.grabExcessVerticalSpace = false; fccLine.setLayoutData( gdFCCLine ); fccLine.addListener( this ); // Axis Orientation Label lblOrientation = new Label( cmpGeneral, SWT.NONE ); GridData gdLBLOrientation = new GridData( GridData.FILL ); gdLBLOrientation.widthHint = 90; gdLBLOrientation.grabExcessVerticalSpace = false; lblOrientation.setLayoutData( gdLBLOrientation ); lblOrientation.setText( Messages.getString( "BaseAxisAttributeSheetImpl.Lbl.Orientation" ) ); //$NON-NLS-1$ cmbOrientation = new Label( cmpGeneral, SWT.SINGLE ); GridData gdCMBOrientation = new GridData( GridData.FILL_HORIZONTAL ); gdCMBOrientation.horizontalSpan = 4; gdCMBOrientation.widthHint = 120; cmbOrientation.setLayoutData( gdCMBOrientation ); cmbOrientation.setText( LiteralHelper.orientationSet.getDisplayNameByName( getAxisForProcessing( ).getOrientation( ) .getName( ) ) ); lblGridCount = new Label( cmpGeneral, SWT.NONE ); GridData gdLBLGridCount = new GridData( ); lblGridCount.setLayoutData( gdLBLGridCount ); lblGridCount.setText( Messages.getString( "BaseAxisDataSheetImpl.Lbl.MinorGridCount" ) ); //$NON-NLS-1$ iscGridCount = new Spinner( cmpGeneral, SWT.BORDER ); { GridData gd = new GridData( GridData.FILL_HORIZONTAL ); gd.horizontalSpan = 3; iscGridCount.setLayoutData( gd ); iscGridCount.setMinimum( 1 ); iscGridCount.setSelection( getAxisForProcessing( ).getScale( ) .getMinorGridsPerUnit( ) ); iscGridCount.addSelectionListener( this ); } // Comments out for deficient support // Axis gap width // cmpGapWidth = new Composite( cmpGeneral, SWT.NONE ); // GridData gdCMPGapWidth = new GridData( GridData.FILL_BOTH ); // gdCMPGapWidth.horizontalSpan = 5; // cmpGapWidth.setLayoutData( gdCMPGapWidth ); // cmpGapWidth.setLayout( glGapWidth ); // // Label lblSpacing = new Label( cmpGapWidth, SWT.NONE ); // GridData gdLBLSpacing = new GridData( GridData.FILL ); // gdLBLSpacing.heightHint = 20; // lblSpacing.setLayoutData( gdLBLSpacing ); // lblSpacing.setText( Messages.getString( // "BaseAxisAttributeSheetImpl.Lbl.GapWidth" ) ); //$NON-NLS-1$ // // iscGapWidth = new IntegerSpinControl( cmpGapWidth, // SWT.NONE, // (int) axis.getGapWidth( ) ); // GridData gdISCSpacing = new GridData( GridData.FILL_BOTH // | GridData.GRAB_HORIZONTAL ); // gdISCSpacing.horizontalSpan = 6; // gdISCSpacing.widthHint = 100; // gdISCSpacing.heightHint = iscGapWidth.getPreferredSize( ).y; // iscGapWidth.setLayoutData( gdISCSpacing ); // iscGapWidth.addListener( this ); // // Label lblSpacingUnit = new Label( cmpGapWidth, SWT.NONE ); // GridData gdLBLSpacingUnit = new GridData( GridData.FILL ); // gdLBLSpacingUnit.widthHint = 20; // gdLBLSpacingUnit.grabExcessHorizontalSpace = false; // lblSpacingUnit.setLayoutData( gdLBLSpacingUnit ); // lblSpacingUnit.setText( Messages.getString( // "BaseAxisAttributeSheetImpl.Lbl.PercentSign" ) ); //$NON-NLS-1$ // Major Grid grpMajor = new Group( cmpContent, SWT.NONE ); GridData gdGRPMajor = new GridData( GridData.FILL_HORIZONTAL ); grpMajor.setLayoutData( gdGRPMajor ); grpMajor.setText( Messages.getString( "BaseAxisAttributeSheetImpl.Lbl.MajorGrid" ) ); //$NON-NLS-1$ grpMajor.setLayout( flMajor ); gacMajor = new GridAttributesComposite( grpMajor, SWT.NONE, axis.getMajorGrid( ), axis.getOrientation( ).getValue( ) ); gacMajor.addListener( this ); // Minor Grid grpMinor = new Group( cmpContent, SWT.NONE ); { grpMinor.setLayout( new FillLayout( ) ); GridData gdGRPMinor = new GridData( GridData.FILL_HORIZONTAL ); grpMinor.setLayoutData( gdGRPMinor ); grpMinor.setText( Messages.getString( "BaseAxisAttributeSheetImpl.Lbl.MinorGrid" ) ); //$NON-NLS-1$ } gacMinor = new GridAttributesComposite( grpMinor, SWT.NONE, axis.getMinorGrid( ), axis.getOrientation( ).getValue( ) ); gacMinor.addListener( this ); setStateOfMinorGrid( getAxisForProcessing( ).getMinorGrid( ) .getLineAttributes( ) .isVisible( ) ); return cmpContent; } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/715c71906e414fba917c5dc22762acad694dcabe/AxisGridLinesSheet.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/wizard/format/popup/axis/AxisGridLinesSheet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
14728,
10322,
12,
14728,
982,
262,
202,
95,
202,
202,
759,
9995,
364,
326,
913,
9635,
202,
202,
6313,
3744,
5118,
1350,
273,
394,
7145,
3744,
12,
11272,
202,
202,
7043,
1350,
18,
2107,
3380,
273,
576,
31,
202,
202,
7043,
1350,
18,
18396,
18006,
273,
1381,
31,
202,
202,
7043,
1350,
18,
17824,
18006,
273,
1381,
31,
202,
202,
7043,
1350,
18,
10107,
2686,
273,
2371,
31,
202,
202,
7043,
1350,
18,
10107,
2384,
273,
2371,
31,
202,
202,
759,
9995,
364,
326,
7470,
9635,
202,
202,
6313,
3744,
5118,
12580,
273,
394,
7145,
3744,
12,
11272,
202,
202,
7043,
12580,
18,
2107,
3380,
273,
1728,
31,
202,
202,
7043,
12580,
18,
18396,
18006,
273,
1381,
31,
202,
202,
7043,
12580,
18,
17824,
18006,
273,
1381,
31,
202,
202,
7043,
12580,
18,
10107,
2686,
273,
1059,
31,
202,
202,
7043,
12580,
18,
10107,
2384,
273,
1059,
31,
202,
202,
759,
9995,
364,
326,
9300,
1835,
9635,
202,
202,
6313,
3744,
5118,
14001,
2384,
273,
394,
7145,
3744,
12,
11272,
202,
202,
7043,
14001,
2384,
18,
2107,
3380,
273,
1725,
31,
202,
202,
7043,
14001,
2384,
18,
18396,
18006,
273,
1381,
31,
202,
202,
7043,
14001,
2384,
18,
10107,
2686,
273,
576,
31,
202,
202,
7043,
14001,
2384,
18,
10107,
2384,
273,
576,
31,
202,
202,
759,
9995,
364,
326,
25977,
7145,
1041,
202,
202,
8026,
3744,
1183,
17581,
273,
394,
14192,
3744,
12,
11272,
202,
202,
759,
12740,
913,
9635,
202,
202,
9625,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
14728,
10322,
12,
14728,
982,
262,
202,
95,
202,
202,
759,
9995,
364,
326,
913,
9635,
202,
202,
6313,
3744,
5118,
1350,
273,
394,
7145,
3744,
12,
11272,
202,
202,
7043,
1350,
18,
2107,
3380,
273,
576,
31,
202,
202,
7043,
1350,
18,
18396,
18006,
273,
1381,
31,
202,
202,
7043,
1350,
18,
17824,
18006,
273,
1381,
31,
202,
202,
7043,
1350,
18,
10107,
2686,
273,
2371,
31,
202,
202,
7043,
1350,
18,
10107,
2384,
273,
2371,
31,
202,
202,
759,
9995,
364,
326,
7470,
9635,
202,
202,
6313,
3744,
5118,
12580,
273,
394,
7145,
3744,
12,
11272,
202,
202,
7043,
12580,
18,
2107,
3380,
273,
1728,
31,
202,
202,
7043,
12580,
18,
18396,
18006,
273,
2
] | ||
if(-1!=xpath.indexOf("tlh")) { | /* if(-1!=xpath.indexOf("tlh")) { | private Set oldKeySet() { String locale = getLocaleID();// synchronized (conn) { try { stmts.keySet.setString(1,locale); ResultSet rs = stmts.keySet.executeQuery(); // TODO: is there a better way to map a ResultSet into a Set? Set s = new HashSet(); System.err.println("@tlh: " + "BEGIN"); while(rs.next()) { String xpath = (xpt.getById(rs.getInt(1))); if(-1!=xpath.indexOf("tlh")) { xpath = xpath.replaceAll("\\[@draft=\"true\"\\]",""); System.err.println("@tlh: " + xpath); } s.add(xpath); // xpath //rs.getString(2); // origXpath } System.err.println("@tlh: " + "END"); return Collections.unmodifiableSet(s); // TODO: 0 // TODO: ??? } catch(SQLException se) { logger.severe("CLDRDBSource: Failed to query source ("+tree + "/" + locale +"): " + SurveyMain.unchainSqlException(se)); return null; }// } } | 27800 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27800/dae1f3be572fb64a04c5ec1a9558f61116895889/CLDRDBSource.java/buggy/tools/java/org/unicode/cldr/web/CLDRDBSource.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1000,
1592,
653,
694,
1435,
288,
3639,
514,
2573,
273,
9595,
734,
5621,
759,
3639,
3852,
261,
4646,
13,
288,
5411,
775,
288,
7734,
15452,
18,
856,
694,
18,
542,
780,
12,
21,
16,
6339,
1769,
7734,
10842,
3597,
273,
15452,
18,
856,
694,
18,
8837,
1138,
5621,
27573,
368,
2660,
30,
353,
1915,
279,
7844,
4031,
358,
852,
279,
10842,
1368,
279,
1000,
35,
7734,
1000,
272,
273,
394,
6847,
5621,
7734,
2332,
18,
370,
18,
8222,
2932,
36,
6172,
76,
30,
315,
397,
315,
16061,
8863,
7734,
1323,
12,
5453,
18,
4285,
10756,
288,
10792,
514,
6748,
273,
261,
92,
337,
18,
588,
5132,
12,
5453,
18,
588,
1702,
12,
21,
3719,
1769,
10792,
1748,
10792,
309,
19236,
21,
5,
33,
18644,
18,
31806,
2932,
6172,
76,
6,
3719,
288,
13491,
6748,
273,
6748,
18,
2079,
1595,
2932,
1695,
14782,
17153,
5189,
3767,
2412,
1695,
65,
3113,
3660,
1769,
13491,
2332,
18,
370,
18,
8222,
2932,
36,
6172,
76,
30,
315,
397,
6748,
1769,
10792,
289,
10792,
272,
18,
1289,
12,
18644,
1769,
368,
6748,
10792,
368,
5453,
18,
588,
780,
12,
22,
1769,
368,
1647,
28137,
7734,
289,
7734,
2332,
18,
370,
18,
8222,
2932,
36,
6172,
76,
30,
315,
397,
315,
4415,
8863,
7734,
327,
5737,
18,
318,
13388,
694,
12,
87,
1769,
7734,
368,
2660,
30,
374,
7734,
368,
2660,
30,
5317,
35,
5411,
289,
1044,
12,
23116,
695,
13,
288,
7734,
1194,
18,
307,
502,
73,
2932,
5017,
6331,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1000,
1592,
653,
694,
1435,
288,
3639,
514,
2573,
273,
9595,
734,
5621,
759,
3639,
3852,
261,
4646,
13,
288,
5411,
775,
288,
7734,
15452,
18,
856,
694,
18,
542,
780,
12,
21,
16,
6339,
1769,
7734,
10842,
3597,
273,
15452,
18,
856,
694,
18,
8837,
1138,
5621,
27573,
368,
2660,
30,
353,
1915,
279,
7844,
4031,
358,
852,
279,
10842,
1368,
279,
1000,
35,
7734,
1000,
272,
273,
394,
6847,
5621,
7734,
2332,
18,
370,
18,
8222,
2932,
36,
6172,
76,
30,
315,
397,
315,
16061,
8863,
7734,
1323,
12,
5453,
18,
4285,
10756,
288,
10792,
514,
6748,
273,
261,
92,
337,
18,
588,
5132,
12,
5453,
18,
588,
1702,
12,
21,
3719,
1769,
10792,
1748,
2
] |
if (jj_3R_21()) { | if (jj_3R_22()) { | final private boolean jj_3_3() { if (jj_scan_token(LBRACKET)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; Token xsp; xsp = jj_scanpos; if (jj_3R_20()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_21()) { jj_scanpos = xsp; if (jj_3R_22()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_23()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(DOUBLEDOT)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; } | 55820 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55820/e128e4125429834f73621c8aa67036ca877e731e/Parser.java/buggy/src/java/org/apache/velocity/runtime/parser/Parser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
67,
23,
1435,
288,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
48,
21217,
3719,
327,
638,
31,
565,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10684,
67,
9871,
917,
422,
10684,
67,
2722,
917,
13,
327,
629,
31,
565,
3155,
619,
1752,
31,
565,
619,
1752,
273,
10684,
67,
9871,
917,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
3462,
10756,
10684,
67,
9871,
917,
273,
619,
1752,
31,
565,
469,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10684,
67,
9871,
917,
422,
10684,
67,
2722,
917,
13,
327,
629,
31,
565,
619,
1752,
273,
10684,
67,
9871,
917,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
3787,
10756,
288,
565,
10684,
67,
9871,
917,
273,
619,
1752,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
3787,
10756,
327,
638,
31,
565,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10684,
67,
9871,
917,
422,
10684,
67,
2722,
917,
13,
327,
629,
31,
565,
289,
469,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10684,
67,
9871,
917,
422,
10684,
67,
2722,
917,
13,
327,
629,
31,
565,
619,
1752,
273,
10684,
67,
9871,
917,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
4366,
10756,
10684,
67,
9871,
917,
273,
619,
1752,
31,
565,
469,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10684,
67,
9871,
917,
422,
10684,
67,
2722,
917,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
727,
3238,
1250,
10684,
67,
23,
67,
23,
1435,
288,
565,
309,
261,
78,
78,
67,
9871,
67,
2316,
12,
48,
21217,
3719,
327,
638,
31,
565,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10684,
67,
9871,
917,
422,
10684,
67,
2722,
917,
13,
327,
629,
31,
565,
3155,
619,
1752,
31,
565,
619,
1752,
273,
10684,
67,
9871,
917,
31,
565,
309,
261,
78,
78,
67,
23,
54,
67,
3462,
10756,
10684,
67,
9871,
917,
273,
619,
1752,
31,
565,
469,
309,
261,
78,
78,
67,
11821,
422,
374,
597,
10684,
67,
9871,
917,
422,
10684,
67,
2722,
917,
13,
327,
629,
31,
565,
619,
1752,
273,
10684,
67,
9871,
917,
31,
565,
309,
261,
2
] |
setOnblur((String) evalAttr("onblur", getOnblur(), String.class)); | setOnblur((String) evalAttr("onblur", getOnblurExpr(), String.class)); | private void evaluateExpressions() throws JspException { try { setAccesskey((String) evalAttr("accessKey", getAccesskey(), String.class)); } catch (NullAttributeException ex) { setAccesskey(null); } try { setAlt((String) evalAttr("alt", getAlt(), String.class)); } catch (NullAttributeException ex) { setAlt(null); } try { setAltKey((String) evalAttr("altKey", getAltKey(), String.class)); } catch (NullAttributeException ex) { setAltKey(null); } try { setDisabled(((Boolean) evalAttr("disabled", getDisabledExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { setDisabled(false); } try { setIndexed(((Boolean) evalAttr("indexed", getIndexedExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { setIndexed(false); } try { setOnblur((String) evalAttr("onblur", getOnblur(), String.class)); } catch (NullAttributeException ex) { setOnblur(null); } try { setOnchange((String) evalAttr("onchange", getOnchange(), String.class)); } catch (NullAttributeException ex) { setOnchange(null); } try { setOnclick((String) evalAttr("onclick", getOnclick(), String.class)); } catch (NullAttributeException ex) { setOnclick(null); } try { setOndblclick((String) evalAttr("ondblclick", getOndblclick(), String.class)); } catch (NullAttributeException ex) { setOndblclick(null); } try { setOnfocus((String) evalAttr("onfocus", getOnfocus(), String.class)); } catch (NullAttributeException ex) { setOnfocus(null); } try { setOnkeydown((String) evalAttr("onkeydown", getOnkeydown(), String.class)); } catch (NullAttributeException ex) { setOnkeydown(null); } try { setOnkeypress((String) evalAttr("onkeypress", getOnkeypress(), String.class)); } catch (NullAttributeException ex) { setOnkeypress(null); } try { setOnkeyup((String) evalAttr("onkeyup", getOnkeyup(), String.class)); } catch (NullAttributeException ex) { setOnkeyup(null); } try { setOnmousedown((String) evalAttr("onmousedown", getOnmousedown(), String.class)); } catch (NullAttributeException ex) { setOnmousedown(null); } try { setOnmousemove((String) evalAttr("onmousemove", getOnmousemove(), String.class)); } catch (NullAttributeException ex) { setOnmousemove(null); } try { setOnmouseout((String) evalAttr("onmouseout", getOnmouseout(), String.class)); } catch (NullAttributeException ex) { setOnmouseout(null); } try { setOnmouseover((String) evalAttr("onmouseover", getOnmouseover(), String.class)); } catch (NullAttributeException ex) { setOnmouseover(null); } try { setOnmouseup((String) evalAttr("onmouseup", getOnmouseup(), String.class)); } catch (NullAttributeException ex) { setOnmouseup(null); } try { setProperty((String) evalAttr("property", getProperty(), String.class)); } catch (NullAttributeException ex) { setProperty(null); } try { setStyle((String) evalAttr("style", getStyle(), String.class)); } catch (NullAttributeException ex) { setStyle(null); } try { setStyleClass((String) evalAttr("styleClass", getStyleClass(), String.class)); } catch (NullAttributeException ex) { setStyleClass(null); } try { setStyleId((String) evalAttr("styleId", getStyleId(), String.class)); } catch (NullAttributeException ex) { setStyleId(null); } try { setTabindex((String) evalAttr("tabindex", getTabindex(), String.class)); } catch (NullAttributeException ex) { setTabindex(null); } try { setTitle((String) evalAttr("title", getTitle(), String.class)); } catch (NullAttributeException ex) { setTitle(null); } try { setTitleKey((String) evalAttr("titleKey", getTitleKey(), String.class)); } catch (NullAttributeException ex) { setTitleKey(null); } try { setValue((String) evalAttr("value", getValue(), String.class)); } catch (NullAttributeException ex) { setValue(null); } } | 48068 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48068/db064e19656421b94aaf753550935d95f44bd5f9/ELSubmitTag.java/clean/contrib/struts-el/src/share/org/apache/strutsel/taglib/html/ELSubmitTag.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
5956,
8927,
1435,
1216,
27485,
288,
3639,
775,
288,
5411,
444,
1862,
856,
12443,
780,
13,
5302,
3843,
2932,
3860,
653,
3113,
21909,
856,
9334,
4766,
6647,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
1862,
856,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
444,
10655,
12443,
780,
13,
5302,
3843,
2932,
2390,
3113,
336,
10655,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
10655,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
444,
10655,
653,
12443,
780,
13,
5302,
3843,
2932,
2390,
653,
3113,
336,
10655,
653,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
10655,
653,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
444,
8853,
12443,
12,
5507,
13,
5302,
3843,
2932,
9278,
3113,
336,
8853,
4742,
9334,
4766,
5411,
3411,
18,
1106,
13,
2934,
13491,
16708,
10663,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
8853,
12,
5743,
1769,
3639,
289,
3639,
775,
288,
5411,
444,
15034,
12443,
12,
5507,
13,
5302,
3843,
2932,
19626,
3113,
8088,
329,
4742,
9334,
4766,
6647,
3411,
18,
1106,
13,
2934,
15604,
16708,
10663,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
15034,
12,
5743,
1769,
3639,
289,
3639,
775,
288,
5411,
22131,
27065,
12443,
780,
13,
5302,
3843,
2932,
265,
27065,
3113,
30070,
27065,
4742,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
5956,
8927,
1435,
1216,
27485,
288,
3639,
775,
288,
5411,
444,
1862,
856,
12443,
780,
13,
5302,
3843,
2932,
3860,
653,
3113,
21909,
856,
9334,
4766,
6647,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
1862,
856,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
444,
10655,
12443,
780,
13,
5302,
3843,
2932,
2390,
3113,
336,
10655,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
5411,
444,
10655,
12,
2011,
1769,
3639,
289,
3639,
775,
288,
5411,
444,
10655,
653,
12443,
780,
13,
5302,
3843,
2932,
2390,
653,
3113,
336,
10655,
653,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
2
] |
bits[0] = (byte)base; BigInteger bigBase = new BigInteger(bits); System.out.println("s2 = " + s2 + ", e = " + e + ", b = " + b.toString()); System.out.println("mhi = " + mhi.toString()); System.out.println("mlo = " + mlo.toString()); | BigInteger bigBase = BigInteger.valueOf(base); | public static String JS_dtobasestr(int base, double d) { char[] buffer; /* The output string */ int p; /* index to current position in the buffer */ int pInt; /* index to the beginning of the integer part of the string */ int q; int digit; double di; /* d truncated to an integer */ double df; /* The fractional part of d */// JS_ASSERT(base >= 2 && base <= 36); buffer = new char[DTOBASESTR_BUFFER_SIZE]; p = 0; if (d < 0.0) { buffer[p++] = '-'; d = -d; } /* Check for Infinity and NaN */ if (Double.isNaN(d)) return "NaN"; else if (Double.isInfinite(d)) return "Infinity"; /* Output the integer part of d with the digits in reverse order. */ pInt = p; di = (int)d; BigInteger b = new BigInteger(byteValue((long)di)); String intDigits = b.toString(base); intDigits.getChars(0, intDigits.length(), buffer, p); p += intDigits.length(); df = d - di; if (df != 0.0) { /* We have a fraction. */ byte bits[] = new byte[8]; buffer[p++] = '.'; long dBits = Double.doubleToLongBits(d); int word0 = (int)(dBits >> 32); int word1 = (int)(dBits); int e = d2b(df, bits); b = new BigInteger(bits);// JS_ASSERT(e < 0); /* At this point df = b * 2^e. e must be less than zero because 0 < df < 1. */ int s2 = -(word0 >>> Exp_shift1 & Exp_mask >> Exp_shift1); if (s2 == 0) s2 = -1; s2 += Bias + P; /* 1/2^s2 = (nextDouble(d) - d)/2 */// JS_ASSERT(-s2 < e); bits = new byte[1]; bits[0] = 1; BigInteger mlo = new BigInteger(bits); BigInteger mhi = mlo; if ((word1 == 0) && ((word0 & Bndry_mask) == 0) && ((word0 & (Exp_mask & Exp_mask << 1)) != 0)) { /* The special case. Here we want to be within a quarter of the last input significant digit instead of one half of it when the output string's value is less than d. */ s2 += Log2P; bits[0] = 1<<Log2P; mhi = new BigInteger(bits); } b = b.shiftLeft(e + s2); bits[0] = 1; BigInteger s = new BigInteger(bits); s = s.shiftLeft(s2); /* At this point we have the following: * s = 2^s2; * 1 > df = b/2^s2 > 0; * (d - prevDouble(d))/2 = mlo/2^s2; * (nextDouble(d) - d)/2 = mhi/2^s2. */ bits[0] = (byte)base; // s'ok since base < 36 BigInteger bigBase = new BigInteger(bits); System.out.println("s2 = " + s2 + ", e = " + e + ", b = " + b.toString()); System.out.println("mhi = " + mhi.toString()); System.out.println("mlo = " + mlo.toString()); boolean done = false; do { b = b.multiply(bigBase); BigInteger[] divResult = b.divideAndRemainder(s); b = divResult[1]; digit = (char)(divResult[0].intValue()); if (mlo == mhi) mlo = mhi = mlo.multiply(bigBase); else { mlo = mlo.multiply(bigBase); mhi = mhi.multiply(bigBase); } /* Do we yet have the shortest string that will round to d? */ int j = b.compareTo(mlo); /* j is b/2^s2 compared with mlo/2^s2. */ BigInteger delta = s.subtract(mhi); int j1 = (delta.signum() <= 0) ? 1 : b.compareTo(delta); /* j1 is b/2^s2 compared with 1 - mhi/2^s2. */ if (j1 == 0 && ((word1 & 1) == 0)) { if (j > 0) digit++; done = true; } else if (j < 0 || (j == 0 && ((word1 & 1) == 0))) { if (j1 > 0) { /* Either dig or dig+1 would work here as the least significant digit. Use whichever would produce an output value closer to d. */ b = b.shiftLeft(1); j1 = b.compareTo(s); if (j1 > 0) /* The even test (|| (j1 == 0 && (digit & 1))) is not here because it messes up odd base output * such as 3.5 in base 3. */ digit++; } done = true; } else if (j1 > 0) { digit++; done = true; }// JS_ASSERT(digit < (uint32)base); buffer[p++] = BASEDIGIT(digit); } while (!done); } return new String(buffer, 0, p); } | 47345 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47345/be6d0c85ffa6f2cc645c0516ebad8777e902b1af/DToA.java/clean/src/org/mozilla/javascript/DToA.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
6756,
67,
72,
869,
18602,
313,
12,
474,
1026,
16,
1645,
302,
13,
565,
288,
3639,
1149,
8526,
1613,
31,
4202,
1748,
1021,
876,
533,
1195,
3639,
509,
293,
31,
9079,
1748,
770,
358,
783,
1754,
316,
326,
1613,
1195,
3639,
509,
293,
1702,
31,
5411,
1748,
770,
358,
326,
8435,
434,
326,
3571,
1087,
434,
326,
533,
1195,
3639,
509,
1043,
31,
3639,
509,
8035,
31,
3639,
1645,
4314,
31,
6647,
1748,
302,
15282,
358,
392,
3571,
1195,
3639,
1645,
3013,
31,
6647,
1748,
1021,
20462,
1087,
434,
302,
380,
28111,
3639,
6756,
67,
8423,
11539,
12,
1969,
1545,
576,
597,
1026,
1648,
6580,
1769,
3639,
1613,
273,
394,
1149,
63,
19792,
8369,
3902,
67,
11302,
67,
4574,
15533,
3639,
293,
273,
374,
31,
3639,
309,
261,
72,
411,
374,
18,
20,
13,
288,
5411,
1613,
63,
84,
9904,
65,
273,
4014,
31,
5411,
302,
273,
300,
72,
31,
3639,
289,
3639,
1748,
2073,
364,
19454,
471,
10180,
1195,
3639,
309,
261,
5265,
18,
291,
21172,
12,
72,
3719,
5411,
327,
315,
21172,
14432,
3639,
469,
5411,
309,
261,
5265,
18,
291,
382,
9551,
12,
72,
3719,
7734,
327,
315,
382,
7850,
14432,
3639,
1748,
3633,
326,
3571,
1087,
434,
302,
598,
326,
6815,
316,
4219,
1353,
18,
1195,
3639,
293,
1702,
273,
293,
31,
3639,
4314,
273,
261,
474,
13,
72,
31,
3639,
10246,
324,
273,
394,
10246,
12,
7229,
620,
12443,
5748,
13,
3211,
10019,
3639,
514,
509,
9537,
273,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
6756,
67,
72,
869,
18602,
313,
12,
474,
1026,
16,
1645,
302,
13,
565,
288,
3639,
1149,
8526,
1613,
31,
4202,
1748,
1021,
876,
533,
1195,
3639,
509,
293,
31,
9079,
1748,
770,
358,
783,
1754,
316,
326,
1613,
1195,
3639,
509,
293,
1702,
31,
5411,
1748,
770,
358,
326,
8435,
434,
326,
3571,
1087,
434,
326,
533,
1195,
3639,
509,
1043,
31,
3639,
509,
8035,
31,
3639,
1645,
4314,
31,
6647,
1748,
302,
15282,
358,
392,
3571,
1195,
3639,
1645,
3013,
31,
6647,
1748,
1021,
20462,
1087,
434,
302,
380,
28111,
3639,
6756,
67,
8423,
11539,
12,
1969,
1545,
576,
597,
1026,
1648,
6580,
1769,
3639,
1613,
273,
394,
1149,
63,
19792,
8369,
3902,
2
] |
public org.quickfix.field.NoPartyIDs getNoPartyIDs() throws FieldNotFound { org.quickfix.field.NoPartyIDs value = new org.quickfix.field.NoPartyIDs(); | public quickfix.field.NoPartyIDs getNoPartyIDs() throws FieldNotFound { quickfix.field.NoPartyIDs value = new quickfix.field.NoPartyIDs(); | public org.quickfix.field.NoPartyIDs getNoPartyIDs() throws FieldNotFound { org.quickfix.field.NoPartyIDs value = new org.quickfix.field.NoPartyIDs(); getField(value); return value; } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/NewOrderCross.java/clean/src/java/src/quickfix/fix43/NewOrderCross.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
2279,
17619,
5103,
336,
2279,
17619,
5103,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
2279,
17619,
5103,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
2279,
17619,
5103,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
2279,
17619,
5103,
336,
2279,
17619,
5103,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
2279,
17619,
5103,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
2279,
17619,
5103,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (Line2D.linesIntersect(b0, a0, b3, a3, 0.0, 0.0, distance, 0.0)) | if (Line2D.linesIntersect(b0, a0, b3, a3, EPSILON, 0.0, distance, 0.0)) | private int getAxisIntersections(double x, double y, boolean useYaxis, double distance) { int nCrossings = 0; double a0; double a1; double a2; double a3; double b0; double b1; double b2; double b3; double[] r = new double[4]; int nRoots; a0 = a3 = 0.0; if (useYaxis) { a0 = getY1() - y; a1 = getCtrlY1() - y; a2 = getCtrlY2() - y; a3 = getY2() - y; b0 = getX1() - x; b1 = getCtrlX1() - x; b2 = getCtrlX2() - x; b3 = getX2() - x; } else { a0 = getX1() - x; a1 = getCtrlX1() - x; a2 = getCtrlX2() - x; a3 = getX2() - x; b0 = getY1() - y; b1 = getCtrlY1() - y; b2 = getCtrlY2() - y; b3 = getY2() - y; } /* If the axis intersects a start/endpoint, shift it up by some small amount to guarantee the line is 'inside' If this is not done, bad behaviour may result for points on that axis.*/ if (a0 == 0.0 || a3 == 0.0) { double small = getFlatness() * (1E-10); if (a0 == 0.0) a0 += small; if (a3 == 0.0) a3 += small; } if (useYaxis) { if (Line2D.linesIntersect(b0, a0, b3, a3, 0.0, 0.0, distance, 0.0)) nCrossings++; } else { if (Line2D.linesIntersect(a0, b0, a3, b3, 0.0, 0.0, 0.0, distance)) nCrossings++; } r[0] = a0; r[1] = 3 * (a1 - a0); r[2] = 3 * (a2 + a0 - 2 * a1); r[3] = a3 - 3 * a2 + 3 * a1 - a0; if ((nRoots = solveCubic(r)) != 0) for (int i = 0; i < nRoots; i++) { double t = r[i]; if (t >= 0.0 && t <= 1.0) { double crossing = -(t * t * t) * (b0 - 3 * b1 + 3 * b2 - b3) + 3 * t * t * (b0 - 2 * b1 + b2) + 3 * t * (b1 - b0) + b0; if (crossing > 0.0 && crossing <= distance) nCrossings++; } } return (nCrossings); } | 47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/aab60a3ef7e9f5a3ba9f1dd363d731dc76c24fc5/CubicCurve2D.java/buggy/java/awt/geom/CubicCurve2D.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
509,
4506,
5674,
2465,
11657,
12,
9056,
619,
16,
1645,
677,
16,
1250,
999,
61,
4890,
16,
4766,
282,
1645,
3888,
13,
225,
288,
565,
509,
290,
13941,
899,
273,
374,
31,
565,
1645,
279,
20,
31,
565,
1645,
279,
21,
31,
565,
1645,
279,
22,
31,
565,
1645,
279,
23,
31,
565,
1645,
324,
20,
31,
565,
1645,
324,
21,
31,
565,
1645,
324,
22,
31,
565,
1645,
324,
23,
31,
565,
1645,
8526,
436,
273,
394,
1645,
63,
24,
15533,
565,
509,
290,
17540,
31,
565,
279,
20,
273,
279,
23,
273,
374,
18,
20,
31,
565,
309,
261,
1202,
61,
4890,
13,
1377,
288,
202,
69,
20,
273,
10448,
21,
1435,
300,
677,
31,
202,
69,
21,
273,
1927,
5170,
61,
21,
1435,
300,
677,
31,
202,
69,
22,
273,
1927,
5170,
61,
22,
1435,
300,
677,
31,
202,
69,
23,
273,
10448,
22,
1435,
300,
677,
31,
202,
70,
20,
273,
6538,
21,
1435,
300,
619,
31,
202,
70,
21,
273,
1927,
5170,
60,
21,
1435,
300,
619,
31,
202,
70,
22,
273,
1927,
5170,
60,
22,
1435,
300,
619,
31,
202,
70,
23,
273,
6538,
22,
1435,
300,
619,
31,
1377,
289,
565,
469,
1377,
288,
202,
69,
20,
273,
6538,
21,
1435,
300,
619,
31,
202,
69,
21,
273,
1927,
5170,
60,
21,
1435,
300,
619,
31,
202,
69,
22,
273,
1927,
5170,
60,
22,
1435,
300,
619,
31,
202,
69,
23,
273,
6538,
22,
1435,
300,
619,
31,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
509,
4506,
5674,
2465,
11657,
12,
9056,
619,
16,
1645,
677,
16,
1250,
999,
61,
4890,
16,
4766,
282,
1645,
3888,
13,
225,
288,
565,
509,
290,
13941,
899,
273,
374,
31,
565,
1645,
279,
20,
31,
565,
1645,
279,
21,
31,
565,
1645,
279,
22,
31,
565,
1645,
279,
23,
31,
565,
1645,
324,
20,
31,
565,
1645,
324,
21,
31,
565,
1645,
324,
22,
31,
565,
1645,
324,
23,
31,
565,
1645,
8526,
436,
273,
394,
1645,
63,
24,
15533,
565,
509,
290,
17540,
31,
565,
279,
20,
273,
279,
23,
273,
374,
18,
20,
31,
565,
309,
261,
1202,
61,
4890,
13,
1377,
288,
202,
69,
20,
273,
10448,
21,
1435,
300,
677,
31,
2
] |
ScriptRuntime.getMessage("msg.arg.isnt.array", null), | ScriptRuntime.getMessage0("msg.arg.isnt.array"), | public static Object jsFunction_apply(Context cx, Scriptable thisObj, Object[] args, Function funObj) throws JavaScriptException { if (args.length != 2) return jsFunction_call(cx, thisObj, args, funObj); Object val = thisObj.getDefaultValue(ScriptRuntime.FunctionClass); Scriptable newThis = args[0] == null ? ScriptableObject.getTopLevelScope(thisObj) : ScriptRuntime.toObject(funObj, args[0]); Object[] newArgs; if (args.length > 1) { if ((args[1] instanceof NativeArray) || (args[1] instanceof Arguments)) newArgs = cx.getElements((Scriptable) args[1]); else throw NativeGlobal.constructError( cx, "TypeError", ScriptRuntime.getMessage("msg.arg.isnt.array", null), thisObj); } else newArgs = new Object[0]; return ScriptRuntime.call(cx, val, newThis, newArgs, newThis); } | 12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/46510f022a3d3cee65ac0aacd81e3207a411941f/NativeFunction.java/clean/js/rhino/src/org/mozilla/javascript/NativeFunction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
3828,
2083,
67,
9010,
12,
1042,
9494,
16,
22780,
15261,
16,
4766,
1850,
1033,
8526,
833,
16,
4284,
9831,
2675,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
309,
261,
1968,
18,
2469,
480,
576,
13,
5411,
327,
3828,
2083,
67,
1991,
12,
71,
92,
16,
15261,
16,
833,
16,
9831,
2675,
1769,
3639,
1033,
1244,
273,
15261,
18,
588,
15646,
12,
3651,
5576,
18,
2083,
797,
1769,
3639,
22780,
394,
2503,
273,
833,
63,
20,
65,
422,
446,
11794,
692,
22780,
921,
18,
588,
27046,
3876,
12,
2211,
2675,
13,
11794,
294,
7739,
5576,
18,
869,
921,
12,
12125,
2675,
16,
833,
63,
20,
19226,
3639,
1033,
8526,
394,
2615,
31,
3639,
309,
261,
1968,
18,
2469,
405,
404,
13,
288,
5411,
309,
14015,
1968,
63,
21,
65,
1276,
16717,
1076,
13,
5397,
747,
261,
1968,
63,
21,
65,
1276,
13599,
3719,
7734,
394,
2615,
273,
9494,
18,
588,
3471,
12443,
3651,
429,
13,
833,
63,
21,
19226,
5411,
469,
7734,
604,
16717,
5160,
18,
10062,
668,
12,
13491,
9494,
16,
315,
19030,
3113,
13491,
7739,
5576,
18,
24906,
20,
2932,
3576,
18,
3175,
18,
291,
496,
18,
1126,
6,
3631,
13491,
15261,
1769,
10792,
289,
3639,
469,
5411,
394,
2615,
273,
394,
1033,
63,
20,
15533,
3639,
327,
7739,
5576,
18,
1991,
12,
71,
92,
16,
1244,
16,
394,
2503,
16,
394,
2615,
16,
394,
2503,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
3828,
2083,
67,
9010,
12,
1042,
9494,
16,
22780,
15261,
16,
4766,
1850,
1033,
8526,
833,
16,
4284,
9831,
2675,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
309,
261,
1968,
18,
2469,
480,
576,
13,
5411,
327,
3828,
2083,
67,
1991,
12,
71,
92,
16,
15261,
16,
833,
16,
9831,
2675,
1769,
3639,
1033,
1244,
273,
15261,
18,
588,
15646,
12,
3651,
5576,
18,
2083,
797,
1769,
3639,
22780,
394,
2503,
273,
833,
63,
20,
65,
422,
446,
11794,
692,
22780,
921,
18,
588,
27046,
3876,
12,
2211,
2675,
13,
11794,
294,
7739,
5576,
18,
869,
921,
12,
12125,
2675,
16,
833,
63,
20,
19226,
3639,
1033,
8526,
394,
2615,
31,
3639,
309,
261,
2
] |
public Object fetch(Object[] fields,Object identity) | public Object fetch(Object[] fields,Object identity) | public Object fetch(Object[] fields,Object identity) throws ObjectNotFoundException, PersistenceException { int count; Object stamp = null; boolean newId = false; Object[] sqlIdentity = new Object[_engine._ids.length]; try { // Load all the fields of the object including one-one relations Object[] temp = new Object[10]; // bad pratice, assume complex field smaller than 10 count = _engine._ids.length; // load all the fields for ( int i = 0 ; i < _engine._fields.length ; ++i ) { if ( !_engine._fields[i].load ) continue; if ( !_engine._fields[i].multi ) { boolean notNull = false; if ( _engine._fields[i].columns.length == 1 ) { Object value = _engine.toJava( i, 0, SQLTypes.getObject( _rs, count++, _engine._fields[i].columns[0].sqlType ) ); if ( !_rs.wasNull() ) fields[i] = value; else fields[i] = null; } else { Complex inner = (Complex) fields[i]; for ( int j=0; j<_engine._fields[i].columns.length; j++ ) { Object value = _engine.toJava( i, j, SQLTypes.getObject( _rs, count++, _engine._fields[i].columns[j].sqlType ) ); if ( !_rs.wasNull() ) { temp[j] = value ; notNull = true; } else { temp[j] = null; } } fields[i] = null; if ( notNull ) fields[i] = new Complex( _engine._fields[i].columns.length, temp ); } } else { ArrayList res = new ArrayList(); boolean notNull = false; for ( int j=0; j<_engine._fields[i].columns.length; j++ ) { Object value = _engine.toJava( i, j, SQLTypes.getObject( _rs, count, _engine._fields[i].columns[j].sqlType ) ); if ( !_rs.wasNull() ) { temp[j] = value; notNull = true; } else { temp[j] = null; } count++; } if ( notNull ) { if ( _engine._fields[i].columns.length == 1 ) res.add( temp[0] ); else res.add( new Complex( _engine._fields[i].columns.length, temp ) ); } fields[i] = res; } } // add other one-to-many fields if ( !_resultSetDone && _rs.next() ) { count = 1; if ( _lastIdentity == null ) _lastIdentity = new Object[_engine._ids.length]; // check if the table row consists data of the interested identity for ( int i=0; i<_lastIdentity.length; i++ ) { Object o = SQLTypes.getObject( _rs, count, _identSqlType[i] ); if ( !o.equals( sqlIdentity[i] ) ) { newId = true; _lastIdentity[i] = o; } count++; } // move forward in the ResultSet, until we see // another identity while ( !newId ) { for ( int i = 0 ; i < _engine._fields.length ; ++i ) { if ( !_engine._fields[i].load ) continue; if ( _engine._fields[i].multi ) { ArrayList res = (ArrayList)fields[i]; boolean notNull = false; for ( int j=0; j<_engine._fields[i].columns.length; j++ ) { Object value = _engine.toJava( i, j, SQLTypes.getObject( _rs, count, _engine._fields[i].columns[j].sqlType ) ); if ( !_rs.wasNull() ) { temp[j] = value ; notNull = true; } else { temp[j] = null; } count++; } if ( notNull ) { if ( _engine._fields[i].columns.length == 1 ) { if ( !res.contains( temp[0] ) ) res.add( temp[0] ); } else { Complex com = new Complex( _engine._fields[i].columns.length, temp ); if ( !res.contains( com ) ) res.add( new Complex( _engine._fields[i].columns.length, temp ) ); } } } else { // non-multi fields have to be done one only // so, skip to next count += _engine._fields[i].columns.length; } } if ( _rs.next() ) { // check if the table row consists data of the interested identity for ( int i=0; i<_lastIdentity.length; i++ ) { Object o = SQLTypes.getObject( _rs, count, _identSqlType[i] ); if ( !o.equals( sqlIdentity[i] ) ) { newId = true; _lastIdentity[i] = o; } count++; } } else { _resultSetDone = true; _lastIdentity = null; } } } else { _lastIdentity = null; _resultSetDone = true; } } catch ( SQLException except ) { throw new PersistenceException( Messages.format("persist.nested", except) ); } return stamp; } | 3614 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3614/de4eb7bb5d2ecddf85d11a2b5cf8b69f388e96a3/SQLEngine.java/buggy/trunk/castor-2002/castor/src/main/org/exolab/castor/jdo/engine/SQLEngine.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
1033,
2158,
12,
921,
8526,
1466,
16,
921,
4215,
13,
1171,
1216,
1033,
3990,
16,
13381,
503,
288,
5411,
509,
565,
1056,
31,
5411,
1033,
14429,
273,
446,
31,
5411,
1250,
27598,
273,
629,
31,
5411,
1033,
8526,
1847,
4334,
273,
394,
1033,
63,
67,
8944,
6315,
2232,
18,
2469,
15533,
5411,
775,
288,
7734,
368,
4444,
777,
326,
1466,
434,
326,
733,
6508,
1245,
17,
476,
7467,
7734,
1033,
8526,
1906,
273,
394,
1033,
63,
2163,
15533,
225,
368,
5570,
846,
270,
1812,
16,
6750,
7233,
652,
10648,
2353,
1728,
7734,
1056,
273,
389,
8944,
6315,
2232,
18,
2469,
31,
7734,
368,
1262,
777,
326,
1466,
7734,
364,
261,
509,
277,
273,
374,
274,
277,
411,
389,
8944,
6315,
2821,
18,
2469,
274,
965,
77,
225,
262,
288,
10792,
309,
261,
401,
67,
8944,
6315,
2821,
63,
77,
8009,
945,
262,
13491,
1324,
31,
10792,
309,
261,
401,
67,
8944,
6315,
2821,
63,
77,
8009,
7027,
262,
288,
13491,
1250,
7713,
273,
629,
31,
13491,
309,
261,
389,
8944,
6315,
2821,
63,
77,
8009,
5112,
18,
2469,
422,
404,
262,
288,
18701,
1033,
460,
273,
389,
8944,
18,
869,
5852,
12,
277,
16,
374,
16,
3063,
2016,
18,
588,
921,
12,
389,
5453,
16,
1056,
9904,
16,
389,
8944,
6315,
2821,
63,
77,
8009,
5112,
63,
20,
8009,
4669,
559,
262,
11272,
18701,
309,
261,
401,
67,
5453,
18,
17416,
2041,
1435,
262,
27573,
1466,
63,
77,
65,
273,
460,
31,
18701,
469,
27573,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
1033,
2158,
12,
921,
8526,
1466,
16,
921,
4215,
13,
1171,
1216,
1033,
3990,
16,
13381,
503,
288,
5411,
509,
565,
1056,
31,
5411,
1033,
14429,
273,
446,
31,
5411,
1250,
27598,
273,
629,
31,
5411,
1033,
8526,
1847,
4334,
273,
394,
1033,
63,
67,
8944,
6315,
2232,
18,
2469,
15533,
5411,
775,
288,
7734,
368,
4444,
777,
326,
1466,
434,
326,
733,
6508,
1245,
17,
476,
7467,
7734,
1033,
8526,
1906,
273,
394,
1033,
63,
2163,
15533,
225,
368,
5570,
846,
270,
1812,
16,
6750,
7233,
652,
10648,
2353,
1728,
7734,
1056,
273,
389,
8944,
6315,
2232,
18,
2469,
31,
7734,
368,
1262,
777,
326,
1466,
7734,
364,
261,
509,
277,
273,
374,
274,
277,
411,
2
] |
try { setOnkeydown((String) evalAttr("onkeydown", getOnkeydownExpr(), String.class)); } catch (NullAttributeException ex) { } | if ((string = EvalHelper.evalString("onfocus", getOnfocusExpr(), this, pageContext)) != null) setOnfocus(string); | private void evaluateExpressions() throws JspException { try { setAccesskey((String) evalAttr("accesskey", getAccesskeyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setAlt((String) evalAttr("alt", getAltExpr(), String.class)); } catch (NullAttributeException ex) { } try { setAltKey((String) evalAttr("altKey", getAltKeyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setDisabled(((Boolean) evalAttr("disabled", getDisabledExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { } try { setIndexed(((Boolean) evalAttr("indexed", getIndexedExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { } try { setMaxlength((String) evalAttr("maxlength", getMaxlengthExpr(), String.class)); } catch (NullAttributeException ex) { } try { setName((String) evalAttr("name", getNameExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnblur((String) evalAttr("onblur", getOnblurExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnchange((String) evalAttr("onchange", getOnchangeExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnclick((String) evalAttr("onclick", getOnclickExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOndblclick((String) evalAttr("ondblclick", getOndblclickExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnfocus((String) evalAttr("onfocus", getOnfocusExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnkeydown((String) evalAttr("onkeydown", getOnkeydownExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnkeypress((String) evalAttr("onkeypress", getOnkeypressExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnkeyup((String) evalAttr("onkeyup", getOnkeyupExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmousedown((String) evalAttr("onmousedown", getOnmousedownExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmousemove((String) evalAttr("onmousemove", getOnmousemoveExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmouseout((String) evalAttr("onmouseout", getOnmouseoutExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmouseover((String) evalAttr("onmouseover", getOnmouseoverExpr(), String.class)); } catch (NullAttributeException ex) { } try { setOnmouseup((String) evalAttr("onmouseup", getOnmouseupExpr(), String.class)); } catch (NullAttributeException ex) { } try { setProperty((String) evalAttr("property", getPropertyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setReadonly(((Boolean) evalAttr("readonly", getReadonlyExpr(), Boolean.class)). booleanValue()); } catch (NullAttributeException ex) { } try { setStyle((String) evalAttr("style", getStyleExpr(), String.class)); } catch (NullAttributeException ex) { } try { setSize((String) evalAttr("size", getSizeExpr(), String.class)); } catch (NullAttributeException ex) { } try { setStyleClass((String) evalAttr("styleClass", getStyleClassExpr(), String.class)); } catch (NullAttributeException ex) { } try { setStyleId((String) evalAttr("styleId", getStyleIdExpr(), String.class)); } catch (NullAttributeException ex) { } try { setTabindex((String) evalAttr("tabindex", getTabindexExpr(), String.class)); } catch (NullAttributeException ex) { } try { setTitle((String) evalAttr("title", getTitleExpr(), String.class)); } catch (NullAttributeException ex) { } try { setTitleKey((String) evalAttr("titleKey", getTitleKeyExpr(), String.class)); } catch (NullAttributeException ex) { } try { setValue((String) evalAttr("value", getValueExpr(), String.class)); } catch (NullAttributeException ex) { } } | 48068 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48068/022bd23c954cf673e53731849d562b3c295473f1/ELTextTag.java/clean/contrib/struts-el/src/share/org/apache/strutsel/taglib/html/ELTextTag.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
5956,
8927,
1435,
1216,
27485,
288,
3639,
775,
288,
5411,
444,
1862,
856,
12443,
780,
13,
5302,
3843,
2932,
3860,
856,
3113,
21909,
856,
4742,
9334,
4766,
6647,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
444,
10655,
12443,
780,
13,
5302,
3843,
2932,
2390,
3113,
336,
10655,
4742,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
444,
10655,
653,
12443,
780,
13,
5302,
3843,
2932,
2390,
653,
3113,
336,
10655,
653,
4742,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
444,
8853,
12443,
12,
5507,
13,
5302,
3843,
2932,
9278,
3113,
336,
8853,
4742,
9334,
4766,
5411,
3411,
18,
1106,
13,
2934,
13491,
16708,
10663,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
444,
15034,
12443,
12,
5507,
13,
5302,
3843,
2932,
19626,
3113,
8088,
329,
4742,
9334,
4766,
6647,
3411,
18,
1106,
13,
2934,
15604,
16708,
10663,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
10851,
2469,
12443,
780,
13,
5302,
3843,
2932,
27875,
3113,
7288,
2469,
4742,
9334,
4766,
6647,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
6788,
12443,
780,
13,
5302,
3843,
2932,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
5956,
8927,
1435,
1216,
27485,
288,
3639,
775,
288,
5411,
444,
1862,
856,
12443,
780,
13,
5302,
3843,
2932,
3860,
856,
3113,
21909,
856,
4742,
9334,
4766,
6647,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
444,
10655,
12443,
780,
13,
5302,
3843,
2932,
2390,
3113,
336,
10655,
4742,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
775,
288,
5411,
444,
10655,
653,
12443,
780,
13,
5302,
3843,
2932,
2390,
653,
3113,
336,
10655,
653,
4742,
9334,
514,
18,
1106,
10019,
3639,
289,
1044,
261,
2041,
1499,
503,
431,
13,
288,
3639,
289,
3639,
2
] |
templateIdScopes.pop(); | templateIdScopes.pop(); | protected List templateArgumentList() throws EndOfFileException, BacktrackException { IToken start = LA(1); int startingOffset = start.getOffset(); int endOffset = 0; start = null; List list = new ArrayList(); boolean completedArg = false; boolean failed = false; templateIdScopes.push(IToken.tLT); while (LT(1) != IToken.tGT && LT(1) != IToken.tEOC) { completedArg = false; IToken mark = mark(); try { IASTTypeId typeId = typeId(false, false); list.add(typeId); completedArg = true; } catch (BacktrackException e) { backup(mark); } /* * catch (ASTSemanticException e) { backup(mark); } */ if (!completedArg) { try { IASTExpression expression = assignmentExpression(); list.add(expression); completedArg = true; } catch (BacktrackException e) { backup(mark); } } if (LT(1) == IToken.tCOMMA) { consume(); } else if (LT(1) != IToken.tGT && LT(1) != IToken.tEOC) { failed = true; endOffset = LA(1).getEndOffset(); break; } } templateIdScopes.pop(); if (failed) throwBacktrack(startingOffset, endOffset - startingOffset); return list; } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/c4c31b724fe73e8f69d2d4f9fcd98d3ff359a2d3/GNUCPPSourceParser.java/clean/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/GNUCPPSourceParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
987,
1542,
1379,
682,
1435,
1216,
4403,
951,
812,
503,
16,
1082,
202,
2711,
4101,
503,
288,
202,
202,
1285,
969,
787,
273,
2928,
12,
21,
1769,
202,
202,
474,
5023,
2335,
273,
787,
18,
588,
2335,
5621,
202,
202,
474,
25507,
273,
374,
31,
202,
202,
1937,
273,
446,
31,
202,
202,
682,
666,
273,
394,
2407,
5621,
202,
202,
6494,
5951,
4117,
273,
629,
31,
202,
202,
6494,
2535,
273,
629,
31,
202,
202,
3202,
548,
12668,
18,
6206,
12,
1285,
969,
18,
88,
12050,
1769,
202,
202,
17523,
261,
12050,
12,
21,
13,
480,
467,
1345,
18,
88,
16506,
597,
11807,
12,
21,
13,
480,
467,
1345,
18,
88,
41,
10809,
13,
288,
1082,
202,
13615,
4117,
273,
629,
31,
1082,
202,
1285,
969,
2267,
273,
2267,
5621,
1082,
202,
698,
288,
9506,
202,
45,
9053,
11731,
24361,
273,
24361,
12,
5743,
16,
629,
1769,
9506,
202,
1098,
18,
1289,
12,
723,
548,
1769,
9506,
202,
13615,
4117,
273,
638,
31,
1082,
202,
97,
1044,
261,
2711,
4101,
503,
425,
13,
288,
9506,
202,
9572,
12,
3355,
1769,
1082,
202,
97,
1748,
6862,
380,
1044,
261,
9053,
13185,
9941,
503,
425,
13,
288,
5114,
12,
3355,
1769,
289,
6862,
1195,
1082,
202,
430,
16051,
13615,
4117,
13,
288,
9506,
202,
698,
288,
6862,
202,
45,
9053,
2300,
2652,
273,
6661,
2300,
5621,
6862,
202,
1098,
18,
1289,
12,
8692,
1769,
6862,
202,
13615,
4117,
273,
638,
31,
9506,
202,
97,
1044,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
987,
1542,
1379,
682,
1435,
1216,
4403,
951,
812,
503,
16,
1082,
202,
2711,
4101,
503,
288,
202,
202,
1285,
969,
787,
273,
2928,
12,
21,
1769,
202,
202,
474,
5023,
2335,
273,
787,
18,
588,
2335,
5621,
202,
202,
474,
25507,
273,
374,
31,
202,
202,
1937,
273,
446,
31,
202,
202,
682,
666,
273,
394,
2407,
5621,
202,
202,
6494,
5951,
4117,
273,
629,
31,
202,
202,
6494,
2535,
273,
629,
31,
202,
202,
3202,
548,
12668,
18,
6206,
12,
1285,
969,
18,
88,
12050,
1769,
202,
202,
17523,
261,
12050,
12,
21,
13,
480,
467,
1345,
18,
88,
16506,
597,
11807,
12,
21,
13,
480,
467,
1345,
18,
88,
41,
10809,
13,
288,
2
] |
return new PipeSpec[0]; | return pipeSpec; | protected PipeSpec[] getPipeSpecs() { return new PipeSpec[0]; } | 49954 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49954/8fd3d5010acab502bb6f2b795ec89c1eff32abb4/AirgapTransformImpl.java/clean/tran/airgap/main/com/metavize/tran/airgap/AirgapTransformImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
20024,
1990,
8526,
1689,
3151,
15999,
1435,
565,
288,
3639,
327,
6010,
1990,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
20024,
1990,
8526,
1689,
3151,
15999,
1435,
565,
288,
3639,
327,
6010,
1990,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
log.error( "EntityGroupNameFinderFactory.newFinder(): " + e); throw new GroupsException(e.getMessage()); | log.error(e.getMessage(), e); throw new GroupsException(e); | public IEntityNameFinder newFinder () throws GroupsException { try { return EntityGroupNameFinder.singleton(); } catch (Exception e) { log.error( "EntityGroupNameFinderFactory.newFinder(): " + e); throw new GroupsException(e.getMessage()); } } | 1895 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1895/948a50c00c52659556ab3183d5ea2e316077d789/EntityGroupNameFinderFactory.java/buggy/source/org/jasig/portal/groups/EntityGroupNameFinderFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
467,
19441,
8441,
394,
8441,
1832,
1216,
14712,
503,
288,
3639,
775,
288,
5411,
327,
225,
3887,
3943,
8441,
18,
24487,
5621,
3639,
289,
1044,
261,
503,
425,
13,
288,
5411,
613,
18,
1636,
12,
315,
1943,
3943,
8441,
1733,
18,
2704,
8441,
13332,
315,
10792,
397,
425,
1769,
5411,
604,
394,
14712,
503,
12,
73,
18,
24906,
10663,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
467,
19441,
8441,
394,
8441,
1832,
1216,
14712,
503,
288,
3639,
775,
288,
5411,
327,
225,
3887,
3943,
8441,
18,
24487,
5621,
3639,
289,
1044,
261,
503,
425,
13,
288,
5411,
613,
18,
1636,
12,
315,
1943,
3943,
8441,
1733,
18,
2704,
8441,
13332,
315,
10792,
397,
425,
1769,
5411,
604,
394,
14712,
503,
12,
73,
18,
24906,
10663,
3639,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return s22; case 21: | public DFA.State transition(IntStream input) throws RecognitionException { switch ( input.LA(1) ) { case 49: return s16; case EOL: case 15: return s21; case ID: return s22; case 21: return s23; default: NoViableAltException nvae = new NoViableAltException("", 4, 13, input); throw nvae; } } | 31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/35c3932466a0269c296ae52afa8a1f8048a309d2/RuleParser.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
463,
2046,
18,
1119,
6007,
12,
1702,
1228,
810,
13,
1216,
9539,
288,
7734,
1620,
261,
810,
18,
2534,
12,
21,
13,
262,
288,
7734,
648,
17160,
30,
10792,
327,
272,
2313,
31,
7734,
648,
19995,
30,
7734,
648,
4711,
30,
10792,
327,
272,
5340,
31,
7734,
648,
1599,
30,
10792,
327,
272,
3787,
31,
7734,
648,
9035,
30,
10792,
327,
272,
4366,
31,
7734,
805,
30,
10792,
17114,
15077,
273,
13491,
394,
17114,
2932,
3113,
1059,
16,
5958,
16,
810,
1769,
10792,
604,
15077,
31,
3639,
289,
5411,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
463,
2046,
18,
1119,
6007,
12,
1702,
1228,
810,
13,
1216,
9539,
288,
7734,
1620,
261,
810,
18,
2534,
12,
21,
13,
262,
288,
7734,
648,
17160,
30,
10792,
327,
272,
2313,
31,
7734,
648,
19995,
30,
7734,
648,
4711,
30,
10792,
327,
272,
5340,
31,
7734,
648,
1599,
30,
10792,
327,
272,
3787,
31,
7734,
648,
9035,
30,
10792,
327,
272,
4366,
31,
7734,
805,
30,
10792,
17114,
15077,
273,
13491,
394,
17114,
2932,
3113,
1059,
16,
5958,
16,
810,
1769,
10792,
604,
15077,
31,
3639,
289,
5411,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] | |
public org.quickfix.field.BidDescriptor getBidDescriptor() throws FieldNotFound { org.quickfix.field.BidDescriptor value = new org.quickfix.field.BidDescriptor(); | public quickfix.field.BidDescriptor getBidDescriptor() throws FieldNotFound { quickfix.field.BidDescriptor value = new quickfix.field.BidDescriptor(); | public org.quickfix.field.BidDescriptor getBidDescriptor() throws FieldNotFound { org.quickfix.field.BidDescriptor value = new org.quickfix.field.BidDescriptor(); getField(value); return value; } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/BidRequest.java/buggy/src/java/src/quickfix/fix44/BidRequest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
17763,
3187,
2882,
350,
3187,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
17763,
3187,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
17763,
3187,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
17763,
3187,
2882,
350,
3187,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
17763,
3187,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
17763,
3187,
5621,
565,
5031,
12,
1132,
1769,
327,
460,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
buildAction.setActionDefinitionId(buildActionDefId); | private void makeActions() { // The actions in jface do not have menu vs. enable, vs. disable vs. color // There are actions in here being passed the workbench - problem // Get services for notification. IPartService partService = window.getPartService(); WWinKeyBindingService keyBindingService = window.getKeyBindingService(); // Many actions need the workbench. IWorkbench workbench = window.getWorkbench(); newWizardAction = new NewWizardAction(); // images for this action are set in its constructor newWizardDropDownAction = new NewWizardDropDownAction(workbench, newWizardAction); newWizardDropDownAction.setImageDescriptor(WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_CTOOL_NEW_WIZ)); newWizardDropDownAction.setHoverImageDescriptor(WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_CTOOL_NEW_WIZ_HOVER)); newWizardDropDownAction.setDisabledImageDescriptor(WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_CTOOL_NEW_WIZ_DISABLED)); importResourcesAction = new ImportResourcesAction(workbench); importResourcesAction.setImageDescriptor(WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_CTOOL_IMPORT_WIZ)); importResourcesAction.setHoverImageDescriptor(WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_CTOOL_IMPORT_WIZ_HOVER)); importResourcesAction.setDisabledImageDescriptor(WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_CTOOL_IMPORT_WIZ_DISABLED)); exportResourcesAction = new ExportResourcesAction(workbench,WorkbenchMessages.getString("ExportResourcesAction.fileMenuText")); exportResourcesAction.setImageDescriptor(WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_CTOOL_EXPORT_WIZ)); exportResourcesAction.setHoverImageDescriptor(WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_CTOOL_EXPORT_WIZ_HOVER)); exportResourcesAction.setDisabledImageDescriptor(WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_CTOOL_EXPORT_WIZ_DISABLED)); rebuildAllAction = new GlobalBuildAction(window, IncrementalProjectBuilder.FULL_BUILD); // 1G82IWC - a new icon is needed for Rebuild All or Build // rebuildAllAction.setImageDescriptor(WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_CTOOL_BUILD_EXEC)); // rebuildAllAction.setHoverImageDescriptor(WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_CTOOL_BUILD_EXEC_HOVER)); // rebuildAllAction.setDisabledImageDescriptor(WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_CTOOL_BUILD_EXEC_DISABLED)); buildAction = new GlobalBuildAction(window, IncrementalProjectBuilder.INCREMENTAL_BUILD); buildAction.setImageDescriptor(WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_CTOOL_BUILD_EXEC)); buildAction.setHoverImageDescriptor(WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_CTOOL_BUILD_EXEC_HOVER)); buildAction.setDisabledImageDescriptor(WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_CTOOL_BUILD_EXEC_DISABLED)); saveAction = new SaveAction(window); saveAction.setImageDescriptor(WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_CTOOL_SAVE_EDIT)); saveAction.setHoverImageDescriptor(WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_CTOOL_SAVE_EDIT_HOVER)); saveAction.setDisabledImageDescriptor(WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_CTOOL_SAVE_EDIT_DISABLED)); partService.addPartListener(saveAction); saveAction.setActionDefinitionId(saveActionDefId); keyBindingService.registerGlobalAction(saveAction); saveAsAction = new SaveAsAction(window); saveAsAction.setImageDescriptor(WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_CTOOL_SAVEAS_EDIT)); saveAsAction.setHoverImageDescriptor(WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_CTOOL_SAVEAS_EDIT_HOVER)); saveAsAction.setDisabledImageDescriptor(WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_CTOOL_SAVEAS_EDIT_DISABLED)); partService.addPartListener(saveAsAction); saveAllAction = new SaveAllAction(window); saveAllAction.setImageDescriptor(WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_CTOOL_SAVEALL_EDIT)); saveAllAction.setHoverImageDescriptor(WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_CTOOL_SAVEALL_EDIT_HOVER)); saveAllAction.setDisabledImageDescriptor(WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_CTOOL_SAVEALL_EDIT_DISABLED)); partService.addPartListener(saveAllAction); saveAllAction.setActionDefinitionId(saveAllActionDefId); keyBindingService.registerGlobalAction(saveAllAction); undoAction = new LabelRetargetAction(IWorkbenchActionConstants.UNDO, WorkbenchMessages.getString("Workbench.undo")); //$NON-NLS-1$ undoAction.setToolTipText(WorkbenchMessages.getString("Workbench.undoToolTip")); //$NON-NLS-1$ undoAction.setImageDescriptor(WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_CTOOL_UNDO_EDIT)); undoAction.setHoverImageDescriptor(WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_CTOOL_UNDO_EDIT_HOVER)); undoAction.setDisabledImageDescriptor(WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_CTOOL_UNDO_EDIT_DISABLED)); undoAction.setAccelerator(SWT.CTRL | 'z'); partService.addPartListener(undoAction); undoAction.setActionDefinitionId(undoActionDefId); keyBindingService.registerGlobalAction(undoAction); redoAction = new LabelRetargetAction(IWorkbenchActionConstants.REDO, WorkbenchMessages.getString("Workbench.redo")); //$NON-NLS-1$ redoAction.setToolTipText(WorkbenchMessages.getString("Workbench.redoToolTip")); //$NON-NLS-1$ redoAction.setImageDescriptor(WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_CTOOL_REDO_EDIT)); redoAction.setHoverImageDescriptor(WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_CTOOL_REDO_EDIT_HOVER)); redoAction.setDisabledImageDescriptor(WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_CTOOL_REDO_EDIT_DISABLED)); redoAction.setAccelerator(SWT.CTRL | 'y'); partService.addPartListener(redoAction); redoAction.setActionDefinitionId(redoActionDefId); keyBindingService.registerGlobalAction(redoAction); cutAction = new RetargetAction(IWorkbenchActionConstants.CUT, WorkbenchMessages.getString("Workbench.cut")); //$NON-NLS-1$ cutAction.setToolTipText(WorkbenchMessages.getString("Workbench.cutToolTip")); //$NON-NLS-1$ cutAction.setImageDescriptor(WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_CTOOL_CUT_EDIT)); cutAction.setHoverImageDescriptor(WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_CTOOL_CUT_EDIT_HOVER)); cutAction.setDisabledImageDescriptor(WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_CTOOL_CUT_EDIT_DISABLED)); cutAction.setAccelerator(SWT.CTRL | 'x'); partService.addPartListener(cutAction); cutAction.setActionDefinitionId(cutActionDefId); keyBindingService.registerGlobalAction(cutAction); copyAction = new RetargetAction(IWorkbenchActionConstants.COPY, WorkbenchMessages.getString("Workbench.copy")); //$NON-NLS-1$ copyAction.setToolTipText(WorkbenchMessages.getString("Workbench.copyToolTip")); //$NON-NLS-1$ copyAction.setImageDescriptor(WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_CTOOL_COPY_EDIT)); copyAction.setHoverImageDescriptor(WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_CTOOL_COPY_EDIT_HOVER)); copyAction.setDisabledImageDescriptor(WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_CTOOL_COPY_EDIT_DISABLED)); copyAction.setAccelerator(SWT.CTRL | 'c'); partService.addPartListener(copyAction); copyAction.setActionDefinitionId(copyActionDefId); keyBindingService.registerGlobalAction(copyAction); pasteAction = new RetargetAction(IWorkbenchActionConstants.PASTE, WorkbenchMessages.getString("Workbench.paste")); //$NON-NLS-1$ pasteAction.setToolTipText(WorkbenchMessages.getString("Workbench.pasteToolTip")); //$NON-NLS-1$ pasteAction.setImageDescriptor(WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_CTOOL_PASTE_EDIT)); pasteAction.setHoverImageDescriptor(WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_CTOOL_PASTE_EDIT_HOVER)); pasteAction.setDisabledImageDescriptor(WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_CTOOL_PASTE_EDIT_DISABLED)); pasteAction.setAccelerator(SWT.CTRL | 'v'); partService.addPartListener(pasteAction); pasteAction.setActionDefinitionId(pasteActionDefId); keyBindingService.registerGlobalAction(pasteAction); printAction = new RetargetAction(IWorkbenchActionConstants.PRINT, WorkbenchMessages.getString("Workbench.print")); //$NON-NLS-1$ printAction.setToolTipText(WorkbenchMessages.getString("Workbench.printToolTip")); //$NON-NLS-1$ printAction.setImageDescriptor(WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_CTOOL_PRINT_EDIT)); printAction.setHoverImageDescriptor(WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_CTOOL_PRINT_EDIT_HOVER)); printAction.setDisabledImageDescriptor(WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_CTOOL_PRINT_EDIT_DISABLED)); printAction.setAccelerator(SWT.CTRL | 'p'); partService.addPartListener(printAction); printAction.setActionDefinitionId(printActionDefId); keyBindingService.registerGlobalAction(printAction); selectAllAction = new RetargetAction(IWorkbenchActionConstants.SELECT_ALL, WorkbenchMessages.getString("Workbench.selectAll")); //$NON-NLS-1$ selectAllAction.setToolTipText(WorkbenchMessages.getString("Workbench.selectAllToolTip")); //$NON-NLS-1$ selectAllAction.setAccelerator(SWT.CTRL | 'a'); partService.addPartListener(selectAllAction); selectAllAction.setActionDefinitionId(selectAllActionDefId); keyBindingService.registerGlobalAction(selectAllAction); findAction = new RetargetAction(IWorkbenchActionConstants.FIND, WorkbenchMessages.getString("Workbench.findReplace")); //$NON-NLS-1$ findAction.setToolTipText(WorkbenchMessages.getString("Workbench.findReplaceToolTip")); //$NON-NLS-1$// Find's images commented out due to conflict with Search.// See bug 16412.// findAction.setImageDescriptor(WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_CTOOL_SEARCH_SRC));// findAction.setHoverImageDescriptor(WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_CTOOL_SEARCH_SRC_HOVER));// findAction.setDisabledImageDescriptor(WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_CTOOL_SEARCH_SRC_DISABLED)); findAction.setAccelerator(SWT.CONTROL | 'f'); partService.addPartListener(findAction); findAction.setActionDefinitionId(findActionDefId); keyBindingService.registerGlobalAction(findAction); closeAction = new CloseEditorAction(window); partService.addPartListener(closeAction); closeAction.setActionDefinitionId(closeActionDefId); keyBindingService.registerGlobalAction(closeAction); closeAllAction = new CloseAllAction(window); partService.addPartListener(closeAllAction); closeAllAction.setActionDefinitionId(closeAllActionDefId); keyBindingService.registerGlobalAction(closeAllAction); closeAllSavedAction = new CloseAllSavedAction(window); partService.addPartListener(closeAllSavedAction); closeAllSavedAction.setActionDefinitionId(closeAllSavedActionDefId); keyBindingService.registerGlobalAction(closeAllSavedAction); pinEditorAction = new PinEditorAction(window); partService.addPartListener(pinEditorAction); pinEditorAction.setImageDescriptor(WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_CTOOL_PIN_EDITOR)); pinEditorAction.setHoverImageDescriptor(WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_CTOOL_PIN_EDITOR_HOVER)); pinEditorAction.setDisabledImageDescriptor(WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_CTOOL_PIN_EDITOR_DISABLED)); aboutAction = new AboutAction(window); aboutAction.setImageDescriptor(WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_OBJS_DEFAULT_PROD)); openPreferencesAction = new OpenPreferencesAction(window); addBookmarkAction = new RetargetAction(IWorkbenchActionConstants.BOOKMARK, WorkbenchMessages.getString("Workbench.addBookMark")); //$NON-NLS-1$ partService.addPartListener(addBookmarkAction); addBookmarkAction.setToolTipText(WorkbenchMessages.getString("Workbench.addBookMarkToolTip")); //$NON-NLS-1$ addBookmarkAction.setActionDefinitionId(addBookmarkActionDefId); keyBindingService.registerGlobalAction(addBookmarkAction); addTaskAction = createGlobalAction(IWorkbenchActionConstants.ADD_TASK, "edit", false); //$NON-NLS-1$ deleteAction = new RetargetAction(IWorkbenchActionConstants.DELETE, WorkbenchMessages.getString("Workbench.delete")); //$NON-NLS-1$ deleteAction.setToolTipText(WorkbenchMessages.getString("Workbench.deleteToolTip")); //$NON-NLS-1$ deleteAction.setImageDescriptor(WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_CTOOL_DELETE_EDIT)); deleteAction.setHoverImageDescriptor(WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_CTOOL_DELETE_EDIT_HOVER)); deleteAction.setDisabledImageDescriptor(WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_CTOOL_DELETE_EDIT_DISABLED)); deleteAction.enableAccelerator(false); WorkbenchHelp.setHelp(deleteAction, IHelpContextIds.DELETE_RETARGET_ACTION); partService.addPartListener(deleteAction); deleteAction.setActionDefinitionId(deleteActionDefId); keyBindingService.registerGlobalAction(deleteAction); // See if a welcome page is specified AboutInfo[] infos = ((Workbench)workbench).getFeaturesInfo(); for (int i = 0; i < infos.length; i++) { if (infos[i].getWelcomePageURL() != null) { quickStartAction = new QuickStartAction(workbench); break; } } // Actions for invisible accelerators showViewMenuAction = new ShowViewMenuAction(window); showViewMenuAction.setActionDefinitionId(showViewMenuActionDefId); keyBindingService.registerGlobalAction(showViewMenuAction); showPartPaneMenuAction = new ShowPartPaneMenuAction(window); showPartPaneMenuAction.setActionDefinitionId(showPartPaneMenuActionDefId); keyBindingService.registerGlobalAction(showPartPaneMenuAction); nextEditorAction = new CycleEditorAction(window, true); nextEditorAction.setActionDefinitionId(nextEditorActionDefId); keyBindingService.registerGlobalAction(nextEditorAction); prevEditorAction = new CycleEditorAction(window, false); prevEditorAction.setActionDefinitionId(prevEditorActionDefId); keyBindingService.registerGlobalAction(prevEditorAction); nextPartAction = new CyclePartAction(window, true); nextPartAction.setActionDefinitionId(nextPartActionDefId); keyBindingService.registerGlobalAction(nextPartAction); prevPartAction = new CyclePartAction(window, false); prevPartAction.setActionDefinitionId(prevPartActionDefId); keyBindingService.registerGlobalAction(prevPartAction); nextPerspectiveAction = new CyclePerspectiveAction(window, true); nextPerspectiveAction.setActionDefinitionId(nextPerspectiveActionDefId); keyBindingService.registerGlobalAction(nextPerspectiveAction); prevPerspectiveAction = new CyclePerspectiveAction(window, false); prevPerspectiveAction.setActionDefinitionId(prevPerspectiveActionDefId); keyBindingService.registerGlobalAction(prevPerspectiveAction); activateEditorAction = new ActivateEditorAction(window); activateEditorAction.setActionDefinitionId(activateEditorActionDefId); keyBindingService.registerGlobalAction(activateEditorAction); workbenchEditorsAction = new WorkbenchEditorsAction(window); workbenchEditorsAction.setActionDefinitionId(workbenchEditorsActionDefId); keyBindingService.registerGlobalAction(workbenchEditorsAction); hideShowEditorAction = new ToggleEditorsVisibilityAction(window); savePerspectiveAction = new SavePerspectiveAction(window); editActionSetAction = new EditActionSetsAction(window); lockToolBarAction = new LockToolBarAction(window); resetToolBarAction = new ResetToolBarAction(window); resetPerspectiveAction = new ResetPerspectiveAction(window); closePerspAction = new ClosePerspectiveAction(window); closeAllPerspsAction = new CloseAllPerspectivesAction(window); // menu reorg if (usingMenuReorg) { // create the new actions needed for the reorg revertAction = createGlobalAction(IWorkbenchActionConstants.REVERT, "file", false); //$NON-NLS-1$ refreshAction = createGlobalAction(IWorkbenchActionConstants.REFRESH, "file", false); //$NON-NLS-1$ propertiesAction = createGlobalAction(IWorkbenchActionConstants.PROPERTIES, "file", false); //$NON-NLS-1$ propertiesAction.setAccelerator(SWT.ALT | SWT.CR); moveAction = createGlobalAction(IWorkbenchActionConstants.MOVE, "edit", false); //$NON-NLS-1$ renameAction = createGlobalAction(IWorkbenchActionConstants.RENAME, "edit", false); //$NON-NLS-1$ goIntoAction = createGlobalAction(IWorkbenchActionConstants.GO_INTO, "navigate", false); //$NON-NLS-1$ backAction = createGlobalAction(IWorkbenchActionConstants.BACK, "navigate", true); //$NON-NLS-1$ forwardAction = createGlobalAction(IWorkbenchActionConstants.FORWARD, "navigate", true); //$NON-NLS-1$ upAction = createGlobalAction(IWorkbenchActionConstants.UP, "navigate", true); //$NON-NLS-1$ nextAction = createGlobalAction(IWorkbenchActionConstants.NEXT, "navigate", true); //$NON-NLS-1$ nextAction.setImageDescriptor(WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_CTOOL_NEXT_NAV)); previousAction = createGlobalAction(IWorkbenchActionConstants.PREVIOUS, "navigate", true); //$NON-NLS-1$ previousAction.setImageDescriptor(WorkbenchImages.getImageDescriptor(IWorkbenchGraphicConstants.IMG_CTOOL_PREVIOUS_NAV)); buildProjectAction = createGlobalAction(IWorkbenchActionConstants.BUILD_PROJECT, "project", false); //$NON-NLS-1$ rebuildProjectAction = createGlobalAction(IWorkbenchActionConstants.REBUILD_PROJECT, "project", false); //$NON-NLS-1$ openProjectAction = createGlobalAction(IWorkbenchActionConstants.OPEN_PROJECT, "project", false); //$NON-NLS-1$ closeProjectAction = createGlobalAction(IWorkbenchActionConstants.CLOSE_PROJECT, "project", false); //$NON-NLS-1$ // override the text and tooltip for certain actions, // either to get the new text or a different mnemonic savePerspectiveAction.setText(WorkbenchMessages.getString("Workbench.savePerspectiveAs")); //$NON-NLS-1$ editActionSetAction.setText(WorkbenchMessages.getString("Workbench.customizePerspective")); //$NON-NLS-1$ lockToolBarAction.setText(WorkbenchMessages.getString("Workbench.lockPerspectiveToolBar")); //$NON-NLS-1$ resetToolBarAction.setText(WorkbenchMessages.getString("Workbench.resetPerspectiveToolBar")); //$NON-NLS-1$ resetPerspectiveAction.setText(WorkbenchMessages.getString("Workbench.resetPerspective")); //$NON-NLS-1$ closePerspAction.setText(WorkbenchMessages.getString("Workbench.closePerspective")); //$NON-NLS-1$ closeAllPerspsAction.setText(WorkbenchMessages.getString("Workbench.closeAllPerspectives")); //$NON-NLS-1$ buildAction.setText(WorkbenchMessages.getString("Workbench.buildAll")); //$NON-NLS-1$ buildAction.setToolTipText(WorkbenchMessages.getString("Workbench.buildAllToolTip")); //$NON-NLS-1$ buildAction.setAccelerator(SWT.CTRL | 'B'); rebuildAllAction.setText(WorkbenchMessages.getString("Workbench.rebuildAll")); //$NON-NLS-1$ rebuildAllAction.setToolTipText(WorkbenchMessages.getString("Workbench.rebuildAllToolTip")); //$NON-NLS-1$ } // end menu reorg } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/cd0f53aa11c37c79489614d63e7842b5d7fc281f/WorkbenchActionBuilder.java/clean/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/WorkbenchActionBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
3510,
1803,
18,
542,
1803,
21768,
12,
3510,
1803,
3262,
548,
1769,
225,
918,
3510,
1803,
18,
542,
1803,
21768,
12,
3510,
1803,
3262,
548,
1769,
225,
1221,
6100,
1435,
3510,
1803,
18,
542,
1803,
21768,
12,
3510,
1803,
3262,
548,
1769,
225,
288,
202,
202,
759,
3510,
1803,
18,
542,
1803,
21768,
12,
3510,
1803,
3262,
548,
1769,
225,
1021,
3510,
1803,
18,
542,
1803,
21768,
12,
3510,
1803,
3262,
548,
1769,
225,
4209,
3510,
1803,
18,
542,
1803,
21768,
12,
3510,
1803,
3262,
548,
1769,
225,
316,
3510,
1803,
18,
542,
1803,
21768,
12,
3510,
1803,
3262,
548,
1769,
225,
525,
865,
3510,
1803,
18,
542,
1803,
21768,
12,
3510,
1803,
3262,
548,
1769,
225,
741,
3510,
1803,
18,
542,
1803,
21768,
12,
3510,
1803,
3262,
548,
1769,
225,
486,
3510,
1803,
18,
542,
1803,
21768,
12,
3510,
1803,
3262,
548,
1769,
225,
1240,
3510,
1803,
18,
542,
1803,
21768,
12,
3510,
1803,
3262,
548,
1769,
225,
21247,
373,
680,
1803,
18,
542,
1803,
21768,
12,
3510,
1803,
3262,
548,
1769,
225,
6195,
18,
3510,
1803,
18,
542,
1803,
21768,
12,
3510,
1803,
3262,
548,
1769,
225,
4237,
16,
3510,
1803,
18,
542,
1803,
21768,
12,
3510,
1803,
3262,
548,
1769,
225,
6195,
18,
3510,
1803,
18,
542,
1803,
21768,
12,
3510,
1803,
3262,
548,
1769,
225,
4056,
3510,
1803,
18,
542,
1803,
21768,
12,
3510,
1803,
3262,
548,
1769,
225,
6195,
18,
3510,
1803,
18,
542,
1803,
21768,
12,
3510,
1803,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
3510,
1803,
18,
542,
1803,
21768,
12,
3510,
1803,
3262,
548,
1769,
225,
918,
3510,
1803,
18,
542,
1803,
21768,
12,
3510,
1803,
3262,
548,
1769,
225,
1221,
6100,
1435,
3510,
1803,
18,
542,
1803,
21768,
12,
3510,
1803,
3262,
548,
1769,
225,
288,
202,
202,
759,
3510,
1803,
18,
542,
1803,
21768,
12,
3510,
1803,
3262,
548,
1769,
225,
1021,
3510,
1803,
18,
542,
1803,
21768,
12,
3510,
1803,
3262,
548,
1769,
225,
4209,
3510,
1803,
18,
542,
1803,
21768,
12,
3510,
1803,
3262,
548,
1769,
225,
316,
3510,
1803,
18,
542,
1803,
21768,
12,
3510,
1803,
3262,
548,
1769,
225,
525,
865,
3510,
1803,
18,
542,
1803,
21768,
12,
3510,
1803,
3262,
548,
1769,
2
] | |
eDynamicUnset( eFeature ); | super.eUnset( featureID ); | public void eUnset( EStructuralFeature eFeature ) { switch ( eDerivedStructuralFeatureID( eFeature ) ) { case AttributePackage.EMBEDDED_IMAGE__TYPE : unsetType( ); return; case AttributePackage.EMBEDDED_IMAGE__URL : setURL( URL_EDEFAULT ); return; case AttributePackage.EMBEDDED_IMAGE__DATA : setData( DATA_EDEFAULT ); return; } eDynamicUnset( eFeature ); } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/036e8c78765730b146e5854b9d6c397a296fed86/EmbeddedImageImpl.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/attribute/impl/EmbeddedImageImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
19698,
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,
3601,
2261,
18,
3375,
22235,
7660,
67,
13603,
972,
2399,
294,
9506,
202,
18579,
559,
12,
11272,
9506,
202,
2463,
31,
1082,
202,
3593,
3601,
2261,
18,
3375,
22235,
7660,
67,
13603,
972,
1785,
294,
9506,
202,
542,
1785,
12,
1976,
67,
11236,
11272,
9506,
202,
2463,
31,
1082,
202,
3593,
3601,
2261,
18,
3375,
22235,
7660,
67,
13603,
972,
4883,
294,
9506,
202,
542,
751,
12,
8730,
67,
11236,
11272,
9506,
202,
2463,
31,
202,
202,
97,
202,
202,
73,
9791,
13250,
12,
425,
4595,
11272,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
19698,
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,
3601,
2261,
18,
3375,
22235,
7660,
67,
13603,
972,
2399,
294,
9506,
202,
18579,
559,
12,
11272,
9506,
202,
2463,
31,
1082,
202,
3593,
3601,
2261,
18,
3375,
22235,
7660,
67,
13603,
972,
1785,
294,
9506,
202,
542,
1785,
12,
1976,
67,
11236,
11272,
9506,
202,
2463,
31,
1082,
202,
3593,
3601,
2261,
18,
3375,
22235,
7660,
67,
13603,
972,
4883,
294,
9506,
202,
542,
751,
12,
8730,
67,
11236,
11272,
9506,
202,
2463,
31,
202,
202,
97,
202,
202,
73,
9791,
13250,
12,
425,
2
] |
gl.glEnable(GL.GL_VERTEX_PROGRAM_NV); gl.glProgramParameter4fNV(GL.GL_VERTEX_PROGRAM_NV, 62, fresnel, fresnel, fresnel, 1.0f); | gl.glEnable(GL.GL_VERTEX_PROGRAM_ARB); gl.glProgramEnvParameter4fARB(GL.GL_VERTEX_PROGRAM_ARB, 62, fresnel, fresnel, fresnel, 1.0f); | public void display(GLDrawable drawable) { if (quit) { return; } time.update(); GL gl = drawable.getGL(); GLU glu = drawable.getGLU(); gl.glClear(GL.GL_COLOR_BUFFER_BIT|GL.GL_DEPTH_BUFFER_BIT); if (doViewAll) { viewer.viewAll(gl); doViewAll = false; } if (getFlag(' ')) { viewer.rotateAboutFocalPoint(new Rotf(Vec3f.Y_AXIS, (float) (time.deltaT() * animRate))); } if (toggleWire) { toggleWire = false; wire = !wire; if (wire) { gl.glPolygonMode(GL.GL_FRONT_AND_BACK, GL.GL_LINE); } else { gl.glPolygonMode(GL.GL_FRONT_AND_BACK, GL.GL_FILL); } } // draw background gl.glDisable(GL.GL_DEPTH_TEST); drawSkyBox(gl, glu); gl.glEnable(GL.GL_DEPTH_TEST); gl.glPushMatrix(); viewer.update(gl); ManipManager.getManipManager().updateCameraParameters(drawable, viewer.getCameraParameters()); ManipManager.getManipManager().render(drawable, gl); gl.glBindProgramNV(GL.GL_VERTEX_PROGRAM_NV, vtxProg); gl.glEnable(GL.GL_VERTEX_PROGRAM_NV); gl.glProgramParameter4fNV(GL.GL_VERTEX_PROGRAM_NV, 62, fresnel, fresnel, fresnel, 1.0f); // set texture transforms gl.glActiveTextureARB(GL.GL_TEXTURE0_ARB); gl.glBindTexture(GL.GL_TEXTURE_CUBE_MAP_ARB, cubemap); gl.glEnable(GL.GL_TEXTURE_CUBE_MAP_ARB); gl.glMatrixMode(GL.GL_TEXTURE); gl.glLoadIdentity(); gl.glScalef(1.0f, -1.0f, 1.0f); viewer.updateInverseRotation(gl); gl.glActiveTextureARB(GL.GL_TEXTURE1_ARB); gl.glBindTexture(GL.GL_TEXTURE_CUBE_MAP_ARB, cubemap); gl.glEnable(GL.GL_TEXTURE_CUBE_MAP_ARB); gl.glMatrixMode(GL.GL_TEXTURE); gl.glLoadIdentity(); gl.glScalef(1.0f, -1.0f, 1.0f); viewer.updateInverseRotation(gl); gl.glEnable(GL.GL_REGISTER_COMBINERS_NV); gl.glColor3f(1.0f, 1.0f, 1.0f); if (getFlag('s')) { // single pass setRefraction(gl, refract); drawObj(gl, glu, obj); } else { // red pass gl.glColorMask(true, false, false, false); setRefraction(gl, refract); drawObj(gl, glu, obj); gl.glDepthMask(false); gl.glDepthFunc(GL.GL_EQUAL); // green pass gl.glColorMask(false, true, false, false); setRefraction(gl, refract + wavelengthDelta); drawObj(gl, glu, obj); // blue pass gl.glColorMask(false, false, true, false); setRefraction(gl, refract + (wavelengthDelta * 2)); drawObj(gl, glu, obj); gl.glDepthMask(true); gl.glDepthFunc(GL.GL_LESS); gl.glColorMask(true, true, true, false); } gl.glDisable(GL.GL_REGISTER_COMBINERS_NV); gl.glDisable(GL.GL_VERTEX_PROGRAM_NV); gl.glMatrixMode(GL.GL_MODELVIEW); gl.glPopMatrix(); } | 6783 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6783/8f15869ac9decfc880b4d82dbd6e0a96b54a6004/VertexProgRefract.java/clean/src/demos/vertexProgRefract/VertexProgRefract.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2562,
12,
11261,
16149,
19021,
13,
288,
1377,
309,
261,
27176,
13,
288,
3639,
327,
31,
1377,
289,
1377,
813,
18,
2725,
5621,
1377,
10252,
5118,
273,
19021,
18,
588,
11261,
5621,
1377,
10252,
57,
5118,
89,
273,
19021,
18,
588,
11261,
57,
5621,
1377,
5118,
18,
7043,
9094,
12,
11261,
18,
11261,
67,
10989,
67,
11302,
67,
15650,
96,
11261,
18,
11261,
67,
27479,
67,
11302,
67,
15650,
1769,
1377,
309,
261,
2896,
1767,
1595,
13,
288,
202,
25256,
18,
1945,
1595,
12,
7043,
1769,
202,
2896,
1767,
1595,
273,
629,
31,
1377,
289,
1377,
309,
261,
588,
4678,
2668,
296,
3719,
288,
3639,
14157,
18,
20342,
24813,
42,
23735,
2148,
12,
2704,
15697,
74,
12,
12991,
23,
74,
18,
61,
67,
25614,
16,
261,
5659,
13,
261,
957,
18,
9878,
56,
1435,
380,
10536,
4727,
3719,
1769,
1377,
289,
1377,
309,
261,
14401,
15249,
13,
288,
3639,
10486,
15249,
273,
629,
31,
3639,
6636,
273,
401,
14538,
31,
3639,
309,
261,
14538,
13,
288,
1850,
5118,
18,
7043,
11787,
2309,
12,
11261,
18,
11261,
67,
9981,
10079,
67,
4307,
67,
8720,
16,
10252,
18,
11261,
67,
5997,
1769,
3639,
289,
469,
288,
1850,
5118,
18,
7043,
11787,
2309,
12,
11261,
18,
11261,
67,
9981,
10079,
67,
4307,
67,
8720,
16,
10252,
18,
11261,
67,
29818,
1769,
3639,
289,
1377,
289,
1377,
368,
3724,
5412,
1377,
5118,
18,
7043,
11879,
12,
11261,
18,
11261,
67,
27479,
67,
16961,
1769,
1377,
3724,
5925,
93,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2562,
12,
11261,
16149,
19021,
13,
288,
1377,
309,
261,
27176,
13,
288,
3639,
327,
31,
1377,
289,
1377,
813,
18,
2725,
5621,
1377,
10252,
5118,
273,
19021,
18,
588,
11261,
5621,
1377,
10252,
57,
5118,
89,
273,
19021,
18,
588,
11261,
57,
5621,
1377,
5118,
18,
7043,
9094,
12,
11261,
18,
11261,
67,
10989,
67,
11302,
67,
15650,
96,
11261,
18,
11261,
67,
27479,
67,
11302,
67,
15650,
1769,
1377,
309,
261,
2896,
1767,
1595,
13,
288,
202,
25256,
18,
1945,
1595,
12,
7043,
1769,
202,
2896,
1767,
1595,
273,
629,
31,
1377,
289,
1377,
309,
261,
588,
4678,
2668,
296,
3719,
288,
3639,
14157,
18,
20342,
24813,
42,
23735,
2148,
12,
2704,
15697,
74,
2
] |
IMAPResponse response = in.next (); | IMAPResponse response = in.next(); | protected IMAPResponse readResponse () throws IOException { IMAPResponse response = in.next (); if (debug) { Logger logger = Logger.getInstance (); if (response == null) { logger.log("imap", "<EOF"); } else if (ansiDebug) { logger.log("imap", "< " + response.toANSIString ()); } else { logger.log("imap", "< " + response.toString ()); } } if (response == null) { throw new IOException ("EOF"); } return response; } | 45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/32651f721fa7044d71e84f6431a1ca18d965af13/IMAPConnection.java/buggy/libraries/javalib/gnu/inet/imap/IMAPConnection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
6246,
2203,
1064,
26694,
1832,
565,
1216,
1860,
225,
288,
565,
6246,
2203,
1064,
766,
273,
316,
18,
4285,
5621,
565,
309,
261,
4148,
13,
1377,
288,
3639,
4242,
1194,
273,
4242,
18,
588,
1442,
261,
1769,
3639,
309,
261,
2740,
422,
446,
13,
1850,
288,
5411,
1194,
18,
1330,
2932,
12161,
3113,
3532,
12706,
8863,
1850,
289,
3639,
469,
309,
261,
634,
77,
2829,
13,
1850,
288,
5411,
1194,
18,
1330,
2932,
12161,
3113,
3532,
315,
397,
766,
18,
869,
1258,
2320,
780,
1832,
1769,
1850,
289,
3639,
469,
1850,
288,
5411,
1194,
18,
1330,
2932,
12161,
3113,
3532,
315,
397,
766,
18,
10492,
1832,
1769,
1850,
289,
1377,
289,
565,
309,
261,
2740,
422,
446,
13,
1377,
288,
3639,
604,
394,
1860,
7566,
12706,
8863,
1377,
289,
565,
327,
766,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
6246,
2203,
1064,
26694,
1832,
565,
1216,
1860,
225,
288,
565,
6246,
2203,
1064,
766,
273,
316,
18,
4285,
5621,
565,
309,
261,
4148,
13,
1377,
288,
3639,
4242,
1194,
273,
4242,
18,
588,
1442,
261,
1769,
3639,
309,
261,
2740,
422,
446,
13,
1850,
288,
5411,
1194,
18,
1330,
2932,
12161,
3113,
3532,
12706,
8863,
1850,
289,
3639,
469,
309,
261,
634,
77,
2829,
13,
1850,
288,
5411,
1194,
18,
1330,
2932,
12161,
3113,
3532,
315,
397,
766,
18,
869,
1258,
2320,
780,
1832,
1769,
1850,
289,
3639,
469,
1850,
288,
5411,
1194,
18,
1330,
2932,
12161,
3113,
3532,
315,
397,
766,
18,
10492,
1832,
1769,
1850,
289,
1377,
289,
565,
309,
261,
2740,
422,
446,
2
] |
setSelection(new Selection.Range(lineStart + wordStart, lineStart + wordEnd)); | extendSelection(lineStart + wordStart,lineStart + wordEnd); | public void selectWord() { int line = getCaretLine(); int lineStart = getLineStartOffset(line); int offset = getCaretPosition() - lineStart; if(getLineLength(line) == 0) return; String lineText = getLineText(line); String noWordSep = (String)buffer.getProperty("noWordSep"); if(offset == getLineLength(line)) offset--; int wordStart = TextUtilities.findWordStart(lineText,offset,noWordSep); int wordEnd = TextUtilities.findWordEnd(lineText,offset+1,noWordSep); setSelection(new Selection.Range(lineStart + wordStart, lineStart + wordEnd)); moveCaretPosition(lineStart + wordEnd); } //}}} | 8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/63eb27d59f2f966a49c7cb74c0b7123f8126b5ca/JEditTextArea.java/clean/org/gjt/sp/jedit/textarea/JEditTextArea.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2027,
3944,
1435,
202,
95,
202,
202,
474,
980,
273,
1927,
20731,
1670,
5621,
202,
202,
474,
29208,
273,
9851,
1685,
2335,
12,
1369,
1769,
202,
202,
474,
1384,
273,
1927,
20731,
2555,
1435,
300,
29208,
31,
202,
202,
430,
12,
588,
1670,
1782,
12,
1369,
13,
422,
374,
13,
1082,
202,
2463,
31,
202,
202,
780,
980,
1528,
273,
9851,
1528,
12,
1369,
1769,
202,
202,
780,
1158,
3944,
5097,
273,
261,
780,
13,
4106,
18,
588,
1396,
2932,
2135,
3944,
5097,
8863,
202,
202,
430,
12,
3348,
422,
9851,
1782,
12,
1369,
3719,
1082,
202,
3348,
413,
31,
202,
202,
474,
2076,
1685,
273,
3867,
11864,
18,
4720,
3944,
1685,
12,
1369,
1528,
16,
3348,
16,
2135,
3944,
5097,
1769,
202,
202,
474,
2076,
1638,
273,
3867,
11864,
18,
4720,
3944,
1638,
12,
1369,
1528,
16,
3348,
15,
21,
16,
2135,
3944,
5097,
1769,
202,
202,
542,
6233,
12,
2704,
12977,
18,
2655,
12,
1369,
1685,
397,
2076,
1685,
16,
1082,
202,
1369,
1685,
397,
2076,
1638,
10019,
202,
202,
8501,
39,
20731,
2555,
12,
1369,
1685,
397,
2076,
1638,
1769,
202,
97,
368,
9090,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2027,
3944,
1435,
202,
95,
202,
202,
474,
980,
273,
1927,
20731,
1670,
5621,
202,
202,
474,
29208,
273,
9851,
1685,
2335,
12,
1369,
1769,
202,
202,
474,
1384,
273,
1927,
20731,
2555,
1435,
300,
29208,
31,
202,
202,
430,
12,
588,
1670,
1782,
12,
1369,
13,
422,
374,
13,
1082,
202,
2463,
31,
202,
202,
780,
980,
1528,
273,
9851,
1528,
12,
1369,
1769,
202,
202,
780,
1158,
3944,
5097,
273,
261,
780,
13,
4106,
18,
588,
1396,
2932,
2135,
3944,
5097,
8863,
202,
202,
430,
12,
3348,
422,
9851,
1782,
12,
1369,
3719,
1082,
202,
3348,
413,
31,
202,
202,
474,
2076,
1685,
273,
3867,
11864,
18,
4720,
3944,
1685,
12,
1369,
1528,
2
] |
label.setFont( FontManager.getFont( label.getFont( ).toString( ), 10, | label.setFont( FontManager.getFont( label.getFont( ).toString( ), 10, | private Composite createTitleArea( Composite parent ) { int margins = 2; final Composite titleArea = new Composite( parent, SWT.NONE ); FormLayout layout = new FormLayout( ); layout.marginHeight = margins; layout.marginWidth = margins; titleArea.setLayout( layout ); Display display = parent.getDisplay( ); Color background = JFaceColors.getBannerBackground( display ); GridData layoutData = new GridData( GridData.FILL_HORIZONTAL ); layoutData.heightHint = 20 + ( margins * 3 ); titleArea.setLayoutData( layoutData ); titleArea.setBackground( background ); titleArea.addPaintListener( new PaintListener( ) { public void paintControl( PaintEvent e ) { e.gc.setForeground( titleArea.getDisplay( ) .getSystemColor( SWT.COLOR_WIDGET_NORMAL_SHADOW ) ); Rectangle bounds = titleArea.getClientArea( ); bounds.height = bounds.height - 2; bounds.width = bounds.width - 1; e.gc.drawRectangle( bounds ); } } ); Label label = new Label( titleArea, SWT.NONE ); label.setBackground( background ); label.setFont( FontManager.getFont( label.getFont( ).toString( ), 10, SWT.BOLD ) ); label.setText( getTitle( ) ); //$NON-NLS-1$ return titleArea; } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/0259bf7e90fb00d8350d4373f648a82b62d3ecd5/MapRuleBuilder.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/MapRuleBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
14728,
752,
4247,
5484,
12,
14728,
982,
262,
202,
95,
202,
202,
474,
24889,
273,
576,
31,
202,
202,
6385,
14728,
2077,
5484,
273,
394,
14728,
12,
982,
16,
348,
8588,
18,
9826,
11272,
202,
202,
1204,
3744,
3511,
273,
394,
2748,
3744,
12,
11272,
202,
202,
6741,
18,
10107,
2686,
273,
24889,
31,
202,
202,
6741,
18,
10107,
2384,
273,
24889,
31,
202,
202,
2649,
5484,
18,
542,
3744,
12,
3511,
11272,
202,
202,
4236,
2562,
273,
982,
18,
588,
4236,
12,
11272,
202,
202,
2957,
5412,
273,
804,
11824,
12570,
18,
588,
27398,
8199,
12,
2562,
11272,
202,
202,
6313,
751,
3511,
751,
273,
394,
7145,
751,
12,
7145,
751,
18,
29818,
67,
44,
20344,
11272,
202,
202,
6741,
751,
18,
4210,
7002,
273,
4200,
397,
261,
24889,
380,
890,
11272,
202,
202,
2649,
5484,
18,
542,
3744,
751,
12,
3511,
751,
11272,
202,
202,
2649,
5484,
18,
542,
8199,
12,
5412,
11272,
202,
202,
2649,
5484,
18,
1289,
12699,
2223,
12,
394,
30001,
2223,
12,
262,
288,
1082,
202,
482,
918,
12574,
3367,
12,
30001,
1133,
425,
262,
1082,
202,
95,
9506,
202,
73,
18,
13241,
18,
542,
23206,
12,
2077,
5484,
18,
588,
4236,
12,
262,
25083,
202,
18,
588,
3163,
2957,
12,
348,
8588,
18,
10989,
67,
59,
734,
3264,
67,
15480,
67,
2664,
1880,
7306,
262,
11272,
9506,
202,
19463,
4972,
273,
2077,
5484,
18,
588,
1227,
5484,
12,
11272,
9506,
202,
10576,
18,
4210,
273,
4972,
18,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
14728,
752,
4247,
5484,
12,
14728,
982,
262,
202,
95,
202,
202,
474,
24889,
273,
576,
31,
202,
202,
6385,
14728,
2077,
5484,
273,
394,
14728,
12,
982,
16,
348,
8588,
18,
9826,
11272,
202,
202,
1204,
3744,
3511,
273,
394,
2748,
3744,
12,
11272,
202,
202,
6741,
18,
10107,
2686,
273,
24889,
31,
202,
202,
6741,
18,
10107,
2384,
273,
24889,
31,
202,
202,
2649,
5484,
18,
542,
3744,
12,
3511,
11272,
202,
202,
4236,
2562,
273,
982,
18,
588,
4236,
12,
11272,
202,
202,
2957,
5412,
273,
804,
11824,
12570,
18,
588,
27398,
8199,
12,
2562,
11272,
202,
202,
6313,
751,
3511,
751,
273,
394,
7145,
751,
12,
7145,
751,
18,
29818,
67,
44,
2
] |
public String getLoaderNameForResource( String resourceName ) | public String getLoaderNameForResource(String resourceName) | public String getLoaderNameForResource( String resourceName ) { return resourceManager.getLoaderNameForResource( resourceName ); } | 9291 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9291/e128e4125429834f73621c8aa67036ca877e731e/RuntimeInstance.java/clean/src/java/org/apache/velocity/runtime/RuntimeInstance.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
336,
2886,
461,
20977,
12,
780,
9546,
13,
565,
288,
3639,
327,
1058,
1318,
18,
588,
2886,
461,
20977,
12,
9546,
11272,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
336,
2886,
461,
20977,
12,
780,
9546,
13,
565,
288,
3639,
327,
1058,
1318,
18,
588,
2886,
461,
20977,
12,
9546,
11272,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public void addLocal(String vName) { | public void addLocal(String vName, Object varObj) { | public void addLocal(String vName) { int vIndex = itsVariableNames.get(vName, -1); if (vIndex != -1) { // There's already a variable or parameter with this name. return; } int index = itsVariables.size(); LocalVariable lVar = createLocalVariable(vName, false); itsVariables.add(lVar); itsVariableNames.put(vName, index); } | 54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/e497d2b898e781a5052344191ab878cd469f3f53/VariableTable.java/buggy/js/rhino/src/org/mozilla/javascript/VariableTable.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
527,
2042,
12,
780,
331,
461,
16,
1033,
569,
2675,
13,
288,
3639,
509,
331,
1016,
273,
2097,
3092,
1557,
18,
588,
12,
90,
461,
16,
300,
21,
1769,
3639,
309,
261,
90,
1016,
480,
300,
21,
13,
288,
5411,
368,
6149,
1807,
1818,
279,
2190,
578,
1569,
598,
333,
508,
18,
5411,
327,
31,
3639,
289,
3639,
509,
770,
273,
2097,
6158,
18,
1467,
5621,
3639,
3566,
3092,
328,
1537,
273,
752,
2042,
3092,
12,
90,
461,
16,
629,
1769,
3639,
2097,
6158,
18,
1289,
12,
80,
1537,
1769,
3639,
2097,
3092,
1557,
18,
458,
12,
90,
461,
16,
770,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
527,
2042,
12,
780,
331,
461,
16,
1033,
569,
2675,
13,
288,
3639,
509,
331,
1016,
273,
2097,
3092,
1557,
18,
588,
12,
90,
461,
16,
300,
21,
1769,
3639,
309,
261,
90,
1016,
480,
300,
21,
13,
288,
5411,
368,
6149,
1807,
1818,
279,
2190,
578,
1569,
598,
333,
508,
18,
5411,
327,
31,
3639,
289,
3639,
509,
770,
273,
2097,
6158,
18,
1467,
5621,
3639,
3566,
3092,
328,
1537,
273,
752,
2042,
3092,
12,
90,
461,
16,
629,
1769,
3639,
2097,
6158,
18,
1289,
12,
80,
1537,
1769,
3639,
2097,
3092,
1557,
18,
458,
12,
90,
461,
16,
770,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
remapAliases(mapping, query.getFrom()); | remapAliases(mapping, originalQuery.getFrom()); | protected static Set mergeGroupBy(PrecomputedTable precomputedTable, Query query) { Query precompQuery = precomputedTable.getQuery(); Set retval = new HashSet(); if (precompQuery.getGroupBy().size() != query.getGroupBy().size()) { // GROUP BY clauses are unequal in size. return retval; } if (precompQuery.getFrom().size() != query.getFrom().size()) { // FROM lists are unequal in size. return retval; } // Find the possible mappings from tables in the // PrecomputedTable query to tables in the Query Set mappings = MappingUtil.findCombinations(precompQuery.getFrom(), query.getFrom(), new AbstractTableComparator()); // Create a map from AbstractValue to SelectValue for the PrecomputedTable Map valueMap = precomputedTable.getValueMap(); // Iterate through the mappings and compare combinations. Note that each mapping is a case // where the precomputed table has the same set of tables as the Query. Iterator mappingsIter = mappings.iterator(); while (mappingsIter.hasNext()) { Map mapping = (Map) mappingsIter.next(); // Remap the aliases // TODO: query.getFrom() is really the wrong thing to use. To be extra-specially // paranoid about realiasing things so they clash, this should be the getFrom() of the // original Query, before any precomputed tables have been inserted. remapAliases(mapping, query.getFrom()); // The constraints must all be exactly the same as those in the Query. // TODO: This should probably be replaced by // compareConstraints(precompWhere, queryWhere) // && compareConstraints(queryWhere, precompWhere) // This will catch the case where the precompWhere and the QueryWhere are actually // equal, but expressed in different terms (such as a = 5, compared to // a <= 5 and a >= 5, although I don't think the algorithm is quite clever enough to // spot this particular example). if (!precompQuery.getWhere().equals(query.getWhere())) { continue; } // Constraints are equal, now check the group by. We can use .equals on the Sets, // because AbstractValue.equals relies on AbstractTable.equals, which should be happy // now that the aliases have been matched up. if (!precompQuery.getGroupBy().equals(query.getGroupBy())) { continue; } // Also, we must compare the HAVING clauses - each constraint in the PrecomputedTable // must EQUAL or IMPLIES some constraint in the Query. Set constraintEqualsSet = new HashSet(); // NOTE: this if line has a side-effect... Careful. if (!compareConstraints(precompQuery.getHaving(), query.getHaving(), constraintEqualsSet)) { continue; } // So now constraintEqualsSet contains all the constraints that can be left out // If the PrecomputedTable is distinct, then the Query can't be. if (precompQuery.isDistinct() && (!query.isDistinct())) { continue; } Table precomputedSqlTable = new Table(precomputedTable.getName(), ALIAS_PREFIX + StringUtil.uniqueString()); Query newQuery = new Query(); try { // Populate the SELECT list of the new Query. This method will throw an exception // if any of the AbstractValues required are not present in the precomputed table. reconstructSelectValues(query.getSelect(), precomputedSqlTable, valueMap, precompQuery.getFrom(), true, newQuery); // Populate the FROM list - in this case it is only the precomputed table newQuery.addFrom(precomputedSqlTable); // Populate the WHERE clause of the new query with the contents of the HAVING clause // of the original query, leaving out those constraints in constraintEqualsSet. reconstructAbstractConstraints(query.getHaving(), precomputedSqlTable, valueMap, precompQuery.getFrom(), true, newQuery.getWhere(), constraintEqualsSet, null, 0, null); // Now populate the ORDER BY clause of the new query from the contents of the ORDER // BY clause of the original query. reconstructAbstractValues(query.getOrderBy(), precomputedSqlTable, valueMap, precompQuery.getFrom(), true, newQuery.getOrderBy()); // Now copy the EXPLAIN, DISTINCT, LIMIT, and OFFSET status to the new query: newQuery.setDistinct(query.isDistinct()); newQuery.setExplain(query.isExplain()); newQuery.setLimitOffset(query.getLimit(), query.getOffset()); } catch (QueryOptimiserException e) { continue; } retval.add(newQuery); } return retval; } | 7196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7196/a1240b8cf1675c1ecad1af2224e153bba730ae4d/QueryOptimiser.java/clean/intermine/src/java/org/intermine/sql/precompute/QueryOptimiser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
760,
1000,
2691,
26257,
12,
1386,
20307,
1388,
675,
20307,
1388,
16,
2770,
843,
13,
288,
3639,
2770,
675,
2919,
1138,
273,
675,
20307,
1388,
18,
588,
1138,
5621,
3639,
1000,
5221,
273,
394,
6847,
5621,
3639,
309,
261,
1484,
2919,
1138,
18,
588,
26257,
7675,
1467,
1435,
480,
843,
18,
588,
26257,
7675,
1467,
10756,
288,
5411,
368,
13839,
6953,
14093,
854,
640,
9729,
316,
963,
18,
5411,
327,
5221,
31,
3639,
289,
3639,
309,
261,
1484,
2919,
1138,
18,
588,
1265,
7675,
1467,
1435,
480,
843,
18,
588,
1265,
7675,
1467,
10756,
288,
5411,
368,
4571,
6035,
854,
640,
9729,
316,
963,
18,
5411,
327,
5221,
31,
3639,
289,
3639,
368,
4163,
326,
3323,
7990,
628,
4606,
316,
326,
3639,
368,
2962,
20307,
1388,
843,
358,
4606,
316,
326,
2770,
3639,
1000,
7990,
273,
9408,
1304,
18,
4720,
24107,
1012,
12,
1484,
2919,
1138,
18,
588,
1265,
9334,
4766,
10792,
843,
18,
588,
1265,
9334,
4766,
10792,
394,
4115,
1388,
5559,
10663,
3639,
368,
1788,
279,
852,
628,
4115,
620,
358,
6766,
620,
364,
326,
2962,
20307,
1388,
3639,
1635,
460,
863,
273,
675,
20307,
1388,
18,
24805,
863,
5621,
3639,
368,
11436,
3059,
326,
7990,
471,
3400,
17265,
18,
3609,
716,
1517,
2874,
353,
279,
648,
3639,
368,
1625,
326,
675,
20307,
1014,
711,
326,
1967,
444,
434,
4606,
487,
326,
2770,
18,
3639,
4498,
7990,
2360,
273,
7990,
18,
9838,
5621,
3639,
1323,
261,
16047,
2360,
18,
5332,
2134,
10756,
288,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
760,
1000,
2691,
26257,
12,
1386,
20307,
1388,
675,
20307,
1388,
16,
2770,
843,
13,
288,
3639,
2770,
675,
2919,
1138,
273,
675,
20307,
1388,
18,
588,
1138,
5621,
3639,
1000,
5221,
273,
394,
6847,
5621,
3639,
309,
261,
1484,
2919,
1138,
18,
588,
26257,
7675,
1467,
1435,
480,
843,
18,
588,
26257,
7675,
1467,
10756,
288,
5411,
368,
13839,
6953,
14093,
854,
640,
9729,
316,
963,
18,
5411,
327,
5221,
31,
3639,
289,
3639,
309,
261,
1484,
2919,
1138,
18,
588,
1265,
7675,
1467,
1435,
480,
843,
18,
588,
1265,
7675,
1467,
10756,
288,
5411,
368,
4571,
6035,
854,
640,
9729,
316,
963,
18,
5411,
327,
5221,
31,
3639,
289,
3639,
368,
4163,
326,
3323,
7990,
2
] |
for (int j = i+1; j < dPrime.getLength(i); j++){ | for (int j = i+1; j < i + dPrime.getLength(i); j++){ | public void colorDPrime(int scheme){ currentScheme = scheme; DPrimeTable dPrime = theData.dpTable; noImage = true; if (scheme == STD_SCHEME){ // set coloring based on LOD and D' for (int i = 0; i < Chromosome.getSize()-1; i++){ for (int j = i+1; j < dPrime.getLength(i)+i; j++){ PairwiseLinkage thisPair = dPrime.getLDStats(i,j); if (thisPair == null){ continue; } double d = thisPair.getDPrime(); double l = thisPair.getLOD(); Color boxColor = null; if (l > 2) { if (d < 0.5) { //high LOD, low D' boxColor = new Color(255, 224, 224); } else { //high LOD, high D' shades of red double blgr = (255-32)*2*(1-d); boxColor = new Color(255, (int) blgr, (int) blgr); //boxColor = new Color(224, (int) blgr, (int) blgr); } } else if (d > 0.99) { //high D', low LOD blueish color boxColor = new Color(192, 192, 240); } else { //no LD boxColor = Color.white; } thisPair.setColor(boxColor); } } }else if (scheme == SFS_SCHEME){ for (int x = 0; x < Chromosome.getSize()-1; x++){ for (int y = x+1; y < Chromosome.getSize(); y++){ PairwiseLinkage thisPair = dPrime.getLDStats(x,y); if (thisPair == null){ continue; } //get the right bits double lowCI = thisPair.getConfidenceLow(); double highCI = thisPair.getConfidenceHigh(); //color in squares if (lowCI >= FindBlocks.cutLowCI && highCI >= FindBlocks.cutHighCI) { thisPair.setColor(Color.darkGray); //strong LD }else if (highCI >= FindBlocks.recHighCI) { thisPair.setColor(Color.lightGray); //uninformative } else { thisPair.setColor(Color.white); //recomb } } } }else if (scheme == GAM_SCHEME){ for (int x = 0; x < Chromosome.getSize()-1; x++){ for (int y = x+1; y < Chromosome.getSize(); y++){ PairwiseLinkage thisPair = dPrime.getLDStats(x,y); if (thisPair == null) { continue; } double[] freqs = thisPair.getFreqs(); int numGam = 0; for (int i = 0; i < freqs.length; i++){ //add a little bump for EM probs which should be zero but are really like 10^-10 if (freqs[i] > FindBlocks.fourGameteCutoff + 1E-8) numGam++; } //color in squares if(numGam > 3){ thisPair.setColor(Color.white); }else{ thisPair.setColor(Color.darkGray); } } } }else if (scheme == WMF_SCHEME){ // set coloring based on LOD and D', but without (arbitrary) cutoffs to introduce // "color damage" (Tufte) // first get the maximum LOD score so we can scale relative to that. double max_l = 0.0; for (int i = 0; i < Chromosome.getSize(); i++){ for (int j = i+1; j < dPrime.getLength(i); j++){ PairwiseLinkage thisPair = dPrime.getLDStats(i,j); if (thisPair == null){ continue; } if (thisPair.getLOD() > max_l) max_l = thisPair.getLOD(); } } // cap the max LOD score if (max_l > 5.0) max_l = 5.0; for (int i = 0; i < Chromosome.getSize(); i++){ for (int j = i+1; j < dPrime.getLength(i); j++){ PairwiseLinkage thisPair = dPrime.getLDStats(i,j); if (thisPair == null){ continue; } double d = thisPair.getDPrime(); double l = thisPair.getLOD(); Color boxColor = null; double lod_scale = l / max_l; // if greater than the cap, call it the cap if (lod_scale > 1.0) lod_scale = 1.0; // there can be negative LOD scores, apparently if (lod_scale < 0.0) lod_scale = 0.0; // also, scale the D' so anything under .2 is white. d = (1.0 / 0.8) * (d - 0.2); if (d < 0.0) d = 0.0; // if there is low(er) D' but big LOD score, this should be in a gray scale // scaled to the D' value if (lod_scale > d) { lod_scale = d; } int r, g, b; // r = (int)(200.0 * d + 55.0 * lod_scale); // g = (int)(255.0 * d - 255.0 * lod_scale); // b = (int)(255.0 * d - 255.0 * lod_scale); double ap, cp, dp, ep, jp, kp; ap = 0.0; cp = -255.0; dp = -55.0; ep = -200.0; jp = 255.0; kp = 255.0; r = (int)(ap * d + cp * lod_scale + jp); g = b = (int)(dp * d + ep * lod_scale + kp); if (r < 0) r = 0; if (g < 0) g = 0; if (b < 0) b = 0; boxColor = new Color(r, g, b); thisPair.setColor(boxColor); } } }else if (scheme == RSQ_SCHEME){ // set coloring based on R-squared values for (int i = 0; i < Chromosome.getSize(); i++){ for (int j = i+1; j < dPrime.getLength(i); j++){ PairwiseLinkage thisPair = dPrime.getLDStats(i,j); if (thisPair == null){ continue; } double rsq = thisPair.getRSquared(); Color boxColor = null; int r, g, b; r = g = b = (int)(255.0 * (1.0 - rsq)); boxColor = new Color(r, g, b); thisPair.setColor(boxColor); } } } } | 51222 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51222/b2aaca65488a77e0aa4ac9ea3393313a17fd8e76/DPrimeDisplay.java/buggy/edu/mit/wi/haploview/DPrimeDisplay.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2036,
40,
23327,
12,
474,
4355,
15329,
3639,
783,
9321,
273,
4355,
31,
3639,
463,
23327,
1388,
302,
23327,
273,
326,
751,
18,
9295,
1388,
31,
3639,
1158,
2040,
273,
638,
31,
3639,
309,
261,
9068,
422,
2347,
40,
67,
22870,
15329,
5411,
368,
444,
2036,
310,
2511,
603,
511,
1212,
471,
463,
11,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1680,
520,
16958,
18,
588,
1225,
1435,
17,
21,
31,
277,
27245,
95,
7734,
364,
261,
474,
525,
273,
277,
15,
21,
31,
525,
411,
302,
23327,
18,
588,
1782,
12,
77,
27921,
77,
31,
525,
27245,
95,
10792,
8599,
2460,
2098,
410,
333,
4154,
273,
302,
23327,
18,
588,
12069,
4195,
12,
77,
16,
78,
1769,
10792,
309,
261,
2211,
4154,
422,
446,
15329,
13491,
1324,
31,
10792,
289,
10792,
1645,
302,
273,
333,
4154,
18,
588,
40,
23327,
5621,
10792,
1645,
328,
273,
333,
4154,
18,
588,
48,
1212,
5621,
10792,
5563,
3919,
2957,
273,
446,
31,
10792,
309,
261,
80,
405,
576,
13,
288,
13491,
309,
261,
72,
411,
374,
18,
25,
13,
288,
18701,
368,
8766,
511,
1212,
16,
4587,
463,
11,
18701,
3919,
2957,
273,
394,
5563,
12,
10395,
16,
576,
3247,
16,
576,
3247,
1769,
13491,
289,
469,
288,
18701,
368,
8766,
511,
1212,
16,
3551,
463,
11,
699,
16601,
434,
1755,
18701,
1645,
2811,
3197,
273,
261,
10395,
17,
1578,
17653,
22,
21556,
21,
17,
72,
1769,
18701,
3919,
2957,
273,
394,
5563,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2036,
40,
23327,
12,
474,
4355,
15329,
3639,
783,
9321,
273,
4355,
31,
3639,
463,
23327,
1388,
302,
23327,
273,
326,
751,
18,
9295,
1388,
31,
3639,
1158,
2040,
273,
638,
31,
3639,
309,
261,
9068,
422,
2347,
40,
67,
22870,
15329,
5411,
368,
444,
2036,
310,
2511,
603,
511,
1212,
471,
463,
11,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1680,
520,
16958,
18,
588,
1225,
1435,
17,
21,
31,
277,
27245,
95,
7734,
364,
261,
474,
525,
273,
277,
15,
21,
31,
525,
411,
302,
23327,
18,
588,
1782,
12,
77,
27921,
77,
31,
525,
27245,
95,
10792,
8599,
2460,
2098,
410,
333,
4154,
273,
302,
23327,
18,
588,
12069,
4195,
2
] |
setStringProperty( ReportItem.DATA_SET_PROP, valueToSet ); | setStringProperty( IReportItemModel.DATA_SET_PROP, valueToSet ); | public void setDataSet( DataSetHandle handle ) throws SemanticException { if ( handle == null ) setStringProperty( DATA_SET_PROP, null ); else { ModuleHandle moduleHandle = handle.getRoot( ); String valueToSet = handle.getName( ); if ( moduleHandle instanceof LibraryHandle ) { String namespace = ( (LibraryHandle) moduleHandle ) .getNamespace( ); valueToSet = StringUtil.buildQualifiedReference( namespace, handle.getName( ) ); } setStringProperty( ReportItem.DATA_SET_PROP, valueToSet ); } } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/d802c33711e0d111551ae23575895cd060f085b6/ReportItemHandle.java/buggy/model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/ReportItemHandle.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
7929,
694,
12,
14065,
3259,
1640,
262,
1216,
24747,
503,
202,
95,
202,
202,
430,
261,
1640,
422,
446,
262,
1082,
202,
542,
780,
1396,
12,
8730,
67,
4043,
67,
15811,
16,
446,
11272,
202,
202,
12107,
202,
202,
95,
1082,
202,
3120,
3259,
1605,
3259,
273,
1640,
18,
588,
2375,
12,
11272,
1082,
202,
780,
460,
25208,
273,
1640,
18,
17994,
12,
11272,
1082,
202,
430,
261,
1605,
3259,
1276,
18694,
3259,
262,
1082,
202,
95,
9506,
202,
780,
1981,
273,
261,
261,
9313,
3259,
13,
1605,
3259,
262,
25083,
202,
18,
588,
3402,
12,
11272,
9506,
202,
1132,
25208,
273,
14205,
18,
3510,
8708,
2404,
12,
1981,
16,
25083,
202,
4110,
18,
17994,
12,
262,
11272,
1082,
202,
97,
1082,
202,
542,
780,
1396,
12,
8706,
1180,
18,
4883,
67,
4043,
67,
15811,
16,
460,
25208,
11272,
202,
202,
97,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
7929,
694,
12,
14065,
3259,
1640,
262,
1216,
24747,
503,
202,
95,
202,
202,
430,
261,
1640,
422,
446,
262,
1082,
202,
542,
780,
1396,
12,
8730,
67,
4043,
67,
15811,
16,
446,
11272,
202,
202,
12107,
202,
202,
95,
1082,
202,
3120,
3259,
1605,
3259,
273,
1640,
18,
588,
2375,
12,
11272,
1082,
202,
780,
460,
25208,
273,
1640,
18,
17994,
12,
11272,
1082,
202,
430,
261,
1605,
3259,
1276,
18694,
3259,
262,
1082,
202,
95,
9506,
202,
780,
1981,
273,
261,
261,
9313,
3259,
13,
1605,
3259,
262,
25083,
202,
18,
588,
3402,
12,
11272,
9506,
202,
1132,
25208,
273,
14205,
18,
3510,
8708,
2404,
12,
1981,
16,
25083,
202,
4110,
18,
17994,
2
] |
tmp2 = cyclicRightShift11(wordAt(A, i) + tmp1); | aI = cyclicRightShift11(wordAt(A, i) + tC); | private void stepAlongPath() throws MemoryBoundFunctionException { // update indices into A and wrap them i += 4; // i is a word index into a byte array i &= 0x3fc; j += wordAt(A, i); j &= 0x3fc; // logger.info("Step at " + c + " indices [" + i + "," + j + "]"); // feed bits from T into A[i] and rotate them int tmp1 = wordAt(T, c); int tmp2 = 0; switch (T.length) { case 16*1024*1024: tmp2 = cyclicRightShift11(wordAt(A, i) + tmp1); break; case 1024*1024: tmp2 = cyclicRightShift15(wordAt(A, i) + tmp1); break; } setWordAt(A, i, tmp2); // swap A[i] and A[j] tmp2 = wordAt(A, i); int tmp3 = wordAt(A, j); setWordAt(A, i, tmp3); setWordAt(A, j, tmp2); // update c switch (T.length) { case 16*1024*1024: c = (tmp1 ^ wordAt(A, (tmp2 + tmp3) & 0x3fc)) & 0x00fffffc; break; case 1024*1024: c = (tmp1 ^ wordAt(A, (tmp2 + tmp3) & 0x3fc)) & 0x000ffffc; break; } if (c < 0 || c > (T.length-4) || ( c & 0x3 ) != 0) throw new MemoryBoundFunctionException("bad c " + c + " T[" + T.length + "]"); pathIndex++; } | 8150 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8150/6c240c5104bc8aea4f8c949afaefb548db954942/MBF1.java/buggy/src/org/lockss/mbf/MBF1.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
2235,
1067,
932,
743,
1435,
1216,
9251,
3499,
2083,
503,
288,
565,
368,
1089,
4295,
1368,
432,
471,
2193,
2182,
565,
277,
1011,
1059,
31,
368,
277,
353,
279,
2076,
770,
1368,
279,
1160,
526,
565,
277,
12058,
374,
92,
23,
7142,
31,
565,
525,
1011,
2076,
861,
12,
37,
16,
277,
1769,
565,
525,
12058,
374,
92,
23,
7142,
31,
565,
368,
1194,
18,
1376,
2932,
4160,
622,
315,
397,
276,
397,
315,
4295,
8247,
397,
277,
397,
5753,
397,
525,
397,
9870,
1769,
565,
368,
4746,
4125,
628,
399,
1368,
432,
63,
77,
65,
471,
8534,
2182,
565,
509,
1853,
21,
273,
2076,
861,
12,
56,
16,
276,
1769,
565,
509,
1853,
22,
273,
374,
31,
565,
1620,
261,
56,
18,
2469,
13,
288,
565,
648,
2872,
14,
2163,
3247,
14,
2163,
3247,
30,
1377,
279,
45,
273,
30383,
4726,
10544,
2499,
12,
1095,
861,
12,
37,
16,
277,
13,
397,
268,
39,
1769,
1377,
898,
31,
565,
648,
6250,
14,
2163,
3247,
30,
1377,
1853,
22,
273,
30383,
4726,
10544,
3600,
12,
1095,
861,
12,
37,
16,
277,
13,
397,
1853,
21,
1769,
1377,
898,
31,
565,
289,
1850,
444,
3944,
861,
12,
37,
16,
277,
16,
1853,
22,
1769,
565,
368,
7720,
432,
63,
77,
65,
471,
432,
63,
78,
65,
565,
1853,
22,
273,
2076,
861,
12,
37,
16,
277,
1769,
565,
509,
1853,
23,
273,
2076,
861,
12,
37,
16,
525,
1769,
565,
444,
3944,
861,
12,
37,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
2235,
1067,
932,
743,
1435,
1216,
9251,
3499,
2083,
503,
288,
565,
368,
1089,
4295,
1368,
432,
471,
2193,
2182,
565,
277,
1011,
1059,
31,
368,
277,
353,
279,
2076,
770,
1368,
279,
1160,
526,
565,
277,
12058,
374,
92,
23,
7142,
31,
565,
525,
1011,
2076,
861,
12,
37,
16,
277,
1769,
565,
525,
12058,
374,
92,
23,
7142,
31,
565,
368,
1194,
18,
1376,
2932,
4160,
622,
315,
397,
276,
397,
315,
4295,
8247,
397,
277,
397,
5753,
397,
525,
397,
9870,
1769,
565,
368,
4746,
4125,
628,
399,
1368,
432,
63,
77,
65,
471,
8534,
2182,
565,
509,
1853,
21,
273,
2076,
861,
12,
56,
16,
276,
1769,
565,
509,
1853,
22,
273,
2
] |
return severity; } | return severity; } | public int getSeverity() { return severity; } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/09a4c864bb83fb62a685d497a2df9ce5451376bd/ProblemFilter.java/clean/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ProblemFilter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
1322,
6084,
560,
1435,
288,
3639,
327,
11426,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
1322,
6084,
560,
1435,
288,
3639,
327,
11426,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
iCodeTop = addByte((byte) TokenStream.NEWTEMP, iCodeTop); iCodeTop = addByte((byte)theLocalSlot, iCodeTop); iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); Integer finallyLabel = (Integer)(finallyTarget.getProp(Node.LABEL_PROP)); iCodeTop = addGoto(finallyLabel.intValue(), | iCodeTop = addByte(TokenStream.NEWTEMP, iCodeTop); iCodeTop = addByte(theLocalSlot, iCodeTop); iCodeTop = addByte(TokenStream.POP, iCodeTop); int finallyLabel = finallyTarget.getExistingIntProp(Node.LABEL_PROP); iCodeTop = addGoto(finallyLabel, | private int generateICode(Node node, int iCodeTop) { int type = node.getType(); Node child = node.getFirstChild(); Node firstChild = child; switch (type) { case TokenStream.FUNCTION : { iCodeTop = addByte((byte) TokenStream.CLOSURE, iCodeTop); Node fn = (Node) node.getProp(Node.FUNCTION_PROP); Short index = (Short) fn.getProp(Node.FUNCTION_PROP); iCodeTop = addByte((byte)(index.shortValue() >> 8), iCodeTop); iCodeTop = addByte((byte)(index.shortValue() & 0xff), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.SCRIPT : iCodeTop = updateLineNumber(node, iCodeTop); while (child != null) { if (child.getType() != TokenStream.FUNCTION) iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); } break; case TokenStream.CASE : iCodeTop = updateLineNumber(node, iCodeTop); child = child.getNextSibling(); while (child != null) { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); } break; case TokenStream.LABEL : case TokenStream.WITH : case TokenStream.LOOP : case TokenStream.DEFAULT : case TokenStream.BLOCK : case TokenStream.VOID : case TokenStream.NOP : iCodeTop = updateLineNumber(node, iCodeTop); while (child != null) { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); } break; case TokenStream.COMMA : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); itsStackDepth--; child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); break; case TokenStream.SWITCH : { iCodeTop = updateLineNumber(node, iCodeTop); iCodeTop = generateICode(child, iCodeTop); int theLocalSlot = itsData.itsMaxLocals++; iCodeTop = addByte((byte) TokenStream.NEWTEMP, iCodeTop); iCodeTop = addByte((byte)theLocalSlot, iCodeTop); iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); itsStackDepth--; /* reminder - below we construct new GOTO nodes that aren't linked into the tree just for the purpose of having a node to pass to the addGoto routine. (Parallels codegen here). Seems unnecessary. */ Vector cases = (Vector) node.getProp(Node.CASES_PROP); for (int i = 0; i < cases.size(); i++) { Node thisCase = (Node)cases.elementAt(i); Node first = thisCase.getFirstChild(); // the case expression is the firstmost child // the rest will be generated when the case // statements are encountered as siblings of // the switch statement. iCodeTop = generateICode(first, iCodeTop); iCodeTop = addByte((byte) TokenStream.USETEMP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte((byte) theLocalSlot, iCodeTop); iCodeTop = addByte((byte) TokenStream.SHEQ, iCodeTop); Node target = new Node(TokenStream.TARGET); thisCase.addChildAfter(target, first); Node branch = new Node(TokenStream.IFEQ); branch.putProp(Node.TARGET_PROP, target); iCodeTop = addGoto(branch, TokenStream.IFEQ, iCodeTop); itsStackDepth--; } Node defaultNode = (Node) node.getProp(Node.DEFAULT_PROP); if (defaultNode != null) { Node defaultTarget = new Node(TokenStream.TARGET); defaultNode.getFirstChild().addChildToFront(defaultTarget); Node branch = new Node(TokenStream.GOTO); branch.putProp(Node.TARGET_PROP, defaultTarget); iCodeTop = addGoto(branch, TokenStream.GOTO, iCodeTop); } Node breakTarget = (Node) node.getProp(Node.BREAK_PROP); Node branch = new Node(TokenStream.GOTO); branch.putProp(Node.TARGET_PROP, breakTarget); iCodeTop = addGoto(branch, TokenStream.GOTO, iCodeTop); } break; case TokenStream.TARGET : { Object lblObect = node.getProp(Node.LABEL_PROP); if (lblObect == null) { int label = markLabel(acquireLabel(), iCodeTop); node.putProp(Node.LABEL_PROP, new Integer(label)); } else { int label = ((Integer)lblObect).intValue(); markLabel(label, iCodeTop); } // if this target has a FINALLY_PROP, it is a JSR target // and so has a PC value on the top of the stack if (node.getProp(Node.FINALLY_PROP) != null) { itsStackDepth = 1; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } } break; case TokenStream.EQOP : case TokenStream.RELOP : { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); int op = node.getInt(); if (version == Context.VERSION_1_2) { if (op == TokenStream.EQ) op = TokenStream.SHEQ; else if (op == TokenStream.NE) op = TokenStream.SHNE; } iCodeTop = addByte((byte) op, iCodeTop); itsStackDepth--; } break; case TokenStream.NEW : case TokenStream.CALL : { if (itsSourceFile != null && (itsData.itsSourceFile == null || ! itsSourceFile.equals(itsData.itsSourceFile))) itsData.itsSourceFile = itsSourceFile; iCodeTop = addByte((byte)TokenStream.SOURCEFILE, iCodeTop); int childCount = 0; short nameIndex = -1; while (child != null) { iCodeTop = generateICode(child, iCodeTop); if (nameIndex == -1) { if (child.getType() == TokenStream.NAME) nameIndex = (short)(itsData.itsStringTableIndex - 1); else if (child.getType() == TokenStream.GETPROP) nameIndex = (short)(itsData.itsStringTableIndex - 1); } child = child.getNextSibling(); childCount++; } if (node.getProp(Node.SPECIALCALL_PROP) != null) { // embed line number and source filename iCodeTop = addByte((byte) TokenStream.CALLSPECIAL, iCodeTop); iCodeTop = addByte((byte)(itsLineNumber >> 8), iCodeTop); iCodeTop = addByte((byte)(itsLineNumber & 0xff), iCodeTop); iCodeTop = addString(itsSourceFile, iCodeTop); } else { iCodeTop = addByte((byte) type, iCodeTop); iCodeTop = addByte((byte)(nameIndex >> 8), iCodeTop); iCodeTop = addByte((byte)(nameIndex & 0xFF), iCodeTop); } itsStackDepth -= (childCount - 1); // always a result value // subtract from child count to account for [thisObj &] fun if (type == TokenStream.NEW) childCount -= 1; else childCount -= 2; iCodeTop = addByte((byte)(childCount >> 8), iCodeTop); iCodeTop = addByte((byte)(childCount & 0xff), iCodeTop); if (childCount > itsData.itsMaxArgs) itsData.itsMaxArgs = childCount; iCodeTop = addByte((byte)TokenStream.SOURCEFILE, iCodeTop); } break; case TokenStream.NEWLOCAL : case TokenStream.NEWTEMP : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.NEWTEMP, iCodeTop); iCodeTop = addLocalRef(node, iCodeTop); } break; case TokenStream.USELOCAL : { if (node.getProp(Node.TARGET_PROP) != null) iCodeTop = addByte((byte) TokenStream.RETSUB, iCodeTop); else { iCodeTop = addByte((byte) TokenStream.USETEMP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } Node temp = (Node) node.getProp(Node.LOCAL_PROP); iCodeTop = addLocalRef(temp, iCodeTop); } break; case TokenStream.USETEMP : { iCodeTop = addByte((byte) TokenStream.USETEMP, iCodeTop); Node temp = (Node) node.getProp(Node.TEMP_PROP); iCodeTop = addLocalRef(temp, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.IFEQ : case TokenStream.IFNE : iCodeTop = generateICode(child, iCodeTop); itsStackDepth--; // after the conditional GOTO, really // fall thru... case TokenStream.GOTO : iCodeTop = addGoto(node, (byte) type, iCodeTop); break; case TokenStream.JSR : { /* mark the target with a FINALLY_PROP to indicate that it will have an incoming PC value on the top of the stack. !!! This only works if the target follows the JSR in the tree. !!! */ Node target = (Node)(node.getProp(Node.TARGET_PROP)); target.putProp(Node.FINALLY_PROP, node); iCodeTop = addGoto(node, TokenStream.GOSUB, iCodeTop); } break; case TokenStream.AND : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.DUP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int falseTarget = acquireLabel(); iCodeTop = addGoto(falseTarget, TokenStream.IFNE, iCodeTop); iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); itsStackDepth--; child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); markLabel(falseTarget, iCodeTop); } break; case TokenStream.OR : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.DUP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int trueTarget = acquireLabel(); iCodeTop = addGoto(trueTarget, TokenStream.IFEQ, iCodeTop); iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); itsStackDepth--; child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); markLabel(trueTarget, iCodeTop); } break; case TokenStream.GETPROP : { iCodeTop = generateICode(child, iCodeTop); String s = (String) node.getProp(Node.SPECIAL_PROP_PROP); if (s != null) { if (s.equals("__proto__")) iCodeTop = addByte((byte) TokenStream.GETPROTO, iCodeTop); else if (s.equals("__parent__")) iCodeTop = addByte((byte) TokenStream.GETSCOPEPARENT, iCodeTop); else badTree(node); } else { child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.GETPROP, iCodeTop); itsStackDepth--; } } break; case TokenStream.DELPROP : case TokenStream.BITAND : case TokenStream.BITOR : case TokenStream.BITXOR : case TokenStream.LSH : case TokenStream.RSH : case TokenStream.URSH : case TokenStream.ADD : case TokenStream.SUB : case TokenStream.MOD : case TokenStream.DIV : case TokenStream.MUL : case TokenStream.GETELEM : iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) type, iCodeTop); itsStackDepth--; break; case TokenStream.CONVERT : { iCodeTop = generateICode(child, iCodeTop); Object toType = node.getProp(Node.TYPE_PROP); if (toType == ScriptRuntime.NumberClass) iCodeTop = addByte((byte) TokenStream.POS, iCodeTop); else badTree(node); } break; case TokenStream.UNARYOP : iCodeTop = generateICode(child, iCodeTop); switch (node.getInt()) { case TokenStream.VOID : iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); iCodeTop = addByte((byte) TokenStream.UNDEFINED, iCodeTop); break; case TokenStream.NOT : { int trueTarget = acquireLabel(); int beyond = acquireLabel(); iCodeTop = addGoto(trueTarget, TokenStream.IFEQ, iCodeTop); iCodeTop = addByte((byte) TokenStream.TRUE, iCodeTop); iCodeTop = addGoto(beyond, TokenStream.GOTO, iCodeTop); markLabel(trueTarget, iCodeTop); iCodeTop = addByte((byte) TokenStream.FALSE, iCodeTop); markLabel(beyond, iCodeTop); } break; case TokenStream.BITNOT : iCodeTop = addByte((byte) TokenStream.BITNOT, iCodeTop); break; case TokenStream.TYPEOF : iCodeTop = addByte((byte) TokenStream.TYPEOF, iCodeTop); break; case TokenStream.SUB : iCodeTop = addByte((byte) TokenStream.NEG, iCodeTop); break; case TokenStream.ADD : iCodeTop = addByte((byte) TokenStream.POS, iCodeTop); break; default: badTree(node); break; } break; case TokenStream.SETPROP : { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); String s = (String) node.getProp(Node.SPECIAL_PROP_PROP); if (s != null) { if (s.equals("__proto__")) iCodeTop = addByte((byte) TokenStream.SETPROTO, iCodeTop); else if (s.equals("__parent__")) iCodeTop = addByte((byte) TokenStream.SETPARENT, iCodeTop); else badTree(node); } else { child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.SETPROP, iCodeTop); itsStackDepth -= 2; } } break; case TokenStream.SETELEM : iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) type, iCodeTop); itsStackDepth -= 2; break; case TokenStream.SETNAME : iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.SETNAME, iCodeTop); iCodeTop = addString(firstChild.getString(), iCodeTop); itsStackDepth--; break; case TokenStream.TYPEOF : { String name = node.getString(); int index = -1; // use typeofname if an activation frame exists // since the vars all exist there instead of in jregs if (itsInFunctionFlag && !itsData.itsNeedsActivation) index = itsVariableTable.getOrdinal(name); if (index == -1) { iCodeTop = addByte((byte) TokenStream.TYPEOFNAME, iCodeTop); iCodeTop = addString(name, iCodeTop); } else { iCodeTop = addByte((byte) TokenStream.GETVAR, iCodeTop); iCodeTop = addByte((byte) index, iCodeTop); iCodeTop = addByte((byte) TokenStream.TYPEOF, iCodeTop); } itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.PARENT : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.GETPARENT, iCodeTop); break; case TokenStream.GETBASE : case TokenStream.BINDNAME : case TokenStream.NAME : case TokenStream.STRING : iCodeTop = addByte((byte) type, iCodeTop); iCodeTop = addString(node.getString(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case TokenStream.INC : case TokenStream.DEC : { int childType = child.getType(); switch (childType) { case TokenStream.GETVAR : { String name = child.getString(); if (itsData.itsNeedsActivation) { iCodeTop = addByte((byte) TokenStream.SCOPE, iCodeTop); iCodeTop = addByte((byte) TokenStream.STRING, iCodeTop); iCodeTop = addString(name, iCodeTop); itsStackDepth += 2; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte((byte) (type == TokenStream.INC ? TokenStream.PROPINC : TokenStream.PROPDEC), iCodeTop); itsStackDepth--; } else { iCodeTop = addByte((byte) (type == TokenStream.INC ? TokenStream.VARINC : TokenStream.VARDEC), iCodeTop); int i = itsVariableTable.getOrdinal(name); iCodeTop = addByte((byte)i, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } } break; case TokenStream.GETPROP : case TokenStream.GETELEM : { Node getPropChild = child.getFirstChild(); iCodeTop = generateICode(getPropChild, iCodeTop); getPropChild = getPropChild.getNextSibling(); iCodeTop = generateICode(getPropChild, iCodeTop); if (childType == TokenStream.GETPROP) iCodeTop = addByte((byte) (type == TokenStream.INC ? TokenStream.PROPINC : TokenStream.PROPDEC), iCodeTop); else iCodeTop = addByte((byte) (type == TokenStream.INC ? TokenStream.ELEMINC : TokenStream.ELEMDEC), iCodeTop); itsStackDepth--; } break; default : { iCodeTop = addByte((byte) (type == TokenStream.INC ? TokenStream.NAMEINC : TokenStream.NAMEDEC), iCodeTop); iCodeTop = addString(child.getString(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; } } break; case TokenStream.NUMBER : { double num = node.getDouble(); if (num == 0.0) { iCodeTop = addByte((byte) TokenStream.ZERO, iCodeTop); } else if (num == 1.0) { iCodeTop = addByte((byte) TokenStream.ONE, iCodeTop); } else { iCodeTop = addByte((byte) TokenStream.NUMBER, iCodeTop); iCodeTop = addNumber(num, iCodeTop); } itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; } case TokenStream.POP : case TokenStream.POPV : iCodeTop = updateLineNumber(node, iCodeTop); case TokenStream.ENTERWITH : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) type, iCodeTop); itsStackDepth--; break; case TokenStream.GETTHIS : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) type, iCodeTop); break; case TokenStream.NEWSCOPE : iCodeTop = addByte((byte) type, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case TokenStream.LEAVEWITH : iCodeTop = addByte((byte) type, iCodeTop); break; case TokenStream.TRY : { itsTryDepth++; if (itsTryDepth > itsData.itsMaxTryDepth) itsData.itsMaxTryDepth = itsTryDepth; Node catchTarget = (Node)node.getProp(Node.TARGET_PROP); Node finallyTarget = (Node)node.getProp(Node.FINALLY_PROP); if (catchTarget == null) { iCodeTop = addByte((byte) TokenStream.TRY, iCodeTop); iCodeTop = addByte((byte)0, iCodeTop); iCodeTop = addByte((byte)0, iCodeTop); } else iCodeTop = addGoto(node, TokenStream.TRY, iCodeTop); int finallyHandler = 0; if (finallyTarget != null) { finallyHandler = acquireLabel(); int theLabel = finallyHandler & 0x7FFFFFFF; itsLabelTable[theLabel].addFixup(iCodeTop); } iCodeTop = addByte((byte)0, iCodeTop); iCodeTop = addByte((byte)0, iCodeTop); Node lastChild = null; /* when we encounter the child of the catchTarget, we set the stackDepth to 1 to account for the incoming exception object. */ boolean insertedEndTry = false; while (child != null) { if (catchTarget != null && lastChild == catchTarget) { itsStackDepth = 1; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } /* When the following child is the catchTarget (or the finallyTarget if there are no catches), the current child is the goto at the end of the try statemets, we need to emit the endtry before that goto. */ Node nextSibling = child.getNextSibling(); if (!insertedEndTry && nextSibling != null && (nextSibling == catchTarget || nextSibling == finallyTarget)) { iCodeTop = addByte((byte) TokenStream.ENDTRY, iCodeTop); insertedEndTry = true; } iCodeTop = generateICode(child, iCodeTop); lastChild = child; child = child.getNextSibling(); } itsStackDepth = 0; if (finallyTarget != null) { // normal flow goes around the finally handler stublet int skippy = acquireLabel(); iCodeTop = addGoto(skippy, TokenStream.GOTO, iCodeTop); // on entry the stack will have the exception object markLabel(finallyHandler, iCodeTop); itsStackDepth = 1; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int theLocalSlot = itsData.itsMaxLocals++; iCodeTop = addByte((byte) TokenStream.NEWTEMP, iCodeTop); iCodeTop = addByte((byte)theLocalSlot, iCodeTop); iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); Integer finallyLabel = (Integer)(finallyTarget.getProp(Node.LABEL_PROP)); iCodeTop = addGoto(finallyLabel.intValue(), TokenStream.GOSUB, iCodeTop); iCodeTop = addByte((byte) TokenStream.USETEMP, iCodeTop); iCodeTop = addByte((byte)theLocalSlot, iCodeTop); iCodeTop = addByte((byte) TokenStream.JTHROW, iCodeTop); itsStackDepth = 0; markLabel(skippy, iCodeTop); } itsTryDepth--; } break; case TokenStream.THROW : iCodeTop = updateLineNumber(node, iCodeTop); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.THROW, iCodeTop); itsStackDepth--; break; case TokenStream.RETURN : iCodeTop = updateLineNumber(node, iCodeTop); if (child != null) iCodeTop = generateICode(child, iCodeTop); else { iCodeTop = addByte((byte) TokenStream.UNDEFINED, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } iCodeTop = addGoto(node, TokenStream.RETURN, iCodeTop); itsStackDepth--; break; case TokenStream.GETVAR : { String name = node.getString(); if (itsData.itsNeedsActivation) { // SETVAR handled this by turning into a SETPROP, but // we can't do that to a GETVAR without manufacturing // bogus children. Instead we use a special op to // push the current scope. iCodeTop = addByte((byte) TokenStream.SCOPE, iCodeTop); iCodeTop = addByte((byte) TokenStream.STRING, iCodeTop); iCodeTop = addString(name, iCodeTop); itsStackDepth += 2; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte((byte) TokenStream.GETPROP, iCodeTop); itsStackDepth--; } else { int index = itsVariableTable.getOrdinal(name); iCodeTop = addByte((byte) TokenStream.GETVAR, iCodeTop); iCodeTop = addByte((byte)index, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } } break; case TokenStream.SETVAR : { if (itsData.itsNeedsActivation) { child.setType(TokenStream.BINDNAME); node.setType(TokenStream.SETNAME); iCodeTop = generateICode(node, iCodeTop); } else { String name = child.getString(); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); int index = itsVariableTable.getOrdinal(name); iCodeTop = addByte((byte) TokenStream.SETVAR, iCodeTop); iCodeTop = addByte((byte)index, iCodeTop); } } break; case TokenStream.PRIMARY: iCodeTop = addByte((byte) node.getInt(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case TokenStream.ENUMINIT : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.ENUMINIT, iCodeTop); iCodeTop = addLocalRef(node, iCodeTop); itsStackDepth--; break; case TokenStream.ENUMNEXT : { iCodeTop = addByte((byte) TokenStream.ENUMNEXT, iCodeTop); Node init = (Node)node.getProp(Node.ENUM_PROP); iCodeTop = addLocalRef(init, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.ENUMDONE : // could release the local here?? break; case TokenStream.OBJECT : { Node regexp = (Node) node.getProp(Node.REGEXP_PROP); int index = ((Integer)(regexp.getProp( Node.REGEXP_PROP))).intValue(); iCodeTop = addByte((byte) TokenStream.OBJECT, iCodeTop); iCodeTop = addByte((byte)(index >> 8), iCodeTop); iCodeTop = addByte((byte)(index & 0xff), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; default : badTree(node); break; } return iCodeTop; } | 12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/f6c346cc7699c007b0b9b27d9c3cdb5446052c64/Interpreter.java/buggy/js/rhino/src/org/mozilla/javascript/Interpreter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
2103,
45,
1085,
12,
907,
756,
16,
509,
277,
1085,
3401,
13,
288,
3639,
509,
618,
273,
756,
18,
588,
559,
5621,
3639,
2029,
1151,
273,
756,
18,
588,
3759,
1763,
5621,
3639,
2029,
15070,
273,
1151,
31,
3639,
1620,
261,
723,
13,
288,
13491,
648,
3155,
1228,
18,
7788,
294,
288,
4766,
18701,
277,
1085,
3401,
273,
527,
3216,
12443,
7229,
13,
3155,
1228,
18,
22693,
55,
4830,
16,
277,
1085,
3401,
1769,
10792,
2029,
2295,
273,
261,
907,
13,
756,
18,
588,
4658,
12,
907,
18,
7788,
67,
15811,
1769,
10792,
7925,
770,
273,
261,
4897,
13,
2295,
18,
588,
4658,
12,
907,
18,
7788,
67,
15811,
1769,
10792,
277,
1085,
3401,
273,
527,
3216,
12443,
7229,
21433,
1615,
18,
6620,
620,
1435,
1671,
1725,
3631,
277,
1085,
3401,
1769,
10792,
277,
1085,
3401,
273,
527,
3216,
12443,
7229,
21433,
1615,
18,
6620,
620,
1435,
473,
374,
5297,
3631,
277,
1085,
3401,
1769,
4766,
3639,
2097,
2624,
6148,
9904,
31,
10792,
309,
261,
1282,
2624,
6148,
405,
2097,
751,
18,
1282,
2747,
2624,
13,
13491,
2097,
751,
18,
1282,
2747,
2624,
273,
2097,
2624,
6148,
31,
7734,
289,
7734,
898,
31,
5411,
648,
3155,
1228,
18,
10885,
294,
7734,
277,
1085,
3401,
273,
1089,
31063,
12,
2159,
16,
277,
1085,
3401,
1769,
7734,
1323,
261,
3624,
480,
446,
13,
288,
10792,
309,
261,
3624,
18,
588,
559,
1435,
480,
3155,
1228,
18,
7788,
13,
7682,
277,
1085,
3401,
273,
2103,
45,
1085,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
2103,
45,
1085,
12,
907,
756,
16,
509,
277,
1085,
3401,
13,
288,
3639,
509,
618,
273,
756,
18,
588,
559,
5621,
3639,
2029,
1151,
273,
756,
18,
588,
3759,
1763,
5621,
3639,
2029,
15070,
273,
1151,
31,
3639,
1620,
261,
723,
13,
288,
13491,
648,
3155,
1228,
18,
7788,
294,
288,
4766,
18701,
277,
1085,
3401,
273,
527,
3216,
12443,
7229,
13,
3155,
1228,
18,
22693,
55,
4830,
16,
277,
1085,
3401,
1769,
10792,
2029,
2295,
273,
261,
907,
13,
756,
18,
588,
4658,
12,
907,
18,
7788,
67,
15811,
1769,
10792,
7925,
770,
273,
261,
4897,
13,
2295,
18,
588,
4658,
12,
907,
18,
7788,
67,
15811,
1769,
10792,
277,
1085,
3401,
273,
527,
2
] |
public static void main(String[] args){ | public static void main(String[] args) { | public static void main(String[] args){ if (args.length > 0) TestRunner.run( TestClass(args[0]) ); else TestRunner.run( suite() ); } | 2000 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2000/42e92240032e00cfa75b72717c9bec7a49e9f639/AttributeTest.java/buggy/src/java/org/ensembl/mart/explorer/test/AttributeTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
1071,
760,
918,
2774,
12,
780,
8526,
833,
15329,
202,
202,
430,
261,
1968,
18,
2469,
405,
374,
13,
1082,
565,
7766,
9709,
18,
2681,
12,
7766,
797,
12,
1968,
63,
20,
5717,
11272,
202,
202,
12107,
1082,
565,
7766,
9709,
18,
2681,
12,
11371,
1435,
11272,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
1071,
760,
918,
2774,
12,
780,
8526,
833,
15329,
202,
202,
430,
261,
1968,
18,
2469,
405,
374,
13,
1082,
565,
7766,
9709,
18,
2681,
12,
7766,
797,
12,
1968,
63,
20,
5717,
11272,
202,
202,
12107,
1082,
565,
7766,
9709,
18,
2681,
12,
11371,
1435,
11272,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
reuseEditorsThreshold.getLabelControl(groupComposite).setEnabled(reuseEditors.getSelection()); reuseEditorsThreshold.getTextControl(groupComposite).setEnabled(reuseEditors.getSelection()); | reuseEditorsThreshold.getLabelControl(editorReuseGroup).setEnabled(reuseEditors.getSelection()); reuseEditorsThreshold.getTextControl(editorReuseGroup).setEnabled(reuseEditors.getSelection()); | private void createEditorReuseGroup(Composite composite) { final Composite groupComposite = new Composite(composite, SWT.LEFT); GridLayout layout = new GridLayout(); layout.numColumns = 2; groupComposite.setLayout(layout); GridData gd = new GridData(); gd.horizontalAlignment = gd.FILL; gd.grabExcessHorizontalSpace = true; groupComposite.setLayoutData(gd); reuseEditors = new Button(groupComposite, SWT.CHECK); reuseEditors.setText(WorkbenchMessages.getString("WorkbenchPreference.reuseEditors")); //$NON-NLS-1$ GridData reuseEditorsData = new GridData(); reuseEditorsData.horizontalSpan = layout.numColumns; reuseEditors.setLayoutData(reuseEditorsData); IPreferenceStore store = WorkbenchPlugin.getDefault().getPreferenceStore(); reuseEditors.setSelection(store.getBoolean(IPreferenceConstants.REUSE_EDITORS_BOOLEAN)); reuseEditors.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e){ reuseEditorsThreshold.getLabelControl(groupComposite).setEnabled(reuseEditors.getSelection()); reuseEditorsThreshold.getTextControl(groupComposite).setEnabled(reuseEditors.getSelection()); } }); reuseEditorsThreshold = new IntegerFieldEditor(IPreferenceConstants.REUSE_EDITORS, WorkbenchMessages.getString("WorkbenchPreference.reuseEditorsThreshold"), groupComposite); //$NON-NLS-1$ reuseEditorsThreshold.setPreferenceStore(WorkbenchPlugin.getDefault().getPreferenceStore()); reuseEditorsThreshold.setPreferencePage(this); reuseEditorsThreshold.setTextLimit(2); reuseEditorsThreshold.setErrorMessage(WorkbenchMessages.getString("WorkbenchPreference.reuseEditorsThresholdError")); //$NON-NLS-1$ reuseEditorsThreshold.setValidateStrategy(StringFieldEditor.VALIDATE_ON_KEY_STROKE); reuseEditorsThreshold.setValidRange(1, 99); reuseEditorsThreshold.load(); reuseEditorsThreshold.getLabelControl(groupComposite).setEnabled(reuseEditors.getSelection()); reuseEditorsThreshold.getTextControl(groupComposite).setEnabled(reuseEditors.getSelection()); reuseEditorsThreshold.setPropertyChangeListener(new IPropertyChangeListener() { public void propertyChange(PropertyChangeEvent event) { if (event.getProperty().equals(FieldEditor.IS_VALID)) setValid(reuseEditorsThreshold.isValid()); } }); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/1ef7395895b00a9c2f0f7a619909190edfdcadd2/WorkbenchPreferencePage.java/buggy/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/dialogs/WorkbenchPreferencePage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
6946,
31704,
1114,
12,
9400,
9635,
13,
288,
202,
202,
6385,
14728,
1041,
9400,
273,
394,
14728,
12,
27676,
16,
348,
8588,
18,
10066,
1769,
202,
202,
6313,
3744,
3511,
273,
394,
7145,
3744,
5621,
202,
202,
6741,
18,
2107,
3380,
273,
576,
31,
202,
202,
1655,
9400,
18,
542,
3744,
12,
6741,
1769,
202,
202,
6313,
751,
15551,
273,
394,
7145,
751,
5621,
202,
202,
19016,
18,
18396,
11535,
273,
15551,
18,
29818,
31,
202,
202,
19016,
18,
2752,
70,
424,
614,
14457,
3819,
273,
638,
31,
202,
202,
1655,
9400,
18,
542,
3744,
751,
12,
19016,
1769,
25083,
202,
266,
1202,
4666,
1383,
273,
394,
12569,
12,
1655,
9400,
16,
348,
8588,
18,
10687,
1769,
202,
202,
266,
1202,
4666,
1383,
18,
542,
1528,
12,
2421,
22144,
5058,
18,
588,
780,
2932,
2421,
22144,
9624,
18,
266,
1202,
4666,
1383,
7923,
1769,
4329,
3993,
17,
5106,
17,
21,
8,
202,
202,
6313,
751,
11827,
4666,
1383,
751,
273,
394,
7145,
751,
5621,
202,
202,
266,
1202,
4666,
1383,
751,
18,
18396,
6952,
273,
3511,
18,
2107,
3380,
31,
202,
202,
266,
1202,
4666,
1383,
18,
542,
3744,
751,
12,
266,
1202,
4666,
1383,
751,
1769,
9506,
202,
45,
9624,
2257,
1707,
273,
4147,
22144,
3773,
18,
588,
1868,
7675,
588,
9624,
2257,
5621,
202,
202,
266,
1202,
4666,
1383,
18,
542,
6233,
12,
2233,
18,
588,
5507,
12,
45,
9624,
2918,
18,
862,
8001,
67,
13208,
55,
67,
17900,
10019,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
752,
6946,
31704,
1114,
12,
9400,
9635,
13,
288,
202,
202,
6385,
14728,
1041,
9400,
273,
394,
14728,
12,
27676,
16,
348,
8588,
18,
10066,
1769,
202,
202,
6313,
3744,
3511,
273,
394,
7145,
3744,
5621,
202,
202,
6741,
18,
2107,
3380,
273,
576,
31,
202,
202,
1655,
9400,
18,
542,
3744,
12,
6741,
1769,
202,
202,
6313,
751,
15551,
273,
394,
7145,
751,
5621,
202,
202,
19016,
18,
18396,
11535,
273,
15551,
18,
29818,
31,
202,
202,
19016,
18,
2752,
70,
424,
614,
14457,
3819,
273,
638,
31,
202,
202,
1655,
9400,
18,
542,
3744,
751,
12,
19016,
1769,
25083,
202,
266,
1202,
4666,
1383,
273,
394,
12569,
12,
1655,
9400,
16,
348,
8588,
2
] |
StringTokenizer attributesTokenizer = new StringTokenizer( stringToSplit, ", " ); String[] tokens = new String[attributesTokenizer.countTokens()]; for( int i = 0; i < tokens.length; ++i ) { tokens[i] = attributesTokenizer.nextToken(); } return tokens; } | StringTokenizer attributesTokenizer = new StringTokenizer( stringToSplit, ", " ); String[] tokens = new String[attributesTokenizer.countTokens()]; for ( int i = 0; i < tokens.length; ++i ) { tokens[i] = attributesTokenizer.nextToken(); } return tokens; } | private static String[] splitStringOnCommasAndSpaces( String stringToSplit ) { StringTokenizer attributesTokenizer = new StringTokenizer( stringToSplit, ", " ); String[] tokens = new String[attributesTokenizer.countTokens()]; for( int i = 0; i < tokens.length; ++i ) { tokens[i] = attributesTokenizer.nextToken(); } return tokens; } | 8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/2e6cb3ce5ba9d3a9f7f42c7014d3a9874e8126ea/LdapUserAndRoleMapper.java/buggy/server/src/imcode/server/user/LdapUserAndRoleMapper.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
760,
514,
8526,
1416,
780,
1398,
12136,
345,
1876,
12077,
12,
514,
14134,
5521,
262,
288,
1377,
16370,
1677,
10524,
273,
394,
16370,
12,
14134,
5521,
16,
3104,
315,
11272,
1377,
514,
8526,
2430,
273,
394,
514,
63,
4350,
10524,
18,
1883,
5157,
1435,
15533,
1377,
364,
12,
509,
277,
273,
374,
31,
277,
411,
2430,
18,
2469,
31,
965,
77,
262,
288,
540,
2430,
63,
77,
65,
273,
1677,
10524,
18,
4285,
1345,
5621,
1377,
289,
1377,
327,
2430,
31,
282,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
760,
514,
8526,
1416,
780,
1398,
12136,
345,
1876,
12077,
12,
514,
14134,
5521,
262,
288,
1377,
16370,
1677,
10524,
273,
394,
16370,
12,
14134,
5521,
16,
3104,
315,
11272,
1377,
514,
8526,
2430,
273,
394,
514,
63,
4350,
10524,
18,
1883,
5157,
1435,
15533,
1377,
364,
12,
509,
277,
273,
374,
31,
277,
411,
2430,
18,
2469,
31,
965,
77,
262,
288,
540,
2430,
63,
77,
65,
273,
1677,
10524,
18,
4285,
1345,
5621,
1377,
289,
1377,
327,
2430,
31,
282,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (canComplain) cat.warn ("Unable to load configuration " + url + "\n"); | if (canComplain) { LOG.warn("Unable to load configuration " + url + "\n"); } | public boolean loadURL(URL url) { try { propertyBundle.load(url.openStream()); cat.info ("Configuration loaded from " + url + "\n"); return true; } catch (Exception e) { if (canComplain) cat.warn ("Unable to load configuration " + url + "\n"); canComplain = false; return false; } } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/2bca90cd19361bbc94b4bf9813d1e3efd96e52fe/ConfigurationProperties.java/clean/src_new/org/argouml/application/configuration/ConfigurationProperties.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1262,
1785,
12,
1785,
880,
13,
288,
202,
698,
288,
202,
565,
1272,
3405,
18,
945,
12,
718,
18,
3190,
1228,
10663,
202,
565,
6573,
18,
1376,
7566,
1750,
4203,
628,
315,
397,
880,
397,
1548,
82,
8863,
202,
565,
327,
638,
31,
202,
97,
202,
14683,
261,
503,
425,
13,
288,
202,
565,
309,
261,
4169,
799,
7446,
13,
202,
202,
2574,
18,
8935,
7566,
3370,
358,
1262,
1664,
315,
397,
880,
397,
1548,
82,
8863,
202,
565,
848,
799,
7446,
273,
629,
31,
202,
565,
327,
629,
31,
202,
97,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1262,
1785,
12,
1785,
880,
13,
288,
202,
698,
288,
202,
565,
1272,
3405,
18,
945,
12,
718,
18,
3190,
1228,
10663,
202,
565,
6573,
18,
1376,
7566,
1750,
4203,
628,
315,
397,
880,
397,
1548,
82,
8863,
202,
565,
327,
638,
31,
202,
97,
202,
14683,
261,
503,
425,
13,
288,
202,
565,
309,
261,
4169,
799,
7446,
13,
202,
202,
2574,
18,
8935,
7566,
3370,
358,
1262,
1664,
315,
397,
880,
397,
1548,
82,
8863,
202,
565,
848,
799,
7446,
273,
629,
31,
202,
565,
327,
629,
31,
202,
97,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
private final boolean processGreyObject(VM_Address object, AddressDequeue tgt, | private final boolean processGreyObject(VM_Address object, AddressDeque tgt, | private final boolean processGreyObject(VM_Address object, AddressDequeue tgt, long timeCap) throws VM_PragmaInline { if (VM_Interface.VerifyAssertions) VM_Interface._assert(!RCBaseHeader.isGreen(object)); if (RCBaseHeader.isPurple(object)) { if (VM_Interface.VerifyAssertions) VM_Interface._assert(RCBaseHeader.isLiveRC(object)); if (!markGrey(object, timeCap)) { scanBlack(object); return false; } else tgt.push(object); } else { if (VM_Interface.VerifyAssertions) { if (!(RCBaseHeader.isGrey(object) || RCBaseHeader.isBlack(object))) { RCBaseHeader.print(object); } VM_Interface._assert(RCBaseHeader.isGrey(object) || RCBaseHeader.isBlack(object)); } RCBaseHeader.clearBufferedBit(object); } return true; } | 5245 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5245/a2d31fa1bc95145b8e2016e9bdeeb119aa707383/TrialDeletion.java/clean/rvm/src/vm/memoryManagers/JMTk/utility/TrialDeletion.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
727,
1250,
1207,
43,
266,
93,
921,
12,
7397,
67,
1887,
733,
16,
5267,
758,
4000,
11680,
16,
25083,
225,
1525,
813,
4664,
13,
565,
1216,
8251,
67,
2050,
9454,
10870,
288,
565,
309,
261,
7397,
67,
1358,
18,
8097,
8213,
1115,
13,
1377,
8251,
67,
1358,
6315,
11231,
12,
5,
11529,
2171,
1864,
18,
291,
21453,
12,
1612,
10019,
565,
309,
261,
11529,
2171,
1864,
18,
291,
10262,
1802,
12,
1612,
3719,
288,
1377,
309,
261,
7397,
67,
1358,
18,
8097,
8213,
1115,
13,
202,
7397,
67,
1358,
6315,
11231,
12,
11529,
2171,
1864,
18,
291,
12328,
11529,
12,
1612,
10019,
1377,
309,
16051,
3355,
43,
266,
93,
12,
1612,
16,
813,
4664,
3719,
288,
202,
9871,
13155,
12,
1612,
1769,
202,
2463,
629,
31,
1377,
289,
469,
202,
29672,
18,
6206,
12,
1612,
1769,
565,
289,
469,
288,
1377,
309,
261,
7397,
67,
1358,
18,
8097,
8213,
1115,
13,
288,
202,
430,
16051,
12,
11529,
2171,
1864,
18,
291,
43,
266,
93,
12,
1612,
13,
202,
1377,
747,
24206,
2171,
1864,
18,
291,
13155,
12,
1612,
20349,
288,
202,
225,
24206,
2171,
1864,
18,
1188,
12,
1612,
1769,
202,
97,
202,
7397,
67,
1358,
6315,
11231,
12,
11529,
2171,
1864,
18,
291,
43,
266,
93,
12,
1612,
13,
9506,
377,
747,
24206,
2171,
1864,
18,
291,
13155,
12,
1612,
10019,
1377,
289,
1377,
24206,
2171,
1864,
18,
8507,
17947,
5775,
12,
1612,
1769,
565,
289,
565,
327,
638,
31,
225,
289,
2,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
727,
1250,
1207,
43,
266,
93,
921,
12,
7397,
67,
1887,
733,
16,
5267,
758,
4000,
11680,
16,
25083,
225,
1525,
813,
4664,
13,
565,
1216,
8251,
67,
2050,
9454,
10870,
288,
565,
309,
261,
7397,
67,
1358,
18,
8097,
8213,
1115,
13,
1377,
8251,
67,
1358,
6315,
11231,
12,
5,
11529,
2171,
1864,
18,
291,
21453,
12,
1612,
10019,
565,
309,
261,
11529,
2171,
1864,
18,
291,
10262,
1802,
12,
1612,
3719,
288,
1377,
309,
261,
7397,
67,
1358,
18,
8097,
8213,
1115,
13,
202,
7397,
67,
1358,
6315,
11231,
12,
11529,
2171,
1864,
18,
291,
12328,
11529,
12,
1612,
10019,
1377,
309,
16051,
3355,
43,
266,
93,
12,
1612,
16,
813,
4664,
3719,
288,
202,
2
] |
pl.setSubjectEnd(new Integer((childLength - (childOnChr.getEnd() - parentOnChr.getEnd())) + 1)); | pl.setSubjectEnd(new Integer(parentOnChr.getEnd() - childOnChr.getStart() + 1)); | protected Location createLocation(BioEntity parent, SimpleLoc parentOnChr, BioEntity child, SimpleLoc childOnChr) { if (!overlap(childOnChr, parentOnChr)) { throw new IllegalArgumentException("parent (" + parentOnChr.getStart() + ", " + parentOnChr.getEnd() + ") and child (" + childOnChr.getStart() + ", " + childOnChr.getEnd() + ") do not overlap."); } boolean startIsPartial = false; boolean endIsPartial = false; // want inclusive co-ordinates int parentLength = (parentOnChr.getEnd() - parentOnChr.getStart()) + 1; int childLength = (childOnChr.getEnd() - childOnChr.getStart()) + 1; if (childOnChr.getStart() < parentOnChr.getStart()) { startIsPartial = true; } if (childOnChr.getEnd() > parentOnChr.getEnd()) { endIsPartial = true; } Location childOnParent = null; if (startIsPartial && endIsPartial) { // -------- parent // | | // -------------- child PartialLocation pl = (PartialLocation) DynamicUtil.createObject(Collections.singleton(PartialLocation.class)); pl.setSubjectStart(new Integer((parentOnChr.getStart() - childOnChr.getStart()) + 1)); // ? +1 // pl.setSubjectEnd(new Integer((childLength // - (childOnChr.getEnd() - parentOnChr.getEnd())) + 1)); pl.setSubjectEnd(new Integer((parentOnChr.getEnd() - childOnChr.getEnd()) + 1)); childOnParent = pl; } else if (startIsPartial) { // -------------- parent // | // ---------- child PartialLocation pl = (PartialLocation) DynamicUtil.createObject(Collections.singleton(PartialLocation.class)); pl.setSubjectStart(new Integer((parentOnChr.getStart() - childOnChr.getStart()) + 1)); pl.setSubjectEnd(new Integer(childLength)); childOnParent = pl; } else if (endIsPartial) { // ------------ parent // | // --------- child PartialLocation pl = (PartialLocation) DynamicUtil.createObject(Collections.singleton(PartialLocation.class)); pl.setSubjectStart(new Integer(1)); pl.setSubjectEnd(new Integer((childLength - (childOnChr.getEnd() - parentOnChr.getEnd())) + 1)); childOnParent = pl; } else { // ------------------ parent // | | // ---------- child childOnParent = (Location) DynamicUtil.createObject(Collections.singleton(Location.class)); } childOnParent.setObject(parent); childOnParent.setSubject(child); childOnParent.setStartIsPartial(startIsPartial ? Boolean.TRUE : Boolean.FALSE); childOnParent.setEndIsPartial(endIsPartial ? Boolean.TRUE : Boolean.FALSE); childOnParent.setStart(new Integer(startIsPartial ? 1 : ((childOnChr.getStart() - parentOnChr.getStart()) + 1))); childOnParent.setEnd(new Integer(endIsPartial ? parentLength : ((childOnChr.getEnd() - parentOnChr.getStart()) + 1))); childOnParent.setStrand(new Integer(childOnChr.getStrand())); // TODO evidence? return childOnParent; } | 29158 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/29158/169e945717cb52a4dd672cadad642a0972adb04c/CalculateLocations.java/clean/flymine/model/genomic/src/java/org/flymine/postprocess/CalculateLocations.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
7050,
752,
2735,
12,
38,
1594,
1943,
982,
16,
4477,
1333,
982,
1398,
782,
86,
16,
4766,
1377,
21209,
1943,
1151,
16,
4477,
1333,
1151,
1398,
782,
86,
13,
288,
3639,
309,
16051,
17946,
12,
3624,
1398,
782,
86,
16,
982,
1398,
782,
86,
3719,
288,
5411,
604,
394,
2754,
2932,
2938,
7566,
397,
982,
1398,
782,
86,
18,
588,
1685,
1435,
4766,
9079,
397,
3104,
315,
397,
982,
1398,
782,
86,
18,
588,
1638,
1435,
4766,
9079,
397,
9369,
471,
1151,
7566,
397,
1151,
1398,
782,
86,
18,
588,
1685,
1435,
4766,
9079,
397,
3104,
315,
397,
1151,
1398,
782,
86,
18,
588,
1638,
1435,
4766,
9079,
397,
9369,
741,
486,
7227,
1199,
1769,
3639,
289,
3639,
1250,
787,
2520,
9447,
273,
629,
31,
3639,
1250,
679,
2520,
9447,
273,
629,
31,
3639,
368,
2545,
13562,
1825,
17,
27934,
3639,
509,
982,
1782,
273,
261,
2938,
1398,
782,
86,
18,
588,
1638,
1435,
300,
982,
1398,
782,
86,
18,
588,
1685,
10756,
397,
404,
31,
3639,
509,
1151,
1782,
273,
261,
3624,
1398,
782,
86,
18,
588,
1638,
1435,
300,
1151,
1398,
782,
86,
18,
588,
1685,
10756,
397,
404,
31,
3639,
309,
261,
3624,
1398,
782,
86,
18,
588,
1685,
1435,
411,
982,
1398,
782,
86,
18,
588,
1685,
10756,
288,
5411,
787,
2520,
9447,
273,
638,
31,
3639,
289,
3639,
309,
261,
3624,
1398,
782,
86,
18,
588,
1638,
1435,
405,
982,
1398,
782,
86,
18,
588,
1638,
10756,
288,
5411,
679,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
7050,
752,
2735,
12,
38,
1594,
1943,
982,
16,
4477,
1333,
982,
1398,
782,
86,
16,
4766,
1377,
21209,
1943,
1151,
16,
4477,
1333,
1151,
1398,
782,
86,
13,
288,
3639,
309,
16051,
17946,
12,
3624,
1398,
782,
86,
16,
982,
1398,
782,
86,
3719,
288,
5411,
604,
394,
2754,
2932,
2938,
7566,
397,
982,
1398,
782,
86,
18,
588,
1685,
1435,
4766,
9079,
397,
3104,
315,
397,
982,
1398,
782,
86,
18,
588,
1638,
1435,
4766,
9079,
397,
9369,
471,
1151,
7566,
397,
1151,
1398,
782,
86,
18,
588,
1685,
1435,
4766,
9079,
397,
3104,
315,
397,
1151,
1398,
782,
86,
18,
588,
1638,
1435,
4766,
9079,
397,
9369,
741,
486,
7227,
1199,
1769,
3639,
289,
2
] |
private List getProjectSourcePath( IProject project ) { List retValue = new ArrayList( ); if ( !hasJavaNature( project ) ) { return null; } // IJavaProject fCurrJProject = JavaCore.create( project ); // // IClasspathEntry[] paths = fCurrJProject.readRawClasspath( ); // if (paths == null || paths.length == 0) // { // return retValue; // } // int len = paths.length; // for (int i=0; i<len; i++) // { // IPath temp = paths[i].getPath(); // // String curPath = temp.toOSString( ); // String directPath = project.getLocation( ).toOSString( ); // int index = directPath.lastIndexOf( File.separator ); // String absPath = directPath.substring( 0, index ) + curPath; // // retValue.add(directPath); // } retValue.add( project.getLocation( ).toOSString( ) ); return retValue; } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/a0f8f97025c04bc3e7fc3377d4c9c4c99928bced/ReportLaunchConfigurationDelegate.java/clean/UI/org.eclipse.birt.report.debug.ui/src/org/eclipse/birt/report/debug/ui/launcher/ReportLaunchConfigurationDelegate.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
987,
11080,
1830,
743,
12,
467,
4109,
1984,
262,
202,
95,
202,
202,
682,
21236,
273,
394,
2407,
12,
11272,
202,
202,
430,
261,
401,
5332,
5852,
50,
1231,
12,
1984,
262,
262,
202,
202,
95,
1082,
202,
2463,
446,
31,
202,
202,
97,
202,
202,
759,
202,
202,
45,
5852,
4109,
284,
20143,
46,
4109,
273,
5110,
4670,
18,
2640,
12,
1984,
11272,
202,
202,
759,
202,
202,
759,
202,
202,
45,
17461,
1622,
8526,
2953,
273,
284,
20143,
46,
4109,
18,
896,
4809,
17461,
12,
11272,
202,
202,
759,
202,
202,
430,
261,
4481,
422,
446,
747,
2953,
18,
2469,
422,
374,
13,
202,
202,
759,
202,
202,
95,
202,
202,
759,
1082,
202,
2463,
21236,
31,
202,
202,
759,
202,
202,
97,
202,
202,
759,
202,
202,
474,
562,
273,
2953,
18,
2469,
31,
202,
202,
759,
202,
202,
1884,
261,
474,
277,
33,
20,
31,
277,
32,
1897,
31,
277,
27245,
202,
202,
759,
202,
202,
95,
202,
202,
759,
1082,
202,
45,
743,
1906,
273,
2953,
63,
77,
8009,
588,
743,
5621,
202,
202,
759,
6862,
202,
759,
1082,
202,
780,
662,
743,
273,
1906,
18,
869,
4618,
780,
12,
11272,
202,
202,
759,
1082,
202,
780,
2657,
743,
273,
1984,
18,
588,
2735,
12,
262,
18,
869,
4618,
780,
12,
11272,
202,
202,
759,
1082,
202,
474,
770,
273,
2657,
743,
18,
2722,
31985,
12,
1387,
18,
11287,
11272,
202,
202,
759,
1082,
202,
780,
24939,
273,
2657,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
987,
11080,
1830,
743,
12,
467,
4109,
1984,
262,
202,
95,
202,
202,
682,
21236,
273,
394,
2407,
12,
11272,
202,
202,
430,
261,
401,
5332,
5852,
50,
1231,
12,
1984,
262,
262,
202,
202,
95,
1082,
202,
2463,
446,
31,
202,
202,
97,
202,
202,
759,
202,
202,
45,
5852,
4109,
284,
20143,
46,
4109,
273,
5110,
4670,
18,
2640,
12,
1984,
11272,
202,
202,
759,
202,
202,
759,
202,
202,
45,
17461,
1622,
8526,
2953,
273,
284,
20143,
46,
4109,
18,
896,
4809,
17461,
12,
11272,
202,
202,
759,
202,
202,
430,
261,
4481,
422,
446,
747,
2953,
18,
2469,
422,
374,
13,
202,
202,
759,
202,
202,
95,
202,
202,
759,
1082,
202,
2
] | ||
addClasspathEntryButtonActionPerformed(evt); } | addClasspathEntryButtonActionPerformed(evt); } | public void actionPerformed(java.awt.event.ActionEvent evt) { addClasspathEntryButtonActionPerformed(evt); } | 7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/32df36439994c14fbd4bb097f19c24c015ecf59d/FindBugsFrame.java/clean/findbugs/src/java/edu/umd/cs/findbugs/gui/FindBugsFrame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
26100,
12,
6290,
18,
2219,
88,
18,
2575,
18,
1803,
1133,
6324,
13,
288,
7734,
9058,
803,
1622,
3616,
19449,
12,
73,
11734,
1769,
5411,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
1071,
918,
26100,
12,
6290,
18,
2219,
88,
18,
2575,
18,
1803,
1133,
6324,
13,
288,
7734,
9058,
803,
1622,
3616,
19449,
12,
73,
11734,
1769,
5411,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (trig.getNextFireTime() == null) storeTrigger(conn, ctxt, trig, | if (trig.getNextFireTime() == null) { storeTrigger(conn, ctxt, trig, | protected boolean updateMisfiredTrigger(Connection conn, SchedulingContext ctxt, String triggerName, String groupName, String newStateIfNotComplete, boolean forceState) // TODO: probably // get rid of // this throws JobPersistenceException { try { Trigger trig = getDelegate().selectTrigger(conn, triggerName, groupName); long misfireTime = System.currentTimeMillis(); if (getMisfireThreshold() > 0) misfireTime -= getMisfireThreshold(); if (trig.getNextFireTime().getTime() > misfireTime) return false; Calendar cal = null; if (trig.getCalendarName() != null) cal = retrieveCalendar(conn, ctxt, trig.getCalendarName()); signaler.notifyTriggerListenersMisfired(trig); trig.updateAfterMisfire(cal); if (trig.getNextFireTime() == null) storeTrigger(conn, ctxt, trig, null, true, STATE_COMPLETE, forceState, false); else { storeTrigger(conn, ctxt, trig, null, true, newStateIfNotComplete, forceState, false); } return true; } catch (Exception e) { throw new JobPersistenceException( "Couldn't update misfired trigger '" + groupName + "." + triggerName + "': " + e.getMessage(), e); } } | 3431 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3431/0ca5d7d851637eb8695746dba9608de14253a225/JobStoreSupport.java/clean/src/java/org/quartz/impl/jdbcjobstore/JobStoreSupport.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1250,
1089,
49,
7396,
2921,
6518,
12,
1952,
1487,
16,
5411,
348,
13252,
1042,
14286,
16,
514,
3080,
461,
16,
514,
11619,
16,
5411,
514,
15907,
10288,
6322,
16,
1250,
2944,
1119,
13,
368,
2660,
30,
8656,
5411,
368,
336,
10911,
434,
5411,
368,
333,
5411,
1216,
3956,
13182,
503,
288,
3639,
775,
288,
5411,
11321,
23142,
273,
18531,
4784,
7675,
4025,
6518,
12,
4646,
16,
3080,
461,
16,
10792,
11619,
1769,
5411,
1525,
312,
7396,
577,
950,
273,
2332,
18,
2972,
28512,
5621,
5411,
309,
261,
588,
49,
7396,
577,
7614,
1435,
405,
374,
13,
10792,
312,
7396,
577,
950,
3947,
2108,
7396,
577,
7614,
5621,
5411,
309,
261,
313,
360,
18,
588,
2134,
9723,
950,
7675,
588,
950,
1435,
405,
312,
7396,
577,
950,
13,
327,
629,
31,
5411,
5542,
1443,
273,
446,
31,
5411,
309,
261,
313,
360,
18,
588,
7335,
461,
1435,
480,
446,
13,
10792,
1443,
273,
4614,
7335,
12,
4646,
16,
14286,
16,
23142,
18,
588,
7335,
461,
10663,
5411,
4277,
264,
18,
12336,
6518,
5583,
49,
7396,
2921,
12,
313,
360,
1769,
5411,
23142,
18,
2725,
4436,
49,
7396,
577,
12,
771,
1769,
5411,
309,
261,
313,
360,
18,
588,
2134,
9723,
950,
1435,
422,
446,
13,
288,
1707,
6518,
12,
4646,
16,
14286,
16,
23142,
16,
10792,
446,
16,
638,
16,
7442,
67,
15795,
16,
2944,
1119,
16,
629,
1769,
5411,
469,
288,
7734,
1707,
6518,
12,
4646,
16,
14286,
16,
23142,
16,
446,
16,
638,
16,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1250,
1089,
49,
7396,
2921,
6518,
12,
1952,
1487,
16,
5411,
348,
13252,
1042,
14286,
16,
514,
3080,
461,
16,
514,
11619,
16,
5411,
514,
15907,
10288,
6322,
16,
1250,
2944,
1119,
13,
368,
2660,
30,
8656,
5411,
368,
336,
10911,
434,
5411,
368,
333,
5411,
1216,
3956,
13182,
503,
288,
3639,
775,
288,
5411,
11321,
23142,
273,
18531,
4784,
7675,
4025,
6518,
12,
4646,
16,
3080,
461,
16,
10792,
11619,
1769,
5411,
1525,
312,
7396,
577,
950,
273,
2332,
18,
2972,
28512,
5621,
5411,
309,
261,
588,
49,
7396,
577,
7614,
1435,
405,
374,
13,
10792,
312,
7396,
577,
950,
3947,
2108,
7396,
577,
7614,
5621,
5411,
309,
261,
313,
360,
18,
588,
2134,
9723,
950,
2
] |
Log.logln(lastActiveLeafNode != null, "pop: zeroing last leafNode: " + lastActiveLeafNode); | Log.logln(SHOW_ALL && lastActiveLeafNode != null, "pop: zeroing last leafNode: " + lastActiveLeafNode); | private void pop(String qName) { Log.logln("pop\t" + qName); if (lastChars.length() != 0 || justPopped == false) { target.add(currentXPath, currentFullXPath, lastChars); lastChars = ""; lastLeafNode = lastActiveLeafNode = currentXPath; } else { Log.logln(lastActiveLeafNode != null, "pop: zeroing last leafNode: " + lastActiveLeafNode); lastActiveLeafNode = null; if (comment != null) { target.addComment(lastLeafNode, comment, XPathParts.Comments.POSTBLOCK); comment = null; } } currentXPath = stripAfter(currentXPath, qName); currentFullXPath = stripAfter(currentFullXPath, qName); justPopped = true; } | 27800 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27800/075b48db8e6ba892d285c732efeec97879c4fe58/CLDRFile.java/buggy/tools/java/org/unicode/cldr/util/CLDRFile.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
1152,
918,
1843,
12,
780,
22914,
13,
288,
1082,
202,
1343,
18,
1330,
2370,
2932,
5120,
64,
88,
6,
397,
22914,
1769,
5411,
309,
261,
2722,
7803,
18,
2469,
1435,
480,
374,
747,
2537,
7049,
1845,
422,
629,
13,
288,
7734,
1018,
18,
1289,
12,
2972,
14124,
16,
783,
5080,
14124,
16,
1142,
7803,
1769,
7734,
1142,
7803,
273,
1408,
31,
7734,
1142,
16545,
273,
1142,
3896,
16545,
273,
783,
14124,
31,
5411,
289,
469,
288,
2398,
202,
1343,
18,
1330,
2370,
12,
16677,
67,
4685,
597,
1142,
3896,
16545,
480,
446,
16,
315,
5120,
30,
3634,
310,
1142,
7839,
907,
30,
315,
397,
1142,
3896,
16545,
1769,
2398,
202,
2722,
3896,
16545,
273,
446,
31,
540,
202,
202,
430,
261,
3469,
480,
446,
13,
288,
540,
1082,
202,
3299,
18,
1289,
4469,
12,
2722,
16545,
16,
2879,
16,
10172,
4305,
18,
9051,
18,
3798,
11403,
1769,
540,
1082,
202,
3469,
273,
446,
31,
540,
202,
202,
97,
5411,
289,
1082,
202,
2972,
14124,
273,
2569,
4436,
12,
2972,
14124,
16,
22914,
1769,
377,
202,
202,
2972,
5080,
14124,
273,
2569,
4436,
12,
2972,
5080,
14124,
16,
22914,
1769,
7734,
2537,
7049,
1845,
273,
638,
31,
377,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
1152,
918,
1843,
12,
780,
22914,
13,
288,
1082,
202,
1343,
18,
1330,
2370,
2932,
5120,
64,
88,
6,
397,
22914,
1769,
5411,
309,
261,
2722,
7803,
18,
2469,
1435,
480,
374,
747,
2537,
7049,
1845,
422,
629,
13,
288,
7734,
1018,
18,
1289,
12,
2972,
14124,
16,
783,
5080,
14124,
16,
1142,
7803,
1769,
7734,
1142,
7803,
273,
1408,
31,
7734,
1142,
16545,
273,
1142,
3896,
16545,
273,
783,
14124,
31,
5411,
289,
469,
288,
2398,
202,
1343,
18,
1330,
2370,
12,
16677,
67,
4685,
597,
1142,
3896,
16545,
480,
446,
16,
315,
5120,
30,
3634,
310,
1142,
7839,
907,
30,
315,
397,
1142,
3896,
16545,
1769,
2398,
202,
2722,
3896,
16545,
273,
446,
31,
540,
2
] |
protected Properties getRenameForumParameters( HttpServletRequest req, Properties params) throws ServletException, IOException { // Lets check if we shall create a new properties if( params == null ) params = new Properties() ; // Lets get the standard metainformation String newConfName = (req.getParameter("NEW_FORUM_NAME")==null) ? "" : (req.getParameter("NEW_FORUM_NAME")) ; String renForumId = (req.getParameter("FORUM_ID")==null) ? "" : (req.getParameter("FORUM_ID")) ; params.setProperty("NEW_FORUM_NAME", newConfName) ; params.setProperty("FORUM_ID", renForumId) ; return params ; } | 8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/a270627916b37a677a391dd9f45c54d3d6f12503/ConfAdmin.java/clean/servlets/conf/ConfAdmin.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
6183,
4170,
1069,
1290,
379,
2402,
12,
9984,
1111,
16,
6183,
859,
13,
202,
15069,
16517,
16,
1860,
288,
202,
202,
759,
511,
2413,
866,
309,
732,
24315,
752,
279,
394,
1790,
202,
202,
430,
12,
859,
422,
446,
262,
859,
273,
394,
6183,
1435,
274,
202,
202,
759,
511,
2413,
336,
326,
4529,
5100,
530,
1471,
202,
202,
780,
394,
3976,
461,
273,
261,
3658,
18,
588,
1662,
2932,
12917,
67,
7473,
2799,
67,
1985,
7923,
631,
2011,
13,
692,
1408,
294,
261,
3658,
18,
588,
1662,
2932,
12917,
67,
7473,
2799,
67,
1985,
6,
3719,
274,
202,
202,
780,
1654,
1290,
379,
548,
273,
261,
3658,
18,
588,
1662,
2932,
7473,
2799,
67,
734,
7923,
631,
2011,
13,
692,
1408,
294,
261,
3658,
18,
588,
1662,
2932,
7473,
2799,
67,
734,
6,
3719,
274,
202,
202,
2010,
18,
542,
1396,
2932,
12917,
67,
7473,
2799,
67,
1985,
3113,
394,
3976,
461,
13,
274,
202,
202,
2010,
18,
542,
1396,
2932,
7473,
2799,
67,
734,
3113,
1654,
1290,
379,
548,
13,
274,
202,
202,
2463,
859,
274,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
6183,
4170,
1069,
1290,
379,
2402,
12,
9984,
1111,
16,
6183,
859,
13,
202,
15069,
16517,
16,
1860,
288,
202,
202,
759,
511,
2413,
866,
309,
732,
24315,
752,
279,
394,
1790,
202,
202,
430,
12,
859,
422,
446,
262,
859,
273,
394,
6183,
1435,
274,
202,
202,
759,
511,
2413,
336,
326,
4529,
5100,
530,
1471,
202,
202,
780,
394,
3976,
461,
273,
261,
3658,
18,
588,
1662,
2932,
12917,
67,
7473,
2799,
67,
1985,
7923,
631,
2011,
13,
692,
1408,
294,
261,
3658,
18,
588,
1662,
2932,
12917,
67,
7473,
2799,
67,
1985,
6,
3719,
274,
202,
202,
780,
1654,
1290,
379,
548,
273,
261,
3658,
18,
588,
1662,
2932,
7473,
2799,
67,
734,
2
] | ||
public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { if (featureID >= 0) { switch (eDerivedStructuralFeatureID(featureID, baseClass)) { case NotationPackage.DIAGRAM_STYLE__HORIZONTAL_GUIDES: return ((InternalEList)getHorizontalGuides()).basicRemove(otherEnd, msgs); case NotationPackage.DIAGRAM_STYLE__VERTICAL_GUIDES: return ((InternalEList)getVerticalGuides()).basicRemove(otherEnd, msgs); default: return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); } } return eBasicSetContainer(null, featureID, msgs); } | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) { switch (featureID) { case NotationPackage.DIAGRAM_STYLE__HORIZONTAL_GUIDES: return ((InternalEList)getHorizontalGuides()).basicRemove(otherEnd, msgs); case NotationPackage.DIAGRAM_STYLE__VERTICAL_GUIDES: return ((InternalEList)getVerticalGuides()).basicRemove(otherEnd, msgs); } return super.eInverseRemove(otherEnd, featureID, msgs); } | public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, Class baseClass, NotificationChain msgs) { if (featureID >= 0) { switch (eDerivedStructuralFeatureID(featureID, baseClass)) { case NotationPackage.DIAGRAM_STYLE__HORIZONTAL_GUIDES: return ((InternalEList)getHorizontalGuides()).basicRemove(otherEnd, msgs); case NotationPackage.DIAGRAM_STYLE__VERTICAL_GUIDES: return ((InternalEList)getVerticalGuides()).basicRemove(otherEnd, msgs); default: return eDynamicInverseRemove(otherEnd, featureID, baseClass, msgs); } } return eBasicSetContainer(null, featureID, msgs); } | 1758 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1758/1d1e28c0f7853dd16bd3fe819770773ed4e61d20/DiagramStyleImpl.java/buggy/org.eclipse.gmf.notation/plugins/org.eclipse.gmf.runtime.notation/src/org/eclipse/gmf/runtime/notation/impl/DiagramStyleImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
27050,
425,
16376,
3288,
12,
3061,
8029,
1308,
1638,
16,
509,
6966,
16,
1659,
23955,
16,
27050,
8733,
13,
288,
202,
202,
430,
261,
7238,
734,
1545,
374,
13,
288,
1082,
202,
9610,
261,
73,
21007,
14372,
4595,
734,
12,
7238,
734,
16,
23955,
3719,
288,
9506,
202,
3593,
2288,
367,
2261,
18,
2565,
1781,
54,
2192,
67,
15066,
972,
44,
20344,
67,
17525,
3991,
30,
6862,
202,
2463,
14015,
3061,
41,
682,
13,
588,
14457,
22549,
281,
1435,
2934,
13240,
3288,
12,
3011,
1638,
16,
8733,
1769,
9506,
202,
3593,
2288,
367,
2261,
18,
2565,
1781,
54,
2192,
67,
15066,
972,
21654,
10109,
67,
17525,
3991,
30,
6862,
202,
2463,
14015,
3061,
41,
682,
13,
588,
15704,
22549,
281,
1435,
2934,
13240,
3288,
12,
3011,
1638,
16,
8733,
1769,
9506,
202,
1886,
30,
6862,
202,
2463,
425,
9791,
16376,
3288,
12,
3011,
1638,
16,
6966,
16,
23955,
16,
8733,
1769,
1082,
202,
97,
202,
202,
97,
202,
202,
2463,
425,
8252,
694,
2170,
12,
2011,
16,
6966,
16,
8733,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
27050,
425,
16376,
3288,
12,
3061,
8029,
1308,
1638,
16,
509,
6966,
16,
1659,
23955,
16,
27050,
8733,
13,
288,
202,
202,
430,
261,
7238,
734,
1545,
374,
13,
288,
1082,
202,
9610,
261,
73,
21007,
14372,
4595,
734,
12,
7238,
734,
16,
23955,
3719,
288,
9506,
202,
3593,
2288,
367,
2261,
18,
2565,
1781,
54,
2192,
67,
15066,
972,
44,
20344,
67,
17525,
3991,
30,
6862,
202,
2463,
14015,
3061,
41,
682,
13,
588,
14457,
22549,
281,
1435,
2934,
13240,
3288,
12,
3011,
1638,
16,
8733,
1769,
9506,
202,
3593,
2288,
367,
2261,
18,
2565,
1781,
54,
2192,
67,
15066,
972,
21654,
10109,
67,
17525,
3991,
30,
6862,
202,
2463,
14015,
3061,
41,
682,
13,
2
] |
if (method == null) { return (null); } if (!Modifier.isPublic(method.getModifiers())) { return (null); } Class clazz = method.getDeclaringClass(); if (Modifier.isPublic(clazz.getModifiers())) { return (method); } method = getAccessibleMethodFromInterfaceNest(clazz, method.getName(), method.getParameterTypes()); return (method); | Class[] parameterTypes = {parameterType}; return getAccessibleMethod(clazz, methodName, parameterTypes); | public static Method getAccessibleMethod(Method method) { // Make sure we have a method to check if (method == null) { return (null); } // If the requested method is not public we cannot call it if (!Modifier.isPublic(method.getModifiers())) { return (null); } // If the declaring class is public, we are done Class clazz = method.getDeclaringClass(); if (Modifier.isPublic(clazz.getModifiers())) { return (method); } // Check the implemented interfaces and subinterfaces method = getAccessibleMethodFromInterfaceNest(clazz, method.getName(), method.getParameterTypes()); return (method); } | 54521 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54521/3a08220d010216caae97991073d08a60df10c2ff/MethodUtils.java/buggy/src/java/org/apache/commons/beanutils/MethodUtils.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
2985,
336,
10451,
1305,
12,
1305,
707,
13,
288,
3639,
368,
4344,
3071,
732,
1240,
279,
707,
358,
866,
3639,
309,
261,
2039,
422,
446,
13,
288,
5411,
327,
261,
2011,
1769,
3639,
289,
3639,
368,
971,
326,
3764,
707,
353,
486,
1071,
732,
2780,
745,
518,
3639,
309,
16051,
9829,
18,
291,
4782,
12,
2039,
18,
588,
11948,
1435,
3719,
288,
5411,
327,
261,
2011,
1769,
3639,
289,
3639,
368,
971,
326,
20845,
667,
353,
1071,
16,
732,
854,
2731,
3639,
1659,
4003,
273,
707,
18,
588,
3456,
14682,
5621,
3639,
309,
261,
9829,
18,
291,
4782,
12,
830,
3638,
18,
588,
11948,
1435,
3719,
288,
5411,
327,
261,
2039,
1769,
3639,
289,
3639,
368,
2073,
326,
8249,
7349,
471,
720,
15898,
3639,
707,
273,
7734,
336,
10451,
1305,
1265,
1358,
50,
395,
12,
830,
3638,
16,
13491,
707,
18,
17994,
9334,
13491,
707,
18,
588,
1662,
2016,
10663,
3639,
327,
261,
2039,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
2985,
336,
10451,
1305,
12,
1305,
707,
13,
288,
3639,
368,
4344,
3071,
732,
1240,
279,
707,
358,
866,
3639,
309,
261,
2039,
422,
446,
13,
288,
5411,
327,
261,
2011,
1769,
3639,
289,
3639,
368,
971,
326,
3764,
707,
353,
486,
1071,
732,
2780,
745,
518,
3639,
309,
16051,
9829,
18,
291,
4782,
12,
2039,
18,
588,
11948,
1435,
3719,
288,
5411,
327,
261,
2011,
1769,
3639,
289,
3639,
368,
971,
326,
20845,
667,
353,
1071,
16,
732,
854,
2731,
3639,
1659,
4003,
273,
707,
18,
588,
3456,
14682,
5621,
3639,
309,
261,
9829,
18,
291,
4782,
12,
830,
3638,
18,
588,
11948,
1435,
3719,
288,
5411,
327,
261,
2039,
1769,
3639,
289,
3639,
368,
2
] |
MAssociationEnd ae0 = (MAssociationEnd)((Object[])(as.getConnections()).toArray())[0]; MAssociationEnd ae1 = (MAssociationEnd)((Object[])(as.getConnections()).toArray())[1]; updateEnd(_srcMult, _srcRole, _srcOrdering, ae0); updateEnd(_destMult, _destRole, _destOrdering, ae1); | MAssociationEnd ae0 = (MAssociationEnd) ((Object[]) (as.getConnections()).toArray())[0]; MAssociationEnd ae1 = (MAssociationEnd) ((Object[]) (as.getConnections()).toArray())[1]; updateEnd(_srcMult, _srcRole, _srcOrdering, ae0); updateEnd(_destMult, _destRole, _destOrdering, ae1); | protected void modelChanged(MElementEvent e) { super.modelChanged(e); MAssociation as = (MAssociation) getOwner(); if (as == null || getLayer() == null) return; MAssociationEnd ae0 = (MAssociationEnd)((Object[])(as.getConnections()).toArray())[0]; MAssociationEnd ae1 = (MAssociationEnd)((Object[])(as.getConnections()).toArray())[1]; updateEnd(_srcMult, _srcRole, _srcOrdering, ae0); updateEnd(_destMult, _destRole, _destOrdering, ae1); boolean srcNav = ae0.isNavigable(); boolean destNav = ae1.isNavigable(); if (srcNav && destNav && SUPPRESS_BIDIRECTIONAL_ARROWS) srcNav = destNav = false; sourceArrowHead = chooseArrowHead(ae0.getAggregation(), srcNav); destArrowHead = chooseArrowHead(ae1.getAggregation(), destNav); setSourceArrowHead(sourceArrowHead); setDestArrowHead(destArrowHead); _srcGroup.calcBounds(); _destGroup.calcBounds(); _middleGroup.calcBounds(); this.computeRoute(); } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/FigAssociation.java/buggy/src_new/org/argouml/uml/diagram/ui/FigAssociation.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
938,
5033,
12,
12310,
1133,
425,
13,
288,
565,
2240,
18,
2284,
5033,
12,
73,
1769,
565,
490,
7174,
487,
273,
261,
49,
7174,
13,
13782,
5621,
565,
309,
261,
345,
422,
446,
747,
25763,
1435,
422,
446,
13,
327,
31,
3639,
490,
7174,
1638,
14221,
20,
273,
3639,
261,
49,
7174,
1638,
13,
12443,
921,
63,
5717,
12,
345,
18,
588,
9314,
1435,
2934,
31447,
10756,
63,
20,
15533,
565,
490,
7174,
1638,
14221,
21,
273,
3639,
261,
49,
7174,
1638,
13,
12443,
921,
63,
5717,
12,
345,
18,
588,
9314,
1435,
2934,
31447,
10756,
63,
21,
15533,
565,
1089,
1638,
24899,
4816,
5049,
16,
389,
4816,
2996,
16,
389,
4816,
20493,
16,
14221,
20,
1769,
565,
1089,
1638,
24899,
10488,
5049,
16,
389,
10488,
2996,
16,
389,
10488,
20493,
16,
14221,
21,
1769,
3639,
1250,
1705,
12599,
273,
14221,
20,
18,
291,
50,
4911,
429,
5621,
565,
1250,
1570,
12599,
273,
14221,
21,
18,
291,
50,
4911,
429,
5621,
565,
309,
261,
4816,
12599,
597,
1570,
12599,
597,
16459,
22526,
67,
38,
30218,
18934,
1013,
67,
985,
28402,
13,
1377,
1705,
12599,
273,
1570,
12599,
273,
629,
31,
565,
1084,
18691,
1414,
273,
9876,
18691,
1414,
12,
8906,
20,
18,
588,
12089,
9334,
1705,
12599,
1769,
565,
1570,
18691,
1414,
273,
9876,
18691,
1414,
12,
8906,
21,
18,
588,
12089,
9334,
1570,
12599,
1769,
565,
18913,
18691,
1414,
12,
3168,
18691,
1414,
1769,
565,
444,
9378,
18691,
1414,
12,
10488,
18691,
1414,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
938,
5033,
12,
12310,
1133,
425,
13,
288,
565,
2240,
18,
2284,
5033,
12,
73,
1769,
565,
490,
7174,
487,
273,
261,
49,
7174,
13,
13782,
5621,
565,
309,
261,
345,
422,
446,
747,
25763,
1435,
422,
446,
13,
327,
31,
3639,
490,
7174,
1638,
14221,
20,
273,
3639,
261,
49,
7174,
1638,
13,
12443,
921,
63,
5717,
12,
345,
18,
588,
9314,
1435,
2934,
31447,
10756,
63,
20,
15533,
565,
490,
7174,
1638,
14221,
21,
273,
3639,
261,
49,
7174,
1638,
13,
12443,
921,
63,
5717,
12,
345,
18,
588,
9314,
1435,
2934,
31447,
10756,
63,
21,
15533,
565,
1089,
1638,
24899,
4816,
5049,
16,
389,
4816,
2996,
16,
389,
4816,
20493,
16,
14221,
20,
2
] |
configDialog.storeValues(); jfritz.saveProperties(); | public void showConfigDialog() { configDialog = new ConfigDialog(this); configDialog.setLocationRelativeTo(this); if (configDialog.showDialog()) { if (configDialog.getSipModel().getData().size() == 0) { // Noch keine SipProvider eingelesen. try { Vector data = JFritzUtils.retrieveSipProvider(JFritz.getProperty("box.address","192.168.178.1"), JFritz.getProperty("box.password"), new FritzBoxFirmware(JFritz.getProperty("box.firmware"))); configDialog.getSipModel().setData(data); configDialog.getSipModel().fireTableDataChanged(); jfritz.getCallerlist().fireTableDataChanged(); } catch (WrongPasswordException e1) { jfritz.errorMsg("Passwort ungltig!"); } catch (IOException e1) { jfritz.errorMsg("FRITZ!Box-Adresse ungltig!"); } catch (InvalidFirmwareException e1) { jfritz.errorMsg("Firmware-Erkennung gescheitert!"); } } configDialog.storeValues(); jfritz.saveProperties(); monitorButton.setEnabled((Integer.parseInt(JFritz.getProperty( "option.callMonitorType", "0")) > 0)); // Show / hide CallByCall column if (JFritzUtils.parseBoolean(JFritz.getProperty( "option.showCallByCall", "false"))) { TableColumnModel colModel = jfritz.getJframe().getCallerTable() .getColumnModel(); if (!colModel.getColumn(2).getHeaderValue().toString().equals( "Call-By-Call")) { colModel.addColumn(jfritz.getJframe().getCallerTable() .getCallByCallColumn()); colModel.moveColumn(colModel.getColumnCount() - 1, 2); colModel.getColumn(2).setPreferredWidth( Integer.parseInt(JFritz.getProperty( "column2.width", "60"))); getCallerListPanel().getCallByCallButton().setEnabled(true); } } else { TableColumnModel colModel = jfritz.getJframe().getCallerTable() .getColumnModel(); if (colModel.getColumn(2).getHeaderValue().toString().equals( "Call-By-Call")) { colModel.removeColumn(colModel.getColumn(2)); getCallerListPanel().getCallByCallButton() .setEnabled(false); } } } configDialog.dispose(); } | 7476 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7476/f6a40b2836ab0d281c9823859247cdb4eb595978/JFritzWindow.java/clean/jfritz/src/de/moonflower/jfritz/JFritzWindow.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2405,
809,
6353,
1435,
288,
202,
202,
1425,
6353,
273,
394,
1903,
6353,
12,
2211,
1769,
202,
202,
1425,
6353,
18,
542,
2735,
8574,
774,
12,
2211,
1769,
202,
202,
430,
261,
1425,
6353,
18,
4500,
6353,
10756,
288,
1082,
202,
430,
261,
1425,
6353,
18,
588,
17550,
1488,
7675,
588,
751,
7675,
1467,
1435,
422,
374,
13,
288,
368,
2631,
343,
12519,
558,
13475,
2249,
425,
310,
19880,
275,
18,
4697,
202,
698,
288,
6862,
202,
5018,
501,
273,
21091,
583,
94,
1989,
18,
17466,
17550,
2249,
12,
46,
42,
583,
94,
18,
588,
1396,
2932,
2147,
18,
2867,
15937,
15561,
18,
23329,
18,
4033,
28,
18,
21,
6,
3631,
21091,
583,
94,
18,
588,
1396,
2932,
2147,
18,
3664,
6,
3631,
394,
478,
583,
94,
3514,
42,
14250,
12,
46,
42,
583,
94,
18,
588,
1396,
2932,
2147,
18,
24403,
6,
3719,
1769,
6862,
202,
1425,
6353,
18,
588,
17550,
1488,
7675,
542,
751,
12,
892,
1769,
6862,
202,
1425,
6353,
18,
588,
17550,
1488,
7675,
12179,
1388,
751,
5033,
5621,
6862,
202,
78,
74,
583,
94,
18,
588,
11095,
1098,
7675,
12179,
1388,
751,
5033,
5621,
9506,
202,
97,
1044,
261,
13634,
3913,
503,
425,
21,
13,
288,
6862,
202,
78,
74,
583,
94,
18,
1636,
3332,
2932,
6433,
91,
499,
640,
75,
5618,
360,
4442,
1769,
9506,
202,
97,
1044,
261,
14106,
425,
21,
13,
288,
6862,
202,
78,
74,
583,
94,
18,
1636,
3332,
2932,
9981,
1285,
62,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
2405,
809,
6353,
1435,
288,
202,
202,
1425,
6353,
273,
394,
1903,
6353,
12,
2211,
1769,
202,
202,
1425,
6353,
18,
542,
2735,
8574,
774,
12,
2211,
1769,
202,
202,
430,
261,
1425,
6353,
18,
4500,
6353,
10756,
288,
1082,
202,
430,
261,
1425,
6353,
18,
588,
17550,
1488,
7675,
588,
751,
7675,
1467,
1435,
422,
374,
13,
288,
368,
2631,
343,
12519,
558,
13475,
2249,
425,
310,
19880,
275,
18,
4697,
202,
698,
288,
6862,
202,
5018,
501,
273,
21091,
583,
94,
1989,
18,
17466,
17550,
2249,
12,
46,
42,
583,
94,
18,
588,
1396,
2932,
2147,
18,
2867,
15937,
15561,
18,
23329,
18,
4033,
28,
18,
21,
6,
3631,
21091,
583,
94,
18,
2
] | |
return handler != null; | return receiverThread != null; | boolean established() { return handler != null; } | 50160 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50160/d9e4a8710e373a36e9ca41a4d244afda624c6344/ConnectionTable.java/buggy/src/org/jgroups/blocks/ConnectionTable.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1250,
19703,
1435,
288,
5411,
327,
5971,
3830,
480,
446,
31,
3639,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1250,
19703,
1435,
288,
5411,
327,
5971,
3830,
480,
446,
31,
3639,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
int offset = VM_Entrypoints.saveThreadStateInstructionsField.getOffsetAsInt(); | Offset offset = VM_Entrypoints.saveThreadStateInstructionsField.getOffset(); | private final boolean genMagic (VM_MethodReference m) { VM_Atom methodName = m.getName(); if (m.getType() == VM_TypeReference.Address) { // Address magic VM_TypeReference[] types = m.getParameterTypes(); // Loads all take the form: // ..., Address, [Offset] -> ..., Value if (methodName == VM_MagicNames.loadAddress || methodName == VM_MagicNames.prepareAddress || methodName == VM_MagicNames.prepareObjectReference || methodName == VM_MagicNames.loadWord || methodName == VM_MagicNames.loadObjectReference || methodName == VM_MagicNames.prepareWord || methodName == VM_MagicNames.loadInt || methodName == VM_MagicNames.prepareInt || methodName == VM_MagicNames.loadFloat) { if (types.length == 0) { // No offset asm.emitPOP_Reg(T0); // address asm.emitPUSH_RegInd(T0); // pushes [T0+0] } else { // Load at offset asm.emitPOP_Reg (S0); // offset asm.emitPOP_Reg (T0); // object ref asm.emitPUSH_RegIdx(T0, S0, asm.BYTE, 0); // pushes [T0+S0] } return true; } if (methodName == VM_MagicNames.loadByte) { if (types.length == 0) { // No offset asm.emitPOP_Reg (T0); // base asm.emitMOVZX_Reg_RegInd_Byte(T0, T0) ; asm.emitPUSH_Reg (T0); } else { // Load at offset asm.emitPOP_Reg (S0); // offset asm.emitPOP_Reg (T0); // base asm.emitMOVZX_Reg_RegIdx_Byte(T0, T0, S0, asm.BYTE, 0); // load and zero extend byte [T0+S0] asm.emitPUSH_Reg (T0); } return true; } if (methodName == VM_MagicNames.loadShort || methodName == VM_MagicNames.loadChar) { if (types.length == 0) { // No offset asm.emitPOP_Reg (T0); // base asm.emitMOVZX_Reg_RegInd_Word(T0, T0); asm.emitPUSH_Reg (T0); } else { // Load at offset asm.emitPOP_Reg (S0); // offset asm.emitPOP_Reg (T0); // base asm.emitMOVZX_Reg_RegIdx_Word(T0, T0, S0, asm.BYTE, 0); // load and zero extend word [T0+S0] asm.emitPUSH_Reg (T0); } return true; } if (methodName == VM_MagicNames.loadLong || methodName == VM_MagicNames.loadDouble) { if (types.length == 0) { // No offset throw new RuntimeException("Magic not implemented"); } else { // Load at offset asm.emitPOP_Reg (S0); // offset asm.emitPOP_Reg (T0); // base asm.emitPUSH_RegIdx(T0, S0, asm.BYTE, 4); // pushes [T0+S0+4] asm.emitPUSH_RegIdx(T0, S0, asm.BYTE, 0); // pushes [T0+S0] } return true; } // Stores all take the form: // ..., Address, [Offset], Value -> ... if (methodName == VM_MagicNames.store) { // Always at least one parameter to a store. // First parameter is the type to be stored. VM_TypeReference storeType = types[0]; if (storeType == VM_TypeReference.Int || storeType == VM_TypeReference.Address || storeType == VM_TypeReference.ObjectReference || storeType == VM_TypeReference.Word || storeType == VM_TypeReference.Float) { if (types.length == 1) { // No offset asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(S0); // address asm.emitMOV_RegInd_Reg(S0,T0); // [S0+0] <- T0 } else { // Store at offset asm.emitPOP_Reg(S0); // offset asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(T1); // address asm.emitMOV_RegIdx_Reg(T1, S0, asm.BYTE, 0, T0); // [T1+S0] <- T0 } return true; } if (storeType == VM_TypeReference.Byte) { if (types.length == 1) { // No offset asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(T1); // base asm.emitMOV_RegInd_Reg_Byte(T1, T0); } else { // Store at offset asm.emitPOP_Reg(S0); // offset asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(T1); // base asm.emitMOV_RegIdx_Reg_Byte(T1, S0, asm.BYTE, 0, T0); // [T1+S0] <- (byte) T0 } return true; } if (storeType == VM_TypeReference.Short || storeType == VM_TypeReference.Char) { if (types.length == 1) { // No offset asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(T1); // base asm.emitMOV_RegInd_Reg_Word(T1, T0); } else { // Store at offset asm.emitPOP_Reg(S0); // offset asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(T1); // base asm.emitMOV_RegIdx_Reg_Word(T1, S0, asm.BYTE, 0, T0); // [T1+S0] <- (word) T0 } return true; } if (storeType == VM_TypeReference.Double || storeType == VM_TypeReference.Long) { if (types.length == 1) { // No offset throw new RuntimeException("Magic not implemented"); } else { // Store at offset asm.emitMOV_Reg_RegDisp(T0, SP, +4); // value high asm.emitMOV_Reg_RegInd (S0, SP); // offset asm.emitMOV_Reg_RegDisp(T1, SP, +12); // base asm.emitMOV_RegIdx_Reg (T1, S0, asm.BYTE, 0, T0); // [T1+S0] <- T0 asm.emitMOV_Reg_RegDisp(T0, SP, +8); // value low asm.emitMOV_RegIdx_Reg (T1, S0, asm.BYTE, 4, T0); // [T1+S0+4] <- T0 asm.emitADD_Reg_Imm (SP, WORDSIZE * 4); // pop stack locations } return true; } } else if (methodName == VM_MagicNames.attempt) { // All attempts are similar 32 bit values. if (types.length == 3) { // Offset passed asm.emitPOP_Reg (S0); // S0 = offset } asm.emitPOP_Reg (T1); // newVal asm.emitPOP_Reg (EAX); // oldVal (EAX is implicit arg to LCMPX if (types.length == 3) { asm.emitADD_Reg_RegInd(S0, SP); // S0 += base } else { // No offset asm.emitMOV_Reg_RegInd(S0, SP); // S0 = base } asm.emitLockNextInstruction(); asm.emitCMPXCHG_RegInd_Reg (S0, T1); // atomic compare-and-exchange asm.emitMOV_RegInd_Imm (SP, 0); // 'push' false (overwriting base) VM_ForwardReference fr = asm.forwardJcc(asm.NE); // skip if compare fails asm.emitMOV_RegInd_Imm (SP, 1); // 'push' true (overwriting base) fr.resolve(asm); return true; } } if (methodName == VM_MagicNames.attemptInt || methodName == VM_MagicNames.attemptObject || methodName == VM_MagicNames.attemptAddress || methodName == VM_MagicNames.attemptWord) { // attempt gets called with four arguments: base, offset, oldVal, newVal // returns ([base+offset] == oldVal) // if ([base+offset] == oldVal) [base+offset] := newVal // (operation on memory is atomic) asm.emitPOP_Reg (T1); // newVal asm.emitPOP_Reg (EAX); // oldVal (EAX is implicit arg to LCMPXCNG asm.emitPOP_Reg (S0); // S0 = offset asm.emitADD_Reg_RegInd(S0, SP); // S0 += base asm.emitLockNextInstruction(); asm.emitCMPXCHG_RegInd_Reg (S0, T1); // atomic compare-and-exchange asm.emitMOV_RegInd_Imm (SP, 0); // 'push' false (overwriting base) VM_ForwardReference fr = asm.forwardJcc(asm.NE); // skip if compare fails asm.emitMOV_RegInd_Imm (SP, 1); // 'push' true (overwriting base) fr.resolve(asm); return true; } if (methodName == VM_MagicNames.invokeMain) { // invokeMain gets "called" with two arguments: // String[] mainArgs // the arguments to the main method // INSTRUCTION[] mainCode // the code for the main method asm.emitPOP_Reg (S0); // genParameterRegisterLoad(1); // pass 1 parameter word asm.emitCALL_Reg(S0); // branches to mainCode with mainArgs on the stack return true; } if (methodName == VM_MagicNames.saveThreadState) { int offset = VM_Entrypoints.saveThreadStateInstructionsField.getOffsetAsInt(); genParameterRegisterLoad(1); // pass 1 parameter word asm.emitCALL_RegDisp(JTOC, offset); return true; } if (methodName == VM_MagicNames.threadSwitch) { int offset = VM_Entrypoints.threadSwitchInstructionsField.getOffsetAsInt(); genParameterRegisterLoad(2); // pass 2 parameter words asm.emitCALL_RegDisp(JTOC, offset); return true; } if (methodName == VM_MagicNames.restoreHardwareExceptionState) { int offset = VM_Entrypoints.restoreHardwareExceptionStateInstructionsField.getOffsetAsInt(); genParameterRegisterLoad(1); // pass 1 parameter word asm.emitCALL_RegDisp(JTOC, offset); return true; } if (methodName == VM_MagicNames.invokeClassInitializer) { asm.emitPOP_Reg (S0); asm.emitCALL_Reg(S0); // call address just popped return true; } if (m.getType() == VM_TypeReference.SysCall) { VM_TypeReference[] args = m.getParameterTypes(); VM_TypeReference rtype = m.getReturnType(); int offsetToJavaArg = 3*WORDSIZE; // the three regs saved in (2) int paramBytes = 0; // (1) save three RVM nonvolatile/special registers // we don't have to save EBP: the callee will // treat it as a framepointer and save/restore // it for us. asm.emitPUSH_Reg(EBX); asm.emitPUSH_Reg(ESI); asm.emitPUSH_Reg(EDI); // (2) Push args to target function (reversed) for (int i=args.length-1; i>=0; i--) { VM_TypeReference arg = args[i]; if (arg.isLongType() || arg.isDoubleType()) { asm.emitPUSH_RegDisp(SP, offsetToJavaArg + 4); asm.emitPUSH_RegDisp(SP, offsetToJavaArg + 4); offsetToJavaArg += 16; paramBytes += 8; } else { asm.emitPUSH_RegDisp(SP, offsetToJavaArg); offsetToJavaArg += 8; paramBytes += 4; } } // (3) invoke target function VM_Field ip = VM_Entrypoints.getSysCallField(m.getName().toString()); asm.emitMOV_Reg_RegDisp(S0, JTOC, VM_Entrypoints.the_boot_recordField.getOffsetAsInt()); asm.emitCALL_RegDisp(S0, ip.getOffsetAsInt()); // (4) pop space for arguments asm.emitADD_Reg_Imm(SP, paramBytes); // (5) restore RVM registers asm.emitPOP_Reg(EDI); asm.emitPOP_Reg(ESI); asm.emitPOP_Reg(EBX); // (6) pop expression stack asm.emitADD_Reg_Imm(SP, paramBytes); // (7) push return value if (rtype.isLongType()) { asm.emitPUSH_Reg(T1); asm.emitPUSH_Reg(T0); } else if (rtype.isDoubleType()) { asm.emitSUB_Reg_Imm(SP, 8); asm.emitFSTP_RegInd_Reg_Quad(SP, FP0); } else if (rtype.isFloatType()) { asm.emitSUB_Reg_Imm(SP, 4); asm.emitFSTP_RegInd_Reg(SP, FP0); } else if (!rtype.isVoidType()) { asm.emitPUSH_Reg(T0); } return true; } if (methodName == VM_MagicNames.getFramePointer) { asm.emitLEA_Reg_RegDisp(S0, SP, fp2spOffset(0)); asm.emitPUSH_Reg (S0); return true; } if (methodName == VM_MagicNames.getCallerFramePointer) { asm.emitPOP_Reg(T0); // Callee FP asm.emitPUSH_RegDisp(T0, STACKFRAME_FRAME_POINTER_OFFSET); // Caller FP return true; } if (methodName == VM_MagicNames.setCallerFramePointer) { asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(S0); // fp asm.emitMOV_RegDisp_Reg(S0, STACKFRAME_FRAME_POINTER_OFFSET, T0); // [S0+SFPO] <- T0 return true; } if (methodName == VM_MagicNames.getCompiledMethodID) { asm.emitPOP_Reg(T0); // Callee FP asm.emitPUSH_RegDisp(T0, STACKFRAME_METHOD_ID_OFFSET); // Callee CMID return true; } if (methodName == VM_MagicNames.setCompiledMethodID) { asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(S0); // fp asm.emitMOV_RegDisp_Reg(S0, STACKFRAME_METHOD_ID_OFFSET, T0); // [S0+SMIO] <- T0 return true; } if (methodName == VM_MagicNames.getReturnAddressLocation) { asm.emitPOP_Reg(T0); // Callee FP asm.emitADD_Reg_Imm(T0, STACKFRAME_RETURN_ADDRESS_OFFSET); // location containing callee return address asm.emitPUSH_Reg(T0); // Callee return address return true; } if (methodName == VM_MagicNames.getTocPointer || methodName == VM_MagicNames.getJTOC ) { asm.emitPUSH_Reg(JTOC); return true; } // get the processor register (PR) if (methodName == VM_MagicNames.getProcessorRegister) { asm.emitPUSH_Reg(PR); return true; } // set the processor register (PR) if (methodName == VM_MagicNames.setProcessorRegister) { asm.emitPOP_Reg(PR); return true; } // Get the value in ESI if (methodName == VM_MagicNames.getESIAsProcessor) { asm.emitPUSH_Reg(ESI); return true; } // Set the value in ESI if (methodName == VM_MagicNames.setESIAsProcessor) { asm.emitPOP_Reg(ESI); return true; } if (methodName == VM_MagicNames.getIntAtOffset || methodName == VM_MagicNames.getWordAtOffset || methodName == VM_MagicNames.getObjectAtOffset || methodName == VM_MagicNames.getObjectArrayAtOffset || methodName == VM_MagicNames.prepareInt || methodName == VM_MagicNames.prepareObject || methodName == VM_MagicNames.prepareAddress || methodName == VM_MagicNames.prepareWord) { asm.emitPOP_Reg (T0); // object ref asm.emitPOP_Reg (S0); // offset asm.emitPUSH_RegIdx(T0, S0, asm.BYTE, 0); // pushes [T0+S0] return true; } if (methodName == VM_MagicNames.getByteAtOffset) { asm.emitPOP_Reg (T0); // object ref asm.emitPOP_Reg (S0); // offset asm.emitMOVZX_Reg_RegIdx_Byte(T0, T0, S0, asm.BYTE, 0); // load and zero extend byte [T0+S0] asm.emitPUSH_Reg (T0); return true; } if (methodName == VM_MagicNames.getCharAtOffset) { asm.emitPOP_Reg (T0); // object ref asm.emitPOP_Reg (S0); // offset asm.emitMOVZX_Reg_RegIdx_Word(T0, T0, S0, asm.BYTE, 0); // load and zero extend char [T0+S0] asm.emitPUSH_Reg (T0); return true; } if (methodName == VM_MagicNames.setIntAtOffset || methodName == VM_MagicNames.setWordAtOffset || methodName == VM_MagicNames.setObjectAtOffset ) { if (m.getParameterTypes().length == 4) { // discard locationMetadata parameter asm.emitPOP_Reg(T0); // locationMetadata, not needed by baseline compiler. } asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(S0); // offset asm.emitPOP_Reg(T1); // obj ref asm.emitMOV_RegIdx_Reg(T1, S0, asm.BYTE, 0, T0); // [T1+S0] <- T0 return true; } if (methodName == VM_MagicNames.setByteAtOffset) { asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(S0); // offset asm.emitPOP_Reg(T1); // obj ref asm.emitMOV_RegIdx_Reg_Byte(T1, S0, asm.BYTE, 0, T0); // [T1+S0] <- (byte) T0 return true; } if (methodName == VM_MagicNames.setCharAtOffset) { asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(S0); // offset asm.emitPOP_Reg(T1); // obj ref asm.emitMOV_RegIdx_Reg_Word(T1, S0, asm.BYTE, 0, T0); // [T1+S0] <- (char) T0 return true; } if (methodName == VM_MagicNames.getLongAtOffset || methodName == VM_MagicNames.getDoubleAtOffset) { asm.emitPOP_Reg (T0); // object ref asm.emitPOP_Reg (S0); // offset asm.emitPUSH_RegIdx(T0, S0, asm.BYTE, 4); // pushes [T0+S0+4] asm.emitPUSH_RegIdx(T0, S0, asm.BYTE, 0); // pushes [T0+S0] return true; } if (methodName == VM_MagicNames.setLongAtOffset || methodName == VM_MagicNames.setDoubleAtOffset) { asm.emitMOV_Reg_RegInd (T0, SP); // value high asm.emitMOV_Reg_RegDisp(S0, SP, +8 ); // offset asm.emitMOV_Reg_RegDisp(T1, SP, +12); // obj ref asm.emitMOV_RegIdx_Reg (T1, S0, asm.BYTE, 0, T0); // [T1+S0] <- T0 asm.emitMOV_Reg_RegDisp(T0, SP, +4 ); // value low asm.emitMOV_RegIdx_Reg (T1, S0, asm.BYTE, 4, T0); // [T1+S0+4] <- T0 asm.emitADD_Reg_Imm (SP, WORDSIZE * 4); // pop stack locations return true; } if (methodName == VM_MagicNames.addressArrayCreate) { // no resolution problem possible. emit_resolved_newarray(m.getType().resolve().asArray()); return true; } if (methodName == VM_MagicNames.addressArrayLength) { emit_arraylength(); // argument order already correct return true; } if (methodName == VM_MagicNames.addressArrayGet) { if (m.getType() == VM_TypeReference.CodeArray) { emit_baload(); } else { if (VM.BuildFor32Addr) { emit_iaload(); } else if (VM.BuildFor64Addr) { emit_laload(); } else { VM._assert(NOT_REACHED); } } return true; } if (methodName == VM_MagicNames.addressArraySet) { if (m.getType() == VM_TypeReference.CodeArray) { emit_bastore(); } else { if (VM.BuildFor32Addr) { emit_iastore(); } else if (VM.BuildFor64Addr) { VM._assert(false); // not implemented } else { VM._assert(NOT_REACHED); } } return true; } if (methodName == VM_MagicNames.getMemoryInt || methodName == VM_MagicNames.getMemoryWord || methodName == VM_MagicNames.getMemoryAddress) { asm.emitPOP_Reg(T0); // address asm.emitPUSH_RegInd(T0); // pushes [T0+0] return true; } if (methodName == VM_MagicNames.setMemoryInt || methodName == VM_MagicNames.setMemoryWord || methodName == VM_MagicNames.setMemoryAddress) { if (m.getParameterTypes().length == 3) { // discard locationMetadata parameter asm.emitPOP_Reg(T0); // locationMetadata, not needed by baseline compiler. } asm.emitPOP_Reg(T0); // value asm.emitPOP_Reg(S0); // address asm.emitMOV_RegInd_Reg(S0,T0); // [S0+0] <- T0 return true; } if (methodName == VM_MagicNames.objectAsAddress || methodName == VM_MagicNames.addressAsByteArray || methodName == VM_MagicNames.addressAsIntArray || methodName == VM_MagicNames.addressAsObject || methodName == VM_MagicNames.addressAsObjectArray || methodName == VM_MagicNames.addressAsType || methodName == VM_MagicNames.objectAsType || methodName == VM_MagicNames.objectAsShortArray || methodName == VM_MagicNames.objectAsByteArray || methodName == VM_MagicNames.objectAsIntArray || methodName == VM_MagicNames.addressAsThread || methodName == VM_MagicNames.objectAsThread || methodName == VM_MagicNames.objectAsProcessor || methodName == VM_MagicNames.threadAsCollectorThread || methodName == VM_MagicNames.addressAsRegisters || methodName == VM_MagicNames.addressAsStack || methodName == VM_MagicNames.floatAsIntBits || methodName == VM_MagicNames.intBitsAsFloat || methodName == VM_MagicNames.doubleAsLongBits || methodName == VM_MagicNames.longBitsAsDouble) { // no-op (a type change, not a representation change) return true; } // code for VM_Type VM_Magic.getObjectType(Object object) if (methodName == VM_MagicNames.getObjectType) { asm.emitPOP_Reg (T0); // object ref VM_ObjectModel.baselineEmitLoadTIB(asm,S0,T0); asm.emitPUSH_RegDisp(S0, TIB_TYPE_INDEX<<LG_WORDSIZE); // push VM_Type slot of TIB return true; } if (methodName == VM_MagicNames.getArrayLength) { asm.emitPOP_Reg(T0); // object ref asm.emitPUSH_RegDisp(T0, VM_ObjectModel.getArrayLengthOffset().toInt()); return true; } if (methodName == VM_MagicNames.sync) { // nothing required on IA32 return true; } if (methodName == VM_MagicNames.isync) { // nothing required on IA32 return true; } // baseline compiled invocation only: all paramaters on the stack // hi mem // Code // GPRs // FPRs // Spills // low-mem if (methodName == VM_MagicNames.invokeMethodReturningVoid) { int offset = VM_Entrypoints.reflectiveMethodInvokerInstructionsField.getOffsetAsInt(); genParameterRegisterLoad(4); // pass 4 parameter words asm.emitCALL_RegDisp(JTOC, offset); return true; } if (methodName == VM_MagicNames.invokeMethodReturningInt) { int offset = VM_Entrypoints.reflectiveMethodInvokerInstructionsField.getOffsetAsInt(); genParameterRegisterLoad(4); // pass 4 parameter words asm.emitCALL_RegDisp(JTOC, offset); asm.emitPUSH_Reg(T0); return true; } if (methodName == VM_MagicNames.invokeMethodReturningLong) { int offset = VM_Entrypoints.reflectiveMethodInvokerInstructionsField.getOffsetAsInt(); genParameterRegisterLoad(4); // pass 4 parameter words asm.emitCALL_RegDisp(JTOC, offset); asm.emitPUSH_Reg(T0); // high half asm.emitPUSH_Reg(T1); // low half return true; } if (methodName == VM_MagicNames.invokeMethodReturningFloat) { int offset = VM_Entrypoints.reflectiveMethodInvokerInstructionsField.getOffsetAsInt(); genParameterRegisterLoad(4); // pass 4 parameter words asm.emitCALL_RegDisp(JTOC, offset); asm.emitSUB_Reg_Imm (SP, 4); asm.emitFSTP_RegInd_Reg(SP, FP0); return true; } if (methodName == VM_MagicNames.invokeMethodReturningDouble) { int offset = VM_Entrypoints.reflectiveMethodInvokerInstructionsField.getOffsetAsInt(); genParameterRegisterLoad(4); // pass 4 parameter words asm.emitCALL_RegDisp(JTOC, offset); asm.emitSUB_Reg_Imm (SP, 8); asm.emitFSTP_RegInd_Reg_Quad(SP, FP0); return true; } if (methodName == VM_MagicNames.invokeMethodReturningObject) { int offset = VM_Entrypoints.reflectiveMethodInvokerInstructionsField.getOffsetAsInt(); genParameterRegisterLoad(4); // pass 4 parameter words asm.emitCALL_RegDisp(JTOC, offset); asm.emitPUSH_Reg(T0); return true; } // baseline invocation // one paramater, on the stack -- actual code if (methodName == VM_MagicNames.dynamicBridgeTo) { if (VM.VerifyAssertions) VM._assert(klass.isDynamicBridge()); // save the branch address for later asm.emitPOP_Reg (S0); // S0<-code address asm.emitADD_Reg_Imm(SP, fp2spOffset(0) - 4); // just popped 4 bytes above. // restore FPU state asm.emitFRSTOR_RegDisp(SP, FPU_SAVE_OFFSET); // restore GPRs asm.emitMOV_Reg_RegDisp (T0, SP, T0_SAVE_OFFSET); asm.emitMOV_Reg_RegDisp (T1, SP, T1_SAVE_OFFSET); asm.emitMOV_Reg_RegDisp (EBX, SP, EBX_SAVE_OFFSET); asm.emitMOV_Reg_RegDisp (JTOC, SP, JTOC_SAVE_OFFSET); // pop frame asm.emitPOP_RegDisp (PR, VM_Entrypoints.framePointerField.getOffsetAsInt()); // FP<-previous FP // branch asm.emitJMP_Reg (S0); return true; } if (methodName == VM_MagicNames.returnToNewStack) { // SP gets frame pointer for new stack asm.emitPOP_Reg (SP); // restore nonvolatile registers asm.emitMOV_Reg_RegDisp (JTOC, SP, JTOC_SAVE_OFFSET); asm.emitMOV_Reg_RegDisp (EBX, SP, EBX_SAVE_OFFSET); // discard current stack frame asm.emitPOP_RegDisp (PR, VM_Entrypoints.framePointerField.getOffsetAsInt()); // return to caller- pop parameters from stack asm.emitRET_Imm(parameterWords << LG_WORDSIZE); return true; } if (methodName == VM_MagicNames.roundToZero) { // Store the FPU Control Word to a JTOC slot asm.emitFNSTCW_RegDisp(JTOC, VM_Entrypoints.FPUControlWordField.getOffsetAsInt()); // Set the bits in the status word that control round to zero. // Note that we use a 32-bit OR, even though we only care about the // low-order 16 bits asm.emitOR_RegDisp_Imm(JTOC,VM_Entrypoints.FPUControlWordField.getOffsetAsInt(), 0x00000c00); // Now store the result back into the FPU Control Word asm.emitFLDCW_RegDisp(JTOC,VM_Entrypoints.FPUControlWordField.getOffsetAsInt()); return true; } if (methodName == VM_MagicNames.clearFloatingPointState) { // Clear the hardware floating-point state asm.emitFNINIT(); return true; } if (methodName == VM_MagicNames.getTimeBase) { asm.emitRDTSC(); // read timestamp counter instruction asm.emitPUSH_Reg(EDX); // upper 32 bits asm.emitPUSH_Reg(EAX); // lower 32 bits return true; } if (methodName == VM_MagicNames.wordFromInt || methodName == VM_MagicNames.wordFromObject || methodName == VM_MagicNames.wordFromIntZeroExtend || methodName == VM_MagicNames.wordFromIntSignExtend || methodName == VM_MagicNames.wordToInt || methodName == VM_MagicNames.wordToAddress || methodName == VM_MagicNames.wordToOffset || methodName == VM_MagicNames.wordToObject || methodName == VM_MagicNames.wordToObjectReference || methodName == VM_MagicNames.wordToExtent || methodName == VM_MagicNames.wordToWord) { if (VM.BuildFor32Addr) return true; // no-op for 32-bit if (VM.VerifyAssertions) VM._assert(false); } if (methodName == VM_MagicNames.wordToLong) { if (VM.BuildFor32Addr) { asm.emitPOP_Reg(T0); asm.emitPUSH_Imm(0); // upper 32 bits asm.emitPUSH_Reg(T0); // lower 32 bits return true; } // else fill unused stackslot if (VM.VerifyAssertions) VM._assert(false); } if (methodName == VM_MagicNames.wordAnd) { asm.emitPOP_Reg(T0); asm.emitAND_RegInd_Reg(SP, T0); return true; } if (methodName == VM_MagicNames.wordOr) { asm.emitPOP_Reg(T0); asm.emitOR_RegInd_Reg(SP, T0); return true; } if (methodName == VM_MagicNames.wordXor) { asm.emitPOP_Reg(T0); asm.emitXOR_RegInd_Reg(SP, T0); return true; } if (methodName == VM_MagicNames.wordNot) { asm.emitNOT_RegInd (SP); return true; } if (methodName == VM_MagicNames.wordAdd) { asm.emitPOP_Reg(T0); asm.emitADD_RegInd_Reg(SP, T0); return true; } if (methodName == VM_MagicNames.wordSub || methodName == VM_MagicNames.wordDiff) { asm.emitPOP_Reg(T0); asm.emitSUB_RegInd_Reg(SP, T0); return true; } if (methodName == VM_MagicNames.wordZero || methodName == VM_MagicNames.wordNull) { asm.emitPUSH_Imm(0); return true; } if (methodName == VM_MagicNames.wordOne) { asm.emitPUSH_Imm(1); return true; } if (methodName == VM_MagicNames.wordMax) { asm.emitPUSH_Imm(-1); return true; } if (methodName == VM_MagicNames.wordLT) { generateAddrComparison(asm.LLT); return true; } if (methodName == VM_MagicNames.wordLE) { generateAddrComparison(asm.LLE); return true; } if (methodName == VM_MagicNames.wordGT) { generateAddrComparison(asm.LGT); return true; } if (methodName == VM_MagicNames.wordGE) { generateAddrComparison(asm.LGE); return true; } if (methodName == VM_MagicNames.wordsLT) { generateAddrComparison(asm.LT); return true; } if (methodName == VM_MagicNames.wordsLE) { generateAddrComparison(asm.LE); return true; } if (methodName == VM_MagicNames.wordsGT) { generateAddrComparison(asm.GT); return true; } if (methodName == VM_MagicNames.wordsGE) { generateAddrComparison(asm.GE); return true; } if (methodName == VM_MagicNames.wordEQ) { generateAddrComparison(asm.EQ); return true; } if (methodName == VM_MagicNames.wordNE) { generateAddrComparison(asm.NE); return true; } if (methodName == VM_MagicNames.wordIsZero) { asm.emitPUSH_Imm(0); generateAddrComparison(asm.EQ); return true; } if (methodName == VM_MagicNames.wordIsNull) { asm.emitPUSH_Imm(0); generateAddrComparison(asm.EQ); return true; } if (methodName == VM_MagicNames.wordIsMax) { asm.emitPUSH_Imm(-1); generateAddrComparison(asm.EQ); return true; } if (methodName == VM_MagicNames.wordLsh) { if (VM.BuildFor32Addr) { asm.emitPOP_Reg(ECX); asm.emitSHL_RegInd_Reg(SP, ECX); } else VM._assert(false); return true; } if (methodName == VM_MagicNames.wordRshl) { if (VM.BuildFor32Addr) { asm.emitPOP_Reg (ECX); asm.emitSHR_RegInd_Reg (SP, ECX); } else VM._assert(false); return true; } if (methodName == VM_MagicNames.wordRsha) { if (VM.BuildFor32Addr) { asm.emitPOP_Reg (ECX); asm.emitSAR_RegInd_Reg (SP, ECX); } else VM._assert(false); return true; } return false; } | 4011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4011/df5323a1679a545ad5b2e78b0bf88ba178e71da8/VM_Compiler.java/clean/rvm/src/vm/arch/intel/compilers/baseline/VM_Compiler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
727,
1250,
3157,
19289,
261,
7397,
67,
1305,
2404,
312,
13,
288,
565,
8251,
67,
3641,
4918,
273,
312,
18,
17994,
5621,
565,
309,
261,
81,
18,
588,
559,
1435,
422,
8251,
67,
7534,
18,
1887,
13,
288,
1377,
368,
5267,
8146,
1377,
8251,
67,
7534,
8526,
1953,
273,
312,
18,
588,
1662,
2016,
5621,
1377,
368,
4444,
87,
777,
4862,
326,
646,
30,
1377,
368,
1372,
16,
5267,
16,
306,
2335,
65,
317,
1372,
16,
1445,
1377,
309,
261,
2039,
461,
422,
8251,
67,
19289,
1557,
18,
945,
1887,
747,
1850,
4918,
422,
8251,
67,
19289,
1557,
18,
9366,
1887,
747,
1850,
4918,
422,
8251,
67,
19289,
1557,
18,
9366,
22101,
747,
1850,
4918,
422,
8251,
67,
19289,
1557,
18,
945,
3944,
747,
1850,
4918,
422,
8251,
67,
19289,
1557,
18,
945,
22101,
747,
1850,
4918,
422,
8251,
67,
19289,
1557,
18,
9366,
3944,
747,
1850,
4918,
422,
8251,
67,
19289,
1557,
18,
945,
1702,
747,
1850,
4918,
422,
8251,
67,
19289,
1557,
18,
9366,
1702,
747,
1850,
4918,
422,
8251,
67,
19289,
1557,
18,
945,
4723,
13,
288,
3639,
309,
261,
2352,
18,
2469,
422,
374,
13,
288,
1850,
368,
2631,
1384,
1850,
20415,
18,
18356,
30374,
67,
1617,
12,
56,
20,
1769,
8227,
368,
1758,
1850,
20415,
18,
18356,
30348,
67,
1617,
3866,
12,
56,
20,
1769,
5375,
368,
27351,
306,
56,
20,
15,
20,
65,
3639,
289,
469,
288,
1850,
368,
4444,
622,
1384,
1850,
20415,
18,
18356,
30374,
67,
1617,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
727,
1250,
3157,
19289,
261,
7397,
67,
1305,
2404,
312,
13,
288,
565,
8251,
67,
3641,
4918,
273,
312,
18,
17994,
5621,
565,
309,
261,
81,
18,
588,
559,
1435,
422,
8251,
67,
7534,
18,
1887,
13,
288,
1377,
368,
5267,
8146,
1377,
8251,
67,
7534,
8526,
1953,
273,
312,
18,
588,
1662,
2016,
5621,
1377,
368,
4444,
87,
777,
4862,
326,
646,
30,
1377,
368,
1372,
16,
5267,
16,
306,
2335,
65,
317,
1372,
16,
1445,
1377,
309,
261,
2039,
461,
422,
8251,
67,
19289,
1557,
18,
945,
1887,
747,
1850,
4918,
422,
8251,
67,
19289,
1557,
18,
9366,
1887,
747,
1850,
4918,
422,
8251,
67,
19289,
1557,
18,
9366,
22101,
747,
1850,
4918,
422,
8251,
2
] |
StringBuffer buffer; | protected void startDocument( String rootTagName ) throws IOException { StringBuffer buffer; // Not supported in HTML/XHTML, but we still have to switch // out of DTD mode. _printer.leaveDTD(); if ( ! _started ) { // If the public and system identifiers were not specified // in the output format, use the appropriate ones for HTML // or XHTML. if ( _docTypePublicId == null && _docTypeSystemId == null ) { if ( _xhtml ) { _docTypePublicId = HTMLdtd.XHTMLPublicId; _docTypeSystemId = HTMLdtd.XHTMLSystemId; } else { _docTypePublicId = HTMLdtd.HTMLPublicId; _docTypeSystemId = HTMLdtd.HTMLSystemId; } } if ( ! _format.getOmitDocumentType() ) { // XHTML: If public identifier and system identifier // specified, print them, else print just system identifier // HTML: If public identifier specified, print it with // system identifier, if specified. // XHTML requires that all element names are lower case, so the // root on the DOCTYPE must be 'html'. - mrglavas if ( _docTypePublicId != null && ( ! _xhtml || _docTypeSystemId != null ) ) { if (_xhtml) { _printer.printText( "<!DOCTYPE html PUBLIC " ); } else { _printer.printText( "<!DOCTYPE HTML PUBLIC " ); } printDoctypeURL( _docTypePublicId ); if ( _docTypeSystemId != null ) { if ( _indenting ) { _printer.breakLine(); _printer.printText( " " ); } else _printer.printText( ' ' ); printDoctypeURL( _docTypeSystemId ); } _printer.printText( '>' ); _printer.breakLine(); } else if ( _docTypeSystemId != null ) { if (_xhtml) { _printer.printText( "<!DOCTYPE html SYSTEM " ); } else { _printer.printText( "<!DOCTYPE HTML SYSTEM " ); } printDoctypeURL( _docTypeSystemId ); _printer.printText( '>' ); _printer.breakLine(); } } } _started = true; // Always serialize these, even if not te first root element. serializePreRoot(); } | 4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/5e385937eb19642378543b93e7dfc0b8e86418cc/HTMLSerializer.java/clean/src/org/apache/xml/serialize/HTMLSerializer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
787,
2519,
12,
514,
1365,
8520,
262,
3639,
1216,
1860,
565,
288,
2868,
368,
2288,
3260,
316,
3982,
19,
60,
4870,
16,
1496,
732,
4859,
1240,
358,
1620,
3639,
368,
596,
434,
10696,
40,
1965,
18,
3639,
389,
30439,
18,
19574,
25728,
5621,
3639,
309,
261,
401,
389,
14561,
262,
288,
5411,
368,
971,
326,
1071,
471,
2619,
9863,
4591,
486,
1269,
5411,
368,
316,
326,
876,
740,
16,
999,
326,
5505,
5945,
364,
3982,
5411,
368,
578,
30551,
18,
5411,
309,
261,
389,
2434,
559,
4782,
548,
422,
446,
597,
389,
2434,
559,
3163,
548,
422,
446,
262,
288,
7734,
309,
261,
389,
26341,
262,
288,
10792,
389,
2434,
559,
4782,
548,
273,
3982,
31834,
18,
60,
4870,
4782,
548,
31,
10792,
389,
2434,
559,
3163,
548,
273,
3982,
31834,
18,
60,
4870,
3163,
548,
31,
7734,
289,
469,
288,
10792,
389,
2434,
559,
4782,
548,
273,
3982,
31834,
18,
4870,
4782,
548,
31,
10792,
389,
2434,
559,
3163,
548,
273,
3982,
31834,
18,
4870,
3163,
548,
31,
7734,
289,
5411,
289,
5411,
309,
261,
401,
389,
2139,
18,
588,
51,
1938,
2519,
559,
1435,
262,
288,
7734,
368,
30551,
30,
971,
1071,
2756,
471,
2619,
2756,
7734,
368,
225,
1269,
16,
1172,
2182,
16,
469,
1172,
2537,
2619,
2756,
7734,
368,
3982,
30,
971,
1071,
2756,
1269,
16,
1172,
518,
598,
7734,
368,
225,
2619,
2756,
16,
309,
1269,
18,
7734,
368,
30551,
4991,
716,
777,
930,
1257,
854,
2612,
648,
16,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
787,
2519,
12,
514,
1365,
8520,
262,
3639,
1216,
1860,
565,
288,
2868,
368,
2288,
3260,
316,
3982,
19,
60,
4870,
16,
1496,
732,
4859,
1240,
358,
1620,
3639,
368,
596,
434,
10696,
40,
1965,
18,
3639,
389,
30439,
18,
19574,
25728,
5621,
3639,
309,
261,
401,
389,
14561,
262,
288,
5411,
368,
971,
326,
1071,
471,
2619,
9863,
4591,
486,
1269,
5411,
368,
316,
326,
876,
740,
16,
999,
326,
5505,
5945,
364,
3982,
5411,
368,
578,
30551,
18,
5411,
309,
261,
389,
2434,
559,
4782,
548,
422,
446,
597,
389,
2434,
559,
3163,
548,
422,
446,
262,
288,
7734,
309,
261,
389,
26341,
262,
288,
10792,
389,
2434,
559,
4782,
548,
273,
3982,
31834,
2
] | |
return new Boolean((String) items.get(key)).booleanValue(); | return Boolean.valueOf((String) items.get(key)).booleanValue(); | public boolean getBoolean(String key) { return new Boolean((String) items.get(key)).booleanValue(); } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/697ae69ada912339625966e0523cea7f4a992d48/DialogSettings.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/DialogSettings.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
12835,
12,
780,
498,
13,
288,
3639,
327,
3411,
18,
1132,
951,
12443,
780,
13,
1516,
18,
588,
12,
856,
13,
2934,
6494,
620,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
1250,
12835,
12,
780,
498,
13,
288,
3639,
327,
3411,
18,
1132,
951,
12443,
780,
13,
1516,
18,
588,
12,
856,
13,
2934,
6494,
620,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (name.equals("_packages_")) return result; Object plist = ScriptableObject.getProperty(start,"_packages_"); if (plist == NOT_FOUND) return result; Object[] elements; Context cx = Context.enter(); try { elements = cx.getElements((Scriptable)plist); } finally { Context.exit(); } for (int i=0; i < elements.length; i++) { NativeJavaPackage p = (NativeJavaPackage) elements[i]; Object v = p.getPkgProperty(name, start, false); if (v != null && !(v instanceof NativeJavaPackage)) { if (result == NOT_FOUND) { result = v; } else { throw Context.reportRuntimeError2( "msg.ambig.import", result.toString(), v.toString()); } } } | result = getPackageProperty(name, start); | public Object get(String name, Scriptable start) { Object result = super.get(name, start); if (result != NOT_FOUND) return result; if (name.equals("_packages_")) return result; Object plist = ScriptableObject.getProperty(start,"_packages_"); if (plist == NOT_FOUND) return result; Object[] elements; Context cx = Context.enter(); try { elements = cx.getElements((Scriptable)plist); } finally { Context.exit(); } for (int i=0; i < elements.length; i++) { NativeJavaPackage p = (NativeJavaPackage) elements[i]; Object v = p.getPkgProperty(name, start, false); if (v != null && !(v instanceof NativeJavaPackage)) { if (result == NOT_FOUND) { result = v; } else { throw Context.reportRuntimeError2( "msg.ambig.import", result.toString(), v.toString()); } } } return result; } | 13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/11d0e9760b6cc948ff81b5f2f26bc7e7e6c13b86/ImporterTopLevel.java/buggy/js/rhino/src/org/mozilla/javascript/ImporterTopLevel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
336,
12,
780,
508,
16,
22780,
787,
13,
288,
3639,
1033,
563,
273,
2240,
18,
588,
12,
529,
16,
787,
1769,
3639,
309,
261,
2088,
480,
4269,
67,
9294,
13,
5411,
327,
563,
31,
3639,
309,
261,
529,
18,
14963,
2932,
67,
10308,
9548,
3719,
5411,
327,
563,
31,
3639,
1033,
21074,
273,
22780,
921,
18,
588,
1396,
12,
1937,
10837,
67,
10308,
67,
8863,
3639,
309,
261,
17842,
422,
4269,
67,
9294,
13,
5411,
327,
563,
31,
3639,
1033,
8526,
2186,
31,
3639,
1772,
9494,
273,
1772,
18,
2328,
5621,
3639,
775,
288,
5411,
2186,
273,
9494,
18,
588,
3471,
12443,
3651,
429,
13,
17842,
1769,
3639,
289,
3639,
3095,
288,
1772,
18,
8593,
5621,
289,
3639,
364,
261,
474,
277,
33,
20,
31,
277,
411,
2186,
18,
2469,
31,
277,
27245,
288,
5411,
16717,
5852,
2261,
293,
273,
261,
9220,
5852,
2261,
13,
2186,
63,
77,
15533,
5411,
1033,
331,
273,
293,
18,
588,
11264,
1396,
12,
529,
16,
787,
16,
629,
1769,
5411,
309,
261,
90,
480,
446,
597,
401,
12,
90,
1276,
16717,
5852,
2261,
3719,
288,
7734,
309,
261,
2088,
422,
4269,
67,
9294,
13,
288,
10792,
563,
273,
331,
31,
7734,
289,
469,
288,
10792,
604,
1772,
18,
6006,
5576,
668,
22,
12,
13491,
315,
3576,
18,
2536,
360,
18,
5666,
3113,
563,
18,
10492,
9334,
331,
18,
10492,
10663,
7734,
289,
5411,
289,
3639,
289,
3639,
327,
563,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
336,
12,
780,
508,
16,
22780,
787,
13,
288,
3639,
1033,
563,
273,
2240,
18,
588,
12,
529,
16,
787,
1769,
3639,
309,
261,
2088,
480,
4269,
67,
9294,
13,
5411,
327,
563,
31,
3639,
309,
261,
529,
18,
14963,
2932,
67,
10308,
9548,
3719,
5411,
327,
563,
31,
3639,
1033,
21074,
273,
22780,
921,
18,
588,
1396,
12,
1937,
10837,
67,
10308,
67,
8863,
3639,
309,
261,
17842,
422,
4269,
67,
9294,
13,
5411,
327,
563,
31,
3639,
1033,
8526,
2186,
31,
3639,
1772,
9494,
273,
1772,
18,
2328,
5621,
3639,
775,
288,
5411,
2186,
273,
9494,
18,
588,
3471,
12443,
3651,
429,
13,
17842,
1769,
3639,
289,
3639,
3095,
288,
1772,
18,
8593,
5621,
2
] |
target[0] = new CDebugTarget( launch, ICDebugTargetType.TARGET_TYPE_LOCAL_ATTACH, | target[0] = new CDebugTarget( launch, ICDebugTargetType.TARGET_TYPE_LOCAL_RUN, | public void run( IProgressMonitor m ) { target[0] = new CDebugTarget( launch, ICDebugTargetType.TARGET_TYPE_LOCAL_ATTACH, cdiTarget, name, null, project, false, true ); } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/97fc7f02f379551586610a36ac715d2aefcbf893/CDebugModel.java/buggy/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/CDebugModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
1086,
12,
467,
5491,
7187,
312,
262,
1082,
202,
95,
9506,
202,
3299,
63,
20,
65,
273,
394,
385,
2829,
2326,
12,
8037,
16,
17322,
9506,
225,
26899,
2829,
2326,
559,
18,
16374,
67,
2399,
67,
14922,
67,
789,
9833,
1792,
16,
17322,
9506,
225,
276,
3211,
2326,
16,
17322,
9506,
225,
508,
16,
6862,
6862,
9506,
225,
446,
16,
6862,
6862,
9506,
225,
1984,
16,
6862,
6862,
9506,
225,
629,
16,
6862,
6862,
9506,
225,
638,
11272,
1082,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1875,
202,
482,
918,
1086,
12,
467,
5491,
7187,
312,
262,
1082,
202,
95,
9506,
202,
3299,
63,
20,
65,
273,
394,
385,
2829,
2326,
12,
8037,
16,
17322,
9506,
225,
26899,
2829,
2326,
559,
18,
16374,
67,
2399,
67,
14922,
67,
789,
9833,
1792,
16,
17322,
9506,
225,
276,
3211,
2326,
16,
17322,
9506,
225,
508,
16,
6862,
6862,
9506,
225,
446,
16,
6862,
6862,
9506,
225,
1984,
16,
6862,
6862,
9506,
225,
629,
16,
6862,
6862,
9506,
225,
638,
11272,
1082,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
return _instanceName; | return instanceName; | public String getInstanceName() { return _instanceName; } | 12474 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12474/9d2c39c906c6955e17daf4ac239b85d4727ddc83/PropertyLog.java/buggy/modules/interop/src/java/org/apache/geronimo/interop/properties/PropertyLog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
3694,
461,
1435,
288,
3639,
327,
21090,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
3694,
461,
1435,
288,
3639,
327,
21090,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
parts.add(new RubyString(getRuntime(), inetAddress.getCanonicalHostName())); | parts.add(getRuntime().newString(inetAddress.getCanonicalHostName())); | public RubyArray gethostbyname(IRubyObject hostname) { try { RubyString name = (RubyString) hostname; InetAddress inetAddress = InetAddress.getByName(name.getValue()); List parts = new ArrayList(); parts.add(new RubyString(getRuntime(), inetAddress.getCanonicalHostName())); parts.add(RubyArray.newArray(getRuntime())); parts.add(new RubyFixnum(getRuntime(),2)); parts.add(new RubyString(getRuntime(), RubyString.bytesToString(inetAddress.getAddress()))); return RubyArray.newArray(getRuntime(), parts); } catch (UnknownHostException e) { // DSC throw SystemError("gethostbyname"); return RubyArray.newArray(getRuntime()); } } | 48072 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48072/9f2efc63a858fa0507245b207025eab027840a04/SocketMetaClass.java/buggy/src/org/jruby/libraries/SocketMetaClass.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
1076,
336,
2564,
1637,
529,
12,
7937,
10340,
921,
5199,
13,
288,
202,
202,
698,
288,
1082,
202,
54,
10340,
780,
508,
273,
261,
54,
10340,
780,
13,
5199,
31,
1082,
202,
382,
278,
1887,
17661,
1887,
273,
14218,
18,
588,
5911,
12,
529,
18,
24805,
10663,
1082,
202,
682,
2140,
273,
394,
2407,
5621,
1082,
202,
6019,
18,
1289,
12,
2704,
19817,
780,
12,
588,
5576,
9334,
17661,
1887,
18,
588,
15512,
20946,
1435,
10019,
1082,
202,
6019,
18,
1289,
12,
54,
10340,
1076,
18,
2704,
1076,
12,
588,
5576,
1435,
10019,
1082,
202,
6019,
18,
1289,
12,
2704,
19817,
8585,
2107,
12,
588,
5576,
9334,
22,
10019,
1082,
202,
6019,
18,
1289,
12,
2704,
19817,
780,
12,
588,
5576,
9334,
19817,
780,
18,
3890,
5808,
12,
23864,
1887,
18,
588,
1887,
1435,
3719,
1769,
1082,
202,
2463,
19817,
1076,
18,
2704,
1076,
12,
588,
5576,
9334,
2140,
1769,
202,
202,
97,
1044,
261,
4874,
29776,
425,
13,
288,
1082,
202,
759,
463,
2312,
604,
2332,
668,
2932,
75,
546,
669,
1637,
529,
8863,
1082,
202,
2463,
19817,
1076,
18,
2704,
1076,
12,
588,
5576,
10663,
202,
202,
97,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
1076,
336,
2564,
1637,
529,
12,
7937,
10340,
921,
5199,
13,
288,
202,
202,
698,
288,
1082,
202,
54,
10340,
780,
508,
273,
261,
54,
10340,
780,
13,
5199,
31,
1082,
202,
382,
278,
1887,
17661,
1887,
273,
14218,
18,
588,
5911,
12,
529,
18,
24805,
10663,
1082,
202,
682,
2140,
273,
394,
2407,
5621,
1082,
202,
6019,
18,
1289,
12,
2704,
19817,
780,
12,
588,
5576,
9334,
17661,
1887,
18,
588,
15512,
20946,
1435,
10019,
1082,
202,
6019,
18,
1289,
12,
54,
10340,
1076,
18,
2704,
1076,
12,
588,
5576,
1435,
10019,
1082,
202,
6019,
18,
1289,
12,
2704,
19817,
8585,
2107,
12,
588,
5576,
9334,
22,
10019,
1082,
202,
6019,
18,
1289,
12,
2704,
2
] |
return id; | return getId(); | public String getLocalId() { return id; } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/2643ca655274ae30e4ba0c9a52f2b6c959f1f3e8/PerspectiveDescriptor.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/registry/PerspectiveDescriptor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
6993,
548,
1435,
288,
3639,
327,
2634,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
6993,
548,
1435,
288,
3639,
327,
2634,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
KIOConnection(URL u) { | protected KIOConnection(URL u) { | KIOConnection(URL u) { url = u; } | 1818 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1818/2357d67959880044113c65defcace40ef133a55a/KJASURLStreamHandlerFactory.java/buggy/khtml/java/org/kde/kjas/server/KJASURLStreamHandlerFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1475,
4294,
1952,
12,
1785,
582,
13,
288,
3639,
880,
273,
582,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1475,
4294,
1952,
12,
1785,
582,
13,
288,
3639,
880,
273,
582,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public void waitUntilFinished() { synchronized(this) { while(true) { if(status != NOT_FINISHED) return; try { wait(10000); } catch (InterruptedException e) { } } } | public synchronized void waitUntilFinished() { while(true) { if(status != NOT_FINISHED) return; try { wait(10000); } catch (InterruptedException e) { } } | public void waitUntilFinished() { synchronized(this) { while(true) { if(status != NOT_FINISHED) return; try { wait(10000); } catch (InterruptedException e) { // Ignore } } } } | 51834 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51834/0400e73e7503ab43211657c44d8448afd6346cce/RequestSender.java/buggy/src/freenet/node/RequestSender.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2529,
9716,
10577,
1435,
288,
3639,
3852,
12,
2211,
13,
288,
5411,
1323,
12,
3767,
13,
288,
7734,
309,
12,
2327,
480,
4269,
67,
23259,
2056,
13,
327,
31,
7734,
775,
288,
10792,
2529,
12,
23899,
1769,
7734,
289,
1044,
261,
24485,
503,
425,
13,
288,
10792,
368,
8049,
7734,
289,
5411,
289,
10792,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2529,
9716,
10577,
1435,
288,
3639,
3852,
12,
2211,
13,
288,
5411,
1323,
12,
3767,
13,
288,
7734,
309,
12,
2327,
480,
4269,
67,
23259,
2056,
13,
327,
31,
7734,
775,
288,
10792,
2529,
12,
23899,
1769,
7734,
289,
1044,
261,
24485,
503,
425,
13,
288,
10792,
368,
8049,
7734,
289,
5411,
289,
10792,
289,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public RubyNumeric op_uminus() { | public IRubyObject op_uminus() { | public RubyNumeric op_uminus() { return bigNorm(getRuntime(), getValue().negate()); } | 48072 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48072/803c66ee682936beecc8a43fe2cfc90fe5645b22/RubyBignum.java/buggy/src/org/jruby/RubyBignum.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
1061,
67,
20668,
407,
1435,
288,
3639,
327,
5446,
14624,
12,
588,
5576,
9334,
2366,
7675,
82,
4784,
10663,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
15908,
10340,
921,
1061,
67,
20668,
407,
1435,
288,
3639,
327,
5446,
14624,
12,
588,
5576,
9334,
2366,
7675,
82,
4784,
10663,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
long startTime = System.currentTimeMillis(); | public void handleChunk(IPDataEvent event, IPSession session, boolean isServer) { try { //long startTime = System.nanoTime(); SessionStats stats = session.stats(); if(stats.s2tChunks() > maxChunks || stats.c2tChunks() > maxChunks) session.release(); IDSSessionInfo info = (IDSSessionInfo) session.attachment(); info.setEvent(event); info.setFlow(isServer); if(isServer) info.processC2SSignatures(); else info.processS2CSignatures(); //log.debug("Time: " + (float)(System.nanoTime() - startTime)/1000000f); } catch (Exception e) { log.error("Error parsing chunk: " +e.getMessage()); } } | 49954 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49954/381edd842bf34a861c960598a5a52fcc1d95bf71/IDSDetectionEngine.java/buggy/tran/ids/main/com/metavize/tran/ids/IDSDetectionEngine.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1525,
8657,
273,
2332,
18,
2972,
28512,
5621,
1525,
8657,
273,
2332,
18,
2972,
28512,
5621,
1525,
8657,
273,
2332,
18,
2972,
28512,
5621,
1525,
8657,
273,
2332,
18,
2972,
28512,
5621,
1071,
5748,
8657,
273,
2332,
18,
2972,
28512,
5621,
918,
5748,
8657,
273,
2332,
18,
2972,
28512,
5621,
1640,
5579,
12,
2579,
751,
1133,
5748,
8657,
273,
2332,
18,
2972,
28512,
5621,
871,
16,
5748,
8657,
273,
2332,
18,
2972,
28512,
5621,
2971,
2157,
5748,
8657,
273,
2332,
18,
2972,
28512,
5621,
1339,
16,
5748,
8657,
273,
2332,
18,
2972,
28512,
5621,
1250,
5748,
8657,
273,
2332,
18,
2972,
28512,
5621,
353,
2081,
13,
5748,
8657,
273,
2332,
18,
2972,
28512,
5621,
288,
5748,
8657,
273,
2332,
18,
2972,
28512,
5621,
1525,
8657,
273,
2332,
18,
2972,
28512,
5621,
1525,
8657,
273,
2332,
18,
2972,
28512,
5621,
1525,
8657,
273,
2332,
18,
2972,
28512,
5621,
1525,
8657,
273,
2332,
18,
2972,
28512,
5621,
1525,
8657,
273,
2332,
18,
2972,
28512,
5621,
1525,
8657,
273,
2332,
18,
2972,
28512,
5621,
1525,
8657,
273,
2332,
18,
2972,
28512,
5621,
775,
5748,
8657,
273,
2332,
18,
2972,
28512,
5621,
288,
5748,
8657,
273,
2332,
18,
2972,
28512,
5621,
1525,
8657,
273,
2332,
18,
2972,
28512,
5621,
1525,
8657,
273,
2332,
18,
2972,
28512,
5621,
1525,
8657,
273,
2332,
18,
2972,
28512,
5621,
1525,
8657,
273,
2332,
18,
2972,
28512,
5621,
1525,
8657,
273,
2332,
18,
2972,
28512,
5621,
1525,
8657,
273,
2332,
18,
2972,
28512,
5621,
1525,
8657,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1525,
8657,
273,
2332,
18,
2972,
28512,
5621,
1525,
8657,
273,
2332,
18,
2972,
28512,
5621,
1525,
8657,
273,
2332,
18,
2972,
28512,
5621,
1525,
8657,
273,
2332,
18,
2972,
28512,
5621,
1071,
5748,
8657,
273,
2332,
18,
2972,
28512,
5621,
918,
5748,
8657,
273,
2332,
18,
2972,
28512,
5621,
1640,
5579,
12,
2579,
751,
1133,
5748,
8657,
273,
2332,
18,
2972,
28512,
5621,
871,
16,
5748,
8657,
273,
2332,
18,
2972,
28512,
5621,
2971,
2157,
5748,
8657,
273,
2332,
18,
2972,
28512,
5621,
1339,
16,
5748,
8657,
273,
2332,
18,
2972,
28512,
5621,
1250,
5748,
8657,
273,
2332,
18,
2972,
28512,
5621,
353,
2081,
13,
5748,
8657,
273,
2332,
18,
2972,
28512,
5621,
288,
5748,
8657,
273,
2332,
2
] | |
link.add( new Label("id",new Model(sd.getId()))); | link.add( new Label("id",new Model(sd.getSessionId()))); | public LiveSessionsPage() { add(new Image("bug")); add(new ApplicationView("application", Application.get())); Link link = new Link("togglelink") { private static final long serialVersionUID = 1L; public void onClick() { WebApplication webApplication = (WebApplication)Application.get(); RequestLogger requestLogger = webApplication.getRequestLogger(); if(requestLogger == null) { webApplication.setRequestLogger(new RequestLogger()); } else { webApplication.setRequestLogger(null); } } }; link.add( new Label("toggletext", new Model() { private static final long serialVersionUID = 1L; public Object getObject(Component component) { WebApplication webApplication = (WebApplication)Application.get(); RequestLogger requestLogger = webApplication.getRequestLogger(); if(requestLogger == null) { return "Enable request recording"; } else { return "Disable request recording"; } }; })); add(link); add(new Label("totalSessions",new Model() { private static final long serialVersionUID = 1L; public Object getObject(Component component) { return new Integer(getRequestLogger().getTotalCreatedSessions()); } })); add(new Label("peakSessions",new Model() { private static final long serialVersionUID = 1L; public Object getObject(Component component) { return new Integer(getRequestLogger().getLiveSessions().size()); } })); add(new Label("liveSessions",new Model() { private static final long serialVersionUID = 1L; public Object getObject(Component component) { return new Integer(getRequestLogger().getPeakSessions()); } })); Model sessionModel = new Model() { private static final long serialVersionUID = 1L; public Object getObject(Component component) { List lst = new ArrayList(getRequestLogger().getLiveSessions()); Collections.sort(lst,new Comparator() { public int compare(Object o1, Object o2) { return (int)(((SessionData)o2).getLastRequestTime() - ((SessionData)o1).getLastRequestTime()); } }); return lst; } }; PageableListView listView = new PageableListView("sessions",sessionModel,50) { private static final long serialVersionUID = 1L; private final SimpleDateFormat sdf = new SimpleDateFormat("dd MMM hh:mm:ss.SSS"); protected void populateItem(ListItem item) { final SessionData sd = (SessionData)item.getModelObject(); Link link = new Link("id") { private static final long serialVersionUID = 1L; /** * @see wicket.markup.html.link.Link#onClick() */ public void onClick() { setResponsePage(new RequestsPage(sd)); } }; link.add( new Label("id",new Model(sd.getId()))); item.add( link); item.add( new Label("lastRequestTime",new Model(sdf.format(new Date(sd.getLastRequestTime())))) ); item.add( new Label("requestCount",new Model(new Integer(sd.getRequests().size()))) ); item.add( new Label("requestsTime",new Model(sd.getRequestsTime())) ); item.add( new Label("sessionSize",new Model(Bytes.bytes(sd.getSessionSize()))) ); } }; add(listView); PagingNavigator navigator = new PagingNavigator("navigator",listView); add(navigator); } | 46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/0f04e7639de8f4ed4ed57e471c7fd447af7cf9aa/LiveSessionsPage.java/clean/wicket-examples/src/main/java/wicket/examples/debug/LiveSessionsPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
21559,
13566,
1964,
1435,
202,
95,
202,
202,
1289,
12,
2704,
3421,
2932,
925,
7923,
1769,
9506,
202,
1289,
12,
2704,
4257,
1767,
2932,
3685,
3113,
4257,
18,
588,
1435,
10019,
9506,
202,
2098,
1692,
273,
394,
4048,
2932,
88,
717,
7043,
27269,
7923,
202,
202,
95,
1082,
202,
1152,
760,
727,
1525,
30244,
273,
404,
48,
31,
1082,
202,
482,
918,
18296,
1435,
1875,
202,
95,
9506,
202,
4079,
3208,
3311,
3208,
273,
261,
4079,
3208,
13,
3208,
18,
588,
5621,
9506,
202,
691,
3328,
590,
3328,
273,
3311,
3208,
18,
588,
691,
3328,
5621,
9506,
202,
430,
12,
2293,
3328,
422,
446,
13,
9506,
202,
95,
6862,
202,
4875,
3208,
18,
542,
691,
3328,
12,
2704,
1567,
3328,
10663,
9506,
202,
97,
9506,
202,
12107,
9506,
202,
95,
6862,
202,
4875,
3208,
18,
542,
691,
3328,
12,
2011,
1769,
9506,
202,
97,
1082,
202,
97,
202,
202,
20451,
202,
202,
1232,
18,
1289,
12,
394,
5287,
2932,
88,
23972,
1810,
408,
3113,
394,
3164,
1435,
202,
202,
95,
1082,
202,
1152,
760,
727,
1525,
30244,
273,
404,
48,
31,
25083,
202,
482,
1033,
6455,
12,
1841,
1794,
13,
1875,
202,
95,
9506,
202,
4079,
3208,
3311,
3208,
273,
261,
4079,
3208,
13,
3208,
18,
588,
5621,
9506,
202,
691,
3328,
590,
3328,
273,
3311,
3208,
18,
588,
691,
3328,
5621,
9506,
202,
430,
12,
2293,
3328,
422,
446,
13,
9506,
202,
95,
6862,
202,
2463,
315,
8317,
590,
14949,
14432,
9506,
202,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
21559,
13566,
1964,
1435,
202,
95,
202,
202,
1289,
12,
2704,
3421,
2932,
925,
7923,
1769,
9506,
202,
1289,
12,
2704,
4257,
1767,
2932,
3685,
3113,
4257,
18,
588,
1435,
10019,
9506,
202,
2098,
1692,
273,
394,
4048,
2932,
88,
717,
7043,
27269,
7923,
202,
202,
95,
1082,
202,
1152,
760,
727,
1525,
30244,
273,
404,
48,
31,
1082,
202,
482,
918,
18296,
1435,
1875,
202,
95,
9506,
202,
4079,
3208,
3311,
3208,
273,
261,
4079,
3208,
13,
3208,
18,
588,
5621,
9506,
202,
691,
3328,
590,
3328,
273,
3311,
3208,
18,
588,
691,
3328,
5621,
9506,
202,
430,
12,
2293,
3328,
422,
446,
13,
9506,
202,
95,
6862,
202,
4875,
3208,
18,
542,
691,
3328,
2
] |
return totalHeight; | return totalHeight == 0 ? 100 : totalHeight; | protected int getPopupHeightForRowCount(int maxRowCount) { int totalHeight = 0; ListCellRenderer rend = list.getCellRenderer(); if (comboBox.getItemCount() < maxRowCount) maxRowCount = comboBox.getItemCount(); for (int i = 0; i < maxRowCount; i++) { Component comp = rend.getListCellRendererComponent(list, comboBox.getModel() .getElementAt(i), -1, false, false); Dimension dim = comp.getPreferredSize(); totalHeight += dim.height; } return totalHeight; } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/7cc107e01ff95c250142dda3e246542e1b0c0794/BasicComboPopup.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicComboPopup.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
509,
1689,
556,
416,
2686,
1290,
26359,
12,
474,
943,
26359,
13,
225,
288,
565,
509,
2078,
2686,
273,
374,
31,
565,
987,
4020,
6747,
1654,
72,
273,
666,
18,
588,
4020,
6747,
5621,
565,
309,
261,
25053,
3514,
18,
588,
30687,
1435,
411,
943,
26359,
13,
1377,
943,
26359,
273,
16778,
3514,
18,
588,
30687,
5621,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
943,
26359,
31,
277,
27245,
1377,
288,
202,
1841,
1161,
273,
1654,
72,
18,
588,
682,
4020,
6747,
1841,
12,
1098,
16,
202,
4766,
10402,
16778,
3514,
18,
588,
1488,
1435,
202,
4766,
21821,
263,
21336,
861,
12,
77,
3631,
202,
4766,
10402,
300,
21,
16,
629,
16,
629,
1769,
202,
8611,
2464,
273,
1161,
18,
588,
16028,
1225,
5621,
202,
4963,
2686,
1011,
2464,
18,
4210,
31,
1377,
289,
565,
327,
2078,
2686,
422,
374,
692,
2130,
294,
2078,
2686,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
509,
1689,
556,
416,
2686,
1290,
26359,
12,
474,
943,
26359,
13,
225,
288,
565,
509,
2078,
2686,
273,
374,
31,
565,
987,
4020,
6747,
1654,
72,
273,
666,
18,
588,
4020,
6747,
5621,
565,
309,
261,
25053,
3514,
18,
588,
30687,
1435,
411,
943,
26359,
13,
1377,
943,
26359,
273,
16778,
3514,
18,
588,
30687,
5621,
565,
364,
261,
474,
277,
273,
374,
31,
277,
411,
943,
26359,
31,
277,
27245,
1377,
288,
202,
1841,
1161,
273,
1654,
72,
18,
588,
682,
4020,
6747,
1841,
12,
1098,
16,
202,
4766,
10402,
16778,
3514,
18,
588,
1488,
1435,
202,
4766,
21821,
263,
21336,
861,
12,
77,
3631,
202,
4766,
10402,
300,
21,
16,
629,
16,
629,
1769,
2
] |
if( (newPasswd.length > 0) && (newPasswd.length < MIN_PASSWD_LENGTH) ){ throw new Exception("The \"new\" and } | private void prevalidate() throws Exception { loginHashtable.clear(); boolean oneValidAccount = false; int rowIndex = 0; // go through all the rows and perform some tests Util.printMessage("STATUS: STARTING VERIFICATION of " + this.getOriginalDataVector().size() + " user(s)"); for( Vector tempUser : (Vector<Vector>) this.getOriginalDataVector() ){ rowIndex++; byte[] origPasswd = ((MPasswordField)tempUser.elementAt(4)).getByteArray(); char[] newPasswd = ((MPasswordField)tempUser.elementAt(5)).getPassword(); char[] newConfPasswd = ((MPasswordField)tempUser.elementAt(6)).getPassword(); char[] proceedPasswd = ((MPasswordField)tempUser.elementAt(7)).getPassword(); String loginName = (String) tempUser.elementAt(3); // verify that the login name is not duplicated if( loginHashtable.containsKey(loginName) ){ throw new Exception("The login name: \"" + loginName + "\" in row: " + rowIndex + " already exists."); } else{ loginHashtable.put(loginName, loginName); } // verify that all of the new and new confirm passwords and match up (and they are of the proper size) if( !java.util.Arrays.equals(newPasswd, newConfPasswd) ){ throw new Exception("The \"new\" and \"new confirm\" passwords are not the same for: \"" + loginName + "\" in row: " + rowIndex + "."); } if( (newPasswd.length > 0) && (newPasswd.length < MIN_PASSWD_LENGTH) ){ throw new Exception("The \"new\" and//or \"new confirm\" passwords for: \"" + loginName + "\" in row: " + rowIndex + " are shorter than the minimum " + MIN_PASSWD_LENGTH + " characters."); } // verify that all of the original and proceed passwords are the same for any non saved row if( !((String)tempUser.elementAt(0)).equals(super.ROW_SAVED) && !PasswordUtil.check( String.valueOf(proceedPasswd), origPasswd )){ throw new Exception("The \"original\" password is not correct for: \"" + loginName + "\" in row: " + rowIndex + "."); } // verify that if this is a new row, a new password has been chosen if( ((String)tempUser.elementAt(0)).equals(super.ROW_ADD) && (newPasswd.length == 0) ){ throw new Exception("The \"new\" password has not been set for: \"" + loginName + "\" in row: " + rowIndex + "."); } // record if the row was not removed, that way we know we had at least one valid account if( !((String)tempUser.elementAt(0)).equals(super.ROW_REMOVE) ){ oneValidAccount = true; } } // verify that there is at least one valid entry after all operations if(!oneValidAccount){ throw new Exception("There must always be at least one valid account."); } } | 49954 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49954/ff039aa0a88558bd57c3af5130d7d059b60c42c3/AdminConfigJDialog.java/buggy/gui/main/com/metavize/gui/configuration/AdminConfigJDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
309,
12,
261,
2704,
6433,
3623,
18,
2469,
405,
374,
13,
597,
261,
2704,
6433,
3623,
18,
2469,
411,
6989,
67,
10884,
16006,
67,
7096,
13,
262,
95,
604,
394,
1185,
2932,
1986,
1239,
2704,
2412,
471,
289,
565,
309,
12,
261,
2704,
6433,
3623,
18,
2469,
405,
374,
13,
597,
261,
2704,
6433,
3623,
18,
2469,
411,
6989,
67,
10884,
16006,
67,
7096,
13,
262,
95,
604,
394,
1185,
2932,
1986,
1239,
2704,
2412,
471,
289,
565,
309,
12,
261,
2704,
6433,
3623,
18,
2469,
405,
374,
13,
597,
261,
2704,
6433,
3623,
18,
2469,
411,
6989,
67,
10884,
16006,
67,
7096,
13,
262,
95,
604,
394,
1185,
2932,
1986,
1239,
2704,
2412,
471,
289,
565,
309,
12,
261,
2704,
6433,
3623,
18,
2469,
405,
374,
13,
597,
261,
2704,
6433,
3623,
18,
2469,
411,
6989,
67,
10884,
16006,
67,
7096,
13,
262,
95,
604,
394,
1185,
2932,
1986,
1239,
2704,
2412,
471,
289,
282,
3238,
309,
12,
261,
2704,
6433,
3623,
18,
2469,
405,
374,
13,
597,
261,
2704,
6433,
3623,
18,
2469,
411,
6989,
67,
10884,
16006,
67,
7096,
13,
262,
95,
604,
394,
1185,
2932,
1986,
1239,
2704,
2412,
471,
289,
282,
918,
309,
12,
261,
2704,
6433,
3623,
18,
2469,
405,
374,
13,
597,
261,
2704,
6433,
3623,
18,
2469,
411,
6989,
67,
10884,
16006,
67,
7096,
13,
262,
95,
604,
394,
1185,
2932,
1986,
1239,
2704,
2412,
471,
289,
282,
675,
5662,
1435,
309,
12,
261,
2704,
6433,
3623,
18,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
309,
12,
261,
2704,
6433,
3623,
18,
2469,
405,
374,
13,
597,
261,
2704,
6433,
3623,
18,
2469,
411,
6989,
67,
10884,
16006,
67,
7096,
13,
262,
95,
604,
394,
1185,
2932,
1986,
1239,
2704,
2412,
471,
289,
565,
309,
12,
261,
2704,
6433,
3623,
18,
2469,
405,
374,
13,
597,
261,
2704,
6433,
3623,
18,
2469,
411,
6989,
67,
10884,
16006,
67,
7096,
13,
262,
95,
604,
394,
1185,
2932,
1986,
1239,
2704,
2412,
471,
289,
565,
309,
12,
261,
2704,
6433,
3623,
18,
2469,
405,
374,
13,
597,
261,
2704,
6433,
3623,
18,
2469,
411,
6989,
67,
10884,
16006,
67,
7096,
13,
262,
95,
604,
394,
1185,
2932,
1986,
1239,
2704,
2412,
471,
289,
565,
309,
2
] | |
_includePeerRankings = false; | _includePeerRankings = false; | public StatisticsManager() { _includePeerRankings = false; } | 27437 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27437/86759d2f9c63d203488c7e8b34e64be162a16ce9/StatisticsManager.java/clean/router/java/src/net/i2p/router/StatisticsManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
22964,
1318,
1435,
288,
202,
67,
6702,
6813,
12925,
899,
273,
629,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
22964,
1318,
1435,
288,
202,
67,
6702,
6813,
12925,
899,
273,
629,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
myEditor = new StringEditor(); | myEditor = new StringEditor(myProject); | public PropertyEditor getEditor() { if (myEditor == null) { myEditor = new StringEditor(); } return myEditor; } | 56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/0a8c7f6f897798de90c99991927c43760777d651/BorderProperty.java/buggy/ui-designer/impl/com/intellij/uiDesigner/propertyInspector/properties/BorderProperty.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4276,
6946,
336,
6946,
1435,
288,
1377,
309,
261,
4811,
6946,
422,
446,
13,
288,
3639,
3399,
6946,
273,
394,
514,
6946,
12,
4811,
4109,
1769,
1377,
289,
1377,
327,
3399,
6946,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4276,
6946,
336,
6946,
1435,
288,
1377,
309,
261,
4811,
6946,
422,
446,
13,
288,
3639,
3399,
6946,
273,
394,
514,
6946,
12,
4811,
4109,
1769,
1377,
289,
1377,
327,
3399,
6946,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
/*If target cell represents some empty collection, target cell's node is not a member of that collection, | String role = (String) targetCell.getUserObject(EditorCell.ROLE); if (role != null) return role; LOG.warning("PASTE: tagret cell's user object 'ROLE' is null. Trying to get cell's role in the old manner"); /*If target cell represents some empty collection, target cell's node is not a member of that collection, | private static String getRoleFromCell(EditorCell targetCell) { /*If target cell represents some empty collection, target cell's node is not a member of that collection, but its future members' parent. Hence, if we consider that node as an anchor and hence its role as role-in-parent for the node we want to paste - we'll not be able to paste our node as a child of that very target node. But we want to process such case, too. Hence we search for the first collection which contains our target cell and has not-null handler (i.e. not-null cell nodes role). */ String role = null; EditorCell_Collection actualCollection = (targetCell instanceof EditorCell_Collection)? (EditorCell_Collection) targetCell : targetCell.getParent(); if (actualCollection != null) role = actualCollection.getCellNodesRole(); while (actualCollection != null && role == null) { actualCollection = actualCollection.getParent(); if (actualCollection == null) break; role = actualCollection.getCellNodesRole(); } if (role == null) { SNode pasteTarget = targetCell.getSNode(); role = pasteTarget.getRole_(); } return role; } | 14939 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14939/27220d0c7736a3dda6f480ed55bcf43dc2d616dc/PasteUtil.java/buggy/source/jetbrains/mps/datatransfer/PasteUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
514,
15673,
1265,
4020,
12,
6946,
4020,
1018,
4020,
13,
288,
377,
514,
2478,
273,
261,
780,
13,
1018,
4020,
18,
588,
1299,
921,
12,
6946,
4020,
18,
16256,
1769,
309,
261,
4615,
480,
446,
13,
327,
2478,
31,
225,
2018,
18,
8551,
2932,
4066,
882,
41,
30,
1047,
1349,
2484,
1807,
729,
733,
296,
16256,
11,
353,
446,
18,
6161,
310,
358,
336,
2484,
1807,
2478,
316,
326,
1592,
21296,
8863,
1748,
2047,
1018,
2484,
8686,
2690,
1008,
1849,
16,
1018,
2484,
1807,
756,
353,
486,
279,
3140,
434,
716,
1849,
16,
1377,
1496,
2097,
3563,
4833,
11,
982,
18,
670,
802,
16,
309,
732,
5260,
716,
756,
487,
392,
6984,
1377,
471,
20356,
2097,
2478,
487,
2478,
17,
267,
17,
2938,
364,
326,
756,
732,
2545,
358,
19401,
300,
732,
5614,
486,
506,
7752,
1377,
358,
19401,
3134,
756,
487,
279,
1151,
434,
716,
8572,
1018,
756,
18,
1377,
12484,
732,
2545,
358,
1207,
4123,
648,
16,
4885,
18,
670,
802,
732,
1623,
364,
326,
1122,
1849,
1492,
1914,
1377,
3134,
1018,
2484,
471,
711,
486,
17,
2011,
1838,
261,
77,
18,
73,
18,
486,
17,
2011,
2484,
2199,
2478,
2934,
377,
1195,
565,
514,
2478,
273,
446,
31,
565,
18451,
4020,
67,
2532,
3214,
2532,
273,
261,
3299,
4020,
1276,
18451,
4020,
67,
2532,
9945,
261,
6946,
4020,
67,
2532,
13,
1018,
4020,
294,
1018,
4020,
18,
588,
3054,
5621,
565,
309,
261,
18672,
2532,
480,
446,
13,
2478,
273,
3214,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
514,
15673,
1265,
4020,
12,
6946,
4020,
1018,
4020,
13,
288,
377,
514,
2478,
273,
261,
780,
13,
1018,
4020,
18,
588,
1299,
921,
12,
6946,
4020,
18,
16256,
1769,
309,
261,
4615,
480,
446,
13,
327,
2478,
31,
225,
2018,
18,
8551,
2932,
4066,
882,
41,
30,
1047,
1349,
2484,
1807,
729,
733,
296,
16256,
11,
353,
446,
18,
6161,
310,
358,
336,
2484,
1807,
2478,
316,
326,
1592,
21296,
8863,
1748,
2047,
1018,
2484,
8686,
2690,
1008,
1849,
16,
1018,
2484,
1807,
756,
353,
486,
279,
3140,
434,
716,
1849,
16,
1377,
1496,
2097,
3563,
4833,
11,
982,
18,
670,
802,
16,
309,
732,
5260,
716,
756,
487,
392,
6984,
1377,
471,
20356,
2097,
2
] |
returnType.ext().translate(w, tr); | returnType.translate(w, tr); | public void translate_(CodeWriter w, Translator tr) { Context c = tr.context(); Flags flags = flags(); if (c.currentClass().flags().isInterface()) { flags = flags.clearPublic(); flags = flags.clearAbstract(); } w.begin(0); w.write(flags.translate()); returnType.ext().translate(w, tr); w.write(" " + name + "("); w.begin(0); for (Iterator i = formals.iterator(); i.hasNext(); ) { Formal f = (Formal) i.next(); f.ext().translate(w, tr); if (i.hasNext()) { w.write(","); w.allowBreak(0, " "); } } w.end(); w.write(")"); if (! exceptionTypes.isEmpty()) { w.allowBreak(6); w.write("throws "); for (Iterator i = exceptionTypes.iterator(); i.hasNext(); ) { TypeNode tn = (TypeNode) i.next(); tn.ext().translate(w, tr); if (i.hasNext()) { w.write(","); w.allowBreak(4, " "); } } } w.end(); if (body != null) { enterScope(c); translateSubstmt(body, w, tr); leaveScope(c); } else { w.write(";"); } } | 11982 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11982/7335022712984bae07f6e015bcc31027c155c131/MethodDecl_c.java/clean/src/polyglot/ast/MethodDecl_c.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4204,
67,
12,
1085,
2289,
341,
16,
18669,
433,
13,
288,
3639,
1772,
276,
273,
433,
18,
2472,
5621,
202,
5094,
2943,
273,
2943,
5621,
202,
430,
261,
71,
18,
2972,
797,
7675,
7133,
7675,
291,
1358,
10756,
288,
202,
565,
2943,
273,
2943,
18,
8507,
4782,
5621,
202,
565,
2943,
273,
2943,
18,
8507,
7469,
5621,
202,
97,
202,
91,
18,
10086,
12,
20,
1769,
202,
91,
18,
2626,
12,
7133,
18,
13929,
10663,
202,
2463,
559,
18,
408,
7675,
13929,
12,
91,
16,
433,
1769,
202,
91,
18,
2626,
2932,
315,
397,
508,
397,
12452,
1769,
202,
91,
18,
10086,
12,
20,
1769,
202,
1884,
261,
3198,
277,
273,
646,
1031,
18,
9838,
5621,
277,
18,
5332,
2134,
5621,
262,
288,
202,
565,
478,
1687,
284,
273,
261,
12183,
13,
277,
18,
4285,
5621,
202,
565,
284,
18,
408,
7675,
13929,
12,
91,
16,
433,
1769,
202,
565,
309,
261,
77,
18,
5332,
2134,
10756,
288,
202,
202,
91,
18,
2626,
2932,
16,
8863,
202,
202,
91,
18,
5965,
7634,
12,
20,
16,
315,
315,
1769,
202,
565,
289,
202,
97,
202,
91,
18,
409,
5621,
202,
91,
18,
2626,
2932,
2225,
1769,
202,
430,
16051,
1520,
2016,
18,
291,
1921,
10756,
288,
202,
565,
341,
18,
5965,
7634,
12,
26,
1769,
202,
565,
341,
18,
2626,
2932,
15069,
315,
1769,
202,
565,
364,
261,
3198,
277,
273,
1520,
2016,
18,
9838,
5621,
277,
18,
5332,
2134,
5621,
262,
288,
202,
3639,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4204,
67,
12,
1085,
2289,
341,
16,
18669,
433,
13,
288,
3639,
1772,
276,
273,
433,
18,
2472,
5621,
202,
5094,
2943,
273,
2943,
5621,
202,
430,
261,
71,
18,
2972,
797,
7675,
7133,
7675,
291,
1358,
10756,
288,
202,
565,
2943,
273,
2943,
18,
8507,
4782,
5621,
202,
565,
2943,
273,
2943,
18,
8507,
7469,
5621,
202,
97,
202,
91,
18,
10086,
12,
20,
1769,
202,
91,
18,
2626,
12,
7133,
18,
13929,
10663,
202,
2463,
559,
18,
408,
7675,
13929,
12,
91,
16,
433,
1769,
202,
91,
18,
2626,
2932,
315,
397,
508,
397,
12452,
1769,
202,
91,
18,
10086,
12,
20,
1769,
202,
1884,
261,
3198,
277,
273,
646,
1031,
18,
9838,
5621,
2
] |
msgContext, inStream, baos, request.getContentType(), | msgContext, baos, | public boolean processRequest(final SimpleHttpServerConnection conn, final SimpleRequest request) throws IOException { MessageContext msgContext = null; SimpleResponse response = new SimpleResponse(); ByteArrayOutputStream baos = new ByteArrayOutputStream(); try { if (configurationContext == null) { throw new AxisFault(Messages.getMessage("cannotBeNullConfigurationContext")); } InputStream inStream = request.getBody(); TransportOutDescription transportOut = configurationContext.getAxisConfiguration().getTransportOut( new QName(Constants.TRANSPORT_HTTP)); String cookieID = request.getCookieID(); SessionContext sessionContext = getSessionContext(cookieID); msgContext = new MessageContext(); msgContext.setIncomingTransportName(Constants.TRANSPORT_HTTP); msgContext.setConfigurationContext(configurationContext); msgContext.setSessionContext(sessionContext); msgContext.setTransportIn(configurationContext.getAxisConfiguration().getTransportIn( new QName(Constants.TRANSPORT_HTTP))); msgContext.setTransportOut(transportOut); msgContext.setServerSide(true); HttpVersion ver = request.getRequestLine().getHttpVersion(); if (ver == null) { throw new AxisFault("HTTP version can not be Null"); } if (HttpVersion.HTTP_1_0.equals(ver)) {// httpVersion = HTTPConstants.HEADER_PROTOCOL_10; } else if (HttpVersion.HTTP_1_1.equals(ver)) {// httpVersion = HTTPConstants.HEADER_PROTOCOL_11; /** * Transport Sender configuration via axis2.xml */ this.transportOutConfiguration(configurationContext, response); } else { throw new AxisFault("Unknown supported protocol version " + ver); } msgContext.setProperty(MessageContext.TRANSPORT_OUT, baos); // set the transport Headers msgContext.setProperty(MessageContext.TRANSPORT_HEADERS, getHeaders(request)); msgContext.setServiceGroupContextId(UUIDGenerator.getUUID()); // This is way to provide access to the transport information to the transport Sender msgContext.setProperty(Constants.OUT_TRANSPORT_INFO, new SimpleHTTPOutTransportInfo(response)); msgContext.setProperty(Constants.Configuration.TRANSPORT_IN_URL, request.getRequestLine().getUri()); String soapAction = null; if (request.getFirstHeader(HTTPConstants.HEADER_SOAP_ACTION) != null) { soapAction = request.getFirstHeader(HTTPConstants.HEADER_SOAP_ACTION).getValue(); } if (HTTPConstants.HEADER_GET.equals(request.getRequestLine().getMethod())) { String uri = request.getRequestLine().getUri(); log.debug("HTTP GET:" + uri); if (uri.equals("/favicon.ico")) { response.setStatusLine(request.getRequestLine().getHttpVersion(), 301, "Redirect"); response.addHeader(new Header("Location", "http://ws.apache.org/favicon.ico")); conn.writeResponse(response); return true; } if (!uri.startsWith("/axis2/services/")) { response.setStatusLine(request.getRequestLine().getHttpVersion(), 301, "Redirect"); response.addHeader(new Header("Location", "/axis2/services/")); conn.writeResponse(response); return true; } if (uri.indexOf("?") < 0) { if (!(uri.endsWith("/axis2/services/") || uri.endsWith("/axis2/services"))) { String serviceName = uri.replaceAll("/axis2/services/", ""); if (serviceName.indexOf("/") < 0) { response.addHeader(new Header("Content-Type", "text/html")); String res = HTTPTransportReceiver.printServiceHTML(serviceName, configurationContext); byte[] buf = res.getBytes(); response.setBody(new ByteArrayInputStream(buf)); conn.writeResponse(response); return true; } } } if (uri.endsWith("?wsdl")) { String serviceName = uri.substring(uri.lastIndexOf("/") + 1, uri.length() - 5); HashMap services = configurationContext.getAxisConfiguration().getServices(); AxisService service = (AxisService) services.get(serviceName); if (service != null) { response.addHeader(new Header("Content-Type", "text/xml"));// String url = conn.getURL(uri.substring(1, uri.length() - 5)); String url = conn.getURL(""); int ipindex = url.indexOf("//"); String ip = null; if (ipindex >= 0) { ip = url.substring(ipindex + 2, url.length()); int seperatorIndex = ip.indexOf(":"); if (seperatorIndex > 0) { ip = ip.substring(0, seperatorIndex); } } service.printWSDL(baos, ip); byte[] buf = baos.toByteArray(); response.setBody(new ByteArrayInputStream(buf)); conn.writeResponse(response); return true; } } if (uri.endsWith("?xsd")) { String serviceName = uri.substring(uri.lastIndexOf("/") + 1, uri.length() - 4); HashMap services = configurationContext.getAxisConfiguration().getServices(); AxisService service = (AxisService) services.get(serviceName); if (service != null) { response.addHeader(new Header("Content-Type", "text/xml")); service.printSchema(baos); byte[] buf = baos.toByteArray(); response.setBody(new ByteArrayInputStream(buf)); conn.writeResponse(response); return true; } } // It is GET handle the Get request boolean processed = HTTPTransportUtils.processHTTPGetRequest( msgContext, inStream, baos, request.getContentType(), soapAction, request.getRequestLine().getUri(), configurationContext, HTTPTransportReceiver.getGetRequestParameters( request.getRequestLine().getUri())); if (!processed) { response.setStatusLine(request.getRequestLine().getHttpVersion(), 200, "OK"); response.addHeader(new Header("Content-Type", "text/html")); response.setBodyString( HTTPTransportReceiver.getServicesHTML(configurationContext)); setResponseHeaders(conn, request, response, 0, msgContext); conn.writeResponse(response); return true; } } else { ByteArrayOutputStream baosIn = new ByteArrayOutputStream(); byte[] bytes = new byte[8192]; int size; while ((size = inStream.read(bytes)) > 0) { baosIn.write(bytes, 0, size); } inStream = new ByteArrayInputStream(baosIn.toByteArray()); // It is POST, handle it HTTPTransportUtils.processHTTPPostRequest(msgContext, inStream, baos, request.getContentType(), soapAction, request.getRequestLine().getUri()); } OperationContext operationContext = msgContext.getOperationContext(); Object contextWritten = null; if (operationContext != null) { contextWritten = operationContext.getProperty(Constants.RESPONSE_WRITTEN); } if ((contextWritten != null) && Constants.VALUE_TRUE.equals(contextWritten)) { response.setStatusLine(request.getRequestLine().getHttpVersion(), 200, "OK"); } else { response.setStatusLine(request.getRequestLine().getHttpVersion(), 202, "OK"); } byte[] buf = baos.toByteArray(); response.setBody(new ByteArrayInputStream(buf)); setResponseHeaders(conn, request, response, buf.length, msgContext); conn.writeResponse(response); } catch (Throwable e) { if (!(e instanceof java.net.SocketException)) { log.debug(e.getMessage(), e); } try { AxisEngine engine = new AxisEngine(configurationContext); if (msgContext != null) { msgContext.setProperty(MessageContext.TRANSPORT_OUT, baos); MessageContext faultContext = engine.createFaultMessageContext(msgContext, e); response.setStatusLine(request.getRequestLine().getHttpVersion(), 500, "Internal server error"); engine.sendFault(faultContext); byte[] buf = baos.toByteArray(); response.setBody(new ByteArrayInputStream(buf)); setResponseHeaders(conn, request, response, buf.length, msgContext); conn.writeResponse(response); } } catch (SocketException e1) { log.debug(e1.getMessage(), e1); } catch (Exception e1) { log.warn(e1.getMessage(), e1); } } return true; } | 49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/641186fbe200233d0a5a9fd4f6e4be03f48fdef5/HTTPWorker.java/clean/modules/core/src/org/apache/axis2/transport/http/HTTPWorker.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1207,
691,
12,
6385,
4477,
2940,
2081,
1952,
1487,
16,
21394,
727,
4477,
691,
590,
13,
5411,
1216,
1860,
288,
3639,
2350,
1042,
1234,
1042,
273,
446,
31,
3639,
4477,
1064,
766,
273,
394,
4477,
1064,
5621,
3639,
11559,
17548,
273,
394,
11559,
5621,
3639,
775,
288,
5411,
309,
261,
7025,
1042,
422,
446,
13,
288,
7734,
604,
394,
15509,
7083,
12,
5058,
18,
24906,
2932,
12892,
1919,
2041,
1750,
1042,
7923,
1769,
5411,
289,
5411,
5037,
28987,
273,
590,
18,
588,
2250,
5621,
5411,
9514,
1182,
3291,
4736,
1182,
273,
10792,
1664,
1042,
18,
588,
6558,
1750,
7675,
588,
6568,
1182,
12,
18701,
394,
16723,
12,
2918,
18,
8989,
31943,
67,
3693,
10019,
5411,
514,
3878,
734,
273,
590,
18,
588,
6151,
734,
5621,
5411,
3877,
1042,
1339,
1042,
273,
7183,
1042,
12,
8417,
734,
1769,
5411,
1234,
1042,
273,
394,
2350,
1042,
5621,
5411,
1234,
1042,
18,
542,
20370,
6568,
461,
12,
2918,
18,
8989,
31943,
67,
3693,
1769,
5411,
1234,
1042,
18,
542,
1750,
1042,
12,
7025,
1042,
1769,
5411,
1234,
1042,
18,
542,
2157,
1042,
12,
3184,
1042,
1769,
5411,
1234,
1042,
18,
542,
6568,
382,
12,
7025,
1042,
18,
588,
6558,
1750,
7675,
588,
6568,
382,
12,
10792,
394,
16723,
12,
2918,
18,
8989,
31943,
67,
3693,
3719,
1769,
5411,
1234,
1042,
18,
542,
6568,
1182,
12,
13049,
1182,
1769,
5411,
1234,
1042,
18,
542,
2081,
8895,
12,
3767,
1769,
5411,
2541,
1444,
1924,
273,
590,
18,
588,
691,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1207,
691,
12,
6385,
4477,
2940,
2081,
1952,
1487,
16,
21394,
727,
4477,
691,
590,
13,
5411,
1216,
1860,
288,
3639,
2350,
1042,
1234,
1042,
273,
446,
31,
3639,
4477,
1064,
766,
273,
394,
4477,
1064,
5621,
3639,
11559,
17548,
273,
394,
11559,
5621,
3639,
775,
288,
5411,
309,
261,
7025,
1042,
422,
446,
13,
288,
7734,
604,
394,
15509,
7083,
12,
5058,
18,
24906,
2932,
12892,
1919,
2041,
1750,
1042,
7923,
1769,
5411,
289,
5411,
5037,
28987,
273,
590,
18,
588,
2250,
5621,
5411,
9514,
1182,
3291,
4736,
1182,
273,
10792,
1664,
1042,
18,
588,
6558,
1750,
7675,
588,
6568,
1182,
12,
18701,
394,
16723,
12,
2918,
18,
8989,
31943,
67,
3693,
10019,
5411,
514,
2
] |
TerrainBlock tb = new TerrainBlock("Terrain", heightMap.getSize(), 5, heightMap.getHeightMap(), new Vector3f(0,0,0), true); | TerrainBlock tb = new TerrainBlock("Terrain", heightMap.getSize(), 5, heightMap.getHeightMap(), new Vector3f(0,0,0), false); | protected void initGame() { Vector3f max = new Vector3f(0.5f, 0.5f, 0.5f); Vector3f min = new Vector3f(-0.5f, -0.5f, -0.5f); WireframeState ws = display.getRenderer().getWireframeState(); ws.setEnabled(false); FogState fs = display.getRenderer().getFogState(); AlphaState as1 = display.getRenderer().getAlphaState(); as1.setBlendEnabled(true); as1.setSrcFunction(AlphaState.SB_SRC_ALPHA); as1.setDstFunction(AlphaState.DB_ONE); as1.setTestEnabled(true); as1.setTestFunction(AlphaState.TF_GREATER); as1.setEnabled(true); DirectionalLight dr = new DirectionalLight(); dr.setEnabled(true); dr.setDiffuse(new ColorRGBA(1.0f, 1.0f, 1.0f, 1.0f)); dr.setAmbient(new ColorRGBA(0.5f, 0.5f, 0.5f, 1.0f)); dr.setDirection(new Vector3f(0.5f, -0.5f, 0)); CullState cs = display.getRenderer().getCullState(); cs.setCullMode(CullState.CS_BACK); cs.setEnabled(true); LightState lightstate = display.getRenderer().getLightState(); lightstate.setTwoSidedLighting(true); lightstate.setEnabled(true); lightstate.attach(dr); Node scene = new Node("scene"); scene.setRenderState(ws); scene.setRenderState(lightstate); root = new Node("Root node"); //MidPointHeightMap heightMap = new MidPointHeightMap(128, 1.9f); FaultFractalHeightMap heightMap = new FaultFractalHeightMap(129, 32, 0, 255, 0.75f); TerrainBlock tb = new TerrainBlock("Terrain", heightMap.getSize(), 5, heightMap.getHeightMap(), new Vector3f(0,0,0), true); tb.setDetailTexture(1, 4); tb.setModelBound(new BoundingBox()); tb.updateModelBound(); scene.attachChild(tb); scene.setRenderState(cs); ProceduralTextureGenerator pt = new ProceduralTextureGenerator(heightMap); pt.addTexture(new ImageIcon(TestTerrain.class.getClassLoader().getResource("jmetest/data/texture/grassb.png")), -128, 0, 128); pt.addTexture(new ImageIcon(TestTerrain.class.getClassLoader().getResource("jmetest/data/texture/dirt.jpg")), 0, 128, 255); pt.addTexture(new ImageIcon(TestTerrain.class.getClassLoader().getResource("jmetest/data/texture/highest.jpg")), 128, 255, 384); pt.createTexture(512); TextureState ts = display.getRenderer().getTextureState(); ts.setEnabled(true); Texture t1 = TextureManager.loadTexture( pt.getImageIcon().getImage(), Texture.MM_LINEAR, Texture.FM_LINEAR, true, true); ts.setTexture(t1 ,0); Texture t2 = TextureManager.loadTexture(TestTerrain.class.getClassLoader().getResource("jmetest/data/texture/Detail.jpg"), Texture.MM_LINEAR, Texture.FM_LINEAR, true); ts.setTexture( t2,1); t2.setWrap(Texture.WM_WRAP_S_WRAP_T); t1.setApply(Texture.AM_COMBINE); t1.setCombineFuncRGB(Texture.ACF_MODULATE); t1.setCombineSrc0RGB(Texture.ACS_TEXTURE); t1.setCombineOp0RGB(Texture.ACO_SRC_COLOR); t1.setCombineSrc1RGB(Texture.ACS_PRIMARY_COLOR); t1.setCombineOp1RGB(Texture.ACO_SRC_COLOR); t1.setCombineScaleRGB(0); t2.setApply(Texture.AM_COMBINE); t2.setCombineFuncRGB(Texture.ACF_ADD_SIGNED); t2.setCombineSrc0RGB(Texture.ACS_TEXTURE); t2.setCombineOp0RGB(Texture.ACO_SRC_COLOR); t2.setCombineSrc1RGB(Texture.ACS_PREVIOUS); t2.setCombineOp1RGB(Texture.ACO_SRC_COLOR); t2.setCombineScaleRGB(0); scene.setRenderState(ts); ZBufferState buf = display.getRenderer().getZBufferState(); buf.setEnabled(true); buf.setFunction(ZBufferState.CF_LEQUAL); TextureState font = display.getRenderer().getTextureState(); font.setTexture( TextureManager.loadTexture( TestTerrain.class.getClassLoader().getResource( "jmetest/data/font/font.png"), Texture.MM_LINEAR, Texture.FM_LINEAR, true)); font.setEnabled(true); fps = new Text("FPS counter", ""); fps.setRenderState(font); fps.setRenderState(as1); scene.setRenderState(buf); root.attachChild(scene); root.attachChild(fps); root.setForceView(true); root.updateGeometricState(0.0f, true); root.updateRenderState(); } | 19503 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19503/fe893c95ddddf22d5c613bcabc6201a5d7fa4501/TestTerrain.java/buggy/src/jmetest/terrain/TestTerrain.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1208,
12496,
1435,
288,
3639,
5589,
23,
74,
943,
273,
394,
5589,
23,
74,
12,
20,
18,
25,
74,
16,
374,
18,
25,
74,
16,
374,
18,
25,
74,
1769,
3639,
5589,
23,
74,
1131,
273,
394,
5589,
23,
74,
19236,
20,
18,
25,
74,
16,
300,
20,
18,
25,
74,
16,
300,
20,
18,
25,
74,
1769,
3639,
15454,
3789,
1119,
4945,
273,
2562,
18,
588,
6747,
7675,
588,
15249,
3789,
1119,
5621,
3639,
4945,
18,
542,
1526,
12,
5743,
1769,
3639,
478,
717,
1119,
2662,
273,
2562,
18,
588,
6747,
7675,
588,
42,
717,
1119,
5621,
7734,
24277,
1119,
487,
21,
273,
2562,
18,
588,
6747,
7675,
588,
9690,
1119,
5621,
3639,
487,
21,
18,
542,
4802,
409,
1526,
12,
3767,
1769,
3639,
487,
21,
18,
542,
7740,
2083,
12,
9690,
1119,
18,
14541,
67,
28413,
67,
26313,
1769,
3639,
487,
21,
18,
542,
15295,
2083,
12,
9690,
1119,
18,
2290,
67,
5998,
1769,
3639,
487,
21,
18,
542,
4709,
1526,
12,
3767,
1769,
3639,
487,
21,
18,
542,
4709,
2083,
12,
9690,
1119,
18,
17963,
67,
43,
18857,
1769,
3639,
487,
21,
18,
542,
1526,
12,
3767,
1769,
3639,
15280,
287,
12128,
5081,
273,
394,
15280,
287,
12128,
5621,
3639,
5081,
18,
542,
1526,
12,
3767,
1769,
3639,
5081,
18,
542,
5938,
1202,
12,
2704,
5563,
23263,
12,
21,
18,
20,
74,
16,
404,
18,
20,
74,
16,
404,
18,
20,
74,
16,
404,
18,
20,
74,
10019,
3639,
5081,
18,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1208,
12496,
1435,
288,
3639,
5589,
23,
74,
943,
273,
394,
5589,
23,
74,
12,
20,
18,
25,
74,
16,
374,
18,
25,
74,
16,
374,
18,
25,
74,
1769,
3639,
5589,
23,
74,
1131,
273,
394,
5589,
23,
74,
19236,
20,
18,
25,
74,
16,
300,
20,
18,
25,
74,
16,
300,
20,
18,
25,
74,
1769,
3639,
15454,
3789,
1119,
4945,
273,
2562,
18,
588,
6747,
7675,
588,
15249,
3789,
1119,
5621,
3639,
4945,
18,
542,
1526,
12,
5743,
1769,
3639,
478,
717,
1119,
2662,
273,
2562,
18,
588,
6747,
7675,
588,
42,
717,
1119,
5621,
7734,
24277,
1119,
487,
21,
273,
2562,
18,
588,
6747,
7675,
588,
9690,
1119,
5621,
3639,
487,
21,
2
] |
public short getRed() { return r_; } | public short getRed() { return r_; } | public short getRed() { return r_; } | 49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/57a34fa3e6e607d84b46e06082997a4771a25a85/Color.java/buggy/MMTk/src/org/mmtk/utility/gcspy/Color.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3025,
336,
3715,
1435,
288,
327,
436,
67,
31,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
3025,
336,
3715,
1435,
288,
327,
436,
67,
31,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public Cell addTopCell(Node node, int x, int y) throws Exception { | public Cell addTopCell(Node node, int x, int y) { | public Cell addTopCell(Node node, int x, int y) throws Exception { Cell cl = addCell(node, x, y); top_cells.add(cl); return cl; } | 52947 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52947/e8e0eb314a46ddb6d7381b336fded7fb403ce0f5/Table.java/buggy/src/java/org/joshy/html/table/Table.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
8614,
527,
3401,
4020,
12,
907,
756,
16,
509,
619,
16,
509,
677,
13,
288,
3639,
8614,
927,
273,
527,
4020,
12,
2159,
16,
619,
16,
677,
1769,
3639,
1760,
67,
14741,
18,
1289,
12,
830,
1769,
3639,
327,
927,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
8614,
527,
3401,
4020,
12,
907,
756,
16,
509,
619,
16,
509,
677,
13,
288,
3639,
8614,
927,
273,
527,
4020,
12,
2159,
16,
619,
16,
677,
1769,
3639,
1760,
67,
14741,
18,
1289,
12,
830,
1769,
3639,
327,
927,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public void send(AMQMessage msg, AMQQueue queue) throws AMQException | public void send(AMQMessage msg, AMQQueue queue) throws FailedDequeueException | public void send(AMQMessage msg, AMQQueue queue) throws AMQException { if (msg != null) { synchronized(channel) { long deliveryTag = channel.getNextDeliveryTag(); if (_acks) { channel.addUnacknowledgedMessage(msg, deliveryTag, consumerTag, queue); } ByteBuffer deliver = createEncodedDeliverFrame(deliveryTag, msg.getRoutingKey(), msg.getExchangeName()); AMQDataBlock frame = msg.getDataBlock(deliver, channel.getChannelId()); protocolSession.writeFrame(frame); } // if we do not need to wait for client acknowledgements we can decrement // the reference count immediately if (!_acks) { msg.decrementReference(); msg.dequeue(queue); } } else { _logger.error("Attempt to send Null message", new NullPointerException()); } } | 45585 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45585/3f3f6238cdf09b62ebc6a7bc63150d996dd29f35/SubscriptionImpl.java/buggy/qpid/java/broker/src/org/apache/qpid/server/queue/SubscriptionImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1366,
12,
2192,
53,
1079,
1234,
16,
16549,
3183,
2389,
13,
1216,
11175,
758,
4000,
503,
565,
288,
3639,
309,
261,
3576,
480,
446,
13,
3639,
288,
5411,
3852,
12,
4327,
13,
5411,
288,
7734,
1525,
7912,
1805,
273,
1904,
18,
588,
2134,
8909,
1805,
5621,
7734,
309,
261,
67,
22098,
13,
7734,
288,
10792,
1904,
18,
1289,
984,
484,
10378,
2423,
1079,
12,
3576,
16,
7912,
1805,
16,
4765,
1805,
16,
2389,
1769,
7734,
289,
7734,
7400,
11795,
273,
752,
10397,
20813,
3219,
12,
15703,
1805,
16,
1234,
18,
588,
13966,
653,
9334,
1234,
18,
588,
11688,
461,
10663,
7734,
16549,
751,
1768,
2623,
273,
1234,
18,
588,
751,
1768,
12,
26672,
16,
1904,
18,
588,
2909,
548,
10663,
7734,
1771,
2157,
18,
2626,
3219,
12,
3789,
1769,
5411,
289,
5411,
368,
309,
732,
741,
486,
1608,
358,
2529,
364,
1004,
23262,
75,
17110,
732,
848,
15267,
5411,
368,
326,
2114,
1056,
7636,
5411,
309,
16051,
67,
22098,
13,
5411,
288,
7734,
1234,
18,
323,
3702,
2404,
5621,
7734,
1234,
18,
323,
4000,
12,
4000,
1769,
5411,
289,
3639,
289,
3639,
469,
3639,
288,
5411,
389,
4901,
18,
1636,
2932,
7744,
358,
1366,
4112,
883,
3113,
394,
10108,
10663,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
918,
1366,
12,
2192,
53,
1079,
1234,
16,
16549,
3183,
2389,
13,
1216,
11175,
758,
4000,
503,
565,
288,
3639,
309,
261,
3576,
480,
446,
13,
3639,
288,
5411,
3852,
12,
4327,
13,
5411,
288,
7734,
1525,
7912,
1805,
273,
1904,
18,
588,
2134,
8909,
1805,
5621,
7734,
309,
261,
67,
22098,
13,
7734,
288,
10792,
1904,
18,
1289,
984,
484,
10378,
2423,
1079,
12,
3576,
16,
7912,
1805,
16,
4765,
1805,
16,
2389,
1769,
7734,
289,
7734,
7400,
11795,
273,
752,
10397,
20813,
3219,
12,
15703,
1805,
16,
1234,
18,
588,
13966,
653,
9334,
1234,
18,
588,
11688,
461,
10663,
7734,
16549,
751,
1768,
2623,
273,
1234,
18,
588,
751,
1768,
12,
26672,
16,
1904,
18,
2
] |
throw new RuntimeException("[BUG] ParserHelper#logop: Nodetype=" + type); | public Node logop(/*node_type*/ int type, Node left, Node right) { value_expr(left); // return nf.newDefaultNode(type, cond1(left, 1), cond1(right, 1), null); throw new RuntimeException("[BUG] ParserHelper#logop: Nodetype=" + type); } | 46217 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46217/9fd6d1b2b629d2c29cb2dc7346da08720e95598c/ParserHelper.java/buggy/org/jruby/parser/ParserHelper.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2029,
613,
556,
12,
20308,
2159,
67,
723,
5549,
509,
618,
16,
2029,
2002,
16,
2029,
2145,
13,
288,
3639,
460,
67,
8638,
12,
4482,
1769,
7734,
368,
327,
13958,
18,
2704,
1868,
907,
12,
723,
16,
6941,
21,
12,
4482,
16,
404,
3631,
6941,
21,
12,
4083,
16,
404,
3631,
446,
1769,
6647,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2029,
613,
556,
12,
20308,
2159,
67,
723,
5549,
509,
618,
16,
2029,
2002,
16,
2029,
2145,
13,
288,
3639,
460,
67,
8638,
12,
4482,
1769,
7734,
368,
327,
13958,
18,
2704,
1868,
907,
12,
723,
16,
6941,
21,
12,
4482,
16,
404,
3631,
6941,
21,
12,
4083,
16,
404,
3631,
446,
1769,
6647,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] | |
AST tmp627_AST_in = (AST)_t; | AST tmp637_AST_in = (AST)_t; | public final void widname(AST _t) throws RecognitionException { AST widname_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST f = null; AST b = null; if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case AAMEMORY: case ACTIVEWINDOW: case CLIPBOARD: case CODEBASELOCATOR: case COLORTABLE: case COMPILER: case COMSELF: case CURRENTWINDOW: case DEBUGGER: case DEFAULTWINDOW: case ERRORSTATUS: case FILEINFORMATION: case FOCUS: case FONTTABLE: case LASTEVENT: case MOUSE: case PROFILER: case RCODEINFORMATION: case SELF: case SESSION: case SOURCEPROCEDURE: case SUPER: case TARGETPROCEDURE: case TEXTCURSOR: case THISPROCEDURE: case WEBCONTEXT: case LOGMANAGER: case SECURITYPOLICY: case AUDITCONTROL: case AUDITPOLICY: case THISOBJECT: { systemhandlename(_t); _t = _retTree; break; } case DATASET: { AST tmp622_AST_in = (AST)_t; match(_t,DATASET); _t = _t.getNextSibling(); AST tmp623_AST_in = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); break; } case DATASOURCE: { AST tmp624_AST_in = (AST)_t; match(_t,DATASOURCE); _t = _t.getNextSibling(); AST tmp625_AST_in = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); break; } case FIELD: { AST tmp626_AST_in = (AST)_t; match(_t,FIELD); _t = _t.getNextSibling(); fld(_t,CQ.REF); _t = _retTree; break; } case FRAME: { AST tmp627_AST_in = (AST)_t; match(_t,FRAME); _t = _t.getNextSibling(); f = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); if ( inputState.guessing==0 ) { action.frameRef(f); } break; } case MENU: { AST tmp628_AST_in = (AST)_t; match(_t,MENU); _t = _t.getNextSibling(); AST tmp629_AST_in = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); break; } case SUBMENU: { AST tmp630_AST_in = (AST)_t; match(_t,SUBMENU); _t = _t.getNextSibling(); AST tmp631_AST_in = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); break; } case MENUITEM: { AST tmp632_AST_in = (AST)_t; match(_t,MENUITEM); _t = _t.getNextSibling(); AST tmp633_AST_in = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); break; } case BROWSE: { AST tmp634_AST_in = (AST)_t; match(_t,BROWSE); _t = _t.getNextSibling(); b = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); if ( inputState.guessing==0 ) { action.browseRef(b); } break; } case QUERY: { AST tmp635_AST_in = (AST)_t; match(_t,QUERY); _t = _t.getNextSibling(); AST tmp636_AST_in = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); break; } case TEMPTABLE: { AST tmp637_AST_in = (AST)_t; match(_t,TEMPTABLE); _t = _t.getNextSibling(); AST tmp638_AST_in = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); break; } case BUFFER: { AST tmp639_AST_in = (AST)_t; match(_t,BUFFER); _t = _t.getNextSibling(); AST tmp640_AST_in = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); break; } case XDOCUMENT: { AST tmp641_AST_in = (AST)_t; match(_t,XDOCUMENT); _t = _t.getNextSibling(); AST tmp642_AST_in = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); break; } case XNODEREF: { AST tmp643_AST_in = (AST)_t; match(_t,XNODEREF); _t = _t.getNextSibling(); AST tmp644_AST_in = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); break; } case SOCKET: { AST tmp645_AST_in = (AST)_t; match(_t,SOCKET); _t = _t.getNextSibling(); AST tmp646_AST_in = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } _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,
15481,
529,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
15481,
529,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
202,
202,
9053,
284,
273,
446,
31,
202,
202,
9053,
324,
273,
446,
31,
9506,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
202,
202,
9610,
261,
389,
88,
18,
588,
559,
10756,
288,
202,
202,
3593,
432,
1642,
49,
3964,
30,
202,
202,
3593,
21135,
23407,
30,
202,
202,
3593,
8276,
52,
5315,
8085,
30,
202,
202,
3593,
11128,
8369,
29450,
3575,
30,
202,
202,
3593,
5597,
3871,
2782,
30,
202,
202,
3593,
5423,
1102,
14668,
30,
202,
202,
3593,
5423,
26280,
30,
202,
202,
3593,
18484,
23407,
30,
202,
202,
3593,
6369,
3101,
30,
202,
202,
3593,
3331,
23407,
30,
202,
202,
3593,
5475,
8608,
30,
202,
202,
3593,
7527,
706,
23805,
30,
202,
202,
3593,
478,
10809,
3378,
30,
202,
202,
3593,
478,
673,
1470,
2782,
30,
202,
202,
3593,
15612,
10454,
30,
202,
202,
3593,
16070,
8001,
30,
202,
202,
3593,
4629,
10474,
654,
30,
202,
202,
3593,
534,
5572,
706,
23805,
30,
202,
202,
3593,
29918,
30,
202,
202,
3593,
10307,
30,
202,
202,
3593,
16088,
3373,
23552,
4830,
30,
202,
202,
3593,
16459,
654,
30,
202,
202,
3593,
16964,
3373,
23552,
4830,
30,
202,
202,
3593,
9204,
7509,
55,
916,
30,
202,
202,
3593,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
15481,
529,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
15481,
529,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053,
13,
67,
88,
31,
202,
202,
9053,
284,
273,
446,
31,
202,
202,
9053,
324,
273,
446,
31,
9506,
202,
430,
261,
67,
88,
631,
2011,
13,
389,
88,
33,
9053,
8560,
31,
202,
202,
9610,
261,
389,
88,
18,
588,
559,
10756,
288,
202,
202,
3593,
432,
1642,
49,
3964,
30,
202,
202,
3593,
21135,
23407,
30,
202,
202,
3593,
8276,
52,
5315,
8085,
30,
202,
202,
3593,
11128,
8369,
29450,
3575,
30,
202,
202,
3593,
5597,
3871,
2782,
30,
202,
2
] |
return RubyBoolean.newBoolean(recv.getRuntime(), obj.isTrue()); | return recv.getRuntime().newBoolean(obj.isTrue()); | public static RubyBoolean op_or(IRubyObject recv, IRubyObject obj) { return RubyBoolean.newBoolean(recv.getRuntime(), obj.isTrue()); } | 47273 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47273/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyNil.java/buggy/src/org/jruby/RubyNil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
5507,
1061,
67,
280,
12,
7937,
10340,
921,
10665,
16,
15908,
10340,
921,
1081,
13,
288,
3639,
327,
10665,
18,
588,
5576,
7675,
2704,
5507,
12,
2603,
18,
291,
5510,
10663,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
5507,
1061,
67,
280,
12,
7937,
10340,
921,
10665,
16,
15908,
10340,
921,
1081,
13,
288,
3639,
327,
10665,
18,
588,
5576,
7675,
2704,
5507,
12,
2603,
18,
291,
5510,
10663,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
lo3d.set( dXEnd, y3d, dZ ); | lo3d.set( sx2, y3d, dZ ); | public final void renderEachAxis( IPrimitiveRenderer ipr, Plot pl, OneAxis ax, int iWhatToDraw ) throws ChartException { final RunTimeContext rtc = getRunTimeContext( ); final Axis axModel = ax.getModelAxis( ); final PlotWithAxes pwa = (PlotWithAxes) getComputations( ); final Insets insCA = pwa.getAxes( ).getInsets( ); final ScriptHandler sh = getRunTimeContext( ).getScriptHandler( ); double dLocation = ax.getAxisCoordinate( ); double dAngleInDegrees = ax.getLabel( ) .getCaption( ) .getFont( ) .getRotation( ); AutoScale sc = ax.getScale( ); IntersectionValue iv = ax.getIntersectionValue( ); int iMajorTickStyle = ax.getGrid( ).getTickStyle( IConstants.MAJOR ); int iMinorTickStyle = ax.getGrid( ).getTickStyle( IConstants.MINOR ); int iLabelLocation = ax.getLabelPosition( ); int iOrientation = ax.getOrientation( ); IDisplayServer xs = this.getDevice( ).getDisplayServer( ); double[] daEndPoints = sc.getEndPoints( ); double[] da = sc.getTickCordinates( ); double[] daMinor = sc.getMinorCoordinates( ax.getGrid( ) .getMinorCountPerMajor( ) ); String sText = null; int iDimension = pwa.getDimension( ); double dSeriesThickness = pwa.getSeriesThickness( ); final NumberDataElement nde = NumberDataElementImpl.create( 0 ); final FormatSpecifier fs = ax.getModelAxis( ).getFormatSpecifier( ); DecimalFormat df = null; LineAttributes lia = ax.getLineAttributes( ); LineAttributes liaMajorTick = ax.getGrid( ) .getTickAttributes( IConstants.MAJOR ); LineAttributes liaMinorTick = ax.getGrid( ) .getTickAttributes( IConstants.MINOR ); if ( !lia.isSetVisible( ) ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, "exception.unset.axis.visibility", //$NON-NLS-1$ ResourceBundle.getBundle( Messages.ENGINE, getRunTimeContext( ).getLocale( ) ) ); } Label la = ax.getLabel( ); final boolean bRenderAxisLabels = ( ( iWhatToDraw & IConstants.LABELS ) == IConstants.LABELS && la.isVisible( ) ); Location lo = LocationImpl.create( 0, 0 ); final TransformationEvent trae = (TransformationEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), TransformationEvent.class ); final TextRenderEvent tre = (TextRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), TextRenderEvent.class ); tre.setLabel( la ); tre.setTextPosition( iLabelLocation ); tre.setLocation( lo ); final LineRenderEvent lre = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), LineRenderEvent.class ); lre.setLineAttributes( lia ); lre.setStart( LocationImpl.create( 0, 0 ) ); lre.setEnd( LocationImpl.create( 0, 0 ) ); // Prepare 3D rendering variables. final boolean bRendering3D = iDimension == IConstants.THREE_D; final boolean bRenderOrthogonal3DAxis = ( iWhatToDraw & IConstants.ORTHOGONAL_AXIS ) == IConstants.ORTHOGONAL_AXIS && bRendering3D; final boolean bRenderBase3DAxis = ( iWhatToDraw & IConstants.BASE_AXIS ) == IConstants.BASE_AXIS && bRendering3D; final boolean bRenderAncillary3DAxis = ( iWhatToDraw & IConstants.ANCILLARY_AXIS ) == IConstants.ANCILLARY_AXIS && bRendering3D; final DeferredCache dc = getDeferredCache( ); final int axisType = ax.getAxisType( ); double[] daEndPoints3D = null; double[] da3D = null; Location3D lo3d = null; Text3DRenderEvent t3dre = null; Line3DRenderEvent l3dre = null; double dXStart = 0; double dZStart = 0; double dXEnd = 0; double dZEnd = 0; if ( iDimension == IConstants.THREE_D ) { AllAxes aax = pwa.getAxes( ); dXEnd = aax.getPrimaryBase( ).getScale( ).getNormalizedEnd( ); dZEnd = aax.getAncillaryBase( ).getScale( ).getNormalizedEnd( ); dXStart = aax.getPrimaryBase( ).getScale( ).getNormalizedStart( ); dZStart = aax.getAncillaryBase( ).getScale( ).getNormalizedStart( ); daEndPoints3D = sc.getNormalizedEndPoints( ); da3D = sc.getNormalizedTickCoordinates( ); lo3d = Location3DImpl.create( 0, 0, 0 ); t3dre = (Text3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Text3DRenderEvent.class ); t3dre.setLabel( la ); t3dre.setAction( Text3DRenderEvent.RENDER_TEXT_AT_LOCATION ); t3dre.setTextPosition( iLabelLocation ); t3dre.setLocation3D( lo3d ); l3dre = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dre.setLineAttributes( lia ); l3dre.setStart3D( Location3DImpl.create( 0, 0, 0 ) ); l3dre.setEnd3D( Location3DImpl.create( 0, 0, 0 ) ); } if ( iOrientation == IConstants.VERTICAL ) { int y; int y3d = 0; double dX = dLocation; double dZ = 0; if ( bRendering3D ) { Location3D l3d = ax.getAxisCoordinate3D( ); dX = l3d.getX( ); dZ = l3d.getZ( ); } if ( iv != null && iv.getType( ) == IntersectionValue.MAX && iDimension == IConstants.TWO_5_D ) { trae.setTransform( TransformationEvent.TRANSLATE ); trae.setTranslation( dSeriesThickness, -dSeriesThickness ); ipr.applyTransformation( trae ); } double dXTick1 = ( ( iMajorTickStyle & IConstants.TICK_LEFT ) == IConstants.TICK_LEFT ) ? ( dX - IConstants.TICK_SIZE ) : dX; double dXTick2 = ( ( iMajorTickStyle & IConstants.TICK_RIGHT ) == IConstants.TICK_RIGHT ) ? dX + IConstants.TICK_SIZE : dX; if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS && lia.isVisible( ) ) { if ( bRenderOrthogonal3DAxis ) { final double dStart = daEndPoints3D[0]; final double dEnd = daEndPoints3D[1]; l3dre.setLineAttributes( lia ); // center l3dre.setStart3D( dX, dStart, dZ ); l3dre.setEnd3D( dX, dEnd, dZ ); dc.addLine( l3dre ); // left l3dre.setStart3D( dXStart, dStart, dZEnd ); l3dre.setEnd3D( dXStart, dEnd, dZEnd ); dc.addLine( l3dre ); // right l3dre.setStart3D( dXEnd, dStart, dZStart ); l3dre.setEnd3D( dXEnd, dEnd, dZStart ); dc.addLine( l3dre ); } else { final double dStart = daEndPoints[0] + insCA.getBottom( ), dEnd = daEndPoints[1] - insCA.getTop( ); if ( iv != null && iv.getType( ) == IntersectionValue.VALUE && iDimension == IConstants.TWO_5_D ) { final Location[] loa = new Location[4]; loa[0] = LocationImpl.create( dX, dStart ); loa[1] = LocationImpl.create( dX + dSeriesThickness, dStart - dSeriesThickness ); loa[2] = LocationImpl.create( dX + dSeriesThickness, dEnd - dSeriesThickness ); loa[3] = LocationImpl.create( dX, dEnd ); final PolygonRenderEvent pre = (PolygonRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), PolygonRenderEvent.class ); pre.setPoints( loa ); pre.setBackground( ColorDefinitionImpl.create( 255, 255, 255, 127 ) ); pre.setOutline( lia ); ipr.fillPolygon( pre ); } lre.setLineAttributes( lia ); lre.getStart( ).set( dX, dStart ); lre.getEnd( ).set( dX, dEnd ); ipr.drawLine( lre ); } } if ( ( sc.getType( ) & IConstants.TEXT ) == IConstants.TEXT || sc.isCategoryScale( ) ) { double dAngleInRadians = ( -dAngleInDegrees * Math.PI ) / 180; double dSineTheta = Math.abs( Math.sin( dAngleInRadians ) ); double dCosTheta = Math.abs( Math.cos( dAngleInRadians ) ); double dOffset = 0, dW, dH, dHCosTheta; double dUnitSize = sc.getUnitSize( ); DataSetIterator dsi = sc.getData( ); final int iDateTimeUnit = ( sc.getType( ) == IConstants.DATE_TIME ) ? CDateTime.computeUnit( dsi ) : IConstants.UNDEFINED; final ITextMetrics itmText = xs.getTextMetrics( la ); if ( dAngleInDegrees == 90 || dAngleInDegrees == 0 ) { dOffset = -dUnitSize / 2; } double x = ( iLabelLocation == IConstants.LEFT ) ? dXTick1 - 1 : dXTick2 + 1; dsi.reset( ); for ( int i = 0; i < da.length - 1; i++ ) { if ( bRenderAxisLabels ) { la.getCaption( ) .setValue( sc.formatCategoryValue( sc.getType( ), dsi.next( ), iDateTimeUnit ) ); if ( sc.isTickLabelVisible( i ) ) { ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); itmText.reuse( la ); // RECYCLED dH = itmText.getFullHeight( ); dW = itmText.getFullWidth( ); dHCosTheta = dH * dCosTheta; if ( dAngleInDegrees > 0 && dAngleInDegrees < 90 ) { if ( iLabelLocation == IConstants.LEFT ) { dOffset = ( dHCosTheta + dW * dSineTheta - dUnitSize ) / 2 - dW * dSineTheta; } else if ( iLabelLocation == IConstants.RIGHT ) { dOffset = ( dHCosTheta + dW * dSineTheta - dUnitSize ) / 2 - dHCosTheta; } } else if ( dAngleInDegrees < 0 && dAngleInDegrees > -90 ) { if ( iLabelLocation == IConstants.LEFT ) { dOffset = ( dHCosTheta + dW * dSineTheta - dUnitSize ) / 2 - dHCosTheta; } else if ( iLabelLocation == IConstants.RIGHT ) { dOffset = ( dHCosTheta + dW * dSineTheta - dUnitSize ) / 2 - dW * dSineTheta; } } else if ( dAngleInDegrees == 0 || dAngleInDegrees == 90 || dAngleInDegrees == -90 ) { dOffset = -dUnitSize / 2; } } } y = (int) da[i]; if ( bRendering3D ) { y3d = (int) da3D[i]; } if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dXMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_LEFT ) == IConstants.TICK_LEFT ) ? ( dX - IConstants.TICK_SIZE ) : dX; double dXMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_RIGHT ) == IConstants.TICK_RIGHT ) ? dX + IConstants.TICK_SIZE : dX; if ( dXMinorTick1 != dXMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { if ( bRenderOrthogonal3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( dXMinorTick1, y3d + daMinor[k], dZ ) ); l3dreMinor.setEnd3D( Location3DImpl.create( dXMinorTick2, y3d + daMinor[k], dZ ) ); dc.addLine( l3dreMinor ); } } else { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( dXMinorTick1, y - daMinor[k] ) ); lreMinor.setEnd( LocationImpl.create( dXMinorTick2, y - daMinor[k] ) ); ipr.drawLine( lreMinor ); } } } } if ( dXTick1 != dXTick2 ) { if ( bRenderOrthogonal3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dXTick1, y3d, dZ ); l3dre.setEnd3D( dXTick2, y3d, dZ ); dc.addLine( l3dre ); } else { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( dXTick1, y ); lre.getEnd( ).set( dXTick2, y ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.setStart( LocationImpl.create( dX, y ) ); lre.setEnd( LocationImpl.create( dX + dSeriesThickness, y - dSeriesThickness ) ); ipr.drawLine( lre ); } } } if ( bRenderAxisLabels && sc.isTickLabelVisible( i ) ) { if ( bRendering3D ) { // Left wall lo3d.set( x, y3d + dOffset, dZEnd ); t3dre.setLocation3D( lo3d ); t3dre.setTextPosition( TextRenderEvent.LEFT ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); // Right wall lo3d.set( dXEnd, y3d + dOffset, dZ ); t3dre.setLocation3D( lo3d ); t3dre.setTextPosition( TextRenderEvent.RIGHT ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); } else { lo.set( x, y + dOffset ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); } ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } } y = (int) da[da.length - 1]; if ( bRendering3D ) { y3d = (int) da3D[da3D.length - 1]; } if ( dXTick1 != dXTick2 ) { if ( bRenderOrthogonal3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dXTick1, y3d, dZ ); l3dre.setEnd3D( dXTick2, y3d, dZ ); dc.addLine( l3dre ); } else { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( dXTick1, y ); lre.getEnd( ).set( dXTick2, y ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.setStart( LocationImpl.create( dX, y ) ); lre.setEnd( LocationImpl.create( dX + dSeriesThickness, y - dSeriesThickness ) ); ipr.drawLine( lre ); } } itmText.dispose( );// DISPOSED } else if ( ( sc.getType( ) & IConstants.LOGARITHMIC ) == IConstants.LOGARITHMIC ) { double dAxisValue = Methods.asDouble( sc.getMinimum( ) ) .doubleValue( ); final double dAxisStep = Methods.asDouble( sc.getStep( ) ) .doubleValue( ); dAxisValue = Methods.asDouble( sc.getMinimum( ) ).doubleValue( ); // RESET double x = ( iLabelLocation == IConstants.LEFT ) ? dXTick1 - 1 : dXTick2 + 1; for ( int i = 0; i < da.length; i++ ) { if ( bRenderAxisLabels ) // PERFORM COMPUTATIONS ONLY IF // AXIS LABEL IS VISIBLE { if ( fs == null ) { df = new DecimalFormat( sc.getNumericPattern( dAxisValue ) ); } nde.setValue( dAxisValue ); try { sText = ValueFormatter.format( nde, fs, ax.getRunTimeContext( ).getLocale( ), df ); } catch ( ChartException dfex ) { logger.log( dfex ); sText = IConstants.NULL_STRING; } } y = (int) da[i]; if ( bRendering3D ) { y3d = (int) da3D[i]; } if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dXMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_LEFT ) == IConstants.TICK_LEFT ) ? ( dX - IConstants.TICK_SIZE ) : dX; double dXMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_RIGHT ) == IConstants.TICK_RIGHT ) ? dX + IConstants.TICK_SIZE : dX; if ( dXMinorTick1 != dXMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { if ( bRenderOrthogonal3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( dXMinorTick1, y3d + daMinor[k], dZ ) ); l3dreMinor.setEnd3D( Location3DImpl.create( dXMinorTick2, y3d + daMinor[k], dZ ) ); dc.addLine( l3dreMinor ); } } else { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( dXMinorTick1, y - daMinor[k] ) ); lreMinor.setEnd( LocationImpl.create( dXMinorTick2, y - daMinor[k] ) ); ipr.drawLine( lreMinor ); } } } } if ( dXTick1 != dXTick2 ) { if ( bRenderOrthogonal3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dXTick1, y3d, dZ ); l3dre.setEnd3D( dXTick2, y3d, dZ ); dc.addLine( l3dre ); } else { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( dXTick1, y ); lre.getEnd( ).set( dXTick2, y ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.setLineAttributes( lia ); lre.setStart( LocationImpl.create( dX, y ) ); lre.setEnd( LocationImpl.create( dX + dSeriesThickness, y - dSeriesThickness ) ); ipr.drawLine( lre ); } } } if ( bRenderAxisLabels ) // RENDER LABELS ONLY IF // REQUESTED { ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); if ( bRendering3D ) { // Left wall lo3d.set( x, y3d, dZEnd ); la.getCaption( ).setValue( sText ); t3dre.setLocation3D( lo3d ); t3dre.setTextPosition( TextRenderEvent.LEFT ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); // Right wall lo3d.set( dXEnd, y3d, dZ ); la.getCaption( ).setValue( sText ); t3dre.setLocation3D( lo3d ); t3dre.setTextPosition( TextRenderEvent.RIGHT ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); } else { lo.set( x, y ); la.getCaption( ).setValue( sText ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); } ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } dAxisValue *= dAxisStep; } } else if ( ( sc.getType( ) & IConstants.LINEAR ) == IConstants.LINEAR ) { double dAxisValue = Methods.asDouble( sc.getMinimum( ) ) .doubleValue( ); final double dAxisStep = Methods.asDouble( sc.getStep( ) ) .doubleValue( ); if ( fs == null ) { df = new DecimalFormat( sc.getNumericPattern( ) ); } dAxisValue = Methods.asDouble( sc.getMinimum( ) ).doubleValue( ); // RESET double x = ( iLabelLocation == IConstants.LEFT ) ? dXTick1 - 1 : dXTick2 + 1; for ( int i = 0; i < da.length; i++ ) { nde.setValue( dAxisValue ); try { sText = ValueFormatter.format( nde, fs, ax.getRunTimeContext( ).getLocale( ), df ); } catch ( ChartException dfex ) { logger.log( dfex ); sText = IConstants.NULL_STRING; } y = (int) da[i]; if ( bRendering3D ) { y3d = (int) da3D[i]; } if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dXMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_LEFT ) == IConstants.TICK_LEFT ) ? ( dX - IConstants.TICK_SIZE ) : dX, dXMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_RIGHT ) == IConstants.TICK_RIGHT ) ? dX + IConstants.TICK_SIZE : dX; if ( dXMinorTick1 != dXMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { if ( bRenderOrthogonal3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( dXMinorTick1, y3d + daMinor[k], dZ ) ); l3dreMinor.setEnd3D( Location3DImpl.create( dXMinorTick2, y3d + daMinor[k], dZ ) ); dc.addLine( l3dreMinor ); } } else { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( dXMinorTick1, y - daMinor[k] ) ); lreMinor.setEnd( LocationImpl.create( dXMinorTick2, y - daMinor[k] ) ); ipr.drawLine( lreMinor ); } } } } if ( dXTick1 != dXTick2 ) { if ( bRenderOrthogonal3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dXTick1, y3d, dZ ); l3dre.setEnd3D( dXTick2, y3d, dZ ); dc.addLine( l3dre ); } else { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( dXTick1, y ); lre.getEnd( ).set( dXTick2, y ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.setLineAttributes( lia ); lre.setStart( LocationImpl.create( dX, y ) ); lre.setEnd( LocationImpl.create( dX + dSeriesThickness, y - dSeriesThickness ) ); ipr.drawLine( lre ); } } } if ( bRenderAxisLabels ) { ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); if ( bRendering3D ) { // Left wall lo3d.set( x, y3d, dZEnd ); la.getCaption( ).setValue( sText ); t3dre.setLocation3D( lo3d ); t3dre.setTextPosition( TextRenderEvent.LEFT ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); // Right wall lo3d.set( dXEnd, y3d, dZ ); la.getCaption( ).setValue( sText ); t3dre.setLocation3D( lo3d ); t3dre.setTextPosition( TextRenderEvent.RIGHT ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); } else { lo.set( x, y ); la.getCaption( ).setValue( sText ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); } ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } dAxisValue += dAxisStep; } } else if ( ( sc.getType( ) & IConstants.DATE_TIME ) == IConstants.DATE_TIME ) { CDateTime cdt, cdtAxisValue = Methods.asDateTime( sc.getMinimum( ) ); final int iUnit = Methods.asInteger( sc.getUnit( ) ); final int iStep = Methods.asInteger( sc.getStep( ) ); SimpleDateFormat sdf = null; if ( fs == null ) { sdf = new SimpleDateFormat( CDateTime.getPreferredFormat( iUnit ) ); } cdt = cdtAxisValue; double x = ( iLabelLocation == IConstants.LEFT ) ? dXTick1 - 1 : dXTick2 + 1; for ( int i = 0; i < da.length; i++ ) { try { sText = ValueFormatter.format( cdt, ax.getFormatSpecifier( ), ax.getRunTimeContext( ).getLocale( ), sdf ); } catch ( ChartException dfex ) { logger.log( dfex ); sText = IConstants.NULL_STRING; } y = (int) da[i]; if ( bRendering3D ) { y3d = (int) da3D[i]; } if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dXMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_LEFT ) == IConstants.TICK_LEFT ) ? ( dX - IConstants.TICK_SIZE ) : dX, dXMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_RIGHT ) == IConstants.TICK_RIGHT ) ? dX + IConstants.TICK_SIZE : dX; if ( dXMinorTick1 != dXMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { if ( bRenderOrthogonal3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( dXMinorTick1, y3d + daMinor[k], dZ ) ); l3dreMinor.setEnd3D( Location3DImpl.create( dXMinorTick2, y3d + daMinor[k], dZ ) ); dc.addLine( l3dreMinor ); } } else { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( dXMinorTick1, y - daMinor[k] ) ); lreMinor.setEnd( LocationImpl.create( dXMinorTick2, y - daMinor[k] ) ); ipr.drawLine( lreMinor ); } } } } if ( dXTick1 != dXTick2 ) { if ( bRenderOrthogonal3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dXTick1, y3d, dZ ); l3dre.setEnd3D( dXTick2, y3d, dZ ); dc.addLine( l3dre ); } else { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( dXTick1, y ); lre.getEnd( ).set( dXTick2, y ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.setStart( LocationImpl.create( dX, y ) ); lre.setEnd( LocationImpl.create( dX + dSeriesThickness, y - dSeriesThickness ) ); ipr.drawLine( lre ); } } } if ( bRenderAxisLabels ) { ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); if ( bRendering3D ) { // Left wall lo3d.set( x, y3d, dZEnd ); la.getCaption( ).setValue( sText ); t3dre.setLocation3D( lo3d ); t3dre.setTextPosition( TextRenderEvent.LEFT ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); // Right wall lo3d.set( dXEnd, y3d, dZ ); la.getCaption( ).setValue( sText ); t3dre.setLocation3D( lo3d ); t3dre.setTextPosition( TextRenderEvent.RIGHT ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); } else { lo.set( x, y ); la.getCaption( ).setValue( sText ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); } ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } cdt = cdtAxisValue.forward( iUnit, iStep * ( i + 1 ) ); // ALWAYS // W.R.T // START // VALUE } } la = ax.getTitle( ); // TEMPORARILY USE FOR AXIS TITLE if ( la.isVisible( ) && bRenderAxisLabels ) { ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_TITLE, axModel, la ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_TITLE, la ); final String sRestoreValue = la.getCaption( ).getValue( ); la.getCaption( ) .setValue( rtc.externalizedMessage( sRestoreValue ) ); BoundingBox bb = null; try { bb = Methods.computeBox( xs, ax.getTitlePosition( ), la, 0, 0 ); } catch ( IllegalArgumentException uiex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, uiex ); } if ( bRendering3D ) { Bounds cbo = getPlotBounds( ); tre.setBlockBounds( BoundsImpl.create( cbo.getLeft( ) + ( cbo.getWidth( ) / 3d - bb.getWidth( ) ) / 2d, cbo.getTop( ) + 30, bb.getWidth( ), bb.getHeight( ) ) ); tre.setLabel( la ); tre.setBlockAlignment( null ); tre.setAction( TextRenderEvent.RENDER_TEXT_IN_BLOCK ); ipr.drawText( tre ); tre.setBlockBounds( BoundsImpl.create( cbo.getLeft( ) + cbo.getWidth( ) - bb.getWidth( ), cbo.getTop( ) + 30 * 2, bb.getWidth( ), bb.getHeight( ) ) ); ipr.drawText( tre ); } else { final Bounds bo = BoundsImpl.create( ax.getTitleCoordinate( ), daEndPoints[1], bb.getWidth( ), daEndPoints[0] - daEndPoints[1] ); tre.setBlockBounds( bo ); tre.setLabel( la ); tre.setBlockAlignment( null ); tre.setAction( TextRenderEvent.RENDER_TEXT_IN_BLOCK ); ipr.drawText( tre ); } la.getCaption( ).setValue( sRestoreValue ); ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_TITLE, axModel, la ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_TITLE, la ); } la = ax.getLabel( ); if ( iv != null && iv.getType( ) == IntersectionValue.MAX && iDimension == IConstants.TWO_5_D ) { trae.setTranslation( -dSeriesThickness, dSeriesThickness ); ipr.applyTransformation( trae ); } } else if ( iOrientation == IConstants.HORIZONTAL ) { int x; int x3d = 0; int z3d = 0; double dY = dLocation; double dX = 0; double dZ = 0; if ( bRendering3D ) { Location3D l3d = ax.getAxisCoordinate3D( ); dX = l3d.getX( ); dY = l3d.getY( ); dZ = l3d.getZ( ); } double dYTick1 = ( ( iMajorTickStyle & IConstants.TICK_ABOVE ) == IConstants.TICK_ABOVE ) ? ( dY - IConstants.TICK_SIZE ) : dY; double dYTick2 = ( ( iMajorTickStyle & IConstants.TICK_BELOW ) == IConstants.TICK_BELOW ) ? dY + IConstants.TICK_SIZE : dY; if ( iv != null && iv.getType( ) == IntersectionValue.MAX && iDimension == IConstants.TWO_5_D ) { trae.setTransform( TransformationEvent.TRANSLATE ); trae.setTranslation( dSeriesThickness, -dSeriesThickness ); ipr.applyTransformation( trae ); } if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS && lia.isVisible( ) ) { if ( bRenderBase3DAxis ) { final double dStart = daEndPoints3D[0]; final double dEnd = daEndPoints3D[1]; l3dre.setLineAttributes( lia ); l3dre.setStart3D( dStart, dY, dZ ); l3dre.setEnd3D( dEnd, dY, dZ ); dc.addLine( l3dre ); } else if ( bRenderAncillary3DAxis ) { final double dStart = daEndPoints3D[0]; final double dEnd = daEndPoints3D[1]; l3dre.setLineAttributes( lia ); l3dre.setStart3D( dX, dY, dStart ); l3dre.setEnd3D( dX, dY, dEnd ); dc.addLine( l3dre ); } else { final double dStart = daEndPoints[0] - insCA.getLeft( ), dEnd = daEndPoints[1] + insCA.getRight( ); if ( iv != null && iv.getType( ) == IntersectionValue.VALUE && iDimension == IConstants.TWO_5_D ) { // Zero plane. final Location[] loa = new Location[4]; loa[0] = LocationImpl.create( dStart, dY ); loa[1] = LocationImpl.create( dStart + dSeriesThickness, dY - dSeriesThickness ); loa[2] = LocationImpl.create( dEnd + dSeriesThickness, dY - dSeriesThickness ); loa[3] = LocationImpl.create( dEnd, dY ); final PolygonRenderEvent pre = (PolygonRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), PolygonRenderEvent.class ); pre.setPoints( loa ); pre.setBackground( ColorDefinitionImpl.create( 255, 255, 255, 127 ) ); pre.setOutline( lia ); ipr.fillPolygon( pre ); } lre.setLineAttributes( lia ); lre.getStart( ).set( dStart, dY ); lre.getEnd( ).set( dEnd, dY ); ipr.drawLine( lre ); } } if ( ( sc.getType( ) & IConstants.TEXT ) == IConstants.TEXT || sc.isCategoryScale( ) ) { double dAngleInRadians = ( -dAngleInDegrees * Math.PI ) / 180; double dSineTheta = Math.abs( Math.sin( dAngleInRadians ) ); double dCosTheta = Math.abs( Math.cos( dAngleInRadians ) ); double dOffset = 0, dW, dH, dHSineTheta; double dUnitSize = sc.getUnitSize( ); DataSetIterator dsi = sc.getData( ); final int iDateTimeUnit = ( sc.getType( ) == IConstants.DATE_TIME ) ? CDateTime.computeUnit( dsi ) : IConstants.UNDEFINED; final ITextMetrics itmText = xs.getTextMetrics( la ); if ( dAngleInDegrees == 90 || dAngleInDegrees == 0 ) { dOffset = dUnitSize / 2; } double y = ( iLabelLocation == IConstants.ABOVE ) ? dYTick1 - 1 : dYTick2 + 1; dsi.reset( ); for ( int i = 0; i < da.length - 1; i++ ) { x = (int) da[i]; if ( bRendering3D ) { x3d = (int) da3D[i]; z3d = (int) da3D[i]; } if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dYMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_ABOVE ) == IConstants.TICK_ABOVE ) ? ( dY - IConstants.TICK_SIZE ) : dY, dYMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_BELOW ) == IConstants.TICK_BELOW ) ? dY + IConstants.TICK_SIZE : dY; if ( dYMinorTick1 != -dYMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { if ( bRenderBase3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( x3d + daMinor[k], dYMinorTick1, dZ ) ); l3dreMinor.setEnd3D( Location3DImpl.create( x3d + daMinor[k], dYMinorTick2, dZ ) ); dc.addLine( l3dreMinor ); } } else if ( bRenderAncillary3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( dX, dYMinorTick1, z3d + daMinor[k] ) ); l3dreMinor.setEnd3D( Location3DImpl.create( dX, dYMinorTick2, z3d + daMinor[k] ) ); dc.addLine( l3dreMinor ); } } else { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( x + daMinor[k], dYMinorTick1 ) ); lreMinor.setEnd( LocationImpl.create( x + daMinor[k], dYMinorTick2 ) ); ipr.drawLine( lreMinor ); } } } } if ( dYTick1 != dYTick2 ) { if ( bRenderBase3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( x3d, dYTick1, dZ ); l3dre.setEnd3D( x3d, dYTick2, dZ ); dc.addLine( l3dre ); } else if ( bRenderAncillary3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dX, dYTick1, z3d ); l3dre.setEnd3D( dX, dYTick2, z3d ); dc.addLine( l3dre ); } else { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( x, dYTick1 ); lre.getEnd( ).set( x, dYTick2 ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.getStart( ).set( x, dY ); lre.getEnd( ).set( x + dSeriesThickness, dY - dSeriesThickness ); ipr.drawLine( lre ); } } } if ( bRenderAxisLabels ) { la.getCaption( ) .setValue( sc.formatCategoryValue( sc.getType( ), dsi.next( ), // step to next value. iDateTimeUnit ) ); if ( sc.isTickLabelVisible( i ) ) { ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); itmText.reuse( la );// RECYCLED dH = itmText.getFullHeight( ); dW = itmText.getFullWidth( ); dHSineTheta = dH * dSineTheta; if ( dAngleInDegrees > 0 && dAngleInDegrees < 90 ) { if ( iLabelLocation == IConstants.ABOVE ) { dOffset = dUnitSize / 2 - ( dW * dCosTheta + dHSineTheta ) / 2 + dHSineTheta; } else if ( iLabelLocation == IConstants.BELOW ) { dOffset = dUnitSize + dHSineTheta - ( dUnitSize - dW * dCosTheta + dHSineTheta ) / 2 - dHSineTheta; } } else if ( dAngleInDegrees < 0 && dAngleInDegrees > -90 ) { if ( iLabelLocation == IConstants.ABOVE ) { dOffset = dUnitSize / 2 - dHSineTheta / 2 + ( dW * dCosTheta + dHSineTheta ) / 2; } else if ( iLabelLocation == IConstants.BELOW ) { dOffset = ( dUnitSize - dW * dCosTheta + dHSineTheta ) / 2; } } else if ( dAngleInDegrees == 0 || dAngleInDegrees == 90 || dAngleInDegrees == -90 ) { dOffset = dUnitSize / 2; } if ( bRendering3D ) { if ( axisType == IConstants.BASE_AXIS ) { lo3d.set( x3d + dOffset, y, dZEnd ); } else { lo3d.set( dXEnd, y, z3d + dOffset ); } t3dre.setLocation3D( lo3d ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); } else { lo.set( x + dOffset, y ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); } ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } } } // ONE LAST TICK x = (int) da[da.length - 1]; if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { if ( dYTick1 != dYTick2 ) { if ( bRenderBase3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( x3d, dYTick1, dZ ); l3dre.setEnd3D( x3d, dYTick2, dZ ); dc.addLine( l3dre ); } else if ( bRenderAncillary3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dX, dYTick1, z3d ); l3dre.setEnd3D( dX, dYTick2, z3d ); dc.addLine( l3dre ); } else { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( x, dYTick1 ); lre.getEnd( ).set( x, dYTick2 ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.getStart( ).set( x, dY ); lre.getEnd( ).set( x + dSeriesThickness, dY - dSeriesThickness ); ipr.drawLine( lre ); } } } itmText.dispose( ); // DISPOSED } else if ( ( sc.getType( ) & IConstants.LINEAR ) == IConstants.LINEAR ) { double dAxisValue = Methods.asDouble( sc.getMinimum( ) ) .doubleValue( ); final double dAxisStep = Methods.asDouble( sc.getStep( ) ) .doubleValue( ); if ( fs == null ) { df = new DecimalFormat( sc.getNumericPattern( ) ); } dAxisValue = Methods.asDouble( sc.getMinimum( ) ).doubleValue( ); // RESET double y = ( iLabelLocation == IConstants.ABOVE ) ? dYTick1 - 1 : dYTick2 + 1; for ( int i = 0; i < da.length; i++ ) { x = (int) da[i]; if ( bRendering3D ) { x3d = (int) da3D[i]; z3d = (int) da3D[i]; } if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dYMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_ABOVE ) == IConstants.TICK_ABOVE ) ? ( dY - IConstants.TICK_SIZE ) : dY, dYMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_BELOW ) == IConstants.TICK_BELOW ) ? dY + IConstants.TICK_SIZE : dY; if ( dYMinorTick1 != -dYMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { if ( bRenderBase3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( x3d + daMinor[k], dYMinorTick1, dZ ) ); l3dreMinor.setEnd3D( Location3DImpl.create( x3d + daMinor[k], dYMinorTick2, dZ ) ); dc.addLine( l3dreMinor ); } } else if ( bRenderAncillary3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( dX, dYMinorTick1, z3d + daMinor[k] ) ); l3dreMinor.setEnd3D( Location3DImpl.create( dX, dYMinorTick2, z3d + daMinor[k] ) ); dc.addLine( l3dreMinor ); } } else { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( x + daMinor[k], dYMinorTick1 ) ); lreMinor.setEnd( LocationImpl.create( x + daMinor[k], dYMinorTick2 ) ); ipr.drawLine( lreMinor ); } } } } if ( dYTick1 != dYTick2 ) { if ( bRenderBase3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( x3d, dYTick1, dZ ); l3dre.setEnd3D( x3d, dYTick2, dZ ); dc.addLine( l3dre ); } else if ( bRenderAncillary3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dX, dYTick1, z3d ); l3dre.setEnd3D( dX, dYTick2, z3d ); dc.addLine( l3dre ); } else { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( x, dYTick1 ); lre.getEnd( ).set( x, dYTick2 ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.getStart( ).set( x, dY ); lre.getEnd( ).set( x + dSeriesThickness, dY - dSeriesThickness ); ipr.drawLine( lre ); } } } if ( bRenderAxisLabels ) // OPTIMIZED: ONLY PROCESS IF // AXES // LABELS ARE VISIBLE OR REQUESTED // FOR { nde.setValue( dAxisValue ); try { sText = ValueFormatter.format( nde, ax.getFormatSpecifier( ), ax.getRunTimeContext( ).getLocale( ), df ); } catch ( ChartException dfex ) { logger.log( dfex ); sText = IConstants.NULL_STRING; } ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); if ( bRendering3D ) { if ( axisType == IConstants.BASE_AXIS ) { lo3d.set( x3d, y, dZEnd ); } else { lo3d.set( dXEnd, y, z3d ); } la.getCaption( ).setValue( sText ); t3dre.setLocation3D( lo3d ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); } else { lo.set( x, y ); la.getCaption( ).setValue( sText ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); } ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } dAxisValue += dAxisStep; } } else if ( ( sc.getType( ) & IConstants.LOGARITHMIC ) == IConstants.LOGARITHMIC ) { double dAxisValue = Methods.asDouble( sc.getMinimum( ) ) .doubleValue( ); final double dAxisStep = Methods.asDouble( sc.getStep( ) ) .doubleValue( ); dAxisValue = Methods.asDouble( sc.getMinimum( ) ).doubleValue( ); // RESET double y = ( iLabelLocation == IConstants.ABOVE ) ? dYTick1 - 1 : dYTick2 + 1; for ( int i = 0; i < da.length; i++ ) { x = (int) da[i]; if ( bRendering3D ) { x3d = (int) da3D[i]; z3d = (int) da3D[i]; } if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dYMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_ABOVE ) == IConstants.TICK_ABOVE ) ? ( dY - IConstants.TICK_SIZE ) : dY, dYMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_BELOW ) == IConstants.TICK_BELOW ) ? dY + IConstants.TICK_SIZE : dY; if ( dYMinorTick1 != -dYMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { if ( bRenderBase3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( x3d + daMinor[k], dYMinorTick1, dZ ) ); l3dreMinor.setEnd3D( Location3DImpl.create( x3d + daMinor[k], dYMinorTick2, dZ ) ); dc.addLine( l3dreMinor ); } } else if ( bRenderAncillary3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( dX, dYMinorTick1, z3d + daMinor[k] ) ); l3dreMinor.setEnd3D( Location3DImpl.create( dX, dYMinorTick2, z3d + daMinor[k] ) ); dc.addLine( l3dreMinor ); } } else { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( x + daMinor[k], dYMinorTick1 ) ); lreMinor.setEnd( LocationImpl.create( x + daMinor[k], dYMinorTick2 ) ); ipr.drawLine( lreMinor ); } } } } if ( dYTick1 != dYTick2 ) { if ( bRenderBase3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( x3d, dYTick1, dZ ); l3dre.setEnd3D( x3d, dYTick2, dZ ); dc.addLine( l3dre ); } else if ( bRenderAncillary3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dX, dYTick1, z3d ); l3dre.setEnd3D( dX, dYTick2, z3d ); dc.addLine( l3dre ); } else { lre.setLineAttributes( lia ); lre.getStart( ).set( x, dYTick1 ); lre.getEnd( ).set( x, dYTick2 ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.getStart( ).set( x, dY ); lre.getEnd( ).set( x + dSeriesThickness, dY - dSeriesThickness ); ipr.drawLine( lre ); } } } if ( bRenderAxisLabels ) // OPTIMIZED: ONLY PROCESS IF // AXES // LABELS ARE VISIBLE OR REQUESTED // FOR { if ( fs == null ) { df = new DecimalFormat( sc.getNumericPattern( dAxisValue ) ); } nde.setValue( dAxisValue ); try { sText = ValueFormatter.format( nde, ax.getFormatSpecifier( ), ax.getRunTimeContext( ).getLocale( ), df ); } catch ( ChartException dfex ) { logger.log( dfex ); sText = IConstants.NULL_STRING; } ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); if ( bRendering3D ) { if ( axisType == IConstants.BASE_AXIS ) { lo3d.set( x3d, y, dZEnd ); } else { lo3d.set( dXEnd, y, z3d ); } la.getCaption( ).setValue( sText ); t3dre.setLocation3D( lo3d ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); } else { lo.set( x, y ); la.getCaption( ).setValue( sText ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); } ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } dAxisValue *= dAxisStep; } } else if ( ( sc.getType( ) & IConstants.DATE_TIME ) == IConstants.DATE_TIME ) { CDateTime cdt, cdtAxisValue = Methods.asDateTime( sc.getMinimum( ) ); final int iUnit = Methods.asInteger( sc.getUnit( ) ); final int iStep = Methods.asInteger( sc.getStep( ) ); SimpleDateFormat sdf = null; if ( fs == null ) { sdf = new SimpleDateFormat( CDateTime.getPreferredFormat( iUnit ) ); } cdt = cdtAxisValue; double y = ( iLabelLocation == IConstants.ABOVE ) ? dYTick1 - 1 : dYTick2 + 1; for ( int i = 0; i < da.length; i++ ) { x = (int) da[i]; if ( bRendering3D ) { x3d = (int) da3D[i]; z3d = (int) da3D[i]; } if ( ( iWhatToDraw & IConstants.AXIS ) == IConstants.AXIS ) { double dYMinorTick1 = ( ( iMinorTickStyle & IConstants.TICK_ABOVE ) == IConstants.TICK_ABOVE ) ? ( dY - IConstants.TICK_SIZE ) : dY, dYMinorTick2 = ( ( iMinorTickStyle & IConstants.TICK_BELOW ) == IConstants.TICK_BELOW ) ? dY + IConstants.TICK_SIZE : dY; if ( dYMinorTick1 != -dYMinorTick2 ) { // RENDER THE MINOR TICKS FIRST (For ALL but the // last Major tick) if ( i != da.length - 1 ) { if ( bRenderBase3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( x3d + daMinor[k], dYMinorTick1, dZ ) ); l3dreMinor.setEnd3D( Location3DImpl.create( x3d + daMinor[k], dYMinorTick2, dZ ) ); dc.addLine( l3dreMinor ); } } else if ( bRenderAncillary3DAxis ) { Line3DRenderEvent l3dreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { l3dreMinor = (Line3DRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), Line3DRenderEvent.class ); l3dreMinor.setLineAttributes( liaMinorTick ); l3dreMinor.setStart3D( Location3DImpl.create( dX, dYMinorTick1, z3d + daMinor[k] ) ); l3dreMinor.setEnd3D( Location3DImpl.create( dX, dYMinorTick2, z3d + daMinor[k] ) ); dc.addLine( l3dreMinor ); } } else { LineRenderEvent lreMinor = null; for ( int k = 0; k < daMinor.length - 1; k++ ) { lreMinor = (LineRenderEvent) ( (EventObjectCache) ipr ).getEventObject( StructureSource.createAxis( axModel ), LineRenderEvent.class ); lreMinor.setLineAttributes( liaMinorTick ); lreMinor.setStart( LocationImpl.create( x + daMinor[k], dYMinorTick1 ) ); lreMinor.setEnd( LocationImpl.create( x + daMinor[k], dYMinorTick2 ) ); ipr.drawLine( lreMinor ); } } } } if ( dYTick1 != dYTick2 ) { if ( bRenderBase3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( x3d, dYTick1, dZ ); l3dre.setEnd3D( x3d, dYTick2, dZ ); dc.addLine( l3dre ); } else if ( bRenderAncillary3DAxis ) { l3dre.setLineAttributes( liaMajorTick ); l3dre.setStart3D( dX, dYTick1, z3d ); l3dre.setEnd3D( dX, dYTick2, z3d ); dc.addLine( l3dre ); } else { lre.setLineAttributes( liaMajorTick ); lre.getStart( ).set( x, dYTick1 ); lre.getEnd( ).set( x, dYTick2 ); ipr.drawLine( lre ); } if ( iv != null && iDimension == IConstants.TWO_5_D && iv.getType( ) == IntersectionValue.VALUE ) { lre.getStart( ).set( x, dY ); lre.getEnd( ).set( x + dSeriesThickness, dY - dSeriesThickness ); ipr.drawLine( lre ); } } } if ( bRenderAxisLabels ) // OPTIMIZED: ONLY PROCESS IF // AXES // LABELS ARE VISIBLE OR REQUESTED // FOR { try { sText = ValueFormatter.format( cdt, ax.getFormatSpecifier( ), ax.getRunTimeContext( ).getLocale( ), sdf ); } catch ( ChartException dfex ) { logger.log( dfex ); sText = IConstants.NULL_STRING; } ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_LABEL, axModel, la ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_LABEL, la ); if ( bRendering3D ) { if ( axisType == IConstants.BASE_AXIS ) { lo3d.set( x3d, y, dZEnd ); } else { lo3d.set( dXEnd, y, z3d ); } la.getCaption( ).setValue( sText ); t3dre.setLocation3D( lo3d ); t3dre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); dc.addLabel( t3dre ); } else { lo.set( x, y ); la.getCaption( ).setValue( sText ); tre.setAction( TextRenderEvent.RENDER_TEXT_AT_LOCATION ); ipr.drawText( tre ); } ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_LABEL, axModel, la ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_LABEL, la ); } cdt = cdtAxisValue.forward( iUnit, iStep * ( i + 1 ) ); // ALWAYS // W.R.T // START // VALUE } } // RENDER THE AXIS TITLE la = ax.getTitle( ); // TEMPORARILY USE FOR AXIS TITLE if ( la.isVisible( ) && bRenderAxisLabels ) { ScriptHandler.callFunction( sh, ScriptHandler.BEFORE_DRAW_AXIS_TITLE, axModel, la ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.BEFORE_DRAW_AXIS_TITLE, la ); final String sRestoreValue = la.getCaption( ).getValue( ); la.getCaption( ) .setValue( rtc.externalizedMessage( sRestoreValue ) ); // EXTERNALIZE BoundingBox bb = null; try { bb = Methods.computeBox( xs, ax.getTitlePosition( ), la, 0, 0 ); } catch ( IllegalArgumentException uiex ) { throw new ChartException( ChartEnginePlugin.ID, ChartException.RENDERING, uiex ); } if ( bRendering3D ) { Bounds cbo = getPlotBounds( ); if ( axisType == IConstants.BASE_AXIS ) { tre.setBlockBounds( BoundsImpl.create( cbo.getLeft( ) + ( cbo.getWidth( ) / 3d - bb.getWidth( ) ), cbo.getTop( ) + cbo.getHeight( ) - Math.min( bb.getHeight( ), bb.getWidth( ) ) - 30, bb.getWidth( ), bb.getHeight( ) ) ); } else { tre.setBlockBounds( BoundsImpl.create( cbo.getLeft( ) + cbo.getWidth( ) * 2 / 3d + ( cbo.getWidth( ) / 3d - bb.getWidth( ) ) / 2d, cbo.getTop( ) + cbo.getHeight( ) - Math.min( bb.getHeight( ), bb.getWidth( ) ) - 30 * 2, bb.getWidth( ), bb.getHeight( ) ) ); } tre.setLabel( la ); tre.setBlockAlignment( null ); tre.setAction( TextRenderEvent.RENDER_TEXT_IN_BLOCK ); ipr.drawText( tre ); } else { final Bounds bo = BoundsImpl.create( daEndPoints[0], ax.getTitleCoordinate( ), daEndPoints[1] - daEndPoints[0], bb.getHeight( ) ); tre.setBlockBounds( bo ); tre.setLabel( la ); tre.setBlockAlignment( null ); tre.setAction( TextRenderEvent.RENDER_TEXT_IN_BLOCK ); ipr.drawText( tre ); } la.getCaption( ).setValue( sRestoreValue ); // RESTORE ScriptHandler.callFunction( sh, ScriptHandler.AFTER_DRAW_AXIS_TITLE, axModel, la ); getRunTimeContext( ).notifyStructureChange( IStructureDefinitionListener.AFTER_DRAW_AXIS_TITLE, la ); } la = ax.getLabel( ); // RESTORE BACK TO AXIS LABEL if ( iv != null && iv.getType( ) == IntersectionValue.MAX && iDimension == IConstants.TWO_5_D ) { trae.setTranslation( -dSeriesThickness, dSeriesThickness ); ipr.applyTransformation( trae ); } } } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/80924662e5927eac5b3e28e6cc9516f0ee88c721/AxesRenderer.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/render/AxesRenderer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
1743,
3442,
6558,
12,
467,
9840,
6747,
277,
683,
16,
15211,
886,
16,
1082,
202,
3335,
6558,
1740,
16,
509,
277,
23801,
774,
6493,
262,
1216,
14804,
503,
202,
95,
202,
202,
6385,
1939,
950,
1042,
436,
5111,
273,
336,
1997,
950,
1042,
12,
11272,
202,
202,
6385,
15509,
1740,
1488,
273,
1740,
18,
588,
1488,
6558,
12,
11272,
202,
202,
6385,
15211,
1190,
26494,
8772,
69,
273,
261,
11532,
1190,
26494,
13,
336,
7703,
1012,
12,
11272,
202,
202,
6385,
22300,
2763,
3587,
273,
8772,
69,
18,
588,
26494,
12,
262,
18,
588,
382,
4424,
12,
11272,
202,
202,
6385,
7739,
1503,
699,
273,
336,
1997,
950,
1042,
12,
262,
18,
588,
3651,
1503,
12,
11272,
202,
202,
9056,
302,
2735,
273,
1740,
18,
588,
6558,
13503,
12,
11272,
202,
202,
9056,
302,
8467,
382,
24400,
273,
1740,
18,
588,
2224,
12,
262,
9506,
202,
18,
588,
21158,
12,
262,
9506,
202,
18,
588,
5711,
12,
262,
9506,
202,
18,
588,
14032,
12,
11272,
202,
202,
4965,
5587,
888,
273,
1740,
18,
588,
5587,
12,
11272,
202,
202,
23634,
620,
4674,
273,
1740,
18,
588,
23634,
620,
12,
11272,
202,
202,
474,
277,
17581,
6264,
2885,
273,
1740,
18,
588,
6313,
12,
262,
18,
588,
6264,
2885,
12,
467,
2918,
18,
26976,
916,
11272,
202,
202,
474,
277,
19549,
6264,
2885,
273,
1740,
18,
588,
6313,
12,
262,
18,
588,
6264,
2885,
12,
467,
2918,
18,
6236,
916,
11272,
202,
202,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
1743,
3442,
6558,
12,
467,
9840,
6747,
277,
683,
16,
15211,
886,
16,
1082,
202,
3335,
6558,
1740,
16,
509,
277,
23801,
774,
6493,
262,
1216,
14804,
503,
202,
95,
202,
202,
6385,
1939,
950,
1042,
436,
5111,
273,
336,
1997,
950,
1042,
12,
11272,
202,
202,
6385,
15509,
1740,
1488,
273,
1740,
18,
588,
1488,
6558,
12,
11272,
202,
202,
6385,
15211,
1190,
26494,
8772,
69,
273,
261,
11532,
1190,
26494,
13,
336,
7703,
1012,
12,
11272,
202,
202,
6385,
22300,
2763,
3587,
273,
8772,
69,
18,
588,
26494,
12,
262,
18,
588,
382,
4424,
12,
11272,
202,
202,
6385,
7739,
1503,
699,
273,
336,
1997,
950,
1042,
12,
262,
18,
588,
3651,
2
] |
System.err.println("!!! Destroyed OpenGL context " + hglrc); | System.err.println(getThreadName() + ": !!! Destroyed OpenGL context " + hglrc); | protected void destroyImpl() throws GLException { if (hglrc != 0) { if (!WGL.wglDeleteContext(hglrc)) { throw new GLException("Unable to delete OpenGL context"); } if (DEBUG) { System.err.println("!!! Destroyed OpenGL context " + hglrc); } hglrc = 0; } } | 47282 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47282/7f0f3e8038d45b41796892d9ee7a59fb03fcbcb9/WindowsGLContext.java/clean/src/net/java/games/jogl/impl/windows/WindowsGLContext.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
5546,
2828,
1435,
1216,
10252,
503,
288,
565,
309,
261,
76,
7043,
1310,
480,
374,
13,
288,
1377,
309,
16051,
59,
11261,
18,
91,
7043,
2613,
1042,
12,
76,
7043,
1310,
3719,
288,
3639,
604,
394,
10252,
503,
2932,
3370,
358,
1430,
3502,
11261,
819,
8863,
1377,
289,
1377,
309,
261,
9394,
13,
288,
3639,
2332,
18,
370,
18,
8222,
12,
588,
3830,
461,
1435,
397,
6398,
401,
8548,
15701,
329,
3502,
11261,
819,
315,
397,
366,
7043,
1310,
1769,
1377,
289,
1377,
366,
7043,
1310,
273,
374,
31,
565,
289,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
5546,
2828,
1435,
1216,
10252,
503,
288,
565,
309,
261,
76,
7043,
1310,
480,
374,
13,
288,
1377,
309,
16051,
59,
11261,
18,
91,
7043,
2613,
1042,
12,
76,
7043,
1310,
3719,
288,
3639,
604,
394,
10252,
503,
2932,
3370,
358,
1430,
3502,
11261,
819,
8863,
1377,
289,
1377,
309,
261,
9394,
13,
288,
3639,
2332,
18,
370,
18,
8222,
12,
588,
3830,
461,
1435,
397,
6398,
401,
8548,
15701,
329,
3502,
11261,
819,
315,
397,
366,
7043,
1310,
1769,
1377,
289,
1377,
366,
7043,
1310,
273,
374,
31,
565,
289,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
CorrelatorDaoImpl corr = new CorrelatorDaoImpl(correlator); _correlators.put(corr.getCorrelatorId(), corr); } | CorrelatorDaoImpl corr = new CorrelatorDaoImpl(correlator); _correlators.put(corr.getCorrelatorId(), corr); } | public void addCorrelator(String correlator) { CorrelatorDaoImpl corr = new CorrelatorDaoImpl(correlator); _correlators.put(corr.getCorrelatorId(), corr); } | 47044 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47044/40604da2488c0e0e9de3a307e5a05bd456b9a02a/ProcessDaoImpl.java/clean/bpel-runtime/src/main/java/org/apache/ode/bpel/memdao/ProcessDaoImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
527,
6217,
2878,
639,
12,
780,
1858,
2878,
639,
13,
288,
565,
9557,
2878,
639,
11412,
2828,
19480,
273,
394,
9557,
2878,
639,
11412,
2828,
12,
3850,
2878,
639,
1769,
565,
389,
3850,
2878,
3062,
18,
458,
12,
17515,
18,
588,
6217,
2878,
639,
548,
9334,
19480,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
527,
6217,
2878,
639,
12,
780,
1858,
2878,
639,
13,
288,
565,
9557,
2878,
639,
11412,
2828,
19480,
273,
394,
9557,
2878,
639,
11412,
2828,
12,
3850,
2878,
639,
1769,
565,
389,
3850,
2878,
3062,
18,
458,
12,
17515,
18,
588,
6217,
2878,
639,
548,
9334,
19480,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if(pos < end) { return namespaceUri[ newpos ]; } else { | if(pos >= end) { | public String getNamespaceURI(int pos) { if (!isElementEvent(eventType)) { throwIllegalState(new int[] { START_ELEMENT, END_ELEMENT }); } int currentDepth = depth; int end = getNamespaceCount(currentDepth); //eventType == XMLStreamConstants.END_ELEMENT ? elNamespaceCount[ depth + 1 ] : namespaceEnd; int newpos = pos + elNamespaceCount[currentDepth-1]; if(pos < end) { return namespaceUri[ newpos ]; } else { throw new ArrayIndexOutOfBoundsException( "position "+pos+" exceedded number of available namespaces "+end); } } | 2047 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2047/12d883b0d45385ab71d167bd74d2c04d0ccd7c2f/MXParser.java/buggy/dev/src/com/bea/xml/stream/MXParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
11153,
3098,
12,
474,
949,
13,
565,
288,
3639,
309,
16051,
291,
1046,
1133,
12,
2575,
559,
3719,
288,
5411,
604,
12195,
1119,
12,
2704,
509,
8526,
288,
10485,
67,
10976,
16,
7273,
67,
10976,
15549,
3639,
289,
3639,
509,
783,
6148,
273,
3598,
31,
3639,
509,
679,
273,
11153,
1380,
12,
2972,
6148,
1769,
368,
2575,
559,
422,
15595,
2918,
18,
4415,
67,
10976,
692,
415,
3402,
1380,
63,
3598,
397,
404,
308,
294,
1981,
1638,
31,
3639,
509,
394,
917,
273,
949,
397,
415,
3402,
1380,
63,
2972,
6148,
17,
21,
15533,
3639,
309,
12,
917,
411,
679,
13,
288,
5411,
327,
1981,
3006,
63,
394,
917,
308,
31,
3639,
289,
469,
288,
5411,
604,
394,
1510,
30548,
12,
7734,
315,
3276,
13773,
917,
9078,
9943,
785,
1300,
434,
2319,
7728,
13773,
409,
1769,
3639,
289,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
11153,
3098,
12,
474,
949,
13,
565,
288,
3639,
309,
16051,
291,
1046,
1133,
12,
2575,
559,
3719,
288,
5411,
604,
12195,
1119,
12,
2704,
509,
8526,
288,
10485,
67,
10976,
16,
7273,
67,
10976,
15549,
3639,
289,
3639,
509,
783,
6148,
273,
3598,
31,
3639,
509,
679,
273,
11153,
1380,
12,
2972,
6148,
1769,
368,
2575,
559,
422,
15595,
2918,
18,
4415,
67,
10976,
692,
415,
3402,
1380,
63,
3598,
397,
404,
308,
294,
1981,
1638,
31,
3639,
509,
394,
917,
273,
949,
397,
415,
3402,
1380,
63,
2972,
6148,
17,
21,
15533,
3639,
309,
12,
917,
411,
679,
13,
288,
5411,
327,
1981,
3006,
63,
394,
917,
308,
31,
3639,
289,
469,
288,
5411,
2
] |
context.operands.push(new Float(1.0f)); | if(!PAContext.IgnoreUnknownCommands) context.operands.push(new Double(1.0f)); | protected HashMap constructSystemDict() { HashMap systemDict = new HashMap(); // newpath systemDict.put("newpath", new PACommand() { public void execute(PAContext context) throws PainterException { context.pencil.newpath(); } }); // moveto systemDict.put("moveto", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(2); context.pencil.moveto(data[0], data[1]); } }); // rmoveto systemDict.put("rmoveto", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(2); context.pencil.rmoveto(data[0], data[1]); } }); // lineto systemDict.put("lineto", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(2); context.pencil.lineto(data[0], data[1]); } }); // rlineto systemDict.put("rlineto", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(2); context.pencil.rlineto(data[0], data[1]); } }); // arc systemDict.put("arc", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(5); context.pencil.arc(data[0], data[1], data[2], data[3], data[4]); } }); // arcn systemDict.put("arcn", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(5); context.pencil.arcn(data[0], data[1], data[2], data[3], data[4]); } }); // curveto systemDict.put("curveto", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(6); context.pencil.curveto(data[0], data[1], data[2], data[3], data[4], data[5]); } }); // rcurveto systemDict.put("rcurveto", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(6); context.pencil.rcurveto(data[0], data[1], data[2], data[3], data[4], data[5]); } }); // closepath systemDict.put("closepath", new PACommand() { public void execute(PAContext context) throws PainterException { context.pencil.closepath(); } }); // gsave systemDict.put("gsave", new PACommand() { public void execute(PAContext context) throws PainterException { context.pencil.gsave(); } }); // grestore systemDict.put("grestore", new PACommand() { public void execute(PAContext context) throws PainterException { context.pencil.grestore(); } }); // translate systemDict.put("translate", new PACommand() { public void execute(PAContext context) throws PainterException { if (context.peekOperand() instanceof Number) { double data[]; AffineTransform at = new AffineTransform(); AffineTransform ctm = context.pencil.graphics.getTransform(); data = context.popNumberOperands(2); at.translate(data[0], data[1]); ctm.concatenate(at); context.pencil.graphics.setTransform(ctm); } else { Object data[]; data = context.popOperands(3); if (! (data[0] instanceof Number)) { throw new PainterException("wrong arguments"); } if (! (data[1] instanceof Number)) { throw new PainterException("wrong arguments"); } if (! (data[2] instanceof ArrayList)) { throw new PainterException("wrong arguments"); } ArrayList array = (ArrayList) data[2]; if (! (array.size() == 6)) { throw new PainterException("wrong arguments"); } AffineTransform at = new AffineTransform(); at.translate( ( (Number) data[0]).doubleValue(), ( (Number) data[1]).doubleValue()); double[] entries = new double[6]; at.getMatrix(entries); for (int i = 0; i < 6; i++) { array.set(i, new Double(entries[i])); } context.operands.push(array); } } }); // rotate systemDict.put("rotate", new PACommand() { public void execute(PAContext context) throws PainterException { if (context.peekOperand() instanceof Number) { double data[]; AffineTransform at = new AffineTransform(); AffineTransform ctm = context.pencil.graphics.getTransform(); data = context.popNumberOperands(1); at.rotate(data[0] * Math.PI / 180.0d); ctm.concatenate(at); context.pencil.graphics.setTransform(ctm); } else { Object data[]; AffineTransform at = new AffineTransform(); data = context.popOperands(2); if (! (data[0] instanceof Number)) { throw new PainterException("wrong arguments"); } if (! (data[1] instanceof ArrayList)) { throw new PainterException("wrong arguments"); } ArrayList array = (ArrayList) data[1]; if (! (array.size() == 6)) { throw new PainterException("wrong arguments"); } at.rotate( ( (Number) data[0]).doubleValue()); double[] entries = new double[6]; at.getMatrix(entries); for (int i = 0; i < 6; i++) { array.set(i, new Double(entries[i])); } context.operands.push(array); } } }); // scale systemDict.put("scale", new PACommand() { public void execute(PAContext context) throws PainterException { if (context.peekOperand() instanceof Number) { double data[]; AffineTransform at = new AffineTransform(); AffineTransform ctm = context.pencil.graphics.getTransform(); data = context.popNumberOperands(2); at.scale(data[0], data[1]); ctm.concatenate(at); context.pencil.graphics.setTransform(ctm); } else { Object data[]; data = context.popOperands(3); if (! (data[0] instanceof Number)) { throw new PainterException("wrong arguments"); } if (! (data[1] instanceof Number)) { throw new PainterException("wrong arguments"); } if (! (data[2] instanceof ArrayList)) { throw new PainterException("wrong arguments"); } ArrayList array = (ArrayList) data[2]; double[] entries = new double[6]; if (! (array.size() == 6)) { throw new PainterException("wrong arguments"); } entries[0] = ( (Number) data[0]).doubleValue(); entries[1] = 0.0d; entries[2] = 0.0d; entries[3] = ( (Number) data[1]).doubleValue(); entries[4] = 0.0d; entries[5] = 0.0d; for (int i = 0; i < 6; i++) { array.set(i, new Double(entries[i])); } context.operands.push(array); } } }); // stroke systemDict.put("stroke", new PACommand() { public void execute(PAContext context) throws PainterException { context.pencil.stroke(); } }); // fill systemDict.put("fill", new PACommand() { public void execute(PAContext context) throws PainterException { context.pencil.fill(); } }); // eofill systemDict.put("eofill", new PACommand() { public void execute(PAContext context) throws PainterException { context.pencil.eofill(); } }); // show systemDict.put("show", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(1); if (! (data[0] instanceof String)) { throw new PainterException("wrong arguments"); } context.pencil.show( (String) data[0]); } }); // stringwidth systemDict.put("stringwidth", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; float[] result; Font font; data = context.popOperands(1); if (! (data[0] instanceof String)) { throw new PainterException("wrong arguments"); } font = context.pencil.graphics.getFont(); Rectangle2D rect = font.getStringBounds( (String) data[0], context.pencil.graphics. getFontRenderContext()); context.operands.push(new Float(rect.getWidth())); context.operands.push(new Float(rect.getHeight())); } }); // showpage systemDict.put("showpage", new PACommand() { public void execute(PAContext context) throws PainterException { context.pencil.showpage(); } }); // findfont systemDict.put("findfont", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; data = context.popOperands(1); if (! (data[0] instanceof PAToken)) { throw new PainterException("wrong arguments"); } patoken = (PAToken) data[0]; if (! (patoken.type == PAToken.KEY)) { throw new PainterException("wrong arguments"); } context.operands.push(context.pencil.findFont( (String) patoken.value)); } }); // scalefont systemDict.put("scalefont", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(2); if (! (data[0] instanceof Font)) { throw new PainterException("wrong arguments"); } if (! (data[1] instanceof Number)) { throw new PainterException("wrong arguments"); } context.operands.push( ( (Font) data[0]).deriveFont( ( (Number) data[1]). floatValue())); } }); // setfont systemDict.put("setfont", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(1); if (! (data[0] instanceof Font)) { throw new PainterException("wrong arguments"); } context.pencil.graphics.setFont( (Font) data[0]); } }); // def systemDict.put("def", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; data = context.popOperands(2); if (! (data[0] instanceof PAToken)) { throw new PainterException("wrong arguments"); } patoken = (PAToken) data[0]; if (! (patoken.type == PAToken.KEY)) { throw new PainterException("wrong arguments"); } try { ( (HashMap) context.dictionaries.peek()).put(patoken.value, data[1]); } catch (EmptyStackException e) { throw new PainterException(e.toString()); } } }); // bind systemDict.put("bind", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; data = context.popOperands(1); if (! (data[0] instanceof PAToken)) { throw new PainterException("wrong arguments"); } patoken = (PAToken) data[0]; if (! (patoken.type == PAToken.PROCEDURE)) { throw new PainterException("wrong arguments"); } context.engine.bindProcedure(patoken); context.operands.push(patoken); } }); // mul systemDict.put("mul", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(2); context.operands.push(new Double(data[0] * data[1])); } }); // div systemDict.put("div", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(2); context.operands.push(new Double(data[0] / data[1])); } }); // mod systemDict.put("mod", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(2); int a, b, m; a = (int) data[0]; b = (int) data[1]; m = a % b; context.operands.push(new Integer(m)); } }); // add systemDict.put("add", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(2); context.operands.push(new Double(data[0] + data[1])); } }); // neg systemDict.put("neg", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(1); context.operands.push(new Double( -data[0])); } }); // sub systemDict.put("sub", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(2); context.operands.push(new Double(data[0] - data[1])); } }); // atan systemDict.put("atan", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(2); context.operands.push(new Double(Math.atan2(data[0], data[1]))); } }); // sin systemDict.put("sin", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(1); context.operands.push(new Double(Math.sin(data[0] * Math.PI / 180.0))); } }); // cos systemDict.put("cos", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(1); context.operands.push(new Double(Math.cos(data[0] * Math.PI / 180.0))); } }); // sqrt systemDict.put("sqrt", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(1); context.operands.push(new Double(Math.sqrt(data[0]))); } }); // exch systemDict.put("exch", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(2); context.operands.push(data[1]); context.operands.push(data[0]); } }); // dup systemDict.put("dup", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(1); context.operands.push(data[0]); context.operands.push(data[0]); } }); // roll systemDict.put("roll", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; Object rollData[]; data = context.popOperands(2); if (! (data[0] instanceof Number)) { throw new PainterException("wrong arguments"); } if (! (data[1] instanceof Number)) { throw new PainterException("wrong arguments"); } int numberOfElements, numberOfPositions, i; numberOfElements = ( (Number) data[0]).intValue(); numberOfPositions = ( (Number) data[1]).intValue(); if (numberOfPositions == 0 || numberOfElements <= 0) { return; } rollData = context.popOperands(numberOfElements); if (numberOfPositions < 0) { numberOfPositions = -numberOfPositions; numberOfPositions = numberOfPositions % numberOfElements; // downward roll for (i = numberOfPositions; i < numberOfElements; i++) { context.operands.push(rollData[i]); } for (i = 0; i < numberOfPositions; i++) { context.operands.push(rollData[i]); } } else { numberOfPositions = numberOfPositions % numberOfElements; // upward roll for (i = numberOfElements - numberOfPositions; i < numberOfElements; i++) { context.operands.push(rollData[i]); } for (i = 0; i < numberOfElements - numberOfPositions; i++) { context.operands.push(rollData[i]); } } } }); // pop systemDict.put("pop", new PACommand() { public void execute(PAContext context) throws PainterException { context.popOperands(1); } }); // index systemDict.put("index", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(1); if (! (data[0] instanceof Number)) { throw new PainterException("wrong arguments"); } int index = ( (Number) data[0]).intValue(); try { context.operands.push(context.operands.elementAt(index)); } catch (ArrayIndexOutOfBoundsException e) { throw new PainterException(e.toString()); } } }); // mark systemDict.put("mark", new PACommand() { public void execute(PAContext context) throws PainterException { context.operands.push(new PAToken(null, PAToken.MARK)); } }); // cleartomark systemDict.put("cleartomark", new PACommand() { public void execute(PAContext context) throws PainterException { Object data; boolean finished = false; while (!finished) { try { data = context.operands.pop(); if (data instanceof PAToken) { if ( ( (PAToken) data).type == PAToken.MARK) { finished = true; } } } catch (EmptyStackException e) { throw new PainterException(e.toString()); } } } }); // copy systemDict.put("copy", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(2); // decide if it's a simple copy or a composite object copy if ( (data[0] instanceof PAToken) && (data[1] instanceof PAToken)) { // composite object copy if ( ( (PAToken) data[0]).type == ( (PAToken) data[1]).type) { // our tokens are immutable so a copy is easy context.operands.push(data[0]); context.operands.push(data[0]); } else { throw new PainterException( "copy operation failed because composite objects on stack are not of same type"); } } else { // restore first arg, we're not interested in it in this simple case context.operands.push(data[0]); if (data[1] instanceof Number) { int index = ( (Number) data[1]).intValue(); int i, n; n = context.operands.size(); Object[] copyData = new Object[index]; for (i = n - index; i < n; i++) { try { copyData[i - n + index] = context.operands.elementAt(i); } catch (ArrayIndexOutOfBoundsException e) { throw new PainterException(e.toString()); } } for (i = 0; i < index; i++) { context.operands.push(copyData[i]); } } else { throw new PainterException("I expect a number on stack, dude"); } } } }); // setgray systemDict.put("setgray", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(1); context.pencil.graphics.setPaint(new Color( (float) data[0], (float) data[0], (float) data[0])); } }); // setrgbcolor systemDict.put("setrgbcolor", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(3); float[] fv = new float[3]; fv[0] = (float) Math.max(Math.min(data[0], 1.0d), 0.0d); fv[1] = (float) Math.max(Math.min(data[1], 1.0d), 0.0d); fv[2] = (float) Math.max(Math.min(data[2], 1.0d), 0.0d); context.pencil.graphics.setPaint(new Color(fv[0], fv[1], fv[2])); } }); // PENDING(uweh): color stuff still shaky // sethsbcolor systemDict.put("sethsbcolor", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(3); float[] fv = new float[3]; fv[0] = (float) Math.max(Math.min(data[0], 1.0d), 0.0d); fv[1] = (float) Math.max(Math.min(data[1], 1.0d), 0.0d); fv[2] = (float) Math.max(Math.min(data[2], 1.0d), 0.0d); context.pencil.graphics.setPaint(new Color(fv[0], fv[1], fv[2])); } }); // PENDING(uweh): I have to convert these puppies myself to rgb ? // setcmykcolor systemDict.put("setcmykcolor", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; int rd, gr, bl; data = context.popNumberOperands(4); float[] fv = new float[4]; fv[0] = (float) data[0]; fv[1] = (float) data[1]; fv[2] = (float) data[2]; fv[3] = (float) data[3]; rd = (int) (255 * Math.max(0, 1 - fv[0] - fv[3])); gr = (int) (255 * Math.max(0, 1 - fv[1] - fv[3])); bl = (int) (255 * Math.max(0, 1 - fv[2] - fv[3])); context.pencil.graphics.setPaint(new Color(rd, gr, bl)); } }); // setlinewidth systemDict.put("setlinewidth", new PACommand() { private double minLineWidth(double w, AffineTransform at) { double matrix[] = new double[4]; at.getMatrix(matrix); double scale = matrix[0] * matrix[3] - matrix[1] * matrix[2]; double minlw = .25 / Math.sqrt(Math.abs(scale)); if (w < minlw) { w = minlw; } return w; } public void execute(PAContext context) throws PainterException { double data[]; BasicStroke newStroke; Stroke oldStroke = context.pencil.graphics.getStroke(); data = context.popNumberOperands(1); data[0] = this.minLineWidth(data[0], context.pencil.graphics.getTransform()); if (oldStroke instanceof BasicStroke) { newStroke = new BasicStroke( (float) data[0], ( (BasicStroke) oldStroke).getEndCap(), ( (BasicStroke) oldStroke).getLineJoin(), ( (BasicStroke) oldStroke).getMiterLimit(), ( (BasicStroke) oldStroke).getDashArray(), ( (BasicStroke) oldStroke).getDashPhase()); } else { newStroke = new BasicStroke( (float) data[0], BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND); } context.pencil.graphics.setStroke(newStroke); } }); // setlinecap systemDict.put("setlinecap", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; BasicStroke newStroke; Stroke oldStroke = context.pencil.graphics.getStroke(); data = context.popNumberOperands(1); if (oldStroke instanceof BasicStroke) { newStroke = new BasicStroke( ( (BasicStroke) oldStroke).getLineWidth(), (int) data[0], ( (BasicStroke) oldStroke).getLineJoin(), ( (BasicStroke) oldStroke).getMiterLimit(), ( (BasicStroke) oldStroke).getDashArray(), ( (BasicStroke) oldStroke).getDashPhase()); } else { newStroke = new BasicStroke(1.0f, (int) data[0], BasicStroke.JOIN_ROUND); } context.pencil.graphics.setStroke(newStroke); } }); // setmiterlimit systemDict.put("setmiterlimit", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; BasicStroke newStroke; Stroke oldStroke = context.pencil.graphics.getStroke(); data = context.popNumberOperands(1); if (oldStroke instanceof BasicStroke) { newStroke = new BasicStroke( ( (BasicStroke) oldStroke).getLineWidth(), ( (BasicStroke) oldStroke).getEndCap(), ( (BasicStroke) oldStroke).getLineJoin(), (float) data[0], ( (BasicStroke) oldStroke).getDashArray(), ( (BasicStroke) oldStroke).getDashPhase()); } else { newStroke = new BasicStroke(1.0f, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND, (float) data[0]); } context.pencil.graphics.setStroke(newStroke); } }); // setdash systemDict.put("setdash", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; BasicStroke newStroke; Stroke oldStroke = context.pencil.graphics.getStroke(); data = context.popOperands(2); if (! (data[0] instanceof ArrayList)) { throw new PainterException("wrong arguments"); } if (! (data[1] instanceof Number)) { throw new PainterException("wrong arguments"); } ArrayList list = (ArrayList) data[0]; if (list.size() == 0) { return; } float[] dashpattern = new float[list.size()]; for (int i = 0; i < dashpattern.length; i++) { dashpattern[i] = ( (Number) list.get(i)).floatValue(); } float dashoffset = ( (Number) data[1]).floatValue(); if (oldStroke instanceof BasicStroke) { newStroke = new BasicStroke( ( (BasicStroke) oldStroke).getLineWidth(), ( (BasicStroke) oldStroke).getEndCap(), ( (BasicStroke) oldStroke).getLineJoin(), ( (BasicStroke) oldStroke).getMiterLimit(), dashpattern, dashoffset); } else { newStroke = new BasicStroke(1.0f, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND, 1.0f, dashpattern, dashoffset); } context.pencil.graphics.setStroke(newStroke); } }); // setlinejoin systemDict.put("setlinejoin", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; BasicStroke newStroke; Stroke oldStroke = context.pencil.graphics.getStroke(); data = context.popNumberOperands(1); if (oldStroke instanceof BasicStroke) { newStroke = new BasicStroke( ( (BasicStroke) oldStroke).getLineWidth(), ( (BasicStroke) oldStroke).getEndCap(), (int) data[0], ( (BasicStroke) oldStroke).getMiterLimit(), ( (BasicStroke) oldStroke).getDashArray(), ( (BasicStroke) oldStroke).getDashPhase()); } else { newStroke = new BasicStroke(1.0f, BasicStroke.CAP_ROUND, (int) data[0]); } context.pencil.graphics.setStroke(newStroke); } }); // dumpstack systemDict.put("dumpstack", new PACommand() { public void execute(PAContext context) throws PainterException { Enumeration enumx = context.operands.elements(); System.out.println("-------------Stack--------------"); while (enumx.hasMoreElements()) { System.out.println(enumx.nextElement()); } System.out.println("--------------------------------"); } }); // for systemDict.put("for", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; data = context.popOperands(4); if (! (data[3] instanceof PAToken)) { throw new PainterException("wrong arguments"); } if (! (data[0] instanceof Number)) { throw new PainterException("wrong arguments"); } if (! (data[1] instanceof Number)) { throw new PainterException("wrong arguments"); } if (! (data[2] instanceof Number)) { throw new PainterException("wrong arguments"); } patoken = (PAToken) data[3]; if (! (patoken.type == PAToken.PROCEDURE)) { throw new PainterException("wrong arguments"); } int i0, i1, i2; i0 = ( (Number) data[0]).intValue(); i1 = ( (Number) data[1]).intValue(); i2 = ( (Number) data[2]).intValue(); if (i1 > 0) { for (int i = i0; i <= i2; i += i1) { context.operands.push(new Integer(i)); context.engine.process(patoken); } } else { for (int i = i0; i >= i2; i -= i1) { context.operands.push(new Integer(i)); context.engine.process(patoken); } } } }); // repeat systemDict.put("repeat", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; data = context.popOperands(2); if (! (data[1] instanceof PAToken)) { throw new PainterException("wrong arguments"); } if (! (data[0] instanceof Number)) { throw new PainterException("wrong arguments"); } patoken = (PAToken) data[1]; if (! (patoken.type == PAToken.PROCEDURE)) { throw new PainterException("wrong arguments"); } int n = ( (Number) data[0]).intValue(); for (int i = 0; i < n; i++) { context.engine.process(patoken); } } }); // true systemDict.put("true", new PACommand() { public void execute(PAContext context) throws PainterException { context.operands.push(new Boolean(true)); } }); // false systemDict.put("false", new PACommand() { public void execute(PAContext context) throws PainterException { context.operands.push(new Boolean(false)); } }); // lt systemDict.put("lt", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(2); if (! (data[0] instanceof Number) && ! (data[0] instanceof String)) { throw new PainterException("wrong arguments"); } if (data[0] instanceof Number) { if (! (data[1] instanceof Number)) { throw new PainterException("wrong arguments"); } double d0, d1; d0 = ( (Number) data[0]).doubleValue(); d1 = ( (Number) data[1]).doubleValue(); if (d0 < d1) { context.operands.push(new Boolean(true)); } else { context.operands.push(new Boolean(false)); } } else { if (! (data[1] instanceof String)) { throw new PainterException("wrong arguments"); } String s0, s1; s0 = (String) data[0]; s1 = (String) data[1]; if (s0.compareTo(s1) < 0) { context.operands.push(new Boolean(true)); } else { context.operands.push(new Boolean(false)); } } } }); // gt systemDict.put("gt", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(2); if (! (data[0] instanceof Number) && ! (data[0] instanceof String)) { throw new PainterException("wrong arguments"); } if (data[0] instanceof Number) { if (! (data[1] instanceof Number)) { throw new PainterException("wrong arguments"); } double d0, d1; d0 = ( (Number) data[0]).doubleValue(); d1 = ( (Number) data[1]).doubleValue(); if (d0 > d1) { context.operands.push(new Boolean(true)); } else { context.operands.push(new Boolean(false)); } } else { if (! (data[1] instanceof String)) { throw new PainterException("wrong arguments"); } String s0, s1; s0 = (String) data[0]; s1 = (String) data[1]; if (s0.compareTo(s1) > 0) { context.operands.push(new Boolean(true)); } else { context.operands.push(new Boolean(false)); } } } }); // ne systemDict.put("ne", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(2); if (! (data[0] instanceof Number) && ! (data[0] instanceof String)) { throw new PainterException("wrong arguments"); } if (data[0] instanceof Number) { if (! (data[1] instanceof Number)) { throw new PainterException("wrong arguments"); } double d0, d1; d0 = ( (Number) data[0]).doubleValue(); d1 = ( (Number) data[1]).doubleValue(); if (d0 != d1) { context.operands.push(new Boolean(true)); } else { context.operands.push(new Boolean(false)); } } else { if (! (data[1] instanceof String)) { throw new PainterException("wrong arguments"); } String s0, s1; s0 = (String) data[0]; s1 = (String) data[1]; if (s0.equals(s1)) { context.operands.push(new Boolean(false)); } else { context.operands.push(new Boolean(true)); } } } }); // eq systemDict.put("eq", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(2); if (! (data[0] instanceof Number) && ! (data[0] instanceof String)) { throw new PainterException("wrong arguments"); } if (data[0] instanceof Number) { if (! (data[1] instanceof Number)) { throw new PainterException("wrong arguments"); } double d0, d1; d0 = ( (Number) data[0]).doubleValue(); d1 = ( (Number) data[1]).doubleValue(); if (d0 == d1) { context.operands.push(new Boolean(true)); } else { context.operands.push(new Boolean(false)); } } else { if (! (data[1] instanceof String)) { throw new PainterException("wrong arguments"); } String s0, s1; s0 = (String) data[0]; s1 = (String) data[1]; if (s0.compareTo(s1) == 0) { context.operands.push(new Boolean(true)); } else { context.operands.push(new Boolean(false)); } } } }); // if systemDict.put("if", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; data = context.popOperands(2); if (! (data[0] instanceof Boolean)) { throw new PainterException("wrong arguments"); } if (! (data[1] instanceof PAToken)) { throw new PainterException("wrong arguments"); } patoken = (PAToken) data[1]; if (! (patoken.type == PAToken.PROCEDURE)) { throw new PainterException("wrong arguments"); } if ( ( (Boolean) data[0]).booleanValue()) { context.engine.process(patoken); } } }); // ifelse systemDict.put("ifelse", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken1, patoken2; data = context.popOperands(3); if (! (data[0] instanceof Boolean)) { throw new PainterException("wrong arguments"); } if (! (data[1] instanceof PAToken)) { throw new PainterException("wrong arguments"); } if (! (data[2] instanceof PAToken)) { throw new PainterException("wrong arguments"); } patoken1 = (PAToken) data[1]; patoken2 = (PAToken) data[2]; if (! (patoken1.type == PAToken.PROCEDURE)) { throw new PainterException("wrong arguments"); } if (! (patoken2.type == PAToken.PROCEDURE)) { throw new PainterException("wrong arguments"); } if ( ( (Boolean) data[0]).booleanValue()) { context.engine.process(patoken1); } else { context.engine.process(patoken2); } } }); // dict systemDict.put("dict", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(1); context.operands.push(new HashMap()); } }); // userdict systemDict.put("userdict", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(1); context.operands.push(new HashMap()); } }); // put systemDict.put("put", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; data = context.popOperands(3); if (! (data[0] instanceof HashMap)) { throw new PainterException("wrong arguments"); } if (! (data[1] instanceof PAToken)) { throw new PainterException("wrong arguments"); } patoken = (PAToken) data[1]; if (! (patoken.type == PAToken.KEY)) { throw new PainterException("wrong arguments"); } ( (HashMap) data[0]).put(patoken.value, data[2]); } }); // get systemDict.put("get", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; data = context.popOperands(2); if (! (data[0] instanceof HashMap) && ! (data[0] instanceof ArrayList)) { throw new PainterException("wrong arguments"); } if (data[0] instanceof HashMap) { if (! (data[1] instanceof PAToken)) { throw new PainterException("wrong arguments"); } patoken = (PAToken) data[1]; if (! (patoken.type == PAToken.KEY)) { throw new PainterException("wrong arguments"); } context.operands.push( ( (HashMap) data[0]).get(patoken.value)); } else if (data[0] instanceof ArrayList) { if (! (data[1] instanceof Number)) { throw new PainterException("wrong arguments"); } context.operands.push( ( (ArrayList) data[0]).get( ( (Number) data[1]). intValue())); } } }); // load systemDict.put("load", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; data = context.popOperands(1); if (! (data[0] instanceof PAToken)) { throw new PainterException("wrong arguments"); } patoken = (PAToken) data[0]; if (! (patoken.type == PAToken.KEY)) { throw new PainterException("wrong arguments"); } context.operands.push(context.findIdentifier(patoken.value)); } }); // length systemDict.put("length", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; int size = 0; data = context.popOperands(1); if (data[0] instanceof PAToken) { patoken = (PAToken) data[0]; if (! (patoken.type == PAToken.KEY)) { throw new PainterException("wrong arguments"); } size = ( (String) patoken.value).length(); } else if (data[0] instanceof HashMap) { size = ( (HashMap) data[0]).size(); } else if (data[0] instanceof ArrayList) { size = ( (ArrayList) data[0]).size(); } else if (data[0] instanceof String) { size = ( (String) data[0]).length(); } else { throw new PainterException("wrong arguments"); } context.operands.push(new Integer(size)); } }); // begin systemDict.put("begin", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(1); if (! (data[0] instanceof HashMap)) { throw new PainterException("wrong arguments"); } context.dictionaries.push(data[0]); } }); // end systemDict.put("end", new PACommand() { public void execute(PAContext context) throws PainterException { try { context.dictionaries.pop(); } catch (EmptyStackException e) { throw new PainterException("Dictionary stack is empty"); } } }); // undef systemDict.put("undef", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; data = context.popOperands(2); if (! (data[0] instanceof HashMap)) { throw new PainterException("wrong arguments"); } if (! (data[1] instanceof PAToken)) { throw new PainterException("wrong arguments"); } patoken = (PAToken) data[1]; if (! (patoken.type == PAToken.KEY)) { throw new PainterException("wrong arguments"); } // we don't do an actual undef because we don't care } }); // known systemDict.put("known", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[], foundObject; PAToken patoken; data = context.popOperands(1); if (! (data[0] instanceof PAToken)) { throw new PainterException("wrong arguments"); } patoken = (PAToken) data[0]; if (! (patoken.type == PAToken.KEY)) { throw new PainterException("wrong arguments"); } foundObject = context.findIdentifier(patoken.value); if (foundObject != null) { context.operands.push(new Boolean(true)); } else { context.operands.push(new Boolean(false)); } } }); // where systemDict.put("where", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[], foundObject; PAToken patoken; data = context.popOperands(1); if (! (data[0] instanceof PAToken)) { throw new PainterException("wrong arguments"); } patoken = (PAToken) data[0]; if (! (patoken.type == PAToken.KEY)) { throw new PainterException("wrong arguments"); } foundObject = context.findDictionary(patoken.value); if (foundObject != null) { context.operands.push(foundObject); context.operands.push(new Boolean(true)); } else { context.operands.push(new Boolean(false)); } } }); // aload systemDict.put("aload", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; ArrayList list; data = context.popOperands(1); if (! (data[0] instanceof ArrayList)) { throw new PainterException("wrong arguments"); } list = (ArrayList) data[0]; Iterator iterator = list.iterator(); while (iterator.hasNext()) { context.operands.push(iterator.next()); } context.operands.push(data[0]); } }); // forall systemDict.put("forall", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; ArrayList list; PAToken patoken; data = context.popOperands(2); if (! (data[0] instanceof ArrayList)) { throw new PainterException("wrong arguments"); } if (! (data[1] instanceof PAToken)) { throw new PainterException("wrong arguments"); } patoken = (PAToken) data[1]; if (! (patoken.type == PAToken.PROCEDURE)) { throw new PainterException("wrong arguments"); } list = (ArrayList) data[0]; Iterator iterator = list.iterator(); while (iterator.hasNext()) { context.operands.push(iterator.next()); context.engine.process(patoken); } } }); // currentflat PENDING(uweh):placeholder for now systemDict.put("currentflat", new PACommand() { public void execute(PAContext context) throws PainterException { context.operands.push(new Float(1.0f)); } }); // setflat PENDING(uweh):placeholder for now systemDict.put("setflat", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(1); } }); // round systemDict.put("round", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(1); context.operands.push(new Long(Math.round(data[0]))); } }); // abs systemDict.put("abs", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(1); context.operands.push(new Double(Math.abs(data[0]))); } }); // transform systemDict.put("transform", new PACommand() { public void execute(PAContext context) throws PainterException { if (context.peekOperand() instanceof Number) { double data[]; double[] transformedData = new double[2]; data = context.popNumberOperands(2); AffineTransform at = context.pencil.graphics.getTransform(); at.transform(data, 0, transformedData, 0, 1); context.operands.push(new Double(transformedData[0])); context.operands.push(new Double(transformedData[1])); } else { Object data[]; data = context.popOperands(3); if (! (data[0] instanceof Number)) { throw new PainterException("wrong arguments"); } if (! (data[1] instanceof Number)) { throw new PainterException("wrong arguments"); } if (! (data[2] instanceof ArrayList)) { throw new PainterException("wrong arguments"); } ArrayList array = (ArrayList) data[2]; double[] entries = new double[6]; if (! (array.size() == 6)) { throw new PainterException("wrong arguments"); } for (int i = 0; i < 6; i++) { entries[i] = ( (Number) array.get(i)).doubleValue(); } AffineTransform at = new AffineTransform(entries); double numberdata[] = new double[2]; numberdata[0] = ( (Number) data[0]).doubleValue(); numberdata[1] = ( (Number) data[0]).doubleValue(); double[] transformedData = new double[2]; at.transform(numberdata, 0, transformedData, 0, 1); context.operands.push(new Double(transformedData[0])); context.operands.push(new Double(transformedData[1])); } } }); // itransform systemDict.put("itransform", new PACommand() { public void execute(PAContext context) throws PainterException { if (context.peekOperand() instanceof Number) { double data[]; double[] transformedData = new double[2]; data = context.popNumberOperands(2); AffineTransform at = context.pencil.graphics.getTransform(); try { at.inverseTransform(data, 0, transformedData, 0, 1); } catch (NoninvertibleTransformException e) { throw new PainterException(e.toString()); } context.operands.push(new Double(transformedData[0])); context.operands.push(new Double(transformedData[1])); } else { Object data[]; data = context.popOperands(3); if (! (data[0] instanceof Number)) { throw new PainterException("wrong arguments"); } if (! (data[1] instanceof Number)) { throw new PainterException("wrong arguments"); } if (! (data[2] instanceof ArrayList)) { throw new PainterException("wrong arguments"); } ArrayList array = (ArrayList) data[2]; double[] entries = new double[6]; if (! (array.size() == 6)) { throw new PainterException("wrong arguments"); } for (int i = 0; i < 6; i++) { entries[i] = ( (Number) array.get(i)).doubleValue(); } AffineTransform at = new AffineTransform(entries); double numberdata[] = new double[2]; numberdata[0] = ( (Number) data[0]).doubleValue(); numberdata[1] = ( (Number) data[0]).doubleValue(); double[] transformedData = new double[2]; try { at.inverseTransform(numberdata, 0, transformedData, 0, 1); } catch (NoninvertibleTransformException e) { throw new PainterException(e.toString()); } context.operands.push(new Double(transformedData[0])); context.operands.push(new Double(transformedData[1])); } } }); // currentpoint // PENDING(uweh): what about CTM, same thing when you construct path // this is different than ps, might not work in a few instances systemDict.put("currentpoint", new PACommand() { public void execute(PAContext context) throws PainterException { Point2D currentPoint = context.pencil.state.path.getCurrentPoint(); context.operands.push(new Double(currentPoint.getX())); context.operands.push(new Double(currentPoint.getY())); } }); // clippath systemDict.put("clippath", new PACommand() { public void execute(PAContext context) throws PainterException { context.pencil.clippath(); } }); // matrix systemDict.put("matrix", new PACommand() { public void execute(PAContext context) throws PainterException { ArrayList identityMatrix = new ArrayList(6); identityMatrix.add(new Double(1.0d)); identityMatrix.add(new Double(0.0d)); identityMatrix.add(new Double(0.0d)); identityMatrix.add(new Double(1.0d)); identityMatrix.add(new Double(0.0d)); identityMatrix.add(new Double(0.0d)); context.operands.push(identityMatrix); } }); // concatmatrix systemDict.put("concatmatrix", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(3); if (! (data[0] instanceof ArrayList)) { throw new PainterException("wrong arguments"); } if (! (data[1] instanceof ArrayList)) { throw new PainterException("wrong arguments"); } if (! (data[2] instanceof ArrayList)) { throw new PainterException("wrong arguments"); } ArrayList arrayOne, arrayTwo, arrayThree; AffineTransform atOne, atTwo; arrayOne = (ArrayList) data[0]; arrayTwo = (ArrayList) data[1]; arrayThree = (ArrayList) data[2]; double[] entries = new double[6]; if (! (arrayOne.size() == 6)) { throw new PainterException("wrong arguments"); } if (! (arrayTwo.size() == 6)) { throw new PainterException("wrong arguments"); } if (! (arrayThree.size() == 6)) { throw new PainterException("wrong arguments"); } for (int i = 0; i < 6; i++) { entries[i] = ( (Number) arrayOne.get(i)).doubleValue(); } atOne = new AffineTransform(entries); for (int i = 0; i < 6; i++) { entries[i] = ( (Number) arrayTwo.get(i)).doubleValue(); } atTwo = new AffineTransform(entries); atOne.concatenate(atTwo); atOne.getMatrix(entries); for (int i = 0; i < 6; i++) { arrayThree.set(i, new Double(entries[i])); } context.operands.push(arrayThree); } }); // pathbbox systemDict.put("pathbbox", new PACommand() { public void execute(PAContext context) throws PainterException { Rectangle2D pathBounds = context.pencil.state.path.getBounds2D(); context.operands.push(new Double(pathBounds.getMinX())); context.operands.push(new Double(pathBounds.getMinY())); context.operands.push(new Double(pathBounds.getMaxX())); context.operands.push(new Double(pathBounds.getMaxY())); } }); // truncate systemDict.put("truncate", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; double truncated; data = context.popNumberOperands(1); if (data[0] < 0) { truncated = Math.ceil(data[0]); } else { truncated = Math.floor(data[0]); } context.operands.push(new Double(truncated)); } }); // rand systemDict.put("rand", new PACommand() { public void execute(PAContext context) throws PainterException { context.operands.push(new Integer(randomNumberGenerator.nextInt(231))); } }); // srand systemDict.put("srand", new PACommand() { public void execute(PAContext context) throws PainterException { double data[]; data = context.popNumberOperands(1); randomNumberGenerator = new Random(Math.round(data[0])); } }); // cvi systemDict.put("cvi", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(1); if (! (data[0] instanceof Number) && ! (data[0] instanceof String)) { throw new PainterException("wrong arguments"); } if (data[0] instanceof Number) { int d; d = ( (Number) data[0]).intValue(); context.operands.push(new Integer(d)); } else { String s; s = (String) data[0]; context.operands.push(new Integer(s)); } } }); // usertime systemDict.put("usertime", new PACommand() { public void execute(PAContext context) throws PainterException { context.operands.push(new Long(System.currentTimeMillis())); } });// save systemDict.put("save", new PACommand() { public void execute(PAContext context) throws PainterException { // context.operands.push(new Long(System.currentTimeMillis())); } });// restore systemDict.put("restore", new PACommand() { public void execute(PAContext context) throws PainterException { // Object data[]; // data = context.popOperands(1); } });// clear systemDict.put("clear", new PACommand() { public void execute(PAContext context) throws PainterException { // Object data[]; // data = context.popOperands(1); } });// cleardictstack systemDict.put("cleardictstack", new PACommand() { public void execute(PAContext context) throws PainterException { // Object data[]; // data = context.popOperands(1); } }); // charpath systemDict.put("charpath", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; data = context.popOperands(2); if (! (data[0] instanceof String)) { throw new PainterException("wrong arguments"); } if (! (data[1] instanceof Boolean)) { throw new PainterException("wrong arguments"); } context.pencil.charpath( (String) data[0], ( (Boolean) data[1]).booleanValue()); } }); // PENDING(uweh): we only support procedure right now and always push false on the stack // stopped systemDict.put("stopped", new PACommand() { public void execute(PAContext context) throws PainterException { Object data[]; PAToken patoken; data = context.popOperands(1); if (! (data[0] instanceof PAToken)) { throw new PainterException("wrong arguments"); } patoken = (PAToken) data[0]; if (! (patoken.type == PAToken.PROCEDURE)) { throw new PainterException("wrong arguments"); } context.engine.process(patoken); context.operands.push(new Boolean(false)); } }); return systemDict; } | 3506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3506/a9e36ef1e4e4be2e6d4839ed4e5a42aabe172a12/PAContext.java/buggy/itext/src/com/lowagie/text/pdf/codec/postscript/PAContext.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
4317,
4872,
3163,
5014,
1435,
288,
565,
4317,
2619,
5014,
273,
394,
4317,
5621,
565,
368,
25094,
565,
2619,
5014,
18,
458,
2932,
2704,
803,
3113,
394,
15662,
2189,
1435,
288,
1377,
1071,
918,
1836,
12,
4066,
1042,
819,
13,
1216,
453,
11606,
503,
288,
3639,
819,
18,
84,
21620,
18,
2704,
803,
5621,
1377,
289,
565,
15549,
565,
368,
5730,
11453,
565,
2619,
5014,
18,
458,
2932,
81,
1527,
11453,
3113,
394,
15662,
2189,
1435,
288,
1377,
1071,
918,
1836,
12,
4066,
1042,
819,
13,
1216,
453,
11606,
503,
288,
3639,
1645,
501,
8526,
31,
3639,
501,
273,
819,
18,
5120,
1854,
3542,
5708,
12,
22,
1769,
3639,
819,
18,
84,
21620,
18,
81,
1527,
11453,
12,
892,
63,
20,
6487,
501,
63,
21,
19226,
1377,
289,
565,
15549,
565,
368,
6692,
1527,
11453,
565,
2619,
5014,
18,
458,
2932,
8864,
1527,
11453,
3113,
394,
15662,
2189,
1435,
288,
1377,
1071,
918,
1836,
12,
4066,
1042,
819,
13,
1216,
453,
11606,
503,
288,
3639,
1645,
501,
8526,
31,
3639,
501,
273,
819,
18,
5120,
1854,
3542,
5708,
12,
22,
1769,
3639,
819,
18,
84,
21620,
18,
8864,
1527,
11453,
12,
892,
63,
20,
6487,
501,
63,
21,
19226,
1377,
289,
565,
15549,
565,
368,
4739,
11453,
565,
2619,
5014,
18,
458,
2932,
7511,
11453,
3113,
394,
15662,
2189,
1435,
288,
1377,
1071,
918,
1836,
12,
4066,
1042,
819,
13,
1216,
453,
11606,
503,
288,
3639,
1645,
501,
8526,
31,
3639,
501,
273,
819,
18,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
4317,
4872,
3163,
5014,
1435,
288,
565,
4317,
2619,
5014,
273,
394,
4317,
5621,
565,
368,
25094,
565,
2619,
5014,
18,
458,
2932,
2704,
803,
3113,
394,
15662,
2189,
1435,
288,
1377,
1071,
918,
1836,
12,
4066,
1042,
819,
13,
1216,
453,
11606,
503,
288,
3639,
819,
18,
84,
21620,
18,
2704,
803,
5621,
1377,
289,
565,
15549,
565,
368,
5730,
11453,
565,
2619,
5014,
18,
458,
2932,
81,
1527,
11453,
3113,
394,
15662,
2189,
1435,
288,
1377,
1071,
918,
1836,
12,
4066,
1042,
819,
13,
1216,
453,
11606,
503,
288,
3639,
1645,
501,
8526,
31,
3639,
501,
273,
819,
18,
5120,
1854,
3542,
5708,
12,
22,
1769,
3639,
819,
18,
84,
21620,
18,
81,
1527,
11453,
2
] |
Log.log_1005(DOORMAN_CLASSNAME, "leaveAsReader()", null); | Log.log_1005(DOORMAN_CLASSNAME, THIS_METHOD, null); | public void leaveAsReader() { // TRACE: Enter method Log.log_1003(DOORMAN_CLASSNAME, "leaveAsReader()", null); Thread reader = Thread.currentThread(); synchronized (_currentActorLock) { boolean readerRemoved = _currentReaders.remove(reader); if (!readerRemoved) { // TODO: Remove from queue if it is in there? String message = _asString + ": " + reader.getName() + " attempts to leave protected area as reader, but it is not an active reader."; Log.log_1050(DOORMAN_CLASSNAME, "leaveAsReader()", Utils.getCallingClass(), Utils.getCallingMethod(), message); if (_strict) { throw new ProgrammingError(message); // TODO: Pass all details } else { // TRACE: Leave method Log.log_1005(DOORMAN_CLASSNAME, "leaveAsReader()", null); return; } } if (_currentReaders.isEmpty()) { synchronized (_queue) { // Determine if the queue has a writer atop, a reader atop or is // empty QueueEntryType type = _queue.getTypeOfFirst(); if (type == WRITE_QUEUE_ENTRY_TYPE) { // If a writer is waiting, activate it _currentWriter = _queue.pop(); _currentWriter.interrupt(); } else if (type == READ_QUEUE_ENTRY_TYPE) { // If a reader leaves, the queue cannot contain a reader at the // top, it must be either empty or have a writer at the top String message = _asString + ": Found reader at top of queue while a reader is leaving the protected area."; throw Utils.logProgrammingError(DOORMAN_CLASSNAME, "leaveAsReader()", Utils.getCallingClass(), Utils.getCallingMethod(), message); } } } } // TRACE: Leave method Log.log_1005(DOORMAN_CLASSNAME, "leaveAsReader()", null); } | 45757 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45757/5e7b70a06c6e8519476e186d26c384ee26204cf2/Doorman.java/clean/src/java-common/org/xins/common/threads/Doorman.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
8851,
1463,
2514,
1435,
288,
1377,
368,
12734,
30,
15439,
707,
1377,
1827,
18,
1330,
67,
6625,
23,
12,
3191,
3466,
1258,
67,
5237,
1985,
16,
315,
19574,
1463,
2514,
1435,
3113,
446,
1769,
1377,
4884,
2949,
273,
4884,
18,
2972,
3830,
5621,
1377,
3852,
261,
67,
2972,
17876,
2531,
13,
288,
540,
1250,
2949,
10026,
273,
389,
2972,
30301,
18,
4479,
12,
10530,
1769,
540,
309,
16051,
10530,
10026,
13,
288,
5411,
368,
2660,
30,
3581,
628,
2389,
309,
518,
353,
316,
1915,
35,
5411,
514,
883,
273,
389,
345,
780,
397,
6398,
315,
397,
2949,
18,
17994,
1435,
397,
315,
7531,
358,
8851,
4750,
5091,
487,
2949,
16,
1496,
518,
353,
486,
392,
2695,
2949,
1199,
31,
5411,
1827,
18,
1330,
67,
2163,
3361,
12,
3191,
3466,
1258,
67,
5237,
1985,
16,
315,
19574,
1463,
2514,
1435,
3113,
6091,
18,
588,
19677,
797,
9334,
6091,
18,
588,
19677,
1305,
9334,
883,
1769,
5411,
309,
261,
67,
13948,
13,
288,
9079,
604,
394,
13586,
11987,
668,
12,
2150,
1769,
368,
2660,
30,
10311,
777,
3189,
5411,
289,
469,
288,
9079,
368,
12734,
30,
21131,
707,
9079,
1827,
18,
1330,
67,
6625,
25,
12,
3191,
3466,
1258,
67,
5237,
1985,
16,
20676,
67,
5327,
16,
446,
1769,
9079,
327,
31,
5411,
289,
540,
289,
540,
309,
261,
67,
2972,
30301,
18,
291,
1921,
10756,
288,
5411,
3852,
261,
67,
4000,
13,
288,
9079,
368,
10229,
309,
326,
2389,
711,
279,
2633,
622,
556,
16,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
8851,
1463,
2514,
1435,
288,
1377,
368,
12734,
30,
15439,
707,
1377,
1827,
18,
1330,
67,
6625,
23,
12,
3191,
3466,
1258,
67,
5237,
1985,
16,
315,
19574,
1463,
2514,
1435,
3113,
446,
1769,
1377,
4884,
2949,
273,
4884,
18,
2972,
3830,
5621,
1377,
3852,
261,
67,
2972,
17876,
2531,
13,
288,
540,
1250,
2949,
10026,
273,
389,
2972,
30301,
18,
4479,
12,
10530,
1769,
540,
309,
16051,
10530,
10026,
13,
288,
5411,
368,
2660,
30,
3581,
628,
2389,
309,
518,
353,
316,
1915,
35,
5411,
514,
883,
273,
389,
345,
780,
397,
6398,
315,
397,
2949,
18,
17994,
1435,
397,
315,
7531,
358,
8851,
4750,
5091,
487,
2949,
16,
1496,
518,
353,
486,
392,
2695,
2
] |
this(new SameShellProvider(parentShell)); if (parentShell == null && Policy.DEBUG_DIALOG_NO_PARENT) Policy.getLog().log( new Status(IStatus.INFO, Policy.JFACE, IStatus.INFO, this .getClass() + " created with no shell", new Exception())); } | this(new SameShellProvider(parentShell)); if (parentShell == null && Policy.DEBUG_DIALOG_NO_PARENT) Policy.getLog().log( new Status(IStatus.INFO, Policy.JFACE, IStatus.INFO, this .getClass() + " created with no shell", new Exception())); } | protected Dialog(Shell parentShell) { this(new SameShellProvider(parentShell)); if (parentShell == null && Policy.DEBUG_DIALOG_NO_PARENT) Policy.getLog().log( new Status(IStatus.INFO, Policy.JFACE, IStatus.INFO, this .getClass() + " created with no shell",//$NON-NLS-1$ new Exception())); } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/428d5c79264b25bd2a774407a6202b1bb1e628e5/Dialog.java/clean/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/Dialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
17242,
12,
13220,
982,
13220,
13,
288,
3639,
333,
12,
2704,
17795,
13220,
2249,
12,
2938,
13220,
10019,
3639,
309,
261,
2938,
13220,
422,
446,
597,
7436,
18,
9394,
67,
2565,
18683,
67,
3417,
67,
14943,
13,
5411,
7436,
18,
588,
1343,
7675,
1330,
12,
10792,
394,
2685,
12,
45,
1482,
18,
5923,
16,
7436,
18,
46,
11300,
16,
467,
1482,
18,
5923,
16,
333,
18701,
263,
588,
797,
1435,
18701,
397,
315,
2522,
598,
1158,
5972,
3113,
759,
8,
3993,
17,
5106,
17,
21,
8,
18701,
394,
1185,
1435,
10019,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
17242,
12,
13220,
982,
13220,
13,
288,
3639,
333,
12,
2704,
17795,
13220,
2249,
12,
2938,
13220,
10019,
3639,
309,
261,
2938,
13220,
422,
446,
597,
7436,
18,
9394,
67,
2565,
18683,
67,
3417,
67,
14943,
13,
5411,
7436,
18,
588,
1343,
7675,
1330,
12,
10792,
394,
2685,
12,
45,
1482,
18,
5923,
16,
7436,
18,
46,
11300,
16,
467,
1482,
18,
5923,
16,
333,
18701,
263,
588,
797,
1435,
18701,
397,
315,
2522,
598,
1158,
5972,
3113,
759,
8,
3993,
17,
5106,
17,
21,
8,
18701,
394,
1185,
1435,
10019,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
this.requestStarter = requestStarterClient; this.insertStarter = insertStarterClient; | public HighLevelSimpleClientImpl(SimpleLowLevelClient client, ArchiveManager mgr, BucketFactory bf, RandomSource r, RequestStarterClient requestStarterClient, RequestStarterClient insertStarterClient, boolean cacheLocalRequests) { this.client = client; archiveManager = mgr; bucketFactory = bf; random = r; this.globalEventProducer = new SimpleEventProducer(); globalEventProducer.addEventListener(new EventLogger(Logger.MINOR)); curMaxLength = Long.MAX_VALUE; curMaxTempLength = Long.MAX_VALUE; curMaxMetadataLength = 1024 * 1024; this.requestStarter = requestStarterClient; this.insertStarter = insertStarterClient; this.cacheLocalRequests = cacheLocalRequests; } | 51834 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51834/d32229c02576d531c915059f111c468591f30e84/HighLevelSimpleClientImpl.java/buggy/src/freenet/client/HighLevelSimpleClientImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
15207,
2355,
5784,
1227,
2828,
12,
5784,
10520,
2355,
1227,
1004,
16,
13124,
1318,
13333,
16,
7408,
1733,
16222,
16,
8072,
1830,
436,
16,
1567,
510,
14153,
1227,
590,
510,
14153,
1227,
16,
1567,
510,
14153,
1227,
2243,
510,
14153,
1227,
16,
1250,
1247,
2042,
6421,
13,
288,
202,
202,
2211,
18,
2625,
273,
1004,
31,
202,
202,
10686,
1318,
273,
13333,
31,
202,
202,
7242,
1733,
273,
16222,
31,
202,
202,
9188,
273,
436,
31,
202,
202,
2211,
18,
6347,
1133,
12140,
273,
394,
4477,
1133,
12140,
5621,
202,
202,
6347,
1133,
12140,
18,
1289,
7375,
12,
2704,
2587,
3328,
12,
3328,
18,
6236,
916,
10019,
202,
202,
1397,
29346,
273,
3407,
18,
6694,
67,
4051,
31,
202,
202,
1397,
2747,
7185,
1782,
273,
3407,
18,
6694,
67,
4051,
31,
202,
202,
1397,
2747,
2277,
1782,
273,
6250,
380,
6250,
31,
202,
202,
2211,
18,
2293,
510,
14153,
273,
590,
510,
14153,
1227,
31,
202,
202,
2211,
18,
6387,
510,
14153,
273,
2243,
510,
14153,
1227,
31,
202,
202,
2211,
18,
2493,
2042,
6421,
273,
1247,
2042,
6421,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
15207,
2355,
5784,
1227,
2828,
12,
5784,
10520,
2355,
1227,
1004,
16,
13124,
1318,
13333,
16,
7408,
1733,
16222,
16,
8072,
1830,
436,
16,
1567,
510,
14153,
1227,
590,
510,
14153,
1227,
16,
1567,
510,
14153,
1227,
2243,
510,
14153,
1227,
16,
1250,
1247,
2042,
6421,
13,
288,
202,
202,
2211,
18,
2625,
273,
1004,
31,
202,
202,
10686,
1318,
273,
13333,
31,
202,
202,
7242,
1733,
273,
16222,
31,
202,
202,
9188,
273,
436,
31,
202,
202,
2211,
18,
6347,
1133,
12140,
273,
394,
4477,
1133,
12140,
5621,
202,
202,
6347,
1133,
12140,
18,
1289,
7375,
12,
2704,
2587,
3328,
12,
3328,
18,
6236,
916,
10019,
202,
202,
1397,
29346,
273,
3407,
18,
6694,
67,
2
] | |
ASTNode leftNeibour = TreeUtil.prevLeaf(element.getNode()); while (leftNeibour != null && (leftNeibour.getElementType() == TokenType.WHITE_SPACE || leftNeibour.getPsi() instanceof PsiComment)) leftNeibour = TreeUtil.prevLeaf(leftNeibour); | ASTNode leftNeibour = prevLeaf(element.getNode()); while (leftNeibour != null && (leftNeibour.getElementType() == TokenType.WHITE_SPACE || leftNeibour.getPsi() instanceof PsiComment)){ leftNeibour = prevLeaf(leftNeibour); } | public static PsiElement searchNonSpaceNonCommentBack(PsiElement element) { if(element == null || element.getNode() == null) return null; ASTNode leftNeibour = TreeUtil.prevLeaf(element.getNode()); while (leftNeibour != null && (leftNeibour.getElementType() == TokenType.WHITE_SPACE || leftNeibour.getPsi() instanceof PsiComment)) leftNeibour = TreeUtil.prevLeaf(leftNeibour); return leftNeibour != null ? leftNeibour.getPsi() : null; } | 56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/87681ff19901d3f226c9d73e111340897a633091/FilterUtil.java/clean/source/com/intellij/psi/filters/FilterUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
453,
7722,
1046,
1623,
3989,
3819,
3989,
4469,
2711,
12,
52,
7722,
1046,
930,
13,
288,
565,
309,
12,
2956,
422,
446,
747,
930,
18,
588,
907,
1435,
422,
446,
13,
327,
446,
31,
565,
9183,
907,
2002,
6586,
495,
477,
273,
4902,
1304,
18,
10001,
9858,
12,
2956,
18,
588,
907,
10663,
565,
1323,
261,
4482,
6586,
495,
477,
480,
446,
597,
261,
4482,
6586,
495,
477,
18,
588,
17481,
1435,
422,
18794,
18,
16861,
67,
6616,
747,
2002,
6586,
495,
477,
18,
588,
52,
7722,
1435,
1276,
453,
7722,
4469,
3719,
1377,
2002,
6586,
495,
477,
273,
4902,
1304,
18,
10001,
9858,
12,
4482,
6586,
495,
477,
1769,
565,
327,
2002,
6586,
495,
477,
480,
446,
692,
2002,
6586,
495,
477,
18,
588,
52,
7722,
1435,
294,
446,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
453,
7722,
1046,
1623,
3989,
3819,
3989,
4469,
2711,
12,
52,
7722,
1046,
930,
13,
288,
565,
309,
12,
2956,
422,
446,
747,
930,
18,
588,
907,
1435,
422,
446,
13,
327,
446,
31,
565,
9183,
907,
2002,
6586,
495,
477,
273,
4902,
1304,
18,
10001,
9858,
12,
2956,
18,
588,
907,
10663,
565,
1323,
261,
4482,
6586,
495,
477,
480,
446,
597,
261,
4482,
6586,
495,
477,
18,
588,
17481,
1435,
422,
18794,
18,
16861,
67,
6616,
747,
2002,
6586,
495,
477,
18,
588,
52,
7722,
1435,
1276,
453,
7722,
4469,
3719,
1377,
2002,
6586,
495,
477,
273,
4902,
1304,
18,
10001,
9858,
12,
4482,
6586,
495,
477,
1769,
565,
327,
2002,
6586,
495,
477,
2
] |
int nameIndex = -1; | String functionName = null; | private int generateICode(Node node, int iCodeTop) { int type = node.getType(); Node child = node.getFirstChild(); Node firstChild = child; switch (type) { case TokenStream.FUNCTION : { Node fn = (Node) node.getProp(Node.FUNCTION_PROP); int index = fn.getExistingIntProp(Node.FUNCTION_PROP); iCodeTop = addByte(TokenStream.CLOSURE, iCodeTop); iCodeTop = addShort(index, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.SCRIPT : iCodeTop = updateLineNumber(node, iCodeTop); while (child != null) { if (child.getType() != TokenStream.FUNCTION) iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); } break; case TokenStream.CASE : iCodeTop = updateLineNumber(node, iCodeTop); child = child.getNextSibling(); while (child != null) { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); } break; case TokenStream.LABEL : case TokenStream.WITH : case TokenStream.LOOP : case TokenStream.DEFAULT : case TokenStream.BLOCK : case TokenStream.VOID : case TokenStream.NOP : iCodeTop = updateLineNumber(node, iCodeTop); while (child != null) { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); } break; case TokenStream.COMMA : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(TokenStream.POP, iCodeTop); itsStackDepth--; child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); break; case TokenStream.SWITCH : { iCodeTop = updateLineNumber(node, iCodeTop); iCodeTop = generateICode(child, iCodeTop); int theLocalSlot = itsData.itsMaxLocals++; iCodeTop = addByte(TokenStream.NEWTEMP, iCodeTop); iCodeTop = addByte(theLocalSlot, iCodeTop); iCodeTop = addByte(TokenStream.POP, iCodeTop); itsStackDepth--; ObjArray cases = (ObjArray) node.getProp(Node.CASES_PROP); for (int i = 0; i < cases.size(); i++) { Node thisCase = (Node)cases.get(i); Node first = thisCase.getFirstChild(); // the case expression is the firstmost child // the rest will be generated when the case // statements are encountered as siblings of // the switch statement. iCodeTop = generateICode(first, iCodeTop); iCodeTop = addByte(TokenStream.USETEMP, iCodeTop); iCodeTop = addByte(theLocalSlot, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte(TokenStream.SHEQ, iCodeTop); itsStackDepth--; Node target = new Node(TokenStream.TARGET); thisCase.addChildAfter(target, first); iCodeTop = addGoto(target, TokenStream.IFEQ, iCodeTop); } Node defaultNode = (Node) node.getProp(Node.DEFAULT_PROP); if (defaultNode != null) { Node defaultTarget = new Node(TokenStream.TARGET); defaultNode.getFirstChild(). addChildToFront(defaultTarget); iCodeTop = addGoto(defaultTarget, TokenStream.GOTO, iCodeTop); } Node breakTarget = (Node) node.getProp(Node.BREAK_PROP); iCodeTop = addGoto(breakTarget, TokenStream.GOTO, iCodeTop); } break; case TokenStream.TARGET : { markTargetLabel(node, iCodeTop); // if this target has a FINALLY_PROP, it is a JSR target // and so has a PC value on the top of the stack if (node.getProp(Node.FINALLY_PROP) != null) { itsStackDepth = 1; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } } break; case TokenStream.EQOP : case TokenStream.RELOP : { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); int op = node.getOperation(); if (version == Context.VERSION_1_2) { if (op == TokenStream.EQ) op = TokenStream.SHEQ; else if (op == TokenStream.NE) op = TokenStream.SHNE; } iCodeTop = addByte(op, iCodeTop); itsStackDepth--; } break; case TokenStream.NEW : case TokenStream.CALL : { if (itsSourceFile != null && (itsData.itsSourceFile == null || !itsSourceFile.equals(itsData.itsSourceFile))) { itsData.itsSourceFile = itsSourceFile; } iCodeTop = addByte(SOURCEFILE_ICODE, iCodeTop); int childCount = 0; int nameIndex = -1; while (child != null) { iCodeTop = generateICode(child, iCodeTop); if (nameIndex == -1) { int childType = child.getType(); if (childType == TokenStream.NAME || childType == TokenStream.GETPROP) { nameIndex = lastStringIndex; } } child = child.getNextSibling(); childCount++; } if (node.getProp(Node.SPECIALCALL_PROP) != null) { // embed line number and source filename iCodeTop = addByte(TokenStream.CALLSPECIAL, iCodeTop); iCodeTop = addShort(itsLineNumber, iCodeTop); iCodeTop = addString(itsSourceFile, iCodeTop); } else { iCodeTop = addByte(type, iCodeTop); iCodeTop = addShort(nameIndex, iCodeTop); } itsStackDepth -= (childCount - 1); // always a result value // subtract from child count to account for [thisObj &] fun if (type == TokenStream.NEW) childCount -= 1; else childCount -= 2; iCodeTop = addShort(childCount, iCodeTop); if (childCount > itsData.itsMaxCalleeArgs) itsData.itsMaxCalleeArgs = childCount; iCodeTop = addByte(SOURCEFILE_ICODE, iCodeTop); } break; case TokenStream.NEWLOCAL : case TokenStream.NEWTEMP : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(TokenStream.NEWTEMP, iCodeTop); iCodeTop = addLocalRef(node, iCodeTop); } break; case TokenStream.USELOCAL : { if (node.getProp(Node.TARGET_PROP) != null) iCodeTop = addByte(TokenStream.RETSUB, iCodeTop); else { iCodeTop = addByte(TokenStream.USETEMP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } Node temp = (Node) node.getProp(Node.LOCAL_PROP); iCodeTop = addLocalRef(temp, iCodeTop); } break; case TokenStream.USETEMP : { iCodeTop = addByte(TokenStream.USETEMP, iCodeTop); Node temp = (Node) node.getProp(Node.TEMP_PROP); iCodeTop = addLocalRef(temp, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.IFEQ : case TokenStream.IFNE : iCodeTop = generateICode(child, iCodeTop); itsStackDepth--; // after the conditional GOTO, really // fall thru... case TokenStream.GOTO : { Node target = (Node)(node.getProp(Node.TARGET_PROP)); iCodeTop = addGoto(target, (byte) type, iCodeTop); } break; case TokenStream.JSR : { /* mark the target with a FINALLY_PROP to indicate that it will have an incoming PC value on the top of the stack. !!! This only works if the target follows the JSR in the tree. !!! */ Node target = (Node)(node.getProp(Node.TARGET_PROP)); target.putProp(Node.FINALLY_PROP, node); // Bug 115717 is due to adding a GOSUB here before // we insert an ENDTRY. I'm not sure of the best way // to fix this; perhaps we need to maintain a stack // of pending trys and have some knowledge of how // many trys we need to close when we perform a // GOTO or GOSUB. iCodeTop = addGoto(target, TokenStream.GOSUB, iCodeTop); } break; case TokenStream.AND : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(TokenStream.DUP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int falseJumpStart = iCodeTop; iCodeTop = addForwardGoto(TokenStream.IFNE, iCodeTop); iCodeTop = addByte(TokenStream.POP, iCodeTop); itsStackDepth--; child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); resolveForwardGoto(falseJumpStart, iCodeTop); } break; case TokenStream.OR : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(TokenStream.DUP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int trueJumpStart = iCodeTop; iCodeTop = addForwardGoto(TokenStream.IFEQ, iCodeTop); iCodeTop = addByte(TokenStream.POP, iCodeTop); itsStackDepth--; child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); resolveForwardGoto(trueJumpStart, iCodeTop); } break; case TokenStream.GETPROP : { iCodeTop = generateICode(child, iCodeTop); String s = (String) node.getProp(Node.SPECIAL_PROP_PROP); if (s != null) { if (s.equals("__proto__")) iCodeTop = addByte(TokenStream.GETPROTO, iCodeTop); else if (s.equals("__parent__")) iCodeTop = addByte(TokenStream.GETSCOPEPARENT, iCodeTop); else badTree(node); } else { child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(TokenStream.GETPROP, iCodeTop); itsStackDepth--; } } break; case TokenStream.DELPROP : case TokenStream.BITAND : case TokenStream.BITOR : case TokenStream.BITXOR : case TokenStream.LSH : case TokenStream.RSH : case TokenStream.URSH : case TokenStream.ADD : case TokenStream.SUB : case TokenStream.MOD : case TokenStream.DIV : case TokenStream.MUL : case TokenStream.GETELEM : iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(type, iCodeTop); itsStackDepth--; break; case TokenStream.CONVERT : { iCodeTop = generateICode(child, iCodeTop); Object toType = node.getProp(Node.TYPE_PROP); if (toType == ScriptRuntime.NumberClass) iCodeTop = addByte(TokenStream.POS, iCodeTop); else badTree(node); } break; case TokenStream.UNARYOP : iCodeTop = generateICode(child, iCodeTop); switch (node.getOperation()) { case TokenStream.VOID : iCodeTop = addByte(TokenStream.POP, iCodeTop); iCodeTop = addByte(TokenStream.UNDEFINED, iCodeTop); break; case TokenStream.NOT : { int trueJumpStart = iCodeTop; iCodeTop = addForwardGoto(TokenStream.IFEQ, iCodeTop); iCodeTop = addByte(TokenStream.TRUE, iCodeTop); int beyondJumpStart = iCodeTop; iCodeTop = addForwardGoto(TokenStream.GOTO, iCodeTop); resolveForwardGoto(trueJumpStart, iCodeTop); iCodeTop = addByte(TokenStream.FALSE, iCodeTop); resolveForwardGoto(beyondJumpStart, iCodeTop); } break; case TokenStream.BITNOT : iCodeTop = addByte(TokenStream.BITNOT, iCodeTop); break; case TokenStream.TYPEOF : iCodeTop = addByte(TokenStream.TYPEOF, iCodeTop); break; case TokenStream.SUB : iCodeTop = addByte(TokenStream.NEG, iCodeTop); break; case TokenStream.ADD : iCodeTop = addByte(TokenStream.POS, iCodeTop); break; default: badTree(node); break; } break; case TokenStream.SETPROP : { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); String s = (String) node.getProp(Node.SPECIAL_PROP_PROP); if (s != null) { if (s.equals("__proto__")) iCodeTop = addByte(TokenStream.SETPROTO, iCodeTop); else if (s.equals("__parent__")) iCodeTop = addByte(TokenStream.SETPARENT, iCodeTop); else badTree(node); } else { child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(TokenStream.SETPROP, iCodeTop); itsStackDepth -= 2; } } break; case TokenStream.SETELEM : iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(type, iCodeTop); itsStackDepth -= 2; break; case TokenStream.SETNAME : iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(TokenStream.SETNAME, iCodeTop); iCodeTop = addString(firstChild.getString(), iCodeTop); itsStackDepth--; break; case TokenStream.TYPEOF : { String name = node.getString(); int index = -1; // use typeofname if an activation frame exists // since the vars all exist there instead of in jregs if (itsInFunctionFlag && !itsData.itsNeedsActivation) index = itsVariableTable.getOrdinal(name); if (index == -1) { iCodeTop = addByte(TokenStream.TYPEOFNAME, iCodeTop); iCodeTop = addString(name, iCodeTop); } else { iCodeTop = addByte(TokenStream.GETVAR, iCodeTop); iCodeTop = addByte(index, iCodeTop); iCodeTop = addByte(TokenStream.TYPEOF, iCodeTop); } itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.PARENT : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(TokenStream.GETPARENT, iCodeTop); break; case TokenStream.GETBASE : case TokenStream.BINDNAME : case TokenStream.NAME : case TokenStream.STRING : iCodeTop = addByte(type, iCodeTop); iCodeTop = addString(node.getString(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case TokenStream.INC : case TokenStream.DEC : { int childType = child.getType(); switch (childType) { case TokenStream.GETVAR : { String name = child.getString(); if (itsData.itsNeedsActivation) { iCodeTop = addByte(TokenStream.SCOPE, iCodeTop); iCodeTop = addByte(TokenStream.STRING, iCodeTop); iCodeTop = addString(name, iCodeTop); itsStackDepth += 2; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte(type == TokenStream.INC ? TokenStream.PROPINC : TokenStream.PROPDEC, iCodeTop); itsStackDepth--; } else { int i = itsVariableTable.getOrdinal(name); iCodeTop = addByte(type == TokenStream.INC ? TokenStream.VARINC : TokenStream.VARDEC, iCodeTop); iCodeTop = addByte(i, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } } break; case TokenStream.GETPROP : case TokenStream.GETELEM : { Node getPropChild = child.getFirstChild(); iCodeTop = generateICode(getPropChild, iCodeTop); getPropChild = getPropChild.getNextSibling(); iCodeTop = generateICode(getPropChild, iCodeTop); if (childType == TokenStream.GETPROP) iCodeTop = addByte(type == TokenStream.INC ? TokenStream.PROPINC : TokenStream.PROPDEC, iCodeTop); else iCodeTop = addByte(type == TokenStream.INC ? TokenStream.ELEMINC : TokenStream.ELEMDEC, iCodeTop); itsStackDepth--; } break; default : { iCodeTop = addByte(type == TokenStream.INC ? TokenStream.NAMEINC : TokenStream.NAMEDEC, iCodeTop); iCodeTop = addString(child.getString(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; } } break; case TokenStream.NUMBER : { double num = node.getDouble(); int inum = (int)num; if (inum == num) { if (inum == 0) { iCodeTop = addByte(TokenStream.ZERO, iCodeTop); } else if (inum == 1) { iCodeTop = addByte(TokenStream.ONE, iCodeTop); } else if ((short)inum == inum) { iCodeTop = addByte(SHORTNUMBER_ICODE, iCodeTop); iCodeTop = addShort(inum, iCodeTop); } else { iCodeTop = addByte(INTNUMBER_ICODE, iCodeTop); iCodeTop = addInt(inum, iCodeTop); } } else { iCodeTop = addByte(TokenStream.NUMBER, iCodeTop); iCodeTop = addDouble(num, iCodeTop); } itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; } case TokenStream.POP : case TokenStream.POPV : iCodeTop = updateLineNumber(node, iCodeTop); case TokenStream.ENTERWITH : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(type, iCodeTop); itsStackDepth--; break; case TokenStream.GETTHIS : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(type, iCodeTop); break; case TokenStream.NEWSCOPE : iCodeTop = addByte(type, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case TokenStream.LEAVEWITH : iCodeTop = addByte(type, iCodeTop); break; case TokenStream.TRY : { itsTryDepth++; if (itsTryDepth > itsData.itsMaxTryDepth) itsData.itsMaxTryDepth = itsTryDepth; Node catchTarget = (Node)node.getProp(Node.TARGET_PROP); Node finallyTarget = (Node)node.getProp(Node.FINALLY_PROP); int tryStart = iCodeTop; if (catchTarget == null) { iCodeTop = addByte(TokenStream.TRY, iCodeTop); iCodeTop = addShort(0, iCodeTop); } else { iCodeTop = addGoto(catchTarget, TokenStream.TRY, iCodeTop); } iCodeTop = addShort(0, iCodeTop); Node lastChild = null; /* when we encounter the child of the catchTarget, we set the stackDepth to 1 to account for the incoming exception object. */ boolean insertedEndTry = false; while (child != null) { if (catchTarget != null && lastChild == catchTarget) { itsStackDepth = 1; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } /* When the following child is the catchTarget (or the finallyTarget if there are no catches), the current child is the goto at the end of the try statemets, we need to emit the endtry before that goto. */ Node nextSibling = child.getNextSibling(); if (!insertedEndTry && nextSibling != null && (nextSibling == catchTarget || nextSibling == finallyTarget)) { iCodeTop = addByte(TokenStream.ENDTRY, iCodeTop); insertedEndTry = true; } iCodeTop = generateICode(child, iCodeTop); lastChild = child; child = child.getNextSibling(); } itsStackDepth = 0; if (finallyTarget != null) { // normal flow goes around the finally handler stublet int skippyJumpStart = iCodeTop; iCodeTop = addForwardGoto(TokenStream.GOTO, iCodeTop); int finallyOffset = iCodeTop - tryStart; recordJumpOffset(tryStart + 3, finallyOffset); // on entry the stack will have the exception object itsStackDepth = 1; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int theLocalSlot = itsData.itsMaxLocals++; iCodeTop = addByte(TokenStream.NEWTEMP, iCodeTop); iCodeTop = addByte(theLocalSlot, iCodeTop); iCodeTop = addByte(TokenStream.POP, iCodeTop); iCodeTop = addGoto(finallyTarget, TokenStream.GOSUB, iCodeTop); iCodeTop = addByte(TokenStream.USETEMP, iCodeTop); iCodeTop = addByte(theLocalSlot, iCodeTop); iCodeTop = addByte(TokenStream.JTHROW, iCodeTop); itsStackDepth = 0; resolveForwardGoto(skippyJumpStart, iCodeTop); } itsTryDepth--; } break; case TokenStream.THROW : iCodeTop = updateLineNumber(node, iCodeTop); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(TokenStream.THROW, iCodeTop); itsStackDepth--; break; case TokenStream.RETURN : iCodeTop = updateLineNumber(node, iCodeTop); if (child != null) { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(TokenStream.RETURN, iCodeTop); itsStackDepth--; } else { iCodeTop = addByte(RETURN_UNDEF_ICODE, iCodeTop); } break; case TokenStream.GETVAR : { String name = node.getString(); if (itsData.itsNeedsActivation) { // SETVAR handled this by turning into a SETPROP, but // we can't do that to a GETVAR without manufacturing // bogus children. Instead we use a special op to // push the current scope. iCodeTop = addByte(TokenStream.SCOPE, iCodeTop); iCodeTop = addByte(TokenStream.STRING, iCodeTop); iCodeTop = addString(name, iCodeTop); itsStackDepth += 2; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte(TokenStream.GETPROP, iCodeTop); itsStackDepth--; } else { int index = itsVariableTable.getOrdinal(name); iCodeTop = addByte(TokenStream.GETVAR, iCodeTop); iCodeTop = addByte(index, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } } break; case TokenStream.SETVAR : { if (itsData.itsNeedsActivation) { child.setType(TokenStream.BINDNAME); node.setType(TokenStream.SETNAME); iCodeTop = generateICode(node, iCodeTop); } else { String name = child.getString(); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); int index = itsVariableTable.getOrdinal(name); iCodeTop = addByte(TokenStream.SETVAR, iCodeTop); iCodeTop = addByte(index, iCodeTop); } } break; case TokenStream.PRIMARY: iCodeTop = addByte(node.getOperation(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case TokenStream.ENUMINIT : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte(TokenStream.ENUMINIT, iCodeTop); iCodeTop = addLocalRef(node, iCodeTop); itsStackDepth--; break; case TokenStream.ENUMNEXT : { iCodeTop = addByte(TokenStream.ENUMNEXT, iCodeTop); Node init = (Node)node.getProp(Node.ENUM_PROP); iCodeTop = addLocalRef(init, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.ENUMDONE : // could release the local here?? break; case TokenStream.REGEXP : { Node regexp = (Node) node.getProp(Node.REGEXP_PROP); int index = regexp.getExistingIntProp(Node.REGEXP_PROP); iCodeTop = addByte(TokenStream.REGEXP, iCodeTop); iCodeTop = addShort(index, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; default : badTree(node); break; } return iCodeTop; } | 19000 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19000/2e16b18d0d24c5129e654d820e6c7f2155b1b7e0/Interpreter.java/buggy/src/org/mozilla/javascript/Interpreter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
2103,
45,
1085,
12,
907,
756,
16,
509,
277,
1085,
3401,
13,
288,
3639,
509,
618,
273,
756,
18,
588,
559,
5621,
3639,
2029,
1151,
273,
756,
18,
588,
3759,
1763,
5621,
3639,
2029,
15070,
273,
1151,
31,
3639,
1620,
261,
723,
13,
288,
5411,
648,
3155,
1228,
18,
7788,
294,
288,
10792,
2029,
2295,
273,
261,
907,
13,
756,
18,
588,
4658,
12,
907,
18,
7788,
67,
15811,
1769,
10792,
509,
770,
273,
2295,
18,
588,
9895,
1702,
4658,
12,
907,
18,
7788,
67,
15811,
1769,
10792,
277,
1085,
3401,
273,
527,
3216,
12,
1345,
1228,
18,
22693,
55,
4830,
16,
277,
1085,
3401,
1769,
10792,
277,
1085,
3401,
273,
527,
4897,
12,
1615,
16,
277,
1085,
3401,
1769,
10792,
2097,
2624,
6148,
9904,
31,
10792,
309,
261,
1282,
2624,
6148,
405,
2097,
751,
18,
1282,
2747,
2624,
13,
13491,
2097,
751,
18,
1282,
2747,
2624,
273,
2097,
2624,
6148,
31,
7734,
289,
7734,
898,
31,
5411,
648,
3155,
1228,
18,
10885,
294,
7734,
277,
1085,
3401,
273,
1089,
31063,
12,
2159,
16,
277,
1085,
3401,
1769,
7734,
1323,
261,
3624,
480,
446,
13,
288,
10792,
309,
261,
3624,
18,
588,
559,
1435,
480,
3155,
1228,
18,
7788,
13,
13491,
277,
1085,
3401,
273,
2103,
45,
1085,
12,
3624,
16,
277,
1085,
3401,
1769,
10792,
1151,
273,
1151,
18,
588,
2134,
10291,
5621,
7734,
289,
7734,
898,
31,
5411,
648,
3155,
1228,
18,
13415,
294,
7734,
277,
1085,
3401,
273,
1089,
31063,
12,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
2103,
45,
1085,
12,
907,
756,
16,
509,
277,
1085,
3401,
13,
288,
3639,
509,
618,
273,
756,
18,
588,
559,
5621,
3639,
2029,
1151,
273,
756,
18,
588,
3759,
1763,
5621,
3639,
2029,
15070,
273,
1151,
31,
3639,
1620,
261,
723,
13,
288,
5411,
648,
3155,
1228,
18,
7788,
294,
288,
10792,
2029,
2295,
273,
261,
907,
13,
756,
18,
588,
4658,
12,
907,
18,
7788,
67,
15811,
1769,
10792,
509,
770,
273,
2295,
18,
588,
9895,
1702,
4658,
12,
907,
18,
7788,
67,
15811,
1769,
10792,
277,
1085,
3401,
273,
527,
3216,
12,
1345,
1228,
18,
22693,
55,
4830,
16,
277,
1085,
3401,
1769,
10792,
277,
1085,
3401,
273,
527,
4897,
12,
1615,
16,
2
] |
{ String s = getString(columnIndex); DateFormat df = DateFormat.getDateInstance(); if (s != null) { try { java.sql.Date d = (java.sql.Date)df.parse(s); return new Timestamp(d.getTime()); } catch (ParseException e) { throw new SQLException("Bad Timestamp Format: " + s); } } return null; } | { String s = getString(columnIndex); DateFormat df = DateFormat.getDateInstance(); if (s != null) { try { java.sql.Date d = (java.sql.Date)df.parse(s); return new Timestamp(d.getTime()); } catch (ParseException e) { throw new SQLException("Bad Timestamp Format: " + s); } } return null; } | public Timestamp getTimestamp(int columnIndex) throws SQLException { String s = getString(columnIndex); DateFormat df = DateFormat.getDateInstance(); if (s != null) { try { java.sql.Date d = (java.sql.Date)df.parse(s); return new Timestamp(d.getTime()); } catch (ParseException e) { throw new SQLException("Bad Timestamp Format: " + s); } } return null; // SQL NULL } | 47293 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47293/6a061da272f04e1463864065f87f1f3fd61d6162/ResultSet.java/buggy/src/interfaces/jdbc/postgresql/ResultSet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
8159,
11940,
12,
474,
14882,
13,
1216,
6483,
202,
95,
202,
202,
780,
272,
273,
4997,
12,
2827,
1016,
1769,
202,
202,
11878,
3013,
273,
18371,
18,
588,
1626,
1442,
5621,
202,
202,
430,
261,
87,
480,
446,
13,
202,
202,
95,
1082,
202,
698,
1082,
202,
95,
9506,
202,
6290,
18,
4669,
18,
1626,
302,
273,
261,
6290,
18,
4669,
18,
1626,
13,
2180,
18,
2670,
12,
87,
1769,
9506,
202,
2463,
394,
8159,
12,
72,
18,
588,
950,
10663,
1082,
202,
97,
1044,
261,
13047,
425,
13,
288,
9506,
202,
12849,
394,
6483,
2932,
6434,
8159,
4077,
30,
315,
397,
272,
1769,
1082,
202,
97,
202,
202,
97,
202,
202,
2463,
446,
31,
202,
202,
759,
3063,
3206,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
8159,
11940,
12,
474,
14882,
13,
1216,
6483,
202,
95,
202,
202,
780,
272,
273,
4997,
12,
2827,
1016,
1769,
202,
202,
11878,
3013,
273,
18371,
18,
588,
1626,
1442,
5621,
202,
202,
430,
261,
87,
480,
446,
13,
202,
202,
95,
1082,
202,
698,
1082,
202,
95,
9506,
202,
6290,
18,
4669,
18,
1626,
302,
273,
261,
6290,
18,
4669,
18,
1626,
13,
2180,
18,
2670,
12,
87,
1769,
9506,
202,
2463,
394,
8159,
12,
72,
18,
588,
950,
10663,
1082,
202,
97,
1044,
261,
13047,
425,
13,
288,
9506,
202,
12849,
394,
6483,
2932,
6434,
8159,
4077,
30,
315,
397,
272,
1769,
1082,
202,
97,
202,
202,
97,
202,
202,
2463,
446,
31,
202,
2
] |
switch(column) { | switch (column) { | public Object getValueAt(int row, int column) { switch(column) { case 0: return expressions.elementAt(row); case 1: return values.elementAt(row); } return ""; } | 54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/b9766e81693411fa600b26b9a0763dcf621b2770/Main.java/clean/js/rhino/toolsrc/org/mozilla/javascript/tools/debugger/Main.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
2366,
861,
12,
474,
1027,
16,
509,
1057,
13,
288,
3639,
1620,
261,
2827,
13,
288,
3639,
648,
374,
30,
5411,
327,
8041,
18,
2956,
861,
12,
492,
1769,
3639,
648,
404,
30,
5411,
327,
924,
18,
2956,
861,
12,
492,
1769,
3639,
289,
3639,
327,
1408,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
2366,
861,
12,
474,
1027,
16,
509,
1057,
13,
288,
3639,
1620,
261,
2827,
13,
288,
3639,
648,
374,
30,
5411,
327,
8041,
18,
2956,
861,
12,
492,
1769,
3639,
648,
404,
30,
5411,
327,
924,
18,
2956,
861,
12,
492,
1769,
3639,
289,
3639,
327,
1408,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
suite.addTest(new ApiTest(jniClassLoader.loadClass(classname))); | Class jniClass = jniClassLoader.loadClass(classname); if (!ignoredItems.isIgnoredClass(jniClass)) { suite.addTest(new ApiTest(jniClass, ignoredItems)); } | public static Test suite() { TestSuite suite = new TestSuite(); try { String jarPath = "../quickfix_cvs/lib/quickfix.jar"; URL[] urls = new URL[] { new URL("file:" + jarPath) }; ClassLoader jniClassLoader = new URLClassLoader(urls, null); JarFile jar = new JarFile(new File(jarPath), false, ZipFile.OPEN_READ); Enumeration entries = jar.entries(); while (entries.hasMoreElements()) { ZipEntry entry = (ZipEntry) entries.nextElement(); String path = entry.getName(); String directory = path.substring(0, path.lastIndexOf('/')); String name = path.substring(path.lastIndexOf('/') + 1); if (directory.equals("quickfix") && !name.equals("")) { String classname = path.substring(0, path.lastIndexOf(".class")).replace('/', '.'); suite.addTest(new ApiTest(jniClassLoader.loadClass(classname))); } } } catch (Exception e) { e.printStackTrace(); } return suite; } | 6791 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6791/85cde20b07abbd94fda393adfe4199363f08c3be/TestApiCompatibility.java/buggy/test/quickfix/TestApiCompatibility.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
7766,
11371,
1435,
288,
3639,
7766,
13587,
11371,
273,
394,
7766,
13587,
5621,
3639,
775,
288,
5411,
514,
7334,
743,
273,
315,
6216,
19525,
904,
67,
71,
6904,
19,
2941,
19,
19525,
904,
18,
11930,
14432,
5411,
1976,
8526,
6903,
273,
394,
1976,
8526,
288,
394,
1976,
2932,
768,
2773,
397,
7334,
743,
13,
289,
31,
5411,
9403,
525,
15834,
7805,
273,
394,
1976,
7805,
12,
10518,
16,
446,
1769,
5411,
15644,
812,
7334,
273,
394,
15644,
812,
12,
2704,
1387,
12,
11930,
743,
3631,
629,
16,
18364,
18,
11437,
67,
6949,
1769,
5411,
13864,
3222,
273,
7334,
18,
8219,
5621,
5411,
1323,
261,
8219,
18,
5332,
7417,
3471,
10756,
288,
7734,
23652,
1241,
273,
261,
9141,
1622,
13,
3222,
18,
4285,
1046,
5621,
7734,
514,
589,
273,
1241,
18,
17994,
5621,
7734,
514,
1867,
273,
589,
18,
28023,
12,
20,
16,
589,
18,
2722,
31985,
2668,
2473,
10019,
7734,
514,
508,
273,
589,
18,
28023,
12,
803,
18,
2722,
31985,
2668,
2473,
13,
397,
404,
1769,
7734,
309,
261,
5149,
18,
14963,
2932,
19525,
904,
7923,
597,
401,
529,
18,
14963,
2932,
6,
3719,
288,
10792,
514,
7479,
273,
589,
18,
28023,
12,
20,
16,
589,
18,
2722,
31985,
2932,
18,
1106,
7923,
2934,
2079,
2668,
19,
2187,
18701,
2611,
1769,
10792,
1659,
525,
15834,
797,
273,
525,
15834,
7805,
18,
945,
797,
12,
18340,
1769,
309,
16051,
24055,
3126,
18,
291,
15596,
797,
12,
78,
15834,
797,
3719,
288,
11371,
18,
1289,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
7766,
11371,
1435,
288,
3639,
7766,
13587,
11371,
273,
394,
7766,
13587,
5621,
3639,
775,
288,
5411,
514,
7334,
743,
273,
315,
6216,
19525,
904,
67,
71,
6904,
19,
2941,
19,
19525,
904,
18,
11930,
14432,
5411,
1976,
8526,
6903,
273,
394,
1976,
8526,
288,
394,
1976,
2932,
768,
2773,
397,
7334,
743,
13,
289,
31,
5411,
9403,
525,
15834,
7805,
273,
394,
1976,
7805,
12,
10518,
16,
446,
1769,
5411,
15644,
812,
7334,
273,
394,
15644,
812,
12,
2704,
1387,
12,
11930,
743,
3631,
629,
16,
18364,
18,
11437,
67,
6949,
1769,
5411,
13864,
3222,
273,
7334,
18,
8219,
5621,
5411,
1323,
261,
8219,
18,
5332,
7417,
3471,
10756,
288,
7734,
23652,
1241,
273,
261,
2
] |
g.setColor(new Color(200, 200, 255)); g.fillOval(w / 3, h / 3, w * 3 / 6, h * 3 / 6); | g.setColor(ActiveObjectPanel.COLOR_WHEN_SERVING_REQUEST); g.fillOval(w/4, 0, w/2, h); | public void paintComponent(Graphics g) { Dimension dim = getSize(); int w = dim.width; int h = dim.height; g.setColor(new Color(200, 200, 255)); g.fillOval(w / 3, h / 3, w * 3 / 6, h * 3 / 6); } | 50951 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50951/2666230e00db643175e81dac0b52f3f8ba384784/Legend.java/buggy/src/org/objectweb/proactive/ic2d/gui/Legend.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
6647,
1071,
918,
12574,
1841,
12,
17558,
314,
13,
288,
5411,
13037,
2464,
273,
9950,
5621,
5411,
509,
341,
273,
2464,
18,
2819,
31,
5411,
509,
366,
273,
2464,
18,
4210,
31,
5411,
314,
18,
542,
2957,
12,
2704,
5563,
12,
6976,
16,
4044,
16,
4561,
10019,
5411,
314,
18,
5935,
51,
1125,
12,
91,
342,
890,
16,
366,
342,
890,
16,
341,
380,
890,
342,
1666,
16,
366,
380,
890,
342,
1666,
1769,
1850,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
6647,
1071,
918,
12574,
1841,
12,
17558,
314,
13,
288,
5411,
13037,
2464,
273,
9950,
5621,
5411,
509,
341,
273,
2464,
18,
2819,
31,
5411,
509,
366,
273,
2464,
18,
4210,
31,
5411,
314,
18,
542,
2957,
12,
2704,
5563,
12,
6976,
16,
4044,
16,
4561,
10019,
5411,
314,
18,
5935,
51,
1125,
12,
91,
342,
890,
16,
366,
342,
890,
16,
341,
380,
890,
342,
1666,
16,
366,
380,
890,
342,
1666,
1769,
1850,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
if (percentDone >= 0 && percentDone <= 100 && percentDone != progressBar.getSelection()){ progressBar.setSelection(percentDone); } | if (percentDone >= 0 && percentDone <= 100 && percentDone != progressBar.getSelection()) { progressBar.setSelection(percentDone); } | void refresh() { if (isDisposed()) return; progressLabel.setText(getMainTitle()); int percentDone = getPercentDone(); JobInfo[] infos = getJobInfos(); if (isRunning()) { if (progressBar == null){ if(percentDone == IProgressMonitor.UNKNOWN){ //Only do it if there is an indeterminate task //There may be no task so we don't want to create it //until we know for sure for (int i = 0; i < infos.length; i++) { if(infos[i].hasTaskInfo() && infos[i].getTaskInfo().totalWork == IProgressMonitor.UNKNOWN){ createProgressBar(SWT.INDETERMINATE); break; } } } else{ createProgressBar(SWT.NONE); progressBar.setMinimum(0); progressBar.setMaximum(100); } } // Protect against bad counters if (percentDone >= 0 && percentDone <= 100 && percentDone != progressBar.getSelection()){ progressBar.setSelection(percentDone); } } else if (isCompleted()) { if (progressBar != null) { progressBar.dispose(); progressBar = null; } setLayoutsForNoProgress(); actionButton.setImage(JFaceResources .getImage(CLEAR_FINISHED_JOB_KEY)); actionButton.setDisabledImage(JFaceResources .getImage(DISABLED_CLEAR_FINISHED_JOB_KEY)); } int taskCount = 0; for (int i = 0; i < infos.length; i++) { JobInfo jobInfo = infos[i]; if (jobInfo.hasTaskInfo()) { String taskString = jobInfo.getTaskInfo().getTaskName(); String subTaskString = null; Object[] jobChildren = jobInfo.getChildren(); if (jobChildren.length > 0) subTaskString = ((JobTreeElement) jobChildren[0]) .getDisplayString(); if (subTaskString != null) { if (taskString == null) taskString = subTaskString; else taskString = NLS.bind( ProgressMessages.JobInfo_DoneNoProgressMessage, taskString, subTaskString); } if (taskString != null) { setLinkText(infos[i].getJob(), taskString, taskCount); taskCount++; } } else {// Check for the finished job state Job job = jobInfo.getJob(); if (job.getResult() != null) { IStatus result = job.getResult(); String message = EMPTY_STRING; if(result != null) message = result.getMessage(); setLinkText(job,message, i); taskCount++; } } setColor(i); } // Remove completed tasks if (taskCount < taskEntries.size()) { for (int i = taskCount; i < taskEntries.size(); i++) { ((Link) taskEntries.get(i)).dispose(); } taskEntries = taskEntries.subList(0, taskCount); } } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/02901f3a15fd4a62722aa6cfeff6b75a3f17f252/ProgressInfoItem.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ProgressInfoItem.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
4460,
1435,
288,
202,
202,
430,
261,
291,
1669,
7423,
10756,
1082,
202,
2463,
31,
202,
202,
8298,
2224,
18,
542,
1528,
12,
588,
6376,
4247,
10663,
202,
202,
474,
5551,
7387,
273,
22612,
2998,
7387,
5621,
202,
202,
2278,
966,
8526,
10626,
273,
13024,
7655,
5621,
202,
202,
430,
261,
291,
7051,
10756,
288,
1082,
202,
430,
261,
8298,
5190,
422,
446,
15329,
9506,
202,
430,
12,
8849,
7387,
422,
467,
5491,
7187,
18,
14737,
15329,
6862,
202,
759,
3386,
741,
518,
309,
1915,
353,
392,
1547,
4443,
340,
1562,
6862,
202,
759,
9828,
2026,
506,
1158,
1562,
1427,
732,
2727,
1404,
2545,
358,
752,
518,
4405,
202,
759,
12198,
732,
5055,
364,
3071,
6862,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
10626,
18,
2469,
31,
277,
27245,
288,
25083,
202,
430,
12,
18227,
63,
77,
8009,
5332,
2174,
966,
1435,
597,
10626,
63,
77,
8009,
588,
2174,
966,
7675,
4963,
2421,
422,
467,
5491,
7187,
18,
14737,
15329,
6862,
1082,
202,
2640,
31547,
12,
55,
8588,
18,
2356,
1584,
654,
6236,
1777,
1769,
6862,
1082,
202,
8820,
31,
25083,
202,
97,
6862,
202,
97,
9506,
202,
97,
9506,
202,
12107,
95,
6862,
202,
2640,
31547,
12,
55,
8588,
18,
9826,
1769,
6862,
202,
8298,
5190,
18,
542,
13042,
12,
20,
1769,
6862,
202,
8298,
5190,
18,
542,
13528,
12,
6625,
1769,
9506,
202,
97,
1082,
202,
97,
1082,
202,
759,
1186,
88,
386,
5314,
5570,
13199,
1082,
202,
430,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6459,
4460,
1435,
288,
202,
202,
430,
261,
291,
1669,
7423,
10756,
1082,
202,
2463,
31,
202,
202,
8298,
2224,
18,
542,
1528,
12,
588,
6376,
4247,
10663,
202,
202,
474,
5551,
7387,
273,
22612,
2998,
7387,
5621,
202,
202,
2278,
966,
8526,
10626,
273,
13024,
7655,
5621,
202,
202,
430,
261,
291,
7051,
10756,
288,
1082,
202,
430,
261,
8298,
5190,
422,
446,
15329,
9506,
202,
430,
12,
8849,
7387,
422,
467,
5491,
7187,
18,
14737,
15329,
6862,
202,
759,
3386,
741,
518,
309,
1915,
353,
392,
1547,
4443,
340,
1562,
6862,
202,
759,
9828,
2026,
506,
1158,
1562,
1427,
732,
2727,
1404,
2545,
358,
752,
518,
4405,
202,
759,
12198,
732,
5055,
364,
3071,
6862,
2
] |
final Boolean doesVersionExist; | void handleArtifactPublished(final UUID uniqueId, final Long versionId, final String name, final UUID artifactUniqueId, final Long artifactVersionId, final String artifactName, final ArtifactType artifactType, final String artifactChecksum, final String artifactStreamId, final JabberId publishedBy, final Calendar publishedOn) { logger.logApiId(); logger.logVariable("uniqueId", uniqueId); logger.logVariable("versionId", versionId); logger.logVariable("name", name); logger.logVariable("artifactUniqueId", artifactUniqueId); logger.logVariable("artifactVersionId", artifactVersionId); logger.logVariable("artifactName", artifactName); logger.logVariable("artifactType", artifactType); logger.logVariable("artifactChecksum", artifactChecksum); logger.logVariable("artifactStreamId", artifactStreamId); logger.logVariable("publishedBy", publishedBy); logger.logVariable("publishedOn", publishedOn); try { assertIsNotLocalUserId(publishedBy); // determine the existance of the container and the version. final InternalArtifactModel artifactModel = getInternalArtifactModel(); final Boolean doesExist = artifactModel.doesExist(uniqueId); final Boolean doesVersionExist; final Long containerId; final Container container; final ContainerVersion version; if (doesExist) { containerId = artifactModel.readId(uniqueId); container = read(containerId); doesVersionExist = artifactModel.doesVersionExist(containerId, versionId); if (doesVersionExist) { version = readVersion(container.getId(), versionId); } else { version = createVersion(container.getId(), versionId, publishedBy, publishedOn); } } else { doesVersionExist = Boolean.FALSE; // ensure the published by user exists locally getInternalUserModel().readLazyCreate(publishedBy); container = new Container(); container.setCreatedBy(publishedBy); container.setCreatedOn(publishedOn); container.setName(name); container.setState(ArtifactState.ACTIVE); container.setType(ArtifactType.CONTAINER); container.setUniqueId(uniqueId); container.setUpdatedBy(container.getCreatedBy()); container.setUpdatedOn(container.getCreatedOn()); // create containerIO.create(container); // create version version = createVersion(container.getId(), versionId, publishedBy, publishedOn); // create remote info artifactModel.createRemoteInfo(container.getId(), publishedBy, container.getCreatedOn()); // index getIndexModel().indexContainer(container.getId()); } // handle the artifact by specific type final ArtifactVersion artifactVersion; switch(artifactType) { case DOCUMENT: artifactVersion = handleDocumentPublished(artifactUniqueId, artifactVersionId, artifactName, artifactChecksum, artifactStreamId, publishedBy, publishedOn); break; case CONTAINER: default: throw Assert.createUnreachable("UNKNOWN ARTIFACT TYPE"); } containerIO.addVersion(version.getArtifactId(), version.getVersionId(), artifactVersion.getArtifactId(), artifactVersion.getVersionId(), artifactVersion.getArtifactType()); final Container postPublish = read(container.getId()); final ContainerVersion postPublishVersion = readVersion(version.getArtifactId(), version.getVersionId()); notifyContainerPublished(postPublish, null, postPublishVersion, remoteEventGenerator); } catch(final Throwable t) { throw translateError(t); } } | 53635 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53635/b48d5f12cfbd55a079090b6bb3853ec3e1ca1f28/ContainerModelImpl.java/clean/local/model/src/main/java/com/thinkparity/ophelia/model/container/ContainerModelImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
1640,
7581,
16451,
12,
6385,
5866,
22345,
16,
727,
3407,
15287,
16,
5411,
727,
514,
508,
16,
727,
5866,
6462,
24174,
16,
5411,
727,
3407,
6462,
28039,
16,
727,
514,
6462,
461,
16,
5411,
727,
14022,
559,
6462,
559,
16,
727,
514,
6462,
10723,
16,
5411,
727,
514,
6462,
1228,
548,
16,
727,
804,
378,
744,
548,
9487,
858,
16,
5411,
727,
5542,
9487,
1398,
13,
288,
3639,
1194,
18,
1330,
21592,
5621,
3639,
1194,
18,
1330,
3092,
2932,
6270,
548,
3113,
22345,
1769,
3639,
1194,
18,
1330,
3092,
2932,
1589,
548,
3113,
15287,
1769,
3639,
1194,
18,
1330,
3092,
2932,
529,
3113,
508,
1769,
3639,
1194,
18,
1330,
3092,
2932,
17706,
24174,
3113,
6462,
24174,
1769,
3639,
1194,
18,
1330,
3092,
2932,
17706,
28039,
3113,
6462,
28039,
1769,
3639,
1194,
18,
1330,
3092,
2932,
17706,
461,
3113,
6462,
461,
1769,
3639,
1194,
18,
1330,
3092,
2932,
17706,
559,
3113,
6462,
559,
1769,
3639,
1194,
18,
1330,
3092,
2932,
17706,
10723,
3113,
6462,
10723,
1769,
3639,
1194,
18,
1330,
3092,
2932,
17706,
1228,
548,
3113,
6462,
1228,
548,
1769,
3639,
1194,
18,
1330,
3092,
2932,
12614,
858,
3113,
9487,
858,
1769,
3639,
1194,
18,
1330,
3092,
2932,
12614,
1398,
3113,
9487,
1398,
1769,
3639,
775,
288,
5411,
1815,
28041,
2042,
10502,
12,
12614,
858,
1769,
5411,
368,
4199,
326,
1005,
1359,
434,
326,
1478,
471,
326,
1177,
18,
5411,
727,
3186,
7581,
1488,
6462,
1488,
273,
16918,
7581,
1488,
5621,
5411,
727,
3411,
1552,
4786,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
1640,
7581,
16451,
12,
6385,
5866,
22345,
16,
727,
3407,
15287,
16,
5411,
727,
514,
508,
16,
727,
5866,
6462,
24174,
16,
5411,
727,
3407,
6462,
28039,
16,
727,
514,
6462,
461,
16,
5411,
727,
14022,
559,
6462,
559,
16,
727,
514,
6462,
10723,
16,
5411,
727,
514,
6462,
1228,
548,
16,
727,
804,
378,
744,
548,
9487,
858,
16,
5411,
727,
5542,
9487,
1398,
13,
288,
3639,
1194,
18,
1330,
21592,
5621,
3639,
1194,
18,
1330,
3092,
2932,
6270,
548,
3113,
22345,
1769,
3639,
1194,
18,
1330,
3092,
2932,
1589,
548,
3113,
15287,
1769,
3639,
1194,
18,
1330,
3092,
2932,
529,
3113,
508,
1769,
3639,
1194,
18,
1330,
3092,
2932,
17706,
24174,
3113,
6462,
24174,
1769,
2
] | |
addedSymbols = ScannerConfigUtil.scAddSymbolsSet2SymbolEntryMap(sumSymbols, symbols, false); | addedSymbols = ScannerConfigUtil.scAddSymbolsList2SymbolEntryMap(sumSymbols, symbols, false); | private boolean scannerConfigNeedsUpdate(MakeScannerInfo makeScanInfo, String projectName) { // TODO : VMIR to implement other variants List includes = (List) discoveredIncludes.get(projectName); List dSymbols = (List) discoveredSymbols.get(projectName); if (includes == null && dSymbols == null) return false; Set symbols = new HashSet(dSymbols); // Step 1. Add discovered scanner config to the existing discovered scanner config // add the includes from the latest discovery boolean addedIncludes = false; List sumIncludes = (List) sumDiscoveredIncludes.get(projectName); if (sumIncludes == null) { sumIncludes = new ArrayList(includes); sumDiscoveredIncludes.put(projectName, sumIncludes); addedIncludes = true; } else { for (Iterator i = includes.iterator(); i.hasNext(); ) { String include = (String) i.next(); if (!sumIncludes.contains(include)) { addedIncludes |= sumIncludes.add(include); } } } // try to translate cygpaths to absolute paths List finalSumIncludes = translateIncludePaths(sumIncludes); // add the symbols from the latest discovery boolean addedSymbols = false; Map sumSymbols = (Map) sumDiscoveredSymbols.get(projectName); if (sumSymbols == null) { sumSymbols = new HashMap(); sumDiscoveredSymbols.put(projectName, sumSymbols); } addedSymbols = ScannerConfigUtil.scAddSymbolsSet2SymbolEntryMap(sumSymbols, symbols, false); // Step 2. Get project's scanner config String[] persistedIncludes = makeScanInfo.getIncludePaths(); Map persistedSymbols = makeScanInfo.getDefinedSymbols(); // TODO VMIR this is likely to change when new UI is introduced // Step 3. Merge scanner config from steps 1 and 2 List candidateIncludes = new ArrayList(Arrays.asList(persistedIncludes)); for (Iterator i = finalSumIncludes.iterator(); i.hasNext(); ) { String include = (String) i.next(); if (!candidateIncludes.contains(include)) { addedIncludes |= candidateIncludes.add(include); } } Map candidateSymbols = new HashMap(sumSymbols); Set persistedSymbolsSet = ScannerConfigUtil.scSymbolsMap2Set(persistedSymbols); addedSymbols |= ScannerConfigUtil.scAddSymbolsSet2SymbolEntryMap(candidateSymbols, persistedSymbolsSet, true); // Step 4. Set resulting scanner config makeScanInfo.setIncludePaths((String[])candidateIncludes.toArray(new String[candidateIncludes.size()])); makeScanInfo.setPreprocessorSymbols((String[])ScannerConfigUtil. scSymbolsSymbolEntryMap2Set(candidateSymbols).toArray(new String[candidateSymbols.size()])); // invalidate discovered include paths and symbol definitions discoveredIncludes.put(projectName, null); discoveredSymbols.put(projectName, null); return (addedIncludes | addedSymbols); } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/e75bafa4a4e6c14b60634418bc08cee3200fcd49/ScannerInfoCollector.java/clean/build/org.eclipse.cdt.make.core/src/org/eclipse/cdt/make/internal/core/scannerconfig/ScannerInfoCollector.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
7683,
809,
26419,
1891,
12,
6464,
11338,
966,
1221,
7972,
966,
16,
514,
17234,
13,
288,
202,
202,
759,
2660,
294,
776,
7492,
54,
358,
2348,
1308,
12935,
202,
202,
682,
6104,
273,
261,
682,
13,
18238,
16815,
18,
588,
12,
4406,
461,
1769,
202,
202,
682,
302,
14821,
273,
261,
682,
13,
18238,
14821,
18,
588,
12,
4406,
461,
1769,
202,
202,
430,
261,
18499,
422,
446,
597,
302,
14821,
422,
446,
13,
1082,
202,
2463,
629,
31,
202,
202,
694,
7963,
273,
394,
6847,
12,
72,
14821,
1769,
9506,
202,
759,
8693,
404,
18,
1436,
18238,
7683,
642,
358,
326,
2062,
18238,
7683,
642,
3196,
202,
759,
527,
326,
6104,
628,
326,
4891,
11030,
202,
202,
6494,
3096,
16815,
273,
629,
31,
202,
202,
682,
2142,
16815,
273,
261,
682,
13,
2142,
28851,
16815,
18,
588,
12,
4406,
461,
1769,
202,
202,
430,
261,
1364,
16815,
422,
446,
13,
288,
1082,
202,
1364,
16815,
273,
394,
2407,
12,
18499,
1769,
1082,
202,
1364,
28851,
16815,
18,
458,
12,
4406,
461,
16,
2142,
16815,
1769,
1082,
202,
9665,
16815,
273,
638,
31,
202,
202,
97,
202,
202,
12107,
288,
1082,
202,
1884,
261,
3198,
277,
273,
6104,
18,
9838,
5621,
277,
18,
5332,
2134,
5621,
262,
288,
9506,
202,
780,
2341,
273,
261,
780,
13,
277,
18,
4285,
5621,
9506,
202,
430,
16051,
1364,
16815,
18,
12298,
12,
6702,
3719,
288,
6862,
202,
9665,
16815,
5626,
2142,
16815,
18,
1289,
12,
6702,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
7683,
809,
26419,
1891,
12,
6464,
11338,
966,
1221,
7972,
966,
16,
514,
17234,
13,
288,
202,
202,
759,
2660,
294,
776,
7492,
54,
358,
2348,
1308,
12935,
202,
202,
682,
6104,
273,
261,
682,
13,
18238,
16815,
18,
588,
12,
4406,
461,
1769,
202,
202,
682,
302,
14821,
273,
261,
682,
13,
18238,
14821,
18,
588,
12,
4406,
461,
1769,
202,
202,
430,
261,
18499,
422,
446,
597,
302,
14821,
422,
446,
13,
1082,
202,
2463,
629,
31,
202,
202,
694,
7963,
273,
394,
6847,
12,
72,
14821,
1769,
9506,
202,
759,
8693,
404,
18,
1436,
18238,
7683,
642,
358,
326,
2062,
18238,
7683,
642,
3196,
202,
759,
527,
326,
6104,
628,
326,
4891,
2
] |
Component destination) | Component destination) | public static Point convertPoint(Component source, int x, int y, Component destination) { Point pt = new Point(x, y); if (source == null && destination == null) return pt; if (source == null) source = getRoot(destination); if (destination == null) destination = getRoot(source); convertPointToScreen(pt, source); convertPointFromScreen(pt, destination); return pt; } | 47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/4b45eff077986f9697953d5599679db4cc52a0d5/AWTUtilities.java/buggy/gnu/java/awt/AWTUtilities.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
4686,
1765,
2148,
12,
1841,
1084,
16,
509,
619,
16,
509,
677,
16,
6862,
6862,
6862,
25083,
5435,
2929,
13,
225,
288,
565,
4686,
5818,
273,
394,
4686,
12,
92,
16,
677,
1769,
565,
309,
261,
3168,
422,
446,
597,
2929,
422,
446,
13,
1377,
327,
5818,
31,
565,
309,
261,
3168,
422,
446,
13,
1377,
1084,
273,
7656,
12,
10590,
1769,
565,
309,
261,
10590,
422,
446,
13,
1377,
2929,
273,
7656,
12,
3168,
1769,
565,
1765,
2148,
774,
7956,
12,
337,
16,
1084,
1769,
565,
1765,
2148,
1265,
7956,
12,
337,
16,
2929,
1769,
565,
327,
5818,
31,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
4686,
1765,
2148,
12,
1841,
1084,
16,
509,
619,
16,
509,
677,
16,
6862,
6862,
6862,
25083,
5435,
2929,
13,
225,
288,
565,
4686,
5818,
273,
394,
4686,
12,
92,
16,
677,
1769,
565,
309,
261,
3168,
422,
446,
597,
2929,
422,
446,
13,
1377,
327,
5818,
31,
565,
309,
261,
3168,
422,
446,
13,
1377,
1084,
273,
7656,
12,
10590,
1769,
565,
309,
261,
10590,
422,
446,
13,
1377,
2929,
273,
7656,
12,
3168,
1769,
565,
1765,
2148,
774,
7956,
12,
337,
16,
1084,
1769,
565,
1765,
2148,
1265,
7956,
12,
337,
16,
2929,
1769,
565,
327,
5818,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public String getPageWidth( ); | public DimensionType getPageWidth( ); | public String getPageWidth( ); | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/83de512a7dc3a128ad54fa2607c01f0ef928234c/IPageContent.java/buggy/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/content/IPageContent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
8957,
2384,
12,
11272,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
8957,
2384,
12,
11272,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
public basic(String args[]) throws ClassNotFoundException, FileNotFoundException, IOException, SQLException { String url = args[0]; String usr = args[1]; String pwd = args[2]; // Load the driver Class.forName("org.postgresql.Driver"); // Connect to database System.out.println("Connecting to Database URL = " + url); db = DriverManager.getConnection(url, usr, pwd); System.out.println("Connected...Now creating a statement"); st = db.createStatement(); // Clean up the database (in case we failed earlier) then initialise cleanup(); // Now run tests using JDBC methods doexample(); // Clean up the database cleanup(); // Finally close the database System.out.println("Now closing the connection"); st.close(); db.close(); //throw postgresql.Driver.notImplemented(); } | 52522 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52522/8439a83d84fb159a790ed2b6d14d4151b9890857/basic.java/clean/src/interfaces/jdbc/example/basic.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
5337,
12,
780,
833,
63,
5717,
1216,
10403,
16,
13707,
16,
1860,
16,
6483,
225,
288,
565,
514,
880,
273,
833,
63,
20,
15533,
565,
514,
16575,
273,
833,
63,
21,
15533,
565,
514,
14720,
273,
833,
63,
22,
15533,
3639,
368,
4444,
326,
3419,
565,
1659,
18,
1884,
461,
2932,
3341,
18,
2767,
24330,
18,
4668,
8863,
3639,
368,
8289,
358,
2063,
565,
2332,
18,
659,
18,
8222,
2932,
30049,
358,
5130,
1976,
273,
315,
397,
880,
1769,
565,
1319,
273,
9396,
1318,
18,
588,
1952,
12,
718,
16,
16575,
16,
14720,
1769,
3639,
2332,
18,
659,
18,
8222,
2932,
8932,
2777,
8674,
4979,
279,
3021,
8863,
565,
384,
273,
1319,
18,
2640,
3406,
5621,
3639,
368,
9645,
731,
326,
2063,
261,
267,
648,
732,
2535,
13805,
13,
1508,
21301,
565,
6686,
5621,
3639,
368,
4494,
1086,
7434,
1450,
16364,
2590,
565,
741,
8236,
5621,
3639,
368,
9645,
731,
326,
2063,
565,
6686,
5621,
3639,
368,
15768,
1746,
326,
2063,
565,
2332,
18,
659,
18,
8222,
2932,
8674,
7647,
326,
1459,
8863,
565,
384,
18,
4412,
5621,
565,
1319,
18,
4412,
5621,
3639,
368,
12849,
1603,
24330,
18,
4668,
18,
902,
8644,
5621,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
5337,
12,
780,
833,
63,
5717,
1216,
10403,
16,
13707,
16,
1860,
16,
6483,
225,
288,
565,
514,
880,
273,
833,
63,
20,
15533,
565,
514,
16575,
273,
833,
63,
21,
15533,
565,
514,
14720,
273,
833,
63,
22,
15533,
3639,
368,
4444,
326,
3419,
565,
1659,
18,
1884,
461,
2932,
3341,
18,
2767,
24330,
18,
4668,
8863,
3639,
368,
8289,
358,
2063,
565,
2332,
18,
659,
18,
8222,
2932,
30049,
358,
5130,
1976,
273,
315,
397,
880,
1769,
565,
1319,
273,
9396,
1318,
18,
588,
1952,
12,
718,
16,
16575,
16,
14720,
1769,
3639,
2332,
18,
659,
18,
8222,
2932,
8932,
2777,
8674,
4979,
279,
3021,
8863,
565,
384,
273,
1319,
18,
2640,
3406,
5621,
3639,
2
] | ||
if ((flags & 0x00004000) != 0 && resultLength >= 40) { | long contextH = -1; long contextL = -1; boolean containsContext = false; if (targetNameOffset != 32 && resultLength >= 40) { | public void parseChallenge(String challenge){ byte[] challengeBase64Bytes = HTTPAuthentication.getBytes(challenge, DEFAULT_CHARSET); byte[] resultBuffer = new byte[challengeBase64Bytes.length]; int resultLength = SVNBase64.base64ToByteArray(new StringBuffer(new String(challengeBase64Bytes)), resultBuffer); myNonce = new byte[8]; for (int i = 0; i < 8; i++) { myNonce[i] = resultBuffer[i + 24]; } byte[] flagBytes = new byte[4]; for (int i = 0; i < 4; i++) { flagBytes[i] = resultBuffer[i + 20]; } long flags = fromLong(flagBytes); //check for local call if ((flags & 0x00004000) != 0 && resultLength >= 40) { byte[] contextHBytes = new byte[4]; for (int i = 0; i < 4; i++) { contextHBytes[i] = resultBuffer[i + 32]; } long contextH = fromLong(contextHBytes); if (contextH != 0) { myIsNegotiateLocalCall = true; } else { myIsNegotiateLocalCall = false; } } else { myIsNegotiateLocalCall = false; } } | 5695 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5695/6d6a01181844ebbf5b8ca0899185d3eb8ee8f064/HTTPNTLMAuthentication.java/clean/javasvn/src/org/tmatesoft/svn/core/internal/io/dav/http/HTTPNTLMAuthentication.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1109,
18359,
12,
780,
12948,
15329,
3639,
1160,
8526,
12948,
2171,
1105,
2160,
273,
2239,
6492,
18,
588,
2160,
12,
25092,
16,
3331,
67,
26977,
1769,
3639,
1160,
8526,
563,
1892,
273,
394,
1160,
63,
25092,
2171,
1105,
2160,
18,
2469,
15533,
3639,
509,
563,
1782,
273,
29537,
50,
2171,
1105,
18,
1969,
1105,
774,
8826,
12,
2704,
6674,
12,
2704,
514,
12,
25092,
2171,
1105,
2160,
13,
3631,
563,
1892,
1769,
3639,
3399,
13611,
273,
394,
1160,
63,
28,
15533,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1725,
31,
277,
27245,
288,
5411,
3399,
13611,
63,
77,
65,
273,
563,
1892,
63,
77,
397,
4248,
15533,
3639,
289,
3639,
1160,
8526,
2982,
2160,
273,
394,
1160,
63,
24,
15533,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1059,
31,
277,
27245,
288,
5411,
2982,
2160,
63,
77,
65,
273,
563,
1892,
63,
77,
397,
4200,
15533,
3639,
289,
3639,
1525,
2943,
273,
628,
3708,
12,
6420,
2160,
1769,
3639,
368,
1893,
364,
1191,
745,
3639,
1525,
819,
44,
273,
300,
21,
31,
1525,
819,
48,
273,
300,
21,
31,
1250,
1914,
1042,
273,
629,
31,
309,
261,
3299,
461,
2335,
480,
3847,
597,
563,
1782,
1545,
8063,
13,
288,
5411,
1160,
8526,
819,
44,
2160,
273,
394,
1160,
63,
24,
15533,
5411,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1059,
31,
277,
27245,
288,
7734,
819,
44,
2160,
63,
77,
65,
273,
563,
1892,
63,
77,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1109,
18359,
12,
780,
12948,
15329,
3639,
1160,
8526,
12948,
2171,
1105,
2160,
273,
2239,
6492,
18,
588,
2160,
12,
25092,
16,
3331,
67,
26977,
1769,
3639,
1160,
8526,
563,
1892,
273,
394,
1160,
63,
25092,
2171,
1105,
2160,
18,
2469,
15533,
3639,
509,
563,
1782,
273,
29537,
50,
2171,
1105,
18,
1969,
1105,
774,
8826,
12,
2704,
6674,
12,
2704,
514,
12,
25092,
2171,
1105,
2160,
13,
3631,
563,
1892,
1769,
3639,
3399,
13611,
273,
394,
1160,
63,
28,
15533,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
1725,
31,
277,
27245,
288,
5411,
3399,
13611,
63,
77,
65,
273,
563,
1892,
63,
77,
397,
4248,
15533,
3639,
289,
3639,
1160,
8526,
2982,
2
] |
MonoReconciler reconciler= new MonoReconciler(new CReconcilingStrategy(fEditor), false); | MonoReconciler reconciler= new MonoReconciler(new CReconcilingStrategy(fTextEditor), false); | public IReconciler getReconciler(ISourceViewer sourceViewer) { if (fEditor != null && fEditor.isEditable()) { //Delay changed and non-incremental reconciler used due to //PR 130089 MonoReconciler reconciler= new MonoReconciler(new CReconcilingStrategy(fEditor), false); reconciler.setDelay(500); return reconciler; } return null; } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/0482b3954404fd528d629e737114a70d018a10db/CSourceViewerConfiguration.java/clean/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/CSourceViewerConfiguration.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
426,
11504,
2895,
5561,
11504,
2895,
12,
45,
1830,
18415,
1084,
18415,
13,
288,
202,
202,
430,
261,
74,
6946,
480,
446,
597,
284,
6946,
18,
291,
15470,
10756,
288,
1082,
202,
759,
6763,
3550,
471,
1661,
17,
15016,
287,
19078,
2895,
1399,
6541,
358,
1875,
202,
759,
8025,
5958,
713,
6675,
1082,
202,
11415,
83,
426,
11504,
2895,
19078,
2895,
33,
394,
9041,
83,
426,
11504,
2895,
12,
2704,
385,
426,
11504,
4973,
4525,
12,
74,
6946,
3631,
629,
1769,
1082,
202,
266,
11504,
2895,
18,
542,
6763,
12,
12483,
1769,
1082,
202,
2463,
19078,
2895,
31,
202,
202,
97,
202,
202,
2463,
446,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
426,
11504,
2895,
5561,
11504,
2895,
12,
45,
1830,
18415,
1084,
18415,
13,
288,
202,
202,
430,
261,
74,
6946,
480,
446,
597,
284,
6946,
18,
291,
15470,
10756,
288,
1082,
202,
759,
6763,
3550,
471,
1661,
17,
15016,
287,
19078,
2895,
1399,
6541,
358,
1875,
202,
759,
8025,
5958,
713,
6675,
1082,
202,
11415,
83,
426,
11504,
2895,
19078,
2895,
33,
394,
9041,
83,
426,
11504,
2895,
12,
2704,
385,
426,
11504,
4973,
4525,
12,
74,
6946,
3631,
629,
1769,
1082,
202,
266,
11504,
2895,
18,
542,
6763,
12,
12483,
1769,
1082,
202,
2463,
19078,
2895,
31,
202,
202,
97,
202,
202,
2463,
446,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] |
try { | if ( file.canRead() && ! file.isDirectory() ) { try { | public JComponent getFullView() { if ( fullView == null ) { DetailViewer dv = new DetailViewer( this ); fullView = dv.getComponent(); dv.addSeparator(); dv.addKeyedItem( "Size", file.length() ); dv.addKeyedItem( "Last modified", new Date( file.lastModified() ).toString() ); dv.addKeyedItem( "Read access", file.canRead() ? "yes" : "no" ); dv.addKeyedItem( "Write access", file.canWrite() ? "yes" : "no" ); /* If it looks like a text file, add the option to view the * content. */ try { /* Use a DataSource to characterise it, making sure that it * doesn't try to decompress the thing. */ DataSource datsrc = new FileDataSource( file ) .forceCompression( Compression.NONE ); boolean isText = datsrc.isASCII(); boolean isHTML = datsrc.isHTML(); datsrc.close(); // HTML viewing does work but there are problems with it; // for one thing I can't make the HTML load asynchronously. // If I do have HTML viewing, I'm not sure if it should be // here or (more likely) an HTMLDataNode. // if ( isHTML ) { // dv.addPane( "HTML view", new ComponentMaker() { // public JComponent getComponent() throws IOException { // return new HTMLViewer( file ); // } // } ); // } if ( isText ) { dv.addPane( "File text", new ComponentMaker() { public JComponent getComponent() throws IOException { return new TextViewer( new FileReader( file ) ); } } ); } else { dv.addPane( "Hex dump", new ComponentMaker() { public JComponent getComponent() throws IOException { RandomAccessFile raf = new RandomAccessFile( file, "r" ); return new HexDumper( raf ); } } ); } } catch ( final IOException e ) { dv.addPane( "Error reading file", new ComponentMaker() { public JComponent getComponent() { return new TextViewer( e ); } } ); } } return fullView; } | 48494 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48494/8b3f8610efbfee556558fb616a253f56118767a8/FileDataNode.java/clean/treeview/src/main/uk/ac/starlink/treeview/FileDataNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
29058,
10208,
1767,
1435,
288,
3639,
309,
261,
1983,
1767,
422,
446,
262,
288,
5411,
27931,
18415,
12494,
273,
394,
27931,
18415,
12,
333,
11272,
5411,
1983,
1767,
273,
12494,
18,
588,
1841,
5621,
5411,
12494,
18,
1289,
6581,
5621,
5411,
12494,
18,
1289,
653,
329,
1180,
12,
315,
1225,
3113,
585,
18,
2469,
1435,
11272,
5411,
12494,
18,
1289,
653,
329,
1180,
12,
315,
3024,
4358,
3113,
1171,
9079,
394,
2167,
12,
585,
18,
2722,
4575,
1435,
262,
18,
10492,
1435,
11272,
5411,
12494,
18,
1289,
653,
329,
1180,
12,
315,
1994,
2006,
3113,
585,
18,
4169,
1994,
1435,
692,
315,
9707,
6,
294,
315,
2135,
6,
11272,
5411,
12494,
18,
1289,
653,
329,
1180,
12,
315,
3067,
2006,
3113,
585,
18,
4169,
3067,
1435,
692,
315,
9707,
6,
294,
315,
2135,
6,
11272,
5411,
1748,
971,
518,
10192,
3007,
279,
977,
585,
16,
527,
326,
1456,
358,
1476,
326,
2398,
380,
913,
18,
1195,
5411,
309,
261,
585,
18,
4169,
1994,
1435,
597,
401,
585,
18,
291,
2853,
1435,
262,
288,
775,
288,
7734,
1748,
2672,
279,
12806,
358,
3351,
784,
518,
16,
10480,
3071,
716,
518,
1171,
380,
3302,
1404,
775,
358,
16824,
326,
7757,
18,
1195,
7734,
12806,
1150,
4816,
273,
394,
1387,
8597,
12,
585,
262,
4766,
282,
263,
5734,
15270,
12,
21139,
18,
9826,
11272,
7734,
1250,
353,
1528,
273,
1150,
4816,
18,
291,
13756,
5621,
7734,
1250,
353,
4870,
273,
1150,
4816,
18,
291,
4870,
5621,
7734,
1150,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
29058,
10208,
1767,
1435,
288,
3639,
309,
261,
1983,
1767,
422,
446,
262,
288,
5411,
27931,
18415,
12494,
273,
394,
27931,
18415,
12,
333,
11272,
5411,
1983,
1767,
273,
12494,
18,
588,
1841,
5621,
5411,
12494,
18,
1289,
6581,
5621,
5411,
12494,
18,
1289,
653,
329,
1180,
12,
315,
1225,
3113,
585,
18,
2469,
1435,
11272,
5411,
12494,
18,
1289,
653,
329,
1180,
12,
315,
3024,
4358,
3113,
1171,
9079,
394,
2167,
12,
585,
18,
2722,
4575,
1435,
262,
18,
10492,
1435,
11272,
5411,
12494,
18,
1289,
653,
329,
1180,
12,
315,
1994,
2006,
3113,
585,
18,
4169,
1994,
1435,
692,
315,
9707,
6,
294,
315,
2135,
6,
11272,
5411,
12494,
18,
1289,
653,
329,
1180,
12,
2
] |
public void disposeComponent() { if (myTimer != null) { myTimer.stop(); myTimer = null; } } | 56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/4972de74093751aa507c641e7a852c8feb15d5e3/ActionManagerImpl.java/clean/action-system/impl/com/intellij/openapi/actionSystem/impl/ActionManagerImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
2251,
4150,
1841,
1435,
95,
430,
12,
4811,
6777,
5,
33,
2011,
15329,
4811,
6777,
18,
5681,
5621,
4811,
6777,
33,
2011,
31,
9090,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
2251,
4150,
1841,
1435,
95,
430,
12,
4811,
6777,
5,
33,
2011,
15329,
4811,
6777,
18,
5681,
5621,
4811,
6777,
33,
2011,
31,
9090,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100
] | ||
{} | { return null; } | public Object getParsedDefaultValue() { if (_defaultValue != null) { try { switch (_typeCode) { case Types.TINYINT: case Types.SMALLINT: return new Short(_defaultValue); case Types.INTEGER: return new Integer(_defaultValue); case Types.BIGINT: return new Long(_defaultValue); case Types.DECIMAL: case Types.NUMERIC: return new BigDecimal(_defaultValue); case Types.REAL: return new Float(_defaultValue); case Types.DOUBLE: case Types.FLOAT: return new Double(_defaultValue); case Types.DATE: return Date.valueOf(_defaultValue); case Types.TIME: return Time.valueOf(_defaultValue); case Types.TIMESTAMP: return Timestamp.valueOf(_defaultValue); case Types.BIT: return ConvertUtils.convert(_defaultValue, Boolean.class); default: if (Jdbc3Utils.supportsJava14JdbcTypes() && (_typeCode == Jdbc3Utils.determineBooleanTypeCode())) { return ConvertUtils.convert(_defaultValue, Boolean.class); } break; } } catch (NumberFormatException ex) {} catch (IllegalArgumentException ex) {} } return _defaultValue; } | 1224 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1224/90ae3bb67e0608ac43d591663ba238c23ed68500/Column.java/buggy/src/java/org/apache/ddlutils/model/Column.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
25406,
15646,
1435,
565,
288,
3639,
309,
261,
67,
27652,
480,
446,
13,
3639,
288,
5411,
775,
5411,
288,
7734,
1620,
261,
67,
723,
1085,
13,
7734,
288,
10792,
648,
7658,
18,
56,
31853,
3217,
30,
10792,
648,
7658,
18,
23882,
3217,
30,
13491,
327,
394,
7925,
24899,
27652,
1769,
10792,
648,
7658,
18,
14217,
30,
13491,
327,
394,
2144,
24899,
27652,
1769,
10792,
648,
7658,
18,
19044,
3217,
30,
13491,
327,
394,
3407,
24899,
27652,
1769,
10792,
648,
7658,
18,
23816,
30,
10792,
648,
7658,
18,
22998,
30,
13491,
327,
394,
8150,
24899,
27652,
1769,
10792,
648,
7658,
18,
31052,
30,
13491,
327,
394,
5450,
24899,
27652,
1769,
10792,
648,
7658,
18,
17088,
30,
10792,
648,
7658,
18,
15640,
30,
13491,
327,
394,
3698,
24899,
27652,
1769,
10792,
648,
7658,
18,
4594,
30,
13491,
327,
2167,
18,
1132,
951,
24899,
27652,
1769,
10792,
648,
7658,
18,
4684,
30,
13491,
327,
2647,
18,
1132,
951,
24899,
27652,
1769,
10792,
648,
7658,
18,
17201,
30,
13491,
327,
8159,
18,
1132,
951,
24899,
27652,
1769,
10792,
648,
7658,
18,
15650,
30,
13491,
327,
4037,
1989,
18,
6283,
24899,
27652,
16,
3411,
18,
1106,
1769,
10792,
805,
30,
13491,
309,
261,
25316,
23,
1989,
18,
28064,
5852,
3461,
25316,
2016,
1435,
597,
18701,
261,
67,
723,
1085,
422,
24209,
23,
1989,
18,
24661,
5507,
15460,
1435,
3719,
13491,
288,
18701,
327,
4037,
1989,
18,
6283,
24899,
27652,
16,
3411,
18,
1106,
1769,
13491,
289,
13491,
898,
31,
2
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
25406,
15646,
1435,
565,
288,
3639,
309,
261,
67,
27652,
480,
446,
13,
3639,
288,
5411,
775,
5411,
288,
7734,
1620,
261,
67,
723,
1085,
13,
7734,
288,
10792,
648,
7658,
18,
56,
31853,
3217,
30,
10792,
648,
7658,
18,
23882,
3217,
30,
13491,
327,
394,
7925,
24899,
27652,
1769,
10792,
648,
7658,
18,
14217,
30,
13491,
327,
394,
2144,
24899,
27652,
1769,
10792,
648,
7658,
18,
19044,
3217,
30,
13491,
327,
394,
3407,
24899,
27652,
1769,
10792,
648,
7658,
18,
23816,
30,
10792,
648,
7658,
18,
22998,
30,
13491,
327,
394,
8150,
24899,
27652,
1769,
10792,
648,
7658,
18,
31052,
30,
13491,
327,
394,
5450,
24899,
27652,
1769,
10792,
648,
7658,
18,
17088,
30,
10792,
2
] |
super.reset(); checkMonitorCanceled(); | public synchronized void reset() throws IOException { // TODO } | 45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/4cfb23bf0c3cfbad22f148e981d49bf1ca6def84/ProgressMonitorInputStream.java/clean/libraries/javalib/javax/swing/ProgressMonitorInputStream.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2240,
18,
6208,
5621,
225,
866,
7187,
23163,
5621,
565,
2240,
18,
6208,
5621,
225,
866,
7187,
23163,
5621,
565,
1071,
9565,
18,
6208,
5621,
225,
866,
7187,
23163,
5621,
565,
3852,
9565,
18,
6208,
5621,
225,
866,
7187,
23163,
5621,
565,
918,
9565,
18,
6208,
5621,
225,
866,
7187,
23163,
5621,
565,
2715,
1435,
9565,
18,
6208,
5621,
225,
866,
7187,
23163,
5621,
565,
604,
1049,
416,
264,
18,
6208,
5621,
225,
866,
7187,
23163,
5621,
565,
1860,
9565,
18,
6208,
5621,
225,
866,
7187,
23163,
5621,
565,
2240,
18,
6208,
5621,
225,
866,
7187,
23163,
5621,
565,
288,
9565,
18,
6208,
5621,
225,
866,
7187,
23163,
5621,
565,
2240,
18,
6208,
5621,
225,
866,
7187,
23163,
5621,
565,
2240,
18,
6208,
5621,
225,
866,
7187,
23163,
5621,
565,
2240,
18,
6208,
5621,
225,
866,
7187,
23163,
5621,
565,
368,
9565,
18,
6208,
5621,
225,
866,
7187,
23163,
5621,
565,
2660,
9565,
18,
6208,
5621,
225,
866,
7187,
23163,
5621,
565,
2240,
18,
6208,
5621,
225,
866,
7187,
23163,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
] | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2240,
18,
6208,
5621,
225,
866,
7187,
23163,
5621,
565,
2240,
18,
6208,
5621,
225,
866,
7187,
23163,
5621,
565,
1071,
9565,
18,
6208,
5621,
225,
866,
7187,
23163,
5621,
565,
3852,
9565,
18,
6208,
5621,
225,
866,
7187,
23163,
5621,
565,
918,
9565,
18,
6208,
5621,
225,
866,
7187,
23163,
5621,
565,
2715,
1435,
9565,
18,
6208,
5621,
225,
866,
7187,
23163,
5621,
565,
604,
1049,
416,
264,
18,
6208,
5621,
225,
866,
7187,
23163,
5621,
565,
1860,
9565,
18,
6208,
5621,
225,
866,
7187,
23163,
5621,
565,
2240,
18,
6208,
5621,
225,
866,
7187,
23163,
5621,
565,
288,
9565,
18,
6208,
5621,
225,
866,
7187,
23163,
5621,
565,
2240,
18,
6208,
5621,
225,
866,
7187,
23163,
5621,
2
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.