rem stringlengths 1 53.3k | add stringlengths 0 80.5k | context stringlengths 6 326k | meta stringlengths 141 403 | input_ids list | attention_mask list | labels list |
|---|---|---|---|---|---|---|
following.push(FOLLOW_dotted_name_in_function372); | following.push(FOLLOW_dotted_name_in_function382); | public void function() throws RecognitionException { Token name=null; Token paramName=null; String retType = null; String paramType = null; String body = null; FunctionDescr f = null; try { // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:159:17: ( 'function' opt_eol (retType= dotted_name )? opt_eol name= ID opt_eol '(' opt_eol ( (paramType= dotted_name )? opt_eol paramName= ID opt_eol ( ',' opt_eol (paramType= dotted_name )? opt_eol paramName= ID opt_eol )* )? ')' opt_eol '{' body= curly_chunk '}' opt_eol ) // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:159:17: 'function' opt_eol (retType= dotted_name )? opt_eol name= ID opt_eol '(' opt_eol ( (paramType= dotted_name )? opt_eol paramName= ID opt_eol ( ',' opt_eol (paramType= dotted_name )? opt_eol paramName= ID opt_eol )* )? ')' opt_eol '{' body= curly_chunk '}' opt_eol { match(input,20,FOLLOW_20_in_function303); following.push(FOLLOW_opt_eol_in_function305); opt_eol(); following.pop(); // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:159:36: (retType= dotted_name )? int alt13=2; alt13 = dfa13.predict(input); switch (alt13) { case 1 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:159:37: retType= dotted_name { following.push(FOLLOW_dotted_name_in_function310); retType=dotted_name(); following.pop(); } break; } following.push(FOLLOW_opt_eol_in_function314); opt_eol(); following.pop(); name=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_function318); following.push(FOLLOW_opt_eol_in_function320); opt_eol(); following.pop(); //System.err.println( "function :: " + name.getText() ); f = new FunctionDescr( name.getText(), retType ); match(input,21,FOLLOW_21_in_function329); following.push(FOLLOW_opt_eol_in_function331); opt_eol(); following.pop(); // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:165:25: ( (paramType= dotted_name )? opt_eol paramName= ID opt_eol ( ',' opt_eol (paramType= dotted_name )? opt_eol paramName= ID opt_eol )* )? int alt17=2; int LA17_0 = input.LA(1); if ( (LA17_0>=EOL && LA17_0<=ID) ) { alt17=1; } else if ( LA17_0==23 ) { alt17=2; } else { NoViableAltException nvae = new NoViableAltException("165:25: ( (paramType= dotted_name )? opt_eol paramName= ID opt_eol ( \',\' opt_eol (paramType= dotted_name )? opt_eol paramName= ID opt_eol )* )?", 17, 0, input); throw nvae; } switch (alt17) { case 1 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:165:33: (paramType= dotted_name )? opt_eol paramName= ID opt_eol ( ',' opt_eol (paramType= dotted_name )? opt_eol paramName= ID opt_eol )* { // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:165:33: (paramType= dotted_name )? int alt14=2; alt14 = dfa14.predict(input); switch (alt14) { case 1 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:165:34: paramType= dotted_name { following.push(FOLLOW_dotted_name_in_function341); paramType=dotted_name(); following.pop(); } break; } following.push(FOLLOW_opt_eol_in_function345); opt_eol(); following.pop(); paramName=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_function349); following.push(FOLLOW_opt_eol_in_function351); opt_eol(); following.pop(); f.addParameter( paramType, paramName.getText() ); // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:169:33: ( ',' opt_eol (paramType= dotted_name )? opt_eol paramName= ID opt_eol )* loop16: do { int alt16=2; int LA16_0 = input.LA(1); if ( LA16_0==22 ) { alt16=1; } switch (alt16) { case 1 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:169:41: ',' opt_eol (paramType= dotted_name )? opt_eol paramName= ID opt_eol { match(input,22,FOLLOW_22_in_function365); following.push(FOLLOW_opt_eol_in_function367); opt_eol(); following.pop(); // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:169:53: (paramType= dotted_name )? int alt15=2; alt15 = dfa15.predict(input); switch (alt15) { case 1 : // C:\Projects\jboss-rules\drools-compiler\src\main\resources\org\drools\lang\drl.g:169:54: paramType= dotted_name { following.push(FOLLOW_dotted_name_in_function372); paramType=dotted_name(); following.pop(); } break; } following.push(FOLLOW_opt_eol_in_function376); opt_eol(); following.pop(); paramName=(Token)input.LT(1); match(input,ID,FOLLOW_ID_in_function380); following.push(FOLLOW_opt_eol_in_function382); opt_eol(); following.pop(); f.addParameter( paramType, paramName.getText() ); } break; default : break loop16; } } while (true); } break; } match(input,23,FOLLOW_23_in_function407); following.push(FOLLOW_opt_eol_in_function411); opt_eol(); following.pop(); match(input,24,FOLLOW_24_in_function415); following.push(FOLLOW_curly_chunk_in_function422); body=curly_chunk(); following.pop(); f.setText( body ); match(input,25,FOLLOW_25_in_function431); packageDescr.addFunction( f ); following.push(FOLLOW_opt_eol_in_function439); opt_eol(); following.pop(); } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return ; } | 6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/75f5f3ef6a8af3fa9515d2007a16f1fd6f3ce0d0/RuleParser.java/clean/drools-compiler/src/main/java/org/drools/lang/RuleParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
445,
1435,
1216,
9539,
288,
6647,
3155,
508,
33,
2011,
31,
3639,
3155,
11466,
33,
2011,
31,
3639,
514,
325,
559,
273,
446,
31,
3639,
514,
20781,
273,
446,
31,
3639,
514,
1417... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
445,
1435,
1216,
9539,
288,
6647,
3155,
508,
33,
2011,
31,
3639,
3155,
11466,
33,
2011,
31,
3639,
514,
325,
559,
273,
446,
31,
3639,
514,
20781,
273,
446,
31,
3639,
514,
1417... |
return aspect.getAccessorMethods().accessorGetter(nf, ts, f, id.host().type().toClass(), id.thisReference(nf, ts)); | getter = aspect.getAccessorMethods().accessorGetter(nf, ts, f, id.host().type().toClass(), id.thisReference(nf, ts)); setter = aspect.getAccessorMethods().accessorSetter(nf, ts, f, id.host().type().toClass(), id.thisReference(nf, ts), (Expr)f); return new JjAccessField_c(f.position(), getter, setter, f); | public Node aspectMethodsLeave(AspectMethods visitor, AJNodeFactory nf, AJTypeSystem ts) { Field f = (Field) node(); if(ts.isAccessible(f.fieldInstance(), visitor.context()) && !ts.isAccessibleIgnorePrivileged(f.fieldInstance(), visitor.context()) && introduceFieldAccessors) { ClassType cct = (ClassType) visitor.container(); // TODO: Check container() is what we want while(cct != null) { if(AJFlags.isPrivilegedaspect(cct.flags())) { AspectType at = (AspectType) cct; return at.getAccessorMethods().accessorGetter(nf, ts, f, (ClassType)f.target().type(), null); } cct = cct.outer(); } // Shouldn't happen - accessibility test thinks we're in a privileged aspect, // but we failed to find a containing aspect throw new InternalCompilerError("Problem determining whether or not we're in a privileged aspect"); } if (f.fieldInstance() instanceof InterTypeFieldInstance_c) { InterTypeFieldInstance_c itfi = (InterTypeFieldInstance_c) f.fieldInstance(); if (itfi.container().toClass().flags().isInterface() && introduceFieldAccessors) return itfi.getCall(nf, ts, f.target(), itfi.container()); f = f.fieldInstance(itfi.mangled()).name(itfi.mangled().name()).targetImplicit(false); } if (f.target() instanceof HostSpecial_c && introduceFieldAccessors) { HostSpecial_c hs = (HostSpecial_c) f.target(); if (hs.kind() == Special.SUPER) { IntertypeDecl id = (IntertypeDecl) visitor.intertypeDecl(); /*return id.getSupers().superFieldGetter(nf, ts, f, id.host().type().toClass(), id.thisReference(nf, ts));*/ AspectType aspect = ((AJContext)visitor.context()).currentAspect(); if(aspect == null) { // Is this really impossible? Depends on how exactly the nesting works, investigate throw new InternalCompilerError("Intertype method not enclosed by aspect"); } return aspect.getAccessorMethods().accessorGetter(nf, ts, f, id.host().type().toClass(), id.thisReference(nf, ts)); } } return f; } | 236 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/236/a1cb817c990383f16da6898aa224e2cd9ccf0897/FieldDel_c.java/clean/aop/abc/src/abc/aspectj/extension/FieldDel_c.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2029,
9648,
4712,
21300,
12,
17468,
4712,
8000,
16,
432,
46,
907,
1733,
13958,
16,
4766,
282,
432,
46,
559,
3163,
3742,
13,
565,
288,
3639,
2286,
284,
273,
261,
974,
13,
756,
5621... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2029,
9648,
4712,
21300,
12,
17468,
4712,
8000,
16,
432,
46,
907,
1733,
13958,
16,
4766,
282,
432,
46,
559,
3163,
3742,
13,
565,
288,
3639,
2286,
284,
273,
261,
974,
13,
756,
5621... |
match(_t,LEFTPAREN); _t = _t.getNextSibling(); AST tmp1606_AST_in = (AST)_t; | public final void sql_col_def(AST _t) throws RecognitionException { AST sql_col_def_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t2451 = _t; AST tmp1602_AST_in = (AST)_t; match(_t,ID); _t = _t.getFirstChild(); AST tmp1603_AST_in = (AST)_t; if ( _t==null ) throw new MismatchedTokenException(); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case PRECISION: { AST tmp1604_AST_in = (AST)_t; match(_t,PRECISION); _t = _t.getNextSibling(); break; } case 3: case CASESENSITIVE: case COLUMNLABEL: case DEFAULT: case FORMAT: case LABEL: case LEFTPAREN: case Not_casesens: case Not_null: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LEFTPAREN: { AST tmp1605_AST_in = (AST)_t; match(_t,LEFTPAREN); _t = _t.getNextSibling(); AST tmp1606_AST_in = (AST)_t; match(_t,NUMBER); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case COMMA: { AST tmp1607_AST_in = (AST)_t; match(_t,COMMA); _t = _t.getNextSibling(); AST tmp1608_AST_in = (AST)_t; match(_t,NUMBER); _t = _t.getNextSibling(); break; } case RIGHTPAREN: { break; } default: { throw new NoViableAltException(_t); } } } AST tmp1609_AST_in = (AST)_t; match(_t,RIGHTPAREN); _t = _t.getNextSibling(); break; } case 3: case CASESENSITIVE: case COLUMNLABEL: case DEFAULT: case FORMAT: case LABEL: case Not_casesens: case Not_null: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case Not_null: { AST __t2456 = _t; AST tmp1610_AST_in = (AST)_t; match(_t,Not_null); _t = _t.getFirstChild(); AST tmp1611_AST_in = (AST)_t; match(_t,NOT); _t = _t.getNextSibling(); AST tmp1612_AST_in = (AST)_t; match(_t,NULL_KW); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case UNIQUE: { AST tmp1613_AST_in = (AST)_t; match(_t,UNIQUE); _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t2456; _t = _t.getNextSibling(); break; } case 3: case CASESENSITIVE: case COLUMNLABEL: case DEFAULT: case FORMAT: case LABEL: case Not_casesens: { break; } default: { throw new NoViableAltException(_t); } } } { _loop2461: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case COLUMNLABEL: case LABEL: { label_constant(_t); _t = _retTree; break; } case DEFAULT: { AST __t2459 = _t; AST tmp1614_AST_in = (AST)_t; match(_t,DEFAULT); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t2459; _t = _t.getNextSibling(); break; } case FORMAT: { AST __t2460 = _t; AST tmp1615_AST_in = (AST)_t; match(_t,FORMAT); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t2460; _t = _t.getNextSibling(); break; } case CASESENSITIVE: case Not_casesens: { casesens_or_not(_t); _t = _retTree; break; } default: { break _loop2461; } } } while (true); } _t = __t2451; _t = _t.getNextSibling(); _retTree = _t; } | 13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/041a16c78289f1c3ae5e575d3edc5e893a658e50/TreeParser01.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
1847,
67,
1293,
67,
536,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
1847,
67,
1293,
67,
536,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1847,
67,
1293,
67,
536,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
1847,
67,
1293,
67,
536,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
... | |
.log("Unable to create navigator view descriptor.", e.getStatus()); | .log( "Unable to create navigator view descriptor.", e.getStatus()); | protected boolean readElement(IConfigurationElement element) { if (TAG_VIEWER.equals(element.getName())) { String viewerId = element.getAttribute(ATT_VIEWER_ID); NavigatorViewerDescriptor descriptor = getViewerDescriptor(viewerId); String popupMenuId = element.getAttribute(ATT_POPUP_MENU_ID); if (popupMenuId != null) descriptor.setPopupMenuId(popupMenuId); return true; } if (TAG_VIEWER_CONTENT_BINDING.equals(element.getName())) { try { String viewerId = element.getAttribute(ATT_VIEWER_ID); NavigatorViewerDescriptor descriptor = getViewerDescriptor(viewerId); descriptor.consumeContentBinding(element); return true; } catch (WorkbenchException e) { // log an error since its not safe to open a dialog here NavigatorPlugin .log("Unable to create navigator view descriptor.", e.getStatus());//$NON-NLS-1$ } } if (TAG_VIEWER_ACTION_BINDING.equals(element.getName())) { try { String viewerId = element.getAttribute(ATT_VIEWER_ID); NavigatorViewerDescriptor descriptor = getViewerDescriptor(viewerId); descriptor.consumeActionBinding(element); return true; } catch (WorkbenchException e) { // log an error since its not safe to open a dialog here NavigatorPlugin .log("Unable to create navigator view descriptor.", e.getStatus());//$NON-NLS-1$ } } return false; } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/6915e85b60af35942d3186f62ce0acdf65c91e7f/NavigatorViewerDescriptorRegistry.java/clean/bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/navigator/internal/extensions/NavigatorViewerDescriptorRegistry.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
1250,
855,
1046,
12,
45,
1750,
1046,
930,
13,
288,
202,
202,
430,
261,
7927,
67,
12145,
654,
18,
14963,
12,
2956,
18,
17994,
1435,
3719,
288,
1082,
202,
780,
14157,
548,
273,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
1250,
855,
1046,
12,
45,
1750,
1046,
930,
13,
288,
202,
202,
430,
261,
7927,
67,
12145,
654,
18,
14963,
12,
2956,
18,
17994,
1435,
3719,
288,
1082,
202,
780,
14157,
548,
273,... |
throw new RuntimeException("could not mixin for mixin implicit interface: ClassNotFoundException : " + e.getMessage()); | throw new RuntimeException("could not load mixin for mixin implicit interface: ClassNotFoundException : " + e.getMessage()); | public String[] getNearestInterfacesInHierarchy(String innerClassName) { if (m_loader == null) throw new IllegalStateException("attribute enhancer is not initialized"); try { Class innerClass = Class.forName(innerClassName, false, m_loader); return getNearestInterfacesInHierarchy(innerClass); } catch (ClassNotFoundException e) { // should not be raised throw new RuntimeException("could not mixin for mixin implicit interface: ClassNotFoundException : " + e.getMessage()); } catch (NoClassDefFoundError er) { // raised if extends / implements dependancies not found throw new RuntimeException("could not dependancy for mixin implicit interface: " + innerClassName+ " ClassNotFoundException for " + er.getMessage()); } } | 7954 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7954/c14746b64a51c8eba3f2d3620a3dd70a407900a4/BcelAttributeEnhancer.java/clean/aspectwerkz/src/main/org/codehaus/aspectwerkz/attribdef/definition/attribute/bcel/BcelAttributeEnhancer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
8526,
336,
28031,
10273,
382,
12074,
12,
780,
3443,
3834,
13,
288,
3639,
309,
261,
81,
67,
6714,
422,
446,
13,
604,
394,
5477,
2932,
4589,
570,
25842,
2750,
353,
486,
6454,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
8526,
336,
28031,
10273,
382,
12074,
12,
780,
3443,
3834,
13,
288,
3639,
309,
261,
81,
67,
6714,
422,
446,
13,
604,
394,
5477,
2932,
4589,
570,
25842,
2750,
353,
486,
6454,
8... |
StringVector processPREFIX_URLLIST(StylesheetHandler handler, String uri, String name, String rawName, String value) throws SAXException | StringVector processPREFIX_URLLIST( StylesheetHandler handler, String uri, String name, String rawName, String value) throws SAXException | StringVector processPREFIX_URLLIST(StylesheetHandler handler, String uri, String name, String rawName, String value) throws SAXException { StringTokenizer tokenizer = new StringTokenizer(value, " \t\n\r\f"); int nStrings = tokenizer.countTokens(); StringVector strings = new StringVector(nStrings); for(int i = 0; i < nStrings; i++) { String prefix = tokenizer.nextToken(); String url = handler.getNamespaceForPrefix(prefix); strings.addElement(url); } return strings; } | 2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/6fbfc5b396871b2ddb731ea98fccffe88307b5d3/XSLTAttributeDef.java/clean/src/org/apache/xalan/processor/XSLTAttributeDef.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
514,
5018,
1207,
6307,
67,
1785,
7085,
12,
24656,
1503,
1838,
16,
21394,
514,
2003,
16,
514,
508,
16,
21394,
514,
1831,
461,
16,
514,
460,
13,
565,
1216,
14366,
225,
288,
565,
16370,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
514,
5018,
1207,
6307,
67,
1785,
7085,
12,
24656,
1503,
1838,
16,
21394,
514,
2003,
16,
514,
508,
16,
21394,
514,
1831,
461,
16,
514,
460,
13,
565,
1216,
14366,
225,
288,
565,
16370,
10... |
fConfiguration.getFeature(INCLUDE_IGNORABLE_WHITESPACE); fDeferNodeExpansion = fConfiguration.getFeature(DEFER_NODE_EXPANSION); fNamespaceAware = fConfiguration.getFeature(NAMESPACES); fIncludeComments = fConfiguration.getFeature(INCLUDE_COMMENTS_FEATURE); fCreateCDATANodes = fConfiguration.getFeature(CREATE_CDATA_NODES_FEATURE); | fConfiguration.getFeature (INCLUDE_IGNORABLE_WHITESPACE); fDeferNodeExpansion = fConfiguration.getFeature (DEFER_NODE_EXPANSION); fNamespaceAware = fConfiguration.getFeature (NAMESPACES); fIncludeComments = fConfiguration.getFeature (INCLUDE_COMMENTS_FEATURE); fCreateCDATANodes = fConfiguration.getFeature (CREATE_CDATA_NODES_FEATURE); | public void reset() throws XNIException { super.reset(); // get feature state fCreateEntityRefNodes = fConfiguration.getFeature(CREATE_ENTITY_REF_NODES); fIncludeIgnorableWhitespace = fConfiguration.getFeature(INCLUDE_IGNORABLE_WHITESPACE); fDeferNodeExpansion = fConfiguration.getFeature(DEFER_NODE_EXPANSION); fNamespaceAware = fConfiguration.getFeature(NAMESPACES); fIncludeComments = fConfiguration.getFeature(INCLUDE_COMMENTS_FEATURE); fCreateCDATANodes = fConfiguration.getFeature(CREATE_CDATA_NODES_FEATURE); // get property setDocumentClassName((String) fConfiguration.getProperty(DOCUMENT_CLASS_NAME)); // reset dom information fDocument = null; fDocumentImpl = null; fStorePSVI = false; fDocumentType = null; fDocumentTypeIndex = -1; fDeferredDocumentImpl = null; fCurrentNode = null; // reset string buffer fStringBuffer.setLength(0); // reset state information fInDocument = false; fInDTD = false; fInDTDExternalSubset = false; fInCDATASection = false; fFirstChunk = false; fCurrentCDATASection = null; fCurrentCDATASectionIndex = -1; fBaseURIStack.removeAllElements(); } // reset() | 6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/b4cd180911aea48174dc85f3cf80e53272cd1419/AbstractDOMParser.java/clean/src/org/apache/xerces/parsers/AbstractDOMParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2715,
1435,
1216,
1139,
50,
45,
503,
288,
3639,
2240,
18,
6208,
5621,
8227,
368,
336,
2572,
919,
3639,
284,
1684,
1943,
1957,
3205,
273,
5411,
284,
1750,
18,
588,
4595,
12,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2715,
1435,
1216,
1139,
50,
45,
503,
288,
3639,
2240,
18,
6208,
5621,
8227,
368,
336,
2572,
919,
3639,
284,
1684,
1943,
1957,
3205,
273,
5411,
284,
1750,
18,
588,
4595,
12,
9... |
buf.append(e.getShortMessage(e.mode)+"\n"); | buf.append(FetchException.getShortMessage(e.mode)+"\n"); | public void handleGet(URI uri, ToadletContext ctx) throws ToadletContextClosedException, IOException, RedirectException { //String ks = uri.toString(); String ks = uri.getPath(); HTTPRequest httprequest = new HTTPRequest(uri); if (ks.equals("/")) { if (httprequest.isParameterSet("key")) { MultiValueTable headers = new MultiValueTable(); headers.put("Location", "/"+httprequest.getParam("key")); ctx.sendReplyHeaders(302, "Found", headers, null, 0); return; } RedirectException re = new RedirectException(); try { String querystring = uri.getQuery(); if (querystring == null) { re.newuri = new URI("/welcome/"); } else { // TODP possibly a proper URLEncode method querystring = querystring.replace(' ', '+'); re.newuri = new URI("/welcome/?"+querystring); } } catch (URISyntaxException e) { // HUH!?! } throw re; }else if(ks.equals("/favicon.ico")){ byte[] buf = new byte[1024]; int len; InputStream strm = getClass().getResourceAsStream("staticfiles/favicon.ico"); if (strm == null) { this.sendErrorPage(ctx, 404, "Path not found", "The specified path does not exist."); return; } ctx.sendReplyHeaders(200, "OK", null, "image/x-icon", strm.available()); while ( (len = strm.read(buf)) > 0) { ctx.writeData(buf, 0, len); } return; } if(ks.startsWith("/")) ks = ks.substring(1); long maxSize = httprequest.getLongParam("max-size", MAX_LENGTH); StringBuffer buf = new StringBuffer(); FreenetURI key; try { key = new FreenetURI(ks); } catch (MalformedURLException e) { ctx.getPageMaker().makeHead(buf, "Invalid key"); buf.append("<div class=\"infobox infobox-error\">\n"); buf.append("<div class=\"infobox-header\">\n"); buf.append("Invalid key\n"); buf.append("</div>\n"); buf.append("<div class=\"infobox-content\">\n"); buf.append("Expected a freenet key, but got "+HTMLEncoder.encode(ks)+"\n"); ctx.getPageMaker().makeBackLink(buf,ctx); buf.append("<br><a href=\"/\" title=\"Node Homepage\">Homepage</a>\n"); buf.append("</div>\n"); buf.append("</div>\n"); ctx.getPageMaker().makeTail(buf); this.writeReply(ctx, 400, "text/html", "Invalid key", buf.toString()); return; } try { Logger.minor(this, "FProxy fetching "+key); FetchResult result = fetch(key, maxSize); // Now, is it safe? Bucket data = result.asBucket(); String typeName = result.getMimeType(); String reqParam = httprequest.getParam("type", null); if(reqParam != null) typeName = reqParam; Logger.minor(this, "Type: "+typeName+" ("+result.getMimeType()+" "+reqParam+")"); long now = System.currentTimeMillis(); String forceString = httprequest.getParam("force"); boolean force = false; boolean forcedownload = false; if(forceString != null) { if(forceString.equals(getForceValue(key, now)) || forceString.equals(getForceValue(key, now-FORCE_GRAIN_INTERVAL))) force = true; } if(httprequest.isParameterSet("forcedownload")) { // Download to disk, this should be safe, and is set when we do "force download to disk" from a dangerous-content-warning page. typeName = "application/x-msdownload"; forcedownload = true; } try { if(!force && !forcedownload) { data = ContentFilter.filter(data, ctx.getBucketFactory(), typeName, uri, null); } if (forcedownload) { MultiValueTable headers = new MultiValueTable(); headers.put("Content-Disposition", "attachment"); ctx.sendReplyHeaders(200, "OK", headers, typeName, data.size()); ctx.writeData(data); } else { // Send the data, intact writeReply(ctx, 200, typeName, "OK", data); } } catch (UnsafeContentTypeException e) { ctx.getPageMaker().makeHead(buf, "Potentially Dangerous Content"); buf.append("<div class=\"infobox infobox-alert\">"); buf.append("<div class=\"infobox-header\">").append(e.getHTMLEncodedTitle()).append("</div>"); buf.append("<div class=\"infobox-content\">"); buf.append(e.getExplanation()); buf.append("<p>Your options are:</p><ul>\n"); buf.append("<li><a href=\"/"+key.toString(false)+"?type=text/plain\">Click here</a> to open the file as plain text (this should not be dangerous, but it may be garbled).</li>\n"); // FIXME: is this safe? See bug #131 buf.append("<li><a href=\"/"+key.toString(false)+"?forcedownload\">Click here</a> to force your browser to download the file to disk.</li>\n"); buf.append("<li><a href=\"/"+key.toString(false)+"?force="+getForceValue(key, now)+"\">Click here</a> to open the file as "+HTMLEncoder.encode(typeName)+".</li>\n"); buf.append("<li><a href=\"/\">Click here</a> to go to the FProxy home page.</li>\n"); buf.append("</ul></div>"); buf.append("</div>\n"); ctx.getPageMaker().makeTail(buf); writeReply(ctx, 200, "text/html", "OK", buf.toString()); } } catch (FetchException e) { String msg = e.getMessage(); String extra = ""; if(e.mode == FetchException.NOT_ENOUGH_METASTRINGS) { this.writePermanentRedirect(ctx, "Not enough meta-strings", "/" + URLEncoder.encode(key.toString(false)) + "/"); } else if(e.newURI != null) { this.writePermanentRedirect(ctx, msg, "/"+e.newURI.toString()); } else if(e.mode == FetchException.TOO_BIG) { ctx.getPageMaker().makeHead(buf, "Large file"); buf.append("<table border=\"0\">\n"); String fnam = getFilename(e, key, e.getExpectedMimeType()); buf.append("<tr><td><b>Filename</b></td><td>"); buf.append("<a href=\"/"+URLEncoder.encode(key.toString(false))+"\">"); buf.append(fnam); buf.append("</a>"); buf.append("</td></tr>\n"); boolean finalized = e.finalizedSize(); if(e.expectedSize > 0) { buf.append("<tr><td><b>"); if(!finalized) buf.append("Expected size (may change)"); else buf.append("Size"); buf.append("</b></td><td>"); buf.append(SizeUtil.formatSize(e.expectedSize)); buf.append("</td></tr>\n"); } String mime = e.getExpectedMimeType(); if(mime != null) { buf.append("<tr><td><b>"); if(!finalized) buf.append("Expected MIME type"); else buf.append("MIME type"); buf.append("</b></td><td>"); buf.append(mime); buf.append(" bytes </td></tr>\n"); } // FIXME filename buf.append("</table>\n"); buf.append("<br>This is a large file, so it has not been streamed direct" + " to your browser, because Freenet cannot send any data to the " + "browser until it has the whole file, and this may take some time, " + "and also for resource usage reasons.<br>\n"); buf.append("What would you like to do with it?"); buf.append("<ul>"); buf.append("<li><form method=\"get\" action=\"/"+key.toString(false)+"\">"); buf.append("<input type=\"hidden\" name=\"max-size\" value=\""+e.expectedSize+"\">"); buf.append("<input type=\"submit\" name=\"fetch\" value=\"Fetch anyway and display file in browser\">"); buf.append("</form></li>\n"); buf.append("<li><form method=\"post\" action=\"/queue/\">"); buf.append("<input type=\"hidden\" name=\"key\" value=\""+key.toString(false)+"\">"); buf.append("<input type=\"hidden\" name=\"return-type\" value=\"disk\">"); buf.append("<input type=\"hidden\" name=\"persistence\" value=\"forever\">"); buf.append("<input type=\"hidden\" name=\"formPassword\" value=\""+node.formPassword+"\">"); if(mime != null) buf.append("<input type=\"hidden\" name=\"type\" value=\""+URLEncoder.encode(mime)+"\">"); buf.append("<input type=\"submit\" name=\"download\" value=\"Download in background and store in downloads directory\">"); buf.append("</form></li>\n"); // FIXME add a queue-a-download option.// buf.append("<li>Save it to disk at </li>"); // FIXME add return-to-referring-page //buf.append("<li>Return to the referring page: "); buf.append("<li>Abort and return to the FProxy home page: <a href=\"/\">here</a></li>"); buf.append("</ul>"); ctx.getPageMaker().makeTail(buf); writeReply(ctx, 200, "text/html", "OK", buf.toString()); // FIXME provide option to queue write to disk. } else { if(e.errorCodes != null) extra = "<pre>"+e.errorCodes.toVerboseString()+"</pre>"; ctx.getPageMaker().makeHead(buf,e.getShortMessage(e.mode)); buf.append("<div class=\"infobox infobox-error\">\n"); buf.append("<div class=\"infobox-header\">\n"); buf.append(e.getShortMessage(e.mode)+"\n"); buf.append("</div>\n"); buf.append("<div class=\"infobox-content\">\n"); buf.append("Error: "+HTMLEncoder.encode(msg)+extra+"\n"); ctx.getPageMaker().makeBackLink(buf,ctx); buf.append("<br><a href=\"/\" title=\"Node Homepage\">Homepage</a>\n"); buf.append("</div>\n"); buf.append("</div>\n"); ctx.getPageMaker().makeTail(buf); this.writeReply(ctx, 500 /* close enough - FIXME probably should depend on status code */, "text/html", e.getShortMessage(e.mode), buf.toString()); } } catch (Throwable t) { Logger.error(this, "Caught "+t, t); String msg = "<html><head><title>Internal Error</title></head><body><h1>Internal Error: please report</h1><pre>"; StringWriter sw = new StringWriter(); PrintWriter pw = new PrintWriter(sw); t.printStackTrace(pw); pw.flush(); msg = msg + sw.toString() + "</pre></body></html>"; this.writeReply(ctx, 500, "text/html", "Internal Error", msg); } } | 50619 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50619/435d4590fcc5417fb2c2aa2ad6187826e509ffea/FProxyToadlet.java/buggy/src/freenet/clients/http/FProxyToadlet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1640,
967,
12,
3098,
2003,
16,
2974,
361,
1810,
1042,
1103,
13,
1875,
202,
15069,
2974,
361,
1810,
1042,
7395,
503,
16,
1860,
16,
9942,
503,
288,
202,
202,
759,
780,
1165... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1640,
967,
12,
3098,
2003,
16,
2974,
361,
1810,
1042,
1103,
13,
1875,
202,
15069,
2974,
361,
1810,
1042,
7395,
503,
16,
1860,
16,
9942,
503,
288,
202,
202,
759,
780,
1165... |
private void validate() throws BuildException { if (destdir == null) { throw new BuildException("Need to specify the 'destdir' attribute"); } if (!destdir.exists() || !destdir.isDirectory()) { if (!destdir.mkdirs()) { throw new BuildException("Could not create the specified destdir"); } } } | 48068 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48068/bcf54ee9560f4fd9a0ff083d3f0ea7c829a28aea/TaglibReport.java/buggy/contrib/tag-doc/src/java/org/apache/struts/taskdefs/TaglibReport.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
6459,
5662,
1435,
15069,
3116,
503,
95,
202,
202,
430,
12,
10488,
1214,
631,
2011,
15329,
1082,
202,
12849,
2704,
3116,
503,
2932,
14112,
14627,
705,
1164,
5787,
14271,
395,
1214... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6459,
5662,
1435,
15069,
3116,
503,
95,
202,
202,
430,
12,
10488,
1214,
631,
2011,
15329,
1082,
202,
12849,
2704,
3116,
503,
2932,
14112,
14627,
705,
1164,
5787,
14271,
395,
1214... | ||
public void mTokens() throws RecognitionException { // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:10: ( T15 | T16 | T17 | T18 | T19 | T20 | T21 | T22 | T23 | T24 | T25 | T26 | T27 | T28 | T29 | T30 | T31 | T32 | T33 | T34 | T35 | T36 | T37 | T38 | T39 | T40 | T41 | T42 | T43 | T44 | T45 | T46 | T47 | T48 | T49 | T50 | T51 | T52 | T53 | T54 | T55 | T56 | T57 | MISC | WS | EOL | INT | FLOAT | STRING | BOOL | ID | SH_STYLE_SINGLE_LINE_COMMENT | C_STYLE_SINGLE_LINE_COMMENT | MULTI_LINE_COMMENT ) int alt16=54; alt16 = dfa16.predict(input); if (failed) return ; switch (alt16) { case 1 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:10: T15 { mT15(); if (failed) return ; } break; case 2 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:14: T16 { mT16(); if (failed) return ; } break; case 3 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:18: T17 { mT17(); if (failed) return ; } break; case 4 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:22: T18 { mT18(); if (failed) return ; } break; case 5 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:26: T19 { mT19(); if (failed) return ; } break; case 6 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:30: T20 { mT20(); if (failed) return ; } break; case 7 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:34: T21 { mT21(); if (failed) return ; } break; case 8 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:38: T22 { mT22(); if (failed) return ; } break; case 9 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:42: T23 { mT23(); if (failed) return ; } break; case 10 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:46: T24 { mT24(); if (failed) return ; } break; case 11 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:50: T25 { mT25(); if (failed) return ; } break; case 12 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:54: T26 { mT26(); if (failed) return ; } break; case 13 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:58: T27 { mT27(); if (failed) return ; } break; case 14 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:62: T28 { mT28(); if (failed) return ; } break; case 15 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:66: T29 { mT29(); if (failed) return ; } break; case 16 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:70: T30 { mT30(); if (failed) return ; } break; case 17 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:74: T31 { mT31(); if (failed) return ; } break; case 18 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:78: T32 { mT32(); if (failed) return ; } break; case 19 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:82: T33 { mT33(); if (failed) return ; } break; case 20 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:86: T34 { mT34(); if (failed) return ; } break; case 21 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:90: T35 { mT35(); if (failed) return ; } break; case 22 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:94: T36 { mT36(); if (failed) return ; } break; case 23 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:98: T37 { mT37(); if (failed) return ; } break; case 24 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:102: T38 { mT38(); if (failed) return ; } break; case 25 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:106: T39 { mT39(); if (failed) return ; } break; case 26 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:110: T40 { mT40(); if (failed) return ; } break; case 27 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:114: T41 { mT41(); if (failed) return ; } break; case 28 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:118: T42 { mT42(); if (failed) return ; } break; case 29 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:122: T43 { mT43(); if (failed) return ; } break; case 30 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:126: T44 { mT44(); if (failed) return ; } break; case 31 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:130: T45 { mT45(); if (failed) return ; } break; case 32 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:134: T46 { mT46(); if (failed) return ; } break; case 33 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:138: T47 { mT47(); if (failed) return ; } break; case 34 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:142: T48 { mT48(); if (failed) return ; } break; case 35 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:146: T49 { mT49(); if (failed) return ; } break; case 36 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:150: T50 { mT50(); if (failed) return ; } break; case 37 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:154: T51 { mT51(); if (failed) return ; } break; case 38 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:158: T52 { mT52(); if (failed) return ; } break; case 39 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:162: T53 { mT53(); if (failed) return ; } break; case 40 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:166: T54 { mT54(); if (failed) return ; } break; case 41 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:170: T55 { mT55(); if (failed) return ; } break; case 42 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:174: T56 { mT56(); if (failed) return ; } break; case 43 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:178: T57 { mT57(); if (failed) return ; } break; case 44 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:182: MISC { mMISC(); if (failed) return ; } break; case 45 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:187: WS { mWS(); if (failed) return ; } break; case 46 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:190: EOL { mEOL(); if (failed) return ; } break; case 47 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:194: INT { mINT(); if (failed) return ; } break; case 48 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:198: FLOAT { mFLOAT(); if (failed) return ; } break; case 49 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:204: STRING { mSTRING(); if (failed) return ; } break; case 50 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:211: BOOL { mBOOL(); if (failed) return ; } break; case 51 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:216: ID { mID(); if (failed) return ; } break; case 52 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:219: SH_STYLE_SINGLE_LINE_COMMENT { mSH_STYLE_SINGLE_LINE_COMMENT(); if (failed) return ; } break; case 53 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:248: C_STYLE_SINGLE_LINE_COMMENT { mC_STYLE_SINGLE_LINE_COMMENT(); if (failed) return ; } break; case 54 : // C:\Projects\jboss-rules-new\drools-compiler\src\main\resources\org\drools\lang\drl.g:1:276: MULTI_LINE_COMMENT { mMULTI_LINE_COMMENT(); if (failed) return ; } break; } } | 6736 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6736/db9ec7bad93dfc15e8ce115941d6e9f0749d5a10/RuleParserLexer.java/buggy/drools-compiler/src/main/java/org/drools/lang/RuleParserLexer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
312,
5157,
1435,
1216,
9539,
288,
3639,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
17,
2704,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
312,
5157,
1435,
1216,
9539,
288,
3639,
368,
385,
5581,
15298,
64,
10649,
8464,
17,
7482,
17,
2704,
64,
12215,
17,
9576,
64,
4816,
64,
5254,
64,
4683,
64,
3341,
64,
12215,
64... | ||
return setInstanceVariable(name, value, "Insecure: can't set constant", | IRubyObject result = setInstanceVariable(name, value, "Insecure: can't set constant", | public IRubyObject setConstant(String name, IRubyObject value) { return setInstanceVariable(name, value, "Insecure: can't set constant", "class/module"); } | 46454 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46454/d27bd5bcb36c7670bce31c6a2a4c22b11fdfa5c4/RubyModule.java/clean/src/org/jruby/RubyModule.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
444,
6902,
12,
780,
508,
16,
15908,
10340,
921,
460,
13,
288,
3639,
15908,
10340,
921,
563,
273,
444,
1442,
3092,
12,
529,
16,
460,
16,
315,
382,
8869,
30,
848,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
15908,
10340,
921,
444,
6902,
12,
780,
508,
16,
15908,
10340,
921,
460,
13,
288,
3639,
15908,
10340,
921,
563,
273,
444,
1442,
3092,
12,
529,
16,
460,
16,
315,
382,
8869,
30,
848,... |
collectionNames = false; } | collectionNames = false; } | public void parse(URL configURL) { DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); factory.setNamespaceAware(true); try { InputStream in = configURL.openStream(); DocumentBuilder builder = factory.newDocumentBuilder(); Document document = builder.parse(in); Element config = document.getDocumentElement(); if (config == null) { log.error("Resource configuration: mandatory 'iomanager' element is missing."); return; } Element el = DomUtil.getChildElement(config, "iomanager", null); if (el != null) { Object inst = buildClassFromConfig(el); if (inst != null && inst instanceof IOManager) { ioManager = (IOManager)inst; } } else { log.error("Resource configuration: mandatory 'iomanager' element is missing."); } el = DomUtil.getChildElement(config, "collection", null); if (el != null) { nodetypeNames = parseNodeTypesEntry(el); collectionNames = true; } else if ((el = DomUtil.getChildElement(config, "noncollection", null)) != null) { nodetypeNames = parseNodeTypesEntry(el); collectionNames = false; } // todo: should check if both 'noncollection' and 'collection' are present and write a warning el = DomUtil.getChildElement(config, "filter", null); if (el != null) { Object inst = buildClassFromConfig(el); if (inst != null && inst instanceof ItemFilter) { itemFilter = (ItemFilter)inst; } if (itemFilter != null) { itemFilter.setFilteredNodetypes(parseNodeTypesEntry(el)); parseNamespacesEntry(el); } } else { log.debug("Resource configuration: no 'filter' element specified."); } } catch (IOException e) { log.debug("Invalid resource configuration: " + e.getMessage()); } catch (ParserConfigurationException e) { log.warn("Failed to parse resource configuration: " + e.getMessage()); } catch (SAXException e) { log.warn("Failed to parse resource configuration: " + e.getMessage()); } } | 48761 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48761/7168c91997e3181717bce6c965795e53e7bf3599/ResourceConfig.java/clean/jcr-server/server/src/java/org/apache/jackrabbit/webdav/simple/ResourceConfig.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1109,
12,
1785,
642,
1785,
13,
288,
3639,
30236,
3272,
273,
30236,
18,
2704,
1442,
5621,
3639,
3272,
18,
542,
3402,
10155,
12,
3767,
1769,
3639,
775,
288,
5411,
5037,
316,
273,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1109,
12,
1785,
642,
1785,
13,
288,
3639,
30236,
3272,
273,
30236,
18,
2704,
1442,
5621,
3639,
3272,
18,
542,
3402,
10155,
12,
3767,
1769,
3639,
775,
288,
5411,
5037,
316,
273,... |
int getReturnAddressMapIndex() { | int getReturnAddressMapIndex() { | int getReturnAddressMapIndex() { return returnAddressMapIndex; } | 49871 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49871/2fa590c80682746e4c5a9573d3bc4a3db8acfdc7/VM_UnusualMaps.java/clean/rvm/src/vm/compilers/baseline/GCMap/VM_UnusualMaps.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
509,
26594,
1887,
863,
1016,
1435,
225,
288,
565,
327,
327,
1887,
863,
1016,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
509,
26594,
1887,
863,
1016,
1435,
225,
288,
565,
327,
327,
1887,
863,
1016,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
Button( WebForm form, Node node ) { super( form, node ); _onClickEvent = NodeUtils.getNodeAttribute( node, "onclick" ); | Button( WebForm form ) { super( form ); | Button( WebForm form, Node node ) { super( form, node ); _onClickEvent = NodeUtils.getNodeAttribute( node, "onclick" ); } | 5961 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5961/009e65d62db5e84bc9503932d28237368958c53c/Button.java/buggy/src/com/meterware/httpunit/Button.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
12569,
12,
2999,
1204,
646,
16,
2029,
756,
262,
288,
3639,
2240,
12,
646,
16,
756,
11272,
3639,
389,
265,
6563,
1133,
273,
2029,
1989,
18,
588,
907,
1499,
12,
756,
16,
315,
265,
7475,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
12569,
12,
2999,
1204,
646,
16,
2029,
756,
262,
288,
3639,
2240,
12,
646,
16,
756,
11272,
3639,
389,
265,
6563,
1133,
273,
2029,
1989,
18,
588,
907,
1499,
12,
756,
16,
315,
265,
7475,
... |
if( encounteredWild && idx < pattern.length - 1 && CharOperation.isWhitespace( pattern[ idx + 1 ] ) ) { name += ' '; } idx += token.getLength(); while( idx < pattern.length && CharOperation.isWhitespace( pattern[idx] ) ){ idx++; } | static private LinkedList scanForNames( IScanner scanner, IToken unusedToken ){ LinkedList list = new LinkedList(); String name = new String(""); //$NON-NLS-1$ try { IToken token = ( unusedToken != null ) ? unusedToken : scanner.nextToken(); IToken prev = null; scanner.setThrowExceptionOnBadCharacterRead( true ); boolean encounteredWild = false; boolean lastTokenWasOperator = false; while( true ){ switch( token.getType() ){ case IToken.tCOLONCOLON : list.addLast( name.toCharArray() ); name = new String(""); //$NON-NLS-1$ lastTokenWasOperator = false; break; case IToken.t_operator : name += token.getImage() + " "; //$NON-NLS-1$ lastTokenWasOperator = true; break; default: if( token.getType() == IToken.tSTAR || token.getType() == IToken.tQUESTION ){ encounteredWild = true; } else if( !encounteredWild && !lastTokenWasOperator && name.length() > 0 && prev.getType() != IToken.tIDENTIFIER && prev.getType() != IToken.tLT && prev.getType() != IToken.tCOMPL && prev.getType() != IToken.tLBRACKET && token.getType() != IToken.tRBRACKET && token.getType()!= IToken.tGT ){ name += " "; //$NON-NLS-1$ } else { encounteredWild = false; } name += token.getImage(); lastTokenWasOperator = false; break; } prev = token; token = null; while( token == null ){ try{ token = scanner.nextToken(); } catch ( ScannerException e ){ if( e.getProblem().getID() == IProblem.SCANNER_BAD_CHARACTER ){ //TODO : This may not be \\, it could be another bad character if( !encounteredWild && !lastTokenWasOperator ) name += " "; //$NON-NLS-1$ name += "\\"; //$NON-NLS-1$ encounteredWild = true; lastTokenWasOperator = false; prev = null; } } } } } catch (EndOfFileException e) { list.addLast( name.toCharArray() ); } catch (ScannerException e) { } return list; } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/75fee20f69852f5219e039afb6665d56da8886f9/CSearchPattern.java/clean/core/org.eclipse.cdt.core/search/org/eclipse/cdt/internal/core/search/matching/CSearchPattern.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
3845,
309,
12,
9919,
59,
545,
597,
2067,
411,
1936,
18,
2469,
300,
404,
597,
3703,
2988,
18,
291,
9431,
12,
1936,
63,
2067,
397,
404,
308,
262,
262,
288,
508,
1011,
296,
12386,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
3845,
309,
12,
9919,
59,
545,
597,
2067,
411,
1936,
18,
2469,
300,
404,
597,
3703,
2988,
18,
291,
9431,
12,
1936,
63,
2067,
397,
404,
308,
262,
262,
288,
508,
1011,
296,
12386,
2... | |
ClassLoader cl = Thread.currentThread().getContextClassLoader(); | ClassLoader cl = MimeTable.class.getClassLoader(); | private void load() { boolean loaded = false; String home = System.getProperty("exist.home"); if (home != null) { File f = new File(home + File.separatorChar + MIME_TYPES_XML); if (f.canRead()) { try { System.err.println("Loading mime table from file " + f.getAbsolutePath()); loadMimeTypes(new FileInputStream(f)); loaded = true; } catch (FileNotFoundException e) { System.err.println(FILE_LOAD_FAILED_ERR + f.getAbsolutePath()); } catch (ParserConfigurationException e) { System.err.println(FILE_LOAD_FAILED_ERR + f.getAbsolutePath()); } catch (SAXException e) { System.err.println(FILE_LOAD_FAILED_ERR + f.getAbsolutePath()); } catch (IOException e) { System.err.println(FILE_LOAD_FAILED_ERR + f.getAbsolutePath()); } } } if (!loaded) { ClassLoader cl = Thread.currentThread().getContextClassLoader(); InputStream is = cl.getResourceAsStream(MIME_TYPES_XML_DEFAULT); if (is == null) { System.err.println(LOAD_FAILED_ERR); } try { loadMimeTypes(is); } catch (ParserConfigurationException e) { System.err.println(LOAD_FAILED_ERR); } catch (SAXException e) { System.err.println(LOAD_FAILED_ERR); } catch (IOException e) { System.err.println(LOAD_FAILED_ERR); } } } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/36564925d90df4b1428eaea36fa61481b517ce61/MimeTable.java/clean/src/org/exist/util/MimeTable.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1262,
1435,
288,
3639,
1250,
4203,
273,
629,
31,
3639,
514,
6382,
273,
2332,
18,
588,
1396,
2932,
7398,
18,
8712,
8863,
3639,
309,
261,
8712,
480,
446,
13,
288,
5411,
1387,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1262,
1435,
288,
3639,
1250,
4203,
273,
629,
31,
3639,
514,
6382,
273,
2332,
18,
588,
1396,
2932,
7398,
18,
8712,
8863,
3639,
309,
261,
8712,
480,
446,
13,
288,
5411,
1387,
2... |
public String generateAssociationRole(Object m); | String generateAssociationRole(Object m); | public String generateAssociationRole(Object m); | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/e731149c55337fa442f598b6b0bcea95cdaa8dd5/NotationProvider2.java/clean/src_new/org/argouml/application/api/NotationProvider2.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
2103,
7174,
2996,
12,
921,
312,
1769,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
2103,
7174,
2996,
12,
921,
312,
1769,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
if (child instanceof JspToken && ((JspToken) child).getTokenType() == JspToken.JSP_SCRIPTLET_END) break; | if (child instanceof JspToken && ((JspToken) child).getTokenType() == JspTokenType.JSP_SCRIPTLET_END) break; | private static PsiElement locateAnchor(PsiElement child) { while (child != null) { PsiElement prev = child.getPrevSibling(); if (prev instanceof PsiStatement) break; if (prev instanceof PsiJavaToken && ((PsiJavaToken)prev).getTokenType() == JavaTokenType.LBRACE) break; if (prev instanceof JspToken && ((JspToken) prev).getTokenType() == JspToken.JSP_SCRIPTLET_START) break; child = prev; if (child instanceof JspToken && ((JspToken) child).getTokenType() == JspToken.JSP_SCRIPTLET_END) break; } if (!(child instanceof JspToken && ((JspToken) child).getTokenType() == JspToken.JSP_SCRIPTLET_END)) { while (true) { if (!(child instanceof PsiWhiteSpace) && !(child instanceof PsiComment) && !(child instanceof JspExpression) && !(child instanceof JspToken) ) break; child = child.getNextSibling(); } } return child; } | 56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/7cc49f57fd75f032b80560ecde54c4a99bda9ac7/IntroduceVariableBase.java/buggy/source/com/intellij/refactoring/introduceVariable/IntroduceVariableBase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
760,
453,
7722,
1046,
10627,
11605,
12,
52,
7722,
1046,
1151,
13,
288,
565,
1323,
261,
3624,
480,
446,
13,
288,
1377,
453,
7722,
1046,
2807,
273,
1151,
18,
588,
9958,
10291,
5621,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
453,
7722,
1046,
10627,
11605,
12,
52,
7722,
1046,
1151,
13,
288,
565,
1323,
261,
3624,
480,
446,
13,
288,
1377,
453,
7722,
1046,
2807,
273,
1151,
18,
588,
9958,
10291,
5621,
... |
setCursorPosition(x, y); | setCursorPosition(x, y); | private static void resetMouse() { dx = dy = dwheel = 0; width = Display.getDisplayMode().getWidth(); height = Display.getDisplayMode().getHeight(); x = width / 2; y = height / 2; readBuffer.clear(); if (!isGrabbed() && (Cursor.getCapabilities() & Cursor.CURSOR_ONE_BIT_TRANSPARENCY) != 0) setCursorPosition(x, y); } | 5076 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5076/0b9d221f9cc34c560fe5f6ae4f7f943b1cb21848/Mouse.java/buggy/src/java/org/lwjgl/input/Mouse.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
918,
2715,
9186,
1435,
288,
202,
202,
13437,
273,
7732,
273,
12394,
11648,
273,
374,
31,
202,
202,
2819,
273,
9311,
18,
588,
4236,
2309,
7675,
588,
2384,
5621,
202,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
918,
2715,
9186,
1435,
288,
202,
202,
13437,
273,
7732,
273,
12394,
11648,
273,
374,
31,
202,
202,
2819,
273,
9311,
18,
588,
4236,
2309,
7675,
588,
2384,
5621,
202,
202,
... |
public static Color convertRGBICCColor(Element e, SVGColor p, | public static Color convertRGBICCColor(Element e, SVGColor p, | public static Color convertRGBICCColor(Element e, SVGColor p, float opacity, BridgeContext ctx){ SVGICCColor iccColor = p.getICCColor(); Color color = null; if(iccColor != null){ color = convertICCColor(e, iccColor, opacity, ctx); } if(color == null){ color = convertColor(p.getRGBColor(), opacity); } return color; } | 45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/c768a04d8af4d82e60456e2546e0195e7135575b/CSSUtilities.java/buggy/sources/org/apache/batik/bridge/CSSUtilities.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
5563,
1765,
11343,
2871,
39,
2957,
12,
1046,
425,
16,
11281,
2957,
293,
16,
4766,
5411,
1431,
12636,
16,
4766,
6647,
24219,
1042,
1103,
15329,
3639,
11281,
2871,
39,
2957,
277,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5563,
1765,
11343,
2871,
39,
2957,
12,
1046,
425,
16,
11281,
2957,
293,
16,
4766,
5411,
1431,
12636,
16,
4766,
6647,
24219,
1042,
1103,
15329,
3639,
11281,
2871,
39,
2957,
277,
... |
return new CPPASTReferenceOperator(); } | return new CPPASTReferenceOperator(); } | protected ICPPASTReferenceOperator createReferenceOperator() { return new CPPASTReferenceOperator(); } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/8b59056395eb6c26e898030e7e1cd1b78d4db999/GNUCPPSourceParser.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/GNUCPPSourceParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
4750,
467,
4258,
4066,
882,
2404,
5592,
752,
2404,
5592,
1435,
288,
1377,
327,
394,
5181,
4066,
882,
2404,
5592,
5621,
282,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
4750,
467,
4258,
4066,
882,
2404,
5592,
752,
2404,
5592,
1435,
288,
1377,
327,
394,
5181,
4066,
882,
2404,
5592,
5621,
282,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
public Connection getConnection() throws Exception { //default to ActiveMq for Jms 1.1 support Properties p = JmsTestUtils.getJmsProperties(JmsTestUtils.ACTIVE_MQ_JMS_PROPERTIES); Connection cnn = JmsTestUtils.getQueueConnection(p); cnn.start(); return cnn; } | 2370 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2370/8cc09178adb8b0a3803c08f7b3cf0b6cf566d2b0/ActiveMQJmsTransactionFunctionalTestCase.java/buggy/tests/integration/src/test/java/org/mule/test/integration/providers/jms/activemq/ActiveMQJmsTransactionFunctionalTestCase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4050,
6742,
1435,
1216,
1185,
565,
288,
3639,
368,
1886,
358,
8857,
49,
85,
364,
19870,
404,
18,
21,
2865,
3639,
6183,
293,
273,
19870,
4709,
1989,
18,
588,
23058,
2297,
12,
23058,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4050,
6742,
1435,
1216,
1185,
565,
288,
3639,
368,
1886,
358,
8857,
49,
85,
364,
19870,
404,
18,
21,
2865,
3639,
6183,
293,
273,
19870,
4709,
1989,
18,
588,
23058,
2297,
12,
23058,
... | ||
super(position); | super(position, NodeTypes.ARGSNODE); | public ArgsNode(ISourcePosition position, ListNode arguments, ListNode optionalArguments, int restArguments, BlockArgNode blockArgNode) { super(position); this.arguments = arguments; this.optArgs = optionalArguments; this.restArg = restArguments; this.blockArgNode = blockArgNode; if (getRestArg() == -2) { arity = Arity.optional(); } else if (getOptArgs() != null || getRestArg() >= 0) { arity = Arity.required(getArgsCount()); } else { arity = Arity.createArity(getArgsCount()); } } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/6e15491217631472c05c6928672f9c7064a978b3/ArgsNode.java/buggy/src/org/jruby/ast/ArgsNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6634,
907,
12,
45,
1830,
2555,
1754,
16,
987,
907,
1775,
16,
987,
907,
3129,
4628,
16,
2398,
509,
3127,
4628,
16,
3914,
4117,
907,
1203,
4117,
907,
13,
288,
3639,
2240,
12,
3276,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6634,
907,
12,
45,
1830,
2555,
1754,
16,
987,
907,
1775,
16,
987,
907,
3129,
4628,
16,
2398,
509,
3127,
4628,
16,
3914,
4117,
907,
1203,
4117,
907,
13,
288,
3639,
2240,
12,
3276,
... |
int index = menus.indexOf(menu); if (index == -1) return; | Menu m = (Menu) menus.get (index); menus.remove (index); m.removeNotify (); m.parent = null; | remove(MenuComponent menu){ int index = menus.indexOf(menu); if (index == -1) return; remove(index);} | 27835 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27835/3fe1c14284ce32b79d0e66441aec6a45a77ff684/MenuBar.java/buggy/libjava/java/awt/MenuBar.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1206,
12,
4599,
1841,
3824,
15329,
225,
509,
770,
273,
21374,
18,
31806,
12,
5414,
1769,
225,
309,
261,
1615,
422,
300,
21,
13,
565,
327,
31,
225,
1206,
12,
1615,
1769,
97,
2,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1206,
12,
4599,
1841,
3824,
15329,
225,
509,
770,
273,
21374,
18,
31806,
12,
5414,
1769,
225,
309,
261,
1615,
422,
300,
21,
13,
565,
327,
31,
225,
1206,
12,
1615,
1769,
97,
2,
-100,
-100,
... |
if ( groups == null || groups.length == 0 || indexArray == null ) | if ( groups == null || groups.length == 0 || indexArray == null) | public static List[] getGroupInfo( List[] groups, int[] indexArray ) throws DataException { Map deleteNumMap = new HashMap( ); if ( groups == null || groups.length == 0 || indexArray == null ) return groups; List endLevelList = groups[groups.length - 1]; if ( validateGroupLevel( endLevelList, indexArray ) ) { int firstChild = -1, count = 0, startCount = 0; GroupInfo baseInfo = (GroupInfo) endLevelList.get( 0 ); for ( int i = 1; i < endLevelList.size( ); i++ ) { count = 0; GroupInfo info = (GroupInfo) endLevelList.get( i ); firstChild = info.firstChild; while ( startCount < indexArray.length ) { if ( indexArray[startCount] < firstChild && indexArray[startCount] >= baseInfo.firstChild ) { startCount++; count++; continue; } else break; } if ( count < firstChild - baseInfo.firstChild ) { deleteNumMap.put( info, new Integer( firstChild - baseInfo.firstChild - count ) ); } baseInfo = info; } } else { throw new DataException( ResourceConstants.INDEX_ARRAY_INVALID ); } return cleanUnUsedGroupInstance(doRefactorOnGroupInfo( groups, deleteNumMap )); } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/6f2f631c7914340f9d8a1a242b081e904e3be79d/GroupInfoUtil.java/clean/data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/impl/document/GroupInfoUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
987,
8526,
11751,
966,
12,
987,
8526,
3252,
16,
509,
8526,
770,
1076,
262,
1082,
202,
15069,
1910,
503,
202,
95,
202,
202,
863,
1430,
2578,
863,
273,
394,
4317,
12,
11272... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
987,
8526,
11751,
966,
12,
987,
8526,
3252,
16,
509,
8526,
770,
1076,
262,
1082,
202,
15069,
1910,
503,
202,
95,
202,
202,
863,
1430,
2578,
863,
273,
394,
4317,
12,
11272... |
} | } | public void setAddressResolver(AddressResolver addressResolver) { this.addressResolver = addressResolver; } | 7607 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7607/4f12c0c8b2fbf4bc0524f4624c4324731f35bcc9/SIPTransactionStack.java/buggy/trunk/src/gov/nist/javax/sip/stack/SIPTransactionStack.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
1071,
918,
444,
1887,
4301,
12,
1887,
4301,
1758,
4301,
13,
288,
202,
202,
2211,
18,
2867,
4301,
273,
1758,
4301,
31,
202,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
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,
918,
444,
1887,
4301,
12,
1887,
4301,
1758,
4301,
13,
288,
202,
202,
2211,
18,
2867,
4301,
273,
1758,
4301,
31,
202,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
bLineThrough.setSelection( DesignChoiceConstants.TEXT_LINE_THROUGH_LINE_THROUGH.equals( value ) ); | wasSelected3 = DesignChoiceConstants.TEXT_LINE_THROUGH_LINE_THROUGH.equals( value ); bLineThrough.setSelection( wasSelected3 ); | protected void doLoad( ) { if ( bUnderLine != null ) { String value = getPreferenceStore( ).getString( getUnderlinePropName( ) ); bUnderLine.setSelection( DesignChoiceConstants.TEXT_UNDERLINE_UNDERLINE.equals( value ) ); } if ( bOverLine != null ) { String value = getPreferenceStore( ).getString( getOverLinePropName( ) ); bOverLine.setSelection( DesignChoiceConstants.TEXT_OVERLINE_OVERLINE.equals( value ) ); } if ( bLineThrough != null ) { String value = getPreferenceStore( ).getString( getLineThroughPropName( ) ); bLineThrough.setSelection( DesignChoiceConstants.TEXT_LINE_THROUGH_LINE_THROUGH.equals( value ) ); } } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/3db900b760af24686a4f6ffff7e4dc15c19b1036/DecorationFieldEditor.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/dialogs/DecorationFieldEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
741,
2563,
12,
262,
202,
95,
202,
202,
430,
261,
324,
14655,
1670,
480,
446,
262,
202,
202,
95,
1082,
202,
780,
460,
273,
336,
9624,
2257,
12,
262,
18,
588,
780,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
741,
2563,
12,
262,
202,
95,
202,
202,
430,
261,
324,
14655,
1670,
480,
446,
262,
202,
202,
95,
1082,
202,
780,
460,
273,
336,
9624,
2257,
12,
262,
18,
588,
780,
12,
... |
public void testCompileActiveSavedAnyUnsavedButSaveWhenAsked() throws BadLocationException, IOException { final OpenDefinitionsDocument doc = setupDocument(FOO_TEXT); final OpenDefinitionsDocument doc2 = setupDocument(BAR_TEXT); final File file = tempFile(); final File file2 = tempFile(1); CompileShouldSucceedListener listener = new CompileShouldSucceedListener() { public void saveAllBeforeProceeding(GlobalModelListener.SaveReason reason) { assertEquals(_name() + "save reason", COMPILE_REASON, reason); assertModified(false, doc); assertModified(true, doc2); assertSaveCount(0); assertCompileStartCount(0); assertCompileEndCount(0); assertInteractionsResetCount(0); assertConsoleResetCount(0); try { doc2.saveFile(new FileSelector(file2)); } catch (IOException ioe) { fail("Save produced exception: " + ioe); } saveAllBeforeProceedingCount++; assertModified(false, doc); assertModified(false, doc2); assertTrue(!_model.areAnyModifiedSinceSave()); } public void fileSaved(OpenDefinitionsDocument doc) { assertModified(false, doc); assertSaveAllBeforeProceedingCount(0); assertCompileStartCount(0); assertCompileEndCount(0); assertInteractionsResetCount(0); assertConsoleResetCount(0); File f = null; try { f = doc.getFile(); } catch (IllegalStateException ise) { // We know file should exist throw new UnexpectedException(ise); } assertEquals(_name() + "file saved", file2, f); saveCount++; } }; assertModified(true, doc); doc.saveFile(new FileSelector(file)); assertModified(false, doc); assertModified(true, doc2); _model.addListener(listener); doc.startCompile(); assertTrue(!_model.areAnyModifiedSinceSave()); // Check events fired listener.assertCompileStartCount(1); listener.assertSaveAllBeforeProceedingCount(1); listener.assertSaveCount(1); assertCompileErrorsPresent(_name(), false); listener.checkCompileOccurred(); // Make sure .class exists File compiled = classForJava(file, "Foo"); assertTrue(_name() + "Class file doesn't exist after compile", compiled.exists()); } | 11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/191c3e4b63ea8ecc780014db5fc908a6ccd9ee7a/GlobalModelCompileTest.java/clean/drjava/src/edu/rice/cs/drjava/model/GlobalModelCompileTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
9937,
3896,
16776,
2961,
984,
14077,
31167,
4755,
9434,
23663,
329,
1435,
565,
1216,
6107,
2735,
503,
16,
1860,
225,
288,
565,
727,
3502,
7130,
2519,
997,
273,
3875,
2519,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
9937,
3896,
16776,
2961,
984,
14077,
31167,
4755,
9434,
23663,
329,
1435,
565,
1216,
6107,
2735,
503,
16,
1860,
225,
288,
565,
727,
3502,
7130,
2519,
997,
273,
3875,
2519,
... | ||
"zzz2[METHOD_REF]{zzz2(), Ltest.TestCollections;, (Ljava.lang.Object;)V, zzz2, (t), " + (R_DEFAULT + R_INTERESTING + R_CASE + R_NON_RESTRICTED) + "}", | "zzz2[METHOD_REF]{zzz2(), Ltest.TestCollections;, (Ljava.lang.Object;)V, zzz2, (t), " + (R_DEFAULT + R_INTERESTING + R_CASE + R_NON_INHERITED + R_NON_RESTRICTED) + "}", | public void test0279() throws JavaModelException { this.workingCopies = new ICompilationUnit[2]; this.workingCopies[0] = getWorkingCopy( "/Completion/src/test/Test.java", "package test;\n"+ "public class Test extends TestCollections {\n"+ " void foo() {\n"+ " super.<Object>zzz\n"+ " }\n"+ "}\n"); this.workingCopies[1] = getWorkingCopy( "/Completion/src/test/TestCollections.java", "package test;\n"+ "public class TestCollections {\n"+ " public <T> void zzz1(T t) {}\n"+ " public static <T> void zzz2(T t) {}\n"+ "}"); CompletionTestsRequestor2 requestor = new CompletionTestsRequestor2(true); String str = this.workingCopies[0].getSource(); String completeBehind = "zzz"; int cursorLocation = str.lastIndexOf(completeBehind) + completeBehind.length(); this.workingCopies[0].codeComplete(cursorLocation, requestor, this.wcOwner); assertResults( "zzz2[METHOD_REF]{zzz2(), Ltest.TestCollections;, (Ljava.lang.Object;)V, zzz2, (t), " + (R_DEFAULT + R_INTERESTING + R_CASE + R_NON_RESTRICTED) + "}", requestor.getResults());} | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/a41dabb1394f93c450316730395779f5d0c3b158/CompletionTests_1_5.java/clean/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/CompletionTests_1_5.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
1842,
3103,
7235,
1435,
1216,
5110,
1488,
503,
288,
202,
2211,
18,
20478,
15670,
273,
394,
467,
19184,
2802,
63,
22,
15533,
202,
2211,
18,
20478,
15670,
63,
20,
65,
273,
336,
14836,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
1842,
3103,
7235,
1435,
1216,
5110,
1488,
503,
288,
202,
2211,
18,
20478,
15670,
273,
394,
467,
19184,
2802,
63,
22,
15533,
202,
2211,
18,
20478,
15670,
63,
20,
65,
273,
336,
14836,... |
outlines.add(outline); ArrayList kids = outline.getKids(); for (int k = 0; k < kids.size(); ++k) outlineTree((PdfOutline)kids.get(k)); | outlines.add(outline); ArrayList kids = outline.getKids(); for (int k = 0; k < kids.size(); ++k) outlineTree((PdfOutline)kids.get(k)); | void outlineTree(PdfOutline outline) { outlines.add(outline); ArrayList kids = outline.getKids(); for (int k = 0; k < kids.size(); ++k) outlineTree((PdfOutline)kids.get(k)); } | 3506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3506/6288f051b807f9da0a0f308a00b5851da285b8fb/PdfDocument.java/buggy/itext/src/com/lowagie/text/pdf/PdfDocument.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
16363,
2471,
12,
18562,
21805,
16363,
13,
288,
3639,
596,
3548,
18,
1289,
12,
25134,
1769,
3639,
2407,
417,
2232,
273,
16363,
18,
588,
47,
2232,
5621,
3639,
364,
261,
474,
417,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
918,
16363,
2471,
12,
18562,
21805,
16363,
13,
288,
3639,
596,
3548,
18,
1289,
12,
25134,
1769,
3639,
2407,
417,
2232,
273,
16363,
18,
588,
47,
2232,
5621,
3639,
364,
261,
474,
417,
273,
... |
Enumeration e = functionMap.keys(); String[] a = new String[functionMap.size()]; | Enumeration e = functionNames.keys(); String[] a = new String[functionNames.size()]; | FindFunction(Main db, Hashtable functionMap, String title, String labelText) { super(db, title, true); this.functionMap = functionMap; this.db = db; cancelButton = new JButton("Cancel"); setButton = new JButton("Select"); cancelButton.addActionListener(this); setButton.addActionListener(this); getRootPane().setDefaultButton(setButton); list = new JList(new DefaultListModel()); DefaultListModel model = (DefaultListModel)list.getModel(); model.clear(); Enumeration e = functionMap.keys(); String[] a = new String[functionMap.size()]; int i = 0; while (e.hasMoreElements()) { a[i++] = e.nextElement().toString(); } java.util.Arrays.sort(a); for (i = 0; i < a.length; i++) { model.addElement(a[i]); } list.setSelectedIndex(0); setButton.setEnabled(a.length > 0); list.setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION); list.addMouseListener(new MouseHandler()); JScrollPane listScroller = new JScrollPane(list); listScroller.setPreferredSize(new Dimension(320, 240)); listScroller.setMinimumSize(new Dimension(250, 80)); listScroller.setAlignmentX(LEFT_ALIGNMENT); //Create a container so that we can add a title around //the scroll pane. Can't add a title directly to the //scroll pane because its background would be white. //Lay out the label and scroll pane from top to button. JPanel listPane = new JPanel(); listPane.setLayout(new BoxLayout(listPane, BoxLayout.Y_AXIS)); JLabel label = new JLabel(labelText); label.setLabelFor (list); listPane.add(label); listPane.add(Box.createRigidArea(new Dimension(0,5))); listPane.add(listScroller); listPane.setBorder(BorderFactory.createEmptyBorder(10,10,10,10)); //Lay out the buttons from left to right. JPanel buttonPane = new JPanel(); buttonPane.setLayout(new BoxLayout(buttonPane, BoxLayout.X_AXIS)); buttonPane.setBorder(BorderFactory.createEmptyBorder(0, 10, 10, 10)); buttonPane.add(Box.createHorizontalGlue()); buttonPane.add(cancelButton); buttonPane.add(Box.createRigidArea(new Dimension(10, 0))); buttonPane.add(setButton); //Put everything together, using the content pane's BorderLayout. Container contentPane = getContentPane(); contentPane.add(listPane, BorderLayout.CENTER); contentPane.add(buttonPane, BorderLayout.SOUTH); pack(); addKeyListener(new KeyAdapter() { public void keyPressed(KeyEvent ke) { int code = ke.getKeyCode(); if (code == KeyEvent.VK_ESCAPE) { ke.consume(); value = null; setVisible(false); } } }); } | 12564 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12564/61a6761d283fe04f13dd64559be07c83e1647a39/Main.java/clean/toolsrc/org/mozilla/javascript/tools/debugger/Main.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4163,
2083,
12,
6376,
1319,
16,
18559,
445,
863,
16,
1171,
514,
2077,
16,
1171,
514,
1433,
1528,
13,
288,
3639,
2240,
12,
1966,
16,
2077,
16,
638,
1769,
3639,
333,
18,
915,
863,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4163,
2083,
12,
6376,
1319,
16,
18559,
445,
863,
16,
1171,
514,
2077,
16,
1171,
514,
1433,
1528,
13,
288,
3639,
2240,
12,
1966,
16,
2077,
16,
638,
1769,
3639,
333,
18,
915,
863,
273,
... |
launch.backup(h); | launch = new LaunchBackup(repoConfFile, home, confFile); launch.backup(h); | public static void main(String[] args) throws RepositoryException, AccessDeniedException, IOException { // I have to declare all var here so they are not resetted out of the for. String zipFile = null; String confFile = null; String home = null; String repoConfFile = null; //2 booleans in case the user specified nothing boolean isBackup = false; boolean isRestore = false; //Parse the command line. for (int i = 0; i < args.length; i++) { if ( args[i].equals("--help") || args.length == 0) { usage(); } if (args[i].equals("--zip")){ zipFile = args[i + 1]; //We put it here because later we might offer other possibilities than only zip h = new ZipFileBackupIOHandler(zipFile); } if (args[i].equals("--size") && !(h != null)){ Integer max = (new Integer(args[i+ 1])); h.setMaxFileSize(max.intValue()); } if (args[i].equals("--size") && !(h != null)){ Integer max = (new Integer(args[i+ 1])); h.setMaxFileSize(max.intValue()); } if (args[i].equals("--conf") && !(h != null)){ confFile = args[i + 1]; } if (args[i].equals("backup") && isRestore == false ){ isBackup = true; repoConfFile = args[i + 1]; home = args[i + 2]; } if (args[i].equals("restore") && isBackup == false ){ isRestore = true; repoConfFile = args[i + 1]; home = args[i + 2]; } } LaunchBackup launch = new LaunchBackup(repoConfFile, home, confFile); //We need to shutdown properly the repository whatever happens try { //Launch backup if (isBackup) { launch.backup(h); } //Launch restore else if (isRestore) { launch.restore(h); } //Launch nothing (if nothing specified else { usage(); } } finally { launch.shutdown(); } } | 48761 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48761/d105df27437436a404bd3bb4dc630deab07fbc48/LaunchBackup.java/clean/contrib/backup/src/main/java/org/apache/jackrabbit/backup/LaunchBackup.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
1216,
13367,
16,
21665,
16,
1860,
288,
4202,
368,
467,
1240,
358,
14196,
777,
569,
2674,
1427,
2898,
854,
486,
2715,
2344,
596,
434,
326,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
1216,
13367,
16,
21665,
16,
1860,
288,
4202,
368,
467,
1240,
358,
14196,
777,
569,
2674,
1427,
2898,
854,
486,
2715,
2344,
596,
434,
326,
3... |
if ( synPredMatched462 ) { | if ( synPredMatched475 ) { | public final void mNEXT_TOKEN(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { int _ttype; Token _token=null; int _begin=text.length(); _ttype = NEXT_TOKEN; int _saveIndex; Token ncname=null; switch ( LA(1)) { case '{': { mLCURLY(false); if ( inputState.guessing==0 ) { inElementContent= false; _ttype = LCURLY; } break; } case '}': { mRCURLY(false); if ( inputState.guessing==0 ) { _ttype = RCURLY; } break; } default: boolean synPredMatched455 = false; if (((LA(1)=='(') && (LA(2)==':') && (LA(3)==':') && (LA(4)=='p'))) { int _m455 = mark(); synPredMatched455 = true; inputState.guessing++; try { { match("(::"); } } catch (RecognitionException pe) { synPredMatched455 = false; } rewind(_m455); inputState.guessing--; } if ( synPredMatched455 ) { mPRAGMA(false); if ( inputState.guessing==0 ) { _ttype = Token.SKIP; } } else if ((LA(1)=='(') && (LA(2)==':') && (_tokenSet_7.member(LA(3))) && (_tokenSet_7.member(LA(4)))) { mEXPR_COMMENT(false); if ( inputState.guessing==0 ) { _ttype = Token.SKIP; } } else if ((LA(1)=='<') && (LA(2)=='!') && (LA(3)=='-')) { mXML_COMMENT(false); if ( inputState.guessing==0 ) { _ttype = XML_COMMENT; } } else if ((LA(1)=='<') && (LA(2)=='!') && (LA(3)=='[')) { mXML_CDATA(false); if ( inputState.guessing==0 ) { _ttype = XML_CDATA; } } else { boolean synPredMatched469 = false; if (((_tokenSet_18.member(LA(1))) && (_tokenSet_19.member(LA(2))) && (_tokenSet_20.member(LA(3))) && (true))) { int _m469 = mark(); synPredMatched469 = true; inputState.guessing++; try { { mINTEGER_LITERAL(false); { switch ( LA(1)) { case '.': { match('.'); { if ((_tokenSet_3.member(LA(1)))) { mINTEGER_LITERAL(false); } else if ((LA(1)=='E'||LA(1)=='e')) { } else { throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); } } break; } case 'E': case 'e': { break; } default: { throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); } } } { switch ( LA(1)) { case 'e': { match('e'); break; } case 'E': { match('E'); break; } default: { throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); } } } } } catch (RecognitionException pe) { synPredMatched469 = false; } rewind(_m469); inputState.guessing--; } if ( synPredMatched469 ) { mDOUBLE_LITERAL(false); if ( inputState.guessing==0 ) { _ttype = DOUBLE_LITERAL; } } else if ((LA(1)=='-') && (LA(2)=='-') && (LA(3)=='>') && (true)) { mXML_COMMENT_END(false); if ( inputState.guessing==0 ) { _ttype = XML_COMMENT_END; } } else if ((LA(1)==']') && (LA(2)==']') && (LA(3)=='>') && (true)) { mXML_CDATA_END(false); if ( inputState.guessing==0 ) { _ttype = XML_CDATA_END; } } else { boolean synPredMatched453 = false; if (((LA(1)=='<') && (LA(2)=='?'))) { int _m453 = mark(); synPredMatched453 = true; inputState.guessing++; try { { mXML_PI_START(false); } } catch (RecognitionException pe) { synPredMatched453 = false; } rewind(_m453); inputState.guessing--; } if ( synPredMatched453 ) { mXML_PI(false); if ( inputState.guessing==0 ) { _ttype = XML_PI; } } else if ((LA(1)=='<') && (LA(2)=='/')) { mEND_TAG_START(false); if ( inputState.guessing==0 ) { inElementContent= false; wsExplicit= false; _ttype = END_TAG_START; } } else if ((LA(1)=='<') && (LA(2)=='=')) { mLTEQ(false); if ( inputState.guessing==0 ) { _ttype = LTEQ; } } else if (((LA(1)=='"'||LA(1)=='\'') && ((LA(2) >= '\u0003' && LA(2) <= '\ufffe')) && (true) && (true))&&( parseStringLiterals )) { mSTRING_LITERAL(false); if ( inputState.guessing==0 ) { _ttype = STRING_LITERAL; } } else { boolean synPredMatched457 = false; if ((((LA(1)=='.') && (LA(2)=='.') && (true) && (true))&&( !(inAttributeContent || inElementContent) ))) { int _m457 = mark(); synPredMatched457 = true; inputState.guessing++; try { { match('.'); match('.'); } } catch (RecognitionException pe) { synPredMatched457 = false; } rewind(_m457); inputState.guessing--; } if ( synPredMatched457 ) { mPARENT(false); if ( inputState.guessing==0 ) { _ttype = PARENT; } } else if (((LA(1)=='/') && (LA(2)=='/') && (true) && (true))&&( !(inAttributeContent || inElementContent) )) { mDSLASH(false); if ( inputState.guessing==0 ) { _ttype = DSLASH; } } else if (((LA(1)=='|') && (LA(2)=='=') && (true) && (true))&&( !(inAttributeContent || inElementContent) )) { mOREQ(false); if ( inputState.guessing==0 ) { _ttype = OREQ; } } else if (((LA(1)=='&') && (LA(2)=='=') && (true) && (true))&&( !(inAttributeContent || inElementContent) )) { mANDEQ(false); if ( inputState.guessing==0 ) { _ttype = ANDEQ; } } else if (((LA(1)=='!') && (LA(2)=='=') && (true) && (true))&&( !(inAttributeContent || inElementContent) )) { mNEQ(false); if ( inputState.guessing==0 ) { _ttype = NEQ; } } else if (((LA(1)=='>') && (LA(2)=='=') && (true) && (true))&&( !(inAttributeContent || inElementContent) )) { mGTEQ(false); if ( inputState.guessing==0 ) { _ttype = GTEQ; } } else if ((LA(1)=='?') && (LA(2)=='>') && (true) && (true)) { mXML_PI_END(false); if ( inputState.guessing==0 ) { _ttype = XML_PI_END; } } else if ((LA(1)=='<') && (true)) { mLT(false); if ( inputState.guessing==0 ) { inElementContent= false; _ttype = LT; } } else if (((_tokenSet_21.member(LA(1))) && (true) && (true) && (true))&&( inAttributeContent )) { mATTRIBUTE_CONTENT(false); if ( inputState.guessing==0 ) { _ttype = ATTRIBUTE_CONTENT; } } else if (((LA(1)=='"') && (true) && (true) && (true))&&( !(parseStringLiterals || inElementContent) )) { mQUOT(false); if ( inputState.guessing==0 ) { _ttype = QUOT; } } else if (((_tokenSet_22.member(LA(1))) && (true) && (true) && (true))&&( inElementContent )) { mELEMENT_CONTENT(false); if ( inputState.guessing==0 ) { _ttype = ELEMENT_CONTENT; } } else if ((LA(1)=='\t'||LA(1)=='\n'||LA(1)=='\r'||LA(1)==' ') && (true) && (true) && (true)) { mWS(false); if ( inputState.guessing==0 ) { if (wsExplicit) { _ttype = WS; text.setLength(_begin); text.append("WS"); } else _ttype = Token.SKIP; } } else if ((_tokenSet_23.member(LA(1))) && (true) && (true) && (true)) { mNCNAME(true); ncname=_returnToken; if ( inputState.guessing==0 ) { _ttype = ncname.getType(); } } else { boolean synPredMatched460 = false; if (((_tokenSet_18.member(LA(1))) && (true) && (true) && (true))) { int _m460 = mark(); synPredMatched460 = true; inputState.guessing++; try { { match('.'); mINTEGER_LITERAL(false); { switch ( LA(1)) { case 'e': { match('e'); break; } case 'E': { match('E'); break; } default: { throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); } } } } } catch (RecognitionException pe) { synPredMatched460 = false; } rewind(_m460); inputState.guessing--; } if ( synPredMatched460 ) { mDECIMAL_LITERAL(false); if ( inputState.guessing==0 ) { _ttype = DECIMAL_LITERAL; } } else { boolean synPredMatched462 = false; if (((_tokenSet_18.member(LA(1))) && (true) && (true) && (true))) { int _m462 = mark(); synPredMatched462 = true; inputState.guessing++; try { { match('.'); mINTEGER_LITERAL(false); } } catch (RecognitionException pe) { synPredMatched462 = false; } rewind(_m462); inputState.guessing--; } if ( synPredMatched462 ) { mDECIMAL_LITERAL(false); if ( inputState.guessing==0 ) { _ttype = DECIMAL_LITERAL; } } else { boolean synPredMatched464 = false; if (((LA(1)=='.') && (true) && (true) && (true))) { int _m464 = mark(); synPredMatched464 = true; inputState.guessing++; try { { match('.'); } } catch (RecognitionException pe) { synPredMatched464 = false; } rewind(_m464); inputState.guessing--; } if ( synPredMatched464 ) { mSELF(false); if ( inputState.guessing==0 ) { _ttype = SELF; } } else { boolean synPredMatched471 = false; if (((_tokenSet_18.member(LA(1))) && (true) && (true) && (true))) { int _m471 = mark(); synPredMatched471 = true; inputState.guessing++; try { { mINTEGER_LITERAL(false); match('.'); } } catch (RecognitionException pe) { synPredMatched471 = false; } rewind(_m471); inputState.guessing--; } if ( synPredMatched471 ) { mDECIMAL_LITERAL(false); if ( inputState.guessing==0 ) { _ttype = DECIMAL_LITERAL; } } else if ((_tokenSet_3.member(LA(1))) && (true) && (true) && (true)) { mINTEGER_LITERAL(false); if ( inputState.guessing==0 ) { _ttype = INTEGER_LITERAL; } } else if ((LA(1)=='/') && (true) && (true) && (true)) { mSLASH(false); if ( inputState.guessing==0 ) { _ttype = SLASH; } } else if ((LA(1)==':') && (true) && (true) && (true)) { mCOLON(false); if ( inputState.guessing==0 ) { _ttype = COLON; } } else if ((LA(1)==',') && (true) && (true) && (true)) { mCOMMA(false); if ( inputState.guessing==0 ) { _ttype = COMMA; } } else if ((LA(1)==';') && (true) && (true) && (true)) { mSEMICOLON(false); if ( inputState.guessing==0 ) { _ttype = SEMICOLON; } } else if ((LA(1)=='*') && (true) && (true) && (true)) { mSTAR(false); if ( inputState.guessing==0 ) { _ttype = STAR; } } else if ((LA(1)=='?') && (true) && (true) && (true)) { mQUESTION(false); if ( inputState.guessing==0 ) { _ttype = QUESTION; } } else if ((LA(1)=='+') && (true) && (true) && (true)) { mPLUS(false); if ( inputState.guessing==0 ) { _ttype = PLUS; } } else if ((LA(1)=='-') && (true) && (true) && (true)) { mMINUS(false); if ( inputState.guessing==0 ) { _ttype = MINUS; } } else if ((LA(1)=='[') && (true) && (true) && (true)) { mLPPAREN(false); if ( inputState.guessing==0 ) { _ttype = LPPAREN; } } else if ((LA(1)==']') && (true) && (true) && (true)) { mRPPAREN(false); if ( inputState.guessing==0 ) { _ttype = RPPAREN; } } else if ((LA(1)=='(') && (true) && (true) && (true)) { mLPAREN(false); if ( inputState.guessing==0 ) { _ttype = LPAREN; } } else if ((LA(1)==')') && (true) && (true) && (true)) { mRPAREN(false); if ( inputState.guessing==0 ) { _ttype = RPAREN; } } else if ((LA(1)=='|') && (true) && (true) && (true)) { mUNION(false); if ( inputState.guessing==0 ) { _ttype = UNION; } } else if ((LA(1)=='@') && (true) && (true) && (true)) { mAT(false); if ( inputState.guessing==0 ) { _ttype = AT; } } else if ((LA(1)=='$') && (true) && (true) && (true)) { mDOLLAR(false); if ( inputState.guessing==0 ) { _ttype = DOLLAR; } } else if ((LA(1)=='=') && (true) && (true) && (true)) { mEQ(false); if ( inputState.guessing==0 ) { _ttype = EQ; } } else if ((LA(1)=='>') && (true) && (true) && (true)) { mGT(false); if ( inputState.guessing==0 ) { _ttype = GT; } } else { throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn()); } }}}}}}}} if ( _createToken && _token==null && _ttype!=Token.SKIP ) { _token = makeToken(_ttype); _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin)); } _returnToken = _token; } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/b1f955b7f1cec4172ad3be7bd2855bd3cca3e6f2/XQueryLexer.java/buggy/src/org/exist/xquery/parser/XQueryLexer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
312,
25539,
67,
8412,
12,
6494,
389,
2640,
1345,
13,
1216,
9539,
16,
3703,
1228,
503,
16,
3155,
1228,
503,
288,
202,
202,
474,
389,
88,
723,
31,
3155,
389,
2316,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
312,
25539,
67,
8412,
12,
6494,
389,
2640,
1345,
13,
1216,
9539,
16,
3703,
1228,
503,
16,
3155,
1228,
503,
288,
202,
202,
474,
389,
88,
723,
31,
3155,
389,
2316,
3... |
byte[] in = {1, 2, 3, 4, 5, 6, 7, 8, 9}; | byte[] in = {1, 2, 3, 4, 5, 6, 7, 8, 9}; | public void test_formatString_oneBreak() { byte[] in = {1, 2, 3, 4, 5, 6, 7, 8, 9}; // "AEBAGBAFAYDQQCI=" (16 chars) String out = base32.formatString(in, 14, "", false); assertEquals("AEBAGBAFAYDQQC\nI=", out); } | 53983 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53983/e93d3613dc17d5d6b4150d9c2a0991aa1f124f3f/base32Test.java/clean/tests/org/xbill/DNS/utils/base32Test.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
67,
2139,
780,
67,
476,
7634,
1435,
225,
288,
565,
1160,
8526,
316,
273,
288,
21,
16,
576,
16,
890,
16,
1059,
16,
1381,
16,
1666,
16,
2371,
16,
1725,
16,
2468,
20451,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
67,
2139,
780,
67,
476,
7634,
1435,
225,
288,
565,
1160,
8526,
316,
273,
288,
21,
16,
576,
16,
890,
16,
1059,
16,
1381,
16,
1666,
16,
2371,
16,
1725,
16,
2468,
20451,... |
expMgr.destroyAllExpressions(target); varMgr.destroyAllVariables(target); | expMgr.deleteAllVariables(target); | boolean processSharedLibUnloadedEvent(MISharedLibUnloadedEvent unLoaded) { Session session = (Session)getSession(); MISession miSession = unLoaded.getMISession(); Target target = session.getTarget(miSession); ExpressionManager expMgr = session.getExpressionManager(); VariableManager varMgr = session.getVariableManager(); try { expMgr.destroyAllExpressions(target); varMgr.destroyAllVariables(target); } catch (CDIException e) { } return false; } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/db8bcbda608aa7e5381f8a093e90182138dd8317/EventManager.java/clean/debug/org.eclipse.cdt.debug.mi.core/cdi/org/eclipse/cdt/debug/mi/core/cdi/EventManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
6494,
1207,
7887,
5664,
984,
4230,
1133,
12,
7492,
7887,
5664,
984,
4230,
1133,
640,
8835,
13,
288,
202,
202,
2157,
1339,
273,
261,
2157,
13,
588,
2157,
5621,
202,
202,
7492,
2157,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6494,
1207,
7887,
5664,
984,
4230,
1133,
12,
7492,
7887,
5664,
984,
4230,
1133,
640,
8835,
13,
288,
202,
202,
2157,
1339,
273,
261,
2157,
13,
588,
2157,
5621,
202,
202,
7492,
2157,
... |
public TempBucketFactory(String temp, boolean wipeFiles, RandomSource random, String prefix) throws IOException { | public TempBucketFactory(FilenameGenerator filenameGenerator) { | public TempBucketFactory(String temp, boolean wipeFiles, RandomSource random, String prefix) throws IOException { logDebug = Logger.shouldLog(Logger.DEBUG,this); tmpDir = new File(temp); if (tmpDir == null) tmpDir = new File(System.getProperty("java.io.tmpdir")); this.random = random; this.prefix = prefix; if(!tmpDir.exists()) { tmpDir.mkdir(); } if(!(tmpDir.isDirectory() && tmpDir.canRead() && tmpDir.canWrite())) throw new IOException("Not a directory or cannot read/write: "+tmpDir); if(wipeFiles) { File[] filenames = tmpDir.listFiles(); if(filenames != null) { for(int i=0;i<filenames.length;i++) { File f = filenames[i]; String name = f.getName(); if((File.separatorChar == '\\' && name.toLowerCase().startsWith(prefix.toLowerCase()) || name.startsWith(prefix))) { f.delete(); } } } } // Core.logger.log(this, "Creating TempBucketFactory, tmpDir = "+ // (tmpDir == null ? "(null)" : tmpDir), // new Exception("debug"), Logger.DEBUG); } | 56348 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56348/ae3ccb61c1609ac123f2a825e60ff11564556df6/TempBucketFactory.java/buggy/src/freenet/support/io/TempBucketFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
16380,
4103,
1733,
12,
780,
1906,
16,
1250,
341,
3151,
2697,
16,
8072,
1830,
2744,
16,
514,
1633,
13,
1216,
1860,
288,
202,
202,
1330,
2829,
273,
4242,
18,
13139,
1343,
12,
33... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
16380,
4103,
1733,
12,
780,
1906,
16,
1250,
341,
3151,
2697,
16,
8072,
1830,
2744,
16,
514,
1633,
13,
1216,
1860,
288,
202,
202,
1330,
2829,
273,
4242,
18,
13139,
1343,
12,
33... |
m_saxHandler.characters(ENDCDATA, 0, ENDCDATA.length); m_cdataTagOpen = false; | if (m_lexHandler != null && m_cdataTagOpen) { m_lexHandler.endCDATA(); } m_cdataTagOpen = false; | public void closeCDATA() throws SAXException { // Output closing bracket - "]]>" m_saxHandler.characters(ENDCDATA, 0, ENDCDATA.length); m_cdataTagOpen = false; } | 46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/c00ea99eee5bcbd7233132537342d70ee9cccad6/ToXMLSAXHandler.java/buggy/src/org/apache/xml/serializer/ToXMLSAXHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1746,
18375,
1435,
1216,
14366,
565,
288,
3639,
368,
3633,
7647,
9843,
300,
9850,
65,
2984,
3639,
312,
67,
87,
651,
1503,
18,
20558,
12,
4415,
18375,
16,
374,
16,
7273,
18375,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1746,
18375,
1435,
1216,
14366,
565,
288,
3639,
368,
3633,
7647,
9843,
300,
9850,
65,
2984,
3639,
312,
67,
87,
651,
1503,
18,
20558,
12,
4415,
18375,
16,
374,
16,
7273,
18375,
... |
return myPassword; } | if (a instanceof Account__Server) { return ((Account__Server)a).getPassword(); } else { return ""; } } | public String getPassword() { return myPassword; } | 12376 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12376/b13c667b376deb4a8f2c235ffd847b57616d23c4/ServerStructure.java/buggy/grendel/sources/grendel/prefs/base/ServerStructure.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
17397,
1435,
288,
565,
327,
3399,
3913,
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,
... | [
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
17397,
1435,
288,
565,
327,
3399,
3913,
31,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
return color; | return graphics.getColor(); | public Color getColor() { return color; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/963ae61676e8c35a9e0998e0b7de1f942db82a26/DebugGraphics.java/clean/core/src/classpath/javax/javax/swing/DebugGraphics.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
5563,
15672,
1435,
225,
288,
565,
327,
17313,
18,
588,
2957,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
5563,
15672,
1435,
225,
288,
565,
327,
17313,
18,
588,
2957,
5621,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
project.fireBuildFinished(error); | if (!projectHelp) { project.fireBuildFinished(error); } | private void runBuild(ClassLoader coreLoader) throws BuildException { if (!readyToRun) { return; } // track when we started if (msgOutputLevel >= Project.MSG_INFO) { System.out.println("Buildfile: " + buildFile); } final Project project = new Project(); project.setCoreLoader(coreLoader); Throwable error = null; try { addBuildListeners(project); PrintStream err = System.err; PrintStream out = System.out; SecurityManager oldsm = System.getSecurityManager(); try { System.setOut(new PrintStream(new DemuxOutputStream(project, false))); System.setErr(new PrintStream(new DemuxOutputStream(project, true))); project.fireBuildStarted(); project.init(); project.setUserProperty("ant.version", getAntVersion()); // set user-define properties Enumeration e = definedProps.keys(); while (e.hasMoreElements()) { String arg = (String)e.nextElement(); String value = (String)definedProps.get(arg); project.setUserProperty(arg, value); } project.setUserProperty("ant.file" , buildFile.getAbsolutePath() ); // first use the ProjectHelper to create the project object // from the given build file. String noParserMessage = "No JAXP compliant XML parser found. Please visit http://xml.apache.org for a suitable parser"; try { Class.forName("javax.xml.parsers.SAXParserFactory"); ProjectHelper.configureProject(project, buildFile); } catch (NoClassDefFoundError ncdfe) { throw new BuildException(noParserMessage, ncdfe); } catch (ClassNotFoundException cnfe) { throw new BuildException(noParserMessage, cnfe); } catch (NullPointerException npe) { throw new BuildException(noParserMessage, npe); } // make sure that we have a target to execute if (targets.size() == 0) { targets.addElement(project.getDefaultTarget()); } if (!projectHelp) { project.executeTargets(targets); } } finally { System.setOut(out); System.setErr(err); } if (projectHelp) { printDescription(project); printTargets(project); } } catch(RuntimeException exc) { error = exc; throw exc; } catch(Error err) { error = err; throw err; } finally { project.fireBuildFinished(error); } } | 639 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/639/602c461fed47f591c6a79feadc6edcf0c9b6b54d/Main.java/buggy/src/main/org/apache/tools/ant/Main.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1086,
3116,
12,
7805,
2922,
2886,
13,
1216,
18463,
288,
3639,
309,
16051,
1672,
774,
1997,
13,
288,
5411,
327,
31,
3639,
289,
3639,
368,
3298,
1347,
732,
5746,
3639,
309,
261,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
1086,
3116,
12,
7805,
2922,
2886,
13,
1216,
18463,
288,
3639,
309,
16051,
1672,
774,
1997,
13,
288,
5411,
327,
31,
3639,
289,
3639,
368,
3298,
1347,
732,
5746,
3639,
309,
261,
... |
Request request = messageFactory.createRequest( dstSipURI, method, callId, cSeq, from, to, via, maxForwards); | Request request = messageFactory.createRequest(dstSipURI, method, callId, cSeq, from, to, via, maxForwards); | protected Request createRequest( String method, AddressFactory addressFactory, HeaderFactory headerFactory, MessageFactory messageFactory, SipProvider srcProvider, SipProvider dstProvider, String contentType, String contentSubType, Object content) throws Exception { //Source SipUri SipURI srcSipURI = addressFactory.createSipURI( null, srcProvider.getSipStack().getIPAddress()); srcSipURI.setPort(srcProvider.getListeningPoint().getPort()); srcSipURI.setTransportParam( srcProvider.getListeningPoint().getTransport()); //Destination SipURI SipURI dstSipURI = addressFactory.createSipURI( null, dstProvider.getSipStack().getIPAddress()); dstSipURI.setPort(dstProvider.getListeningPoint().getPort()); dstSipURI.setTransportParam( dstProvider.getListeningPoint().getTransport()); //CallId CallIdHeader callId = srcProvider.getNewCallId(); //CSeq CSeqHeader cSeq = headerFactory.createCSeqHeader(1, method); //From Address fromAddress = addressFactory.createAddress(srcSipURI); FromHeader from = headerFactory.createFromHeader( fromAddress, Integer.toString(srcProvider.hashCode())); //To Address toAddress = addressFactory.createAddress(dstSipURI); ToHeader to = headerFactory.createToHeader(toAddress, null); //Contact ContactHeader contact = headerFactory.createContactHeader(fromAddress); List via = new LinkedList(); ViaHeader viaHeader = headerFactory .createViaHeader( srcProvider.getSipStack().getIPAddress(), srcProvider.getListeningPoint().getPort(), srcProvider.getListeningPoint().getTransport(), // BUG: Use proper RFC3261 branch ID "z9hG4bK" + Long.toString(System.currentTimeMillis()) //branch id ); via.add(viaHeader); MaxForwardsHeader maxForwards = headerFactory.createMaxForwardsHeader(3); Request request = messageFactory.createRequest( dstSipURI, method, callId, cSeq, from, to, via, maxForwards); request.addHeader(contact); if (contentType != null && contentSubType != null && content != null) { ContentTypeHeader contentTypeHdr = headerFactory.createContentTypeHeader( contentType, contentSubType); request.setContent(content, contentTypeHdr); } //pass the headerFactory - issue17 by larryb@dev.java.net addStatus(headerFactory, request); return request; } | 7607 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7607/d3bce65e49e71ee7df15bd72fd338535d4501bc1/MessageFlowHarness.java/buggy/trunk/src/test/tck/msgflow/MessageFlowHarness.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
1567,
15798,
12,
202,
202,
780,
707,
16,
202,
202,
1887,
1733,
1758,
1733,
16,
202,
202,
1864,
1733,
1446,
1733,
16,
202,
202,
1079,
1733,
883,
1733,
16,
202,
202,
17550,
224... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1567,
15798,
12,
202,
202,
780,
707,
16,
202,
202,
1887,
1733,
1758,
1733,
16,
202,
202,
1864,
1733,
1446,
1733,
16,
202,
202,
1079,
1733,
883,
1733,
16,
202,
202,
17550,
224... |
JFaceResources .getImageRegistry() .put(key, ImageDescriptor.createFromURL(new URL(iconsRoot, fileName))); | JFaceResources.getImageRegistry().put( key, ImageDescriptor.createFromURL(new URL(iconsRoot, fileName))); | private void setUpImage(URL iconsRoot, String fileName, String key) throws MalformedURLException { JFaceResources .getImageRegistry() .put(key, ImageDescriptor.createFromURL(new URL(iconsRoot, fileName))); } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/28dff015f95582b61afeedcf214061818f6ad308/JobProgressManager.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/JobProgressManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
24292,
2040,
12,
1785,
17455,
2375,
16,
514,
3968,
16,
514,
498,
13,
202,
202,
15069,
20710,
288,
202,
202,
46,
11824,
3805,
1082,
202,
18,
588,
2040,
4243,
1435,
1082,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
24292,
2040,
12,
1785,
17455,
2375,
16,
514,
3968,
16,
514,
498,
13,
202,
202,
15069,
20710,
288,
202,
202,
46,
11824,
3805,
1082,
202,
18,
588,
2040,
4243,
1435,
1082,
... |
public ActionForward prepareEditStudentGroupMembers(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws FenixActionException, FenixFilterException { HttpSession session = request.getSession(false); UserView userView = (UserView) session.getAttribute(SessionConstants.U_VIEW); String studentGroupCodeString = request.getParameter("studentGroupCode"); Integer studentGroupCode = new Integer(studentGroupCodeString); String shiftCodeString = request.getParameter("shiftCode"); request.setAttribute("shiftCode", shiftCodeString); Integer objectCode = getObjectCode(request); ISiteComponent viewStudentGroup = new InfoSiteStudentGroup(); TeacherAdministrationSiteView siteView = (TeacherAdministrationSiteView) readSiteView(request, viewStudentGroup, null, studentGroupCode, null); InfoSiteStudentGroup component = (InfoSiteStudentGroup) siteView.getComponent(); if (component.getInfoSiteStudentInformationList() == null) { ActionErrors actionErrors = new ActionErrors(); ActionError error = null; error = new ActionError("error.noGroup"); actionErrors.add("error.noGroup", error); saveErrors(request, actionErrors); return viewShiftsAndGroups(mapping, form, request, response); } Object args[] = { objectCode, studentGroupCode }; List infoStudentList = null; try { infoStudentList = (List) ServiceManagerServiceFactory.executeService(userView, "PrepareEditStudentGroupMembers", args); } catch (FenixServiceException e) { throw new FenixActionException(e); } Collections.sort(infoStudentList, new BeanComparator("number")); request.setAttribute("infoStudentList", infoStudentList); return mapping.findForward("editStudentGroupMembers"); } | 2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/f1790994e90150a41f878ae3110bab38ce01b720/TeacherAdministrationViewerDispatchAction.java/clean/src/net/sourceforge/fenixedu/presentationTier/Action/teacher/TeacherAdministrationViewerDispatchAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4382,
8514,
2911,
4666,
19943,
319,
1114,
6918,
12,
1803,
3233,
2874,
16,
4382,
1204,
646,
16,
5411,
9984,
590,
16,
12446,
766,
13,
1216,
478,
275,
697,
1803,
503,
16,
5411,
478,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4382,
8514,
2911,
4666,
19943,
319,
1114,
6918,
12,
1803,
3233,
2874,
16,
4382,
1204,
646,
16,
5411,
9984,
590,
16,
12446,
766,
13,
1216,
478,
275,
697,
1803,
503,
16,
5411,
478,
... | ||
this.pageConfiguration = pageConfigurationName; | _pageConfiguration = pageConfigurationName; | public ERD2WContextDictionary(String pageConfigurationName, NSArray pageKeys, NSArray componentKeys) { this.pageConfiguration = pageConfigurationName; context = new D2WContext(); context.setDynamicPage(pageConfiguration); if(pageKeys == null) { pageLevelKeys = new NSMutableArray(new Object[] {"pageWrapperName","displayPropertyKeys"}); } else { pageLevelKeys = pageKeys.mutableClone(); } if(componentKeys == null) { componentLevelKeys = new NSMutableArray(new Object[] {"componentName", "customComponentName", "displayNameForProperty"}); } else { componentLevelKeys = componentKeys.mutableClone(); } if("edit".equals(context.task())) { componentLevelKeys.addObject("isMandatory"); } if("list".equals(context.task())) { componentLevelKeys.addObject("propertyIsSortable"); componentLevelKeys.addObject("sortKeyForList"); } allKeys = new NSMutableDictionary(); NSMutableDictionary components = new NSMutableDictionary(); NSMutableDictionary editors = new NSMutableDictionary(); allKeys.setObjectForKey(components, "components"); allKeys.setObjectForKey(editors, "editors"); for(Enumeration e = NSBundle.frameworkBundles().objectEnumerator(); e.hasMoreElements(); ) { NSBundle bundle = (NSBundle)e.nextElement(); NSDictionary dict; dict = ERXDictionaryUtilities.dictionaryFromPropertyList("d2wClientConfiguration", bundle); if(dict != null) { if(dict.objectForKey("components") != null) { components.addEntriesFromDictionary((NSDictionary)dict.objectForKey("components")); } if(dict.objectForKey("editors") != null) { editors.addEntriesFromDictionary((NSDictionary)dict.objectForKey("editors")); } } if(dict != null) { dict = ERXDictionaryUtilities.dictionaryFromPropertyList("d2wclientConfiguration", bundle); if(dict.objectForKey("components") != null) { components.addEntriesFromDictionary((NSDictionary)dict.objectForKey("components")); } if(dict.objectForKey("editors") != null) { editors.addEntriesFromDictionary((NSDictionary)dict.objectForKey("editors")); } } } } | 17168 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17168/f109dceeba488cabc6338185a4620d9373ece675/ERD2WContextDictionary.java/buggy/Common/Frameworks/ERDirectToWeb/Sources/er/directtoweb/ERD2WContextDictionary.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4232,
40,
22,
59,
1042,
10905,
12,
780,
1363,
1750,
461,
16,
11472,
1076,
1363,
2396,
16,
11472,
1076,
1794,
2396,
13,
288,
3639,
389,
2433,
1750,
273,
1363,
1750,
461,
31,
3639,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4232,
40,
22,
59,
1042,
10905,
12,
780,
1363,
1750,
461,
16,
11472,
1076,
1363,
2396,
16,
11472,
1076,
1794,
2396,
13,
288,
3639,
389,
2433,
1750,
273,
1363,
1750,
461,
31,
3639,
... |
return keywordLabels; | return keywordLabelCache; | public Collection getKeywordLabels() { if(keywordReferences == null) return Collections.EMPTY_LIST; // TODO: this value should be cached and the keywords extension point // should be monitored for changes. Doing this will require adding // lifecycle to this class so that listeners can be cleaned up. Collection keywordLabels = new ArrayList(keywordReferences.size()); Iterator referenceIterator = keywordReferences.iterator(); while(referenceIterator.hasNext()){ Object label = KeywordRegistry.getInstance().getKeywordLabel( (String) referenceIterator.next()); if(label != null) keywordLabels.add(label); } return keywordLabels; } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/ae3e100ae6878a705a77e44dd4224a8c8afb3d99/WorkbenchPreferenceExtensionNode.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/preferences/WorkbenchPreferenceExtensionNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2200,
3579,
1095,
5888,
1435,
288,
202,
202,
430,
12,
11041,
8221,
422,
446,
13,
1082,
202,
2463,
5737,
18,
13625,
67,
7085,
31,
9506,
202,
759,
2660,
30,
333,
460,
1410,
506,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2200,
3579,
1095,
5888,
1435,
288,
202,
202,
430,
12,
11041,
8221,
422,
446,
13,
1082,
202,
2463,
5737,
18,
13625,
67,
7085,
31,
9506,
202,
759,
2660,
30,
333,
460,
1410,
506,... |
String time = prg.getHours() + ":" + prg.getMinutes(); | String time = prg.getHours() + ":" + prg.getMinutes(); | public boolean addToRecording(ElgatoConfig conf, Program prg, int length) { String date = prg.getDate().getYear() + "-" + prg.getDate().getMonth() + "-" + prg.getDate().getDayOfMonth(); String time = prg.getHours() + ":" + prg.getMinutes(); String call = CREATERECORDING.replaceAll("\\{0\\}", date); call = call.replaceAll("\\{1\\}", time); call = call.replaceAll("\\{2\\}", Integer.toString(length)); call = call.replaceAll("\\{3\\}", prg.getTitle()); call = call.replaceAll("\\{4\\}", Integer.toString(conf.getElgatoChannel(prg.getChannel()).getNumber())); call = call.replaceAll("\\{5\\}", prg.getShortInfo().replaceAll("\"", "\\\\\\\\\"").replace('\n', ' ')); String res = null; try { res = mAppleScript.executeScript(call); } catch (IOException e) { e.printStackTrace(); } if (res == null) return false; if (res.startsWith("program id")) return true; return false; } | 9266 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9266/6a7f3fa6ec762afb287b76aa3547a18af96f4474/ElgatoConnection.java/clean/tvbrowser/src/captureplugin/drivers/elgatodriver/ElgatoConnection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
9604,
21037,
12,
4958,
75,
31093,
809,
2195,
16,
13586,
846,
75,
16,
509,
769,
13,
288,
565,
514,
1509,
273,
846,
75,
18,
588,
1626,
7675,
588,
5593,
1435,
397,
7514,
397,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
9604,
21037,
12,
4958,
75,
31093,
809,
2195,
16,
13586,
846,
75,
16,
509,
769,
13,
288,
565,
514,
1509,
273,
846,
75,
18,
588,
1626,
7675,
588,
5593,
1435,
397,
7514,
397,
... |
public static void setLookAndFeel(LookAndFeel newLookAndFeel) throws UnsupportedLookAndFeelException { if (newLookAndFeel != null && ! newLookAndFeel.isSupportedLookAndFeel()) throw new UnsupportedLookAndFeelException(newLookAndFeel.getName()); LookAndFeel oldLookAndFeel = currentLookAndFeel; if (oldLookAndFeel != null) oldLookAndFeel.uninitialize(); // Set the current default look and feel using a LookAndFeel object. currentLookAndFeel = newLookAndFeel; if (newLookAndFeel != null) { newLookAndFeel.initialize(); currentUIDefaults = newLookAndFeel.getDefaults(); } else { currentUIDefaults = null; } listeners.firePropertyChange("lookAndFeel", oldLookAndFeel, newLookAndFeel); //revalidate(); //repaint(); } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/e8a49a412752cdcc88a774cac2de160a23c6f550/UIManager.java/buggy/core/src/classpath/javax/javax/swing/UIManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
3845,
6459,
542,
9794,
1876,
2954,
292,
12,
9794,
1876,
2954,
292,
2704,
9794,
1876,
2954,
292,
13,
15069,
8544,
9794,
1876,
2954,
292,
503,
95,
430,
12,
2704,
9794,
1876,
2954,
292,
5,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
3845,
6459,
542,
9794,
1876,
2954,
292,
12,
9794,
1876,
2954,
292,
2704,
9794,
1876,
2954,
292,
13,
15069,
8544,
9794,
1876,
2954,
292,
503,
95,
430,
12,
2704,
9794,
1876,
2954,
292,
5,
... | ||
case 'y': | case 'o': | public DFA.State transition(IntStream input) throws RecognitionException { switch ( input.LA(1) ) { case 'y': return s53; case 'r': return s54; case 'o': return s55; default: return s45; } } | 31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/024138fd0e08f5f4cd91a30959fe962d30fec435/JavaParserLexer.java/buggy/drools-compiler/src/main/java/org/drools/semantics/java/parser/JavaParserLexer.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,
296,
83,
4278,
10792,
327,
272,
8643,
31,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
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,
296,
83,
4278,
10792,
327,
272,
8643,
31,
... |
int w = 480; int h = 156; | int w = 480; int h = 156; | vWindow(String title) { // new vWindow(s) int w = 480; // default width // #%#%#%#??? int h = 156; // default height // #%#%#%#??? c = new wCanvas(this, title, w, h); wnum = ++wcount; a = c.getGraphics(); b = c.i.getGraphics(); gnum = ++gcount; // set the usual defaults fg = wColor.Black; bg = wColor.White; Font(iNew.String(iConfig.FontName));} | 4078 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4078/2b65dad4348487af766c7087e324e86d99c944b8/vWindow.java/buggy/jcon/vWindow.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
331,
3829,
12,
780,
2077,
13,
288,
9506,
202,
759,
394,
331,
3829,
12,
87,
13,
3639,
509,
341,
273,
1059,
3672,
31,
202,
759,
805,
1835,
202,
759,
31974,
7,
9,
7,
9,
7,
14646,
35,
565,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
331,
3829,
12,
780,
2077,
13,
288,
9506,
202,
759,
394,
331,
3829,
12,
87,
13,
3639,
509,
341,
273,
1059,
3672,
31,
202,
759,
805,
1835,
202,
759,
31974,
7,
9,
7,
9,
7,
14646,
35,
565,
... |
} | } | public synchronized Object clone() { SQLQueryer obj = null; try { obj = (SQLQueryer)super.clone(); obj.queryParameter = this.queryParameter; obj.queryPane = this.queryPane; obj.resultsPane = this.resultsPane; obj.query = this.query; obj.displayForm = this.displayForm; obj.resultName = this.resultName; } catch(Exception ex) { ex.printStackTrace(System.err); } return obj; } | 11362 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11362/3ca1d274c003725a3259e54bc06f6d9925e3fd23/SQLQueryer.java/buggy/src/java/com/idega/development/presentation/SQLQueryer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3852,
1033,
3236,
1435,
288,
565,
3063,
1138,
264,
1081,
273,
446,
31,
565,
775,
288,
1377,
1081,
273,
261,
3997,
1138,
264,
13,
9565,
18,
14056,
5621,
1377,
1081,
18,
2271,
1662,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3852,
1033,
3236,
1435,
288,
565,
3063,
1138,
264,
1081,
273,
446,
31,
565,
775,
288,
1377,
1081,
273,
261,
3997,
1138,
264,
13,
9565,
18,
14056,
5621,
1377,
1081,
18,
2271,
1662,
... |
if (filesEqual && editorsEqual) { return; | if (!filesEqual || !editorsEqual) { final FileEditorManagerEvent event = new FileEditorManagerEvent(this, oldSelectedFile, oldSelectedEditor, newSelectedFile, newSelectedEditor); myDispatcher.getMulticaster().selectionChanged(event); | public void fireSelectionChanged(final EditorComposite oldSelectedComposite, final EditorComposite newSelectedComposite) { final VirtualFile oldSelectedFile = oldSelectedComposite != null ? oldSelectedComposite.getFile() : null; final VirtualFile newSelectedFile = newSelectedComposite != null ? newSelectedComposite.getFile() : null; final FileEditor oldSelectedEditor = oldSelectedComposite != null ? oldSelectedComposite.getSelectedEditor() : null; final FileEditor newSelectedEditor = newSelectedComposite != null ? newSelectedComposite.getSelectedEditor() : null; final boolean filesEqual = oldSelectedFile == null ? newSelectedFile == null : oldSelectedFile.equals(newSelectedFile); final boolean editorsEqual = oldSelectedEditor == null ? newSelectedEditor == null : oldSelectedEditor.equals(newSelectedEditor); if (filesEqual && editorsEqual) { // no need to notify: files are the same return; } if (oldSelectedComposite != null) { oldSelectedComposite.getSelectedEditor().deselectNotify(); } final FileEditorManagerEvent event = new FileEditorManagerEvent(this, oldSelectedFile, oldSelectedEditor, newSelectedFile, newSelectedEditor); myDispatcher.getMulticaster().selectionChanged(event); } | 56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/0a1e2ad503f9416ec2ed56b273a13ae159c4afd8/FileEditorManagerImpl.java/clean/source/com/intellij/openapi/fileEditor/impl/FileEditorManagerImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
4452,
6233,
5033,
12,
6385,
18451,
9400,
1592,
7416,
9400,
16,
727,
18451,
9400,
394,
7416,
9400,
13,
288,
565,
727,
7269,
812,
1592,
7416,
812,
273,
1592,
7416,
9400,
480,
446... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
4452,
6233,
5033,
12,
6385,
18451,
9400,
1592,
7416,
9400,
16,
727,
18451,
9400,
394,
7416,
9400,
13,
288,
565,
727,
7269,
812,
1592,
7416,
812,
273,
1592,
7416,
9400,
480,
446... |
last = consume(); storageClass = IASTDeclSpecifier.sc_auto; break; | last = consume(); storageClass = IASTDeclSpecifier.sc_auto; break; | protected ICPPASTDeclSpecifier declSpecifierSeq(boolean parm, boolean tryConstructor) throws BacktrackException, EndOfFileException { IToken firstToken = LA(1); Flags flags = new Flags(parm, tryConstructor); IToken last = null; boolean isInline = false, isVirtual = false, isExplicit = false, isFriend = false; boolean isConst = false, isVolatile = false, isRestrict = false; boolean isLong = false, isShort = false, isUnsigned = false, isSigned = false, isLongLong = false; boolean isTypename = false; int storageClass = IASTDeclSpecifier.sc_unspecified; int simpleType = IASTSimpleDeclSpecifier.t_unspecified; ITokenDuple duple = null; ICPPASTCompositeTypeSpecifier classSpec = null; ICPPASTElaboratedTypeSpecifier elabSpec = null; IASTEnumerationSpecifier enumSpec = null; IASTExpression typeofExpression = null; int startOffset = firstToken.getOffset(); declSpecifiers: for (;;) { switch (LT(1)) { case IToken.t_inline: last = consume(); isInline = true; break; case IToken.t_typedef: storageClass = IASTDeclSpecifier.sc_typedef; last = consume(); break; case IToken.t_auto: last = consume(); storageClass = IASTDeclSpecifier.sc_auto; break; case IToken.t_register: last = consume(); storageClass = IASTDeclSpecifier.sc_register; break; case IToken.t_static: storageClass = IASTDeclSpecifier.sc_static; last = consume(); break; case IToken.t_extern: storageClass = IASTDeclSpecifier.sc_extern; last = consume(); break; case IToken.t_mutable: storageClass = ICPPASTDeclSpecifier.sc_mutable; last = consume(); break; case IToken.t_virtual: isVirtual = true; last = consume(); break; case IToken.t_explicit: isExplicit = true; last = consume(); break; case IToken.t_friend: isFriend = true; last = consume(); break; case IToken.t_const: isConst = true; last = consume(); break; case IToken.t_volatile: isVolatile = true; last = consume(); break; case IToken.t_restrict: if (!supportRestrict) { IToken la = LA(1); throwBacktrack(la.getOffset(), la.getEndOffset() - la.getOffset()); } isRestrict = true; last = consume(); break; case IToken.t_signed: isSigned = true; flags.setEncounteredRawType(true); last = consume(); break; case IToken.t_unsigned: isUnsigned = true; flags.setEncounteredRawType(true); last = consume(); break; case IToken.t_short: isShort = true; flags.setEncounteredRawType(true); last = consume(); break; case IToken.t_long: if (isLong && supportLongLong) { isLong = false; isLongLong = true; } else isLong = true; flags.setEncounteredRawType(true); last = consume(); break; case IToken.t__Complex: if (!supportComplex) { IToken la = LA(1); throwBacktrack(la.getOffset(), la.getEndOffset() - la.getOffset()); } last = consume(IToken.t__Complex); simpleType = IGPPASTSimpleDeclSpecifier.t_Complex; break; case IToken.t__Imaginary: if (!supportComplex) { IToken la = LA(1); throwBacktrack(la.getOffset(), la.getLength()); } last = consume(IToken.t__Imaginary); simpleType = IGPPASTSimpleDeclSpecifier.t_Imaginary; break; case IToken.t_char: simpleType = IASTSimpleDeclSpecifier.t_char; flags.setEncounteredRawType(true); last = consume(); break; case IToken.t_wchar_t: simpleType = ICPPASTSimpleDeclSpecifier.t_wchar_t; flags.setEncounteredRawType(true); last = consume(); break; case IToken.t_bool: simpleType = ICPPASTSimpleDeclSpecifier.t_bool; flags.setEncounteredRawType(true); last = consume(); break; case IToken.t_int: flags.setEncounteredRawType(true); last = consume(); simpleType = IASTSimpleDeclSpecifier.t_int; break; case IToken.t_float: simpleType = IASTSimpleDeclSpecifier.t_float; flags.setEncounteredRawType(true); last = consume(); break; case IToken.t_double: simpleType = IASTSimpleDeclSpecifier.t_double; flags.setEncounteredRawType(true); last = consume(); break; case IToken.t_void: simpleType = IASTSimpleDeclSpecifier.t_void; flags.setEncounteredRawType(true); last = consume(); break; case IToken.t_typename: isTypename = true; last = consume(IToken.t_typename); duple = name(); flags.setEncounteredTypename(true); break; case IToken.tCOLONCOLON: case IToken.tIDENTIFIER: // TODO - Kludgy way to handle constructors/destructors if (flags.haveEncounteredRawType()) break declSpecifiers; if (parm && flags.haveEncounteredTypename()) break declSpecifiers; if (lookAheadForConstructorOrOperator(flags)) break declSpecifiers; if (lookAheadForDeclarator(flags)) break declSpecifiers; duple = name(); last = duple.getLastToken(); flags.setEncounteredTypename(true); break; case IToken.t_class: case IToken.t_struct: case IToken.t_union: if (flags.haveEncounteredTypename()) throwBacktrack(LA(1)); try { classSpec = classSpecifier(); flags.setEncounteredTypename(true); break; } catch (BacktrackException bt) { elabSpec = elaboratedTypeSpecifier(); flags.setEncounteredTypename(true); break; } case IToken.t_enum: if (flags.haveEncounteredTypename()) throwBacktrack(LA(1)); try { enumSpec = enumSpecifier(); flags.setEncounteredTypename(true); break; } catch (BacktrackException bt) { // this is an elaborated class specifier elabSpec = elaboratedTypeSpecifier(); flags.setEncounteredTypename(true); break; } default: if (supportTypeOfUnaries && LT(1) == IGCCToken.t_typeof) { typeofExpression = unaryTypeofExpression(); if (typeofExpression != null) { flags.setEncounteredTypename(true); } } break declSpecifiers; } } if (elabSpec != null) { elabSpec.setConst(isConst); elabSpec.setVolatile(isVolatile); if (elabSpec instanceof IGPPASTDeclSpecifier) ((IGPPASTDeclSpecifier) elabSpec).setRestrict(isRestrict); elabSpec.setFriend(isFriend); elabSpec.setInline(isInline); elabSpec.setStorageClass(storageClass); elabSpec.setVirtual(isVirtual); elabSpec.setExplicit(isExplicit); ((CPPASTNode) elabSpec).setOffsetAndLength(startOffset, calculateEndOffset(elabSpec) - startOffset); return elabSpec; } if (enumSpec != null) { enumSpec.setConst(isConst); enumSpec.setVolatile(isVolatile); if (enumSpec instanceof IGPPASTDeclSpecifier) ((IGPPASTDeclSpecifier) enumSpec).setRestrict(isRestrict); ((ICPPASTDeclSpecifier) enumSpec).setFriend(isFriend); ((ICPPASTDeclSpecifier) enumSpec).setVirtual(isVirtual); ((ICPPASTDeclSpecifier) enumSpec).setExplicit(isExplicit); enumSpec.setInline(isInline); enumSpec.setStorageClass(storageClass); ((CPPASTNode) enumSpec).setOffsetAndLength(startOffset, calculateEndOffset(enumSpec) - startOffset); return (ICPPASTDeclSpecifier) enumSpec; } if (classSpec != null) { classSpec.setConst(isConst); classSpec.setVolatile(isVolatile); if (classSpec instanceof IGPPASTDeclSpecifier) ((IGPPASTDeclSpecifier) classSpec).setRestrict(isRestrict); classSpec.setFriend(isFriend); classSpec.setInline(isInline); classSpec.setStorageClass(storageClass); classSpec.setVirtual(isVirtual); classSpec.setExplicit(isExplicit); ((CPPASTNode) classSpec).setOffsetAndLength(startOffset, calculateEndOffset(classSpec) - startOffset); return classSpec; } if (duple != null) { ICPPASTNamedTypeSpecifier nameSpec = (ICPPASTNamedTypeSpecifier)createNamedTypeSpecifier(); nameSpec.setIsTypename(isTypename); IASTName name = createName(duple); nameSpec.setName(name); name.setParent(nameSpec); name.setPropertyInParent(IASTNamedTypeSpecifier.NAME); nameSpec.setConst(isConst); nameSpec.setVolatile(isVolatile); if (nameSpec instanceof IGPPASTDeclSpecifier) ((IGPPASTDeclSpecifier) nameSpec).setRestrict(isRestrict); nameSpec.setFriend(isFriend); nameSpec.setInline(isInline); nameSpec.setStorageClass(storageClass); nameSpec.setVirtual(isVirtual); nameSpec.setExplicit(isExplicit); ((CPPASTNode) nameSpec).setOffsetAndLength(startOffset, last .getEndOffset() - startOffset); return nameSpec; } ICPPASTSimpleDeclSpecifier simpleDeclSpec = null; if (isLongLong || typeofExpression != null) { simpleDeclSpec = createGPPSimpleDeclSpecifier(); ((IGPPASTSimpleDeclSpecifier) simpleDeclSpec).setLongLong(isLongLong); if (typeofExpression != null) { ((IGPPASTSimpleDeclSpecifier) simpleDeclSpec) .setTypeofExpression(typeofExpression); typeofExpression.setParent(simpleDeclSpec); typeofExpression .setPropertyInParent(IGPPASTSimpleDeclSpecifier.TYPEOF_EXPRESSION); } } else simpleDeclSpec = createSimpleDeclSpecifier(); int l = last != null ? last.getEndOffset() - firstToken.getOffset() : 0; ((ASTNode) simpleDeclSpec).setOffsetAndLength(firstToken.getOffset(), l); simpleDeclSpec.setConst(isConst); simpleDeclSpec.setVolatile(isVolatile); if (simpleDeclSpec instanceof IGPPASTDeclSpecifier) ((IGPPASTDeclSpecifier) simpleDeclSpec).setRestrict(isRestrict); simpleDeclSpec.setFriend(isFriend); simpleDeclSpec.setInline(isInline); simpleDeclSpec.setStorageClass(storageClass); simpleDeclSpec.setVirtual(isVirtual); simpleDeclSpec.setExplicit(isExplicit); simpleDeclSpec.setType(simpleType); simpleDeclSpec.setLong(isLong); simpleDeclSpec.setShort(isShort); simpleDeclSpec.setUnsigned(isUnsigned); simpleDeclSpec.setSigned(isSigned); return simpleDeclSpec; } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/8b59056395eb6c26e898030e7e1cd1b78d4db999/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,
565,
4750,
467,
4258,
4066,
882,
3456,
21416,
3496,
21416,
6926,
12,
6494,
19924,
16,
540,
1250,
775,
6293,
13,
1216,
4297,
4101,
503,
16,
4403,
951,
812,
503,
288,
1377,
467,
1345,
1122,
1345... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4750,
467,
4258,
4066,
882,
3456,
21416,
3496,
21416,
6926,
12,
6494,
19924,
16,
540,
1250,
775,
6293,
13,
1216,
4297,
4101,
503,
16,
4403,
951,
812,
503,
288,
1377,
467,
1345,
1122,
1345... |
try { broker = pool.get(); if (params.size() == 0) docs = broker.getAllDocuments(context.getUser()); else { docs = new DocumentSet(); String next; DocumentImpl doc; for (int i = 0; i < params.size(); i++) { next = ((PathExpr) params.elementAt(i)).getLiteralValue(); doc = (DocumentImpl) broker.getDocument(context.getUser(), next); if (doc != null) docs.add(doc); } | if (params.size() == 0) docs = context.getBroker().getAllDocuments(); else { docs = new DocumentSet(); String next; DocumentImpl doc; for (int i = 0; i < params.size(); i++) { next = ((PathExpr) params.elementAt(i)).getLiteralValue(); doc = (DocumentImpl) broker.getDocument(next); if (doc != null) docs.add(doc); | public static Expression createFunction( BrokerPool pool, StaticContext context, PathExpr parent, String fnName, Vector params) throws EXistException, PermissionDeniedException { Expression step = null; if (fnName.equals("document")) { DocumentSet docs = null; DBBroker broker = null; try { broker = pool.get(); if (params.size() == 0) docs = broker.getAllDocuments(context.getUser()); else { docs = new DocumentSet(); String next; DocumentImpl doc; for (int i = 0; i < params.size(); i++) { next = ((PathExpr) params.elementAt(i)).getLiteralValue(); doc = (DocumentImpl) broker.getDocument(context.getUser(), next); if (doc != null) docs.add(doc); } } } finally { pool.release(broker); } step = new RootNode(pool); parent.add(step); parent.setDocumentSet(docs); } if (fnName.equals("collection") || fnName.equals("xcollection")) { DocumentSet docs = new DocumentSet(); DBBroker broker = null; boolean inclusive = fnName.equals("collection"); try { broker = pool.get(); String next; DocumentSet temp; for (int i = 0; i < params.size(); i++) { next = ((PathExpr) params.elementAt(i)).getLiteralValue(); temp = broker.getDocumentsByCollection(context.getUser(), next, inclusive); docs.addAll(temp); } } finally { pool.release(broker); } step = new RootNode(pool); parent.add(step); parent.setDocumentSet(docs); } if (fnName.equals("doctype")) { DocumentSet docs = new DocumentSet(); DBBroker broker = null; try { broker = pool.get(); String next; DocumentSet temp; for (int i = 0; i < params.size(); i++) { next = ((PathExpr) params.elementAt(i)).getLiteralValue(); temp = broker.getDocumentsByDoctype(context.getUser(), next); docs.addAll(temp); } } finally { pool.release(broker); } step = new RootNode(pool); parent.add(step); parent.setDocumentSet(docs); } // near(node-set, string) if (fnName.equals("near")) { if (params.size() < 2) throw new IllegalArgumentException("Function near requires two arguments"); PathExpr p1 = (PathExpr) params.elementAt(1); if (p1.getLength() == 0) throw new IllegalArgumentException("Second argument to near is empty"); Expression e1 = p1.getExpression(0); if(!(e1 instanceof Literal)) throw new IllegalArgumentException("Second argument has to be a literal expression"); ExtNear near = new ExtNear(pool); near.addTerms(((Literal)e1).getLiteral()); near.setPath((PathExpr)params.elementAt(0)); step = near; parent.addPath(near); } // ends-with(node-set, string) if (fnName.equals("starts-with")) { if (params.size() < 2) throw new IllegalArgumentException("Function starts-with requires two arguments"); PathExpr p0 = (PathExpr) params.elementAt(0); PathExpr p1 = (PathExpr) params.elementAt(1); if (p1.getLength() == 0) throw new IllegalArgumentException("Second argument to starts-with is empty"); Expression e1 = p1.getExpression(0); if (e1 instanceof Literal && p0.returnsType() == Constants.TYPE_NODELIST) { Literal l = (Literal) e1; l.setLiteral(l.getLiteral() + '%'); OpEquals op = new OpEquals(pool, p0, e1, Constants.EQ); parent.addPath(op); step = op; } } // ends-with(node-set, string) if (fnName.equals("ends-with")) { if (params.size() < 2) throw new IllegalArgumentException("Function ends-with requires two arguments"); PathExpr p0 = (PathExpr) params.elementAt(0); PathExpr p1 = (PathExpr) params.elementAt(1); if (p1.getLength() == 0) throw new IllegalArgumentException("Second argument to ends-with is empty"); Expression e1 = p1.getExpression(0); if (e1 instanceof Literal && p0.returnsType() == Constants.TYPE_NODELIST) { Literal l = (Literal) e1; l.setLiteral('%' + l.getLiteral()); OpEquals op = new OpEquals(pool, p0, e1, Constants.EQ); parent.addPath(op); step = op; } } // contains(node-set, string) if (fnName.equals("contains")) { if (params.size() < 2) throw new IllegalArgumentException("Function contains requires two arguments"); PathExpr p0 = (PathExpr) params.elementAt(0); PathExpr p1 = (PathExpr) params.elementAt(1); if (p1.getLength() == 0) throw new IllegalArgumentException("Second argument to contains is empty"); Expression e1 = p1.getExpression(0); if (e1 instanceof Literal && p0.returnsType() == Constants.TYPE_NODELIST) { Literal l = (Literal) e1; l.setLiteral('%' + l.getLiteral() + '%'); OpEquals op = new OpEquals(pool, p0, e1, Constants.EQ); parent.addPath(op); step = op; } } if (step == null) { String clazz = context.getClassForFunction(fnName); if (clazz == null) throw new EXistException("function " + fnName + " not defined"); Function func = Function.createFunction(pool, clazz); parent.addPath(func); for (int i = 0; i < params.size(); i++) func.addArgument((PathExpr) params.elementAt(i)); step = func; } return step; } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/bfcf33dba9c98234a0edaa282c8909b27b6a6ac4/Util.java/buggy/src/org/exist/parser/Util.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
5371,
752,
2083,
12,
202,
202,
11194,
2864,
2845,
16,
202,
202,
5788,
1042,
819,
16,
202,
202,
743,
4742,
982,
16,
202,
202,
780,
2295,
461,
16,
202,
202,
5018,
859,
13... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
5371,
752,
2083,
12,
202,
202,
11194,
2864,
2845,
16,
202,
202,
5788,
1042,
819,
16,
202,
202,
743,
4742,
982,
16,
202,
202,
780,
2295,
461,
16,
202,
202,
5018,
859,
13... |
case Icode_VARINC : case Icode_VARDEC : case Token.GETVAR : case Token.SETVAR : return 1 + 1; | private static int icodeTokenLength(int icodeToken) { switch (icodeToken) { case Icode_SCOPE : case Icode_GETPROTO : case Icode_PUSH_PARENT : case Icode_GETSCOPEPARENT : case Icode_SETPROTO : case Icode_SETPARENT : case Token.DELPROP : case Token.TYPEOF : case Token.ENTERWITH : case Token.LEAVEWITH : case Token.RETURN : case Token.RETURN_POPV : case Token.SETELEM : case Token.GETELEM : case Token.SETPROP : case Token.GETPROP : case Icode_PROPINC : case Icode_PROPDEC : case Icode_ELEMINC : case Icode_ELEMDEC : case Token.BITNOT : case Token.BITAND : case Token.BITOR : case Token.BITXOR : case Token.LSH : case Token.RSH : case Token.URSH : case Token.NOT : case Token.POS : case Token.NEG : case Token.SUB : case Token.MUL : case Token.DIV : case Token.MOD : case Token.ADD : case Token.POPV : case Token.POP : case Icode_DUP : case Icode_DUPSECOND : case Icode_SWAP : case Token.LT : case Token.GT : case Token.LE : case Token.GE : case Token.IN : case Token.INSTANCEOF : case Token.EQ : case Token.NE : case Token.SHEQ : case Token.SHNE : case Token.ZERO : case Token.ONE : case Token.NULL : case Token.THIS : case Token.THISFN : case Token.FALSE : case Token.TRUE : case Token.UNDEFINED : case Icode_CATCH: case Icode_RETUNDEF: case Icode_LITERAL_SET: case Icode_SPARE_ARRAYLIT: case Token.STRING : case Token.NAME : case Token.SETNAME : case Icode_TYPEOFNAME : case Token.BINDNAME : case Icode_NAMEINC : case Icode_NAMEDEC : case Token.CATCH_SCOPE : case Token.REGEXP : case Icode_CLOSURE : case Token.NEW : case Token.CALL : case Icode_LITERAL_NEW: case Token.NUMBER : case Token.OBJECTLIT: case Token.ARRAYLIT: case Icode_NAME_FAST_THIS : case Icode_NAME_SLOW_THIS : case Token.LOCAL_SAVE : case Icode_RETSUB : case Token.LOCAL_LOAD : case Token.ENUM_INIT : case Token.ENUM_NEXT : case Token.ENUM_ID : return 1; case Token.THROW : // source line return 1 + 2; case Icode_GOSUB : case Token.GOTO : case Token.IFEQ : case Token.IFNE : case Icode_IFEQ_POP : // target pc offset return 1 + 2; case Icode_VARINC : case Icode_VARDEC : case Token.GETVAR : case Token.SETVAR : // slot index return 1 + 1; case Icode_CALLSPECIAL : // call type // is new // line number return 1 + 1 + 1 + 2; case Icode_SHORTNUMBER : // short number return 1 + 2; case Icode_INTNUMBER : // int number return 1 + 4; case Icode_REG_STR1: // ubyte string index return 1 + 1; case Icode_REG_STR2: // ushort string index return 1 + 2; case Icode_REG_STR4: // int string index return 1 + 4; case Icode_REG_IND1: // ubyte index return 1 + 1; case Icode_REG_IND2: // ushort index return 1 + 2; case Icode_REG_IND4: // int index return 1 + 4; case Icode_LINE : // line number return 1 + 2; default: Kit.codeBug(); // Bad icodeToken return 0; } } | 12904 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12904/e89f165b2a6c9a7f52e775968615b17834e78b8f/Interpreter.java/clean/js/rhino/src/org/mozilla/javascript/Interpreter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
509,
277,
710,
1345,
1782,
12,
474,
277,
710,
1345,
13,
565,
288,
3639,
1620,
261,
3487,
1345,
13,
288,
5411,
648,
467,
710,
67,
19444,
294,
5411,
648,
467,
710,
67,
3264,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
509,
277,
710,
1345,
1782,
12,
474,
277,
710,
1345,
13,
565,
288,
3639,
1620,
261,
3487,
1345,
13,
288,
5411,
648,
467,
710,
67,
19444,
294,
5411,
648,
467,
710,
67,
3264,
... | |
public ItemEntry(double in){ | public ItemEntry(double in) { | public ItemEntry(double in){ data = in; } | 8719 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8719/efb83d08bf3214ba362adb9486345c128a00bae7/HistogramParser.java/clean/usage/java/reports/source/src/org/globus/usage/report/common/HistogramParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
4342,
1622,
12,
9056,
316,
13,
288,
5411,
501,
273,
316,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
4342,
1622,
12,
9056,
316,
13,
288,
5411,
501,
273,
316,
31,
3639,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
if (setter==null) | if (setter==null) { | private Method getSetterMethod (Class c, String property, Class argType) throws SecurityException, NoSuchMethodException { if (c==null || property==null) return null; Method setter=null; try { setter = c.getMethod( "set"+ property.substring(0, 1).toUpperCase(Locale.ENGLISH) + property.substring(1), new Class[] { argType }); //$NON-NLS-1$ } catch (SecurityException e) {} catch (NoSuchMethodException e) {} if (setter==null) // allow for method invocation setter = c.getMethod(property, new Class[] { argType }); if (setter!=null && !setter.isAccessible()) setter.setAccessible(true); return setter; } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/9d125503204eb791fd5d7ba10d10960ac0bbffba/PropertyHelper.java/clean/bundles/org.eclipse.jface.databinding/src/org/eclipse/jface/internal/databinding/beans/PropertyHelper.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
2985,
336,
8465,
1305,
261,
797,
276,
16,
514,
1272,
16,
1659,
1501,
559,
13,
1216,
17780,
16,
15959,
288,
202,
202,
430,
261,
71,
631,
2011,
747,
1272,
631,
2011,
13,
1875,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2985,
336,
8465,
1305,
261,
797,
276,
16,
514,
1272,
16,
1659,
1501,
559,
13,
1216,
17780,
16,
15959,
288,
202,
202,
430,
261,
71,
631,
2011,
747,
1272,
631,
2011,
13,
1875,
... |
if (srcDir == null) { srcDir = getProject().resolveFile("."); } | public void execute() throws BuildException { if (srcDir == null) { srcDir = getProject().resolveFile("."); } NetCommand command = buildIlasmCommand(); addFilesAndExecute(command, false); } | 17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/cb9d5b1fe212b5b84563feabb20d2190ed6c735d/Ilasm.java/clean/src/main/org/apache/tools/ant/taskdefs/optional/dotnet/Ilasm.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1836,
1435,
2398,
1216,
18463,
288,
3639,
309,
261,
4816,
1621,
422,
446,
13,
288,
5411,
30585,
273,
11080,
7675,
10828,
812,
2932,
1199,
1769,
3639,
289,
3639,
8503,
2189,
1296,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1071,
918,
1836,
1435,
2398,
1216,
18463,
288,
3639,
309,
261,
4816,
1621,
422,
446,
13,
288,
5411,
30585,
273,
11080,
7675,
10828,
812,
2932,
1199,
1769,
3639,
289,
3639,
8503,
2189,
1296,... | |
Class.forName( m_driver ); | Class cls = Thread.currentThread().getContextClassLoader().loadClass(m_driver); m_Driver = cls.newInstance(); | public synchronized void initializePool( )throws IllegalArgumentException, SQLException { // Check our initial values if ( m_driver == null ) { throw new IllegalArgumentException(XSLMessages.createMessage(XSLTErrorResources.ER_NO_DRIVER_NAME_SPECIFIED, null)); // "No Driver Name Specified!"); } if ( m_url == null ) { throw new IllegalArgumentException(XSLMessages.createMessage(XSLTErrorResources.ER_NO_URL_SPECIFIED, null)); // "No URL Specified!"); } if ( m_PoolMinSize < 1 ) { throw new IllegalArgumentException(XSLMessages.createMessage(XSLTErrorResources.ER_POOLSIZE_LESS_THAN_ONE, null)); // "Pool size is less than 1!"); } // Create the Connections // Load the Driver class file try { Class.forName( m_driver ); } catch(ClassNotFoundException e) { throw new IllegalArgumentException(XSLMessages.createMessage(XSLTErrorResources.ER_INVALID_DRIVER_NAME, null)); // "Invalid Driver Name Specified!"); } // IF we are not active, don't actuall build a pool yet // Just set up the driver and periphal items. if ( !m_IsActive) return; // Create Connections based on the size member do { Connection con = createConnection(); if ( con != null ) { // Create a PooledConnection to encapsulate the // real JDBC Connection PooledConnection pcon = new PooledConnection(con); // Add the Connection the pool. addConnection(pcon); if (DEBUG) System.out.println("Adding DB Connection to the Pool"); } } while (m_pool.size() < m_PoolMinSize); } | 2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/28309daea9d1b5b2084fa23c46766631b12bfd86/DefaultConnectionPool.java/buggy/src/org/apache/xalan/lib/sql/DefaultConnectionPool.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3852,
918,
4046,
2864,
12,
262,
15069,
2754,
16,
6483,
225,
288,
377,
368,
2073,
3134,
2172,
924,
377,
309,
261,
312,
67,
7407,
422,
446,
262,
377,
288,
4202,
604,
394,
2754,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3852,
918,
4046,
2864,
12,
262,
15069,
2754,
16,
6483,
225,
288,
377,
368,
2073,
3134,
2172,
924,
377,
309,
261,
312,
67,
7407,
422,
446,
262,
377,
288,
4202,
604,
394,
2754,
12,
... |
selenium.open("./tests/html/test_type_page1.html"); | selenium.open("./tests/html/test_type_page1.html"); | public void test() throws Throwable { selenium.setContext("Test For Sample User Functions", "info"); /* Test For Sample User Functions */ // open|./tests/html/test_type_page1.html| selenium.open("./tests/html/test_type_page1.html"); /* Type 'TestUserTestUser' into the username field */ // type|username|TestUser selenium.type("username", "TestUser"); // type|username|TestUser selenium.type("username", "TestUser"); // verifyValue|username|TestUserTestUser verifyEquals("TestUserTestUser", selenium.getValue("username")); /* Verify that 'TestUser' is repeated in the field */// skipped undocumented >>>>>verifyValueRepeated//////username//////TestUser<<<<< /* Verify that we can find an element with value == 'TestUser' repeated */ boolean sawThrow13 = false; try { // originally verifyElementPresent|valuerepeated=TestUser| selenium.assertElementPresent("valuerepeated=TestUser"); } catch (Exception e) { sawThrow13 = true; } verifyFalse(sawThrow13); /* Verify that we cannot find an element with value == 'Test' repeated */ boolean sawThrow16 = false; try { // originally verifyElementNotPresent|valuerepeated=Test| selenium.assertElementNotPresent("valuerepeated=Test"); } catch (Exception e) { sawThrow16 = true; } verifyFalse(sawThrow16); /* Type 'Test' twice into the element with value='TestUserTestUser' */ // type|valuerepeated=TestUser|Test selenium.type("valuerepeated=TestUser", "Test"); // type|valuerepeated=TestUser|Test selenium.type("valuerepeated=TestUser", "Test"); /* Verify that we not CAN find an element with value == 'Test' repeated */ boolean sawThrow22 = false; try { // originally verifyElementPresent|valuerepeated=Test| selenium.assertElementPresent("valuerepeated=Test"); } catch (Exception e) { sawThrow22 = true; } verifyFalse(sawThrow22); /* Test getTextLength */ // storeTextLength|//h3|myVar Integer myVar = new Integer(selenium.getText("//h3").length()); // verifyTextLength|//h3|regexp:4[1-5] verifyEquals("regexp:4[1-5]", "" + selenium.getText("//h3").length()); // waitForTextLength|//h3|${myVar} assertEquals(myVar, "" + selenium.getText("//h3").length()); // verifyNotTextLength|//h3|46 verifyNotEquals("46", "" + selenium.getText("//h3").length()); checkForVerificationErrors(); } | 25408 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/25408/15660ffa40e3fe9cdf6de2752e79d93831571a27/TestUserExtensions.java/buggy/clients/java/src/test/java/com/thoughtworks/selenium/generated/TestUserExtensions.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
1842,
1435,
1216,
4206,
288,
202,
202,
1786,
17327,
18,
542,
1042,
2932,
4709,
2457,
11474,
2177,
15486,
3113,
315,
1376,
8863,
225,
1748,
7766,
2457,
11474,
2177,
15486,
4202,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
1842,
1435,
1216,
4206,
288,
202,
202,
1786,
17327,
18,
542,
1042,
2932,
4709,
2457,
11474,
2177,
15486,
3113,
315,
1376,
8863,
225,
1748,
7766,
2457,
11474,
2177,
15486,
4202,
1... |
fDTDGrammar.notationDecl(name, publicId, systemId, augs); | fDTDGrammar.notationDecl(name, publicId, systemId, baseSystemId, augs); | public void notationDecl(String name, String publicId, String systemId, Augmentations augs) throws XNIException { // call handlers fDTDGrammar.notationDecl(name, publicId, systemId, augs); if (fDTDHandler != null) { fDTDHandler.notationDecl(name, publicId, systemId, augs); } } // notationDecl(String,String,String) | 6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/bda39ebfdde5204af457e868d6a2908461900e9f/XMLDTDValidator.java/clean/src/org/apache/xerces/impl/dtd/XMLDTDValidator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
12155,
3456,
12,
780,
508,
16,
514,
1071,
548,
16,
514,
30083,
16,
11794,
432,
14870,
1012,
279,
9024,
13,
1216,
1139,
50,
45,
503,
288,
3639,
368,
745,
4919,
3639,
284,
2572... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
12155,
3456,
12,
780,
508,
16,
514,
1071,
548,
16,
514,
30083,
16,
11794,
432,
14870,
1012,
279,
9024,
13,
1216,
1139,
50,
45,
503,
288,
3639,
368,
745,
4919,
3639,
284,
2572... |
public org.quickfix.field.Price getPrice() throws FieldNotFound { org.quickfix.field.Price value = new org.quickfix.field.Price(); | public quickfix.field.Price getPrice() throws FieldNotFound { quickfix.field.Price value = new quickfix.field.Price(); | public org.quickfix.field.Price getPrice() throws FieldNotFound { org.quickfix.field.Price value = new org.quickfix.field.Price(); getField(value); return value; } | 5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/Advertisement.java/buggy/src/java/src/quickfix/fix42/Advertisement.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
5147,
25930,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
5147,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
514... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
5147,
25930,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
5147,
460,
273,
394,
2358,
18,
19525,
904,
18,
1518,
18,
514... |
public void visitConstNode(Node iVisited) { visit(iVisited); leave(iVisited); } | public void visitConstNode(Node iVisited) { visit(iVisited); leave(iVisited); } | public void visitConstNode(Node iVisited) { visit(iVisited); leave(iVisited); } | 47273 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47273/d31a76ee29d5978a9bec41e3ac9134cee024bcab/NodeVisitorAdapter.java/buggy/org/jruby/nodes/NodeVisitorAdapter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3757,
9661,
907,
12,
907,
277,
30019,
13,
202,
95,
202,
202,
11658,
12,
77,
30019,
1769,
202,
202,
19574,
12,
77,
30019,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
3757,
9661,
907,
12,
907,
277,
30019,
13,
202,
95,
202,
202,
11658,
12,
77,
30019,
1769,
202,
202,
19574,
12,
77,
30019,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
... |
DataPackageImpl theDataPackage = (DataPackageImpl)EPackage.Registry.INSTANCE.getEPackage(DataPackage.eNS_URI); XMLTypePackageImpl theXMLTypePackage = (XMLTypePackageImpl)EPackage.Registry.INSTANCE.getEPackage(XMLTypePackage.eNS_URI); | DataPackageImpl theDataPackage = (DataPackageImpl) EPackage.Registry.INSTANCE.getEPackage(DataPackage.eNS_URI); XMLTypePackageImpl theXMLTypePackage = (XMLTypePackageImpl) EPackage.Registry.INSTANCE .getEPackage(XMLTypePackage.eNS_URI); | public void initializePackageContents() { if (isInitialized) return; isInitialized = true; // Initialize package setName(eNAME); setNsPrefix(eNS_PREFIX); setNsURI(eNS_URI); // Obtain other dependent packages DataPackageImpl theDataPackage = (DataPackageImpl)EPackage.Registry.INSTANCE.getEPackage(DataPackage.eNS_URI); XMLTypePackageImpl theXMLTypePackage = (XMLTypePackageImpl)EPackage.Registry.INSTANCE.getEPackage(XMLTypePackage.eNS_URI); // Add supertypes to classes colorDefinitionEClass.getESuperTypes().add(this.getFill()); dateFormatSpecifierEClass.getESuperTypes().add(this.getFormatSpecifier()); gradientEClass.getESuperTypes().add(this.getFill()); imageEClass.getESuperTypes().add(this.getFill()); javaDateFormatSpecifierEClass.getESuperTypes().add(this.getFormatSpecifier()); javaNumberFormatSpecifierEClass.getESuperTypes().add(this.getFormatSpecifier()); numberFormatSpecifierEClass.getESuperTypes().add(this.getFormatSpecifier()); scriptValueEClass.getESuperTypes().add(this.getActionValue()); seriesValueEClass.getESuperTypes().add(this.getActionValue()); tooltipValueEClass.getESuperTypes().add(this.getActionValue()); urlValueEClass.getESuperTypes().add(this.getActionValue()); // Initialize classes and features; add operations and parameters initEClass(actionValueEClass, ActionValue.class, "ActionValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEClass(axisOriginEClass, AxisOrigin.class, "AxisOrigin", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getAxisOrigin_Type(), this.getIntersectionType(), "type", "Min", 1, 1, AxisOrigin.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getAxisOrigin_Value(), theDataPackage.getDataElement(), null, "value", null, 1, 1, AxisOrigin.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(boundsEClass, Bounds.class, "Bounds", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getBounds_Left(), theXMLTypePackage.getDouble(), "left", null, 1, 1, Bounds.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getBounds_Top(), theXMLTypePackage.getDouble(), "top", null, 1, 1, Bounds.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getBounds_Width(), theXMLTypePackage.getDouble(), "width", null, 1, 1, Bounds.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getBounds_Height(), theXMLTypePackage.getDouble(), "height", null, 1, 1, Bounds.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(colorDefinitionEClass, ColorDefinition.class, "ColorDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getColorDefinition_Transparency(), theXMLTypePackage.getInt(), "transparency", null, 1, 1, ColorDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getColorDefinition_Red(), this.getRGBValue(), "red", null, 1, 1, ColorDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getColorDefinition_Green(), this.getRGBValue(), "green", null, 1, 1, ColorDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getColorDefinition_Blue(), this.getRGBValue(), "blue", null, 1, 1, ColorDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(dataPointEClass, DataPoint.class, "DataPoint", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getDataPoint_Components(), this.getDataPointComponent(), null, "components", null, 1, -1, DataPoint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getDataPoint_Prefix(), theXMLTypePackage.getString(), "prefix", null, 1, 1, DataPoint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getDataPoint_Suffix(), theXMLTypePackage.getString(), "suffix", null, 1, 1, DataPoint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getDataPoint_Separator(), theXMLTypePackage.getString(), "separator", null, 1, 1, DataPoint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(dataPointComponentEClass, DataPointComponent.class, "DataPointComponent", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getDataPointComponent_Type(), this.getDataPointComponentType(), "type", "Base_Value", 1, 1, DataPointComponent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getDataPointComponent_FormatSpecifier(), this.getFormatSpecifier(), null, "formatSpecifier", null, 1, 1, DataPointComponent.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(dateFormatSpecifierEClass, DateFormatSpecifier.class, "DateFormatSpecifier", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getDateFormatSpecifier_Type(), this.getDateFormatType(), "type", "Long", 1, 1, DateFormatSpecifier.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getDateFormatSpecifier_Detail(), this.getDateFormatDetail(), "detail", "Date", 1, 1, DateFormatSpecifier.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(extendedPropertyEClass, ExtendedProperty.class, "ExtendedProperty", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getExtendedProperty_Name(), theXMLTypePackage.getString(), "name", null, 1, 1, ExtendedProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getExtendedProperty_Value(), theXMLTypePackage.getString(), "value", null, 1, 1, ExtendedProperty.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(fillEClass, Fill.class, "Fill", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getFill_Type(), theXMLTypePackage.getInt(), "type", null, 1, 1, Fill.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(fontDefinitionEClass, FontDefinition.class, "FontDefinition", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getFontDefinition_Name(), theXMLTypePackage.getString(), "name", null, 1, 1, FontDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getFontDefinition_Size(), theXMLTypePackage.getFloat(), "size", null, 1, 1, FontDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getFontDefinition_Bold(), theXMLTypePackage.getBoolean(), "bold", null, 1, 1, FontDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getFontDefinition_Italic(), theXMLTypePackage.getBoolean(), "italic", null, 1, 1, FontDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getFontDefinition_Strikethrough(), theXMLTypePackage.getBoolean(), "strikethrough", null, 1, 1, FontDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getFontDefinition_Underline(), theXMLTypePackage.getBoolean(), "underline", null, 1, 1, FontDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getFontDefinition_WordWrap(), theXMLTypePackage.getBoolean(), "wordWrap", null, 1, 1, FontDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getFontDefinition_Alignment(), this.getTextAlignment(), null, "alignment", null, 1, 1, FontDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getFontDefinition_Rotation(), theXMLTypePackage.getDouble(), "rotation", null, 1, 1, FontDefinition.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(formatSpecifierEClass, FormatSpecifier.class, "FormatSpecifier", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEClass(gradientEClass, Gradient.class, "Gradient", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getGradient_StartColor(), this.getColorDefinition(), null, "startColor", null, 1, 1, Gradient.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getGradient_EndColor(), this.getColorDefinition(), null, "endColor", null, 1, 1, Gradient.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getGradient_Direction(), theXMLTypePackage.getDouble(), "direction", null, 1, 1, Gradient.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getGradient_Cyclic(), theXMLTypePackage.getBoolean(), "cyclic", null, 1, 1, Gradient.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getGradient_Transparency(), theXMLTypePackage.getInt(), "transparency", null, 1, 1, Gradient.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(imageEClass, Image.class, "Image", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getImage_URL(), theXMLTypePackage.getString(), "uRL", null, 1, 1, Image.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(insetsEClass, Insets.class, "Insets", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getInsets_Top(), theXMLTypePackage.getDouble(), "top", null, 1, 1, Insets.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getInsets_Left(), theXMLTypePackage.getDouble(), "left", null, 1, 1, Insets.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getInsets_Bottom(), theXMLTypePackage.getDouble(), "bottom", null, 1, 1, Insets.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getInsets_Right(), theXMLTypePackage.getDouble(), "right", null, 1, 1, Insets.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(javaDateFormatSpecifierEClass, JavaDateFormatSpecifier.class, "JavaDateFormatSpecifier", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getJavaDateFormatSpecifier_Pattern(), theXMLTypePackage.getString(), "pattern", null, 1, 1, JavaDateFormatSpecifier.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(javaNumberFormatSpecifierEClass, JavaNumberFormatSpecifier.class, "JavaNumberFormatSpecifier", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getJavaNumberFormatSpecifier_Pattern(), theXMLTypePackage.getString(), "pattern", null, 1, 1, JavaNumberFormatSpecifier.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getJavaNumberFormatSpecifier_Multiplier(), theXMLTypePackage.getDouble(), "multiplier", null, 1, 1, JavaNumberFormatSpecifier.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(lineAttributesEClass, LineAttributes.class, "LineAttributes", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getLineAttributes_Style(), this.getLineStyle(), "style", "Solid", 1, 1, LineAttributes.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getLineAttributes_Thickness(), theXMLTypePackage.getInt(), "thickness", null, 1, 1, LineAttributes.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getLineAttributes_Color(), this.getColorDefinition(), null, "color", null, 1, 1, LineAttributes.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getLineAttributes_Visible(), theXMLTypePackage.getBoolean(), "visible", null, 1, 1, LineAttributes.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(locationEClass, Location.class, "Location", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getLocation_X(), theXMLTypePackage.getDouble(), "x", null, 1, 1, Location.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getLocation_Y(), theXMLTypePackage.getDouble(), "y", null, 1, 1, Location.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(markerEClass, Marker.class, "Marker", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getMarker_Type(), this.getMarkerType(), "type", "Crosshair", 1, 1, Marker.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getMarker_Size(), theXMLTypePackage.getInt(), "size", null, 1, 1, Marker.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getMarker_Visible(), theXMLTypePackage.getBoolean(), "visible", null, 1, 1, Marker.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(numberFormatSpecifierEClass, NumberFormatSpecifier.class, "NumberFormatSpecifier", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getNumberFormatSpecifier_Prefix(), theXMLTypePackage.getString(), "prefix", null, 1, 1, NumberFormatSpecifier.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getNumberFormatSpecifier_Suffix(), theXMLTypePackage.getString(), "suffix", null, 1, 1, NumberFormatSpecifier.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getNumberFormatSpecifier_Multiplier(), theXMLTypePackage.getDouble(), "multiplier", null, 1, 1, NumberFormatSpecifier.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getNumberFormatSpecifier_FractionDigits(), theXMLTypePackage.getInt(), "fractionDigits", null, 1, 1, NumberFormatSpecifier.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(paletteEClass, Palette.class, "Palette", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getPalette_Name(), theXMLTypePackage.getString(), "name", null, 1, 1, Palette.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getPalette_Entries(), this.getFill(), null, "entries", null, 1, -1, Palette.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(scriptValueEClass, ScriptValue.class, "ScriptValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getScriptValue_Script(), theXMLTypePackage.getString(), "script", null, 1, 1, ScriptValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(seriesHintEClass, SeriesHint.class, "SeriesHint", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getSeriesHint_SeriesClass(), theXMLTypePackage.getString(), "seriesClass", null, 1, 1, SeriesHint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getSeriesHint_Modifier(), theXMLTypePackage.getString(), "modifier", null, 1, 1, SeriesHint.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(seriesValueEClass, SeriesValue.class, "SeriesValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getSeriesValue_Name(), theXMLTypePackage.getString(), "name", null, 1, 1, SeriesValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(sizeEClass, Size.class, "Size", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getSize_Height(), theXMLTypePackage.getDouble(), "height", null, 1, 1, Size.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getSize_Width(), theXMLTypePackage.getDouble(), "width", null, 1, 1, Size.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(styleMapEClass, StyleMap.class, "StyleMap", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getStyleMap_ComponentName(), this.getStyledComponent(), "componentName", "Chart_Title", 1, 1, StyleMap.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getStyleMap_Style(), theXMLTypePackage.getString(), "style", null, 1, 1, StyleMap.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(textEClass, Text.class, "Text", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getText_Value(), theXMLTypePackage.getString(), "value", null, 1, 1, Text.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getText_Font(), this.getFontDefinition(), null, "font", null, 1, 1, Text.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEReference(getText_Color(), this.getColorDefinition(), null, "color", null, 1, 1, Text.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(textAlignmentEClass, TextAlignment.class, "TextAlignment", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getTextAlignment_HorizontalAlignment(), this.getHorizontalAlignment(), "horizontalAlignment", "Left", 1, 1, TextAlignment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getTextAlignment_VerticalAlignment(), this.getVerticalAlignment(), "verticalAlignment", "Top", 1, 1, TextAlignment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(tooltipValueEClass, TooltipValue.class, "TooltipValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getTooltipValue_Text(), theXMLTypePackage.getString(), "text", null, 1, 1, TooltipValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getTooltipValue_Delay(), theXMLTypePackage.getInt(), "delay", null, 1, 1, TooltipValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEClass(urlValueEClass, URLValue.class, "URLValue", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEAttribute(getURLValue_BaseUrl(), theXMLTypePackage.getString(), "baseUrl", null, 1, 1, URLValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getURLValue_Target(), theXMLTypePackage.getString(), "target", null, 1, 1, URLValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getURLValue_BaseParameterName(), theXMLTypePackage.getString(), "baseParameterName", null, 1, 1, URLValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getURLValue_ValueParameterName(), theXMLTypePackage.getString(), "valueParameterName", null, 1, 1, URLValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); initEAttribute(getURLValue_SeriesParameterName(), theXMLTypePackage.getString(), "seriesParameterName", null, 1, 1, URLValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE, !IS_DERIVED, IS_ORDERED); // Initialize enums and add enum literals initEEnum(actionTypeEEnum, ActionType.class, "ActionType"); addEEnumLiteral(actionTypeEEnum, ActionType.URL_REDIRECT_LITERAL); addEEnumLiteral(actionTypeEEnum, ActionType.SHOW_TOOLTIP_LITERAL); addEEnumLiteral(actionTypeEEnum, ActionType.TOGGLE_VISIBILITY_LITERAL); addEEnumLiteral(actionTypeEEnum, ActionType.INVOKE_SCRIPT_LITERAL); initEEnum(anchorEEnum, Anchor.class, "Anchor"); addEEnumLiteral(anchorEEnum, Anchor.NORTH_LITERAL); addEEnumLiteral(anchorEEnum, Anchor.NORTH_EAST_LITERAL); addEEnumLiteral(anchorEEnum, Anchor.EAST_LITERAL); addEEnumLiteral(anchorEEnum, Anchor.SOUTH_EAST_LITERAL); addEEnumLiteral(anchorEEnum, Anchor.SOUTH_LITERAL); addEEnumLiteral(anchorEEnum, Anchor.SOUTH_WEST_LITERAL); addEEnumLiteral(anchorEEnum, Anchor.WEST_LITERAL); addEEnumLiteral(anchorEEnum, Anchor.NORTH_WEST_LITERAL); initEEnum(axisTypeEEnum, AxisType.class, "AxisType"); addEEnumLiteral(axisTypeEEnum, AxisType.LINEAR_LITERAL); addEEnumLiteral(axisTypeEEnum, AxisType.LOGARITHMIC_LITERAL); addEEnumLiteral(axisTypeEEnum, AxisType.TEXT_LITERAL); addEEnumLiteral(axisTypeEEnum, AxisType.DATE_TIME_LITERAL); initEEnum(chartDimensionEEnum, ChartDimension.class, "ChartDimension"); addEEnumLiteral(chartDimensionEEnum, ChartDimension.TWO_DIMENSIONAL_LITERAL); addEEnumLiteral(chartDimensionEEnum, ChartDimension.TWO_DIMENSIONAL_WITH_DEPTH_LITERAL); addEEnumLiteral(chartDimensionEEnum, ChartDimension.THREE_DIMENSIONAL_LITERAL); initEEnum(chartTypeEEnum, ChartType.class, "ChartType"); addEEnumLiteral(chartTypeEEnum, ChartType.PIE_LITERAL); addEEnumLiteral(chartTypeEEnum, ChartType.BAR_LITERAL); addEEnumLiteral(chartTypeEEnum, ChartType.LINE_LITERAL); addEEnumLiteral(chartTypeEEnum, ChartType.COMBO_LITERAL); addEEnumLiteral(chartTypeEEnum, ChartType.SCATTER_LITERAL); addEEnumLiteral(chartTypeEEnum, ChartType.STOCK_LITERAL); initEEnum(dataPointComponentTypeEEnum, DataPointComponentType.class, "DataPointComponentType"); addEEnumLiteral(dataPointComponentTypeEEnum, DataPointComponentType.BASE_VALUE_LITERAL); addEEnumLiteral(dataPointComponentTypeEEnum, DataPointComponentType.ORTHOGONAL_VALUE_LITERAL); addEEnumLiteral(dataPointComponentTypeEEnum, DataPointComponentType.SERIES_VALUE_LITERAL); initEEnum(dateFormatDetailEEnum, DateFormatDetail.class, "DateFormatDetail"); addEEnumLiteral(dateFormatDetailEEnum, DateFormatDetail.DATE_LITERAL); addEEnumLiteral(dateFormatDetailEEnum, DateFormatDetail.DATE_TIME_LITERAL); initEEnum(dateFormatTypeEEnum, DateFormatType.class, "DateFormatType"); addEEnumLiteral(dateFormatTypeEEnum, DateFormatType.LONG_LITERAL); addEEnumLiteral(dateFormatTypeEEnum, DateFormatType.SHORT_LITERAL); addEEnumLiteral(dateFormatTypeEEnum, DateFormatType.MEDIUM_LITERAL); addEEnumLiteral(dateFormatTypeEEnum, DateFormatType.FULL_LITERAL); initEEnum(directionEEnum, Direction.class, "Direction"); addEEnumLiteral(directionEEnum, Direction.LEFT_RIGHT_LITERAL); addEEnumLiteral(directionEEnum, Direction.TOP_BOTTOM_LITERAL); initEEnum(horizontalAlignmentEEnum, HorizontalAlignment.class, "HorizontalAlignment"); addEEnumLiteral(horizontalAlignmentEEnum, HorizontalAlignment.LEFT_LITERAL); addEEnumLiteral(horizontalAlignmentEEnum, HorizontalAlignment.CENTER_LITERAL); addEEnumLiteral(horizontalAlignmentEEnum, HorizontalAlignment.RIGHT_LITERAL); initEEnum(intersectionTypeEEnum, IntersectionType.class, "IntersectionType"); addEEnumLiteral(intersectionTypeEEnum, IntersectionType.MIN_LITERAL); addEEnumLiteral(intersectionTypeEEnum, IntersectionType.MAX_LITERAL); addEEnumLiteral(intersectionTypeEEnum, IntersectionType.VALUE_LITERAL); initEEnum(leaderLineStyleEEnum, LeaderLineStyle.class, "LeaderLineStyle"); addEEnumLiteral(leaderLineStyleEEnum, LeaderLineStyle.FIXED_LENGTH_LITERAL); addEEnumLiteral(leaderLineStyleEEnum, LeaderLineStyle.STRETCH_TO_SIDE_LITERAL); initEEnum(legendItemTypeEEnum, LegendItemType.class, "LegendItemType"); addEEnumLiteral(legendItemTypeEEnum, LegendItemType.SERIES_LITERAL); addEEnumLiteral(legendItemTypeEEnum, LegendItemType.CATEGORIES_LITERAL); initEEnum(lineStyleEEnum, LineStyle.class, "LineStyle"); addEEnumLiteral(lineStyleEEnum, LineStyle.SOLID_LITERAL); addEEnumLiteral(lineStyleEEnum, LineStyle.DASHED_LITERAL); addEEnumLiteral(lineStyleEEnum, LineStyle.DOTTED_LITERAL); addEEnumLiteral(lineStyleEEnum, LineStyle.DASH_DOTTED_LITERAL); initEEnum(markerTypeEEnum, MarkerType.class, "MarkerType"); addEEnumLiteral(markerTypeEEnum, MarkerType.CROSSHAIR_LITERAL); addEEnumLiteral(markerTypeEEnum, MarkerType.TRIANGLE_LITERAL); addEEnumLiteral(markerTypeEEnum, MarkerType.BOX_LITERAL); addEEnumLiteral(markerTypeEEnum, MarkerType.CIRCLE_LITERAL); initEEnum(orientationEEnum, Orientation.class, "Orientation"); addEEnumLiteral(orientationEEnum, Orientation.HORIZONTAL_LITERAL); addEEnumLiteral(orientationEEnum, Orientation.VERTICAL_LITERAL); initEEnum(positionEEnum, Position.class, "Position"); addEEnumLiteral(positionEEnum, Position.ABOVE_LITERAL); addEEnumLiteral(positionEEnum, Position.BELOW_LITERAL); addEEnumLiteral(positionEEnum, Position.LEFT_LITERAL); addEEnumLiteral(positionEEnum, Position.RIGHT_LITERAL); addEEnumLiteral(positionEEnum, Position.INSIDE_LITERAL); addEEnumLiteral(positionEEnum, Position.OUTSIDE_LITERAL); initEEnum(riserTypeEEnum, RiserType.class, "RiserType"); addEEnumLiteral(riserTypeEEnum, RiserType.RECTANGLE_LITERAL); addEEnumLiteral(riserTypeEEnum, RiserType.TRIANGLE_LITERAL); initEEnum(ruleTypeEEnum, RuleType.class, "RuleType"); addEEnumLiteral(ruleTypeEEnum, RuleType.FILTER_LITERAL); addEEnumLiteral(ruleTypeEEnum, RuleType.SUPPRESS_LITERAL); addEEnumLiteral(ruleTypeEEnum, RuleType.LINK_LITERAL); initEEnum(scaleUnitTypeEEnum, ScaleUnitType.class, "ScaleUnitType"); addEEnumLiteral(scaleUnitTypeEEnum, ScaleUnitType.SECONDS_LITERAL); addEEnumLiteral(scaleUnitTypeEEnum, ScaleUnitType.MINUTES_LITERAL); addEEnumLiteral(scaleUnitTypeEEnum, ScaleUnitType.HOURS_LITERAL); addEEnumLiteral(scaleUnitTypeEEnum, ScaleUnitType.DAYS_LITERAL); addEEnumLiteral(scaleUnitTypeEEnum, ScaleUnitType.WEEKS_LITERAL); addEEnumLiteral(scaleUnitTypeEEnum, ScaleUnitType.MONTHS_LITERAL); addEEnumLiteral(scaleUnitTypeEEnum, ScaleUnitType.YEARS_LITERAL); initEEnum(sortOptionEEnum, SortOption.class, "SortOption"); addEEnumLiteral(sortOptionEEnum, SortOption.ASCENDING_LITERAL); addEEnumLiteral(sortOptionEEnum, SortOption.DESCENDING_LITERAL); initEEnum(stretchEEnum, Stretch.class, "Stretch"); addEEnumLiteral(stretchEEnum, Stretch.HORIZONTAL_LITERAL); addEEnumLiteral(stretchEEnum, Stretch.VERTICAL_LITERAL); addEEnumLiteral(stretchEEnum, Stretch.BOTH_LITERAL); initEEnum(styledComponentEEnum, StyledComponent.class, "StyledComponent"); addEEnumLiteral(styledComponentEEnum, StyledComponent.CHART_TITLE_LITERAL); addEEnumLiteral(styledComponentEEnum, StyledComponent.CHART_BACKGROUND_LITERAL); addEEnumLiteral(styledComponentEEnum, StyledComponent.PLOT_BACKGROUND_LITERAL); addEEnumLiteral(styledComponentEEnum, StyledComponent.LEGEND_BACKGROUND_LITERAL); addEEnumLiteral(styledComponentEEnum, StyledComponent.LEGEND_LABEL_LITERAL); addEEnumLiteral(styledComponentEEnum, StyledComponent.DATA_LABEL_LITERAL); addEEnumLiteral(styledComponentEEnum, StyledComponent.AXIS_TITLE_LITERAL); addEEnumLiteral(styledComponentEEnum, StyledComponent.AXIS_LABEL_LITERAL); addEEnumLiteral(styledComponentEEnum, StyledComponent.AXIS_LINE_LITERAL); addEEnumLiteral(styledComponentEEnum, StyledComponent.SERIES_TITLE_LITERAL); addEEnumLiteral(styledComponentEEnum, StyledComponent.SERIES_LABEL_LITERAL); initEEnum(tickStyleEEnum, TickStyle.class, "TickStyle"); addEEnumLiteral(tickStyleEEnum, TickStyle.LEFT_LITERAL); addEEnumLiteral(tickStyleEEnum, TickStyle.RIGHT_LITERAL); addEEnumLiteral(tickStyleEEnum, TickStyle.ABOVE_LITERAL); addEEnumLiteral(tickStyleEEnum, TickStyle.BELOW_LITERAL); addEEnumLiteral(tickStyleEEnum, TickStyle.ACROSS_LITERAL); initEEnum(triggerConditionEEnum, TriggerCondition.class, "TriggerCondition"); addEEnumLiteral(triggerConditionEEnum, TriggerCondition.MOUSE_HOVER_LITERAL); addEEnumLiteral(triggerConditionEEnum, TriggerCondition.MOUSE_CLICK_LITERAL); initEEnum(verticalAlignmentEEnum, VerticalAlignment.class, "VerticalAlignment"); addEEnumLiteral(verticalAlignmentEEnum, VerticalAlignment.TOP_LITERAL); addEEnumLiteral(verticalAlignmentEEnum, VerticalAlignment.CENTER_LITERAL); addEEnumLiteral(verticalAlignmentEEnum, VerticalAlignment.BOTTOM_LITERAL); // Initialize data types initEDataType(actionTypeObjectEDataType, ActionType.class, "ActionTypeObject", IS_SERIALIZABLE, IS_GENERATED_INSTANCE_CLASS); initEDataType(anchorObjectEDataType, Anchor.class, "AnchorObject", IS_SERIALIZABLE, IS_GENERATED_INSTANCE_CLASS); initEDataType(axisTypeObjectEDataType, AxisType.class, "AxisTypeObject", IS_SERIALIZABLE, IS_GENERATED_INSTANCE_CLASS); initEDataType(chartDimensionObjectEDataType, ChartDimension.class, "ChartDimensionObject", IS_SERIALIZABLE, IS_GENERATED_INSTANCE_CLASS); initEDataType(chartTypeObjectEDataType, ChartType.class, "ChartTypeObject", IS_SERIALIZABLE, IS_GENERATED_INSTANCE_CLASS); initEDataType(dataPointComponentTypeObjectEDataType, DataPointComponentType.class, "DataPointComponentTypeObject", IS_SERIALIZABLE, IS_GENERATED_INSTANCE_CLASS); initEDataType(dateFormatDetailObjectEDataType, DateFormatDetail.class, "DateFormatDetailObject", IS_SERIALIZABLE, IS_GENERATED_INSTANCE_CLASS); initEDataType(dateFormatTypeObjectEDataType, DateFormatType.class, "DateFormatTypeObject", IS_SERIALIZABLE, IS_GENERATED_INSTANCE_CLASS); initEDataType(directionObjectEDataType, Direction.class, "DirectionObject", IS_SERIALIZABLE, IS_GENERATED_INSTANCE_CLASS); initEDataType(horizontalAlignmentObjectEDataType, HorizontalAlignment.class, "HorizontalAlignmentObject", IS_SERIALIZABLE, IS_GENERATED_INSTANCE_CLASS); initEDataType(idEDataType, String.class, "ID", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); initEDataType(intersectionTypeObjectEDataType, IntersectionType.class, "IntersectionTypeObject", IS_SERIALIZABLE, IS_GENERATED_INSTANCE_CLASS); initEDataType(leaderLineStyleObjectEDataType, LeaderLineStyle.class, "LeaderLineStyleObject", IS_SERIALIZABLE, IS_GENERATED_INSTANCE_CLASS); initEDataType(legendItemTypeObjectEDataType, LegendItemType.class, "LegendItemTypeObject", IS_SERIALIZABLE, IS_GENERATED_INSTANCE_CLASS); initEDataType(lineStyleObjectEDataType, LineStyle.class, "LineStyleObject", IS_SERIALIZABLE, IS_GENERATED_INSTANCE_CLASS); initEDataType(markerTypeObjectEDataType, MarkerType.class, "MarkerTypeObject", IS_SERIALIZABLE, IS_GENERATED_INSTANCE_CLASS); initEDataType(orientationObjectEDataType, Orientation.class, "OrientationObject", IS_SERIALIZABLE, IS_GENERATED_INSTANCE_CLASS); initEDataType(percentageEDataType, double.class, "Percentage", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); initEDataType(percentageObjectEDataType, Double.class, "PercentageObject", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); initEDataType(positionObjectEDataType, Position.class, "PositionObject", IS_SERIALIZABLE, IS_GENERATED_INSTANCE_CLASS); initEDataType(rgbValueEDataType, int.class, "RGBValue", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); initEDataType(rgbValueObjectEDataType, Integer.class, "RGBValueObject", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); initEDataType(riserTypeObjectEDataType, RiserType.class, "RiserTypeObject", IS_SERIALIZABLE, IS_GENERATED_INSTANCE_CLASS); initEDataType(ruleTypeObjectEDataType, RuleType.class, "RuleTypeObject", IS_SERIALIZABLE, IS_GENERATED_INSTANCE_CLASS); initEDataType(scaleUnitTypeObjectEDataType, ScaleUnitType.class, "ScaleUnitTypeObject", IS_SERIALIZABLE, IS_GENERATED_INSTANCE_CLASS); initEDataType(sortOptionObjectEDataType, SortOption.class, "SortOptionObject", IS_SERIALIZABLE, IS_GENERATED_INSTANCE_CLASS); initEDataType(stretchObjectEDataType, Stretch.class, "StretchObject", IS_SERIALIZABLE, IS_GENERATED_INSTANCE_CLASS); initEDataType(styledComponentObjectEDataType, StyledComponent.class, "StyledComponentObject", IS_SERIALIZABLE, IS_GENERATED_INSTANCE_CLASS); initEDataType(tickStyleObjectEDataType, TickStyle.class, "TickStyleObject", IS_SERIALIZABLE, IS_GENERATED_INSTANCE_CLASS); initEDataType(triggerConditionObjectEDataType, TriggerCondition.class, "TriggerConditionObject", IS_SERIALIZABLE, IS_GENERATED_INSTANCE_CLASS); initEDataType(verticalAlignmentObjectEDataType, VerticalAlignment.class, "VerticalAlignmentObject", IS_SERIALIZABLE, IS_GENERATED_INSTANCE_CLASS); // Create resource createResource(eNS_URI); // Create annotations // http:///org/eclipse/emf/ecore/util/ExtendedMetaData createExtendedMetaDataAnnotations(); } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/e5c78f0e8317166d02fa384e14c3dd7aa1796f2c/AttributePackageImpl.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/attribute/impl/AttributePackageImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4046,
2261,
6323,
1435,
565,
288,
3639,
309,
261,
291,
11459,
13,
327,
31,
3639,
25359,
273,
638,
31,
3639,
368,
9190,
2181,
3639,
6788,
12,
73,
1985,
1769,
3639,
444,
10386,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4046,
2261,
6323,
1435,
565,
288,
3639,
309,
261,
291,
11459,
13,
327,
31,
3639,
25359,
273,
638,
31,
3639,
368,
9190,
2181,
3639,
6788,
12,
73,
1985,
1769,
3639,
444,
10386,
... |
warmupDestination(topicName, standardMessageSize, false, DeliveryMode.NON_PERSISTENT, Session.AUTO_ACKNOWLEDGE); | public void testTopicScale3() { log.info("Running test testTopicScale3"); warmupDestination(topicName, standardMessageSize, false, DeliveryMode.NON_PERSISTENT, Session.AUTO_ACKNOWLEDGE); Execution execution = createExecution("TopicScale3"); for (int i = 1; i <= scaleNumber; i++) { log.trace("Running with " + i + " consumer(s)"); SenderJob sender = createDefaultSenderJob(topicName); sender.setNumMessages(numMessages); sender.setMsgSize(standardMessageSize); sender.setMf(new BytesMessageMessageFactory()); sender.setTransacted(false); sender.setDeliveryMode(DeliveryMode.NON_PERSISTENT); sender.setInitialPause(initialPause); //enough time for receiver to get ready sender.setNumMessages(numMessages); ReceiverJob receiver = createDefaultReceiverJob(topicName); receiver.setAckMode(Session.AUTO_ACKNOWLEDGE); receiver.setTransacted(false); receiver.setNumConnections(1); receiver.setNumSessions(i); receiver.setNumMessages(numMessages); JobTimings[] results = runJobs(new Job[] {receiver, sender}); /* * NB. * When we calculating the total time taken from first send to last receive, there is some * error involved due to the differences in network latency and other remoting overhead * when sending the jobs to be executed on potentially different remote machines. * We make the assumption that this this difference is very small compared with time taken * to run the tests as to be negligible. */ long totalTimeTaken = results[0].getTestTime() + results[0].getInitTime() - results[1].getInitTime(); int totalMessages = numMessages; Measurement measure = new Measurement("throughput", 1000 * (double)totalMessages / totalTimeTaken); measure.setVariableValue("numberOfSubscribers", i); execution.addMeasurement(measure); } pm.saveExecution(execution); log.info("Test testTopicScale3 finished"); } | 3806 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3806/397ef4f4ca297619d7a976503e2912b04d50246f/PerfRunner.java/clean/tests/src/org/jboss/test/messaging/jms/perf/framework/PerfRunner.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
1842,
6657,
5587,
23,
1435,
282,
288,
1377,
613,
18,
1376,
2932,
7051,
1842,
1842,
6657,
5587,
23,
8863,
8227,
8687,
4588,
273,
752,
3210,
2932,
6657,
5587,
23,
8863,
5375,
364... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
1842,
6657,
5587,
23,
1435,
282,
288,
1377,
613,
18,
1376,
2932,
7051,
1842,
1842,
6657,
5587,
23,
8863,
8227,
8687,
4588,
273,
752,
3210,
2932,
6657,
5587,
23,
8863,
5375,
364... | |
} | public void setBookmarks(Vector bookmarks) { for (int i = 0; i < m_bookmarkItems.size(); ++i) m_menuBookmarks.remove((JMenuItem)m_bookmarkItems.get(i)); if (bookmarks.size() == 0) { if (m_bookmarksSeparator != null) { m_menuBookmarks.remove(m_bookmarksSeparator); m_bookmarksSeparator = null; } return; } m_bookmarksSeparator = new JSeparator(); m_menuBookmarks.add(m_bookmarksSeparator); for (int i = 0; i < bookmarks.size(); ++i) { Bookmark bookmark = (Bookmark)bookmarks.get(i); JMenuItem item = new JMenuItem(bookmark.m_name); addMenuItem(m_menuBookmarks, item, "bookmark-" + i); m_bookmarkItems.add(item); } } | 2255 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2255/0563728a75fc778073a0b7c116b28d75a1e655af/GoGuiMenuBar.java/buggy/src/net/sf/gogui/gogui/GoGuiMenuBar.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
9084,
17439,
12,
5018,
13696,
87,
13,
565,
288,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
312,
67,
3618,
3355,
3126,
18,
1467,
5621,
965,
77,
13,
5411,
312,
67... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
9084,
17439,
12,
5018,
13696,
87,
13,
565,
288,
3639,
364,
261,
474,
277,
273,
374,
31,
277,
411,
312,
67,
3618,
3355,
3126,
18,
1467,
5621,
965,
77,
13,
5411,
312,
67... | |
if (! isCurrentNodeExecuted()) | if (m_gtpSynchronizer.isOutOfSync()) | private boolean checkCurrentNodeExecuted() { if (m_commandThread == null) return true; if (! isCurrentNodeExecuted()) { Object[] options = { "Detach Program", "Cancel" }; Object message = "Could not synchronize current\n" + "position with Go program"; int n = JOptionPane.showOptionDialog(this, message, "Error", JOptionPane.YES_NO_OPTION, JOptionPane.ERROR_MESSAGE, null, options, options[1]); if (n == 0) cbDetachProgram(); return false; } return true; } | 2255 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2255/64308c7007e4efc87ed32a07a59287478e71b884/GoGui.java/clean/src/net/sf/gogui/gogui/GoGui.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
866,
3935,
907,
23839,
1435,
565,
288,
3639,
309,
261,
81,
67,
3076,
3830,
422,
446,
13,
5411,
327,
638,
31,
3639,
309,
261,
81,
67,
4521,
84,
19298,
1824,
18,
291,
11224,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
1250,
866,
3935,
907,
23839,
1435,
565,
288,
3639,
309,
261,
81,
67,
3076,
3830,
422,
446,
13,
5411,
327,
638,
31,
3639,
309,
261,
81,
67,
4521,
84,
19298,
1824,
18,
291,
11224,
... |
public org.quickfix.field.XmlDataLen getXmlDataLen() throws FieldNotFound { org.quickfix.field.XmlDataLen value = new org.quickfix.field.XmlDataLen(); | public quickfix.field.XmlDataLen getXmlDataLen() throws FieldNotFound { quickfix.field.XmlDataLen value = new quickfix.field.XmlDataLen(); | public org.quickfix.field.XmlDataLen getXmlDataLen() throws FieldNotFound { org.quickfix.field.XmlDataLen value = new org.quickfix.field.XmlDataLen(); getField(value); return value; } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/Message.java/clean/src/java/src/quickfix/fix42/Message.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
4432,
751,
2891,
28504,
751,
2891,
1435,
1216,
2286,
2768,
1377,
288,
2358,
18,
19525,
904,
18,
1518,
18,
4432,
751,
2891,
460,
273,
394,
2358,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4202,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
4432,
751,
2891,
28504,
751,
2891,
1435,
1216,
2286,
2768,
1377,
288,
2358,
18,
19525,
904,
18,
1518,
18,
4432,
751,
2891,
460,
273,
394,
2358,
... |
logger.debug("initialize(" + o + ")"); if (o instanceof MBase) { if (((MBase) o).getUUID() == null) { ((MBase) o).setUUID(UUIDManager.SINGLETON.getNewUUID()); } UmlModelEventPump pump = UmlModelEventPump.getPump(); ((MBase) o).addMElementListener(pump); ((MBase) o).addMElementListener(UmlModelListener.getInstance()); EventListenerList[] lists = pump.getClassListenerMap().getListenerList(o.getClass()); for (int i = 0; i < lists.length; i++) { Object[] listenerList = lists[i].listenerList; for (int j = 0; j < listenerList.length; j += 3) { pump.addModelEventListener( listenerList[j + 2], o, (String) listenerList[j + 1]); } } } } | if (o instanceof MBase) { if (((MBase) o).getUUID() == null) { ((MBase) o).setUUID(UUIDManager.SINGLETON.getNewUUID()); } addListenersToModelElement(o); UmlModelEventPump pump = UmlModelEventPump.getPump(); EventListenerList[] lists = pump.getClassListenerMap().getListenerList(o.getClass()); for (int i = 0; i < lists.length; i++) { Object[] listenerList = lists[i]._listenerList; for (int j = 0; j < listenerList.length; j += 3) { pump.addModelEventListener( listenerList[j + 2], o, (String) listenerList[j + 1]); } } } } | protected void initialize(Object o) { logger.debug("initialize(" + o + ")"); if (o instanceof MBase) { if (((MBase) o).getUUID() == null) { ((MBase) o).setUUID(UUIDManager.SINGLETON.getNewUUID()); } // next two objects are the ONLY two objects that need to listen // to all modelevents. UmlModelEventPump pump = UmlModelEventPump.getPump(); ((MBase) o).addMElementListener(pump); ((MBase) o).addMElementListener(UmlModelListener.getInstance()); EventListenerList[] lists = pump.getClassListenerMap().getListenerList(o.getClass()); for (int i = 0; i < lists.length; i++) { Object[] listenerList = lists[i].listenerList; for (int j = 0; j < listenerList.length; j += 3) { pump.addModelEventListener( listenerList[j + 2], o, (String) listenerList[j + 1]); } } } } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/1ebb17ac06205415cc8d51f57abdfb1e5ec54d76/AbstractUmlModelFactory.java/buggy/src_new/org/argouml/model/uml/AbstractUmlModelFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
4046,
12,
921,
320,
13,
288,
202,
202,
4901,
18,
4148,
2932,
11160,
2932,
397,
320,
397,
7310,
1769,
202,
202,
430,
261,
83,
1276,
490,
2171,
13,
288,
1082,
202,
430,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
4046,
12,
921,
320,
13,
288,
202,
202,
4901,
18,
4148,
2932,
11160,
2932,
397,
320,
397,
7310,
1769,
202,
202,
430,
261,
83,
1276,
490,
2171,
13,
288,
1082,
202,
430,
... |
private void generateSequenceReset(int beginSeqNo, int endSeqNo) { | private void generateSequenceReset(int beginSeqNo, int endSeqNo) throws FieldNotFound { | private void generateSequenceReset(int beginSeqNo, int endSeqNo) { Message sequenceReset = messageFactory.create(sessionID.getBeginString(), MsgType.SEQUENCE_RESET); int newSeqNo = endSeqNo; sequenceReset.getHeader().setBoolean(PossDupFlag.FIELD, true); sequenceReset.getHeader().setUtcTimeStamp(OrigSendingTime.FIELD, SystemTime.getDate()); sequenceReset.setInt(NewSeqNo.FIELD, newSeqNo); initializeHeader(sequenceReset.getHeader()); sequenceReset.getHeader().setInt(MsgSeqNum.FIELD, beginSeqNo); sequenceReset.setBoolean(GapFillFlag.FIELD, true); sendRaw(sequenceReset, beginSeqNo); state.logEvent("Sent SequenceReset TO: " + newSeqNo); } | 6791 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6791/abc19ec06e673e78761696d9fa00db7d375068b9/Session.java/clean/src/quickfix/Session.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2103,
4021,
7013,
12,
474,
2376,
6926,
2279,
16,
509,
679,
6926,
2279,
13,
1216,
2286,
2768,
288,
3639,
2350,
3102,
7013,
273,
883,
1733,
18,
2640,
12,
17255,
18,
588,
8149,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2103,
4021,
7013,
12,
474,
2376,
6926,
2279,
16,
509,
679,
6926,
2279,
13,
1216,
2286,
2768,
288,
3639,
2350,
3102,
7013,
273,
883,
1733,
18,
2640,
12,
17255,
18,
588,
8149,
... |
fixnumClass.defineMethod("==", getMethodEqual()); fixnumClass.defineMethod("<=>", getMethodCmp()); fixnumClass.defineMethod(">", getMethodGt()); fixnumClass.defineMethod(">=", getMethodGe()); fixnumClass.defineMethod("<", getMethodLt()); fixnumClass.defineMethod("<=", getMethodLe()); | fixnumClass.defineMethod("==", getMethod("op_equal", RubyNumeric.class)); fixnumClass.defineMethod("<=>", getMethod("op_cmp", RubyNumeric.class)); fixnumClass.defineMethod(">", getMethod("op_gt", RubyNumeric.class)); fixnumClass.defineMethod(">=", getMethod("op_ge", RubyNumeric.class)); fixnumClass.defineMethod("<", getMethod("op_lt", RubyNumeric.class)); fixnumClass.defineMethod("<=", getMethod("op_le", RubyNumeric.class)); | public static RubyClass createFixnum(Ruby ruby) { RubyClass fixnumClass = ruby.defineClass("Fixnum", ruby.getIntegerClass()); fixnumClass.defineMethod("to_i", getMethodToI()); fixnumClass.defineMethod("to_s", getMethodToS()); fixnumClass.defineMethod("+", getMethodPlus()); fixnumClass.defineMethod("-", getMethodMinus()); fixnumClass.defineMethod("*", getMethodMul()); fixnumClass.defineMethod("/", getMethodDiv()); fixnumClass.defineMethod("%", getMethodMod()); fixnumClass.defineMethod("**", getMethodPow()); fixnumClass.defineMethod("==", getMethodEqual()); fixnumClass.defineMethod("<=>", getMethodCmp()); fixnumClass.defineMethod(">", getMethodGt()); fixnumClass.defineMethod(">=", getMethodGe()); fixnumClass.defineMethod("<", getMethodLt()); fixnumClass.defineMethod("<=", getMethodLe()); return fixnumClass; } | 45753 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45753/a9420f23379e292698ea011ab08fb480b4decbcc/RbFixnum.java/buggy/org/jruby/core/RbFixnum.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
797,
752,
8585,
2107,
12,
54,
10340,
22155,
13,
288,
3639,
19817,
797,
2917,
2107,
797,
273,
22155,
18,
11255,
797,
2932,
8585,
2107,
3113,
22155,
18,
588,
4522,
797,
10... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
19817,
797,
752,
8585,
2107,
12,
54,
10340,
22155,
13,
288,
3639,
19817,
797,
2917,
2107,
797,
273,
22155,
18,
11255,
797,
2932,
8585,
2107,
3113,
22155,
18,
588,
4522,
797,
10... |
vars.removeLocal(node.getString()); | String functionName = node.getString(); if (functionName == null) continue; vars.removeLocal(functionName); | protected void addVariables(Node tree, VariableTable vars) { // OPT: a whole pass to collect variables seems expensive. // Could special case to go into statements only. PreorderNodeIterator iterator = tree.getPreorderIterator(); Hashtable ht = null; Node node; while ((node = iterator.nextNode()) != null) { int nodeType = node.getType(); if (nodeType == TokenStream.FUNCTION) { // In a function with both "var x" and "function x", // disregard the var statement, independent of order. vars.removeLocal(node.getString()); if (ht == null) ht = new Hashtable(); ht.put(node.getString(), Boolean.TRUE); } if (nodeType != TokenStream.VAR) continue; ShallowNodeIterator i = node.getChildIterator(); while (i.hasMoreElements()) { Node n = i.nextNode(); if (ht == null || ht.get(n.getString()) == null) vars.addLocal(n.getString()); } } } | 47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/7e8572925ed0e0efe10700097029f341550fc4cf/NodeTransformer.java/clean/js/rhino/src/org/mozilla/javascript/NodeTransformer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
527,
6158,
12,
907,
2151,
16,
7110,
1388,
4153,
13,
288,
3639,
368,
16456,
30,
279,
7339,
1342,
358,
3274,
3152,
12001,
19326,
18,
3639,
368,
14312,
4582,
648,
358,
1960,
1368,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
527,
6158,
12,
907,
2151,
16,
7110,
1388,
4153,
13,
288,
3639,
368,
16456,
30,
279,
7339,
1342,
358,
3274,
3152,
12001,
19326,
18,
3639,
368,
14312,
4582,
648,
358,
1960,
1368,... |
if (inputState.guessing==0) { qid_AST = astFactory.create(qid); astFactory.addASTChild(currentAST, qid_AST); } | qid_AST = astFactory.create(qid); astFactory.addASTChild(currentAST, qid_AST); | public final void variableDefinitions( AST mods, AST t ) throws RecognitionException, TokenStreamException { returnAST = null; ASTPair currentAST = new ASTPair(); AST variableDefinitions_AST = null; Token id = null; AST id_AST = null; Token qid = null; AST qid_AST = null; AST param_AST = null; AST tc_AST = null; AST mb_AST = null; if ((LA(1)==IDENT) && (_tokenSet_28.member(LA(2)))) { variableDeclarator(getASTFactory().dupTree(mods), getASTFactory().dupTree(t)); if (inputState.guessing==0) { astFactory.addASTChild(currentAST, returnAST); } { _loop186: do { if ((LA(1)==COMMA)) { match(COMMA); nls(); variableDeclarator(getASTFactory().dupTree(mods), getASTFactory().dupTree(t)); if (inputState.guessing==0) { astFactory.addASTChild(currentAST, returnAST); } } else { break _loop186; } } while (true); } if ( inputState.guessing==0 ) { variableDefinitions_AST = (AST)currentAST.root; } } else if ((LA(1)==IDENT||LA(1)==STRING_LITERAL) && (LA(2)==LPAREN)) { { switch ( LA(1)) { case IDENT: { id = LT(1); if (inputState.guessing==0) { id_AST = astFactory.create(id); astFactory.addASTChild(currentAST, id_AST); } match(IDENT); break; } case STRING_LITERAL: { qid = LT(1); if (inputState.guessing==0) { qid_AST = astFactory.create(qid); astFactory.addASTChild(currentAST, qid_AST); } match(STRING_LITERAL); if ( inputState.guessing==0 ) { qid_AST.setType(IDENT); } break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } match(LPAREN); parameterDeclarationList(); if (inputState.guessing==0) { param_AST = (AST)returnAST; } match(RPAREN); { switch ( LA(1)) { case LITERAL_throws: { throwsClause(); if (inputState.guessing==0) { tc_AST = (AST)returnAST; } break; } case EOF: case LCURLY: case RCURLY: case SEMI: case NLS: case LITERAL_default: case LITERAL_else: case LITERAL_case: { break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } nlsWarn(); { switch ( LA(1)) { case LCURLY: { openBlock(); if (inputState.guessing==0) { mb_AST = (AST)returnAST; } break; } case EOF: case RCURLY: case SEMI: case NLS: case LITERAL_default: case LITERAL_else: case LITERAL_case: { break; } default: { throw new NoViableAltException(LT(1), getFilename()); } } } if ( inputState.guessing==0 ) { variableDefinitions_AST = (AST)currentAST.root; if (qid_AST != null) id_AST = qid_AST; variableDefinitions_AST = (AST)astFactory.make( (new ASTArray(7)).add(astFactory.create(METHOD_DEF,"METHOD_DEF")).add(mods).add((AST)astFactory.make( (new ASTArray(2)).add(astFactory.create(TYPE,"TYPE")).add(t))).add(id_AST).add(param_AST).add(tc_AST).add(mb_AST)); currentAST.root = variableDefinitions_AST; currentAST.child = variableDefinitions_AST!=null &&variableDefinitions_AST.getFirstChild()!=null ? variableDefinitions_AST.getFirstChild() : variableDefinitions_AST; currentAST.advanceChildToEnd(); } if ( inputState.guessing==0 ) { variableDefinitions_AST = (AST)currentAST.root; } } else { throw new NoViableAltException(LT(1), getFilename()); } returnAST = variableDefinitions_AST; } | 6462 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6462/5c53aea8416ae7d318cf0157b4690ba71badb0f9/GroovyRecognizer.java/clean/src/main/org/codehaus/groovy/antlr/parser/GroovyRecognizer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
2190,
7130,
12,
202,
202,
9053,
15546,
16,
9183,
268,
202,
13,
1216,
9539,
16,
3155,
1228,
503,
288,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2190,
7130,
12,
202,
202,
9053,
15546,
16,
9183,
268,
202,
13,
1216,
9539,
16,
3155,
1228,
503,
288,
9506,
202,
2463,
9053,
273,
446,
31,
202,
202,
9053,
4154,
783,
... |
ExpressionConverter.getDefault(), dropEnablementChildren[0]); | ExpressionConverter.getDefault(), dropEnablementChildren[0]); | private void init() { id = configurationElement.getAttribute(ExtensionPointElements.ATT_ID); name = configurationElement.getAttribute(ExtensionPointElements.NAME); description = configurationElement.getAttribute(ExtensionPointElements.DESCRIPTION); IConfigurationElement[] dragEnablementChildren = configurationElement.getChildren(ExtensionPointElements.DRAG_ENABLEMENT); if (dragEnablementChildren.length > 0 && dragEnablementChildren[0] != null) { try { dragEnablement = ElementHandler.getDefault().create( ExpressionConverter.getDefault(), dragEnablementChildren[0]); } catch (CoreException e) { NavigatorPlugin.log(IStatus.ERROR, 0, e.getMessage(), e); } } IConfigurationElement[] dropEnablementChildren = configurationElement.getChildren(ExtensionPointElements.DROP_ENABLEMENT); if (dropEnablementChildren.length > 0 && dropEnablementChildren[0] != null) { this.dropEnablementConfigElement = dropEnablementChildren[0]; try { dropEnablement = ElementHandler.getDefault().create( ExpressionConverter.getDefault(), dropEnablementChildren[0]); } catch (CoreException e) { NavigatorPlugin.log(IStatus.ERROR, 0, e.getMessage(), e); } } IConfigurationElement[] serializersChild = configurationElement.getChildren(ExtensionPointElements.SERIALIZERS); if (serializersChild.length > 0 && serializersChild[0] != null) this.serializers = new SerializerCollectionDescriptor(this.id, serializersChild[0], dragEnablement); } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/c93d807ed962723d90daba76fc2003e2c1801cbc/DropHandlerDescriptor.java/buggy/bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/internal/navigator/dnd/DropHandlerDescriptor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1208,
1435,
288,
202,
202,
350,
273,
1664,
1046,
18,
588,
1499,
12,
3625,
2148,
3471,
18,
789,
56,
67,
734,
1769,
202,
202,
529,
273,
1664,
1046,
18,
588,
1499,
12,
36... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
1208,
1435,
288,
202,
202,
350,
273,
1664,
1046,
18,
588,
1499,
12,
3625,
2148,
3471,
18,
789,
56,
67,
734,
1769,
202,
202,
529,
273,
1664,
1046,
18,
588,
1499,
12,
36... |
Logger.error(this, "Unable to set the revocation flag"); | public void onSuccess(FetchResult result, ClientGetter state) { // TODO ensure it works if(!state.getURI().equals(revocationURI)){ System.out.println("Found "+availableVersion); Logger.normal(this, "Found a new version! (" + availableVersion + ", setting up a new UpdatedVersionAviableUserAlert"); alert.set(availableVersion); alert.isValid(true); synchronized(this){ this.cg = state; this.result = result; if(this.isAutoUpdateAllowed) scheduleUpdate(); } }else{ // The key has been blown ! // FIXME: maybe we need a bigger warning message. try{ blow(result.asBucket().getOutputStream().toString()); Logger.error(this, "The revocation key has been found on the network : blocking auto-update"); }catch(IOException e){ // We stop anyway. synchronized(this){ this.hasBeenBlown = true; } Logger.error(this, "Unable to set the revocation flag"); } } } | 52909 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52909/cd7564dd94d86425478cc20b8abb29c357946324/NodeUpdater.java/buggy/src/freenet/node/updater/NodeUpdater.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
20613,
12,
5005,
1253,
563,
16,
2445,
8461,
919,
13,
288,
202,
202,
759,
2660,
3387,
518,
6330,
202,
202,
430,
12,
5,
2019,
18,
588,
3098,
7675,
14963,
12,
9083,
4431,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20613,
12,
5005,
1253,
563,
16,
2445,
8461,
919,
13,
288,
202,
202,
759,
2660,
3387,
518,
6330,
202,
202,
430,
12,
5,
2019,
18,
588,
3098,
7675,
14963,
12,
9083,
4431,
... | |
tre.setBlockBounds( (Bounds) EcoreUtil.copy( _boBlock ) ); | tre.setBlockBounds( BoundsImpl.copyInstance( _boBlock ) ); | public PrimitiveRenderEvent copy( ) { Text3DRenderEvent tre = new Text3DRenderEvent( source ); if ( _boBlock != null ) { tre.setBlockBounds( (Bounds) EcoreUtil.copy( _boBlock ) ); } tre.setAction( _iAction ); tre.setTextPosition( _iTextPosition ); if ( _la != null ) { tre.setLabel( (Label) EcoreUtil.copy( _la ) ); } if ( object3D != null ) { tre.object3D = new Object3D( object3D ); } if ( _taBlock != null ) { tre.setBlockAlignment( (TextAlignment) EcoreUtil.copy( _taBlock ) ); } return tre; } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/ad38cf76f1d641ada210d2a5b0551677d4e55a71/Text3DRenderEvent.java/clean/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/event/Text3DRenderEvent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
14488,
3420,
1133,
1610,
12,
262,
202,
95,
202,
202,
1528,
23,
40,
3420,
1133,
9787,
273,
394,
3867,
23,
40,
3420,
1133,
12,
1084,
11272,
202,
202,
430,
261,
389,
1075,
1768,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14488,
3420,
1133,
1610,
12,
262,
202,
95,
202,
202,
1528,
23,
40,
3420,
1133,
9787,
273,
394,
3867,
23,
40,
3420,
1133,
12,
1084,
11272,
202,
202,
430,
261,
389,
1075,
1768,
... |
ISourcePosition position = support.getPosition(); | ISourcePosition position = support.getPosition(); | private int parseQuotedWords(int closeQuote, int openQuote) { int c = nextc(); ISourcePosition position = support.getPosition(); // Skip preceding spaces. while (isSpace(c)) { c = nextc(); } pushback(c); ArrayNode qwords = new ArrayNode(position); // FIX int nest = 0; StringBuffer stringToken = new StringBuffer(); while ((c = nextc()) != closeQuote || nest > 0) { if (c == -1) { errorHandler.handleError(IErrors.COMPILE_ERROR, position, Messages.getString("unterminated_string")); //$NON-NLS-1$ return 0; } if (c == '\\') { c = nextc(); switch (c) { case '\n' : continue; case '\\' : c = '\\'; break; default : if (c == closeQuote || (openQuote != 0 && c == openQuote)) { stringToken.append((char) c); continue; } if (!isSpace(c)) { stringToken.append('\\'); } break; } } else if (isSpace(c)) { qwords.add(new StrNode(support.getPosition(), stringToken.toString())); stringToken.setLength(0); //Benoit: reset the buffer // skip continuous spaces c = nextc(); while (isSpace(c)) { c = nextc(); } pushback(c); continue; } if (openQuote != 0) { if (c == openQuote) { nest++; } if (c == closeQuote && nest-- == 0) { break; } } stringToken.append((char) c); } if (stringToken.length() > 0) { qwords.add(new StrNode(support.getPosition(), stringToken.toString())); } lexState = LexState.EXPR_END; yaccValue = qwords; return Token.tARRAY; } | 52337 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52337/af104711597d4d5b2089320e2517b95b8df14492/RubyYaccLexer.java/buggy/org/jruby/lexer/yacc/RubyYaccLexer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
509,
1109,
15919,
7363,
12,
474,
1746,
10257,
16,
509,
1696,
10257,
13,
288,
202,
202,
474,
276,
273,
1024,
71,
5621,
202,
202,
45,
1830,
2555,
1754,
273,
2865,
18,
588,
2555... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
509,
1109,
15919,
7363,
12,
474,
1746,
10257,
16,
509,
1696,
10257,
13,
288,
202,
202,
474,
276,
273,
1024,
71,
5621,
202,
202,
45,
1830,
2555,
1754,
273,
2865,
18,
588,
2555... |
return new ComponentSampleModel(dataType, width, height, pixelStride, scanlineStride, bankIndices, bandOffsets); | return new ComponentSampleModel(dataType, width, height, pixelStride, scanlineStride, bankIndices, bandOffsets); | public SampleModel createSubsetSampleModel(int[] bands) { int numBands = bands.length; int[] bankIndices = new int[numBands]; int[] bandOffsets = new int[numBands]; for (int b = 0; b < numBands; b++) { bankIndices[b] = this.bankIndices[bands[b]]; bandOffsets[b] = this.bandOffsets[bands[b]]; } return new ComponentSampleModel(dataType, width, height, pixelStride, scanlineStride, bankIndices, bandOffsets); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/2d7debfa0b9e176eb89b1dd2089f53cb5079cc16/ComponentSampleModel.java/buggy/core/src/classpath/java/java/awt/image/ComponentSampleModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
11474,
1488,
752,
20315,
8504,
1488,
12,
474,
8526,
18960,
13,
288,
202,
202,
474,
818,
26554,
273,
18960,
18,
2469,
31,
202,
202,
474,
8526,
11218,
8776,
273,
394,
509,
63,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
11474,
1488,
752,
20315,
8504,
1488,
12,
474,
8526,
18960,
13,
288,
202,
202,
474,
818,
26554,
273,
18960,
18,
2469,
31,
202,
202,
474,
8526,
11218,
8776,
273,
394,
509,
63,
2... |
" ^^^^^\n" + | " ^^^^^^\n" + | public void test082() { this.runNegativeTest( new String[] { "X.java", "public class X {\n" + " \n" + " public static void main(String[] args) {\n" + " X x = new X1();\n" + " System.out.println(x.foo());\n" + " }\n" + " Object foo() {\n" + " return null;\n" + " }\n" + "}\n" + "\n" + "class X1 extends X {\n" + " String foo() {\n" + " return \"SUCCESS\";\n" + " }\n" + "}\n" }, "----------\n" + "1. ERROR in X.java (at line 13)\n" + " String foo() {\n" + " ^^^^^\n" + "The return type is incompatible with X.foo()\n" + "----------\n");} | 10698 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10698/30a989f2410943e7f57d79a197cf0ec585ffc59e/Compliance_1_4.java/clean/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/Compliance_1_4.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
1842,
6840,
22,
1435,
288,
202,
2211,
18,
2681,
14959,
4709,
12,
202,
202,
2704,
514,
8526,
288,
1082,
202,
6,
60,
18,
6290,
3113,
1082,
202,
6,
482,
667,
1139,
18890,
82,
6,
39... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
1842,
6840,
22,
1435,
288,
202,
2211,
18,
2681,
14959,
4709,
12,
202,
202,
2704,
514,
8526,
288,
1082,
202,
6,
60,
18,
6290,
3113,
1082,
202,
6,
482,
667,
1139,
18890,
82,
6,
39... |
Object val = editingPath.getLastPathComponent(); cellEditor.addCellEditorListener(cellEditorListener); | Object value = editingPath.getLastPathComponent(); | protected boolean startEditing(TreePath path, MouseEvent event) { int x; int y; if (event == null) { Rectangle bounds = getPathBounds(tree, path); x = bounds.x; y = bounds.y; } else { x = event.getX(); y = event.getY(); } updateCellEditor(); TreeCellEditor ed = getCellEditor(); if (ed != null && ed.shouldSelectCell(event) && ed.isCellEditable(event)) { editingPath = path; editingRow = tree.getRowForPath(editingPath); Object val = editingPath.getLastPathComponent(); cellEditor.addCellEditorListener(cellEditorListener); stopEditingInCompleteEditing = false; boolean expanded = tree.isExpanded(editingPath); isEditing = true; editingComponent = ed.getTreeCellEditorComponent(tree, val, true, expanded, isLeaf(editingRow), editingRow); editingComponent.getParent().setVisible(true); editingComponent.getParent().validate(); tree.add(editingComponent.getParent()); editingComponent.getParent().validate(); validCachedPreferredSize = false; ((JTextField) editingComponent).requestFocusInWindow(false); editorTimer.start(); return true; } return false; } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/e62592e8f80f1dcb092adb192d67f254df4e9392/BasicTreeUI.java/clean/core/src/classpath/javax/javax/swing/plaf/basic/BasicTreeUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
1250,
787,
28029,
12,
2471,
743,
589,
16,
17013,
1133,
871,
13,
225,
288,
565,
509,
619,
31,
565,
509,
677,
31,
565,
309,
261,
2575,
422,
446,
13,
1377,
288,
3639,
13264,
4972,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
1250,
787,
28029,
12,
2471,
743,
589,
16,
17013,
1133,
871,
13,
225,
288,
565,
509,
619,
31,
565,
509,
677,
31,
565,
309,
261,
2575,
422,
446,
13,
1377,
288,
3639,
13264,
4972,
... |
IGetParameterDefinitionTask task, boolean includeGroups ) | boolean includeGroups ) | private static Collection convertEngineParameters( Collection params, IGetParameterDefinitionTask task, boolean includeGroups ) { if ( params == null ) return Collections.EMPTY_LIST; List ret = new ArrayList( ); for ( Iterator it = params.iterator( ); it.hasNext( ); ) { Object o = it.next( ); if ( o instanceof IScalarParameterDefn ) { IScalarParameterDefn engineParam = (IScalarParameterDefn) o; ParameterGroupDefinition group = null; ParameterDefinition param = convertScalarParameter( engineParam, group, task ); ret.add( param ); } else if ( o instanceof IParameterGroupDefn ) { IParameterGroupDefn engineParam = (IParameterGroupDefn) o; ParameterGroupDefinition paramGroup = convertParameterGroup( engineParam, task ); ret.add( paramGroup ); } } if ( includeGroups ) return ret; // If we are not including the groups, flatten the results return flattenGroups( ret ); } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/d835cdf138e9d6d6ae54363d70ba647041cf4669/BirtViewerReportService.java/clean/viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/service/BirtViewerReportService.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
2200,
1765,
4410,
2402,
12,
2200,
859,
16,
1082,
202,
45,
967,
1662,
1852,
2174,
1562,
16,
1250,
2341,
3621,
262,
202,
95,
202,
202,
430,
261,
859,
422,
446,
262,
1082,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
2200,
1765,
4410,
2402,
12,
2200,
859,
16,
1082,
202,
45,
967,
1662,
1852,
2174,
1562,
16,
1250,
2341,
3621,
262,
202,
95,
202,
202,
430,
261,
859,
422,
446,
262,
1082,
... |
edgeClass = MDependencyImpl.class; | edgeClass = MDependency.class; | public void dragHandle(int mX, int mY, int anX, int anY, Handle hand) { if (hand.index < 10) { _paintButtons = false; super.dragHandle(mX, mY, anX, anY, hand); return; } int cx = _content.getX(), cy = _content.getY(); int cw = _content.getWidth(), ch = _content.getHeight(); int newX = cx, newY = cy, newW = cw, newH = ch; Dimension minSize = _content.getMinimumSize(); int minWidth = minSize.width, minHeight = minSize.height; Class edgeClass = null; Class nodeClass = MComponentImpl.class; int bx = mX, by = mY; boolean reverse = false; switch (hand.index) { case 10: //add dep edgeClass = MDependencyImpl.class; reverse = true; by = cy; bx = cx + cw/2; break; case 11: //add dep edgeClass = MDependencyImpl.class; by = cy + ch; bx = cx + cw/2; break; case 12: //add dep edgeClass = MDependencyImpl.class; reverse = true; by = cy + ch/2; bx = cx + cw; break; case 13: // add dep edgeClass = MDependencyImpl.class; by = cy + ch/2; bx = cx; break; default: System.out.println("invalid handle number"); break; } if (edgeClass != null && nodeClass != null) { Editor ce = Globals.curEditor(); ModeCreateEdgeAndNode m = new ModeCreateEdgeAndNode(ce, edgeClass, nodeClass, false); m.setup((FigNode)_content, _content.getOwner(), bx, by, reverse); ce.mode(m); } } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/14a0b09a741981ac88dd3fd74f4899bf8d91190b/SelectionComponent.java/buggy/src_new/org/argouml/uml/diagram/deployment/ui/SelectionComponent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
8823,
3259,
12,
474,
312,
60,
16,
509,
312,
61,
16,
509,
392,
60,
16,
509,
392,
61,
16,
5004,
948,
13,
288,
565,
309,
261,
2349,
18,
1615,
411,
1728,
13,
288,
1377,
389,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
8823,
3259,
12,
474,
312,
60,
16,
509,
312,
61,
16,
509,
392,
60,
16,
509,
392,
61,
16,
5004,
948,
13,
288,
565,
309,
261,
2349,
18,
1615,
411,
1728,
13,
288,
1377,
389,
... |
public Box layout(Context c, Element elem) { // this is to keep track of when we are inside of a form if(elem.getNodeName().equals("form")) { if(elem.hasAttribute("name")) { String name = elem.getAttribute("name"); String action = elem.getAttribute("action"); c.setForm(name,action); } } //u.p("BoxLayout.layout() : " + elem); //u.p("box layout for: " + elem.getNodeName()); BlockBox block = (BlockBox)createBox(c,elem); Rectangle oe = c.getExtents(); c.setExtents(new Rectangle(oe)); adjustWidth(c, block); adjustHeight(c, block); block.x = c.getExtents().x; block.y = c.getExtents().y; prepareBox(block,c); Border border = getBorder(c, block); Border padding = getPadding(c, block); Border margin = getMargin(c, block); getBackgroundColor(c,block); //u.p("margin on box block = " + block.margin); //u.p("border on box block = " + block.border); //u.p("padding on box block = " + block.padding); // do children's layout //u.p("avail space = " + block.width); boolean old_sub = c.isSubBlock(); c.setSubBlock(false); layoutChildren(c, block); c.setSubBlock(old_sub); // calculate the inner width block.width = margin.left + border.left + padding.left + block.width + padding.right + border.right + margin.right; block.height = margin.top + border.top + padding.top + block.height + padding.bottom + border.bottom + margin.bottom; //u.p("final width = " + block.width); // if this is a fixed height, then set it explicitly /*if (!block.auto_height) { contents.height = block.height; } */ //u.p("old extents = " + c.getExtents()); //restore the extents c.setExtents(oe); // account for special positioning setupRelative(c, block); setupFixed(c, block); this.contents_height = block.height; if(elem.getNodeName().equals("form")) { if(elem.hasAttribute("name")) { c.setForm(null,null); } } return block; } | 52947 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52947/07ab625b03cad242caa27ac48e830592130b24a1/BoxLayout.java/buggy/src/java/org/joshy/html/BoxLayout.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
1071,
8549,
3511,
12,
1042,
276,
16,
3010,
3659,
13,
288,
225,
368,
333,
353,
358,
3455,
3298,
434,
1347,
732,
854,
4832,
434,
279,
646,
225,
309,
12,
10037,
18,
588,
18948,
7675,
14963... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1071,
8549,
3511,
12,
1042,
276,
16,
3010,
3659,
13,
288,
225,
368,
333,
353,
358,
3455,
3298,
434,
1347,
732,
854,
4832,
434,
279,
646,
225,
309,
12,
10037,
18,
588,
18948,
7675,
14963... | ||
for (int i = 0; i < myDatas.size(); i++) { Transferable old = myDatas.get(i); | for (Transferable old : myDatas) { | private void addNewContentToStack(Transferable content) { try { String clipString = getStringContent(content); if (clipString != null) { Transferable same = null; for (int i = 0; i < myDatas.size(); i++) { Transferable old = myDatas.get(i); if (clipString.equals(getStringContent(old))) { same = old; break; } } if (same == null) { myDatas.add(0, content); deleteAfterAllowedMaximum(); } else { moveContentTopStackTop(same); } } } catch (UnsupportedFlavorException e) { } catch (IOException e) { } } | 17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/968267e6a79ea14cab527ba28b0981cd8c0cb8ca/CopyPasteManagerEx.java/buggy/source/com/intellij/ide/CopyPasteManagerEx.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
20973,
1350,
774,
2624,
12,
5912,
429,
913,
13,
288,
565,
775,
288,
1377,
514,
6807,
780,
273,
4997,
1350,
12,
1745,
1769,
1377,
309,
261,
14161,
780,
480,
446,
13,
288,
3639... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
20973,
1350,
774,
2624,
12,
5912,
429,
913,
13,
288,
565,
775,
288,
1377,
514,
6807,
780,
273,
4997,
1350,
12,
1745,
1769,
1377,
309,
261,
14161,
780,
480,
446,
13,
288,
3639... |
double max = 0.0; | double max = Double.MIN_VALUE; | static Object max(Evaluator evaluator, Vector members, ExpBase exp) { SetWrapper sw = evaluateSet(evaluator, members, exp); if (sw.errorCount > 0) { return new Double(Double.NaN); } else if (sw.v.size() == 0) { return Util.nullValue; } else { double max = 0.0; for (int i = 0; i < sw.v.size(); i++) { double iValue = ((Double) sw.v.elementAt(i)).doubleValue(); if (iValue > max) { max = iValue; } } return new Double(max); } } | 4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/a561767e2eeef6a7bc92808ee3b0f2aa0061d8fb/FunUtil.java/buggy/src/main/mondrian/olap/fun/FunUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
3845,
1033,
943,
12,
15876,
18256,
16,
5589,
4833,
16,
7784,
2171,
1329,
13,
288,
202,
202,
694,
3611,
1352,
273,
5956,
694,
12,
14168,
639,
16,
4833,
16,
1329,
1769,
202,
202,
430... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
3845,
1033,
943,
12,
15876,
18256,
16,
5589,
4833,
16,
7784,
2171,
1329,
13,
288,
202,
202,
694,
3611,
1352,
273,
5956,
694,
12,
14168,
639,
16,
4833,
16,
1329,
1769,
202,
202,
430... |
else if (url.startsWith("jdbc:pervasive:")) { query = new PervasiveEsqlQuery(getConnection(),queryString); | else if (database.indexOf("pervasive") > -1) { query = new PervasiveEsqlQuery(connection,queryString); } else if (database.indexOf("hsql") > -1) { query = new JdbcEsqlQuery(getConnection(),queryString); | public AbstractEsqlQuery createQuery(final String type, final String queryString) throws SQLException { AbstractEsqlQuery query; if ("".equals(type) || "auto".equalsIgnoreCase(type)) { String url = getURL(); if (url.startsWith("jdbc:postgresql:")) { query = new PostgresEsqlQuery(getConnection(),queryString); } else if (url.startsWith("jdbc:mysql:")) { query = new MysqlEsqlQuery(getConnection(),queryString); } else if (url.startsWith("jdbc:sybase:")) { query = new SybaseEsqlQuery(getConnection(),queryString); } else if (url.startsWith("jdbc:oracle:")) { query = new OracleEsqlQuery(getConnection(),queryString); } else if (url.startsWith("jdbc:pervasive:")) { query = new PervasiveEsqlQuery(getConnection(),queryString); } else { getLogger().warn("Cannot guess database type from jdbc url: " + String.valueOf(url) +" - Defaulting to JDBC"); query = new JdbcEsqlQuery(getConnection(),queryString); } } else if ("sybase".equalsIgnoreCase(type)) { query = new SybaseEsqlQuery(getConnection(),queryString); } else if ("postgresql".equalsIgnoreCase(type)) { query = new PostgresEsqlQuery(getConnection(),queryString); } else if ("postgresql-old".equalsIgnoreCase(type)) { query = new PostgresOldEsqlQuery(getConnection(),queryString); } else if ("mysql".equalsIgnoreCase(type)) { query = new MysqlEsqlQuery(getConnection(),queryString); } else if ("oracle".equalsIgnoreCase(type)) { query = new OracleEsqlQuery(getConnection(),queryString); } else if ("pervasive".equalsIgnoreCase(type)) { query = new PervasiveEsqlQuery(getConnection(),queryString); } else if ("jdbc".equalsIgnoreCase(type)) { query = new JdbcEsqlQuery(getConnection(),queryString); } else { getLogger().error("Unknown database type: " + String.valueOf(type)); throw new SQLException("Unknown database type: " + String.valueOf(type)); } setupLogger(query); return(query); } | 46428 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46428/5b03b9aaf6bd1be3f972bff102987c56627c2cc8/AbstractEsqlConnection.java/clean/src/blocks/databases/java/org/apache/cocoon/components/language/markup/xsp/AbstractEsqlConnection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4115,
41,
4669,
1138,
17698,
12,
6385,
514,
618,
16,
727,
514,
11337,
13,
1216,
6483,
288,
3639,
4115,
41,
4669,
1138,
843,
31,
3639,
309,
261,
3660,
18,
14963,
12,
723,
13,
747,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4115,
41,
4669,
1138,
17698,
12,
6385,
514,
618,
16,
727,
514,
11337,
13,
1216,
6483,
288,
3639,
4115,
41,
4669,
1138,
843,
31,
3639,
309,
261,
3660,
18,
14963,
12,
723,
13,
747,
... |
return; | return null; | private void addDependency( XMLWriter writer, Artifact artifact, List reactorProjects ) { String path = getProjectPath( reactorProjects, artifact ); String kind = path == null ? "var" : "src"; // fall-through when no local project could be found in the reactor if ( path == null ) { File artifactPath = artifact.getFile(); if ( artifactPath == null ) { System.err.println( "The artifacts path was null. Artifact id: " + artifact.getId() ); return; } path = "M2_REPO/" + toRelative( localRepository, artifactPath.getPath() ); } writer.startElement( "classpathentry" ); writer.addAttribute( "kind", kind ); writer.addAttribute( "path", path ); writer.endElement(); } | 50542 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50542/b2945853430a56785876444e925145b0e900ec8e/EclipseWriter.java/clean/maven-plugins/maven-eclipse-plugin/src/main/java/org/apache/maven/plugin/eclipse/EclipseWriter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
527,
7787,
12,
3167,
2289,
2633,
16,
14022,
6462,
16,
987,
19178,
15298,
262,
565,
288,
3639,
514,
589,
273,
11080,
743,
12,
19178,
15298,
16,
6462,
11272,
7734,
514,
3846,
273... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
527,
7787,
12,
3167,
2289,
2633,
16,
14022,
6462,
16,
987,
19178,
15298,
262,
565,
288,
3639,
514,
589,
273,
11080,
743,
12,
19178,
15298,
16,
6462,
11272,
7734,
514,
3846,
273... |
setAttribute("vspace", newValue); } | setAttribute("vspace", newValue); } | public void setVspace(String newValue) { setAttribute("vspace", newValue); } | 6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/bf94d6634ab3635fdb8210105d9c1c839d13e555/WMLImgElementImpl.java/buggy/src/org/apache/wml/dom/WMLImgElementImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
58,
2981,
12,
780,
6129,
13,
288,
565,
4730,
2932,
90,
2981,
3113,
6129,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
58,
2981,
12,
780,
6129,
13,
288,
565,
4730,
2932,
90,
2981,
3113,
6129,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
doExit(-1); | doExit(throwable.getMessage()); | public static void main(String argv[]) { // Runtime.getRuntime().traceMethodCalls(false); // turns Java tracing off boolean doStackDumpOnError = false; boolean setQuietMode = false; boolean doDiag = false; // Runtime.getRuntime().traceMethodCalls(false); // Runtime.getRuntime().traceInstructions(false); /** * The default diagnostic writer... */ java.io.PrintWriter diagnosticsWriter = new PrintWriter(System.err, true); java.io.PrintWriter dumpWriter = diagnosticsWriter; ResourceBundle resbundle = (XSLMessages.loadResourceBundle( org.apache.xml.utils.res.XResourceBundle.ERROR_RESOURCES)); String flavor = "s2s"; if (argv.length < 1) { printArgOptions(resbundle); } else { boolean useXSLTC = false; for (int i = 0; i < argv.length; i++) { if ("-XSLTC".equalsIgnoreCase(argv[i])) { useXSLTC = true; } } TransformerFactory tfactory; if (useXSLTC) { String key = "javax.xml.transform.TransformerFactory"; String value = "org.apache.xalan.xsltc.trax.TransformerFactoryImpl"; Properties props = System.getProperties(); props.put(key, value); System.setProperties(props); } try { tfactory = TransformerFactory.newInstance(); } catch (TransformerFactoryConfigurationError pfe) { pfe.printStackTrace(dumpWriter); diagnosticsWriter.println( XSLMessages.createMessage( XSLTErrorResources.ER_NOT_SUCCESSFUL, null)); //"XSL Process was not successful."); tfactory = null; // shut up compiler doExit(-1); } boolean formatOutput = false; boolean useSourceLocation = false; String inFileName = null; String outFileName = null; String dumpFileName = null; String xslFileName = null; String treedumpFileName = null; PrintTraceListener tracer = null; String outputType = null; String media = null; Vector params = new Vector(); boolean quietConflictWarnings = false; URIResolver uriResolver = null; EntityResolver entityResolver = null; ContentHandler contentHandler = null; int recursionLimit=-1; for (int i = 0; i < argv.length; i++) { if ("-XSLTC".equalsIgnoreCase(argv[i])) { // The -XSLTC option has been processed. } else if ("-TT".equalsIgnoreCase(argv[i])) { if (!useXSLTC) { if (null == tracer) tracer = new PrintTraceListener(diagnosticsWriter); tracer.m_traceTemplates = true; } else printInvalidXSLTCOption("-TT"); // tfactory.setTraceTemplates(true); } else if ("-TG".equalsIgnoreCase(argv[i])) { if (!useXSLTC) { if (null == tracer) tracer = new PrintTraceListener(diagnosticsWriter); tracer.m_traceGeneration = true; } else printInvalidXSLTCOption("-TG"); // tfactory.setTraceSelect(true); } else if ("-TS".equalsIgnoreCase(argv[i])) { if (!useXSLTC) { if (null == tracer) tracer = new PrintTraceListener(diagnosticsWriter); tracer.m_traceSelection = true; } else printInvalidXSLTCOption("-TS"); // tfactory.setTraceTemplates(true); } else if ("-TTC".equalsIgnoreCase(argv[i])) { if (!useXSLTC) { if (null == tracer) tracer = new PrintTraceListener(diagnosticsWriter); tracer.m_traceElements = true; } else printInvalidXSLTCOption("-TTC"); // tfactory.setTraceTemplateChildren(true); } else if ("-INDENT".equalsIgnoreCase(argv[i])) { int indentAmount; if (((i + 1) < argv.length) && (argv[i + 1].charAt(0) != '-')) { indentAmount = Integer.parseInt(argv[++i]); } else { indentAmount = 0; } // TBD: // xmlProcessorLiaison.setIndent(indentAmount); } else if ("-IN".equalsIgnoreCase(argv[i])) { if (i + 1 < argv.length && argv[i + 1].charAt(0) != '-') inFileName = argv[++i]; else System.err.println( XSLMessages.createMessage( XSLTErrorResources.ER_MISSING_ARG_FOR_OPTION, new Object[]{ "-IN" })); //"Missing argument for); } else if ("-MEDIA".equalsIgnoreCase(argv[i])) { if (i + 1 < argv.length) media = argv[++i]; else System.err.println( XSLMessages.createMessage( XSLTErrorResources.ER_MISSING_ARG_FOR_OPTION, new Object[]{ "-MEDIA" })); //"Missing argument for); } else if ("-OUT".equalsIgnoreCase(argv[i])) { if (i + 1 < argv.length && argv[i + 1].charAt(0) != '-') outFileName = argv[++i]; else System.err.println( XSLMessages.createMessage( XSLTErrorResources.ER_MISSING_ARG_FOR_OPTION, new Object[]{ "-OUT" })); //"Missing argument for); } else if ("-XSL".equalsIgnoreCase(argv[i])) { if (i + 1 < argv.length && argv[i + 1].charAt(0) != '-') xslFileName = argv[++i]; else System.err.println( XSLMessages.createMessage( XSLTErrorResources.ER_MISSING_ARG_FOR_OPTION, new Object[]{ "-XSL" })); //"Missing argument for); } else if ("-FLAVOR".equalsIgnoreCase(argv[i])) { if (i + 1 < argv.length) { flavor = argv[++i]; } else System.err.println( XSLMessages.createMessage( XSLTErrorResources.ER_MISSING_ARG_FOR_OPTION, new Object[]{ "-FLAVOR" })); //"Missing argument for); } else if ("-PARAM".equalsIgnoreCase(argv[i])) { if (i + 2 < argv.length) { String name = argv[++i]; params.addElement(name); String expression = argv[++i]; params.addElement(expression); } else System.err.println( XSLMessages.createMessage( XSLTErrorResources.ER_MISSING_ARG_FOR_OPTION, new Object[]{ "-PARAM" })); //"Missing argument for); } else if ("-E".equalsIgnoreCase(argv[i])) { // TBD: // xmlProcessorLiaison.setShouldExpandEntityRefs(false); } else if ("-V".equalsIgnoreCase(argv[i])) { diagnosticsWriter.println(resbundle.getString("version") //">>>>>>> Xalan Version " + Version.getVersion() + ", " + /* xmlProcessorLiaison.getParserDescription()+ */ resbundle.getString("version2")); // "<<<<<<<"); } else if ("-QC".equalsIgnoreCase(argv[i])) { if (!useXSLTC) quietConflictWarnings = true; else printInvalidXSLTCOption("-QC"); } else if ("-Q".equalsIgnoreCase(argv[i])) { setQuietMode = true; } else if ("-DIAG".equalsIgnoreCase(argv[i])) { doDiag = true; } else if ("-XML".equalsIgnoreCase(argv[i])) { outputType = "xml"; } else if ("-TEXT".equalsIgnoreCase(argv[i])) { outputType = "text"; } else if ("-HTML".equalsIgnoreCase(argv[i])) { outputType = "html"; } else if ("-EDUMP".equalsIgnoreCase(argv[i])) { doStackDumpOnError = true; if (((i + 1) < argv.length) && (argv[i + 1].charAt(0) != '-')) { dumpFileName = argv[++i]; } } else if ("-URIRESOLVER".equalsIgnoreCase(argv[i])) { if (i + 1 < argv.length) { try { uriResolver = (URIResolver) ObjectFactory.newInstance( argv[++i], ObjectFactory.findClassLoader(), true); tfactory.setURIResolver(uriResolver); } catch (ObjectFactory.ConfigurationError cnfe) { System.err.println( XSLMessages.createMessage( XSLTErrorResources.ER_CLASS_NOT_FOUND_FOR_OPTION, new Object[]{ "-URIResolver" })); doExit(-1); } } else { System.err.println( XSLMessages.createMessage( XSLTErrorResources.ER_MISSING_ARG_FOR_OPTION, new Object[]{ "-URIResolver" })); //"Missing argument for); doExit(-1); } } else if ("-ENTITYRESOLVER".equalsIgnoreCase(argv[i])) { if (i + 1 < argv.length) { try { entityResolver = (EntityResolver) ObjectFactory.newInstance( argv[++i], ObjectFactory.findClassLoader(), true); } catch (ObjectFactory.ConfigurationError cnfe) { System.err.println( XSLMessages.createMessage( XSLTErrorResources.ER_CLASS_NOT_FOUND_FOR_OPTION, new Object[]{ "-EntityResolver" })); doExit(-1); } } else { System.err.println( XSLMessages.createMessage( XSLTErrorResources.ER_MISSING_ARG_FOR_OPTION, new Object[]{ "-EntityResolver" })); //"Missing argument for); doExit(-1); } } else if ("-CONTENTHANDLER".equalsIgnoreCase(argv[i])) { if (i + 1 < argv.length) { try { contentHandler = (ContentHandler) ObjectFactory.newInstance( argv[++i], ObjectFactory.findClassLoader(), true); } catch (ObjectFactory.ConfigurationError cnfe) { System.err.println( XSLMessages.createMessage( XSLTErrorResources.ER_CLASS_NOT_FOUND_FOR_OPTION, new Object[]{ "-ContentHandler" })); doExit(-1); } } else { System.err.println( XSLMessages.createMessage( XSLTErrorResources.ER_MISSING_ARG_FOR_OPTION, new Object[]{ "-ContentHandler" })); //"Missing argument for); doExit(-1); } } else if ("-L".equalsIgnoreCase(argv[i])) { if (!useXSLTC) useSourceLocation = true; else printInvalidXSLTCOption("-L"); } else if ("-INCREMENTAL".equalsIgnoreCase(argv[i])) { if (!useXSLTC) tfactory.setAttribute ("http://xml.apache.org/xalan/features/incremental", java.lang.Boolean.TRUE); else printInvalidXSLTCOption("-INCREMENTAL"); } else if ("-NOOPTIMIZE".equalsIgnoreCase(argv[i])) { // Default is true. // // %REVIEW% We should have a generalized syntax for negative // switches... and probably should accept the inverse even // if it is the default. if (!useXSLTC) tfactory.setAttribute ("http://xml.apache.org/xalan/features/optimize", java.lang.Boolean.FALSE); else printInvalidXSLTCOption("-NOOPTIMIZE"); } else if ("-RL".equalsIgnoreCase(argv[i])) { if (!useXSLTC) { if (i + 1 < argv.length) recursionLimit = Integer.parseInt(argv[++i]); else System.err.println( XSLMessages.createMessage( XSLTErrorResources.ER_MISSING_ARG_FOR_OPTION, new Object[]{ "-rl" })); //"Missing argument for); } else { if (i + 1 < argv.length && argv[i + 1].charAt(0) != '-') i++; printInvalidXSLTCOption("-RL"); } } // Generate the translet class and optionally specify the name // of the translet class. else if ("-XO".equalsIgnoreCase(argv[i])) { if (useXSLTC) { if (i + 1 < argv.length && argv[i+1].charAt(0) != '-') { tfactory.setAttribute("generate-translet", "true"); tfactory.setAttribute("translet-name", argv[++i]); } else tfactory.setAttribute("generate-translet", "true"); } else { if (i + 1 < argv.length && argv[i + 1].charAt(0) != '-') i++; printInvalidXalanOption("-XO"); } } // Specify the destination directory for the translet classes. else if ("-XD".equalsIgnoreCase(argv[i])) { if (useXSLTC) { if (i + 1 < argv.length && argv[i+1].charAt(0) != '-') tfactory.setAttribute("destination-directory", argv[++i]); else System.err.println( XSLMessages.createMessage( XSLTErrorResources.ER_MISSING_ARG_FOR_OPTION, new Object[]{ "-XD" })); //"Missing argument for); } else { if (i + 1 < argv.length && argv[i + 1].charAt(0) != '-') i++; printInvalidXalanOption("-XD"); } } // Specify the jar file name which the translet classes are packaged into. else if ("-XJ".equalsIgnoreCase(argv[i])) { if (useXSLTC) { if (i + 1 < argv.length && argv[i+1].charAt(0) != '-') { tfactory.setAttribute("generate-translet", "true"); tfactory.setAttribute("jar-name", argv[++i]); } else System.err.println( XSLMessages.createMessage( XSLTErrorResources.ER_MISSING_ARG_FOR_OPTION, new Object[]{ "-XJ" })); //"Missing argument for); } else { if (i + 1 < argv.length && argv[i + 1].charAt(0) != '-') i++; printInvalidXalanOption("-XJ"); } } // Specify the package name prefix for the generated translet classes. else if ("-XP".equalsIgnoreCase(argv[i])) { if (useXSLTC) { if (i + 1 < argv.length && argv[i+1].charAt(0) != '-') tfactory.setAttribute("package-name", argv[++i]); else System.err.println( XSLMessages.createMessage( XSLTErrorResources.ER_MISSING_ARG_FOR_OPTION, new Object[]{ "-XP" })); //"Missing argument for); } else { if (i + 1 < argv.length && argv[i + 1].charAt(0) != '-') i++; printInvalidXalanOption("-XP"); } } // Enable template inlining. else if ("-XN".equalsIgnoreCase(argv[i])) { if (useXSLTC) { tfactory.setAttribute("enable-inlining", "true"); } else printInvalidXalanOption("-XN"); } // Turns on additional debugging message output else if ("-XX".equalsIgnoreCase(argv[i])) { if (useXSLTC) { tfactory.setAttribute("debug", "true"); } else printInvalidXalanOption("-XX"); } // Create the Transformer from the translet if the translet class is newer // than the stylesheet. else if ("-XT".equalsIgnoreCase(argv[i])) { if (useXSLTC) { tfactory.setAttribute("auto-translet", "true"); } else printInvalidXalanOption("-XT"); } else System.err.println( XSLMessages.createMessage( XSLTErrorResources.ER_INVALID_OPTION, new Object[]{ argv[i] })); //"Invalid argument:); } // Print usage instructions if no xml and xsl file is specified in the command line if (inFileName == null && xslFileName == null) { System.err.println(resbundle.getString("xslProc_no_input")); doExit(-1); } // Note that there are usage cases for calling us without a -IN arg // The main XSL transformation occurs here! try { long start = System.currentTimeMillis(); if (null != dumpFileName) { dumpWriter = new PrintWriter(new FileWriter(dumpFileName)); } Templates stylesheet = null; if (null != xslFileName) { if (flavor.equals("d2d")) { // Parse in the xml data into a DOM DocumentBuilderFactory dfactory = DocumentBuilderFactory.newInstance(); dfactory.setNamespaceAware(true); DocumentBuilder docBuilder = dfactory.newDocumentBuilder(); Node xslDOM = docBuilder.parse(new InputSource(xslFileName)); stylesheet = tfactory.newTemplates(new DOMSource(xslDOM, xslFileName)); } else { // System.out.println("Calling newTemplates: "+xslFileName); stylesheet = tfactory.newTemplates(new StreamSource(xslFileName)); // System.out.println("Done calling newTemplates: "+xslFileName); } } PrintWriter resultWriter; StreamResult strResult; if (null != outFileName) { strResult = new StreamResult(new FileOutputStream(outFileName)); // One possible improvement might be to ensure this is // a valid URI before setting the systemId, but that // might have subtle changes that pre-existing users // might notice; we can think about that later -sc r1.46 strResult.setSystemId(outFileName); } else { strResult = new StreamResult(System.out); // We used to default to incremental mode in this case. // We've since decided that since the -INCREMENTAL switch is // available, that default is probably not necessary nor // necessarily a good idea. } SAXTransformerFactory stf = (SAXTransformerFactory) tfactory; // This is currently controlled via TransformerFactoryImpl. if (!useXSLTC && useSourceLocation) stf.setAttribute(XalanProperties.SOURCE_LOCATION, Boolean.TRUE); // Did they pass in a stylesheet, or should we get it from the // document? if (null == stylesheet) { Source source = stf.getAssociatedStylesheet(new StreamSource(inFileName), media, null, null); if (null != source) stylesheet = tfactory.newTemplates(source); else { if (null != media) throw new TransformerException(XSLMessages.createMessage(XSLTErrorResources.ER_NO_STYLESHEET_IN_MEDIA, new Object[]{inFileName, media})); //"No stylesheet found in: " // + inFileName + ", media=" // + media); else throw new TransformerException(XSLMessages.createMessage(XSLTErrorResources.ER_NO_STYLESHEET_PI, new Object[]{inFileName})); //"No xml-stylesheet PI found in: " //+ inFileName); } } if (null != stylesheet) { Transformer transformer = flavor.equals("th") ? null : stylesheet.newTransformer(); // Override the output format? if (null != outputType) { transformer.setOutputProperty(OutputKeys.METHOD, outputType); } if (transformer instanceof org.apache.xalan.transformer.TransformerImpl) { org.apache.xalan.transformer.TransformerImpl impl = (org.apache.xalan.transformer.TransformerImpl)transformer; TraceManager tm = impl.getTraceManager(); if (null != tracer) tm.addTraceListener(tracer); impl.setQuietConflictWarnings(quietConflictWarnings); // This is currently controlled via TransformerFactoryImpl. if (useSourceLocation) impl.setProperty(XalanProperties.SOURCE_LOCATION, Boolean.TRUE); if(recursionLimit>0) impl.setRecursionLimit(recursionLimit); // sc 28-Feb-01 if we re-implement this, please uncomment helpmsg in printArgOptions // impl.setDiagnosticsOutput( setQuietMode ? null : diagnosticsWriter ); } int nParams = params.size(); for (int i = 0; i < nParams; i += 2) { transformer.setParameter((String) params.elementAt(i), (String) params.elementAt(i + 1)); } if (uriResolver != null) transformer.setURIResolver(uriResolver); if (null != inFileName) { if (flavor.equals("d2d")) { // Parse in the xml data into a DOM DocumentBuilderFactory dfactory = DocumentBuilderFactory.newInstance(); dfactory.setCoalescing(true); dfactory.setNamespaceAware(true); DocumentBuilder docBuilder = dfactory.newDocumentBuilder(); if (entityResolver != null) docBuilder.setEntityResolver(entityResolver); Node xmlDoc = docBuilder.parse(new InputSource(inFileName)); Document doc = docBuilder.newDocument(); org.w3c.dom.DocumentFragment outNode = doc.createDocumentFragment(); transformer.transform(new DOMSource(xmlDoc, inFileName), new DOMResult(outNode)); // Now serialize output to disk with identity transformer Transformer serializer = stf.newTransformer(); Properties serializationProps = stylesheet.getOutputProperties(); serializer.setOutputProperties(serializationProps); if (contentHandler != null) { SAXResult result = new SAXResult(contentHandler); serializer.transform(new DOMSource(outNode), result); } else serializer.transform(new DOMSource(outNode), strResult); } else if (flavor.equals("th")) { for (int i = 0; i < 1; i++) // Loop for diagnosing bugs with inconsistent behavior { // System.out.println("Testing the TransformerHandler..."); // =============== XMLReader reader = null; // Use JAXP1.1 ( if possible ) try { javax.xml.parsers.SAXParserFactory factory = javax.xml.parsers.SAXParserFactory.newInstance(); factory.setNamespaceAware(true); javax.xml.parsers.SAXParser jaxpParser = factory.newSAXParser(); reader = jaxpParser.getXMLReader(); } catch (javax.xml.parsers.ParserConfigurationException ex) { throw new org.xml.sax.SAXException(ex); } catch (javax.xml.parsers.FactoryConfigurationError ex1) { throw new org.xml.sax.SAXException(ex1.toString()); } catch (NoSuchMethodError ex2){} catch (AbstractMethodError ame){} if (null == reader) { reader = XMLReaderFactory.createXMLReader(); } if (!useXSLTC) stf.setAttribute(org.apache.xalan.processor.TransformerFactoryImpl.FEATURE_INCREMENTAL, Boolean.TRUE); TransformerHandler th = stf.newTransformerHandler(stylesheet); reader.setContentHandler(th); reader.setDTDHandler(th); if(th instanceof org.xml.sax.ErrorHandler) reader.setErrorHandler((org.xml.sax.ErrorHandler)th); try { reader.setProperty( "http://xml.org/sax/properties/lexical-handler", th); } catch (org.xml.sax.SAXNotRecognizedException e){} catch (org.xml.sax.SAXNotSupportedException e){} try { reader.setFeature("http://xml.org/sax/features/namespace-prefixes", true); } catch (org.xml.sax.SAXException se) {} th.setResult(strResult); reader.parse(new InputSource(inFileName)); } } else { if (entityResolver != null) { XMLReader reader = null; // Use JAXP1.1 ( if possible ) try { javax.xml.parsers.SAXParserFactory factory = javax.xml.parsers.SAXParserFactory.newInstance(); factory.setNamespaceAware(true); javax.xml.parsers.SAXParser jaxpParser = factory.newSAXParser(); reader = jaxpParser.getXMLReader(); } catch (javax.xml.parsers.ParserConfigurationException ex) { throw new org.xml.sax.SAXException(ex); } catch (javax.xml.parsers.FactoryConfigurationError ex1) { throw new org.xml.sax.SAXException(ex1.toString()); } catch (NoSuchMethodError ex2){} catch (AbstractMethodError ame){} if (null == reader) { reader = XMLReaderFactory.createXMLReader(); } reader.setEntityResolver(entityResolver); if (contentHandler != null) { SAXResult result = new SAXResult(contentHandler); transformer.transform( new SAXSource(reader, new InputSource(inFileName)), result); } else { transformer.transform( new SAXSource(reader, new InputSource(inFileName)), strResult); } } else if (contentHandler != null) { SAXResult result = new SAXResult(contentHandler); transformer.transform(new StreamSource(inFileName), result); } else { // System.out.println("Starting transform"); transformer.transform(new StreamSource(inFileName), strResult); // System.out.println("Done with transform"); } } } else { StringReader reader = new StringReader("<?xml version=\"1.0\"?> <doc/>"); transformer.transform(new StreamSource(reader), strResult); } } else { diagnosticsWriter.println( XSLMessages.createMessage( XSLTErrorResources.ER_NOT_SUCCESSFUL, null)); //"XSL Process was not successful."); doExit(-1); } // close output streams if (null != outFileName && strResult!=null) { java.io.OutputStream out = strResult.getOutputStream(); java.io.Writer writer = strResult.getWriter(); try { if (out != null) out.close(); if (writer != null) writer.close(); } catch(java.io.IOException ie) {} } long stop = System.currentTimeMillis(); long millisecondsDuration = stop - start; if (doDiag) { Object[] msgArgs = new Object[]{ inFileName, xslFileName, new Long(millisecondsDuration) }; String msg = XSLMessages.createMessage("diagTiming", msgArgs); diagnosticsWriter.println('\n'); diagnosticsWriter.println(msg); } } catch (Throwable throwable) { while (throwable instanceof org.apache.xml.utils.WrappedRuntimeException) { throwable = ((org.apache.xml.utils.WrappedRuntimeException) throwable).getException(); } if ((throwable instanceof NullPointerException) || (throwable instanceof ClassCastException)) doStackDumpOnError = true; diagnosticsWriter.println(); if (doStackDumpOnError) throwable.printStackTrace(dumpWriter); else { DefaultErrorHandler.printLocation(diagnosticsWriter, throwable); diagnosticsWriter.println( XSLMessages.createMessage(XSLTErrorResources.ER_XSLT_ERROR, null) + " (" + throwable.getClass().getName() + "): " + throwable.getMessage()); } // diagnosticsWriter.println(XSLMessages.createMessage(XSLTErrorResources.ER_NOT_SUCCESSFUL, null)); //"XSL Process was not successful."); if (null != dumpFileName) { dumpWriter.close(); } doExit(-1); } if (null != dumpFileName) { dumpWriter.close(); } if (null != diagnosticsWriter) { // diagnosticsWriter.close(); } // if(!setQuietMode) // diagnosticsWriter.println(resbundle.getString("xsldone")); //"Xalan: done"); // else // diagnosticsWriter.println(""); //"Xalan: done"); } } | 46591 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46591/2d07c253b814672a82d969836d58577bfa628b88/Process.java/clean/src/org/apache/xalan/xslt/Process.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
2774,
12,
780,
5261,
63,
5717,
225,
288,
3639,
368,
2509,
18,
588,
5576,
7675,
5129,
1305,
10125,
12,
5743,
1769,
368,
20748,
5110,
17144,
3397,
565,
1250,
741,
2624,
1062... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
2774,
12,
780,
5261,
63,
5717,
225,
288,
3639,
368,
2509,
18,
588,
5576,
7675,
5129,
1305,
10125,
12,
5743,
1769,
368,
20748,
5110,
17144,
3397,
565,
1250,
741,
2624,
1062... |
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { if (isSelected) { display.setForeground(table.getSelectionForeground()); display.setBackground(table.getSelectionBackground()); } else { display.setForeground(table.getForeground()); display.setBackground(table.getBackground()); } int state = ((Integer)value).intValue(); display.setSelected((value != null && Math.abs(state) == 1)); display.setEnabled(state >= 0); return display; } | public Component getTableCellRendererComponent( JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { if (isSelected) { display.setForeground(table.getSelectionForeground()); display.setBackground(table.getSelectionBackground()); } else { display.setForeground(table.getForeground()); display.setBackground(table.getBackground()); } int state = ((Integer) value).intValue(); display.setSelected((value != null && Math.abs(state) == 1)); display.setEnabled(state >= 0); return display; } | public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { if (isSelected) { display.setForeground(table.getSelectionForeground()); display.setBackground(table.getSelectionBackground()); } else { display.setForeground(table.getForeground()); display.setBackground(table.getBackground()); } int state = ((Integer)value).intValue(); display.setSelected((value != null && Math.abs(state) == 1)); display.setEnabled(state >= 0); return display; } | 28044 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/28044/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/PacksPanel.java/clean/src/lib/com/izforge/izpack/panels/PacksPanel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
5435,
5638,
4020,
6747,
1841,
12,
46,
1388,
1014,
16,
1033,
460,
16,
1171,
9079,
1250,
20956,
16,
1250,
711,
9233,
16,
509,
1027,
16,
509,
1057,
13,
540,
288,
1850,
309,
261,
291,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5435,
5638,
4020,
6747,
1841,
12,
46,
1388,
1014,
16,
1033,
460,
16,
1171,
9079,
1250,
20956,
16,
1250,
711,
9233,
16,
509,
1027,
16,
509,
1057,
13,
540,
288,
1850,
309,
261,
291,... |
configurationElement.getNamespace(), commandId); | configurationElement, commandId); | private static final void readBindingsFromRegistry( final IConfigurationElement[] configurationElements, final int configurationElementCount, final BindingManager bindingManager, final ICommandService commandService) { final Collection bindings = new ArrayList(configurationElementCount); final List warningsToLog = new ArrayList(1); for (int i = 0; i < configurationElementCount; i++) { final IConfigurationElement configurationElement = configurationElements[i]; /* * Read out the command id. Doing this before determining if the key * binding is actually valid is a bit wasteful. However, it is * helpful to have the command identifier when logging syntax * errors. */ String commandId = configurationElement .getAttribute(ATTRIBUTE_COMMAND_ID); if ((commandId == null) || (commandId.length() == 0)) { commandId = configurationElement .getAttribute(ATTRIBUTE_COMMAND); } if ((commandId != null) && (commandId.length() == 0)) { commandId = null; } final Command command; if (commandId != null) { command = commandService.getCommand(commandId); if (!command.isDefined()) { // Reference to an undefined command. This is invalid. addWarning(warningsToLog, "Cannot bind to an undefined command", //$NON-NLS-1$ configurationElement.getNamespace(), commandId); continue; } } else { command = null; } // Read out the scheme id. String schemeId = configurationElement .getAttribute(ATTRIBUTE_SCHEME_ID); if ((schemeId == null) || (schemeId.length() == 0)) { schemeId = configurationElement .getAttribute(ATTRIBUTE_KEY_CONFIGURATION_ID); if ((schemeId == null) || (schemeId.length() == 0)) { schemeId = configurationElement .getAttribute(ATTRIBUTE_CONFIGURATION); if ((schemeId == null) || (schemeId.length() == 0)) { // The scheme id should never be null. This is invalid. addWarning(warningsToLog, "Key bindings need a scheme", //$NON-NLS-1$ configurationElement.getNamespace(), commandId); continue; } } } // Read out the context id. String contextId = configurationElement .getAttribute(ATTRIBUTE_CONTEXT_ID); if (LEGACY_DEFAULT_SCOPE.equals(contextId)) { contextId = null; } else if ((contextId == null) || (contextId.length() == 0)) { contextId = configurationElement.getAttribute(ATTRIBUTE_SCOPE); if (LEGACY_DEFAULT_SCOPE.equals(contextId)) { contextId = null; } } if ((contextId == null) || (contextId.length() == 0)) { contextId = IContextIds.CONTEXT_ID_WINDOW; } // Read out the key sequence. KeySequence keySequence = null; String keySequenceText = configurationElement .getAttribute(ATTRIBUTE_SEQUENCE); if ((keySequenceText == null) || (keySequenceText.length() == 0)) { keySequenceText = configurationElement .getAttribute(ATTRIBUTE_KEY_SEQUENCE); } if ((keySequenceText == null) || (keySequenceText.length() == 0)) { keySequenceText = configurationElement .getAttribute(ATTRIBUTE_STRING); if ((keySequenceText == null) || (keySequenceText.length() == 0)) { // The key sequence should never be null. This is pointless addWarning( warningsToLog, "Defining a key binding with no key sequence has no effect", //$NON-NLS-1$ configurationElement.getNamespace(), commandId); continue; } // The key sequence is in the old-style format. try { keySequence = convert2_1Sequence(parse2_1Sequence(keySequenceText)); } catch (final IllegalArgumentException e) { addWarning(warningsToLog, "Could not parse key sequence", //$NON-NLS-1$ configurationElement.getNamespace(), commandId, "keySequence", keySequenceText); //$NON-NLS-1$ continue; } } else { // The key sequence is in the new-style format. try { keySequence = KeySequence.getInstance(keySequenceText); } catch (final ParseException e) { addWarning(warningsToLog, "Could not parse key sequence", //$NON-NLS-1$ configurationElement.getNamespace(), commandId, "keySequence", keySequenceText); //$NON-NLS-1$ continue; } if (keySequence.isEmpty() || !keySequence.isComplete()) { addWarning( warningsToLog, "Key bindings should not have an empty or incomplete key sequence", //$NON-NLS-1$ configurationElement.getNamespace(), commandId, "keySequence", keySequence.toString()); //$NON-NLS-1$ continue; } } // Read out the locale and platform. String locale = configurationElement.getAttribute(ATTRIBUTE_LOCALE); if ((locale != null) && (locale.length() == 0)) { locale = null; } String platform = configurationElement .getAttribute(ATTRIBUTE_PLATFORM); if ((platform != null) && (platform.length() == 0)) { platform = null; } // Read out the parameters, if any. final ParameterizedCommand parameterizedCommand; if (command == null) { parameterizedCommand = null; } else { parameterizedCommand = readParametersFromRegistry( configurationElement, warningsToLog, command); } final Binding binding = new KeyBinding(keySequence, parameterizedCommand, schemeId, contextId, locale, platform, null, Binding.SYSTEM); bindings.add(binding); } final Binding[] bindingArray = (Binding[]) bindings .toArray(new Binding[bindings.size()]); bindingManager.setBindings(bindingArray); logWarnings( warningsToLog, "Warnings while parsing the key bindings from the 'org.eclipse.ui.commands' extension point"); //$NON-NLS-1$ } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/539b29bd9f4ed0020b6fce0d726b8d740d87469d/BindingPersistence.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/keys/BindingPersistence.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
727,
918,
855,
10497,
1265,
4243,
12,
1082,
202,
6385,
467,
1750,
1046,
8526,
1664,
3471,
16,
1082,
202,
6385,
509,
1664,
1046,
1380,
16,
1082,
202,
6385,
15689,
1318,
508... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
727,
918,
855,
10497,
1265,
4243,
12,
1082,
202,
6385,
467,
1750,
1046,
8526,
1664,
3471,
16,
1082,
202,
6385,
509,
1664,
1046,
1380,
16,
1082,
202,
6385,
15689,
1318,
508... |
if (_lastDataArea != _myOverviewChart.getCanvas().getProjection().getDataArea()) | if (_lastDataArea != _parentView._myOverviewChart.getCanvas().getProjection().getDataArea()) | public final void paintMe(final CanvasType dest) { // just double-check we have some layers (if we're part of an overview // chart, we may not have...) if (_theLayers == null) return; // check that we have a valid canvas (that the sizes are set) final java.awt.Dimension sArea = dest.getProjection().getScreenArea(); if (sArea != null) { if (sArea.width > 0) { // hey, we've plotted at least once, has the data area changed? if (_lastDataArea != _myOverviewChart.getCanvas().getProjection().getDataArea()) { // remember the data area for next time _lastDataArea = _myOverviewChart.getCanvas().getProjection().getDataArea(); // clear out all of the layers we are using _myLayers.clear(); } int canvasHeight = _myOverviewChart.getCanvas().getSize().getSize().height; int canvasWidth = _myOverviewChart.getCanvas().getSize().width; paintBackground(dest); // ok, pass through the layers, repainting any which need it Enumeration numer = _theLayers.sortedElements(); while (numer.hasMoreElements()) { final Layer thisLayer = (Layer) numer.nextElement(); boolean isAlreadyPlotted = false; // hmm, do we want to paint this layer? if (doWePaintThisLayer(thisLayer)) { // just check if this layer is visible if (thisLayer.getVisible()) { // System.out.println("painting:" + thisLayer.getName()); if (doubleBufferPlot()) { // check we're plotting to a SwingCanvas, because we don't // double-buffer anything else if (dest instanceof SWTCanvas) { // does this layer want to be double-buffered? if (thisLayer instanceof BaseLayer) { // just check if there is a property which over-rides the // double-buffering final BaseLayer bl = (BaseLayer) thisLayer; if (bl.isBuffered()) { isAlreadyPlotted = true; // do our double-buffering bit // do we have a layer for this object org.eclipse.swt.graphics.Image image = (org.eclipse.swt.graphics.Image) _myLayers .get(thisLayer); if (image == null) { // ok - create our image if (_myImageTemplate == null) { Image tmpTemplate = new Image(Display.getCurrent(), canvasWidth, canvasHeight); _myImageTemplate = tmpTemplate.getImageData(); } image = createSWTImage(_myImageTemplate); GC newGC = new GC(image); // wrap the GC into something we know how to plot to. SWTCanvasAdapter ca = new OverviewSWTCanvasAdapter(dest .getProjection()); ca.setScreenSize(dest.getProjection().getScreenArea()); // and store the GC ca.startDraw(newGC); // ok, paint the layer into this canvas thisLayer.paint(ca); // done. ca.endDraw(null); // store this image in our list, indexed by the layer // object itself _myLayers.put(thisLayer, image); } // have we ended up with an image to paint? if (image != null) { // get the graphics to paint to SWTCanvas canv = (SWTCanvas) dest; // lastly add this image to our Graphics object canv.drawSWTImage(image, 0, 0, canvasWidth, canvasHeight); } } } } // whether we were plotting to a SwingCanvas (which may be // double-buffered } // whther we are happy to do double-buffering // did we manage to paint it if (!isAlreadyPlotted) { paintThisLayer(thisLayer, dest); isAlreadyPlotted = true; } } } } } } } | 2410 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2410/0d1b40656f2e2133e0d644fe7f0d868575ae83f4/ChartOverview.java/clean/trunk/CVSROOT/org.mwc.cmap.overview/src/org/mwc/cmap/overview/views/ChartOverview.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
727,
918,
12574,
4667,
12,
6385,
20966,
559,
1570,
13,
202,
202,
95,
1082,
202,
759,
2537,
1645,
17,
1893,
732,
1240,
2690,
6623,
261,
430,
732,
4565,
1087,
434,
392,
18471,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
727,
918,
12574,
4667,
12,
6385,
20966,
559,
1570,
13,
202,
202,
95,
1082,
202,
759,
2537,
1645,
17,
1893,
732,
1240,
2690,
6623,
261,
430,
732,
4565,
1087,
434,
392,
18471,
... |
private DesignElement getPersistentDesignElement( Map<String, DesignElement> designElementCache, DesignElement persistentDesignElement, DesignElement maybeExistingDesignElement, String key ) { | private DesignElement getPersistentDesignElement( DesignElement persistentDesignElement, DesignElement maybeExistingDesignElement, String key ) { | private DesignElement getPersistentDesignElement( Map<String, DesignElement> designElementCache, DesignElement persistentDesignElement, DesignElement maybeExistingDesignElement, String key ) { if ( maybeExistingDesignElement instanceof CompositeSequence ) { persistentDesignElement = persistDesignElement( maybeExistingDesignElement ); } else if ( maybeExistingDesignElement instanceof Reporter ) { persistentDesignElement = persistDesignElement( maybeExistingDesignElement ); } if ( persistentDesignElement == null ) { throw new IllegalStateException( maybeExistingDesignElement + " does not have a persistent version" ); } designElementCache.put( key, persistentDesignElement ); return persistentDesignElement; } | 4335 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4335/64a20b5a9cd97b9224e94a2b801acf887314fa39/PersisterHelper.java/buggy/src/impl/edu/columbia/gemma/loader/loaderutils/PersisterHelper.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
29703,
1046,
1689,
6572,
15478,
1046,
12,
1635,
32,
780,
16,
29703,
1046,
34,
8281,
1046,
1649,
16,
5411,
29703,
1046,
9195,
15478,
1046,
16,
29703,
1046,
6944,
9895,
15478,
1046,
16,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
29703,
1046,
1689,
6572,
15478,
1046,
12,
1635,
32,
780,
16,
29703,
1046,
34,
8281,
1046,
1649,
16,
5411,
29703,
1046,
9195,
15478,
1046,
16,
29703,
1046,
6944,
9895,
15478,
1046,
16,... |
public org.quickfix.field.LegInterestAccrualDate getLegInterestAccrualDate() throws FieldNotFound { org.quickfix.field.LegInterestAccrualDate value = new org.quickfix.field.LegInterestAccrualDate(); | public quickfix.field.LegInterestAccrualDate getLegInterestAccrualDate() throws FieldNotFound { quickfix.field.LegInterestAccrualDate value = new quickfix.field.LegInterestAccrualDate(); | public org.quickfix.field.LegInterestAccrualDate getLegInterestAccrualDate() throws FieldNotFound { org.quickfix.field.LegInterestAccrualDate value = new org.quickfix.field.LegInterestAccrualDate(); getField(value); return value; } | 5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/AllocationReport.java/clean/src/java/src/quickfix/fix44/AllocationReport.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
29281,
8973,
86,
1462,
1626,
336,
8329,
29281,
8973,
86,
1462,
1626,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
29281,
8973,
86,
1462,
1626,
336,
8329,
29281,
8973,
86,
1462,
1626,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
... |
public TreePrinter print(Tree tree) { switch (tree) { case Bad(): print(TXT_ERROR); break; case Empty: print(TXT_EMPTY); break; case ClassDef(int mods, Name name, Tree.AbsTypeDef[] tparams, Tree.ValDef[][] vparams, Tree tpe, Tree.Template impl): printModifiers(mods); print((mods & Modifiers.INTERFACE) != 0 ? KW_INTERFACE : KW_CLASS); print(Text.Space); printSymbolDefinition(tree.symbol(), name); printParams(tparams); printParams(vparams); printOpt(TXT_COLON, tpe, false); printTemplate(tree.symbol(), KW_EXTENDS, impl, true); break; case PackageDef(Tree packaged, Tree.Template impl): print(KW_PACKAGE); print(Text.Space); print(packaged); printTemplate(null, KW_WITH, impl, true); break; case ModuleDef(int mods, Name name, Tree tpe, Tree.Template impl): printModifiers(mods); print(KW_OBJECT); print(Text.Space); printSymbolDefinition(tree.symbol(), name); printOpt(TXT_COLON, tpe, false); printTemplate(null, KW_EXTENDS, impl, true); break; case ValDef(int mods, Name name, Tree tpe, Tree rhs): printModifiers(mods); if ((mods & Modifiers.MUTABLE) != 0) print(KW_VAR); else { if ((mods & Modifiers.MODUL) != 0) print(TXT_OBJECT_COMMENT); print(KW_VAL); } print(Text.Space); printSymbolDefinition(tree.symbol(), name); printOpt(TXT_COLON, tpe, false); if ((mods & Modifiers.DEFERRED) == 0) { print(Text.Space); print(TXT_EQUAL); print(Text.Space); if (rhs == Tree.Empty) print("_"); else print(rhs); } break; case PatDef(int mods, Tree pat, Tree rhs): printModifiers(mods); print(KW_VAL); print(Text.Space); print(pat); printOpt(TXT_EQUAL, rhs, true); break; case DefDef(int mods, Name name, Tree.AbsTypeDef[] tparams, Tree.ValDef[][] vparams, Tree tpe, Tree rhs): printModifiers(mods); print(KW_DEF); print(Text.Space); if (name.isTypeName()) print(KW_THIS); else printSymbolDefinition(tree.symbol(), name); printParams(tparams); printParams(vparams); printOpt(TXT_COLON, tpe, false); printOpt(TXT_EQUAL, rhs, true); break; case AbsTypeDef(int mods, Name name, Tree rhs, Tree lobound): printModifiers(mods); print(KW_TYPE); print(Text.Space); printSymbolDefinition(tree.symbol(), name); printBounds(lobound, rhs); break; case AliasTypeDef(int mods, Name name, Tree.AbsTypeDef[] tparams, Tree rhs): printModifiers(mods); print(KW_TYPE); print(Text.Space); printSymbolDefinition(tree.symbol(), name); printParams(tparams); printOpt(TXT_EQUAL, rhs, true); break; case Import(Tree expr, Name[] selectors): print(KW_IMPORT); print(Text.Space); print(expr); print(TXT_DOT); print(TXT_LEFT_BRACE); for (int i = 0; i < selectors.length; i = i + 2) { if (i > 0) print(TXT_COMMA_SP); print(selectors[i].toString()); if (i + 1 < selectors.length && selectors[i] != selectors[i+1]) { print(TXT_RIGHT_ARROW); print(selectors[i+1].toString()); } } print(TXT_RIGHT_BRACE); break; case CaseDef(Tree pat, Tree guard, Tree body): print(KW_CASE); print(Text.Space); print(pat); printOpt(KW_IF, guard, true); print(Text.Space); print(TXT_RIGHT_ARROW); print(Text.Space); print(body); break; case LabelDef(Name name, Tree.Ident[] params, Tree rhs): printSymbolDefinition(tree.symbol(), name); printArray(params, TXT_LEFT_PAREN, TXT_RIGHT_PAREN, TXT_COMMA_SP); print(rhs); break; case Block(Tree[] stats): printArray(stats, TXT_BLOCK_BEGIN, TXT_BLOCK_END, TXT_BLOCK_SEP); printType(tree); break; case Sequence(Tree[] trees): printArray(trees, TXT_LEFT_BRACKET, TXT_RIGHT_BRACKET, TXT_COMMA_SP); break; /* case Subsequence(Tree[] trees): if( trees.length > 0 ) printArray(trees, TXT_LEFT_PAREN, TXT_RIGHT_PAREN, TXT_COMMA_SP); else { print( TXT_LEFT_PAREN ); print( TXT_COMMA ); print( TXT_RIGHT_PAREN ); } break; */ case Alternative(Tree[] trees): printArray(trees, TXT_LEFT_PAREN, TXT_RIGHT_PAREN, TXT_BAR_SP); break; case Bind(Name name, Tree t): printSymbolDefinition(tree.symbol(), name); print(Text.Space); print(TXT_AT); print(Text.Space); print(TXT_LEFT_PAREN); print( t ); print(TXT_RIGHT_PAREN); printType(tree); break; case Visitor(Tree.CaseDef[] cases): printArray(cases, TXT_BLOCK_BEGIN, TXT_BLOCK_END, Text.Newline); break; case Function(Tree.ValDef[] vparams, Tree body): print(TXT_LEFT_PAREN); printParams(vparams); print(Text.Space); print(TXT_RIGHT_ARROW); print(Text.Space); print(body); print(TXT_RIGHT_PAREN); break; case Assign(Tree lhs, Tree rhs): print(lhs); print(Text.Space); print(TXT_EQUAL); print(Text.Space); print(rhs); break; case If(Tree cond, Tree thenp, Tree elsep): print(KW_IF); print(Text.Space); print(TXT_LEFT_PAREN); print(cond); print(TXT_RIGHT_PAREN); indent(); print(Text.Newline); print(thenp); undent(); print(Text.Newline); indent(); printOpt(TXT_ELSE_NL, elsep, false); undent(); printType(tree); break; case Switch(Tree expr, int[] tags, Tree[] bodies, Tree defaultBody): print("<switch>"); print(Text.Space); print(TXT_LEFT_PAREN); print(expr); print(TXT_RIGHT_PAREN); print(Text.Space); indent(); print(TXT_BLOCK_BEGIN); for (int i = 0; i < tags.length; i++) { print(KW_CASE); print(Text.Space); print("" + tags[i]); print(Text.Space); print(TXT_RIGHT_ARROW); print(Text.Space); print(bodies[i]); print(Text.Newline); } print("<default> => "); print(defaultBody); undent(); print(TXT_BLOCK_END); break; case Return(Tree expr): print(KW_RETURN); print(Text.Space); print(expr); break; case New(Tree.Template templ): printTemplate(null, KW_NEW, templ, false); printType(tree); break; case Typed(Tree expr, Tree tpe): print(TXT_LEFT_PAREN); print(expr); print(TXT_RIGHT_PAREN); print(Text.Space); print(TXT_COLON); print(Text.Space); print(tpe); printType(tree); break; case TypeApply(Tree fun, Tree[] targs): print(fun); printArray(targs, TXT_LEFT_BRACKET, TXT_RIGHT_BRACKET, TXT_COMMA_SP); printType(tree); break; case Apply(Tree fun, Tree[] vargs): if (fun instanceof Tree.TypeTerm) print(fun.type.resultType().symbol().fullName().toString()); else print(fun); printArray(vargs, TXT_LEFT_PAREN, TXT_RIGHT_PAREN, TXT_COMMA_SP); printType(tree); break; case Super(Name qualifier, Name mixin): if (qualifier != TypeNames.EMPTY) { printSymbolUse(tree.symbol(), qualifier); print(TXT_DOT); } print(KW_SUPER); if (mixin != TypeNames.EMPTY) { print(TXT_LEFT_PAREN); print(mixin.toString()); print(TXT_RIGHT_PAREN); } printType(tree); break; case This(Name name): if (name != TypeNames.EMPTY) { printSymbolUse(tree.symbol(), name); print(TXT_DOT); } print(KW_THIS); printType(tree); break; case Select(Tree qualifier, Name name): print(qualifier); print(TXT_DOT); printSymbolUse(tree.symbol(), name); printType(tree); break; case Ident(Name name): printSymbolUse(tree.symbol(), name); printType(tree); break; case Literal(AConstant value): print(Text.Literal(value.toString())); printType(tree); break; case TypeTerm(): print(tree.type.toString()); break; case SingletonType(Tree ref): print(ref); print(TXT_DOT); print(KW_TYPE); break; case SelectFromType(Tree qualifier, Name selector): print(qualifier); print(Text.Space); print(TXT_HASH); print(Text.Space); printSymbolUse(tree.symbol(), selector); break; case FunType(Tree[] argtpes, Tree restpe): printArray(argtpes, TXT_LEFT_PAREN, TXT_RIGHT_PAREN, TXT_COMMA_SP); print(TXT_RIGHT_ARROW); print(restpe); break; case CompoundType(Tree[] baseTypes, Tree[] refinements): printArray(baseTypes, Text.None, Text.None, TXT_WITH_SP); printArray(refinements, TXT_BLOCK_BEGIN, TXT_BLOCK_END, Text.Newline); break; case AppliedType(Tree tpe, Tree[] args): print(tpe); indent(); print(TXT_LEFT_BRACKET); for (int i = 0; i < args.length; ++i) { if (i > 0) print(TXT_COMMA_SP); print(args[i]); } undent(); print(TXT_RIGHT_BRACKET); break; case Template(Tree[] parents, Tree[] body): Debug.abort("unexpected case: template"); break; default: print(TXT_UNKNOWN); break; } | public TreePrinter print(String str) { out.print(str); | public TreePrinter print(Tree tree) { switch (tree) { case Bad(): print(TXT_ERROR); break; case Empty: print(TXT_EMPTY); break; case ClassDef(int mods, // : Name name, Tree.AbsTypeDef[] tparams, Tree.ValDef[][] vparams, Tree tpe, Tree.Template impl): printModifiers(mods); print((mods & Modifiers.INTERFACE) != 0 ? KW_INTERFACE : KW_CLASS); print(Text.Space); printSymbolDefinition(tree.symbol(), name); printParams(tparams); printParams(vparams); printOpt(TXT_COLON, tpe, false); printTemplate(tree.symbol(), KW_EXTENDS, impl, true); break; case PackageDef(Tree packaged, Tree.Template impl): print(KW_PACKAGE); print(Text.Space); print(packaged); printTemplate(null, KW_WITH, impl, true); break; case ModuleDef(int mods, // : Name name, Tree tpe, Tree.Template impl): printModifiers(mods); print(KW_OBJECT); print(Text.Space); printSymbolDefinition(tree.symbol(), name); printOpt(TXT_COLON, tpe, false); printTemplate(null, KW_EXTENDS, impl, true); break; case ValDef(int mods, Name name, Tree tpe, Tree rhs): printModifiers(mods); if ((mods & Modifiers.MUTABLE) != 0) print(KW_VAR); else { if ((mods & Modifiers.MODUL) != 0) print(TXT_OBJECT_COMMENT); print(KW_VAL); } print(Text.Space); printSymbolDefinition(tree.symbol(), name); printOpt(TXT_COLON, tpe, false); if ((mods & Modifiers.DEFERRED) == 0) { print(Text.Space); print(TXT_EQUAL); print(Text.Space); if (rhs == Tree.Empty) print("_"); else print(rhs); } break; case PatDef(int mods, Tree pat, Tree rhs): printModifiers(mods); print(KW_VAL); print(Text.Space); print(pat); printOpt(TXT_EQUAL, rhs, true); break; case DefDef(int mods, Name name, Tree.AbsTypeDef[] tparams, Tree.ValDef[][] vparams, Tree tpe, Tree rhs): printModifiers(mods); print(KW_DEF); print(Text.Space); if (name.isTypeName()) print(KW_THIS); else printSymbolDefinition(tree.symbol(), name); printParams(tparams); printParams(vparams); printOpt(TXT_COLON, tpe, false); printOpt(TXT_EQUAL, rhs, true); break; case AbsTypeDef(int mods, Name name, Tree rhs, Tree lobound): printModifiers(mods); print(KW_TYPE); print(Text.Space); printSymbolDefinition(tree.symbol(), name); printBounds(lobound, rhs); break; case AliasTypeDef(int mods, Name name, Tree.AbsTypeDef[] tparams, Tree rhs): printModifiers(mods); print(KW_TYPE); print(Text.Space); printSymbolDefinition(tree.symbol(), name); printParams(tparams); printOpt(TXT_EQUAL, rhs, true); break; case Import(Tree expr, Name[] selectors): print(KW_IMPORT); print(Text.Space); print(expr); print(TXT_DOT); print(TXT_LEFT_BRACE); for (int i = 0; i < selectors.length; i = i + 2) { if (i > 0) print(TXT_COMMA_SP); print(selectors[i].toString()); if (i + 1 < selectors.length && selectors[i] != selectors[i+1]) { print(TXT_RIGHT_ARROW); print(selectors[i+1].toString()); } } print(TXT_RIGHT_BRACE); break; case CaseDef(Tree pat, Tree guard, Tree body): print(KW_CASE); print(Text.Space); print(pat); printOpt(KW_IF, guard, true); print(Text.Space); print(TXT_RIGHT_ARROW); print(Text.Space); print(body); break; case LabelDef(Name name, Tree.Ident[] params, Tree rhs): printSymbolDefinition(tree.symbol(), name); printArray(params, TXT_LEFT_PAREN, TXT_RIGHT_PAREN, TXT_COMMA_SP); print(rhs); break; case Block(Tree[] stats): printArray(stats, TXT_BLOCK_BEGIN, TXT_BLOCK_END, TXT_BLOCK_SEP); printType(tree); break; case Sequence(Tree[] trees): // sure ? was Tuple before... printArray(trees, TXT_LEFT_BRACKET, TXT_RIGHT_BRACKET, TXT_COMMA_SP); break; /* case Subsequence(Tree[] trees): if( trees.length > 0 ) printArray(trees, TXT_LEFT_PAREN, TXT_RIGHT_PAREN, TXT_COMMA_SP); else { print( TXT_LEFT_PAREN ); print( TXT_COMMA ); print( TXT_RIGHT_PAREN ); } break; */ case Alternative(Tree[] trees): printArray(trees, TXT_LEFT_PAREN, TXT_RIGHT_PAREN, TXT_BAR_SP); break; case Bind(Name name, Tree t): printSymbolDefinition(tree.symbol(), name); print(Text.Space); print(TXT_AT); print(Text.Space); print(TXT_LEFT_PAREN); print( t ); print(TXT_RIGHT_PAREN); printType(tree); break; case Visitor(Tree.CaseDef[] cases): printArray(cases, TXT_BLOCK_BEGIN, TXT_BLOCK_END, Text.Newline); break; case Function(Tree.ValDef[] vparams, Tree body): print(TXT_LEFT_PAREN); printParams(vparams); print(Text.Space); print(TXT_RIGHT_ARROW); print(Text.Space); print(body); print(TXT_RIGHT_PAREN); break; case Assign(Tree lhs, Tree rhs): print(lhs); print(Text.Space); print(TXT_EQUAL); print(Text.Space); print(rhs); break; case If(Tree cond, Tree thenp, Tree elsep): print(KW_IF); print(Text.Space); print(TXT_LEFT_PAREN); print(cond); print(TXT_RIGHT_PAREN); indent(); print(Text.Newline); print(thenp); undent(); print(Text.Newline); indent(); printOpt(TXT_ELSE_NL, elsep, false); undent(); printType(tree); break; case Switch(Tree expr, int[] tags, Tree[] bodies, Tree defaultBody): print("<switch>"); print(Text.Space); print(TXT_LEFT_PAREN); print(expr); print(TXT_RIGHT_PAREN); print(Text.Space); indent(); print(TXT_BLOCK_BEGIN); for (int i = 0; i < tags.length; i++) { print(KW_CASE); print(Text.Space); print("" + tags[i]); print(Text.Space); print(TXT_RIGHT_ARROW); print(Text.Space); print(bodies[i]); print(Text.Newline); } print("<default> => "); print(defaultBody); undent(); print(TXT_BLOCK_END); break; case Return(Tree expr): print(KW_RETURN); print(Text.Space); print(expr); break; case New(Tree.Template templ): printTemplate(null, KW_NEW, templ, false); printType(tree); break; case Typed(Tree expr, Tree tpe): print(TXT_LEFT_PAREN); print(expr); print(TXT_RIGHT_PAREN); print(Text.Space); print(TXT_COLON); print(Text.Space); print(tpe); printType(tree); break; case TypeApply(Tree fun, Tree[] targs): print(fun); printArray(targs, TXT_LEFT_BRACKET, TXT_RIGHT_BRACKET, TXT_COMMA_SP); printType(tree); break; case Apply(Tree fun, Tree[] vargs): if (fun instanceof Tree.TypeTerm) print(fun.type.resultType().symbol().fullName().toString()); else print(fun); printArray(vargs, TXT_LEFT_PAREN, TXT_RIGHT_PAREN, TXT_COMMA_SP); printType(tree); break; case Super(Name qualifier, Name mixin): if (qualifier != TypeNames.EMPTY) { printSymbolUse(tree.symbol(), qualifier); print(TXT_DOT); } print(KW_SUPER); if (mixin != TypeNames.EMPTY) { print(TXT_LEFT_PAREN); print(mixin.toString()); print(TXT_RIGHT_PAREN); } printType(tree); break; case This(Name name): if (name != TypeNames.EMPTY) { printSymbolUse(tree.symbol(), name); print(TXT_DOT); } print(KW_THIS); printType(tree); break; case Select(Tree qualifier, Name name): print(qualifier); print(TXT_DOT); printSymbolUse(tree.symbol(), name); printType(tree); break; case Ident(Name name): printSymbolUse(tree.symbol(), name); printType(tree); break; case Literal(AConstant value): print(Text.Literal(value.toString())); printType(tree); break; case TypeTerm(): print(tree.type.toString()); break; case SingletonType(Tree ref): print(ref); print(TXT_DOT); print(KW_TYPE); break; case SelectFromType(Tree qualifier, Name selector): print(qualifier); print(Text.Space); print(TXT_HASH); print(Text.Space); printSymbolUse(tree.symbol(), selector); break; case FunType(Tree[] argtpes, Tree restpe): printArray(argtpes, TXT_LEFT_PAREN, TXT_RIGHT_PAREN, TXT_COMMA_SP); print(TXT_RIGHT_ARROW); print(restpe); break; case CompoundType(Tree[] baseTypes, Tree[] refinements): printArray(baseTypes, Text.None, Text.None, TXT_WITH_SP); printArray(refinements, TXT_BLOCK_BEGIN, TXT_BLOCK_END, Text.Newline); break; case AppliedType(Tree tpe, Tree[] args): print(tpe); indent(); print(TXT_LEFT_BRACKET); for (int i = 0; i < args.length; ++i) { if (i > 0) print(TXT_COMMA_SP); print(args[i]); } undent(); print(TXT_RIGHT_BRACKET); break; case Template(Tree[] parents, Tree[] body): Debug.abort("unexpected case: template"); break; default: print(TXT_UNKNOWN); break; } //print("{" + tree.type + "}");//DEBUG return this; } | 49529 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49529/53f396c70e0f402a0a3eba3f2041b47aa6050b50/TextTreePrinter.java/buggy/sources/scalac/ast/printer/TextTreePrinter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4902,
12149,
1172,
12,
2471,
2151,
13,
288,
3639,
1620,
261,
3413,
13,
288,
3639,
648,
6107,
13332,
5411,
1172,
12,
29399,
67,
3589,
1769,
5411,
898,
31,
3639,
648,
8953,
30,
5411,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4902,
12149,
1172,
12,
2471,
2151,
13,
288,
3639,
1620,
261,
3413,
13,
288,
3639,
648,
6107,
13332,
5411,
1172,
12,
29399,
67,
3589,
1769,
5411,
898,
31,
3639,
648,
8953,
30,
5411,
... |
return (header || (lines.size() < 1 && images.size() < 1)); | return (header || (lines.size() == 0 && images.size() == 0)); | final boolean mayBeRemoved() { return (header || (lines.size() < 1 && images.size() < 1)); } | 6653 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6653/337df40698b0fce3679efd24a643e0ade7cc2d63/PdfCell.java/clean/src/com/lowagie/text/pdf/PdfCell.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
727,
1250,
2026,
1919,
10026,
1435,
288,
3639,
327,
261,
3374,
747,
261,
3548,
18,
1467,
1435,
422,
374,
597,
4602,
18,
1467,
1435,
422,
374,
10019,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
727,
1250,
2026,
1919,
10026,
1435,
288,
3639,
327,
261,
3374,
747,
261,
3548,
18,
1467,
1435,
422,
374,
597,
4602,
18,
1467,
1435,
422,
374,
10019,
565,
289,
2,
-100,
-100,
-100,
-100,
... |
buffer.indentLine(caretLine); | buffer.indentLine(caretLine,true); | private boolean doWordWrap(boolean spaceInserted) { if(!hardWrap || maxLineLen <= 0) return false; buffer.getLineText(caretLine,lineSegment); int start = getLineStartOffset(caretLine); int end = getLineEndOffset(caretLine); int len = end - start - 1; int caretPos = caret - start; // only wrap if we're at the end of a line, or the rest of the // line text is whitespace for(int i = caretPos; i < len; i++) { char ch = lineSegment.array[lineSegment.offset + i]; if(ch != ' ' && ch != '\t') return false; } boolean returnValue = false; int tabSize = buffer.getTabSize(); String wordBreakChars = buffer.getStringProperty("wordBreakChars"); int logicalLength = 0; // length with tabs expanded int lastWordOffset = -1; boolean lastWasSpace = true; for(int i = 0; i < caretPos; i++) { char ch = lineSegment.array[lineSegment.offset + i]; if(ch == '\t') { logicalLength += tabSize - (logicalLength % tabSize); if(!lastWasSpace && logicalLength <= maxLineLen) { lastWordOffset = i; lastWasSpace = true; } } else if(ch == ' ') { logicalLength++; if(!lastWasSpace && logicalLength <= maxLineLen) { lastWordOffset = i; lastWasSpace = true; } } else if(wordBreakChars != null && wordBreakChars.indexOf(ch) != -1) { logicalLength++; if(!lastWasSpace && logicalLength <= maxLineLen) { lastWordOffset = i; lastWasSpace = true; } } else { logicalLength++; lastWasSpace = false; } int insertNewLineAt; if(spaceInserted && logicalLength == maxLineLen && i == caretPos - 1) { insertNewLineAt = caretPos; returnValue = true; } else if(logicalLength >= maxLineLen && lastWordOffset != -1) insertNewLineAt = lastWordOffset; else continue; try { buffer.beginCompoundEdit(); buffer.insert(start + insertNewLineAt,"\n"); // caretLine would have been incremented // since insertNewLineAt <= caretPos buffer.indentLine(caretLine); } finally { buffer.endCompoundEdit(); } /* only ever return true if space was pressed * with logicalLength == maxLineLen */ return returnValue; } return false; } //}}} | 8690 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8690/219cfc4f9ed92bca6829d1c0f89535b0720e3ad7/JEditTextArea.java/clean/org/gjt/sp/jedit/textarea/JEditTextArea.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1250,
741,
3944,
2964,
12,
6494,
3476,
27329,
13,
202,
95,
202,
202,
430,
12,
5,
20379,
2964,
747,
943,
1670,
2891,
1648,
374,
13,
1082,
202,
2463,
629,
31,
202,
202,
4106,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
741,
3944,
2964,
12,
6494,
3476,
27329,
13,
202,
95,
202,
202,
430,
12,
5,
20379,
2964,
747,
943,
1670,
2891,
1648,
374,
13,
1082,
202,
2463,
629,
31,
202,
202,
4106,
... |
newVals[num] = m_ModesAndMeans[instance.index(j)]; newIndices[num] = instance.index(j); | vals[num] = m_ModesAndMeans[instance.index(j)]; indices[num] = instance.index(j); | private void convertInstance(Instance instance) throws Exception { if (!(instance instanceof SparseInstance)) { double[] newVals = new double[getInputFormat().numAttributes()]; for(int j = 0; j < instance.numAttributes(); j++) { if (instance.isMissing(j) && (getInputFormat().attribute(j).isNominal() || getInputFormat().attribute(j).isNumeric())) { newVals[j] = m_ModesAndMeans[j]; } else { newVals[j] = instance.value(j); } } push(new Instance(instance.weight(), newVals)); } else { double[] newVals = new double[instance.numValues()]; int[] newIndices = new int[instance.numValues()]; int num = 0; for(int j = 0; j < instance.numValues(); j++) { if (instance.isMissingSparse(j) && (instance.attributeSparse(j).isNominal() || instance.attributeSparse(j).isNumeric())) { if (m_ModesAndMeans[instance.index(j)] != 0.0) { newVals[num] = m_ModesAndMeans[instance.index(j)]; newIndices[num] = instance.index(j); num++; } } else { newVals[num] = instance.valueSparse(j); newIndices[num] = instance.index(j); num++; } } if (num == instance.numValues()) { push(new SparseInstance(instance.weight(), newVals, newIndices, instance.numAttributes())); } else { double[] tempVals = new double[num]; int[] tempInd = new int[num]; System.arraycopy(newVals, 0, tempVals, 0, num); System.arraycopy(newIndices, 0, tempInd, 0, num); push(new SparseInstance(instance.weight(), tempVals, tempInd, instance.numAttributes())); } } } | 4179 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4179/60056b3bffa4e5acb19d4f81d5209b289f423b8c/ReplaceMissingValuesFilter.java/buggy/trunk/weka/filters/ReplaceMissingValuesFilter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
918,
1765,
1442,
12,
1442,
791,
13,
1216,
1185,
288,
1377,
309,
16051,
12,
1336,
1276,
16473,
1442,
3719,
288,
1377,
1645,
8526,
394,
13169,
273,
394,
1645,
63,
588,
1210,
1630,
767... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1765,
1442,
12,
1442,
791,
13,
1216,
1185,
288,
1377,
309,
16051,
12,
1336,
1276,
16473,
1442,
3719,
288,
1377,
1645,
8526,
394,
13169,
273,
394,
1645,
63,
588,
1210,
1630,
767... |
parse(buffer.toString(), ParserLanguage.CPP, true, true); | parse(buffer.toString(), ParserLanguage.CPP, true, 0); | public void test14_5_5_1s4() throws Exception { StringBuffer buffer = new StringBuffer(); buffer.append("template<class T> void f();\n"); //$NON-NLS-1$ buffer.append("template<int I> void f(); // OK: overloads the first template\n"); //$NON-NLS-1$ buffer.append("// distinguishable with an explicit template argument list\n"); //$NON-NLS-1$ parse(buffer.toString(), ParserLanguage.CPP, true, true); } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/7d7fa374bfd169ce8924a5c15bd01444e6e6e445/AST2CPPSpecTest.java/buggy/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPSpecTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
3461,
67,
25,
67,
25,
67,
21,
87,
24,
1435,
1216,
1185,
288,
202,
202,
780,
1892,
1613,
273,
394,
6674,
5621,
202,
202,
4106,
18,
6923,
2932,
3202,
32,
1106,
399,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
3461,
67,
25,
67,
25,
67,
21,
87,
24,
1435,
1216,
1185,
288,
202,
202,
780,
1892,
1613,
273,
394,
6674,
5621,
202,
202,
4106,
18,
6923,
2932,
3202,
32,
1106,
399,... |
GridData compareButtonData = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING); compareButton.setLayoutData(compareButtonData); | protected void addActionButtons(Composite buttonComposite) { FormToolkit toolkit = new FormToolkit(buttonComposite.getDisplay()); super.addActionButtons(buttonComposite); compareButton = toolkit.createButton(buttonComposite, LABEL_COMPARE_BUTTON, SWT.NONE);// GridData compareButtonData = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING);// compareButton.setLayoutData(compareButtonData); compareButton.addListener(SWT.Selection, new Listener() { public void handleEvent(Event e) { OpenCompareEditorJob compareJob = new OpenCompareEditorJob("Comparing bug with remote server..."); compareJob.schedule(); } }); compareButton.addListener(SWT.FocusIn, new GenericListener()); // Button expandAll = toolkit.createButton(buttonComposite, // LABEL_EXPAND_ALL_BUTTON, SWT.NONE); // expandAll.setLayoutData(new // GridData(GridData.HORIZONTAL_ALIGN_BEGINNING)); // expandAll.addSelectionListener(new SelectionListener() { // // public void widgetDefaultSelected(SelectionEvent e) { // // ignore // // } // // public void widgetSelected(SelectionEvent e) { // revealAllComments(); // // } // }); // TODO used for spell checking. Add back when we want to support this // checkSpellingButton = new Button(buttonComposite, SWT.NONE); // checkSpellingButton.setFont(TEXT_FONT); // compareButtonData = new // GridData(GridData.HORIZONTAL_ALIGN_BEGINNING); // compareButtonData.widthHint = 100; // compareButtonData.heightHint = 20; // checkSpellingButton.setText("CheckSpelling"); // checkSpellingButton.setLayoutData(compareButtonData); // checkSpellingButton.addListener(SWT.Selection, new Listener() { // public void handleEvent(Event e) { // checkSpelling(); // } // }); // checkSpellingButton.addListener(SWT.FocusIn, new GenericListener()); } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/18680ae61366e4f558c3cf8498b75d1938693ed7/ExistingBugEditor.java/buggy/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/editor/ExistingBugEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
14745,
14388,
12,
9400,
3568,
9400,
13,
288,
202,
202,
1204,
6364,
8691,
5226,
8691,
273,
394,
2748,
6364,
8691,
12,
5391,
9400,
18,
588,
4236,
10663,
202,
202,
9565,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
14745,
14388,
12,
9400,
3568,
9400,
13,
288,
202,
202,
1204,
6364,
8691,
5226,
8691,
273,
394,
2748,
6364,
8691,
12,
5391,
9400,
18,
588,
4236,
10663,
202,
202,
9565,
18,
... | |
return numberOfCoveredLines; | return getRawCoverageData().getNumberOfCoveredLines(); | public int getNumberOfCoveredLines() { return numberOfCoveredLines; } | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/100512ee483a0d8eebc3eb78a5d8913b7b64ddb6/Clazz.java/clean/cobertura/src/net/sourceforge/cobertura/reporting/Clazz.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
14981,
8084,
329,
5763,
1435,
202,
95,
202,
202,
2463,
7922,
8084,
329,
5763,
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,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
509,
14981,
8084,
329,
5763,
1435,
202,
95,
202,
202,
2463,
7922,
8084,
329,
5763,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.