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
String dbValue = findOneLiteral(translation, D2RQ.databaseValue); String rdfValue = findOneLiteralOrURI(translation, D2RQ.rdfValue);
String dbValue = findOneLiteral(translation, D2RQ.databaseValue.asNode()); String rdfValue = findOneLiteralOrURI(translation, D2RQ.rdfValue.asNode());
public TranslationTable getTranslationTable(Node node) { if (this.nodesToTranslationTables.containsKey(node)) { return (TranslationTable) this.nodesToTranslationTables.get(node); } TranslationTable translationTable = new TranslationTable(); String href = findZeroOrOneLiteralOrURI(node, D2RQ.href); if (href != null) { translationTable.addAll(new CSVParser(href).parse()); } String className = findZeroOrOneLiteral(node, D2RQ.javaClass); if (className != null) { translationTable.setTranslatorClass(className, toResource(node)); } ExtendedIterator it = this.graph.find(node, D2RQ.translation, Node.ANY); if (href == null && className == null && !it.hasNext()) { this.log.warn("TranslationTable " + node + " contains no translations"); } if (className != null && (href != null || it.hasNext())) { throw new D2RQException("Can't combine d2rq:javaClass with d2rq:translation or d2rq:href on " + node); } while (it.hasNext()) { Node translation = ((Triple) it.next()).getObject(); String dbValue = findOneLiteral(translation, D2RQ.databaseValue); String rdfValue = findOneLiteralOrURI(translation, D2RQ.rdfValue); translationTable.addTranslation(dbValue, rdfValue); } this.nodesToTranslationTables.put(node, translationTable); return translationTable; }
3809 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3809/8bbac3b6836f10d9057d996299f15ca66dc12723/MapParser.java/buggy/src/de/fuberlin/wiwiss/d2rq/parser/MapParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 17427, 1388, 23316, 1388, 12, 907, 756, 13, 288, 202, 202, 430, 261, 2211, 18, 4690, 774, 6717, 6905, 18, 12298, 653, 12, 2159, 3719, 288, 1082, 202, 2463, 261, 6717, 1388, 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, 17427, 1388, 23316, 1388, 12, 907, 756, 13, 288, 202, 202, 430, 261, 2211, 18, 4690, 774, 6717, 6905, 18, 12298, 653, 12, 2159, 3719, 288, 1082, 202, 2463, 261, 6717, 1388, 13...
isPalette = b;
isPalette = b; title.setVisible(!isPalette); iconButton.setVisible(!isPalette && frame.isIconifiable()); maxButton.setVisible(!isPalette && frame.isMaximizable()); if (isPalette) closeButton.setIcon(paletteCloseIcon); else closeButton.setIcon(closeIcon);
public void setPalette(boolean b) { isPalette = b; }
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/3826e72d9ebe31a854c4d01d6c8f1ec65a8d80fe/MetalInternalFrameTitlePane.java/buggy/core/src/classpath/javax/javax/swing/plaf/metal/MetalInternalFrameTitlePane.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 17004, 8786, 12, 6494, 324, 13, 225, 288, 565, 353, 25863, 273, 324, 31, 2077, 18, 542, 6207, 12, 5, 291, 25863, 1769, 4126, 3616, 18, 542, 6207, 12, 5, 291, 25863, 597, 26...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 17004, 8786, 12, 6494, 324, 13, 225, 288, 565, 353, 25863, 273, 324, 31, 2077, 18, 542, 6207, 12, 5, 291, 25863, 1769, 4126, 3616, 18, 542, 6207, 12, 5, 291, 25863, 597, 26...
if (element == null) return null; if (NamedEnum.class.isAssignableFrom(element.getClass())) { return ((NamedEnum) element).getValue(); } else { return element.name(); }
return element == null ? null : getShow(element.getClass()).fun(element);
public static <T extends Enum> String getEnumValueByElement(final T element) { if (element == null) return null; if (NamedEnum.class.isAssignableFrom(element.getClass())) { return ((NamedEnum) element).getValue(); } else { return element.name(); } }
56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/aa1a30b2adfbaf92a01cba834585780831ec9dbb/NamedEnumUtil.java/buggy/openapi/src/com/intellij/util/xml/NamedEnumUtil.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 760, 411, 56, 3231, 6057, 34, 514, 26813, 620, 858, 1046, 12, 6385, 399, 930, 13, 288, 565, 309, 261, 2956, 422, 446, 13, 327, 446, 31, 565, 309, 261, 7604, 3572, 18, 1106, 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, 760, 411, 56, 3231, 6057, 34, 514, 26813, 620, 858, 1046, 12, 6385, 399, 930, 13, 288, 565, 309, 261, 2956, 422, 446, 13, 327, 446, 31, 565, 309, 261, 7604, 3572, 18, 1106, 18, ...
try { return importUrl(new URL(url)); } catch (MalformedURLException e) { throw new WicketRuntimeException(e); }
return importRelativeUrl(url);
protected String importAsString() { // gets the model object: should provide us with either an absolute or a relative url String url = getModelObjectAsString(); if (isAbsolute(url)) { // this is an absolute url; just create an URL object with it try { return importUrl(new URL(url)); } catch (MalformedURLException e) { throw new WicketRuntimeException(e); } } return importRelative(url); }
46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/9e303dd10a4f5361b18f7c5f13620fe36778928f/Include.java/clean/wicket/src/java/wicket/markup/html/include/Include.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 514, 1930, 8092, 1435, 202, 95, 202, 202, 759, 5571, 326, 938, 733, 30, 1410, 5615, 584, 598, 3344, 392, 4967, 578, 279, 3632, 880, 202, 202, 780, 880, 273, 7454, 921, 8092, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 514, 1930, 8092, 1435, 202, 95, 202, 202, 759, 5571, 326, 938, 733, 30, 1410, 5615, 584, 598, 3344, 392, 4967, 578, 279, 3632, 880, 202, 202, 780, 880, 273, 7454, 921, 8092, ...
public CompilerProgressIndicator(Project project, boolean compileInBackground, String contentName) {
public CompilerProgressIndicator(@NotNull Project project, boolean compileInBackground, String contentName, @NotNull WolfTheProblemSolver.ProblemUpdateTransaction update) {
public CompilerProgressIndicator(Project project, boolean compileInBackground, String contentName) { myProject = project; myIsBackgroundMode = compileInBackground; myContentName = contentName; }
17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/4b74455a600a12c7e4f11cebe53c5b73c402a2d9/CompilerProgressIndicator.java/clean/compiler/impl/com/intellij/compiler/progress/CompilerProgressIndicator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 12972, 5491, 13140, 26964, 5962, 5420, 1984, 16, 1250, 4074, 382, 8199, 16, 514, 913, 461, 16, 632, 5962, 678, 355, 74, 1986, 13719, 27721, 18, 13719, 1891, 3342, 1089, 13, 288, 565...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 12972, 5491, 13140, 26964, 5962, 5420, 1984, 16, 1250, 4074, 382, 8199, 16, 514, 913, 461, 16, 632, 5962, 678, 355, 74, 1986, 13719, 27721, 18, 13719, 1891, 3342, 1089, 13, 288, 565...
break _loop2260;
break _loop2261;
public final void createtablestate(AST _t) throws RecognitionException { AST createtablestate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t2256 = _t; AST tmp484_AST_in = (AST)_t; match(_t,CREATE); _t = _t.getFirstChild(); AST tmp485_AST_in = (AST)_t; match(_t,TABLE); _t = _t.getNextSibling(); AST tmp486_AST_in = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); AST tmp487_AST_in = (AST)_t; match(_t,LEFTPAREN); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ID: { sql_col_def(_t); _t = _retTree; break; } case UNIQUE: { AST __t2258 = _t; AST tmp488_AST_in = (AST)_t; match(_t,UNIQUE); _t = _t.getFirstChild(); AST tmp489_AST_in = (AST)_t; match(_t,LEFTPAREN); _t = _t.getNextSibling(); AST tmp490_AST_in = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); { _loop2260: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==COMMA)) { AST tmp491_AST_in = (AST)_t; match(_t,COMMA); _t = _t.getNextSibling(); AST tmp492_AST_in = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); } else { break _loop2260; } } while (true); } AST tmp493_AST_in = (AST)_t; match(_t,RIGHTPAREN); _t = _t.getNextSibling(); _t = __t2258; _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } } { _loop2266: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==COMMA)) { AST tmp494_AST_in = (AST)_t; match(_t,COMMA); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ID: { sql_col_def(_t); _t = _retTree; break; } case UNIQUE: { AST __t2263 = _t; AST tmp495_AST_in = (AST)_t; match(_t,UNIQUE); _t = _t.getFirstChild(); AST tmp496_AST_in = (AST)_t; match(_t,LEFTPAREN); _t = _t.getNextSibling(); AST tmp497_AST_in = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); { _loop2265: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==COMMA)) { AST tmp498_AST_in = (AST)_t; match(_t,COMMA); _t = _t.getNextSibling(); AST tmp499_AST_in = (AST)_t; match(_t,ID); _t = _t.getNextSibling(); } else { break _loop2265; } } while (true); } AST tmp500_AST_in = (AST)_t; match(_t,RIGHTPAREN); _t = _t.getNextSibling(); _t = __t2263; _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } } } else { break _loop2266; } } while (true); } AST tmp501_AST_in = (AST)_t; match(_t,RIGHTPAREN); _t = _t.getNextSibling(); state_end(_t); _t = _retTree; _t = __t2256; _t = _t.getNextSibling(); _retTree = _t; }
13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/865876f0e6319c071fef156818ff116c276cfdff/JPTreeParser.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparserbase/JPTreeParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 1519, 270, 278, 9237, 395, 340, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 1519, 270, 278, 9237, 395, 340, 67, 9053, 67, 267, 273, 261, 67, 88, 422, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 918, 1519, 270, 278, 9237, 395, 340, 12, 9053, 389, 88, 13, 1216, 9539, 288, 9506, 202, 9053, 1519, 270, 278, 9237, 395, 340, 67, 9053, 67, 267, 273, 261, 67, 88, 422, ...
public org.quickfix.field.EncodedText getEncodedText() throws FieldNotFound { org.quickfix.field.EncodedText value = new org.quickfix.field.EncodedText();
public quickfix.field.EncodedText getEncodedText() throws FieldNotFound { quickfix.field.EncodedText value = new quickfix.field.EncodedText();
public org.quickfix.field.EncodedText getEncodedText() throws FieldNotFound { org.quickfix.field.EncodedText value = new org.quickfix.field.EncodedText(); getField(value); return value; }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/CollateralInquiryAck.java/buggy/src/java/src/quickfix/fix44/CollateralInquiryAck.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 1528, 28799, 1528, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 1528, 460, 273, 394, 2358, 18, 19525, 904,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 1528, 28799, 1528, 1435, 1216, 2286, 2768, 225, 288, 2358, 18, 19525, 904, 18, 1518, 18, 10397, 1528, 460, 273, 394, 2358, 18, 19525, 904,...
match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_lhs_not3075); if (failed) return d;
match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_lhs_not3057); if (failed) return d;
public NotDescr lhs_not() throws RecognitionException { NotDescr d = null; Token loc=null; BaseDescr column = null; d = null; try { // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1246:4: (loc= 'not' ( ( '(' lhs_column ')' )=> '(' column= lhs_column ')' | column= lhs_column ) ) // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1246:4: loc= 'not' ( ( '(' lhs_column ')' )=> '(' column= lhs_column ')' | column= lhs_column ) { loc=(Token)input.LT(1); match(input,71,FOLLOW_71_in_lhs_not3065); if (failed) return d; // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1246:14: ( ( '(' lhs_column ')' )=> '(' column= lhs_column ')' | column= lhs_column ) int alt47=2; int LA47_0 = input.LA(1); if ( (LA47_0==LEFT_PAREN) ) { alt47=1; } else if ( (LA47_0==ID) ) { alt47=2; } else { if (backtracking>0) {failed=true; return d;} NoViableAltException nvae = new NoViableAltException("1246:14: ( ( '(' lhs_column ')' )=> '(' column= lhs_column ')' | column= lhs_column )", 47, 0, input); throw nvae; } switch (alt47) { case 1 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1246:15: ( '(' lhs_column ')' )=> '(' column= lhs_column ')' { match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_lhs_not3068); if (failed) return d; pushFollow(FOLLOW_lhs_column_in_lhs_not3072); column=lhs_column(); _fsp--; if (failed) return d; match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_lhs_not3075); if (failed) return d; } break; case 2 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1246:44: column= lhs_column { pushFollow(FOLLOW_lhs_column_in_lhs_not3081); column=lhs_column(); _fsp--; if (failed) return d; } break; } if ( backtracking==0 ) { d = new NotDescr( (ColumnDescr) column ); d.setLocation( offset(loc.getLine()), loc.getCharPositionInLine() ); } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return d; }
5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/afea9f80e7c11e7b76df18f232d3b5ca5ad21e72/DRLParser.java/buggy/drools-compiler/src/main/java/org/drools/lang/DRLParser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2288, 16198, 8499, 67, 902, 1435, 1216, 9539, 288, 6647, 2288, 16198, 302, 273, 446, 31, 3639, 3155, 1515, 33, 2011, 31, 3639, 3360, 16198, 1057, 273, 446, 31, 1171, 202, 202, 72, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2288, 16198, 8499, 67, 902, 1435, 1216, 9539, 288, 6647, 2288, 16198, 302, 273, 446, 31, 3639, 3155, 1515, 33, 2011, 31, 3639, 3360, 16198, 1057, 273, 446, 31, 1171, 202, 202, 72, ...
Member member = executeAxis("[Time].[1997].[Q4].FirstChild");
Member member = executeSingletonAxis("[Time].[1997].[Q4].FirstChild");
public void testFirstChildFirstInLevel() { Member member = executeAxis("[Time].[1997].[Q4].FirstChild"); Assert.assertEquals("10", member.getName()); }
37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/bb703add381acf854e2d5aed1045911b7ab143b4/FunctionTest.java/buggy/testsrc/main/mondrian/olap/fun/FunctionTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 3759, 1763, 3759, 382, 2355, 1435, 288, 3639, 8596, 3140, 273, 1836, 19571, 6558, 2932, 63, 950, 8009, 63, 19818, 27, 8009, 63, 53, 24, 8009, 3759, 1763, 8863, 3639, 5452...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 3759, 1763, 3759, 382, 2355, 1435, 288, 3639, 8596, 3140, 273, 1836, 19571, 6558, 2932, 63, 950, 8009, 63, 19818, 27, 8009, 63, 53, 24, 8009, 3759, 1763, 8863, 3639, 5452...
public void testOASISXalanConformanceSuite() throws IOException, ParsingException, XSLException { Builder builder = new Builder(); File base = new File("data/oasis-xslt-testsuite/TESTS/Xalan_Conformance_Tests/"); File catalog = new File(base, "catalog.xml"); // The test suite need to be installed separately. If we can't // find the catalog, we just don't run these tests. if (catalog.exists()) { Document doc = builder.build(catalog); Element testsuite = doc.getRootElement(); Elements submitters = testsuite.getChildElements("test-catalog"); for (int i = 0; i < submitters.size(); i++) { Element submitter = submitters.get(i); Elements testcases = submitter.getChildElements("test-case"); for (int j = 0; j < testcases.size(); j++) { Element testcase = testcases.get(j); String id = testcase.getAttributeValue("id"); // System.out.println(id); if (id.startsWith("output_")) { // These test cases are mostly about producing // HTML and plain text output that isn't // relevant to XOM continue; } File root = new File(base, testcase.getFirstChildElement("file-path").getValue()); File input = null; File style = null; File output = null; Element scenario = testcase.getFirstChildElement("scenario"); Elements inputs = scenario.getChildElements("input-file"); for (int k = 0; k < inputs.size(); k++) { Element file = inputs.get(k); String role = file.getAttributeValue("role"); if ("principal-data".equals(role)) { input = new File(root, file.getValue()); } else if ("principal-stylesheet".equals(role)) { style = new File(root, file.getValue()); } } Elements outputs = scenario.getChildElements("output-file"); for (int k = 0; k < outputs.size(); k++) { Element file = outputs.get(k); String role = file.getAttributeValue("role"); if ("principal".equals(role)) { // Fix up OASIS catalog bugs File parent = new File(root.getParent()); parent = new File(parent, "REF_OUT"); parent = new File(parent, root.getName()); String outputFileName = file.getValue(); output = new File(parent, outputFileName); } } try { Document inputDoc = builder.build(input); Document styleDoc = builder.build(style); // XXX For the moment let's just skip all tests // that specify indent="yes" for the output; // we can fix this with special comparison later. if (indentYes(styleDoc)) continue; XSLTransform xform = new XSLTransform(styleDoc); Nodes result = xform.transform(inputDoc); if (output == null) { // transform should have failed fail("Transformed " + testcase.getAttributeValue("id")); } else { try { Document expectedResult = builder.build(output); Document actualResult = XSLTransform.toDocument(result); if (id.equals("attribset_attribset40")) { // This test does not necessarily // produce an identical infoset due // to necessary remapping of // namespace prefixes. continue; } else if (id.equals("copy_copy56") || id.equals("copy_copy58") || id.equals("copy_copy60") || id.equals("copy_copy59")) { // Xalan bug; // XXX diagnose and report } else if (id.equals("expression_expression02")) { // requires unparsed entities XOM doesn't support } else if (id.equals("idkey_idkey31") || id.equals("idkey_idkey59") || id.equals("idkey_idkey61") || id.equals("idkey_idkey62")) { // Xalan bug?; // XXX diagnose and report } else if (id.equals("impincl_impincl11")) { // Xalan bug?; // XXX diagnose and report } else if (id.equals("math_math110") || id.equals("math_math111")) { // Xalan or test suite bug?; // XXX diagnose and report } else if (id.equals("position_position104")) { // test suite bug; Xalan is right, // sample output is incorrect; report???? } else if (id.equals("position_position106")) { // test suite bug and xsltproc; Xalan is right, // sample output is incorrect; report for test suite???? // already reported for libxslt } else if (id.equals("whitespace_whitespace17") || id.equals("position_position107") || id.equals("position_position109")) { // tests indent="yes" which is not // not relevant within XOM } else { assertEquals("Problem with " + id, expectedResult, actualResult); } } catch (ParsingException ex) { // a few of the test cases generate // text or HTML output rather than // well-formed XML. For the moment, I // just skip these; but could I compare // the raw text to the value of the // document object instead???? continue; } catch (IllegalAddException ex) { // A few of the test cases generate // incomplete documents so we can't // compare output. Perhaps I could // wrap in an element,t hen get children // to build a Node object rather than a // Document???? i.e. a fragment parser? // Could use a SequenceInputStream to hack this } // XXX report issues in test suite with indent="yes" in stylesheets // where indenting is not specifically being tested } } catch (MalformedURIException ex) { // Some of the test cases contain relative // namespace URIs XOM does not support } catch (XSLException ex) { // If the output was null the transformation // was expected to fail if (output != null) { // a few of the test cases use relative namespace URIs // XOM doesn't support Throwable cause = ex.getCause(); if (cause instanceof MalformedURIException) { continue; } if ("axes_axes62".equals(id)) { // Bug 12690 // http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12690 continue; } else if ("impincl_impincl27".equals(id)) { // Test case uses file: URI XOM doesn't support continue; } else if ("select_select85".equals(id)) { // This has been fixed in Xalan 2.6.0. // However, it's a bug in earlier versions of Xalan // including the one bundled with the JDK 1.4.2_05 continue; } else if ("numberformat_numberformat45".equals(id) || "numberformat_numberformat46".equals(id)) { // Test case uses illegal number format pattern // Xalan catches this. Test case is in error. // report this???? continue; } System.err.println(id); System.err.println(ex.getMessage()); throw ex; } } } } } }
626 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/626/627001233580f0d13f1ba7ec0e7d617a2ba2af30/XSLTransformTest.java/clean/src/nu/xom/tests/XSLTransformTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 4202, 1071, 918, 1842, 28202, 15664, 60, 4316, 442, 687, 1359, 13587, 1435, 5411, 1216, 1860, 16, 19761, 503, 16, 17243, 503, 288, 13491, 5008, 2089, 273, 394, 5008, 5621, 5411, 1387, 1026, 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, 4202, 1071, 918, 1842, 28202, 15664, 60, 4316, 442, 687, 1359, 13587, 1435, 5411, 1216, 1860, 16, 19761, 503, 16, 17243, 503, 288, 13491, 5008, 2089, 273, 394, 5008, 5621, 5411, 1387, 1026, 273,...
assertTrue(ringSet.size() == 3);
assertEquals(3, ringSet.size());
public void testProblem1() { Molecule molecule = null; Ring ring = null; try { String filename = "data/mdl/figueras-test-sep3D.mol"; InputStream ins = this.getClass().getClassLoader().getResourceAsStream(filename); MDLReader reader = new MDLReader(new InputStreamReader(ins)); molecule = (Molecule) reader.read((ChemObject) new Molecule()); if (standAlone) System.out.println("Testing " + filename); SSSRFinder sssrf = new SSSRFinder(molecule); RingSet ringSet = sssrf.findSSSR(); if (standAlone) System.out.println("Found ring set of size: " + ringSet.size()); assertTrue(ringSet.size() == 3); for (int f = 0; f < ringSet.size(); f++) { ring = (Ring) ringSet.elementAt(f); if (standAlone) System.out.println("ring: " + ring.toString(molecule)); } } catch (Exception exc) { exc.printStackTrace(); fail(); } }
45167 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45167/f04e4953dbf91a77eeed2a674250bb80a598a22e/RingSearchTest.java/clean/src/org/openscience/cdk/test/ringsearch/RingSearchTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 13719, 21, 1435, 202, 95, 202, 202, 29669, 13661, 273, 446, 31, 202, 202, 10369, 9221, 273, 446, 31, 202, 202, 698, 202, 202, 95, 1082, 202, 780, 1544, 273, 315, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 13719, 21, 1435, 202, 95, 202, 202, 29669, 13661, 273, 446, 31, 202, 202, 10369, 9221, 273, 446, 31, 202, 202, 698, 202, 202, 95, 1082, 202, 780, 1544, 273, 315, ...
localSN++;
private void dumpPendingMessages() { boolean finnished = false; while( !finnished){ ListContainer msgContainer = getNextDeterministic(); if(log.isDebugEnabled()){ log.debug("Message in deterministic order with SN="+(localSN+1)+" -> "+msgContainer); } if(msgContainer != null){ log.debug("Resending message to Appl: "+msgContainer.event); delivery(msgContainer.event); getRemoveMessage(msgContainer.header,R); localSN++; } else finnished = true; } }
47988 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47988/8487fe7633984f9a7925c29b5f95027e9c43008c/SETOSession.java/clean/trunk/appia/src/org/continuent/appia/protocols/total/seto/SETOSession.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 4657, 8579, 5058, 1435, 288, 202, 202, 6494, 574, 82, 5992, 273, 629, 31, 202, 202, 17523, 12, 401, 926, 82, 5992, 15329, 1082, 202, 682, 2170, 1234, 2170, 273, 6927, 91...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4657, 8579, 5058, 1435, 288, 202, 202, 6494, 574, 82, 5992, 273, 629, 31, 202, 202, 17523, 12, 401, 926, 82, 5992, 15329, 1082, 202, 682, 2170, 1234, 2170, 273, 6927, 91...
public TA_RetCode CDLINNECK( int startIdx, int endIdx, double inOpen[], double inHigh[], double inLow[], double inClose[], MInteger outBegIdx, MInteger outNbElement, int outInteger[] ){ double EqualPeriodTotal, BodyLongPeriodTotal; int i, outIdx, EqualTrailingIdx, BodyLongTrailingIdx, lookbackTotal; if( startIdx < 0 ) return TA_RetCode. TA_OUT_OF_RANGE_START_INDEX; if( (endIdx < 0) || (endIdx < startIdx)) return TA_RetCode. TA_OUT_OF_RANGE_END_INDEX; lookbackTotal = CDLINNECK_Lookback (); if( startIdx < lookbackTotal ) startIdx = lookbackTotal; if( startIdx > endIdx ) { outBegIdx.value = 0 ; outNbElement.value = 0 ; return TA_RetCode. TA_SUCCESS; } EqualPeriodTotal = 0; EqualTrailingIdx = startIdx - (this.candleSettings[TA_CandleSettingType.TA_Equal.ordinal()].avgPeriod) ; BodyLongPeriodTotal = 0; BodyLongTrailingIdx = startIdx - (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].avgPeriod) ; i = EqualTrailingIdx; while( i < startIdx ) { EqualPeriodTotal += ( (this.candleSettings[TA_CandleSettingType.TA_Equal.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[i-1] - inOpen[i-1] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_Equal.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[i-1] - inLow[i-1] ) : ( (this.candleSettings[TA_CandleSettingType.TA_Equal.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[i-1] - ( inClose[i-1] >= inOpen[i-1] ? inClose[i-1] : inOpen[i-1] ) ) + ( ( inClose[i-1] >= inOpen[i-1] ? inOpen[i-1] : inClose[i-1] ) - inLow[i-1] ) : 0 ) ) ) ; i++; } i = BodyLongTrailingIdx; while( i < startIdx ) { BodyLongPeriodTotal += ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[i-1] - inOpen[i-1] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[i-1] - inLow[i-1] ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[i-1] - ( inClose[i-1] >= inOpen[i-1] ? inClose[i-1] : inOpen[i-1] ) ) + ( ( inClose[i-1] >= inOpen[i-1] ? inOpen[i-1] : inClose[i-1] ) - inLow[i-1] ) : 0 ) ) ) ; i++; } i = startIdx; outIdx = 0; do { if( ( inClose[i-1] >= inOpen[i-1] ? 1 : -1 ) == -1 && ( Math.abs ( inClose[i-1] - inOpen[i-1] ) ) > ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].factor) * ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].avgPeriod) != 0.0? BodyLongPeriodTotal / (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].avgPeriod) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[i-1] - inOpen[i-1] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[i-1] - inLow[i-1] ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[i-1] - ( inClose[i-1] >= inOpen[i-1] ? inClose[i-1] : inOpen[i-1] ) ) + ( ( inClose[i-1] >= inOpen[i-1] ? inOpen[i-1] : inClose[i-1] ) - inLow[i-1] ) : 0 ) ) ) ) / ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? 2.0 : 1.0 ) ) && ( inClose[i] >= inOpen[i] ? 1 : -1 ) == 1 && inOpen[i] < inLow[i-1] && inClose[i] <= inClose[i-1] + ( (this.candleSettings[TA_CandleSettingType.TA_Equal.ordinal()].factor) * ( (this.candleSettings[TA_CandleSettingType.TA_Equal.ordinal()].avgPeriod) != 0.0? EqualPeriodTotal / (this.candleSettings[TA_CandleSettingType.TA_Equal.ordinal()].avgPeriod) : ( (this.candleSettings[TA_CandleSettingType.TA_Equal.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[i-1] - inOpen[i-1] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_Equal.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[i-1] - inLow[i-1] ) : ( (this.candleSettings[TA_CandleSettingType.TA_Equal.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[i-1] - ( inClose[i-1] >= inOpen[i-1] ? inClose[i-1] : inOpen[i-1] ) ) + ( ( inClose[i-1] >= inOpen[i-1] ? inOpen[i-1] : inClose[i-1] ) - inLow[i-1] ) : 0 ) ) ) ) / ( (this.candleSettings[TA_CandleSettingType.TA_Equal.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? 2.0 : 1.0 ) ) && inClose[i] >= inClose[i-1] ) outInteger[outIdx++] = -100; else outInteger[outIdx++] = 0; EqualPeriodTotal += ( (this.candleSettings[TA_CandleSettingType.TA_Equal.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[i-1] - inOpen[i-1] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_Equal.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[i-1] - inLow[i-1] ) : ( (this.candleSettings[TA_CandleSettingType.TA_Equal.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[i-1] - ( inClose[i-1] >= inOpen[i-1] ? inClose[i-1] : inOpen[i-1] ) ) + ( ( inClose[i-1] >= inOpen[i-1] ? inOpen[i-1] : inClose[i-1] ) - inLow[i-1] ) : 0 ) ) ) - ( (this.candleSettings[TA_CandleSettingType.TA_Equal.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[EqualTrailingIdx-1] - inOpen[EqualTrailingIdx-1] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_Equal.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[EqualTrailingIdx-1] - inLow[EqualTrailingIdx-1] ) : ( (this.candleSettings[TA_CandleSettingType.TA_Equal.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[EqualTrailingIdx-1] - ( inClose[EqualTrailingIdx-1] >= inOpen[EqualTrailingIdx-1] ? inClose[EqualTrailingIdx-1] : inOpen[EqualTrailingIdx-1] ) ) + ( ( inClose[EqualTrailingIdx-1] >= inOpen[EqualTrailingIdx-1] ? inOpen[EqualTrailingIdx-1] : inClose[EqualTrailingIdx-1] ) - inLow[EqualTrailingIdx-1] ) : 0 ) ) ) ; BodyLongPeriodTotal += ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[i-1] - inOpen[i-1] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[i-1] - inLow[i-1] ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[i-1] - ( inClose[i-1] >= inOpen[i-1] ? inClose[i-1] : inOpen[i-1] ) ) + ( ( inClose[i-1] >= inOpen[i-1] ? inOpen[i-1] : inClose[i-1] ) - inLow[i-1] ) : 0 ) ) ) - ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_RealBody ? ( Math.abs ( inClose[BodyLongTrailingIdx-1] - inOpen[BodyLongTrailingIdx-1] ) ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_HighLow ? ( inHigh[BodyLongTrailingIdx-1] - inLow[BodyLongTrailingIdx-1] ) : ( (this.candleSettings[TA_CandleSettingType.TA_BodyLong.ordinal()].rangeType) == TA_RangeType. TA_RangeType_Shadows ? ( inHigh[BodyLongTrailingIdx-1] - ( inClose[BodyLongTrailingIdx-1] >= inOpen[BodyLongTrailingIdx-1] ? inClose[BodyLongTrailingIdx-1] : inOpen[BodyLongTrailingIdx-1] ) ) + ( ( inClose[BodyLongTrailingIdx-1] >= inOpen[BodyLongTrailingIdx-1] ? inOpen[BodyLongTrailingIdx-1] : inClose[BodyLongTrailingIdx-1] ) - inLow[BodyLongTrailingIdx-1] ) : 0 ) ) ) ; i++; EqualTrailingIdx++; BodyLongTrailingIdx++; } while( i <= endIdx ); outNbElement.value = outIdx; outBegIdx.value = startIdx; return TA_RetCode. TA_SUCCESS;}
2365 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2365/69e0567047ad75d101e30d35826ecbb51165ba43/Core.java/buggy/ta-lib/java/src/TA/Lib/Core.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 1071, 399, 37, 67, 7055, 1085, 385, 8914, 706, 5407, 3507, 12, 509, 27108, 16, 509, 679, 4223, 16, 1645, 316, 3678, 63, 6487, 1645, 316, 8573, 63, 6487, 1645, 316, 10520, 63, 6487, 1645...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 399, 37, 67, 7055, 1085, 385, 8914, 706, 5407, 3507, 12, 509, 27108, 16, 509, 679, 4223, 16, 1645, 316, 3678, 63, 6487, 1645, 316, 8573, 63, 6487, 1645, 316, 10520, 63, 6487, 1645...
Set resolved = result.getArtifacts();
Set resolved = result.getArtifacts();
private void ensurePluginContainerIsComplete( PluginDescriptor pluginDescriptor, PlexusContainer pluginContainer, MavenProject project, MavenSession session ) throws ArtifactNotFoundException, PluginManagerException, ArtifactResolutionException { // if the plugin's already been used once, don't re-do this step... // otherwise, we have to finish resolving the plugin's classpath and start the container. if ( pluginDescriptor.getArtifacts() != null && pluginDescriptor.getArtifacts().size() == 1 ) { Artifact pluginArtifact = (Artifact) pluginDescriptor.getArtifacts().get( 0 ); ArtifactRepository localRepository = session.getLocalRepository(); ResolutionGroup resolutionGroup; try { resolutionGroup = artifactMetadataSource.retrieve( pluginArtifact, localRepository, project.getPluginArtifactRepositories() ); } catch ( ArtifactMetadataRetrievalException e ) { throw new ArtifactResolutionException( "Unable to download metadata from repository for plugin '" + pluginArtifact.getId() + "': " + e.getMessage(), pluginArtifact, e ); } Set dependencies = new HashSet( resolutionGroup.getArtifacts() ); dependencies.addAll( pluginDescriptor.getIntroducedDependencyArtifacts() ); ArtifactResolutionResult result = artifactResolver.resolveTransitively( dependencies, pluginArtifact, localRepository, resolutionGroup.getResolutionRepositories(), artifactMetadataSource, artifactFilter ); Set resolved = result.getArtifacts(); for ( Iterator it = resolved.iterator(); it.hasNext(); ) { Artifact artifact = (Artifact) it.next(); if ( !artifact.equals( pluginArtifact ) ) { artifact = project.replaceWithActiveArtifact( artifact ); try { pluginContainer.addJarResource( artifact.getFile() ); } catch ( PlexusContainerException e ) { throw new PluginManagerException( "Error adding plugin dependency '" + artifact.getDependencyConflictId() + "' into plugin manager: " + e.getMessage(), e ); } } } pluginDescriptor.setClassRealm( pluginContainer.getContainerRealm() ); List unresolved = new ArrayList( dependencies ); unresolved.removeAll( resolved ); resolveCoreArtifacts( unresolved, localRepository, resolutionGroup.getResolutionRepositories() ); List allResolved = new ArrayList( resolved.size() + unresolved.size() ); allResolved.addAll( resolved ); allResolved.addAll( unresolved ); pluginDescriptor.setArtifacts( allResolved ); } }
50542 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50542/e983fddf633fcec9cf81ce4fb53561c9fcd0c7f7/DefaultPluginManager.java/buggy/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3387, 3773, 2170, 2520, 6322, 12, 6258, 3187, 1909, 3187, 16, 453, 4149, 407, 2170, 1909, 2170, 16, 4766, 5375, 17176, 4109, 1984, 16, 17176, 2157, 1339, 262, 3639, 1216, 14022, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3387, 3773, 2170, 2520, 6322, 12, 6258, 3187, 1909, 3187, 16, 453, 4149, 407, 2170, 1909, 2170, 16, 4766, 5375, 17176, 4109, 1984, 16, 17176, 2157, 1339, 262, 3639, 1216, 14022, ...
public void set(org.quickfix.field.PartyID value)
public void set(quickfix.field.PartyID value)
public void set(org.quickfix.field.PartyID value) { setField(value); }
5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/NewOrderCross.java/buggy/src/java/src/quickfix/fix43/NewOrderCross.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 444, 12, 19525, 904, 18, 1518, 18, 17619, 734, 460, 13, 225, 288, 16331, 12, 1132, 1769, 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, 12, 19525, 904, 18, 1518, 18, 17619, 734, 460, 13, 225, 288, 16331, 12, 1132, 1769, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
if (TransformerImpl.S_DEBUG)
if (transformer.getDebug())
public void execute(TransformerImpl transformer) throws TransformerException { if (TransformerImpl.S_DEBUG) transformer.getTraceManager().fireTraceEvent(this); try { transformer.getResultTreeHandler().flushPending(); ExtensionsTable etable = transformer.getExtensionsTable(); ExtensionHandler nsh = etable.get(m_extns); if (null == nsh) { if (hasFallbackChildren()) { executeFallbacks(transformer); } else { TransformerException te = new TransformerException(XSLMessages.createMessage( XSLTErrorResources.ER_CALL_TO_EXT_FAILED, new Object[]{getNodeName()})); transformer.getErrorListener().fatalError(te); } return; } try { nsh.processElement(this.getLocalName(), this, transformer, getStylesheet(), this); } catch (Exception e) { if (hasFallbackChildren()) executeFallbacks(transformer); else { if(e instanceof TransformerException) { TransformerException te = (TransformerException)e; if(null == te.getLocator()) te.setLocator(this); transformer.getErrorListener().fatalError(te); } else if (e instanceof RuntimeException) { transformer.getErrorListener().fatalError(new TransformerException(e)); } else { transformer.getErrorListener().warning(new TransformerException(e)); } } } } catch(TransformerException e) { transformer.getErrorListener().fatalError(e); } catch(SAXException se) { throw new TransformerException(se); } if (TransformerImpl.S_DEBUG) transformer.getTraceManager().fireTraceEndEvent(this); }
2723 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2723/2d07c253b814672a82d969836d58577bfa628b88/ElemExtensionCall.java/clean/src/org/apache/xalan/templates/ElemExtensionCall.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 918, 1836, 12, 8319, 2828, 8360, 13, 5411, 1216, 21684, 225, 288, 202, 430, 261, 8319, 2828, 18, 55, 67, 9394, 13, 202, 202, 21523, 18, 588, 3448, 1318, 7675, 12179, 3448, 1133, 1...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1836, 12, 8319, 2828, 8360, 13, 5411, 1216, 21684, 225, 288, 202, 430, 261, 8319, 2828, 18, 55, 67, 9394, 13, 202, 202, 21523, 18, 588, 3448, 1318, 7675, 12179, 3448, 1133, 1...
Row row = new Row(); row.set(DataSourceName.name, "Local Mondrian server"); row.set(DataSourceDescription.name, "Mondrian server on local machine"); row.set(URL.name, "http: row.set(DataSourceInfo.name, "Provider=Mondrian"); row.set(ProviderName.name, "Mondrian XML for Analysis"); row.set(ProviderType.name, new String[] {"MDP"}); row.set(AuthenticationMode.name, "Unauthenticated"); emit(row, saxHandler);
for (Iterator it = XmlaMediator.dataSourcesMap.values().iterator(); it.hasNext();) { DataSourcesConfig.DataSource ds = (DataSourcesConfig.DataSource)it.next(); Row row = new Row(); row.set(DataSourceName.name, ds.getDataSourceName()); row.set(DataSourceDescription.name, ds.getDataSourceDescription()); row.set(URL.name, ds.getURL()); row.set(DataSourceInfo.name, ds.getDataSourceName()); row.set(ProviderName.name, ds.getProviderName()); row.set(ProviderType.name, ds.getProviderType()); row.set(AuthenticationMode.name, ds.getAuthenticationMode()); emit(row, saxHandler); }
public void unparse(SAXHandler saxHandler) throws SAXException { Row row = new Row(); row.set(DataSourceName.name, "Local Mondrian server"); row.set(DataSourceDescription.name, "Mondrian server on local machine"); row.set(URL.name, "http://localhost/mondrian/xmla.jsp"); row.set(DataSourceInfo.name, "Provider=Mondrian"); row.set(ProviderName.name, "Mondrian XML for Analysis"); row.set(ProviderType.name, new String[] {"MDP"}); row.set(AuthenticationMode.name, "Unauthenticated"); emit(row, saxHandler); }
4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/6adb3050cdcc5d771cd8c710f660e18fde973a9a/RowsetDefinition.java/clean/src/main/mondrian/xmla/RowsetDefinition.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 640, 2670, 12, 55, 2501, 1503, 20319, 1503, 13, 1216, 14366, 288, 5411, 6556, 1027, 273, 394, 6556, 5621, 5411, 1027, 18, 542, 12, 8597, 461, 18, 529, 16, 315, 2042, 490, 143...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 640, 2670, 12, 55, 2501, 1503, 20319, 1503, 13, 1216, 14366, 288, 5411, 6556, 1027, 273, 394, 6556, 5621, 5411, 1027, 18, 542, 12, 8597, 461, 18, 529, 16, 315, 2042, 490, 143...
SimpleFieldSet fs;
public boolean readExtraPeerDataFile(File extraPeerDataFile, int fileNumber) { boolean gotError = false; if(!extraPeerDataFile.exists()) { return false; } Logger.normal(this, "extraPeerDataFile: "+extraPeerDataFile.getPath()); FileInputStream fis; try { fis = new FileInputStream(extraPeerDataFile); } catch (FileNotFoundException e1) { Logger.normal(this, "Extra peer data file not found: "+extraPeerDataFile.getPath()); return false; } InputStreamReader isr = new InputStreamReader(fis); BufferedReader br = new BufferedReader(isr); try { // Read in the single SimpleFieldSet SimpleFieldSet fs; fs = new SimpleFieldSet(br); boolean parseResult = false; try { parseResult = parseExtraPeerData(fs, extraPeerDataFile, fileNumber); if(!parseResult) { gotError = true; } } catch (FSParseException e2) { Logger.error(this, "Could not parse extra peer data: "+e2+ '\n' +fs.toString(),e2); gotError = true; } } catch (EOFException e3) { // End of file, fine } catch (IOException e4) { Logger.error(this, "Could not read extra peer data file: "+e4, e4); } finally { try { br.close(); } catch (IOException e5) { Logger.error(this, "Ignoring "+e5+" caught reading "+extraPeerDataFile.getPath(), e5); } } return !gotError; }
52909 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52909/7f3987764e6a5845963d83997d7090fa5a76270e/PeerNode.java/buggy/src/freenet/node/PeerNode.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 855, 7800, 6813, 751, 812, 12, 812, 2870, 6813, 751, 812, 16, 509, 585, 1854, 13, 288, 202, 202, 6494, 2363, 668, 273, 629, 31, 202, 225, 202, 430, 12, 5, 7763, 6813, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 855, 7800, 6813, 751, 812, 12, 812, 2870, 6813, 751, 812, 16, 509, 585, 1854, 13, 288, 202, 202, 6494, 2363, 668, 273, 629, 31, 202, 225, 202, 430, 12, 5, 7763, 6813, ...
else throw new DocumentClosedException(d,"Document in " + f + "closed unexpectedly");
public void documentNotFound(OpenDefinitionsDocument d, File f) { String text = "File " + f.getAbsolutePath() + "\ncould not be found on disk! It was probably moved\n" + "or deleted. Would you like to try to find it?"; int rc = JOptionPane.showConfirmDialog(MainFrame.this, text, "File Moved or Deleted", JOptionPane.YES_NO_OPTION); if (rc == JOptionPane.YES_OPTION) { try { File[] opened = _openSelector.getFiles(); d.setFile(opened[0]); } catch(OperationCanceledException oce) { //If canceled, prompt the user again documentNotFound(d,f); return; } }// else {// //Close the file that wasn't found// LinkedList<OpenDefinitionsDocument> l = new LinkedList<OpenDefinitionsDocument>();// l.add(d);// _model.closeFiles(l);// _model.closeFile(d);// d.setFile(null);// throw new DocumentClosedException(d,"Document in " + f + "closed unexpectedly");// } }
11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/010ae297b5b09284b0dfa287aa524a83e41fa50d/MainFrame.java/buggy/drjava/src/edu/rice/cs/drjava/ui/MainFrame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1668, 2768, 12, 3678, 7130, 2519, 302, 16, 1387, 284, 13, 288, 12107, 604, 394, 4319, 7395, 503, 12, 72, 10837, 2519, 316, 315, 397, 284, 397, 315, 12204, 9733, 715, 8863, 56...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1668, 2768, 12, 3678, 7130, 2519, 302, 16, 1387, 284, 13, 288, 12107, 604, 394, 4319, 7395, 503, 12, 72, 10837, 2519, 316, 315, 397, 284, 397, 315, 12204, 9733, 715, 8863, 56...
Var inlinedvar = (Var) renaming.get(setupvar.getName());
Var inlinedvar = (Var) renaming.get(setupvar);
public Residue matchesAt (WeavingEnv env,SootClass cls, SootMethod method,ShadowMatch sm) { List/*<Var>*/ actuals=setupAdvice.getActuals(); // List of actuals for the Cflow setup advice // These are NOT necessarily the same as the actuals for // this (inlined) pointcut, but we have the renaming List/*<WeavingVar>*/ weavingActuals=new LinkedList(); Iterator it=actuals.iterator(); while(it.hasNext()) { Var setupvar = (Var) it.next(); Var inlinedvar = (Var) renaming.get(setupvar.getName()); if (inlinedvar == null) { throw new RuntimeException("Internal error: Could not find variable "+ setupvar.getName() + " in cflow renaming"); } weavingActuals.add(env.getWeavingVar(inlinedvar)); } return new CflowResidue(setupAdvice,weavingActuals); }
236 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/236/e3d58a8578d87dd60248f5857e3ea13c91c5bba2/Cflow.java/clean/aop/abc/src/abc/weaving/aspectinfo/Cflow.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1124, 23965, 1885, 861, 202, 12, 3218, 5339, 3491, 1550, 16, 55, 1632, 797, 2028, 16, 202, 348, 1632, 1305, 707, 16, 12957, 2060, 3029, 13, 288, 202, 682, 20308, 32, 1537, 34, 554...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1124, 23965, 1885, 861, 202, 12, 3218, 5339, 3491, 1550, 16, 55, 1632, 797, 2028, 16, 202, 348, 1632, 1305, 707, 16, 12957, 2060, 3029, 13, 288, 202, 682, 20308, 32, 1537, 34, 554...
Node x = m_min;
FibonacciHeapNode<T> x = m_min;
protected void consolidate() { int arraySize = m_n + 1; List<Node> array = new ArrayList<Node>(arraySize); // Initialize degree array for (int i=0; i<arraySize; i++) array.add(null); // Find the number of root nodes. int numRoots = 0; Node x = m_min; if (x != null) { numRoots++; x = x.m_right; while (x != m_min) { numRoots++; x = x.m_right; } } // For each node in root list do... while (numRoots > 0) { // Access this node's degree.. int d = x.m_degree; Node next = x.m_right; // ..and see if there's another of the same degree. while (array.get(d) != null) { // There is, make one of the nodes a child of the other. Node y = array.get(d); // Do this based on the key value. if (x.m_key > y.m_key) { Node temp = y; y = x; x = temp; } // Node y disappears from root list. link(y, x); // We've handled this degree, go to next one. array.set(d,null); d++; } // Save this node for later when we might encounter another // of the same degree. array.set(d,x); // Move forward through list. x = next; numRoots--; } // Set min to null (effectively losing the root list) and // reconstruct the root list from the array entries in array[]. m_min = null; for (int i = 0; i < arraySize; i++) { if (array.get(i) != null) { // We've got a live one, add it to root list. if (m_min != null) { // First remove node from root list. array.get(i).m_left.m_right = array.get(i).m_right; array.get(i).m_right.m_left = array.get(i).m_left; // Now add to root list, again. array.get(i).m_left = m_min; array.get(i).m_right = m_min.m_right; m_min.m_right = array.get(i); array.get(i).m_right.m_left = array.get(i); // Check if this is a new min. if (array.get(i).m_key < m_min.m_key) { m_min = array.get(i); } } else { m_min = array.get(i); } } } }
4188 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4188/3358959abc414f2281c71486c6c1a90935b1e909/FibonacciHeap.java/buggy/src/org/jgrapht/util/FibonacciHeap.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 21785, 340, 1435, 565, 288, 3639, 509, 526, 1225, 273, 312, 67, 82, 397, 404, 31, 3639, 987, 32, 907, 34, 526, 273, 394, 2407, 32, 907, 34, 12, 1126, 1225, 1769, 3639, 368,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 21785, 340, 1435, 565, 288, 3639, 509, 526, 1225, 273, 312, 67, 82, 397, 404, 31, 3639, 987, 32, 907, 34, 526, 273, 394, 2407, 32, 907, 34, 12, 1126, 1225, 1769, 3639, 368,...
label.setText( Messages.getString( "FormatNumberPreferencePage.exampleFormats.label2" ) );
label.setText( LABEL_CUSTOM_SETTINGS_LABEL );
private Composite getCustomPage( Composite parent ) { if ( customPage == null ) { customPage = new Composite( parent, SWT.NULL ); customPage.setLayout( new GridLayout( 1, false ) ); Group group = new Group( customPage, SWT.NONE ); group.setText( Messages.getString( "FormatNumberPreferencePage.customSettings.groupLabel" ) ); //$NON-NLS-1$ GridData data = new GridData( GridData.FILL_HORIZONTAL ); group.setLayoutData( data ); group.setLayout( new GridLayout( 2, false ) ); Label label = new Label( group, SWT.NONE ); label.setText( Messages.getString( "FormatNumberPreferencePage.exampleFormats.label" ) ); //$NON-NLS-1$ data = new GridData( ); data.horizontalSpan = 2; label.setLayoutData( data ); label = new Label( group, SWT.NONE ); label.setText( Messages.getString( "FormatNumberPreferencePage.exampleFormats.label2" ) ); //$NON-NLS-1$ data = new GridData( ); data.horizontalSpan = 2; label.setLayoutData( data ); createTable( group ); Composite container = new Composite( customPage, SWT.NONE ); data = new GridData( GridData.FILL_HORIZONTAL ); container.setLayoutData( data ); container.setLayout( new GridLayout( 2, false ) ); new Label( container, SWT.NULL ).setText( Messages.getString( "FormatNumberPreferencePage.formatCode.label" ) ); //$NON-NLS-1$ formatCode = new Text( container, SWT.SINGLE | SWT.BORDER ); formatCode.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); formatCode.addModifyListener( myModifyListener ); group = new Group( customPage, SWT.NONE ); group.setText( Messages.getString( "FormatNumberPreferencePage.customPreviewGroup.label" ) ); //$NON-NLS-1$ data = new GridData( GridData.FILL_HORIZONTAL ); group.setLayoutData( data ); group.setLayout( new GridLayout( 2, false ) ); new Label( group, SWT.NONE ).setText( Messages.getString( "FormatNumberPreferencePage.numberToPreview.label" ) ); //$NON-NLS-1$ previewTextBox = new Text( group, SWT.SINGLE | SWT.BORDER ); previewTextBox.setText( DEFAULT_PREVIEW_TEXT ); //$NON-NLS-1$ previewTextBox.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); previewTextBox.addModifyListener( new ModifyListener( ) { public void modifyText( ModifyEvent e ) { if ( hasLoaded ) { setPreviewText( previewTextBox.getText( ) ); } } } ); new Label( group, SWT.NONE ).setText( Messages.getString( "FormatNumberPreferencePage.previewLabel.lable" ) ); //$NON-NLS-1$ cusPreviewLabel = new Label( group, SWT.NONE ); cusPreviewLabel.setText( "" ); //$NON-NLS-1$ cusPreviewLabel.setLayoutData( new GridData( GridData.FILL_HORIZONTAL ) ); Composite helpBar = new Composite( customPage, SWT.NONE ); data = new GridData( GridData.FILL_HORIZONTAL ); helpBar.setLayoutData( data ); helpBar.setLayout( new GridLayout( 2, false ) ); new Label( helpBar, SWT.NONE ).setText( Messages.getString( "FormatNumberPreferencePage.helpLabel.label" ) ); //$NON-NLS-1$ Button help = new Button( helpBar, SWT.PUSH ); help.setText( Messages.getString( "FormatNumberPreferencePage.helpButton.label" ) ); //$NON-NLS-1$ help.setLayoutData( new GridData( GridData.HORIZONTAL_ALIGN_END | GridData.GRAB_HORIZONTAL ) ); } return customPage; }
46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/ed52f1732ec1c1eef0fd79e44d2e45f78973153a/FormatNumberPage.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/dialogs/FormatNumberPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 14728, 12736, 1964, 12, 14728, 982, 262, 202, 95, 202, 202, 430, 261, 1679, 1964, 422, 446, 262, 202, 202, 95, 1082, 202, 3662, 1964, 273, 394, 14728, 12, 982, 16, 348, 8588,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 14728, 12736, 1964, 12, 14728, 982, 262, 202, 95, 202, 202, 430, 261, 1679, 1964, 422, 446, 262, 202, 202, 95, 1082, 202, 3662, 1964, 273, 394, 14728, 12, 982, 16, 348, 8588,...
simpleConfigurator.setContext(fruitContext);
simpleConfigurator.setContext(fruitContext);
public List<FruitShell> doFirstPart(String filename) throws Exception { HashMap<Pattern, Action> rulesMap = new HashMap<Pattern, Action>(); rulesMap.put(new Pattern("group/fruitShell"), new FruitShellAction()); rulesMap.put(new Pattern("group/fruitShell/fruit"), new FruitFactoryAction()); rulesMap.put(new Pattern("group/fruitShell/fruit/*"), new NOPAction()); SimpleConfigurator simpleConfigurator = new SimpleConfigurator(rulesMap); simpleConfigurator.setContext(fruitContext); simpleConfigurator.doConfigure(Constants.TEST_DIR_PREFIX + "input/joran/" + filename); StatusPrinter.print(fruitContext); return fruitContext.getFruitShellList(); }
50877 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50877/b17afdd922fb715ce4d262907d6b474541e9bd32/FruitConfigurationTest.java/clean/logback-core/src/test/java/ch/qos/logback/core/joran/replay/FruitConfigurationTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 987, 32, 7167, 14945, 13220, 34, 741, 3759, 1988, 12, 780, 1544, 13, 1216, 1185, 288, 565, 4317, 32, 3234, 16, 4382, 34, 2931, 863, 273, 394, 4317, 32, 3234, 16, 4382, 34, 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, 1071, 987, 32, 7167, 14945, 13220, 34, 741, 3759, 1988, 12, 780, 1544, 13, 1216, 1185, 288, 565, 4317, 32, 3234, 16, 4382, 34, 2931, 863, 273, 394, 4317, 32, 3234, 16, 4382, 34, 5621, ...
if (rhs == DBL_MRK) {
if (rhs == UniqueTag.DOUBLE_MARK) {
private static void do_sheq(CallFrame frame, int i, int op) { Object rhs = frame.stack[i + 1]; Object lhs = frame.stack[i]; boolean result; double_compare: { double rdbl, ldbl; if (rhs == DBL_MRK) { rdbl = frame.sDbl[i + 1]; if (lhs == DBL_MRK) { ldbl = frame.sDbl[i]; } else if (lhs instanceof Number) { ldbl = ((Number)lhs).doubleValue(); } else { result = false; break double_compare; } } else if (lhs == DBL_MRK) { ldbl = frame.sDbl[i]; if (rhs == DBL_MRK) { rdbl = frame.sDbl[i + 1]; } else if (rhs instanceof Number) { rdbl = ((Number)rhs).doubleValue(); } else { result = false; break double_compare; } } else { result = ScriptRuntime.shallowEq(lhs, rhs); break double_compare; } result = ldbl == rdbl; } result ^= (op == Token.SHNE); frame.stack[i] = ScriptRuntime.wrapBoolean(result); }
11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/bef182034b96d54a2938fe141217e83b8644cf25/Interpreter.java/clean/js/rhino/src/org/mozilla/javascript/Interpreter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 741, 67, 87, 580, 85, 12, 1477, 3219, 2623, 16, 509, 277, 16, 509, 1061, 13, 565, 288, 3639, 1033, 7711, 273, 2623, 18, 3772, 63, 77, 397, 404, 15533, 3639, 1033, 8499...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 918, 741, 67, 87, 580, 85, 12, 1477, 3219, 2623, 16, 509, 277, 16, 509, 1061, 13, 565, 288, 3639, 1033, 7711, 273, 2623, 18, 3772, 63, 77, 397, 404, 15533, 3639, 1033, 8499...
Color bkg) throws IOException {
Color bkg) throws IOException {
protected void writeImage(RenderedImage image, AffineTransform xform, Color bkg) throws IOException { // define image int imageID = id.getInt(); os.writeTag(getImageTag(imageID, image, bkg)); id.set(id.getInt() + 1); // define shape for image Shape shape = xform.createTransformedShape(new Rectangle(0, 0, image .getWidth(), image.getHeight())); AffineTransform imageTransform = new AffineTransform(TWIPS, 0, 0, TWIPS, 0, 0); xform.concatenate(imageTransform); // create fill from shape SWFShape imageShape = createShape(shape, 0, 0, 1); FillStyleArray imageFill = new FillStyleArray(); imageFill.add(new FillStyle(imageID, false, xform)); LineStyleArray imageLine = new LineStyleArray(); Rectangle bounds = shape.getBounds(); os.writeTag(new DefineShape3(id.getInt(), bounds, imageFill, imageLine, imageShape)); // place image os.writeTag(new PlaceObject2(id.getInt(), depth.getInt(), getTransform())); id.set(id.getInt() + 1); depth.set(depth.getInt() + 1); if (showBounds) { SWFShape swfBounds = createShape(bounds, 2, 0, -1); os.writeTag(new DefineShape3(id.getInt(), bounds, fillStyles, lineStyles, swfBounds)); os.writeTag(new PlaceObject(id.getInt(), depth.getInt(), getTransform())); id.set(id.getInt() + 1); depth.set(depth.getInt() + 1); } }
57341 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57341/9919aea9885767bc773c7541d613abc669070587/SWFGraphics2D.java/buggy/freehep-graphicsio-swf/src/main/java/org/freehep/graphicsio/swf/SWFGraphics2D.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 918, 1045, 2040, 12, 19222, 2040, 1316, 16, 23906, 558, 4059, 619, 687, 16, 5411, 5563, 324, 14931, 13, 1216, 1860, 288, 3639, 368, 4426, 1316, 3639, 509, 1316, 734, 273, 612, 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, 377, 4750, 918, 1045, 2040, 12, 19222, 2040, 1316, 16, 23906, 558, 4059, 619, 687, 16, 5411, 5563, 324, 14931, 13, 1216, 1860, 288, 3639, 368, 4426, 1316, 3639, 509, 1316, 734, 273, 612, 18, ...
newDir = new File (pl.getLocalPath().toOSString()/*+ File.separatorChar + getName() */+ File.separatorChar + "PL"); if (newDir.mkdir()==true) System.out.println("Project-PL Directory was created"); else System.out.println("Project-PL Directory already existed"); newDir = new File (pl.getLocalPath().toOSString()/*+ File.separatorChar +getName() */+ File.separator + "PRODUCTS"); if (newDir.mkdir()==true) System.out.println("Project-PL-Product Directory was created"); else System.out.println("Project-PL-Product Directory already existed");
private void createPlDirectory (Productline pl) { //create directory for the PL String name = pl.getLocalPath().toOSString() /*+ File.separatorChar + getName()*/; File newDir = new File (name); if (newDir.mkdir()==true) System.out.println("Project Directory was created"); else System.out.println("Project Directory already existed"); newDir = new File (pl.getLocalPath().toOSString()/*+ File.separatorChar + getName() */+ File.separatorChar + "PL"); if (newDir.mkdir()==true) System.out.println("Project-PL Directory was created"); else System.out.println("Project-PL Directory already existed"); newDir = new File (pl.getLocalPath().toOSString()/*+ File.separatorChar +getName() */+ File.separator + "PRODUCTS"); if (newDir.mkdir()==true) System.out.println("Project-PL-Product Directory was created"); else System.out.println("Project-PL-Product Directory already existed"); newDir = new File (pl.getLocalPath().toOSString()/*+ File.separatorChar +getName() */+ File.separator + "CAS"); if (newDir.mkdir()==true) System.out.println("Project-PL-CAS Directory was created"); else System.out.println("Project-PL-CAS Directory already existed"); }
9773 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9773/d1791136923a0aa3e48cac94e38633421a11e514/ModelStorage.java/buggy/kobold/src/kobold.client.plam/src/kobold/client/plam/model/ModelStorage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 752, 1749, 2853, 261, 4133, 1369, 886, 13, 288, 202, 202, 759, 2640, 1867, 364, 326, 22443, 202, 202, 780, 508, 273, 886, 18, 588, 2042, 743, 7675, 869, 4618, 780, 1435,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 752, 1749, 2853, 261, 4133, 1369, 886, 13, 288, 202, 202, 759, 2640, 1867, 364, 326, 22443, 202, 202, 780, 508, 273, 886, 18, 588, 2042, 743, 7675, 869, 4618, 780, 1435,...
if (method.isConstructor()) {
if(method.isConstructor()){
private boolean isMethodStaticallyAccessible(PsiMethod method) { if (method.hasModifierProperty(PsiModifier.STATIC)) { return true; } if (method.isConstructor()) { return true; } final PsiClass referenceContainingClass = m_method.getContainingClass(); final PsiClass methodContainingClass = method.getContainingClass(); return !InheritanceUtil.isInheritorOrSelf(referenceContainingClass, methodContainingClass, true); }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/dba8b183fc1b08e7ad664812bfc0c64d1e4abd3c/MethodReferenceVisitor.java/buggy/plugins/InspectionGadgets/src/com/siyeh/ig/performance/MethodReferenceVisitor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 27969, 5788, 1230, 10451, 12, 52, 7722, 1305, 707, 13, 288, 3639, 309, 261, 2039, 18, 5332, 9829, 1396, 12, 52, 7722, 9829, 18, 22741, 3719, 288, 5411, 327, 638, 31, 3639, 2...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 1250, 27969, 5788, 1230, 10451, 12, 52, 7722, 1305, 707, 13, 288, 3639, 309, 261, 2039, 18, 5332, 9829, 1396, 12, 52, 7722, 9829, 18, 22741, 3719, 288, 5411, 327, 638, 31, 3639, 2...
if(build) methods.put(new Long (hash), meths[i]);
if (build) methods.put(new Long(hash), meths[i]);
private void buildMethodHash(Class cls, boolean build) { Method[] meths = cls.getMethods(); for (int i = 0; i < meths.length; i++) { /* Don't need to include any java.xxx related stuff */ if (meths[i].getDeclaringClass().getName().startsWith("java.")) { continue; } long hash = RMIHashes.getMethodHash(meths[i]); if(build) methods.put(new Long (hash), meths[i]); else methods.remove(new Long (hash));//System.out.println("meth = " + meths[i] + ", hash = " + hash); }}
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/b9aa2b76c5fb6ec27c94f7eecf71cb3bc137fe2f/UnicastServerRef.java/clean/core/src/classpath/gnu/gnu/java/rmi/server/UnicastServerRef.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 918, 1361, 1305, 2310, 12, 797, 2028, 16, 1250, 1361, 13, 288, 202, 1305, 8526, 7917, 87, 273, 2028, 18, 588, 4712, 5621, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 7917, 87, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 3238, 918, 1361, 1305, 2310, 12, 797, 2028, 16, 1250, 1361, 13, 288, 202, 1305, 8526, 7917, 87, 273, 2028, 18, 588, 4712, 5621, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 7917, 87, ...
public void setDatabaseName(String newDatabaseName) {
public void setDatabaseName(String newDatabaseName) {
public void setDatabaseName(String newDatabaseName) { databaseName = newDatabaseName; }
2029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2029/9921cb7f613721ce78a3a5d66757e5abb6a6438a/TdsDataSource.java/clean/src/main/net/sourceforge/jtds/jdbcx/TdsDataSource.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 4254, 461, 12, 780, 394, 4254, 461, 13, 565, 288, 3639, 15165, 273, 394, 4254, 461, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 444, 4254, 461, 12, 780, 394, 4254, 461, 13, 565, 288, 3639, 15165, 273, 394, 4254, 461, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -1...
throw new ArgumentError(runtime, "can't dump anonymous class");
throw getRuntime().newArgumentError("can't dump anonymous class");
public void marshalTo(MarshalStream output) throws java.io.IOException { output.write('S'); String className = getMetaClass().getName(); if (className == null) { throw new ArgumentError(runtime, "can't dump anonymous class"); } output.dumpObject(RubySymbol.newSymbol(runtime, className)); List members = ((RubyArray) getInstanceVariable(classOf(), "__member__")).getList(); output.dumpInt(members.size()); for (int i = 0; i < members.size(); i++) { RubySymbol name = (RubySymbol) members.get(i); output.dumpObject(name); output.dumpObject(values[i]); } }
45827 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45827/870e1da9b41bfdbae259e1fc5f18fc8b76686998/RubyStruct.java/clean/src/org/jruby/RubyStruct.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 10893, 774, 12, 8105, 1228, 876, 13, 1216, 2252, 18, 1594, 18, 14106, 288, 3639, 876, 18, 2626, 2668, 55, 8284, 3639, 514, 2658, 273, 11312, 797, 7675, 17994, 5621, 3639, 309, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10893, 774, 12, 8105, 1228, 876, 13, 1216, 2252, 18, 1594, 18, 14106, 288, 3639, 876, 18, 2626, 2668, 55, 8284, 3639, 514, 2658, 273, 11312, 797, 7675, 17994, 5621, 3639, 309, ...
assertEquals( "A large string of text. Foo bar. Foo bar. Foo bar. Foo bar. " + "Foo bar. Foo bar. Foo bar. Foo bar. Foo bar. Foo bar. Foo bar. " + "Foo bar. Foo bar. Foo bar. Foo bar. Foo bar. <a href=\"http: linked);
assertEquals("A large string of text. Foo bar. Foo bar. Foo bar. Foo bar. " + "Foo bar. Foo bar. Foo bar. Foo bar. Foo bar. Foo bar. Foo bar. " + "Foo bar. Foo bar. Foo bar. Foo bar. Foo bar. <a href=\"http:
public void testLongTextWithLink() { String linked = LinkUtil.autoLink( "A large string of text. Foo bar. Foo bar. Foo bar. Foo bar. " + "Foo bar. Foo bar. Foo bar. Foo bar. Foo bar. Foo bar. Foo bar. " + "Foo bar. Foo bar. Foo bar. Foo bar. Foo bar. http://foo.bar."); assertEquals( "A large string of text. Foo bar. Foo bar. Foo bar. Foo bar. " + "Foo bar. Foo bar. Foo bar. Foo bar. Foo bar. Foo bar. Foo bar. " + "Foo bar. Foo bar. Foo bar. Foo bar. Foo bar. <a href=\"http://foo.bar.\">http://foo.bar.</a>", linked); }
7284 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7284/58645f73a82606001fecc6c9410e1c2775ea1984/LinkUtilTest.java/buggy/displaytag/src/test/java/org/displaytag/util/LinkUtilTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 3708, 1528, 1190, 2098, 1435, 565, 288, 3639, 514, 8459, 273, 5411, 4048, 1304, 18, 6079, 2098, 12, 7734, 315, 37, 7876, 533, 434, 977, 18, 23077, 4653, 18, 23077, 4653, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 3708, 1528, 1190, 2098, 1435, 565, 288, 3639, 514, 8459, 273, 5411, 4048, 1304, 18, 6079, 2098, 12, 7734, 315, 37, 7876, 533, 434, 977, 18, 23077, 4653, 18, 23077, 4653, ...
Map alreadyFoundAddrHeader = new HashMap(7);
ArrayList checkedHeaderNames = new ArrayList(7); ArrayList duplicateHeaderNames = new ArrayList(1); boolean ignoreTo = false, ignoreFrom = false, ignoreReplyTo = false, ignoreFaultTo = false, ignoreMessageID = false, ignoreAction = false, ignoreRelatesTo = false;
protected Options extractAddressingInformation(SOAPHeader header, MessageContext messageContext, ArrayList addressingHeaders, String addressingNamespace) throws AxisFault { Options messageContextOptions = messageContext.getOptions(); Map alreadyFoundAddrHeader = new HashMap(7); // there are seven frequently used WS-A headers // First pass just check for duplicates Iterator addressingHeadersIt = addressingHeaders.iterator(); while (addressingHeadersIt.hasNext()) { SOAPHeaderBlock soapHeaderBlock = (SOAPHeaderBlock) addressingHeadersIt.next(); if (SOAP12Constants.SOAP_ROLE_NONE.equals(soapHeaderBlock.getRole())) continue; if (WSA_TO.equals(soapHeaderBlock.getLocalName())) { checkDuplicateHeaders(WSA_TO, messageContext, alreadyFoundAddrHeader); } else if (WSA_FROM.equals(soapHeaderBlock.getLocalName())) { checkDuplicateHeaders(WSA_FROM, messageContext, alreadyFoundAddrHeader); } else if (WSA_REPLY_TO.equals(soapHeaderBlock.getLocalName())) { checkDuplicateHeaders(WSA_REPLY_TO, messageContext, alreadyFoundAddrHeader); } else if (WSA_FAULT_TO.equals(soapHeaderBlock.getLocalName())) { checkDuplicateHeaders(WSA_FAULT_TO, messageContext, alreadyFoundAddrHeader); } else if (WSA_MESSAGE_ID.equals(soapHeaderBlock.getLocalName())) { checkDuplicateHeaders(WSA_MESSAGE_ID, messageContext, alreadyFoundAddrHeader); } else if (WSA_ACTION.equals(soapHeaderBlock.getLocalName())) { checkDuplicateHeaders(WSA_ACTION, messageContext, alreadyFoundAddrHeader); } else if (WSA_RELATES_TO.equals(soapHeaderBlock.getLocalName())) { checkDuplicateHeaders(WSA_RELATES_TO, messageContext, alreadyFoundAddrHeader); } } // Now extract information Iterator addressingHeadersIt2 = addressingHeaders.iterator(); while (addressingHeadersIt2.hasNext()) { SOAPHeaderBlock soapHeaderBlock = (SOAPHeaderBlock) addressingHeadersIt2.next(); if (SOAP12Constants.SOAP_ROLE_NONE.equals(soapHeaderBlock.getRole())) continue; if (WSA_TO.equals(soapHeaderBlock.getLocalName())) { extractToEPRInformation(soapHeaderBlock, messageContextOptions, header); } else if (WSA_FROM.equals(soapHeaderBlock.getLocalName())) { extractFromEPRInformation(messageContextOptions, soapHeaderBlock, addressingNamespace); } else if (WSA_REPLY_TO.equals(soapHeaderBlock.getLocalName())) { extractReplyToEPRInformation(messageContextOptions, soapHeaderBlock, addressingNamespace); } else if (WSA_FAULT_TO.equals(soapHeaderBlock.getLocalName())) { extractFaultToEPRInformation(messageContextOptions, soapHeaderBlock, addressingNamespace); } else if (WSA_MESSAGE_ID.equals(soapHeaderBlock.getLocalName())) { messageContextOptions.setMessageId(soapHeaderBlock.getText()); soapHeaderBlock.setProcessed(); } else if (WSA_ACTION.equals(soapHeaderBlock.getLocalName())) { messageContextOptions.setAction(soapHeaderBlock.getText()); soapHeaderBlock.setProcessed(); } else if (WSA_RELATES_TO.equals(soapHeaderBlock.getLocalName())) { extractRelatesToInformation(soapHeaderBlock, addressingNamespace, messageContextOptions); } } // check for the presense of madatory addressing headers checkForMandatoryHeaders(alreadyFoundAddrHeader, messageContext); return messageContextOptions; }
49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/be66d3ac529a62a353f9f39f13525ffbfd3f3aea/AddressingInHandler.java/buggy/modules/addressing/src/org/apache/axis2/handlers/addressing/AddressingInHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 5087, 2608, 1887, 310, 5369, 12, 27952, 1864, 1446, 16, 2350, 1042, 883, 1042, 16, 4766, 10402, 2407, 1758, 310, 3121, 16, 514, 1758, 310, 3402, 13, 1216, 15509, 7083, 288, 3639, 50...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 5087, 2608, 1887, 310, 5369, 12, 27952, 1864, 1446, 16, 2350, 1042, 883, 1042, 16, 4766, 10402, 2407, 1758, 310, 3121, 16, 514, 1758, 310, 3402, 13, 1216, 15509, 7083, 288, 3639, 50...
else return new AndPointcut(pc1,pc2,getPosition());
else return construct(pc1,pc2,getPosition());
protected Pointcut inline(Hashtable renameEnv,Hashtable typeEnv, Aspect context) { Pointcut pc1=this.pc1.inline(renameEnv,typeEnv,context); Pointcut pc2=this.pc2.inline(renameEnv,typeEnv,context); if(pc1==this.pc1 && pc2==this.pc2) return this; else return new AndPointcut(pc1,pc2,getPosition()); }
236 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/236/e8225c932b1e9012555057b8eefe1b1e560c7a59/AndPointcut.java/clean/aop/abc/src/abc/weaving/aspectinfo/AndPointcut.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 4686, 5150, 6370, 12, 5582, 14544, 6472, 3491, 16, 5582, 14544, 618, 3491, 16, 2970, 1181, 819, 13, 288, 202, 2148, 5150, 6125, 21, 33, 2211, 18, 2436, 21, 18, 10047, 12, 18539, 3...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 4750, 4686, 5150, 6370, 12, 5582, 14544, 6472, 3491, 16, 5582, 14544, 618, 3491, 16, 2970, 1181, 819, 13, 288, 202, 2148, 5150, 6125, 21, 33, 2211, 18, 2436, 21, 18, 10047, 12, 18539, 3...
case 13:
case 13: /* reduce AAentrybraceentry2Entry */
public Start parse() throws ParserException, LexerException, IOException { push(0, null); List ign = null; while(true) { while(index(lexer.peek()) == -1) { if(ign == null) { ign = new TypedLinkedList(NodeCast.instance); } ign.add(lexer.next()); } if(ign != null) { ignoredTokens.setIn(lexer.peek(), ign); ign = null; } last_pos = lexer.peek().getPos(); last_line = lexer.peek().getLine(); last_token = lexer.peek(); int index = index(lexer.peek()); action[0] = actionTable[state()][0][1]; action[1] = actionTable[state()][0][2]; int low = 1; int high = actionTable[state()].length - 1; while(low <= high) { int middle = (low + high) / 2; if(index < actionTable[state()][middle][0]) { high = middle - 1; } else if(index > actionTable[state()][middle][0]) { low = middle + 1; } else { action[0] = actionTable[state()][middle][1]; action[1] = actionTable[state()][middle][2]; break; } } switch(action[0]) { case SHIFT: { ArrayList list = new ArrayList(); list.add(lexer.next()); push(action[1], list); last_shift = action[1]; } break; case REDUCE: switch(action[1]) { case 0: { ArrayList list = new0(); push(goTo(0), list); } break; case 1: { ArrayList list = new1(); push(goTo(0), list); } break; case 2: { ArrayList list = new2(); push(goTo(0), list); } break; case 3: { ArrayList list = new3(); push(goTo(0), list); } break; case 4: { ArrayList list = new4(); push(goTo(1), list); } break; case 5: { ArrayList list = new5(); push(goTo(1), list); } break; case 6: { ArrayList list = new6(); push(goTo(1), list); } break; case 7: { ArrayList list = new7(); push(goTo(1), list); } break; case 8: { ArrayList list = new8(); push(goTo(1), list); } break; case 9: { ArrayList list = new9(); push(goTo(1), list); } break; case 10: { ArrayList list = new10(); push(goTo(1), list); } break; case 11: { ArrayList list = new11(); push(goTo(1), list); } break; case 12: { ArrayList list = new12(); push(goTo(2), list); } break; case 13: { ArrayList list = new13(); push(goTo(2), list); } break; case 14: { ArrayList list = new14(); push(goTo(2), list); } break; case 15: { ArrayList list = new15(); push(goTo(2), list); } break; case 16: { ArrayList list = new16(); push(goTo(3), list); } break; case 17: { ArrayList list = new17(); push(goTo(4), list); } break; case 18: { ArrayList list = new18(); push(goTo(4), list); } break; case 19: { ArrayList list = new19(); push(goTo(5), list); } break; case 20: { ArrayList list = new20(); push(goTo(5), list); } break; case 21: { ArrayList list = new21(); push(goTo(5), list); } break; case 22: { ArrayList list = new22(); push(goTo(5), list); } break; case 23: { ArrayList list = new23(); push(goTo(5), list); } break; case 24: { ArrayList list = new24(); push(goTo(5), list); } break; case 25: { ArrayList list = new25(); push(goTo(6), list); } break; case 26: { ArrayList list = new26(); push(goTo(7), list); } break; case 27: { ArrayList list = new27(); push(goTo(7), list); } break; case 28: { ArrayList list = new28(); push(goTo(8), list); } break; case 29: { ArrayList list = new29(); push(goTo(8), list); } break; case 30: { ArrayList list = new30(); push(goTo(9), list); } break; case 31: { ArrayList list = new31(); push(goTo(9), list); } break; case 32: { ArrayList list = new32(); push(goTo(10), list); } break; case 33: { ArrayList list = new33(); push(goTo(10), list); } break; } break; case ACCEPT: { EOF node2 = (EOF) lexer.next(); PBibtex node1 = (PBibtex) ((ArrayList)pop()).get(0); Start node = new Start(node1, node2); return node; } case ERROR: throw new ParserException(last_token, "[" + last_line + "," + last_pos + "] " + errorMessages[errors[action[1]]]); } } }
9028 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9028/9ba080b0c901d335db2cb543a5bc7d76ff474439/Parser.java/buggy/source/net/sourceforge/texlipse/bibparser/parser/Parser.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 3603, 1109, 1435, 1216, 27990, 16, 14234, 503, 16, 1860, 565, 288, 3639, 1817, 12, 20, 16, 446, 1769, 3639, 987, 9750, 273, 446, 31, 3639, 1323, 12, 3767, 13, 3639, 288, 5411, 132...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3603, 1109, 1435, 1216, 27990, 16, 14234, 503, 16, 1860, 565, 288, 3639, 1817, 12, 20, 16, 446, 1769, 3639, 987, 9750, 273, 446, 31, 3639, 1323, 12, 3767, 13, 3639, 288, 5411, 132...
public CachedUrl makeCachedUrl(CachedUrlSet owner, String url) { return new BaseCachedUrl(owner, url);
public CachedUrl makeCachedUrl(String url) { return new BaseCachedUrl(this, url);
public CachedUrl makeCachedUrl(CachedUrlSet owner, String url) { return new BaseCachedUrl(owner, url); }
8150 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8150/1daae17bba467f29e3575dfd082f58a6511a6679/TestBaseCachedUrl.java/buggy/test/src/org/lockss/plugin/base/TestBaseCachedUrl.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1377, 1071, 15771, 1489, 1221, 9839, 1489, 12, 9839, 1489, 694, 3410, 16, 514, 880, 13, 288, 4202, 327, 394, 3360, 9839, 1489, 12, 8443, 16, 880, 1769, 377, 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, 1377, 1071, 15771, 1489, 1221, 9839, 1489, 12, 9839, 1489, 694, 3410, 16, 514, 880, 13, 288, 4202, 327, 394, 3360, 9839, 1489, 12, 8443, 16, 880, 1769, 377, 289, 2, -100, -100, -100, -100, -...
System.out.println("Klasse wurde nicht gefunden");
LOGGER.log(Level.SEVERE, "Klasse wurde nicht gefunden");
public static void main(String[] args) throws NotBoundException, IOException, RemoteException, ClassNotFoundException, InstantiationException, IllegalAccessException, ProblemComputeException { ParameterParser parser = new ParameterParser(); Option urlOption = new Option("u"); urlOption.setName("webserver"); urlOption.setOptional(false); parser.addOption(urlOption); Option remoteComputeOption = new Option("r"); remoteComputeOption.setName("adressCompSys"); remoteComputeOption.setOptional(false); parser.addOption(remoteComputeOption); Option problemNameOption = new Option("c"); problemNameOption.setName("problemName"); problemNameOption.setOptional(false); parser.addOption(problemNameOption); Option fileNameOption = new Option("f"); fileNameOption.setName("filename"); fileNameOption.setOptional(true); parser.addOption(fileNameOption); Option debugSwitch = new Option("d"); parser.addOption(debugSwitch); Exception exception = null; Serializable solutionLocal = null; Serializable solutionRemote = null; String filename = null; String filenameLocal = null; String filenameRemote = null; double timeLocal; double timeRemote; try { parser.parseAll(args); // Falls der Benutzer keinen eigenen SecurityManager verwendet, muss // einer gesetzt werden, da die zu bertragenden Objekte mittels eines // RMIClassLoader geladen werden. if (System.getSecurityManager() == null) { System.setSecurityManager(new RMISecurityManager()); } try { url = new URL(parser.getParameter(urlOption)); } catch (MalformedURLException e) { System.out.println("\n\nWebserver-Adresse fehlerhaft!\n\n"); usage(); } adressCompSys = parser.getParameter(remoteComputeOption); // Wenn beim ProblemManager kein Port angegeben ist, den // Standard-Port verwenden if (adressCompSys.indexOf(":") == -1) { adressCompSys += ":" + ProblemManager.PORT_NO; } problemName = parser.getParameter(problemNameOption); // optionaler Parameter if (parser.isEnabled(fileNameOption)) { filename = parser.getParameter(fileNameOption); filenameLocal = filename + LOCAL_SUPPLEMENT; filenameRemote = filename + REMOTE_SUPPLEMENT; } debugMode = parser.isEnabled(debugSwitch); System.out.println("Berechnung lokal:"); timeLocal = System.currentTimeMillis(); try { solutionLocal = computeLocal(); timeLocal = System.currentTimeMillis() - timeLocal; System.out.println("\nErgebnis:"); if (filenameLocal == null) { System.out.println(solutionLocal.toString()); } else { Miscellaneous.writeSerializableToFile(solutionLocal, filenameLocal); System.out.println("Geschrieben in Datei " + filenameLocal); } System.out.println("Bentigte Zeit: " + (timeLocal / CHANGE_MILLISEC_TO_SEC) + " Sekunden"); System.out.println("\nStatistik:\n" + finalProblemStat); } catch (ClassNotFoundException e) { System.out.println("Klasse wurde nicht gefunden"); exception = e; } catch (InstantiationException e) { System.out.println("Objekt kann nicht instanziert werden"); exception = e; } catch (IllegalAccessException e) { System.out.println("Kein Zugriff auf computelocal erlaubt"); exception = e; } catch (ProblemComputeException e) { System.out.println( "Fehler bei der Berechnung / unerlaubte Rechnung"); exception = e; } if (exception == null) { System.out.println("\nBerechnung remote:"); timeRemote = System.currentTimeMillis(); try { solutionRemote = computeRemote(); timeRemote = System.currentTimeMillis() - timeRemote; System.out.println("\nErgebnis:"); if (filenameRemote == null) { System.out.println(solutionRemote.toString()); } else { Miscellaneous.writeSerializableToFile(solutionRemote, filenameRemote); System.out.println("Geschrieben in Datei " + filenameRemote); } System.out.println("Bentigte Zeit: " + (timeRemote / CHANGE_MILLISEC_TO_SEC) + " Sekunden"); System.out.println("\nStatistik:\n" + finalProblemStat); } catch (ClassNotFoundException e) { System.out.println("Klasse wurde nicht gefunden"); exception = e; } catch (InstantiationException e) { System.out.println("Objekt kann nicht instanziert werden"); exception = e; } catch (IllegalAccessException e) { System.out.println("Kein Zugriff auf computelocal erlaubt"); exception = e; } catch (MalformedURLException e) { System.out.println("URL-Addresse fehlerhaft"); exception = e; } catch (RemoteException e) { System.out.println("Fehler beim Verbindungsaufbau mit RMI"); exception = e; } catch (NotBoundException e) { System.out.println("Fehler beim lookup in der Registry (RMI)"); exception = e; } catch (ProblemComputeException e) { System.out.println( "Fehler bei der Berechnung / unerlaubte Rechnung"); exception = e; } } if (exception != null) { if (debugMode) { exception.printStackTrace(); } } } catch (ParameterParserException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } }
14082 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14082/25cb0afef539c962e9be47d2134fb97b47afadcf/RuntimeComparison.java/clean/branches/logging/source/de/unistuttgart/architeuthis/user/RuntimeComparison.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 918, 2774, 12, 780, 8526, 833, 13, 3639, 1216, 2288, 3499, 503, 16, 9079, 1860, 16, 9079, 18361, 16, 9079, 10403, 16, 9079, 19248, 16, 9079, 11900, 16, 9079, 21685, 7018, 503, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3639, 1216, 2288, 3499, 503, 16, 9079, 1860, 16, 9079, 18361, 16, 9079, 10403, 16, 9079, 19248, 16, 9079, 11900, 16, 9079, 21685, 7018, 503, ...
ICssWriter writeValue(String string);
ICssWriter writeValue(char character);
ICssWriter writeValue(String string);
6232 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6232/1f1850be471d4b8bfd2f3c50aa61bc39bf91259a/ICssWriter.java/buggy/org.rcfaces.renderkit.html/src/org/rcfaces/renderkit/html/internal/ICssWriter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 467, 7359, 2289, 26727, 12, 780, 533, 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, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 467, 7359, 2289, 26727, 12, 780, 533, 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, -100...
Collection societysearchresult=communityService.searchByRole(comm,destrole);
societysearchresult=communityService.searchByRole(comm,destrole);
public MessageAddress getDestinationAddress(String role) { if(communityService==null) { loggingService.error(" Community Service is null" +myAddress.toString()); } String destrole=null; if(role.equalsIgnoreCase("member")) { destrole="SecurityMnRManager-Enclave"; } else if(role.equalsIgnoreCase("SecurityMnRManager-Enclave")) { destrole="SecurityMnRManager-Society"; } String filter="(CommunityType=Security)"; Collection securitycol=communityService.search(filter); Iterator itersecurity=securitycol.iterator(); MessageAddress dest=null; while(itersecurity.hasNext()) { comm=(String)itersecurity.next(); Collection societysearchresult=communityService.searchByRole(comm,destrole); if(societysearchresult.isEmpty()) { continue; } else { if(societysearchresult.size()>1) { loggingService.error(" Too many Society Manager " +myAddress.toString()); return null; } break; } } dest=(MessageAddress)societysearchresult.iterator().next(); return dest; }
12869 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12869/46e3215cc16c7fbece1ee1987af1e84e18caf9f3/CapabilitiesConsolidationPlugin.java/buggy/securityservices/src/org/cougaar/core/security/monitoring/plugin/CapabilitiesConsolidationPlugin.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 2350, 1887, 225, 17611, 1887, 12, 780, 2478, 13, 288, 1377, 309, 12, 20859, 1179, 631, 2011, 13, 288, 202, 11167, 1179, 18, 1636, 2932, 16854, 13352, 1956, 353, 446, 6, 397, 4811, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2350, 1887, 225, 17611, 1887, 12, 780, 2478, 13, 288, 1377, 309, 12, 20859, 1179, 631, 2011, 13, 288, 202, 11167, 1179, 18, 1636, 2932, 16854, 13352, 1956, 353, 446, 6, 397, 4811, ...
removeBundle();
getBundle(); assertNotNull(reg.findPerspectiveWithId(PERSPECTIVE_ID));
public void testFindPerspectiveInRegistry() { getBundle(); //ensure the bundle is loaded IPerspectiveRegistry reg = PlatformUI.getWorkbench() .getPerspectiveRegistry(); assertNotNull(reg .findPerspectiveWithId("org.eclipse.newPerspective1.newPerspective1")); removeBundle(); //unload the bundle assertNull(reg .findPerspectiveWithId("org.eclipse.newPerspective1.newPerspective1")); }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/2643ca655274ae30e4ba0c9a52f2b6c959f1f3e8/PerspectiveTests.java/clean/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/dynamicplugins/PerspectiveTests.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 3125, 14781, 16772, 382, 4243, 1435, 288, 202, 202, 588, 3405, 5621, 368, 15735, 326, 3440, 353, 4203, 202, 202, 2579, 414, 16772, 4243, 960, 273, 11810, 5370, 18, 58...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 1842, 3125, 14781, 16772, 382, 4243, 1435, 288, 202, 202, 588, 3405, 5621, 368, 15735, 326, 3440, 353, 4203, 202, 202, 2579, 414, 16772, 4243, 960, 273, 11810, 5370, 18, 58...
String separator = sepVal.isNil() ? null : ((RubyString) sepVal).getValue();
String separator = sepVal.isNil() ? null : ((RubyString) sepVal).toString();
public IRubyObject internalGets(IRubyObject[] args) { checkReadable(); IRubyObject sepVal = getRuntime().getGlobalVariables().get("$/"); if (args.length > 0) { sepVal = args[0]; } String separator = sepVal.isNil() ? null : ((RubyString) sepVal).getValue(); if (separator != null && separator.length() == 0) { separator = IOHandler.PARAGRAPH_DELIMETER; } try { String newLine = handler.gets(separator); if (newLine != null) { lineNumber++; getRuntime().getGlobalVariables().set("$.", getRuntime().newFixnum(lineNumber)); RubyString result = getRuntime().newString(newLine); result.taint(); return result; } return getRuntime().getNil(); } catch (IOHandler.BadDescriptorException e) { throw getRuntime().newErrnoEBADFError(); } catch (IOException e) { throw getRuntime().newIOError(e.getMessage()); } }
45753 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45753/9f2efc63a858fa0507245b207025eab027840a04/RubyIO.java/buggy/src/org/jruby/RubyIO.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15908, 10340, 921, 2713, 3002, 12, 7937, 10340, 921, 8526, 833, 13, 288, 3639, 866, 14151, 5621, 3639, 15908, 10340, 921, 5478, 3053, 273, 18814, 7675, 588, 5160, 6158, 7675, 588, 293...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15908, 10340, 921, 2713, 3002, 12, 7937, 10340, 921, 8526, 833, 13, 288, 3639, 866, 14151, 5621, 3639, 15908, 10340, 921, 5478, 3053, 273, 18814, 7675, 588, 5160, 6158, 7675, 588, 293...
pattern = LogManager.getLogManager().getProperty( "java.util.logging.FileHandler.pattern");
pattern = LogManager.getLogManager().getProperty(PATTERN_KEY);
private OutputStream createFileStream(String pattern, int limit, int count, boolean append, int generation) { String path; int unique = 0; /* Throws a SecurityException if the caller does not have * LoggingPermission("control"). */ LogManager.getLogManager().checkAccess(); /* Default value from the java.util.logging.FileHandler.pattern * LogManager configuration property. */ if (pattern == null) pattern = LogManager.getLogManager().getProperty( "java.util.logging.FileHandler.pattern"); if (pattern == null) pattern = "%h/java%u.log"; if (count > 1 && !has (pattern, 'g')) pattern = pattern + ".%g"; do { path = replaceFileNameEscapes(pattern, generation, unique, count); try { File file = new File(path); if (!file.exists () || append) { FileOutputStream fout = new FileOutputStream (file, append); // FIXME we need file locks for this to work properly, but they // are not implemented yet in Classpath! Madness!// FileChannel channel = fout.getChannel ();// FileLock lock = channel.tryLock ();// if (lock != null) // We've locked the file.// { if (logFiles.isEmpty ()) logFiles.addFirst (path); return new ostr (fout);// } } } catch (Exception ex) { reportError (null, ex, ErrorManager.OPEN_FAILURE); } unique = unique + 1; if (!has (pattern, 'u')) pattern = pattern + ".%u"; } while (true); }
1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/d9914069235ddf6c317ef746cdfbc929cbef6265/FileHandler.java/clean/core/src/classpath/java/java/util/logging/FileHandler.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 8962, 21266, 1228, 12, 780, 1936, 16, 6862, 1082, 4202, 509, 1800, 16, 6862, 1082, 4202, 509, 1056, 16, 6862, 1082, 4202, 1250, 714, 16, 6862, 1082, 4202, 509, 9377, 13, 225, 288, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 8962, 21266, 1228, 12, 780, 1936, 16, 6862, 1082, 4202, 509, 1800, 16, 6862, 1082, 4202, 509, 1056, 16, 6862, 1082, 4202, 1250, 714, 16, 6862, 1082, 4202, 509, 9377, 13, 225, 288, ...
public void mSTRING() throws RecognitionException { int STRING_StartIndex = input.index(); try { int type = STRING; int start = getCharIndex(); int line = getLine(); int charPosition = getCharPositionInLine(); int channel = Token.DEFAULT_CHANNEL; if ( backtracking>0 && alreadyParsedRule(input, 49) ) { return ; } // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:948:17: ( ( '"' ( options {greedy=false; } : . )* '"' ) | ( '\'' ( options {greedy=false; } : . )* '\'' ) ) int alt10=2; int LA10_0 = input.LA(1); if ( LA10_0=='"' ) { alt10=1; } else if ( LA10_0=='\'' ) { alt10=2; } else { if (backtracking>0) {failed=true; return ;} NoViableAltException nvae = new NoViableAltException("947:1: STRING : ( ( \'\"\' ( options {greedy=false; } : . )* \'\"\' ) | ( \'\\\'\' ( options {greedy=false; } : . )* \'\\\'\' ) );", 10, 0, input); throw nvae; } switch (alt10) { case 1 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:948:17: ( '"' ( options {greedy=false; } : . )* '"' ) { // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:948:17: ( '"' ( options {greedy=false; } : . )* '"' ) // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:948:18: '"' ( options {greedy=false; } : . )* '"' { match('"'); if (failed) return ; // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:948:22: ( options {greedy=false; } : . )* loop8: do { int alt8=2; int LA8_0 = input.LA(1); if ( LA8_0=='"' ) { alt8=2; } else if ( (LA8_0>='\u0000' && LA8_0<='!')||(LA8_0>='#' && LA8_0<='\uFFFE') ) { alt8=1; } switch (alt8) { case 1 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:948:49: . { matchAny(); if (failed) return ; } break; default : break loop8; } } while (true); match('"'); if (failed) return ; } } break; case 2 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:948:61: ( '\'' ( options {greedy=false; } : . )* '\'' ) { // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:948:61: ( '\'' ( options {greedy=false; } : . )* '\'' ) // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:948:62: '\'' ( options {greedy=false; } : . )* '\'' { match('\''); if (failed) return ; // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:948:67: ( options {greedy=false; } : . )* loop9: do { int alt9=2; int LA9_0 = input.LA(1); if ( LA9_0=='\'' ) { alt9=2; } else if ( (LA9_0>='\u0000' && LA9_0<='&')||(LA9_0>='(' && LA9_0<='\uFFFE') ) { alt9=1; } switch (alt9) { case 1 : // /Users/bob/checkouts/jbossrules/drools-compiler/src/main/resources/org/drools/lang/drl.g:948:94: . { matchAny(); if (failed) return ; } break; default : break loop9; } } while (true); match('\''); if (failed) return ; } } break; } if ( token==null ) {emit(type,line,charPosition,channel,start,getCharIndex()-1);} } finally { if ( backtracking>0 ) { memoize(input, 49, STRING_StartIndex); } } }
5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/35c3932466a0269c296ae52afa8a1f8048a309d2/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, 5804, 1435, 1216, 9539, 288, 3639, 509, 9469, 67, 16792, 273, 810, 18, 1615, 5621, 3639, 775, 288, 5411, 509, 618, 273, 9469, 31, 5411, 509, 787, 273, 23577, 1016, 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, 918, 312, 5804, 1435, 1216, 9539, 288, 3639, 509, 9469, 67, 16792, 273, 810, 18, 1615, 5621, 3639, 775, 288, 5411, 509, 618, 273, 9469, 31, 5411, 509, 787, 273, 23577, 1016, 5621, ...
boolean inUpperBound = false; boolean inLowerBound = false;
private void boundsCheck(double d) throws InvalidDatatypeValueException { boolean inUpperBound = false; boolean inLowerBound = false; if ( isMaxInclusiveDefined ) { inUpperBound = ( d <= fMaxInclusive ); } else if ( isMaxExclusiveDefined ) { inUpperBound = ( d < fMaxExclusive ); } if ( isMinInclusiveDefined ) { inLowerBound = ( d >= fMinInclusive ); } else if ( isMinExclusiveDefined ) { inLowerBound = ( d > fMinExclusive ); } if ( inUpperBound == false || inLowerBound == false ) { // within bounds ? getErrorString(DatatypeMessageProvider.OutOfBounds, DatatypeMessageProvider.MSG_NONE, new Object [] { new Double(d), "","","","" }); //REVISIT } }
6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/5da40f80715c5631452b14ddaf1b4d363e1dcf27/DoubleDatatypeValidator.java/buggy/src/org/apache/xerces/validators/datatype/DoubleDatatypeValidator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 4972, 1564, 12, 9056, 302, 13, 1216, 1962, 20228, 9738, 288, 3639, 1250, 316, 21328, 273, 629, 31, 3639, 1250, 316, 24094, 273, 629, 31, 3639, 309, 261, 353, 2747, 19146, 8116,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4972, 1564, 12, 9056, 302, 13, 1216, 1962, 20228, 9738, 288, 3639, 1250, 316, 21328, 273, 629, 31, 3639, 1250, 316, 24094, 273, 629, 31, 3639, 309, 261, 353, 2747, 19146, 8116,...
if (Util.equals(activeEditorId, variable)) {
if (equals(activeEditorId, variable)) {
public final EvaluationResult evaluate(final IEvaluationContext context) throws CoreException { final EvaluationResult result = super.evaluate(context); if (result == EvaluationResult.FALSE) { return result; } final Object variable = context .getVariable(ISources.ACTIVE_EDITOR_ID_NAME); if (Util.equals(activeEditorId, variable)) { return EvaluationResult.TRUE; } return EvaluationResult.FALSE; }
55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/ba8772da3d063410cc9112f7f53da28a447f2704/LegacyEditorContributionExpression.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/expressions/LegacyEditorContributionExpression.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 727, 17340, 1253, 5956, 12, 6385, 467, 13468, 1042, 819, 13, 1082, 202, 15069, 30015, 288, 202, 202, 6385, 17340, 1253, 563, 273, 2240, 18, 21024, 12, 2472, 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, 482, 727, 17340, 1253, 5956, 12, 6385, 467, 13468, 1042, 819, 13, 1082, 202, 15069, 30015, 288, 202, 202, 6385, 17340, 1253, 563, 273, 2240, 18, 21024, 12, 2472, 1769, 202, 202, 430,...
public AmpScaleMapper(int totalPixels, int hintPixels){
public AmpScaleMapper(int totalPixels, int hintPixels) {
public AmpScaleMapper(int totalPixels, int hintPixels){ this(totalPixels, hintPixels, null); }
52623 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52623/7423c9a7f36a9ad04bb752ac58623c800fab2e5d/AmpScaleMapper.java/clean/src/edu/sc/seis/fissuresUtil/display/AmpScaleMapper.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 432, 1291, 5587, 4597, 12, 474, 2078, 18079, 16, 509, 7380, 18079, 13, 288, 3639, 333, 12, 4963, 18079, 16, 7380, 18079, 16, 446, 1769, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 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, 432, 1291, 5587, 4597, 12, 474, 2078, 18079, 16, 509, 7380, 18079, 13, 288, 3639, 333, 12, 4963, 18079, 16, 7380, 18079, 16, 446, 1769, 565, 289, 2, -100, -100, -100, -100, -100, ...
aProcess = Runtime.getRuntime().exec(command);
return 0;
private static int runInShell(IRuby runtime, String command, StringBuffer output) { try { String shell = System.getProperty("jruby.shell"); Process aProcess; String shellSwitch = "-c"; command = repairDirSeps(command); if (shell != null) { if (!shell.endsWith("sh")) { shellSwitch = "/c"; } aProcess = Runtime.getRuntime().exec(new String[] { shell, shellSwitch, command }); } else { aProcess = Runtime.getRuntime().exec(command); } final BufferedReader reader = new BufferedReader(new InputStreamReader(aProcess.getInputStream())); // Fairly innefficient impl, but readLine is unable to tell // whether the last line in a process ended with a newline or not. int c; boolean crSeen = false; while ((c = reader.read()) != -1) { if (c == '\r') { crSeen = true; } else { if (crSeen) { if (c != '\n') { output.append('\r'); } crSeen = false; } output.append((char)c); } } if (crSeen) { output.append('\r'); } aProcess.getErrorStream().close(); aProcess.getOutputStream().close(); reader.close(); return aProcess.waitFor(); } catch (IOException e) { throw runtime.newIOErrorFromException(e); } catch (InterruptedException e) { throw runtime.newThreadError("unexpected interrupt"); } }
45827 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45827/b4a189a27604d62c317938f16a124fb9dab1e94a/RubyKernel.java/clean/src/org/jruby/RubyKernel.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 509, 1086, 382, 13220, 12, 7937, 10340, 3099, 16, 514, 1296, 16, 6674, 876, 13, 288, 3639, 775, 288, 5411, 514, 5972, 273, 2332, 18, 588, 1396, 2932, 78, 27768, 18, 10304, 88...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 760, 509, 1086, 382, 13220, 12, 7937, 10340, 3099, 16, 514, 1296, 16, 6674, 876, 13, 288, 3639, 775, 288, 5411, 514, 5972, 273, 2332, 18, 588, 1396, 2932, 78, 27768, 18, 10304, 88...
public static IRubyObject s_kill(ThreadClass rubyThread) {
public static IRubyObject s_kill(IRubyObject receiver, ThreadClass rubyThread) {
public static IRubyObject s_kill(ThreadClass rubyThread) { return rubyThread.kill(); }
45221 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45221/21ee4566272339487c6a2a51963250c4edafd9d8/ThreadClass.java/clean/src/org/jruby/ThreadClass.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 15908, 10340, 921, 272, 67, 16418, 12, 7937, 10340, 921, 5971, 16, 4884, 797, 22155, 3830, 13, 288, 377, 202, 2463, 22155, 3830, 18, 16418, 5621, 565, 289, 2, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 15908, 10340, 921, 272, 67, 16418, 12, 7937, 10340, 921, 5971, 16, 4884, 797, 22155, 3830, 13, 288, 377, 202, 2463, 22155, 3830, 18, 16418, 5621, 565, 289, 2, -100, -100, -100,...
return input.readChar();
return input.readUnsignedByte();
public int read() throws IOException { return input.readChar(); }
1060 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1060/e5bbece4f7bb6e057b0dbd1399cf47c6a0f44d4d/DataInputBridgeStream.java/clean/src/org/jruby/util/DataInputBridgeStream.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 855, 1435, 1216, 1860, 288, 3639, 327, 810, 18, 896, 13290, 3216, 5621, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 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, 377, 1071, 509, 855, 1435, 1216, 1860, 288, 3639, 327, 810, 18, 896, 13290, 3216, 5621, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -...
DatabaseService.Table_users user = createDummyUser( 3 ); sqlServer.sproc_AddNewuser( user ); int sqlServerRowCount = sqlServer.sproc_phoneNbrAdd( 3, "1234567", 0 ); assertEquals( 1, sqlServerRowCount ); mySql.sproc_AddNewuser( user ); int mySqlRowCount = mySql.sproc_phoneNbrAdd( 3, "1234567", 0 ); assertEquals( 1, mySqlRowCount );
DatabaseService.Table_users user = static_createDummyUser( 3 ); static_test_sproc_phoneNbrAdd( sqlServer, user ); static_test_sproc_phoneNbrAdd( mySql, user );
public void test_sproc_phoneNbrAdd() { DatabaseService.Table_users user = createDummyUser( 3 ); sqlServer.sproc_AddNewuser( user ); int sqlServerRowCount = sqlServer.sproc_phoneNbrAdd( 3, "1234567", 0 ); assertEquals( 1, sqlServerRowCount ); mySql.sproc_AddNewuser( user ); int mySqlRowCount = mySql.sproc_phoneNbrAdd( 3, "1234567", 0 ); assertEquals( 1, mySqlRowCount ); if( testMimer ) { mimer.sproc_AddNewuser( user ); int mimerRowCount = mimer.sproc_phoneNbrAdd( 3, "1234567", 0 ); assertEquals( 1, mimerRowCount ); } }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/d8504647692d437478de882ab2685373a08cf7f4/TestDatabaseService.java/clean/server/src/imcode/server/db/TestDatabaseService.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 67, 87, 9381, 67, 10540, 50, 2848, 986, 1435, 288, 3639, 5130, 1179, 18, 1388, 67, 5577, 729, 273, 752, 20094, 1299, 12, 890, 11272, 3639, 1847, 2081, 18, 87, 9381, 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, 1842, 67, 87, 9381, 67, 10540, 50, 2848, 986, 1435, 288, 3639, 5130, 1179, 18, 1388, 67, 5577, 729, 273, 752, 20094, 1299, 12, 890, 11272, 3639, 1847, 2081, 18, 87, 9381, 67,...
public abstract WebResponse getResponse(final WebRequestSettings webRequestSettings) throws IOException;
public abstract WebResponse getResponse(final WebRequestSettings webRequestSettings) throws IOException;
public abstract WebResponse getResponse(final WebRequestSettings webRequestSettings) throws IOException;
47843 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47843/dfbb2a25e4bf99938872ff9607c5b4f0c3f5cf74/WebConnection.java/clean/htmlunit/src/java/com/gargoylesoftware/htmlunit/WebConnection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 8770, 2999, 1064, 6476, 12, 6385, 2999, 691, 2628, 3311, 691, 2628, 13, 3639, 1216, 1860, 31, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 8770, 2999, 1064, 6476, 12, 6385, 2999, 691, 2628, 3311, 691, 2628, 13, 3639, 1216, 1860, 31, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
ICUResourceWriter.ResourceString str = new ICUResourceWriter.ResourceString(); str.name = name; str.val = LDMLUtilities.getAttributeValue(node,LDMLConstants.TYPE); res = str;
res = getDefaultResource(node, xpath, name);;
private ICUResourceWriter.Resource parseMonthsAndDays(Node root, StringBuffer xpath){ ICUResourceWriter.ResourceTable table = new ICUResourceWriter.ResourceTable(); ICUResourceWriter.Resource current = null; table.name = (String)keyNameMap.get(root.getNodeName()); int savedLength = xpath.length(); getXPath(root, xpath); int oldLength = xpath.length(); //if the whole node is marked draft then //dont write anything if(isNodeNotConvertible(root, xpath)){ xpath.setLength(savedLength); return null; } for(Node node=root.getFirstChild(); node!=null; node=node.getNextSibling()){ if(node.getNodeType()!=Node.ELEMENT_NODE){ continue; } String name = node.getNodeName(); ICUResourceWriter.Resource res = null; if(name.equals(LDMLConstants.ALIAS)){ res = parseAliasResource(node, xpath); res.name=table.name; return res; }else if(name.equals(LDMLConstants.DEFAULT)){ ICUResourceWriter.ResourceString str = new ICUResourceWriter.ResourceString(); str.name = name; str.val = LDMLUtilities.getAttributeValue(node,LDMLConstants.TYPE); res = str; }else if(name.equals(LDMLConstants.MONTH_CONTEXT) || name.equals(LDMLConstants.DAY_CONTEXT) || name.equals(LDMLConstants.QUARTER_CONTEXT)){ res = parseContext(node, xpath); }else{ System.err.println("Encountered unknown <"+root.getNodeName()+"> subelement: "+name); System.exit(-1); } if(res!=null){ if(current == null){ current = table.first = res; }else{ current.next = res; current = current.next; } res = null; } xpath.delete(oldLength, xpath.length()); } xpath.delete(savedLength, xpath.length()); if(table.first!=null){ return table; } return null; }
27800 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27800/5212cd4cd2a2bf3a65de9c3691a748c4202cf249/LDML2ICUConverter.java/buggy/tools/java/org/unicode/cldr/icu/LDML2ICUConverter.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 28009, 1420, 2289, 18, 1420, 1109, 19749, 1876, 9384, 12, 907, 1365, 16, 6674, 6748, 15329, 3639, 28009, 1420, 2289, 18, 1420, 1388, 1014, 273, 394, 28009, 1420, 2289, 18, 1420, 1388,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 28009, 1420, 2289, 18, 1420, 1109, 19749, 1876, 9384, 12, 907, 1365, 16, 6674, 6748, 15329, 3639, 28009, 1420, 2289, 18, 1420, 1388, 1014, 273, 394, 28009, 1420, 2289, 18, 1420, 1388,...
Assert.assert(nickname!=null);
Assert._assert(nickname!=null);
findCertsByNickname(String nickname) throws TokenException { Assert.assert(nickname!=null); return findCertsByNicknameNative(nickname); }
13991 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13991/6ddc297e30f1af6609057abe4502eaa3ba3bb664/CryptoManager.java/clean/security/jss/org/mozilla/jss/CryptoManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1104, 16273, 858, 29756, 529, 12, 780, 19570, 13, 3639, 1216, 3155, 503, 202, 95, 3639, 5452, 18, 11231, 12, 17091, 529, 5, 33, 2011, 1769, 202, 202, 2463, 1104, 16273, 858, 29756, 529, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1104, 16273, 858, 29756, 529, 12, 780, 19570, 13, 3639, 1216, 3155, 503, 202, 95, 3639, 5452, 18, 11231, 12, 17091, 529, 5, 33, 2011, 1769, 202, 202, 2463, 1104, 16273, 858, 29756, 529, ...
if(grailsProp.isManyToOne()) column.setNullable(false);
private static void bindSimpleValue(GrailsDomainClassProperty grailsProp, SimpleValue simpleValue,Mappings mappings) { // set type simpleValue.setTypeName(grailsProp.getType().getName()); Table table = simpleValue.getTable(); Column column = new Column(); if(grailsProp.isManyToOne()) column.setNullable(false); column.setValue(simpleValue); bindColumn(grailsProp, column, table); if(table != null) table.addColumn(column); simpleValue.addColumn(column); }
50670 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50670/ddf2ff7d53e297bec6420ddd2549407dccb13662/GrailsDomainBinder.java/clean/src/persistence/org/codehaus/groovy/grails/orm/hibernate/cfg/GrailsDomainBinder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 760, 918, 1993, 5784, 620, 12, 14571, 14573, 3748, 797, 1396, 3087, 14573, 4658, 16, 4477, 620, 4143, 620, 16, 7742, 7990, 13, 288, 202, 202, 759, 444, 618, 202, 202, 9647, 6...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1993, 5784, 620, 12, 14571, 14573, 3748, 797, 1396, 3087, 14573, 4658, 16, 4477, 620, 4143, 620, 16, 7742, 7990, 13, 288, 202, 202, 759, 444, 618, 202, 202, 9647, 6...
protected String buildNavFold(CmsObject cms, CmsXmlTemplateFile xmlDataBlock, Object userObject, Vector resources, String requestedUri, String currentFolder, String servletPath,int level) throws CmsException { String cmsfolder=(String)(((Hashtable)userObject).get("cmsfolder")); StringBuffer result = new StringBuffer(); int size = resources.size(); String navLink[] = new String[size]; String navText[] = new String[size]; float navPos[] = new float[size]; int max=extractNav(cms,resources,navLink,navText,navPos); if (max>0) { result.append(xmlDataBlock.getProcessedDataValue("navTreeStart", this, userObject)); for(int i=0; i<max; i++) { xmlDataBlock.setData("navText", navText[i]); xmlDataBlock.setData("count", new Integer(i+1).toString()); xmlDataBlock.setData("level", new Integer(extractLevel(cms,navLink[i])-(level+1)).toString()); // this if condition is necessary because of url parameter, // if there is no filename then the parameters are ignored, so I // can't use e.g. ?cmsframe=body. if (navLink[i].endsWith("/")) { String cmsfold="?cmsfolder="+ Encoder.escape(navLink[i]); String navIndex=cms.readProperty(navLink[i],C_PROPERTY_NAVINDEX); if (navIndex==null) { navIndex=C_NAVINDEX; } try { cms.readFile(navLink[i] + navIndex); xmlDataBlock.setData("navLink", servletPath + navLink[i] + navIndex + cmsfold); } catch (CmsException e) { xmlDataBlock.setData("navLink", servletPath + requestedUri ); } } else { try { cms.readFile(navLink[i]); xmlDataBlock.setData("navLink", servletPath + navLink[i] ); } catch (CmsException e) { xmlDataBlock.setData("navLink", servletPath + requestedUri ); } } // Check if nav is current nav if (navLink[i].equals(currentFolder) || navLink[i].equals(requestedUri)) { result.append(xmlDataBlock.getProcessedDataValue("navCurrent", this, userObject)); } else { result.append(xmlDataBlock.getProcessedDataValue("navEntry", this, userObject)); } // if the folder was clicked if (cmsfolder!=null && (!cmsfolder.equals("")) && (cmsfolder.indexOf(navLink[i])!=-1)) { Vector all=cms.getSubFolders(navLink[i]); Vector files=cms.getFilesInFolder(navLink[i]); all.ensureCapacity(all.size() + files.size()); Enumeration e = files.elements(); while (e.hasMoreElements()) { all.addElement(e.nextElement()); } result.append(buildNavFold(cms,xmlDataBlock,userObject,all,requestedUri,currentFolder,servletPath,level)); } } result.append(xmlDataBlock.getProcessedDataValue("navTreeEnd", this, userObject)); } return result.toString(); }
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/b1b6cbfe1af9c3145fd4ee224ece563876f41160/CmsXmlNav.java/buggy/src/com/opencms/defaults/CmsXmlNav.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 514, 1361, 12599, 15592, 12, 4747, 921, 6166, 16, 16084, 2283, 812, 2025, 751, 1768, 16, 1033, 729, 921, 16, 5589, 2703, 16, 514, 3764, 3006, 16, 514, 783, 3899, 16, 514, 810...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 514, 1361, 12599, 15592, 12, 4747, 921, 6166, 16, 16084, 2283, 812, 2025, 751, 1768, 16, 1033, 729, 921, 16, 5589, 2703, 16, 514, 3764, 3006, 16, 514, 783, 3899, 16, 514, 810...
GridData toServerButtonData = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING);
GridData toServerButtonData = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING);
public void createControl(Composite parent) { // whether the priority exists or not boolean priExist = false; String url = null; // get the model for the new bug AbstractBugWizard wizard = (AbstractBugWizard) getWizard(); NewBugModel nbm = wizard.model; // Attributes Composite- this holds all the combo fields and text // fields Composite attributesComposite = new Composite(parent, SWT.NONE); GridLayout attributesLayout = new GridLayout(); attributesLayout.numColumns = 4; attributesLayout.horizontalSpacing = 14; attributesLayout.verticalSpacing = 6; attributesComposite.setLayout(attributesLayout); GridData attributesData = new GridData(GridData.FILL_BOTH); attributesData.horizontalSpan = 1; attributesData.grabExcessVerticalSpace = false; attributesComposite.setLayoutData(attributesData); // End Attributes Composite GridLayout attributesTitleLayout = new GridLayout(); attributesTitleLayout.horizontalSpacing = 0; attributesTitleLayout.marginWidth = 0; GridData attributesTitleData = new GridData( GridData.HORIZONTAL_ALIGN_FILL); attributesTitleData.horizontalSpan = 4; attributesTitleData.grabExcessVerticalSpace = false; // Add the product to the composite newLayout(attributesComposite, 1, "Product", PROPERTY); newLayout(attributesComposite, 1, nbm.getProduct(), VALUE); // Populate Attributes for (Iterator<Attribute> it = nbm.getAttributes().iterator(); it.hasNext();) { Attribute attribute = it.next(); String key = attribute.getParameterName(); String name = attribute.getName(); String value = checkText(attribute.getValue()); Map<String, String> values = attribute.getOptionValues(); // if it is a hidden field, don't try to display it if (attribute.isHidden()) continue; if (key == null) key = ""; if (values == null) values = new HashMap<String, String>(); GridData data = new GridData(GridData.HORIZONTAL_ALIGN_FILL); data.horizontalSpan = 1; data.horizontalIndent = HORZ_INDENT; // create and populate the combo fields for the attributes if (key.equals("op_sys")) { newLayout(attributesComposite, 1, name, PROPERTY); oSCombo = new Combo(attributesComposite, SWT.NO_BACKGROUND | SWT.MULTI | SWT.V_SCROLL | SWT.READ_ONLY); oSCombo.setLayoutData(data); Set<String> s = values.keySet(); String[] a = s.toArray(new String[s.size()]); for (int i = 0; i < a.length; i++) { oSCombo.add(a[i]); } int index; if ((index = oSCombo.indexOf(value)) == -1) index = 0; oSCombo.select(index); oSCombo.addListener(SWT.Modify, this); } else if (key.equals("version")) { newLayout(attributesComposite, 1, name, PROPERTY); versionCombo = new Combo(attributesComposite, SWT.NO_BACKGROUND | SWT.MULTI | SWT.V_SCROLL | SWT.READ_ONLY); versionCombo.setLayoutData(data); Set<String> s = values.keySet(); String[] a = s.toArray(new String[s.size()]); for (int i = 0; i < a.length; i++) { versionCombo.add(a[i]); } int index; if ((index = versionCombo.indexOf(value)) == -1) index = 0; versionCombo.select(index); versionCombo.addListener(SWT.Modify, this); } else if (key.equals("bug_severity")) { newLayout(attributesComposite, 1, name, PROPERTY); severityCombo = new Combo(attributesComposite, SWT.NO_BACKGROUND | SWT.MULTI | SWT.V_SCROLL | SWT.READ_ONLY); severityCombo.setLayoutData(data); Set<String> s = values.keySet(); String[] a = s.toArray(new String[s.size()]); for (int i = 0; i < a.length; i++) { severityCombo.add(a[i]); } int index; if ((index = severityCombo.indexOf(value)) == -1) index = 0; severityCombo.select(index); severityCombo.addListener(SWT.Modify, this); } else if (key.equals("rep_platform")) { newLayout(attributesComposite, 1, name, PROPERTY); platformCombo = new Combo(attributesComposite, SWT.NO_BACKGROUND | SWT.MULTI | SWT.V_SCROLL | SWT.READ_ONLY); platformCombo.setLayoutData(data); Set<String> s = values.keySet(); String[] a = s.toArray(new String[s.size()]); for (int i = 0; i < a.length; i++) { platformCombo.add(a[i]); } int index; if ((index = platformCombo.indexOf(value)) == -1) index = 0; platformCombo.select(index); platformCombo.addListener(SWT.Modify, this); } else if (key.equals("component")) { newLayout(attributesComposite, 1, name, PROPERTY); componentCombo = new Combo(attributesComposite, SWT.NO_BACKGROUND | SWT.MULTI | SWT.V_SCROLL | SWT.READ_ONLY); componentCombo.setLayoutData(data); Set<String> s = values.keySet(); String[] a = s.toArray(new String[s.size()]); for (int i = 0; i < a.length; i++) { componentCombo.add(a[i]); } int index; if ((index = componentCombo.indexOf(value)) == -1) index = 0; componentCombo.select(index); componentCombo.addListener(SWT.Modify, this); } else if (key.equals("priority")) { newLayout(attributesComposite, 1, name, PROPERTY); priorityCombo = new Combo(attributesComposite, SWT.NO_BACKGROUND | SWT.MULTI | SWT.V_SCROLL | SWT.READ_ONLY); priorityCombo.setLayoutData(data); Set<String> s = values.keySet(); String[] a = s.toArray(new String[s.size()]); for (int i = 0; i < a.length; i++) { priorityCombo.add(a[i]); } int index; if ((index = priorityCombo.indexOf(value)) == -1) index = 0; priorityCombo.select(index); priorityCombo.addListener(SWT.Modify, this); priExist = true; } else if (key.equals("bug_file_loc")) { url = value; }else { // do nothing if it isn't a standard value to change } } if (priExist) { newLayout(attributesComposite, 1, "", PROPERTY); newLayout(attributesComposite, 1, "", PROPERTY); } GridData summaryTextData; if (url != null) { // add the assigned to text field newLayout(attributesComposite, 1, "URL", PROPERTY); urlText = new Text(attributesComposite, SWT.BORDER | SWT.SINGLE | SWT.WRAP); summaryTextData = new GridData(GridData.HORIZONTAL_ALIGN_FILL); summaryTextData.horizontalSpan = 3; summaryTextData.widthHint = 200; urlText.setLayoutData(summaryTextData); urlText.setText(url); urlText.addListener(SWT.FocusOut, this); } newLayout(attributesComposite, 1, "Assigned To", PROPERTY); Label l = new Label(attributesComposite, SWT.NONE); l.setText("NOTE: If e-mail incorrect, submit will fail silently"); summaryTextData = new GridData(GridData.HORIZONTAL_ALIGN_FILL); summaryTextData.horizontalSpan = 2; l.setLayoutData(summaryTextData); assignedToText = new Text(attributesComposite, SWT.BORDER | SWT.SINGLE | SWT.WRAP); summaryTextData = new GridData(GridData.HORIZONTAL_ALIGN_FILL); summaryTextData.horizontalSpan = 1; summaryTextData.widthHint = 200; assignedToText.setLayoutData(summaryTextData); assignedToText.setText(""); // add the summary text field newLayout(attributesComposite, 1, "Summary", PROPERTY); summaryText = new Text(attributesComposite, SWT.BORDER | SWT.SINGLE | SWT.WRAP); summaryTextData = new GridData(GridData.HORIZONTAL_ALIGN_FILL); summaryTextData.horizontalSpan = 3; summaryTextData.widthHint = 200; summaryText.setLayoutData(summaryTextData); summaryText.setText(nbm.getSummary()); summaryText.addListener(SWT.Modify, this); // Description Text Composite descriptionComposite = new Composite(attributesComposite, SWT.NONE); descriptionComposite.setLayout(attributesTitleLayout); GridData descriptionData = new GridData(GridData.HORIZONTAL_ALIGN_FILL); descriptionData.horizontalSpan = 4; descriptionData.grabExcessVerticalSpace = false; descriptionComposite.setLayoutData(descriptionData); newLayout(descriptionComposite, 4, "Description:", HEADER); // add the description text field descriptionText = new Text(attributesComposite, SWT.BORDER | SWT.MULTI | SWT.V_SCROLL | SWT.WRAP); descriptionText.setFont(AbstractBugEditor.COMMENT_FONT); GridData descriptionTextData = new GridData( GridData.HORIZONTAL_ALIGN_FILL); descriptionTextData.horizontalSpan = 4; descriptionTextData.widthHint = AbstractBugEditor.DESCRIPTION_WIDTH; descriptionTextData.heightHint = AbstractBugEditor.DESCRIPTION_HEIGHT; descriptionText.setLayoutData(descriptionTextData); descriptionText.addListener(SWT.Modify, this); serverButton = new Button(attributesComposite, SWT.RADIO); serverButton.setText("Submit bug report to the server."); GridData toServerButtonData = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING); toServerButtonData.horizontalSpan = 4; serverButton.setLayoutData(toServerButtonData); serverButton.setSelection(true); offlineButton = new Button(attributesComposite, SWT.RADIO); offlineButton.setText("Save bug report offline."); GridData offlineButtonData = new GridData(GridData.HORIZONTAL_ALIGN_BEGINNING); offlineButtonData.horizontalSpan = 4; offlineButton.setLayoutData(offlineButtonData); offlineButton.setSelection(false); if(wizard.fromDialog) offlineButton.setEnabled(false); setControl(attributesComposite); return; }
51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/c7e8842aaf630b312c422f4e2f0ef3bd5ed6453d/AbstractWizardDataPage.java/clean/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/bugzilla/ui/wizard/AbstractWizardDataPage.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 752, 3367, 12, 9400, 982, 13, 288, 202, 202, 759, 2856, 326, 4394, 1704, 578, 486, 202, 202, 6494, 14705, 4786, 273, 629, 31, 202, 202, 780, 880, 273, 446, 31, 202, 202...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 752, 3367, 12, 9400, 982, 13, 288, 202, 202, 759, 2856, 326, 4394, 1704, 578, 486, 202, 202, 6494, 14705, 4786, 273, 629, 31, 202, 202, 780, 880, 273, 446, 31, 202, 202...
public Insets getBorderInsets(Component c, Insets s)
public Insets getBorderInsets(Component c, Insets insets) { Insets borderInsets; if (insets == null) insets = new Insets (0,0,0,0); else insets.left = insets.right = insets.top = insets.bottom = 0; /* If there is an outside border, add it to insets. */ if (outsideBorder != null)
public Insets getBorderInsets(Component c, Insets s) { if (s == null) s = new Insets(0,0,0,0); s.left = s.right = s.top = s.bottom = 5; return s; }
1739 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1739/d092ccafae9945813bbf1be1db3d5e5bd006a90b/CompoundBorder.java/clean/libjava/javax/swing/border/CompoundBorder.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 22300, 2882, 1019, 382, 4424, 12, 1841, 225, 276, 16, 6862, 225, 22300, 272, 13, 565, 288, 202, 430, 261, 87, 422, 446, 13, 202, 565, 272, 273, 394, 22300, 12, 20, 16, 20, 16, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 22300, 2882, 1019, 382, 4424, 12, 1841, 225, 276, 16, 6862, 225, 22300, 272, 13, 565, 288, 202, 430, 261, 87, 422, 446, 13, 202, 565, 272, 273, 394, 22300, 12, 20, 16, 20, 16, ...
System.out.println("saving new flags for " + uid);
public void addFlag(long uid, long newUidValidity, Flags flag) throws MessagingException { if (newUidValidity != uidValidity) { throw new StaleCacheException(uidValidity, newUidValidity); } Flags f = getFlags(uid, newUidValidity); if (f != null) { f.add(flag); } else { f = flag; } if (getFolderInfo().isAvailable()) { MimeMessage m = getFolderInfo().getRealMessageById(uid); if (m != null) m.setFlags(flag, true); } else { writeToChangeLog(uid, flag, ADDED); } saveFlags(uid, uidValidity, f); }
967 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/967/5331a3dcfcd1ce0412ff5fe42ddbc6347174f46a/SimpleFileCache.java/buggy/net/suberic/pooka/cache/SimpleFileCache.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 2332, 18, 659, 18, 8222, 2932, 87, 5339, 394, 2943, 364, 315, 397, 4555, 1769, 225, 2332, 18, 659, 18, 8222, 2932, 87, 5339, 394, 2943, 364, 315, 397, 4555, 1769, 225, 2332, 18, 659, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2332, 18, 659, 18, 8222, 2932, 87, 5339, 394, 2943, 364, 315, 397, 4555, 1769, 225, 2332, 18, 659, 18, 8222, 2932, 87, 5339, 394, 2943, 364, 315, 397, 4555, 1769, 225, 2332, 18, 659, ...
if (errorStatus != null) {
if (errorStatus[0] != null && !errorStatus[0].isOK()) {
public void run() { try { WorkspaceModifyOperation op = new WorkspaceModifyOperation() { public void execute(IProgressMonitor monitor) { WorkspaceAction.this.execute(monitor); } }; new ProgressMonitorJobsDialog(shell).run(true, true, op); } catch (InterruptedException e) { return; } catch (InvocationTargetException e) { // we catch CoreException in execute(), but unexpected runtime exceptions or errors may still occur String msg = IDEWorkbenchMessages.format( "WorkspaceAction.logTitle", new Object[] {//$NON-NLS-1$ getClass().getName(), e.getTargetException() }); IDEWorkbenchPlugin.log(msg, StatusUtil.newStatus(IStatus.ERROR, msg, e.getTargetException())); displayError(e.getTargetException().getMessage()); } // If errors occurred, open an Error dialog & build a multi status error for it if (errorStatus != null) { ErrorDialog.openError(shell, getProblemsTitle(), null, // no special message errorStatus); } errorStatus = null; }
56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/ae2958210a6a16f7ababc95edab15604121e9bce/WorkspaceAction.java/buggy/bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/WorkspaceAction.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 1435, 288, 3639, 775, 288, 5411, 14396, 11047, 2988, 1061, 273, 394, 14396, 11047, 2988, 1435, 288, 7734, 1071, 918, 1836, 12, 45, 5491, 7187, 6438, 13, 288, 10792, 14396, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1086, 1435, 288, 3639, 775, 288, 5411, 14396, 11047, 2988, 1061, 273, 394, 14396, 11047, 2988, 1435, 288, 7734, 1071, 918, 1836, 12, 45, 5491, 7187, 6438, 13, 288, 10792, 14396, ...
BigInteger d = new BigInteger(p.bitLength(), init_random);
BigInteger d = new BigInteger(length, init_random);
private BigInteger procedure_C(BigInteger p, BigInteger q) { BigInteger pSub1 = p.subtract(ONE); BigInteger pSub1DivQ = pSub1.divide(q); for(;;) { BigInteger d = new BigInteger(p.bitLength(), init_random); // 1 < d < p-1 if (d.compareTo(ONE) > 0 && d.compareTo(pSub1) < 0) { BigInteger a = d.modPow(pSub1DivQ, p); if (a.compareTo(ONE) != 0) { return a; } } } }
14767 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14767/db8a7e1319a05620463f4904f2d305fdabc4d7fc/GOST3410ParametersGenerator.java/buggy/crypto/src/org/bouncycastle/crypto/generators/GOST3410ParametersGenerator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 10246, 12131, 67, 39, 12, 24198, 293, 16, 10246, 1043, 13, 565, 288, 3639, 10246, 293, 1676, 21, 273, 293, 18, 1717, 1575, 12, 5998, 1769, 3639, 10246, 293, 1676, 21, 7244, 53, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 10246, 12131, 67, 39, 12, 24198, 293, 16, 10246, 1043, 13, 565, 288, 3639, 10246, 293, 1676, 21, 273, 293, 18, 1717, 1575, 12, 5998, 1769, 3639, 10246, 293, 1676, 21, 7244, 53, 27...
assert type instanceof TypeBuilder;
assert type instanceof TypeBuilder : Debug.show(sym) + " => [" + type.Assembly + "]" + type;
private void genPackage(Tree[] body) { for (int i = 0; i < body.length; i++) { Symbol sym = body[i].symbol(); switch (body[i]) { case Empty: break; case ClassDef(_, _, _, _, _, Template(_, Tree[] classBody)): Type type = tc.getType(sym); assert type instanceof TypeBuilder; if (type instanceof TypeBuilder) genClass(sym, classBody); break; case PackageDef(_, Template(_ , Tree[] body2)): genPackage(body2); break; default: throw new ApplicationError("Class definition expected: " + Debug.show(sym)); } } }
5590 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5590/ed26845c259032914ff9429f573bf8f07a66eff4/GenMSIL.java/clean/sources/scalac/backend/msil/GenMSIL.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3157, 2261, 12, 2471, 8526, 1417, 13, 288, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 1417, 18, 2469, 31, 277, 27245, 288, 202, 565, 8565, 5382, 273, 1417, 63, 77, 8...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 3157, 2261, 12, 2471, 8526, 1417, 13, 288, 202, 1884, 261, 474, 277, 273, 374, 31, 277, 411, 1417, 18, 2469, 31, 277, 27245, 288, 202, 565, 8565, 5382, 273, 1417, 63, 77, 8...
public void actionPerformed(ActionEvent ae) { // Get the currently selected ConfigElement. TreePath path = this.getLeadSelectionPath(); DefaultMutableTreeNode node = (DefaultMutableTreeNode)path.getLastPathComponent(); Object temp = node.getUserObject(); //System.out.println("Action performed on a non ConfigElement node."); if ( (temp instanceof ConfigElement) ) { ConfigElement elm = (ConfigElement)temp; // If the user selected the copy action. if( ae.getActionCommand().equals("copy") ) { // Place ConfigElement in the system clipboard. ConfigElementSelection selection = new ConfigElementSelection(elm); // TODO: Change owner of clipboard. clipboard.setContents(selection, selection); } if ( !elm.isReadOnly() ) // Ensure that the ConfigElement is writable. { // If the user selcted the remove menu item. if( ae.getActionCommand().equals("delete") ) { TreeModel model = this.getModel(); // Remove the ConfigElement from the context. if( model instanceof ConfigContextModel ) { // Try to remove the element. ConfigBroker broker = new ConfigBrokerProxy(); if(!broker.remove( ((ConfigContextModel)model).getContext(), elm)) { System.out.println("Failed..."); } } } // Start editing the currently selected ConfigElement if we want to rename it. if(ae.getActionCommand().equals("rename")) { // Get the currently selected ConfigElement. startEditingAtPath(path); } // If the user selects the cut operation we should first copy it into the // clipboard and then delete it from the active context. if(ae.getActionCommand().equals("cut")) { ActionEvent evt; evt = new ActionEvent(this, -1, "copy"); actionPerformed(evt); evt = new ActionEvent(this, -1, "delete"); actionPerformed(evt); } } } // If the user selected the paste action. if(ae.getActionCommand().equals("paste") && mContextEditable) { try { // Get the context model for this JTree. TreeModel model = this.getModel(); ConfigContextModel config_model = (ConfigContextModel)model; // Get the ConfigElement to paste out of the clipboard. DataFlavor my_flavor = new DataFlavor(ConfigElement.class, "VR Juggler Config Element"); Transferable tr = clipboard.getContents(this); // If this JTree has a valid JTreeModel and the incoming paste supports // the DataFlavor that we are trying to use. if(model instanceof ConfigContextModel && tr.isDataFlavorSupported(my_flavor)) { // Get the ConfigElement that we are transfering and make a deep // copy of it. ConfigElement old_elm = (ConfigElement)tr.getTransferData(my_flavor); ConfigElement new_elm = new ConfigElement(old_elm); // Make sure that we have a meaningful unique name. ConfigContext ctx = config_model.getContext(); String base_name = new_elm.getName(); int num = 1; while(ctx.containsElement(new_elm)) { String new_name = base_name + "Copy" + Integer.toString(num); new_elm.setName(new_name); ++num; } // Make sure that we are not trying to add an element to ourselves. ConfigBroker broker = new ConfigBrokerProxy(); // Make sure this add goes through successfully if (!broker.add(config_model.getContext(), new_elm)) { throw new Exception("Could not paste ConfigElement into context."); } System.out.println("Paste completed..."); } } catch(Exception ex) { System.out.println(ex); ex.printStackTrace(); } } }
7933 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7933/598c91f8957e8a253054de289e4d489c51b507eb/ElementTree.java/buggy/modules/jackal/editors/org/vrjuggler/jccl/editors/ElementTree.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 565, 1071, 918, 26100, 12, 1803, 1133, 14221, 13, 565, 288, 1377, 368, 968, 326, 4551, 3170, 1903, 1046, 18, 1377, 4902, 743, 589, 273, 333, 18, 588, 9678, 6233, 743, 5621, 1377, 2989, 19536, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 26100, 12, 1803, 1133, 14221, 13, 565, 288, 1377, 368, 968, 326, 4551, 3170, 1903, 1046, 18, 1377, 4902, 743, 589, 273, 333, 18, 588, 9678, 6233, 743, 5621, 1377, 2989, 19536, ...
while (pat.search(this, start) != -1) {
while (pattern.search(this, start) != -1) {
public IRubyObject scan(IRubyObject arg) { RubyRegexp pat = RubyRegexp.regexpValue(arg); int start = 0; if (!getRuntime().getCurrentContext().isBlockGiven()) { RubyArray ary = getRuntime().newArray(); while (pat.search(this, start) != -1) { RubyMatchData md = (RubyMatchData) getRuntime().getCurrentContext().getBackref(); if (md.getSize() == 1) { ary.append(md.group(0)); } else { ary.append(md.subseq(1, md.getSize())); } if (md.matchEndPosition() == md.matchStartPosition()) { start++; } else { start = md.matchEndPosition(); } } return ary; } while (pat.search(this, start) != -1) { RubyMatchData md = (RubyMatchData) getRuntime().getCurrentContext().getBackref(); if (md.getSize() == 1) { getRuntime().getCurrentContext().yield(md.group(0)); } else { getRuntime().getCurrentContext().yield(md.subseq(1, md.getSize())); } if (md.matchEndPosition() == md.matchStartPosition()) { start++; } else { start = md.matchEndPosition(); } } return this; }
45753 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45753/9f2efc63a858fa0507245b207025eab027840a04/RubyString.java/buggy/src/org/jruby/RubyString.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 15908, 10340, 921, 4135, 12, 7937, 10340, 921, 1501, 13, 288, 202, 202, 54, 10340, 14621, 9670, 273, 19817, 14621, 18, 17745, 620, 12, 3175, 1769, 202, 202, 474, 787, 273, 374, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 15908, 10340, 921, 4135, 12, 7937, 10340, 921, 1501, 13, 288, 202, 202, 54, 10340, 14621, 9670, 273, 19817, 14621, 18, 17745, 620, 12, 3175, 1769, 202, 202, 474, 787, 273, 374, ...
public RubyString internalGets(IRubyObject[] args) {
public IRubyObject internalGets(IRubyObject[] args) {
public RubyString internalGets(IRubyObject[] args) { if (currentFile == null && !nextArgsFile()) { return RubyString.nilString(getRuntime()); } RubyString line = (RubyString)currentFile.callMethod("gets", args); while (line.isNil()) { currentFile.callMethod("close"); if (! nextArgsFile()) { currentFile = null; return line; } line = (RubyString) currentFile.callMethod("gets", args); } currentLineNumber++; getRuntime().getGlobalVariables().set("$.", getRuntime().newFixnum(currentLineNumber)); return line; }
45221 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45221/b72a2862ae5b2f01f9a767ef2ce248fd785857c4/RubyArgsFile.java/buggy/src/org/jruby/RubyArgsFile.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 15908, 10340, 921, 2713, 3002, 12, 7937, 10340, 921, 8526, 833, 13, 288, 3639, 309, 261, 2972, 812, 422, 446, 597, 401, 4285, 2615, 812, 10756, 288, 5411, 327, 19817, 780, 18, 20154...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 15908, 10340, 921, 2713, 3002, 12, 7937, 10340, 921, 8526, 833, 13, 288, 3639, 309, 261, 2972, 812, 422, 446, 597, 401, 4285, 2615, 812, 10756, 288, 5411, 327, 19817, 780, 18, 20154...
public boolean startCommand(int fCommand,Object fThread)
public boolean startCommand(int fCommand, Object fThread)
public boolean startCommand(int fCommand,Object fThread) { return( startCommand(fCommand,null,true,fThread)); }
48756 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48756/4179c9f6d0a36bc8b8ca5cdef30d4178930114cd/PerlDB.java/buggy/org.epic.debug/src/org/epic/debug/PerlDB.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 787, 2189, 12, 474, 284, 2189, 16, 921, 284, 3830, 13, 202, 95, 202, 202, 2463, 12, 787, 2189, 12, 74, 2189, 16, 2011, 16, 3767, 16, 74, 3830, 10019, 202, 97, 2, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1250, 787, 2189, 12, 474, 284, 2189, 16, 921, 284, 3830, 13, 202, 95, 202, 202, 2463, 12, 787, 2189, 12, 74, 2189, 16, 2011, 16, 3767, 16, 74, 3830, 10019, 202, 97, 2, -10...
("std dev", 1.0173699343977738, stats.getStandardDeviation(), tolerance);
("std dev", 1.0173699343977738, stats.getStandardDeviation(), tolerance); vs.computeDistribution(500); stats = new UnivariateImpl(); for (int i = 1; i < 1000; i++) { next = vs.getNext(); stats.addValue(next); } assertEquals("mean", 5.069831575018909, stats.getMean(), tolerance); assertEquals ("std dev", 1.0173699343977738, stats.getStandardDeviation(), tolerance);
public void testNextDigest() throws Exception{ double next = 0.0; double tolerance = 0.1; vs.computeDistribution(); Univariate stats = new UnivariateImpl(); for (int i = 1; i < 1000; i++) { next = vs.getNext(); stats.addValue(next); } assertEquals("mean", 5.069831575018909, stats.getMean(), tolerance); assertEquals ("std dev", 1.0173699343977738, stats.getStandardDeviation(), tolerance); }
9305 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9305/a6c324e669d05dc92e999ae78a29d0ac598d235f/ValueServerTest.java/clean/src/test/org/apache/commons/math/ValueServerTest.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 2134, 9568, 1435, 1216, 1185, 95, 3639, 1645, 1024, 273, 374, 18, 20, 31, 3639, 1645, 10673, 273, 374, 18, 21, 31, 3639, 6195, 18, 9200, 9003, 5621, 3639, 1351, 27693, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 2134, 9568, 1435, 1216, 1185, 95, 3639, 1645, 1024, 273, 374, 18, 20, 31, 3639, 1645, 10673, 273, 374, 18, 21, 31, 3639, 6195, 18, 9200, 9003, 5621, 3639, 1351, 27693, ...
setNoex(noex);
public AliasMethod(ICallable oldMethod, String oldName, RubyModule origin, int noex) { this.oldMethod = oldMethod; this.oldName = oldName; this.origin = origin; setNoex(noex); }
46217 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46217/f05423516c2d1bfe54c4363eedb9654f7cfb6898/AliasMethod.java/buggy/org/jruby/internal/runtime/methods/AliasMethod.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 11873, 1305, 12, 45, 11452, 1592, 1305, 16, 514, 22916, 16, 19817, 3120, 4026, 16, 509, 1158, 338, 13, 288, 3639, 333, 18, 1673, 1305, 273, 1592, 1305, 31, 3639, 333, 18, 1673, 46...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11873, 1305, 12, 45, 11452, 1592, 1305, 16, 514, 22916, 16, 19817, 3120, 4026, 16, 509, 1158, 338, 13, 288, 3639, 333, 18, 1673, 1305, 273, 1592, 1305, 31, 3639, 333, 18, 1673, 46...
getContentPane().setLayout(new BoxLayout(getContentPane(), BoxLayout.Y_AXIS)); getContentPane().add(createConnectionPane()); getContentPane().add(createGUIPane()); getContentPane().add(createProgrammerPane());
getContentPane().setLayout(new BoxLayout(getContentPane(), BoxLayout.Y_AXIS)); getContentPane().add(createConnectionPane()); getContentPane().add(createGUIPane()); getContentPane().add(createProgrammerPane());
public AbstractConfigFrame(String name) { super(name); getContentPane().setLayout(new BoxLayout(getContentPane(), BoxLayout.Y_AXIS)); // create the GUI in steps getContentPane().add(createConnectionPane()); getContentPane().add(createGUIPane()); getContentPane().add(createProgrammerPane()); JButton save = new JButton("Save"); getContentPane().add(save); save.addActionListener( new ActionListener() { public void actionPerformed(ActionEvent e) { savePressed(); } }); // add some space at the bottom getContentPane().add(new JLabel(" ")); // show is deferred to some action somewhere else pack(); }
2652 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2652/ef71f46c03aa0831907f2e6de38e45931e1b5167/AbstractConfigFrame.java/clean/apps/AbstractConfigFrame.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 4115, 809, 3219, 12, 780, 508, 13, 288, 202, 202, 9565, 12, 529, 1769, 202, 202, 588, 1350, 8485, 7675, 542, 3744, 12, 2704, 8549, 3744, 12, 588, 1350, 8485, 9334, 8549, 3744,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4115, 809, 3219, 12, 780, 508, 13, 288, 202, 202, 9565, 12, 529, 1769, 202, 202, 588, 1350, 8485, 7675, 542, 3744, 12, 2704, 8549, 3744, 12, 588, 1350, 8485, 9334, 8549, 3744,...
d = ( (Number) data[0]).intValue(); context.operands.push(new Integer(d)); } else { String s; s = (String) data[0];
public void execute(PAContext context) throws PainterException { // Object data[]; // data = context.popOperands(1); }
3011 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3011/a9e36ef1e4e4be2e6d4839ed4e5a42aabe172a12/PAContext.java/clean/itext/src/com/lowagie/text/pdf/codec/postscript/PAContext.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 302, 273, 261, 261, 1854, 13, 501, 63, 20, 65, 2934, 474, 620, 5621, 819, 18, 4063, 5708, 18, 6206, 12, 2704, 2144, 12, 72, 10019, 289, 469, 288, 514, 272, 31, 272, 273, 261, 780, 13, 50...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 302, 273, 261, 261, 1854, 13, 501, 63, 20, 65, 2934, 474, 620, 5621, 819, 18, 4063, 5708, 18, 6206, 12, 2704, 2144, 12, 72, 10019, 289, 469, 288, 514, 272, 31, 272, 273, 261, 780, 13, 50...
bytes = data.getBytes("UTF8");
bytes = data.getBytes("ISO-8859-1");
public static String encodeBase64(String data) { byte [] bytes = null; try { bytes = data.getBytes("UTF8"); } catch (UnsupportedEncodingException uee) { uee.printStackTrace(); } return encodeBase64(bytes); }
966 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/966/fc70c90e677aaa66a86fbd13d4a06e7ac60038f3/StringUtils.java/clean/source/org/jivesoftware/smack/util/StringUtils.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 514, 2017, 2171, 1105, 12, 780, 501, 13, 288, 3639, 1160, 5378, 1731, 273, 446, 31, 3639, 775, 288, 5411, 1731, 273, 501, 18, 588, 2160, 2932, 12609, 17, 17258, 17, 21, 8863,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 514, 2017, 2171, 1105, 12, 780, 501, 13, 288, 3639, 1160, 5378, 1731, 273, 446, 31, 3639, 775, 288, 5411, 1731, 273, 501, 18, 588, 2160, 2932, 12609, 17, 17258, 17, 21, 8863,...
ClientGetter cg = new ClientGetter(NodeUpdater.this, node.chkFetchScheduler, node.sskFetchScheduler, revocationURI, ctxRevocation, RequestStarter.MAXIMUM_PRIORITY_CLASS, NodeUpdater.this, null);
ClientGetter cg; synchronized(this) { if(revocationGetter != null && !(revocationGetter.isCancelled() || revocationGetter.isFinished())) { Logger.minor(this, "Not queueing another revocation fetcher yet"); return; } else { Logger.minor(this, "fetcher="+revocationGetter); if(revocationGetter != null) Logger.minor(this, "revocation fetcher: cancelled="+revocationGetter.isCancelled()+", finished="+revocationGetter.isFinished()); cg = revocationGetter = new ClientGetter(NodeUpdater.this, node.chkFetchScheduler, node.sskFetchScheduler, revocationURI, ctxRevocation, RequestStarter.MAXIMUM_PRIORITY_CLASS, NodeUpdater.this, null); Logger.minor(this, "Queued another revocation fetcher"); } }
private void queueFetchRevocation(long delay) { node.ps.queueTimedJob(new Runnable() { // maybe a FastRunnable? FIXME public void run() { try { // We've got the data, so speed things up a bit. ClientGetter cg = new ClientGetter(NodeUpdater.this, node.chkFetchScheduler, node.sskFetchScheduler, revocationURI, ctxRevocation, RequestStarter.MAXIMUM_PRIORITY_CLASS, NodeUpdater.this, null); cg.start(); } catch (FetchException e) { Logger.error(this, "Not able to start the revocation fetcher."); blow("Cannot fetch the auto-update URI"); } } }, delay); }
52909 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52909/5859c6306e314e2f206e8b2a0755dd48185083d4/NodeUpdater.java/clean/src/freenet/node/updater/NodeUpdater.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 2389, 5005, 28691, 12, 5748, 4624, 13, 288, 202, 202, 2159, 18, 1121, 18, 4000, 19336, 2278, 12, 2704, 10254, 1435, 288, 368, 6944, 279, 9545, 20013, 35, 9852, 1082, 202, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1152, 918, 2389, 5005, 28691, 12, 5748, 4624, 13, 288, 202, 202, 2159, 18, 1121, 18, 4000, 19336, 2278, 12, 2704, 10254, 1435, 288, 368, 6944, 279, 9545, 20013, 35, 9852, 1082, 202, ...
m_addUserStmt.setString(2, this.gerenatePasswordDigest(password));
m_addUserStmt.setString(2, PasswordUtils.gerenatePasswordDigest(password));
public long addUser(String userid, String password, String fullname, String address1, String address2, String address3, String address4, String phoneno1, String phoneno2, String email1, String email2, String url, String charset, String locale, long flags1, long flags2, long flags3, long flags4, long rights) throws DuplicateNameException, SQLException, NoSuchAlgorithmException, AmbiguousNameException { if(this.userExists(userid)) throw new DuplicateNameException(userid); if(m_nameManager.nameExists(fullname)) throw new DuplicateNameException(fullname); // First, add the name // long nameId = m_nameManager.addName(fullname, NameManager.USER_KIND, Visibilities.PUBLIC); Timestamp now = new Timestamp(System.currentTimeMillis()); // Now, add the user // m_addUserStmt.clearParameters(); m_addUserStmt.setString(1, userid); m_addUserStmt.setString(2, this.gerenatePasswordDigest(password)); m_addUserStmt.setString(3, address1); m_addUserStmt.setString(4, address2); m_addUserStmt.setString(5, address3); m_addUserStmt.setString(6, address4); m_addUserStmt.setString(7, phoneno1); m_addUserStmt.setString(8, phoneno2); m_addUserStmt.setString(9, email1); m_addUserStmt.setString(10, email2); m_addUserStmt.setString(11, url); m_addUserStmt.setString(12, charset); m_addUserStmt.setLong(13, nameId); m_addUserStmt.setLong(14, flags1); m_addUserStmt.setLong(15, flags2); m_addUserStmt.setLong(16, flags3); m_addUserStmt.setLong(17, flags4); m_addUserStmt.setLong(18, rights); m_addUserStmt.setString(19, locale); m_addUserStmt.setTimestamp(20,now); // Lock cache while updating // m_addUserStmt.executeUpdate(); // Add a mailbox // new ConferenceManager(m_conn, m_nameManager).addMailbox(nameId, fullname, 0); // Make us a member of our mailbox // try { new MembershipManager(m_conn).signup(nameId, nameId, 0, ConferencePermissions.ALL_PERMISSIONS, 0); return nameId; } catch(AuthorizationException e) { // This can't happen! // throw new RuntimeException("This can't happen!", e); } catch(AlreadyMemberException e) { // This can't happen! // throw new RuntimeException("This can't happen!", e); } catch(ObjectNotFoundException e) { // This can't happen! // throw new RuntimeException("This can't happen!", e); } }
3907 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3907/2a9e9fcd115a22fe2a14595bdccaf4d3a704fa4c/UserManager.java/clean/kom/java/nu/rydin/kom/backend/data/UserManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1525, 527, 1299, 12, 780, 6709, 16, 514, 2201, 16, 514, 13321, 16, 514, 1758, 21, 16, 202, 202, 780, 1758, 22, 16, 514, 1758, 23, 16, 514, 1758, 24, 16, 514, 22105, 5764, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1525, 527, 1299, 12, 780, 6709, 16, 514, 2201, 16, 514, 13321, 16, 514, 1758, 21, 16, 202, 202, 780, 1758, 22, 16, 514, 1758, 23, 16, 514, 1758, 24, 16, 514, 22105, 5764, ...
if (!ClassUtils.isSubclass(aClass, "junit.framework.TestCase")) {
if(aClass == null) {
public void visitMethod(PsiMethod method) { // note: no call to super if (!method.isConstructor()) { return; } final PsiClass aClass = method.getContainingClass(); if (!ClassUtils.isSubclass(aClass, "junit.framework.TestCase")) { return; } if (isTrivial(method)) { return; } registerMethodError(method); }
56598 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56598/dba8b183fc1b08e7ad664812bfc0c64d1e4abd3c/TestCaseWithConstructorInspection.java/clean/plugins/InspectionGadgets/src/com/siyeh/ig/junit/TestCaseWithConstructorInspection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 25138, 12, 52, 7722, 1305, 707, 13, 288, 5411, 368, 4721, 30, 1158, 745, 358, 2240, 5411, 309, 16051, 2039, 18, 291, 6293, 10756, 288, 7734, 327, 31, 5411, 289, 5411, 727, 45...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 540, 1071, 918, 25138, 12, 52, 7722, 1305, 707, 13, 288, 5411, 368, 4721, 30, 1158, 745, 358, 2240, 5411, 309, 16051, 2039, 18, 291, 6293, 10756, 288, 7734, 327, 31, 5411, 289, 5411, 727, 45...
this.running = false; this.wishes.clear();
Election.running = false; Election.wishes.clear();
public synchronized void run() { try { wait(WAITSECS * 1000); } catch (InterruptedException e) { e.printStackTrace(); } int score[] = { 0, 0, 0, 0, 0, 0 }; int i_user; c3ddispatcher.showMessageAll("Election finished"); for (Enumeration e = wishes.keys(); e.hasMoreElements();) { i_user = ((Integer) e.nextElement()).intValue(); Integer wish = (Integer) wishes.get(new Integer(i_user)); c3ddispatcher.showMessageAll( " User " + c3ddispatcher.nameOfUser(i_user) + " voted '" + voteString(wish) + "'"); // update the scores score[wish.intValue()]++; } c3ddispatcher.showMessageAll( " Result:\n " + score[RIGHT] + " right, " + score[LEFT] + " left [rotate]\n " + score[UP] + " up ," + score[DOWN] + " down [vertical]\n " + score[CLOCKWISE] + " right," + score[UNCLOCKWISE] + " left [spin]"); // Computes the winner int winner = -1; for (int i = 0; i < score.length; i++) { // If a candidate has got all the votes if (score[i] == wishes.size()) winner = i; } switch (winner) { case UP : c3ddispatcher.showMessageAll( " The scene will be rotated up."); this.running = false; this.wishes.clear(); c3ddispatcher.rotateUp(0); break; case DOWN : c3ddispatcher.showMessageAll( " The scene will be rotated down."); this.running = false; this.wishes.clear(); c3ddispatcher.rotateDown(0); break; case LEFT : c3ddispatcher.showMessageAll( " The scene will be rotated left."); this.running = false; this.wishes.clear(); c3ddispatcher.rotateLeft(0); break; case RIGHT : c3ddispatcher.showMessageAll( " The scene will be rotated right."); this.running = false; this.wishes.clear(); c3ddispatcher.rotateRight(0); break; case CLOCKWISE : c3ddispatcher.showMessageAll( " The scene will be spinned right"); this.running = false; this.wishes.clear(); c3ddispatcher.spinClock(0); break; case UNCLOCKWISE : c3ddispatcher.showMessageAll( " The scene will be spinned left"); this.running = false; this.wishes.clear(); c3ddispatcher.spinUnclock(0); break; default : c3ddispatcher.showMessageAll( " No consensus found, vote again please!"); } this.running = false; this.wishes.clear(); }
50951 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50951/3300f7890312c39f67f23d650ba78b3f068cd88a/C3DDispatcher.java/clean/src/org/objectweb/proactive/examples/c3d/C3DDispatcher.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 3852, 918, 1086, 1435, 202, 95, 202, 202, 698, 202, 202, 95, 1082, 202, 7048, 12, 19046, 1090, 4596, 380, 4336, 1769, 202, 202, 97, 202, 202, 14683, 261, 24485, 503, 425, 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, 3852, 918, 1086, 1435, 202, 95, 202, 202, 698, 202, 202, 95, 1082, 202, 7048, 12, 19046, 1090, 4596, 380, 4336, 1769, 202, 202, 97, 202, 202, 14683, 261, 24485, 503, 425, 13, ...
"Check if '" + src[i] + "' normalized to '" + dest[i] + "'", dest[i], FilenameUtils.normalize(src[i]));
"Check if '" + src[i] + "' normalized to '" + destStr + "', was '" + resultStr + "'", destStr, resultStr);
public void testNormalize() throws Exception { String[] src = { "", "/", "///", "/foo", "/foo//", "/./", "/foo/./", "/foo/./bar", "/foo/../bar", "/foo/../bar/../baz", "/foo/bar/../../baz", "/././", "/foo/./../bar", "/foo/.././bar/", "//foo//./bar", "/../", "/foo/../../" }; String[] dest = { "", "/", "/", "/foo", "/foo/", "/", "/foo/", "/foo/bar", "/bar", "/baz", "/baz", "/", "/bar", "/bar/", "/foo/bar", null, null }; assertEquals("Oops, test writer goofed", src.length, dest.length); for (int i = 0; i < src.length; i++) { assertEquals( "Check if '" + src[i] + "' normalized to '" + dest[i] + "'", dest[i], FilenameUtils.normalize(src[i])); } }
49302 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49302/5964ce6decf3d7ab3efb7e1a9852b2f85a03ec6d/FilenameUtilsTestCase.java/clean/src/test/org/apache/commons/io/FilenameUtilsTestCase.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 14380, 1435, 1216, 1185, 288, 3639, 514, 8526, 1705, 273, 5411, 288, 7734, 23453, 7734, 2206, 3113, 7734, 16177, 19, 3113, 7734, 2206, 11351, 3113, 7734, 2206, 11351, 759, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 14380, 1435, 1216, 1185, 288, 3639, 514, 8526, 1705, 273, 5411, 288, 7734, 23453, 7734, 2206, 3113, 7734, 16177, 19, 3113, 7734, 2206, 11351, 3113, 7734, 2206, 11351, 759, ...
imcref.getExceptionUnhandlingDatabase().executeUpdateProcedure( "A_AddTemplateLib", new String[] {newLibName} );
imcref.getDatabase().executeUpdateProcedure( "A_AddTemplateLib", new String[] {newLibName} );
public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { UserDomainObject user = Utility.getLoggedOnUser(req); if (!isUserAuthorized(req, res, user)) { return; } // Lets get the standard SESSION parameters Properties params = this.getStandardParameters(req); // Lets get serverinformation ImcmsServices imcref = Imcms.getServices(); // Lets check that the user is an administrator DocumentMapper documentMapper = imcref.getDocumentMapper(); DocumentDomainObject document = documentMapper.getDocument(Integer.parseInt( params.getProperty( "META_ID" ) )); if (user.canEdit( document ) == false) { String header = "ConfAdmin servlet. "; new ConfError(req, res, header, 6, user ); return; } // ********* ADD SELF_REGISTERED USERS ******** if (req.getParameter("ADD_SELF_REG_ROLE") != null) { // Lets check if the user is a superadmin if (Administrator.checkAdminRights(req) == false) { new ConfError(req, res, "ConfAdmin", 64, user ); return; } // Lets get the role id the user wants to add String selfRegRoleId = req.getParameter("ALL_SELF_REGISTER_ROLES"); if (selfRegRoleId == null) { String header = "ConfAdmin servlet. "; new ConfError(req, res, header, 86, user ); return; } String roleName = imcref.getExceptionUnhandlingDatabase().executeStringProcedure( "RoleGetName", new String[] {selfRegRoleId} ); imcref.getExceptionUnhandlingDatabase().executeUpdateProcedure( "A_SelfRegRoles_AddNew", new String[] {params.getProperty( "META_ID" ), selfRegRoleId, roleName} ); res.sendRedirect("ConfAdmin?ADMIN_TYPE=SELF_REGISTER"); return; } // ********* DELETE A SELF_REGISTERED ROLE ******** if (req.getParameter("DEL_SELF_REG_ROLE") != null) { // Lets check if the user is a superadmin if (Administrator.checkAdminRights(req) == false) { new ConfError(req, res, "ConfAdmin", 64, user ); return; } // Lets get the role id the user wants to delete String selfRegRoleId = req.getParameter("CURR_SELF_REGISTER_ROLES"); if (selfRegRoleId == null) { String header = "ConfAdmin servlet. "; new ConfError(req, res, header, 87, user ); return; } imcref.getExceptionUnhandlingDatabase().executeUpdateProcedure( "A_SelfRegRoles_Delete", new String[] {params.getProperty( "META_ID" ), selfRegRoleId} ); res.sendRedirect("ConfAdmin?ADMIN_TYPE=SELF_REGISTER"); return; } // ********* REGISTER NEW TEMPLATE ******** if (req.getParameter("REGISTER_TEMPLATE_LIB") != null) { log("Nu lgger vi till ett nytt set"); // Lets get the new library name and validate it String newLibName = req.getParameter("TEMPLATE_LIB_NAME"); if (newLibName == null) { String header = "ConfAdmin servlet. "; new ConfError(req, res, header, 80, user ); return; } newLibName = super.verifySqlText(newLibName); // Lets check if we already have a templateset with that name String libNameExists = imcref.getExceptionUnhandlingDatabase().executeStringProcedure( "A_FindTemplateLib", new String[] {newLibName} ); if (!libNameExists.equalsIgnoreCase("-1")) { String header = "ConfAdmin servlet. "; new ConfError(req, res, header, 84, user ); return; } imcref.getExceptionUnhandlingDatabase().executeUpdateProcedure( "A_AddTemplateLib", new String[] {newLibName} ); // Lets copy the original folders to the new foldernames int metaId = getMetaId(req); FileManager fileObj = new FileManager(); File templateSrc = new File(imcref.getExternalTemplateFolder(metaId, user), "original"); File imageSrc = new File(RmiConf.getImagePathForExternalDocument(imcref, metaId, user), "original"); File templateTarget = new File(imcref.getExternalTemplateFolder(metaId, user), newLibName); File imageTarget = new File(RmiConf.getImagePathForExternalDocument(imcref, metaId, user), newLibName); fileObj.copyDirectory(templateSrc, templateTarget); fileObj.copyDirectory(imageSrc, imageTarget); res.sendRedirect("ConfAdmin?ADMIN_TYPE=META"); return; } // ********* PREPARE ADMIN TEMPLATES ******** if (req.getParameter("UPLOAD_CONF") != null) { String libName = (req.getParameter("TEMPLATE_NAME") == null) ? "" : (req.getParameter("TEMPLATE_NAME")); String uploadType = (req.getParameter("UPLOAD_TYPE") == null) ? "" : (req.getParameter("UPLOAD_TYPE")); params.setProperty("TEMPLATE_NAME", libName); params.setProperty("UPLOAD_TYPE", uploadType); String url = "ConfAdmin?ADMIN_TYPE=META"; url += "&setname=" + libName + "&UPLOAD_TYPE=" + uploadType; res.sendRedirect(url); return; } // ********* SET TEMPLATE LIB FOR A CONFERENCE ******** if (req.getParameter("SET_TEMPLATE_LIB") != null) { log("Lets set a new template set for the conference"); // Lets get the new library name and validate it String newLibName = req.getParameter("TEMPLATE_ID"); if (newLibName == null) { String header = "ConfAdmin servlet. "; new ConfError(req, res, header, 80, user ); return; } // Lets find the selected template in the database and get its id // if not found, -1 will be returned String templateId = imcref.getExceptionUnhandlingDatabase().executeStringProcedure( "A_GetTemplateIdFromName", new String[] {newLibName} ); if (templateId.equalsIgnoreCase("-1")) { String header = "ConfAdmin servlet. "; new ConfError(req, res, header, 81, user ); return; } // Ok, lets update the conference with this new templateset. imcref.getExceptionUnhandlingDatabase().executeUpdateProcedure( "A_SetTemplateLib", new String[] {params.getProperty( "META_ID" ), templateId} ); res.sendRedirect("ConfAdmin?ADMIN_TYPE=META"); return; } // SET TEMPLATE LIB // ********* DELETE REPLY ******** if (req.getParameter("DELETE_REPLY") != null) { log("Nu tar vi bort inlgg"); // Lets get the discusssion id String discId = params.getProperty("DISC_ID"); // Lets get all the replies id:s String[] repliesIds = this.getDelReplyParameters(req); // Lets delete all marked replies. Observe that the first one wont be deleted! // if the user wants to delete the first one then he has to delete the discussion if (repliesIds != null) { for (int i = 0; i < repliesIds.length; i++) { imcref.getExceptionUnhandlingDatabase().executeUpdateProcedure( "A_DeleteReply", new String[] {discId, repliesIds[i]} ); } } res.sendRedirect("ConfAdmin?ADMIN_TYPE=REPLY"); return; } // ********* RESAVE REPLY ******** if (req.getParameter("RESAVE_REPLY") != null) { // Lets get all the replies id:s String[] repliesIds = this.getDelReplyParameters(req); // Lets get the seleted textboxes headers and texts values. if (repliesIds != null) { for (int i = 0; i < repliesIds.length; i++) { String newText = req.getParameter("TEXT_BOX_" + repliesIds[i]); if (newText == null || newText.equals( "" )) { ConfError err = new ConfError(); newText = err.getErrorMessage(req, 70); } String newHeader = req.getParameter("REPLY_HEADER_" + repliesIds[i]); if (newHeader == null || newHeader.equals( "" )) { ConfError err = new ConfError(); newHeader = err.getErrorMessage(req, 71); } // Lets validate the new text for the sql question newHeader = super.verifySqlText(newHeader); newText = super.verifySqlText(newText); imcref.getExceptionUnhandlingDatabase().executeUpdateProcedure( "A_UpdateReply", new String[] {repliesIds[i], newHeader, newText} ); } } res.sendRedirect("ConfAdmin?ADMIN_TYPE=REPLY"); return; } // ********* DELETE DISCUSSION ******** if (req.getParameter("DELETE_DISCUSSION") != null) { // Lets get all the discussion id:s String[] discIds = this.getDelDiscParameters(req); // Lets delete all the discussion and all the replies in that discussion. if (discIds != null) { for (int i = 0; i < discIds.length; i++) { imcref.getExceptionUnhandlingDatabase().executeUpdateProcedure( "A_DeleteDiscussion", new String[] {discIds[i]} ); } } res.sendRedirect("ConfAdmin?ADMIN_TYPE=DISCUSSION"); return; } // ********* DELETE FORUM ******** if (req.getParameter("DELETE_FORUM") != null) { log("Nu tar vi bort ett forum"); params = this.getDelForumParameters(req, params); // Lets get the forum_id and set our session object before updating String aForumId = params.getProperty("FORUM_ID"); // Lets get all discussions for that forum and delete those before deleting the forum // GetAllDiscsInForum @aForumId int String[] discs = imcref.getExceptionUnhandlingDatabase().executeArrayProcedure( "A_GetAllDiscsInForum", new String[] {aForumId} ); if (discs != null) { for (int i = 0; i < discs.length; i++) { imcref.getExceptionUnhandlingDatabase().executeUpdateProcedure( "A_DeleteDiscussion", new String[] {discs[i]} ); } } // DeleteForum @aForumId int imcref.getExceptionUnhandlingDatabase().executeUpdateProcedure( "A_DeleteForum", new String[] {params.getProperty( "FORUM_ID" )} ); this.doGet(req, res); return; } // ********* ADD FORUM ******** if (req.getParameter("ADD_FORUM") != null) { log("Lets add a forum"); // Lets get addForum parameters params = this.getAddForumParameters(req, params); // Lets verify the parameters for the sql questions. params = super.verifyForSql(params); // Lets check if a forum with that name exists String foundIt = imcref.getExceptionUnhandlingDatabase().executeStringProcedure( "A_FindForumName", new String[] {params.getProperty( "META_ID" ), params.getProperty( "NEW_FORUM_NAME" )} ); if (!foundIt.equalsIgnoreCase("-1")) { String header = "ConfAdmin servlet. "; new ConfError(req, res, header, 85, user ); return; } // AddNewForum @meta_id int, @forum_name varchar(255), @archive_mode char, @archive_time int final String archiveMode = "A"; final String archiveTime = "30"; imcref.getExceptionUnhandlingDatabase().executeUpdateProcedure( "A_AddNewForum", new String[] {params.getProperty( "META_ID" ), params.getProperty( "NEW_FORUM_NAME" ), archiveMode, archiveTime} ); this.doGet(req, res); return; } // ********* CHANGE FORUM NAME ******** if (req.getParameter("CHANGE_FORUM_NAME") != null) { // Lets get addForum parameters params = this.getRenameForumParameters(req, params); // Lets verify the parameters for the sql questions. params = super.verifyForSql(params); imcref.getExceptionUnhandlingDatabase().executeUpdateProcedure( "A_RenameForum", new String[] {params.getProperty( "FORUM_ID" ), params.getProperty( "NEW_FORUM_NAME" )} ); this.doGet(req, res); return; } // ********* SET SHOW_DISCUSSION_COUNTER ******** if (req.getParameter("SHOW_DISCUSSION_NBR") != null) { log("Lets set the nbr of discussions to show"); // Lets get addForum parameters params = this.getShowDiscussionNbrParameters(req, params); imcref.getExceptionUnhandlingDatabase().executeUpdateProcedure( "A_SetNbrOfDiscsToShow", new String[] {params.getProperty( "FORUM_ID" ), params.getProperty( "NBR_OF_DISCS_TO_SHOW" )} ); res.sendRedirect("ConfAdmin?ADMIN_TYPE=FORUM"); return; } } // DoPost
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/d057ca863273084a5224bf799ac53247a0f2f321/ConfAdmin.java/buggy/server/src/com/imcode/imcms/servlet/conference/ConfAdmin.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 741, 3349, 12, 2940, 18572, 1111, 16, 12446, 400, 13, 5411, 1216, 16517, 16, 1860, 288, 3639, 2177, 3748, 921, 729, 273, 13134, 18, 588, 19862, 1398, 1299, 12, 3658, 1769, 3639...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 741, 3349, 12, 2940, 18572, 1111, 16, 12446, 400, 13, 5411, 1216, 16517, 16, 1860, 288, 3639, 2177, 3748, 921, 729, 273, 13134, 18, 588, 19862, 1398, 1299, 12, 3658, 1769, 3639...
catch ( ValidationValueException e1 )
else
protected Map getParsedParameters( IViewerReportDesignHandle design, Collection parameterList, HttpServletRequest request, InputOptions options ) throws ReportServiceException { Map params = new HashMap( ); if ( parameterList == null || this.parametersAsString == null ) return params; for ( Iterator iter = parameterList.iterator( ); iter.hasNext( ); ) { ScalarParameterHandle parameter = null; Object parameterObj = iter.next( ); if ( parameterObj instanceof ScalarParameterHandle ) { parameter = (ScalarParameterHandle) parameterObj; } // if current object is not Scalar parameter handle, then skip it if ( parameter == null ) continue; String paramName = parameter.getName( ); Object paramValueObj = this.parametersAsString.get( paramName ); if ( paramValueObj != null ) { try { try { // Convert locale string to object paramValueObj = ParameterValidationUtil.validate( parameter.getDataType( ), parameter .getPattern( ), paramValueObj .toString( ), locale ); } catch ( ValidationValueException e1 ) { // Convert string to object using default local paramValueObj = ParameterValidationUtil .validate( parameter.getDataType( ), ParameterValidationUtil.DEFAULT_DATETIME_FORMAT, paramValueObj.toString( ) ); } params.put( paramName, paramValueObj ); } catch ( ValidationValueException e ) { // if in RUN mode, then throw exception directly if ( ParameterAccessor.SERVLET_PATH_RUN .equalsIgnoreCase( request.getServletPath( ) ) ) { this.exception = e; break; } } } else { params.put( paramName, null ); } } return params; }
12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/c402a69bbfa1b94f3bf40c66d93b00e0a1a42c4d/ViewerAttributeBean.java/buggy/viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/context/ViewerAttributeBean.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 1635, 25406, 2402, 12, 467, 18415, 4820, 15478, 3259, 8281, 16, 1082, 202, 2532, 1569, 682, 16, 9984, 590, 16, 1082, 202, 1210, 1320, 702, 262, 1216, 8706, 15133, 202, 95, 202,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 1117, 1635, 25406, 2402, 12, 467, 18415, 4820, 15478, 3259, 8281, 16, 1082, 202, 2532, 1569, 682, 16, 9984, 590, 16, 1082, 202, 1210, 1320, 702, 262, 1216, 8706, 15133, 202, 95, 202,...
filter = new AffineRable8Bit(filter, at); handleColorInterpolationFilters(filter, filterElement);
public Filter createFilter(BridgeContext ctx, Element filterElement, Element filteredElement, GraphicsNode filteredNode, Filter inputFilter, Rectangle2D filterRegion, Map filterMap) { // 'xlink:href' attribute String uriStr = XLinkSupport.getXLinkHref(filterElement); if (uriStr.length() == 0) { throw new BridgeException(filterElement, ERR_ATTRIBUTE_MISSING, new Object[] {"xlink:href"}); } // // According the the SVG specification, feImage behaves like // <image> if it references an SVG document or a raster image // and it behaves like a <use> if it references a document // fragment. // // To provide this behavior, depending on whether the uri // contains a fragment identifier, we create either an // <image> or a <use> element and request the corresponding // bridges to build the corresponding GraphicsNode for us. // // Then, we take care of the possible transformation needed // from objectBoundingBox space to user space. // Document document = filterElement.getOwnerDocument(); boolean isUse = (uriStr.indexOf("#") != -1); Element contentElement = null; if (isUse) { contentElement = document.createElementNS(SVG_NAMESPACE_URI, SVG_USE_TAG); } else { contentElement = document.createElementNS(SVG_NAMESPACE_URI, SVG_IMAGE_TAG); } contentElement.setAttributeNS(XLinkSupport.XLINK_NAMESPACE_URI, XMLConstants.XLINK_PREFIX + ":" + SVG_HREF_ATTRIBUTE, uriStr); Element proxyElement = document.createElementNS(SVG_NAMESPACE_URI, SVG_G_TAG); proxyElement.appendChild(contentElement); // feImage's default region is that of the filter chain. Rectangle2D defaultRegion = filterRegion; // Compute the transform from object bounding box to user // space if needed. AffineTransform at = new AffineTransform(); // 'primitiveUnits' attribute - default is userSpaceOnUse short coordSystemType; Element filterDefElement = (Element)(filterElement.getParentNode()); boolean isBBox = false; String s = SVGUtilities.getChainableAttributeNS (filterDefElement, null, SVG_PRIMITIVE_UNITS_ATTRIBUTE, ctx); if (s.length() == 0) { coordSystemType = SVGUtilities.USER_SPACE_ON_USE; } else { coordSystemType = SVGUtilities.parseCoordinateSystem (filterDefElement, SVG_PRIMITIVE_UNITS_ATTRIBUTE, s); } if (coordSystemType == SVGUtilities.OBJECT_BOUNDING_BOX) { isBBox = true; at = SVGUtilities.toObjectBBox(at, filteredNode); } // get filter primitive chain region Rectangle2D primitiveRegionUserSpace = SVGUtilities.convertFilterPrimitiveRegion(filterElement, filteredElement, filteredNode, defaultRegion, filterRegion, ctx); Rectangle2D primitiveRegion = primitiveRegionUserSpace; if (isBBox) { try { AffineTransform ati = at.createInverse(); primitiveRegion = ati.createTransformedShape(primitiveRegion).getBounds2D(); } catch (NoninvertibleTransformException nite) { // Should never happen, seem above throw new Error(); } } contentElement.setAttributeNS(null, SVG_X_ATTRIBUTE, "" + primitiveRegion.getX()); contentElement.setAttributeNS(null, SVG_Y_ATTRIBUTE, "" + primitiveRegion.getY()); contentElement.setAttributeNS(null, SVG_WIDTH_ATTRIBUTE, "" + primitiveRegion.getWidth()); contentElement.setAttributeNS(null, SVG_HEIGHT_ATTRIBUTE, "" + primitiveRegion.getHeight()); // System.err.println(">>>>>>>>>>>> primitiveRegion : " + primitiveRegion); // System.err.println(">>>>>>>>>>>> at : " + at); GraphicsNode node = ctx.getGVTBuilder().build(ctx, proxyElement); Filter filter = node.getGraphicsNodeRable(true); filter = new AffineRable8Bit(filter, at); // handle the 'color-interpolation-filters' property handleColorInterpolationFilters(filter, filterElement); filter = new PadRable8Bit(filter, primitiveRegionUserSpace, PadMode.ZERO_PAD); // update the filter Map updateFilterMap(filterElement, filter, filterMap); return filter; }
45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/4477fd045a545bba09c2d0c375bf84cd55f97c5b/SVGFeImageElementBridge.java/clean/sources/org/apache/batik/bridge/SVGFeImageElementBridge.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1034, 273, 394, 23906, 558, 54, 429, 28, 5775, 12, 2188, 16, 622, 1769, 282, 1640, 2957, 31516, 5422, 12, 2188, 16, 1034, 1046, 1769, 225, 1034, 273, 394, 23906, 558, 54, 429, 28, 5775, 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, 1034, 273, 394, 23906, 558, 54, 429, 28, 5775, 12, 2188, 16, 622, 1769, 282, 1640, 2957, 31516, 5422, 12, 2188, 16, 1034, 1046, 1769, 225, 1034, 273, 394, 23906, 558, 54, 429, 28, 5775, 12, ...
logger.debug("Caught an exception while logging in RingPlacer");
public void placeFusedRing(Ring ring, AtomContainer sharedAtoms, Point2d sharedAtomsCenter, Vector2d ringCenterVector, double bondLength ) { Point2d ringCenter = new Point2d(sharedAtomsCenter); double radius = getNativeRingRadius(ring, bondLength); double newRingPerpendicular = Math.sqrt(Math.pow(radius, 2) - Math.pow(bondLength/2, 2)); ringCenterVector.normalize(); if (debug) System.out.println("placeFusedRing->: ringCenterVector.length()" + ringCenterVector.length()); ringCenterVector.scale(newRingPerpendicular); ringCenter.add(ringCenterVector); Atom bondAtom1 = sharedAtoms.getAtomAt(0); Atom bondAtom2 = sharedAtoms.getAtomAt(1); Vector2d bondAtom1Vector = new Vector2d(bondAtom1.getPoint2D()); Vector2d bondAtom2Vector = new Vector2d(bondAtom2.getPoint2D()); Vector2d originRingCenterVector = new Vector2d(ringCenter); bondAtom1Vector.sub(originRingCenterVector); bondAtom2Vector.sub(originRingCenterVector); double occupiedAngle = bondAtom1Vector.angle(bondAtom2Vector); double remainingAngle = (2 * Math.PI) - occupiedAngle; double addAngle = remainingAngle / (ring.getRingSize()-1); if (debug) System.out.println("placeFusedRing->occupiedAngle: " + Math.toDegrees(occupiedAngle)); if (debug) System.out.println("placeFusedRing->remainingAngle: " + Math.toDegrees(remainingAngle)); if (debug) System.out.println("placeFusedRing->addAngle: " + Math.toDegrees(addAngle)); Atom startAtom; double centerX = ringCenter.x; double centerY = ringCenter.y; double xDiff = bondAtom1.getX2D() - bondAtom2.getX2D(); double yDiff = bondAtom1.getY2D() - bondAtom2.getY2D(); double startAngle;; int direction = 1; // if bond is vertical if (xDiff == 0) { if (debug) System.out.println("placeFusedRing->Bond is vertical"); //starts with the lower Atom if (bondAtom1.getY2D() > bondAtom2.getY2D()) { startAtom = bondAtom1; } else { startAtom = bondAtom2; } //changes the drawing direction if (centerX < bondAtom1.getX2D()) { direction = 1; } else { direction = -1; } } // if bond is not vertical else { //starts with the left Atom if (bondAtom1.getX2D() > bondAtom2.getX2D()) { startAtom = bondAtom1; } else { startAtom = bondAtom2; } //changes the drawing direction if (centerY - bondAtom1.getY2D() > (centerX - bondAtom1.getX2D()) * yDiff / xDiff) { direction = 1; } else { direction = -1; } } startAngle = GeometryTools.getAngle(startAtom.getX2D() - ringCenter.x, startAtom.getY2D() - ringCenter.y); Atom currentAtom = startAtom; // determine first bond in Ring int k = 0; for (k = 0; k < ring.getElectronContainerCount(); k++) { if (ring.getElectronContainerAt(k) instanceof Bond) break; } Bond currentBond = (Bond)sharedAtoms.getElectronContainerAt(k); Vector atomsToDraw = new Vector(); for (int i = 0; i < ring.getBondCount() - 2; i++) { currentBond = ring.getNextBond(currentBond, currentAtom); currentAtom = currentBond.getConnectedAtom(currentAtom); atomsToDraw.addElement(currentAtom); } addAngle = addAngle * direction; if (debug) { try { System.out.println("placeFusedRing->startAngle: " + Math.toDegrees(startAngle)); System.out.println("placeFusedRing->addAngle: " + Math.toDegrees(addAngle)); System.out.println("placeFusedRing->startAtom is: " + (molecule.getAtomNumber(startAtom) + 1)); System.out.println("AtomsToDraw: " + atomPlacer.listNumbers(molecule, atomsToDraw)); } catch(Exception exc) { } } atomPlacer.populatePolygonCorners(atomsToDraw, ringCenter, startAngle, addAngle, radius); }
45254 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45254/ef5fe2d9d843d2cbe1f19850d54d98bf9a2b523f/RingPlacer.java/buggy/src/org/openscience/cdk/layout/RingPlacer.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 4901, 18, 4148, 2932, 24512, 392, 1520, 1323, 2907, 316, 25463, 1749, 10598, 8863, 1194, 18, 4148, 2932, 24512, 392, 1520, 1323, 2907, 316, 25463, 1749, 10598, 8863, 918, 4901, 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, 482, 4901, 18, 4148, 2932, 24512, 392, 1520, 1323, 2907, 316, 25463, 1749, 10598, 8863, 1194, 18, 4148, 2932, 24512, 392, 1520, 1323, 2907, 316, 25463, 1749, 10598, 8863, 918, 4901, 18...
{ super.log(msg) ; }
{ super.log(msg) ; }
public void log(String msg) { //if(msg == null)msg="null"; super.log(msg) ; //System.out.println("PostCardServlet: " + msg) ; }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/a270627916b37a677a391dd9f45c54d3d6f12503/PostcardServlet.java/buggy/servlets/PostcardServlet.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 613, 12, 780, 1234, 13, 202, 95, 202, 202, 759, 430, 12, 3576, 422, 446, 13, 3576, 1546, 2011, 14432, 202, 202, 9565, 18, 1330, 12, 3576, 13, 274, 202, 202, 759, 3163, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 225, 202, 482, 918, 613, 12, 780, 1234, 13, 202, 95, 202, 202, 759, 430, 12, 3576, 422, 446, 13, 3576, 1546, 2011, 14432, 202, 202, 9565, 18, 1330, 12, 3576, 13, 274, 202, 202, 759, 3163, ...
public Set execute( MavenProject project ) throws Exception
public Set execute( MavenProject project, PluginDescriptor pluginDescriptor ) throws PluginToolsException
public Set execute( MavenProject project ) throws Exception { Map scriptFilesKeyedByBasedir = gatherScriptSourcesByBasedir( project.getScriptSourceRoots(), getScriptFileExtension() ); Set mojoDescriptors = extractMojoDescriptors( scriptFilesKeyedByBasedir ); return mojoDescriptors; }
48791 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48791/24c6328ad361f8e709e2b3fddefd9cde220a0628/AbstractScriptedMojoDescriptorExtractor.java/buggy/maven-plugin-tools/maven-plugin-tools-api/src/main/java/org/apache/maven/tools/plugin/extractor/AbstractScriptedMojoDescriptorExtractor.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 1000, 1836, 12, 17176, 4109, 1984, 262, 3639, 1216, 1185, 565, 288, 3639, 1635, 2728, 2697, 653, 18696, 2171, 1214, 273, 11090, 3651, 8628, 858, 2171, 1214, 12, 1984, 18, 588, 3651, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1000, 1836, 12, 17176, 4109, 1984, 262, 3639, 1216, 1185, 565, 288, 3639, 1635, 2728, 2697, 653, 18696, 2171, 1214, 273, 11090, 3651, 8628, 858, 2171, 1214, 12, 1984, 18, 588, 3651, ...
public boolean isSet(org.quickfix.field.LegSecurityAltID field)
public boolean isSet(quickfix.field.LegSecurityAltID field)
public boolean isSet(org.quickfix.field.LegSecurityAltID field) { return isSetField(field); }
8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/QuoteResponse.java/buggy/src/java/src/quickfix/fix44/QuoteResponse.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 13532, 12, 19525, 904, 18, 1518, 18, 8329, 4368, 10655, 734, 652, 13, 225, 288, 327, 13532, 974, 12, 1518, 1769, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 13532, 12, 19525, 904, 18, 1518, 18, 8329, 4368, 10655, 734, 652, 13, 225, 288, 327, 13532, 974, 12, 1518, 1769, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
Map fm = makeFullMap();
resetFull();
public void testMapIsEmpty() { Map em = makeEmptyMap(); assertEquals("Map.isEmpty() should return true with an empty map", true, em.isEmpty()); Map fm = makeFullMap(); assertEquals("Map.isEmpty() should return false with a non-empty map", false, fm.isEmpty()); }
55609 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55609/326f500bb3e288c361bbe80b41c0e22397ba3ab5/TestMap.java/buggy/src/test/org/apache/commons/collections/TestMap.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 863, 2520, 1921, 1435, 288, 3639, 1635, 801, 273, 1221, 1921, 863, 5621, 3639, 1815, 8867, 2932, 863, 18, 291, 1921, 1435, 1410, 327, 638, 598, 392, 1008, 852, 3113, 8227...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1842, 863, 2520, 1921, 1435, 288, 3639, 1635, 801, 273, 1221, 1921, 863, 5621, 3639, 1815, 8867, 2932, 863, 18, 291, 1921, 1435, 1410, 327, 638, 598, 392, 1008, 852, 3113, 8227...
dropped = (ClientRequest) completedUnackedRequests.pop();
public void finishedClientRequest(ClientRequest get) { ClientRequest dropped = null; synchronized(this) { if(runningPersistentRequests.remove(get)) completedUnackedRequests.push(get); if(completedUnackedRequests.size() > MAX_UNACKED_REQUESTS) { clientRequestsByIdentifier.remove(dropped.getIdentifier()); dropped = (ClientRequest) completedUnackedRequests.pop(); } } if(dropped != null) { dropped.dropped(); } if(get.isPersistentForever()) server.forceStorePersistentRequests(); }
50287 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50287/3175efee7104e8dc04680cf36febcfbe13f79918/FCPClient.java/buggy/src/freenet/node/fcp/FCPClient.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 6708, 1227, 691, 12, 1227, 691, 336, 13, 288, 202, 202, 1227, 691, 14611, 273, 446, 31, 202, 202, 22043, 12, 2211, 13, 288, 1082, 202, 430, 12, 8704, 11906, 6421, 18, 4...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 918, 6708, 1227, 691, 12, 1227, 691, 336, 13, 288, 202, 202, 1227, 691, 14611, 273, 446, 31, 202, 202, 22043, 12, 2211, 13, 288, 1082, 202, 430, 12, 8704, 11906, 6421, 18, 4...
public JarURLConnection(URL url)
protected JarURLConnection(URL url)
public JarURLConnection(URL url) throws MalformedURLException { super(url); String spec = url.getFile(); int bang = spec.indexOf ("!/", 0); if (bang == -1) throw new MalformedURLException (url + ": No `!/' in spec."); // Extact the url for the jar itself. jarFileURL = new URL(spec.substring (0, bang)); // Get the name of the element, if any. element = (bang+2==spec.length() ? null : spec.substring (bang+2)); }
1739 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1739/36e953e19158aa2f7e16ad8534450b58f07fea36/JarURLConnection.java/clean/libjava/java/net/JarURLConnection.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 15644, 14790, 12, 1785, 880, 13, 565, 1216, 20710, 225, 288, 565, 2240, 12, 718, 1769, 565, 514, 857, 273, 880, 18, 29925, 5621, 565, 509, 324, 539, 273, 857, 18, 31806, 7566, 5, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 4750, 15644, 14790, 12, 1785, 880, 13, 565, 1216, 20710, 225, 288, 565, 2240, 12, 718, 1769, 565, 514, 857, 273, 880, 18, 29925, 5621, 565, 509, 324, 539, 273, 857, 18, 31806, 7566, 5, ...
public Object getMetadataValue(String id, String field)
Object getMetadataValue(String id, String field)
public Object getMetadataValue(String id, String field) throws FormatException, IOException;
11426 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11426/5601d0fdf7c2300f9d63c82179cfb05d9ddcf080/IFormatReader.java/clean/loci/formats/IFormatReader.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1033, 11159, 620, 12, 780, 612, 16, 514, 652, 13, 565, 1216, 4077, 503, 16, 1860, 31, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 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, 1033, 11159, 620, 12, 780, 612, 16, 514, 652, 13, 565, 1216, 4077, 503, 16, 1860, 31, 2, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, -100, ...
indexDocument.add( unStoredKeyword( "keyword", documentKeyword ) );
indexDocument.add( unStoredKeyword( FIELD__KEYWORD, documentKeyword ) );
private Document createIndexDocument( DocumentDomainObject document ) { Document indexDocument = new Document(); int documentId = document.getId(); indexDocument.add( Field.Keyword( "meta_id", "" + documentId ) ); indexDocument.add( Field.UnStored( "meta_headline", document.getHeadline() ) ); indexDocument.add( Field.UnStored( "meta_text", document.getMenuText() ) ); indexDocument.add( unStoredKeyword( "doc_type_id", "" + document.getDocumentTypeId() ) ); SectionDomainObject[] sections = document.getSections(); for ( int i = 0; i < sections.length; i++ ) { SectionDomainObject section = sections[i]; indexDocument.add( unStoredKeyword( "section", section.getName() ) ); } if ( null != document.getCreatedDatetime() ) { try { indexDocument.add( unStoredKeyword( "created_datetime", document.getCreatedDatetime() ) ); } catch ( RuntimeException re ) { log.warn( "Indexing document " + documentId, re ); } } addDateField( documentId, indexDocument, "modified_datetime", document.getModifiedDatetime() ); addDateField( documentId, indexDocument, "activated_datetime", document.getPublicationStartDatetime() ); addDateField( documentId, indexDocument, "publication_start_datetime", document.getPublicationStartDatetime() ); addDateField( documentId, indexDocument, "publication_end_datetime", document.getPublicationEndDatetime() ); addDateField( documentId, indexDocument, "archived_datetime", document.getArchivedDatetime() ); indexDocument.add( unStoredKeyword( "status", "" + document.getStatus() ) ); Iterator textsIterator = ApplicationServer.getIMCServiceInterface().getDocumentMapper() .getTexts( documentId ).entrySet().iterator(); while ( textsIterator.hasNext() ) { Map.Entry textEntry = (Map.Entry)textsIterator.next(); String textIndexString = (String)textEntry.getKey(); TextDocumentDomainObject.Text text = (TextDocumentDomainObject.Text)textEntry.getValue(); indexDocument.add( Field.UnStored( "text", text.getText() ) ); indexDocument.add( Field.UnStored( "text" + textIndexString, text.getText() ) ); } CategoryDomainObject[] categories = document.getCategories(); for ( int i = 0; i < categories.length; i++ ) { CategoryDomainObject category = categories[i]; indexDocument.add( unStoredKeyword( "category_id", "" + category.getId() ) ); } String[] documentKeywords = document.getKeywords(); for ( int i = 0; i < documentKeywords.length; i++ ) { String documentKeyword = documentKeywords[i]; indexDocument.add( unStoredKeyword( "keyword", documentKeyword ) ); } DocumentMapper documentMapper = ApplicationServer.getIMCServiceInterface().getDocumentMapper(); String[][] parentDocumentAndMenuIds = documentMapper.getParentDocumentAndMenuIdsForDocument( document ); for ( int i = 0; i < parentDocumentAndMenuIds.length; i++ ) { String parentId = parentDocumentAndMenuIds[i][0]; String menuId = parentDocumentAndMenuIds[i][1]; indexDocument.add( unStoredKeyword( "parent_id", parentId ) ); indexDocument.add( unStoredKeyword( "parent_menu_id", parentId + "_" + menuId ) ); } return indexDocument; }
8781 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8781/a0aecf80c6e8535276f1dd5ff342749a8715baf4/DocumentIndex.java/buggy/server/src/imcode/server/document/DocumentIndex.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 4319, 25207, 2519, 12, 4319, 3748, 921, 1668, 262, 288, 3639, 4319, 770, 2519, 273, 394, 4319, 5621, 3639, 509, 28573, 273, 1668, 18, 26321, 5621, 3639, 770, 2519, 18, 1289, 12, 228...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 4319, 25207, 2519, 12, 4319, 3748, 921, 1668, 262, 288, 3639, 4319, 770, 2519, 273, 394, 4319, 5621, 3639, 509, 28573, 273, 1668, 18, 26321, 5621, 3639, 770, 2519, 18, 1289, 12, 228...
public List getServers(String capability, String coordSys){ List servers = getServers(capability); ArrayList retservers = new ArrayList(); for ( int i = 0 ; i < servers.size() ; i++ ) { SpiceDasSource ds = (SpiceDasSource)servers.get(i); if ( ds.getStatus()) { if ( hasCoordSys(coordSys,ds)) { retservers.add(ds); } } } return retservers ;
public List getServers(){ return activeservers ;
public List getServers(String capability, String coordSys){ List servers = getServers(capability); ArrayList retservers = new ArrayList(); for ( int i = 0 ; i < servers.size() ; i++ ) { SpiceDasSource ds = (SpiceDasSource)servers.get(i); if ( ds.getStatus()) { if ( hasCoordSys(coordSys,ds)) { retservers.add(ds); } } } return retservers ; }
52521 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52521/29ac5ef5d4ce1bd4e0e3e4754d1b08a792c3910e/RegistryConfiguration.java/buggy/src/org/biojava/spice/Config/RegistryConfiguration.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 987, 336, 11913, 12, 780, 12593, 16, 514, 2745, 12712, 15329, 202, 682, 7084, 273, 336, 11913, 12, 13568, 1769, 202, 19558, 325, 14247, 273, 394, 2407, 5621, 202, 1884, 261, 509, 27...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 987, 336, 11913, 12, 780, 12593, 16, 514, 2745, 12712, 15329, 202, 682, 7084, 273, 336, 11913, 12, 13568, 1769, 202, 19558, 325, 14247, 273, 394, 2407, 5621, 202, 1884, 261, 509, 27...
}
}
public TreePath getPathForRow(int row) { //TODO return null; } // getPathForRow()
50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/e8834e60eedea5a65712de1e0c0fa2d875e22b9c/FixedHeightLayoutCache.java/clean/core/src/classpath/javax/javax/swing/tree/FixedHeightLayoutCache.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 4902, 743, 4339, 1290, 1999, 12, 474, 1027, 13, 202, 95, 202, 202, 759, 6241, 202, 202, 2463, 446, 31, 202, 97, 368, 4339, 1290, 1999, 1435, 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, 4902, 743, 4339, 1290, 1999, 12, 474, 1027, 13, 202, 95, 202, 202, 759, 6241, 202, 202, 2463, 446, 31, 202, 97, 368, 4339, 1290, 1999, 1435, 2, -100, -100, -100, -100, -100, ...
public synchronized void addPropertyChangeListener(java.beans.PropertyChangeListener listener) { getPropertyChange().addPropertyChangeListener(listener); }
public synchronized void addPropertyChangeListener(PropertyChangeListener listener) { getPropertyChange().addPropertyChangeListener(listener); }
public synchronized void addPropertyChangeListener(java.beans.PropertyChangeListener listener) { getPropertyChange().addPropertyChangeListener(listener);}
17033 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17033/fe51ee9558d5e044a610f65a6bea1f3dfea18c5f/VAJBuildInfo.java/clean/src/main/org/apache/tools/ant/taskdefs/optional/ide/VAJBuildInfo.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 3852, 918, 14324, 15744, 12, 6290, 18, 2196, 634, 18, 1396, 15744, 2991, 13, 288, 202, 588, 1396, 3043, 7675, 1289, 1396, 15744, 12, 12757, 1769, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 3852, 918, 14324, 15744, 12, 6290, 18, 2196, 634, 18, 1396, 15744, 2991, 13, 288, 202, 588, 1396, 3043, 7675, 1289, 1396, 15744, 12, 12757, 1769, 97, 2, -100, -100, -100, -100, -100, -10...
return systemsURL + "?"+JOB_ID_PARAM +"=" + jobID;
return systemsURL + "?"+ Constants.JOB_ID_PARAM +"=" + jobID;
public String createJobAddress(String jobID) { return systemsURL + "?"+JOB_ID_PARAM +"=" + jobID; }
4987 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4987/b22489a8fbf4fa057986496d269dacbb13e526a7/JobRepository.java/buggy/core/components/deployapi/src/org/smartfrog/services/deployapi/engine/JobRepository.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 752, 2278, 1887, 12, 780, 28913, 13, 288, 3639, 327, 14908, 1785, 397, 13574, 15, 5245, 18, 18321, 67, 734, 67, 8388, 397, 6, 1546, 397, 28913, 31, 565, 289, 2, 0, 0, 0, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 752, 2278, 1887, 12, 780, 28913, 13, 288, 3639, 327, 14908, 1785, 397, 13574, 15, 5245, 18, 18321, 67, 734, 67, 8388, 397, 6, 1546, 397, 28913, 31, 565, 289, 2, -100, -100, ...
return c1.compareTo(c2);
if (c1 != null) { if (c2 == null) { return 1; } return c1.compareTo(c2); } else if (c2 != null) { return -1; } return 0;
public Comparator getComparator(final String columnId, final Locale locale) { return new Comparator() { /** * @see java.util.Comparator#compare(java.lang.Object, java.lang.Object) */ public int compare(Object o1, Object o2) { CmsListColumnDefinition col = ((CmsListItem)o1).getMetadata().getColumnDefinition(columnId); if (col.getDirectActions().size()>0) { I_CmsListDirectAction action = (I_CmsListDirectAction)col.getDirectActions().get(0); CmsListItem tmp = action.getItem(); action.setItem((CmsListItem)o1); String i1 = action.getIconPath(); action.setItem((CmsListItem)o2); String i2 = action.getIconPath(); action.setItem(tmp); return i1.compareTo(i2); } else { Comparable c1 = (Comparable)((CmsListItem)o1).get(columnId); Comparable c2 = (Comparable)((CmsListItem)o2).get(columnId); return c1.compareTo(c2); } } }; }
51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/dd1de739e472ad91ca1cf2a12f1f0e99ddff5d6d/CmsListItemActionIconComparator.java/buggy/src/org/opencms/workplace/list/CmsListItemActionIconComparator.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 13359, 336, 5559, 12, 6385, 514, 1057, 548, 16, 727, 6458, 2573, 13, 288, 7734, 327, 394, 13359, 1435, 288, 5411, 1783, 2398, 380, 632, 5946, 2252, 18, 1367, 18, 5559, 7, 9877, 12...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 13359, 336, 5559, 12, 6385, 514, 1057, 548, 16, 727, 6458, 2573, 13, 288, 7734, 327, 394, 13359, 1435, 288, 5411, 1783, 2398, 380, 632, 5946, 2252, 18, 1367, 18, 5559, 7, 9877, 12...
private boolean readSpec () { InputStream input; try { input = ResourceManager.getInstance().getInputStream (SPEC_RESOURCE_NAME); } catch (Exception e) { e.printStackTrace(); return false; } StdXMLParser parser = new StdXMLParser (); parser.setBuilder (new StdXMLBuilder ()); parser.setValidator (new NonValidator ()); try { parser.setReader (new StdXMLReader (input)); this.spec = (XMLElement) parser.parse(); } catch (Exception e) { System.err.println ("Error parsing XML specification for processing."); System.err.println (e.toString ()); return false; } if (! this.spec.hasChildren ()) return false; for (Iterator job_it = this.spec.getChildrenNamed("job").iterator(); job_it.hasNext(); ) { XMLElement job_el = (XMLElement)job_it.next (); // first check OS constraints - skip jobs not suited for this OS List constraints = OsConstraint.getOsList (job_el); if (OsConstraint.oneMatchesCurrentSystem(constraints)) { List ef_list = new ArrayList (); String job_name = job_el.getAttribute("name", ""); for (Iterator ef_it = job_el.getChildrenNamed("executefile").iterator (); ef_it.hasNext(); ) { XMLElement ef = (XMLElement)ef_it.next(); String ef_name = ef.getAttribute("name"); if ((ef_name == null) || (ef_name.length() == 0)) { System.err.println ("missing \"name\" attribute for <executefile>"); return false; } List args = new ArrayList (); for (Iterator arg_it = ef.getChildrenNamed("arg").iterator(); arg_it.hasNext();) { XMLElement arg_el = (XMLElement)arg_it.next(); String arg_val = arg_el.getContent(); args.add (arg_val); } ef_list.add (new ExecutableFile (ef_name, args)); } this.jobs.add (new ProcessingJob (job_name, ef_list)); } } return true; }
58440 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58440/47db88bfea6b64e47a33aa3c937b2ce6e8640d56/ProcessPanelWorker.java/buggy/izpack-src/trunk/src/lib/com/izforge/izpack/installer/ProcessPanelWorker.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 3238, 1250, 855, 1990, 1832, 225, 288, 202, 202, 4348, 810, 31, 202, 202, 698, 202, 202, 95, 1082, 202, 2630, 273, 2591, 1318, 18, 588, 1442, 7675, 588, 4348, 261, 13847, 67, 11395, 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, 282, 3238, 1250, 855, 1990, 1832, 225, 288, 202, 202, 4348, 810, 31, 202, 202, 698, 202, 202, 95, 1082, 202, 2630, 273, 2591, 1318, 18, 588, 1442, 7675, 588, 4348, 261, 13847, 67, 11395, 67,...
StringBuffer sb = new StringBuffer("AspectManager@");
StringBuffer sb = new StringBuffer("AspectManager::");
public String toString() { StringBuffer sb = new StringBuffer("AspectManager@"); sb.append(this.hashCode()); sb.append("[").append(m_definition.getUuid()); sb.append(" @ ").append(Util.classLoaderToString(m_system.getDefiningClassLoader())); sb.append("]"); return sb.toString(); }
7954 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7954/d5e197ef8f75f0727fecb1a5da61a9df81c6b2db/AspectManager.java/buggy/aspectwerkz3/src/main/org/codehaus/aspectwerkz/aspect/management/AspectManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 514, 1762, 1435, 288, 3639, 6674, 2393, 273, 394, 6674, 2932, 17468, 1318, 30, 2773, 1769, 3639, 2393, 18, 6923, 12, 2211, 18, 2816, 1085, 10663, 3639, 2393, 18, 6923, 2932, 9614, 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, 1071, 514, 1762, 1435, 288, 3639, 6674, 2393, 273, 394, 6674, 2932, 17468, 1318, 30, 2773, 1769, 3639, 2393, 18, 6923, 12, 2211, 18, 2816, 1085, 10663, 3639, 2393, 18, 6923, 2932, 9614, 2...
{ return 0; }
{ Point p = new Point(x, y); int tabCount = tabPane.getTabCount(); int currRun = 1; for (int i = 0; i < runCount; i++) { int first = lastTabInRun(tabCount, getPreviousTabRun(currRun)) + 1; if (first == tabCount) first = 0; int last = lastTabInRun(tabCount, currRun); for (int j = first; j <= last; j++) { if (getTabBounds(pane, j).contains(p)) return j; } currRun = getNextTabRun(currRun); } return -1; }
public int tabForCoordinate(JTabbedPane pane, int x, int y) { return 0; }
45163 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45163/14511e3ad21013e92c6399b2bd2ec09a8263e33a/BasicTabbedPaneUI.java/clean/libjava/javax/swing/plaf/basic/BasicTabbedPaneUI.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 3246, 1290, 13503, 12, 46, 5661, 2992, 8485, 13618, 16, 509, 619, 16, 509, 677, 13, 565, 288, 202, 2463, 374, 31, 565, 289, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 509, 3246, 1290, 13503, 12, 46, 5661, 2992, 8485, 13618, 16, 509, 619, 16, 509, 677, 13, 565, 288, 202, 2463, 374, 31, 565, 289, 2, -100, -100, -100, -100, -100, -100, -100, -100,...
return ruby.getRubyClass("JavaObject");
return null;
public static RubyModule getRubyClass(Ruby ruby, Class javaClass) { Map classMap = (Map)loadedClassMap.get(ruby); if (classMap != null) { RubyModule rubyClass = (RubyModule)classMap.get(javaClass); return rubyClass != null ? rubyClass : ruby.getRubyClass("JavaObject"); } return ruby.getRubyClass("JavaObject"); }
50993 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50993/4dd998b9c4d1045cac5a54d7601156dae6301fae/RubyJavaObject.java/buggy/org/jruby/RubyJavaObject.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 760, 19817, 3120, 4170, 10340, 797, 12, 54, 10340, 22155, 16, 1659, 2252, 797, 13, 288, 3639, 1635, 29835, 273, 261, 863, 13, 4230, 797, 863, 18, 588, 12, 27768, 1769, 3639, 309, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3120, 4170, 10340, 797, 12, 54, 10340, 22155, 16, 1659, 2252, 797, 13, 288, 3639, 1635, 29835, 273, 261, 863, 13, 4230, 797, 863, 18, 588, 12, 27768, 1769, 3639, 309, ...
Symbol symbol = (Symbol) symbolTable.get(name);
Symbol symbol = symbolTable.get(name);
private void dumpComponentAsHTML(PrintStream out, String name) { Symbol symbol = (Symbol) symbolTable.get(name); out.println("<table border=1>"); // out.println("<table border=1 width=\"%80\">"); out.print(" <tr><th bgcolor=\"#CCCCFF\" colspan=2>"); // out.print("<a href="") out.print(name); out.print("</a>"); out.println("</td></tr>"); out .println(" <tr><th bgcolor=\"#CCCCFF\">Property</th><th bgcolor=\"#CCCCFF\"> Value</th></tr>"); Registry registry = symbol.getRegistry(); Collection propertyNames = registry.getRegisteredProperties(); PropertySheet properties = symbol.getPropertySheet(); for (Iterator j = propertyNames.iterator(); j.hasNext();) { String propName = (String) j.next(); out.print(" <tr><th align=\"leftt\">" + propName + "</th>"); Object obj; try { obj = properties.getRaw(propName); } catch (PropertyException e) { // this exception can occcur if a global name // can't be resolved ... obj = "[Unresolved!]"; out.println("<td>" + obj + "</td></tr>"); } if (obj instanceof String) { out.println("<td>" + obj + "</td></tr>"); } else if (obj instanceof List) { List l = (List) obj; out.println(" <td><ul>"); for (Iterator k = l.iterator(); k.hasNext();) { out.println(" <li>" + k.next() + "</li>"); } out.println(" </ul></td>"); } else { out.println("<td>DEFAULT</td></tr>"); } } out.println("</table><br>"); }
47105 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47105/13ad140ab718f86203f8e83ff9849b83b918dd82/ConfigurationManager.java/clean/sphinx4/src/sphinx4/edu/cmu/sphinx/util/props/ConfigurationManager.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 4657, 1841, 1463, 4870, 12, 5108, 1228, 596, 16, 514, 508, 13, 288, 3639, 8565, 3273, 273, 26086, 18, 588, 12, 529, 1769, 3639, 596, 18, 8222, 2932, 32, 2121, 5795, 33, 21, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1...
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 3238, 918, 4657, 1841, 1463, 4870, 12, 5108, 1228, 596, 16, 514, 508, 13, 288, 3639, 8565, 3273, 273, 26086, 18, 588, 12, 529, 1769, 3639, 596, 18, 8222, 2932, 32, 2121, 5795, 33, 21, ...
throw new UnsupportedOperationException("Method 'getSubClasses' is not supported by implementation");
return this.subClasses;
public Set getSubClasses() { throw new UnsupportedOperationException("Method 'getSubClasses' is not supported by implementation"); }
52953 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52953/a6a41108e646da8f8b6d8ad210df68ab7657320c/GrailsHibernateDomainClass.java/clean/src/persistence/org/codehaus/groovy/grails/orm/hibernate/GrailsHibernateDomainClass.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 225, 202, 482, 1000, 7040, 4818, 1435, 288, 202, 202, 12849, 394, 13172, 2932, 1305, 296, 588, 1676, 4818, 11, 353, 486, 3260, 635, 4471, 8863, 202, 97, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 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, 1000, 7040, 4818, 1435, 288, 202, 202, 12849, 394, 13172, 2932, 1305, 296, 588, 1676, 4818, 11, 353, 486, 3260, 635, 4471, 8863, 202, 97, 2, -100, -100, -100, -100, -100, -100, ...
boolean manualViewControl = manualControl(); if (!manualViewControl && hasBinding("manualViewControl")) { manualViewControl = ((Boolean)valueForBinding("manualViewControl")).booleanValue(); } return manualViewControl; }
boolean manualViewControl = manualControl(); if (!manualViewControl && hasBinding("manualViewControl")) { manualViewControl = ((Boolean) valueForBinding("manualViewControl")).booleanValue(); } return manualViewControl; }
public boolean manualViewControl() { boolean manualViewControl = manualControl(); if (!manualViewControl && hasBinding("manualViewControl")) { manualViewControl = ((Boolean)valueForBinding("manualViewControl")).booleanValue(); } return manualViewControl; }
17168 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17168/18cd1e043ec46b2050d90832a89d9f0a7a16da82/AjaxInPlace.java/clean/Ajax/Ajax/Sources/er/ajax/AjaxInPlace.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 282, 1071, 1250, 11297, 1767, 3367, 1435, 288, 202, 225, 1250, 11297, 1767, 3367, 273, 11297, 3367, 5621, 202, 225, 309, 16051, 19840, 1767, 3367, 597, 711, 5250, 2932, 19840, 1767, 3367, 6, 371...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 11297, 1767, 3367, 1435, 288, 202, 225, 1250, 11297, 1767, 3367, 273, 11297, 3367, 5621, 202, 225, 309, 16051, 19840, 1767, 3367, 597, 711, 5250, 2932, 19840, 1767, 3367, 6, 371...
_log.info("Client " + _dest + " is no longer local, so no more republishing their leaseSet");
if (_log.shouldLog(Log.INFO)) _log.info("Client " + _dest + " is no longer local, so no more republishing their leaseSet");
public void runJob() { try { if (getContext().clientManager().isLocal(_dest)) { LeaseSet ls = _facade.lookupLeaseSetLocally(_dest); if (ls != null) { _log.warn("Client " + _dest + " is local, so we're republishing it"); if (!ls.isCurrent(Router.CLOCK_FUDGE_FACTOR)) { _log.warn("Not publishing a LOCAL lease that isn't current - " + _dest, new Exception("Publish expired LOCAL lease?")); } else { getContext().jobQueue().addJob(new StoreJob(getContext(), _facade, _dest, ls, new OnSuccess(getContext()), new OnFailure(getContext()), REPUBLISH_LEASESET_TIMEOUT)); } } else { _log.warn("Client " + _dest + " is local, but we can't find a valid LeaseSet? perhaps its being rebuilt?"); } requeue(REPUBLISH_LEASESET_DELAY); return; } else { _log.info("Client " + _dest + " is no longer local, so no more republishing their leaseSet"); } _facade.stopPublishing(_dest); } catch (RuntimeException re) { _log.error("Uncaught error republishing the leaseSet", re); _facade.stopPublishing(_dest); throw re; } }
27437 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27437/bc626ece2d2f61e1246a0c597f733962ed58b0db/RepublishLeaseSetJob.java/clean/router/java/src/net/i2p/router/networkdb/kademlia/RepublishLeaseSetJob.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 377, 1071, 918, 1086, 2278, 1435, 288, 3639, 775, 288, 5411, 309, 261, 29120, 7675, 2625, 1318, 7675, 291, 2042, 24899, 10488, 3719, 288, 7734, 23175, 694, 7180, 273, 389, 507, 5065, 18, 8664, ...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 1086, 2278, 1435, 288, 3639, 775, 288, 5411, 309, 261, 29120, 7675, 2625, 1318, 7675, 291, 2042, 24899, 10488, 3719, 288, 7734, 23175, 694, 7180, 273, 389, 507, 5065, 18, 8664, ...
}
}
public void publishProject(CmsUser user, int projectId, CmsProject onlineProject) throws CmsException{ CmsAccessFilesystem discAccess = new CmsAccessFilesystem(m_exportpointStorage); CmsFolder currentFolder = null; CmsFile currentFile = null; CmsFolder newFolder = null; Vector offlineFolders; Vector offlineFiles; Vector deletedFolders = new Vector(); // folderIdIndex: offlinefolderId | onlinefolderId Hashtable folderIdIndex = new Hashtable(); // read all folders in offlineProject offlineFolders = readFolders(projectId); for (int i = 0; i < offlineFolders.size(); i++) { currentFolder = ((CmsFolder) offlineFolders.elementAt(i)); // C_STATE_DELETE if (currentFolder.getState() == C_STATE_DELETED) { deletedFolders.addElement(currentFolder); // C_STATE_NEW } else if (currentFolder.getState() == C_STATE_NEW) { // export to filesystem if necessary String exportKey = checkExport(currentFolder.getAbsolutePath()); if (exportKey != null) { discAccess.createFolder(currentFolder.getAbsolutePath(), exportKey); } // get parentId for onlineFolder either from folderIdIndex or from the database Integer parentId = (Integer) folderIdIndex.get(new Integer(currentFolder.getParentId())); if (parentId == null) { CmsFolder currentOnlineParent = readFolder(onlineProject.getId(), currentFolder.getParent()); parentId = new Integer(currentOnlineParent.getResourceId()); folderIdIndex.put(new Integer(currentFolder.getParentId()), parentId); } // create the new folder and insert its id in the folderindex try { newFolder = createFolder(user, onlineProject, onlineProject, currentFolder, parentId.intValue(), currentFolder.getAbsolutePath()); newFolder.setState(C_STATE_UNCHANGED); writeFolder(onlineProject, newFolder, false); } catch (CmsException e) { if (e.getType() == CmsException.C_FILE_EXISTS) { // the folder already exists CmsFolder onlineFolder = null; try { onlineFolder = readFolder(onlineProject.getId(), currentFolder.getAbsolutePath()); } catch (CmsException exc) { throw exc; } // end of catch PreparedStatement statement = null; Connection con = null; try { con = DriverManager.getConnection(m_poolName); // update the onlineFolder with data from offlineFolder statement = con.prepareStatement(m_cq.C_RESOURCES_UPDATE); statement.setInt(1, currentFolder.getType()); statement.setInt(2, currentFolder.getFlags()); statement.setInt(3, currentFolder.getOwnerId()); statement.setInt(4, currentFolder.getGroupId()); statement.setInt(5, onlineFolder.getProjectId()); statement.setInt(6, currentFolder.getAccessFlags()); statement.setInt(7, C_STATE_UNCHANGED); statement.setInt(8, currentFolder.isLockedBy()); statement.setInt(9, currentFolder.getLauncherType()); statement.setString(10, currentFolder.getLauncherClassname()); statement.setTimestamp(11, new Timestamp(System.currentTimeMillis())); statement.setInt(12, currentFolder.getResourceLastModifiedBy()); statement.setInt(13, 0); statement.setInt(14, currentFolder.getFileId()); statement.setInt(15, onlineFolder.getResourceId()); statement.executeUpdate(); newFolder = readFolder(onlineProject.getId(), currentFolder.getAbsolutePath()); } catch (SQLException sqle) { throw new CmsException("[" + this.getClass().getName() + "] " + sqle.getMessage(), CmsException.C_SQL_ERROR, sqle); } finally { if(statement != null) { try { statement.close(); } catch(SQLException exc) { // nothing to do here } } if(con != null) { try { con.close(); } catch(SQLException exc) { // nothing to do here } } } } else { throw e; } } folderIdIndex.put(new Integer(currentFolder.getResourceId()), new Integer(newFolder.getResourceId())); // copy properties try { Hashtable props = readAllProperties(currentFolder.getResourceId(), currentFolder.getType()); writeProperties(props, newFolder.getResourceId(), newFolder.getType()); } catch (CmsException exc) { if (A_OpenCms.isLogging()) { A_OpenCms.log(I_CmsLogChannels.C_OPENCMS_INFO, "[CmsDbAccess] error publishing, copy properties for " + newFolder.toString() + " Message= " + exc.getMessage()); } } // C_STATE_CHANGED } else if (currentFolder.getState() == C_STATE_CHANGED) { // export to filesystem if necessary String exportKey = checkExport(currentFolder.getAbsolutePath()); if (exportKey != null) { discAccess.createFolder(currentFolder.getAbsolutePath(), exportKey); } CmsFolder onlineFolder = null; try { onlineFolder = readFolder(onlineProject.getId(), currentFolder.getAbsolutePath()); } catch (CmsException exc) { // if folder does not exist create it if (exc.getType() == CmsException.C_NOT_FOUND) { // get parentId for onlineFolder either from folderIdIndex or from the database Integer parentId = (Integer) folderIdIndex.get(new Integer(currentFolder.getParentId())); if (parentId == null) { CmsFolder currentOnlineParent = readFolder(onlineProject.getId(), currentFolder.getParent()); parentId = new Integer(currentOnlineParent.getResourceId()); folderIdIndex.put(new Integer(currentFolder.getParentId()), parentId); } // create the new folder onlineFolder = createFolder(user, onlineProject, onlineProject, currentFolder, parentId.intValue(), currentFolder.getAbsolutePath()); onlineFolder.setState(C_STATE_UNCHANGED); writeFolder(onlineProject, onlineFolder, false); } else { throw exc; } } // end of catch PreparedStatement statement = null; Connection con = null; try { con = DriverManager.getConnection(m_poolName); // update the onlineFolder with data from offlineFolder statement = con.prepareStatement(m_cq.C_RESOURCES_UPDATE); statement.setInt(1, currentFolder.getType()); statement.setInt(2, currentFolder.getFlags()); statement.setInt(3, currentFolder.getOwnerId()); statement.setInt(4, currentFolder.getGroupId()); statement.setInt(5, onlineFolder.getProjectId()); statement.setInt(6, currentFolder.getAccessFlags()); statement.setInt(7, C_STATE_UNCHANGED); statement.setInt(8, currentFolder.isLockedBy()); statement.setInt(9, currentFolder.getLauncherType()); statement.setString(10, currentFolder.getLauncherClassname()); statement.setTimestamp(11, new Timestamp(System.currentTimeMillis())); statement.setInt(12, currentFolder.getResourceLastModifiedBy()); statement.setInt(13, 0); statement.setInt(14, currentFolder.getFileId()); statement.setInt(15, onlineFolder.getResourceId()); statement.executeUpdate(); } catch (SQLException e) { throw new CmsException("[" + this.getClass().getName() + "] " + e.getMessage(), CmsException.C_SQL_ERROR, e); } finally { // close all db-resources if(statement != null) { try { statement.close(); } catch(SQLException exc) { // nothing to do here } } if(con != null) { try { con.close(); } catch(SQLException exc) { // nothing to do here } } } folderIdIndex.put(new Integer(currentFolder.getResourceId()), new Integer(onlineFolder.getResourceId())); // copy properties try { deleteAllProperties(onlineFolder.getResourceId()); Hashtable props = readAllProperties(currentFolder.getResourceId(), currentFolder.getType()); writeProperties(props, onlineFolder.getResourceId(), currentFolder.getType()); } catch (CmsException exc) { if (A_OpenCms.isLogging()) { A_OpenCms.log(I_CmsLogChannels.C_OPENCMS_INFO, "[CmsDbAccess] error publishing, deleting properties for " + onlineFolder.toString() + " Message= " + exc.getMessage()); } } // C_STATE_UNCHANGED } else if (currentFolder.getState() == C_STATE_UNCHANGED) { CmsFolder onlineFolder = null; try { onlineFolder = readFolder(onlineProject.getId(), currentFolder.getAbsolutePath()); } catch (CmsException exc) { if (exc.getType() == CmsException.C_NOT_FOUND) { // get parentId for onlineFolder either from folderIdIndex or from the database Integer parentId = (Integer) folderIdIndex.get(new Integer(currentFolder.getParentId())); if (parentId == null) { CmsFolder currentOnlineParent = readFolder(onlineProject.getId(), currentFolder.getParent()); parentId = new Integer(currentOnlineParent.getResourceId()); folderIdIndex.put(new Integer(currentFolder.getParentId()), parentId); } // create the new folder onlineFolder = createFolder(user, onlineProject, onlineProject, currentFolder, parentId.intValue(), currentFolder.getAbsolutePath()); onlineFolder.setState(C_STATE_UNCHANGED); writeFolder(onlineProject, onlineFolder, false); // copy properties try { Hashtable props = readAllProperties(currentFolder.getResourceId(), currentFolder.getType()); writeProperties(props, onlineFolder.getResourceId(), onlineFolder.getType()); } catch (CmsException exc2) { if (A_OpenCms.isLogging()) { A_OpenCms.log(I_CmsLogChannels.C_OPENCMS_INFO, "[CmsDbAccess] error publishing, copy properties for " + onlineFolder.toString() + " Message= " + exc.getMessage()); } } } else { throw exc; } } // end of catch folderIdIndex.put(new Integer(currentFolder.getResourceId()), new Integer(onlineFolder.getResourceId())); } // end of else if } // end of for(... // now read all FILES in offlineProject offlineFiles = readFiles(projectId); for (int i = 0; i < offlineFiles.size(); i++) { currentFile = ((CmsFile) offlineFiles.elementAt(i)); if (currentFile.getName().startsWith(C_TEMP_PREFIX)) { removeFile(projectId, currentFile.getAbsolutePath()); // C_STATE_DELETE } else if (currentFile.getState() == C_STATE_DELETED) { // delete in filesystem if necessary String exportKey = checkExport(currentFile.getAbsolutePath()); if (exportKey != null) { try { discAccess.removeResource(currentFile.getAbsolutePath(), exportKey); } catch (Exception ex) { } } try { CmsFile currentOnlineFile = readFile(onlineProject.getId(), onlineProject.getId(), currentFile.getAbsolutePath()); try { deleteAllProperties(currentOnlineFile.getResourceId()); } catch (CmsException exc) { if (A_OpenCms.isLogging()) { A_OpenCms.log(I_CmsLogChannels.C_OPENCMS_INFO, "[CmsDbAccess] error publishing, deleting properties for " + currentOnlineFile.toString() + " Message= " + exc.getMessage()); } } try { deleteResource(currentOnlineFile.getResourceId()); } catch (CmsException exc) { if (A_OpenCms.isLogging()) { A_OpenCms.log(I_CmsLogChannels.C_OPENCMS_INFO, "[CmsDbAccess] error publishing, deleting resource for " + currentOnlineFile.toString() + " Message= " + exc.getMessage()); } } } catch (Exception ex) { // this exception is thrown when the file does not exist in the // online project anymore. This is OK, so do nothing. } // C_STATE_CHANGED } else if (currentFile.getState() == C_STATE_CHANGED) { // export to filesystem if necessary String exportKey = checkExport(currentFile.getAbsolutePath()); if (exportKey != null) { discAccess.writeFile(currentFile.getAbsolutePath(), exportKey, readFileContent(currentFile.getFileId())); } CmsFile onlineFile = null; try { onlineFile = readFileHeader(onlineProject.getId(), currentFile.getAbsolutePath()); } catch (CmsException exc) { if (exc.getType() == CmsException.C_NOT_FOUND) { // get parentId for onlineFolder either from folderIdIndex or from the database Integer parentId = (Integer) folderIdIndex.get(new Integer(currentFile.getParentId())); if (parentId == null) { CmsFolder currentOnlineParent = readFolder(onlineProject.getId(), currentFolder.getParent()); parentId = new Integer(currentOnlineParent.getResourceId()); folderIdIndex.put(new Integer(currentFile.getParentId()), parentId); } // create a new File currentFile.setState(C_STATE_UNCHANGED); onlineFile = createFile(onlineProject, onlineProject, currentFile, user.getId(), parentId.intValue(), currentFile.getAbsolutePath(), false); } } // end of catch PreparedStatement statement = null; Connection con = null; try { con = DriverManager.getConnection(m_poolName); // update the onlineFile with data from offlineFile statement = con.prepareStatement(m_cq.C_RESOURCES_UPDATE_FILE); statement.setInt(1, currentFile.getType()); statement.setInt(2, currentFile.getFlags()); statement.setInt(3, currentFile.getOwnerId()); statement.setInt(4, currentFile.getGroupId()); statement.setInt(5, onlineFile.getProjectId()); statement.setInt(6, currentFile.getAccessFlags()); statement.setInt(7, C_STATE_UNCHANGED); statement.setInt(8, currentFile.isLockedBy()); statement.setInt(9, currentFile.getLauncherType()); statement.setString(10, currentFile.getLauncherClassname()); statement.setTimestamp(11, new Timestamp(System.currentTimeMillis())); statement.setInt(12, currentFile.getResourceLastModifiedBy()); statement.setInt(13, currentFile.getLength()); statement.setInt(14, currentFile.getFileId()); statement.setInt(15, onlineFile.getResourceId()); statement.executeUpdate(); } catch (SQLException e) { throw new CmsException("[" + this.getClass().getName() + "] " + e.getMessage(), CmsException.C_SQL_ERROR, e); } finally { if(statement != null) { try { statement.close(); } catch(SQLException exc) { // nothing to do here } } if(con != null) { try { con.close(); } catch(SQLException exc) { // nothing to do here } } } // copy properties try { deleteAllProperties(onlineFile.getResourceId()); Hashtable props = readAllProperties(currentFile.getResourceId(), currentFile.getType()); writeProperties(props, onlineFile.getResourceId(), currentFile.getType()); } catch (CmsException exc) { if (A_OpenCms.isLogging()) { A_OpenCms.log(I_CmsLogChannels.C_OPENCMS_INFO, "[CmsDbAccess] error publishing, deleting properties for " + onlineFile.toString() + " Message= " + exc.getMessage()); } } // C_STATE_NEW } else if (currentFile.getState() == C_STATE_NEW) { // export to filesystem if necessary String exportKey = checkExport(currentFile.getAbsolutePath()); if (exportKey != null) { discAccess.writeFile(currentFile.getAbsolutePath(), exportKey, readFileContent(currentFile.getFileId())); } // get parentId for onlineFile either from folderIdIndex or from the database Integer parentId = (Integer) folderIdIndex.get(new Integer(currentFile.getParentId())); if (parentId == null) { CmsFolder currentOnlineParent = readFolder(onlineProject.getId(), currentFile.getParent()); parentId = new Integer(currentOnlineParent.getResourceId()); folderIdIndex.put(new Integer(currentFile.getParentId()), parentId); } // create the new file removeFile(onlineProject.getId(), currentFile.getAbsolutePath()); CmsFile newFile = createFile(onlineProject, onlineProject, currentFile, user.getId(), parentId.intValue(), currentFile.getAbsolutePath(), false); newFile.setState(C_STATE_UNCHANGED); writeFile(onlineProject, onlineProject, newFile, false); // copy properties try { Hashtable props = readAllProperties(currentFile.getResourceId(), currentFile.getType()); writeProperties(props, newFile.getResourceId(), newFile.getType()); } catch (CmsException exc) { if (A_OpenCms.isLogging()) { A_OpenCms.log(I_CmsLogChannels.C_OPENCMS_INFO, "[CmsDbAccess] error publishing, copy properties for " + newFile.toString() + " Message= " + exc.getMessage()); } } } } // end of for(... // now delete the "deleted" folders for (int i = deletedFolders.size() - 1; i > -1; i--) { currentFolder = ((CmsFolder) deletedFolders.elementAt(i)); String exportKey = checkExport(currentFolder.getAbsolutePath()); if (exportKey != null) { discAccess.removeResource(currentFolder.getAbsolutePath(), exportKey); } try { deleteAllProperties(currentFolder.getResourceId()); } catch (CmsException exc) { if (A_OpenCms.isLogging()) { A_OpenCms.log(I_CmsLogChannels.C_OPENCMS_INFO, "[CmsDbAccess] error publishing, deleting properties for " + currentFolder.toString() + " Message= " + exc.getMessage()); } } removeFolderForPublish(onlineProject, currentFolder.getAbsolutePath()); } // end of for //clearFilesTable();}
8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/1c4f51af8cccb2147e196bff34d85fbc8178f8b3/CmsDbAccess.java/buggy/src/com/opencms/file/mySql/CmsDbAccess.java
[ 1, 8585, 326, 22398, 316, 326, 981, 30, 1071, 918, 3808, 4109, 12, 4747, 1299, 729, 16, 509, 9882, 16, 2149, 4109, 12365, 4109, 13, 1216, 11228, 95, 202, 4747, 1862, 12861, 19169, 1862, 273, 394, 2149, 1862, 12861, 12, 81, 67, 6530,...
[ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 3808, 4109, 12, 4747, 1299, 729, 16, 509, 9882, 16, 2149, 4109, 12365, 4109, 13, 1216, 11228, 95, 202, 4747, 1862, 12861, 19169, 1862, 273, 394, 2149, 1862, 12861, 12, 81, 67, 6530,...