rem stringlengths 1 226k | add stringlengths 0 227k | context stringlengths 6 326k | meta stringlengths 143 403 | input_ids listlengths 256 256 | attention_mask listlengths 256 256 | labels listlengths 128 128 |
|---|---|---|---|---|---|---|
break _loop1766; | break _loop1772; | public final void compilestate(AST _t) throws RecognitionException { AST compilestate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t1717 = _t; AST tmp1827_AST_in = (AST)_t; match(_t,COMPILE); _t = _t.getFirstChild(); filenameorvalue(_t); _t = _retTree; { _loop1766: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ATTRSPACE: { AST __t1719 = _t; AST tmp1828_AST_in = (AST)_t; match(_t,ATTRSPACE); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EQUAL: { AST __t1721 = _t; AST tmp1829_AST_in = (AST)_t; match(_t,EQUAL); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1721; _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1719; _t = _t.getNextSibling(); break; } case NOATTRSPACE: { AST tmp1830_AST_in = (AST)_t; match(_t,NOATTRSPACE); _t = _t.getNextSibling(); break; } case SAVE: { AST __t1722 = _t; AST tmp1831_AST_in = (AST)_t; match(_t,SAVE); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EQUAL: { AST __t1724 = _t; AST tmp1832_AST_in = (AST)_t; match(_t,EQUAL); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1724; _t = _t.getNextSibling(); break; } case 3: case INTO: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case INTO: { AST __t1726 = _t; AST tmp1833_AST_in = (AST)_t; match(_t,INTO); _t = _t.getFirstChild(); filenameorvalue(_t); _t = _retTree; _t = __t1726; _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1722; _t = _t.getNextSibling(); break; } case LISTING: { AST __t1727 = _t; AST tmp1834_AST_in = (AST)_t; match(_t,LISTING); _t = _t.getFirstChild(); filenameorvalue(_t); _t = _retTree; { _loop1731: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case APPEND: { compile_append(_t); _t = _retTree; break; } case PAGESIZE_KW: { AST __t1729 = _t; AST tmp1835_AST_in = (AST)_t; match(_t,PAGESIZE_KW); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1729; _t = _t.getNextSibling(); break; } case PAGEWIDTH: { AST __t1730 = _t; AST tmp1836_AST_in = (AST)_t; match(_t,PAGEWIDTH); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1730; _t = _t.getNextSibling(); break; } default: { break _loop1731; } } } while (true); } _t = __t1727; _t = _t.getNextSibling(); break; } case XCODE: { AST __t1732 = _t; AST tmp1837_AST_in = (AST)_t; match(_t,XCODE); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1732; _t = _t.getNextSibling(); break; } case XREF: { AST __t1733 = _t; AST tmp1838_AST_in = (AST)_t; match(_t,XREF); _t = _t.getFirstChild(); filenameorvalue(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case APPEND: { compile_append(_t); _t = _retTree; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1733; _t = _t.getNextSibling(); break; } case STRINGXREF: { AST __t1735 = _t; AST tmp1839_AST_in = (AST)_t; match(_t,STRINGXREF); _t = _t.getFirstChild(); filenameorvalue(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case APPEND: { compile_append(_t); _t = _retTree; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1735; _t = _t.getNextSibling(); break; } case STREAMIO: { AST __t1737 = _t; AST tmp1840_AST_in = (AST)_t; match(_t,STREAMIO); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EQUAL: { AST __t1739 = _t; AST tmp1841_AST_in = (AST)_t; match(_t,EQUAL); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1739; _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1737; _t = _t.getNextSibling(); break; } case MINSIZE: { AST __t1740 = _t; AST tmp1842_AST_in = (AST)_t; match(_t,MINSIZE); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EQUAL: { AST __t1742 = _t; AST tmp1843_AST_in = (AST)_t; match(_t,EQUAL); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1742; _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1740; _t = _t.getNextSibling(); break; } case LANGUAGES: { AST __t1743 = _t; AST tmp1844_AST_in = (AST)_t; match(_t,LANGUAGES); _t = _t.getFirstChild(); AST tmp1845_AST_in = (AST)_t; match(_t,LEFTPAREN); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case VALUE: case TYPELESS_TOKEN: { compile_lang(_t); _t = _retTree; { _loop1746: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==COMMA)) { AST tmp1846_AST_in = (AST)_t; match(_t,COMMA); _t = _t.getNextSibling(); compile_lang(_t); _t = _retTree; } else { break _loop1746; } } while (true); } break; } case RIGHTPAREN: { break; } default: { throw new NoViableAltException(_t); } } } AST tmp1847_AST_in = (AST)_t; match(_t,RIGHTPAREN); _t = _t.getNextSibling(); _t = __t1743; _t = _t.getNextSibling(); break; } case TEXTSEGGROW: { AST __t1747 = _t; AST tmp1848_AST_in = (AST)_t; match(_t,TEXTSEGGROW); _t = _t.getFirstChild(); AST __t1748 = _t; AST tmp1849_AST_in = (AST)_t; match(_t,EQUAL); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1748; _t = _t.getNextSibling(); _t = __t1747; _t = _t.getNextSibling(); break; } case DEBUGLIST: { AST __t1749 = _t; AST tmp1850_AST_in = (AST)_t; match(_t,DEBUGLIST); _t = _t.getFirstChild(); filenameorvalue(_t); _t = _retTree; _t = __t1749; _t = _t.getNextSibling(); break; } case DEFAULTNOXLATE: { AST __t1750 = _t; AST tmp1851_AST_in = (AST)_t; match(_t,DEFAULTNOXLATE); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EQUAL: { AST __t1752 = _t; AST tmp1852_AST_in = (AST)_t; match(_t,EQUAL); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1752; _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1750; _t = _t.getNextSibling(); break; } case GENERATEMD5: { AST __t1753 = _t; AST tmp1853_AST_in = (AST)_t; match(_t,GENERATEMD5); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EQUAL: { AST __t1755 = _t; AST tmp1854_AST_in = (AST)_t; match(_t,EQUAL); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1755; _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1753; _t = _t.getNextSibling(); break; } case PREPROCESS: { AST __t1756 = _t; AST tmp1855_AST_in = (AST)_t; match(_t,PREPROCESS); _t = _t.getFirstChild(); filenameorvalue(_t); _t = _retTree; _t = __t1756; _t = _t.getNextSibling(); break; } case USEREVVIDEO: { AST __t1757 = _t; AST tmp1856_AST_in = (AST)_t; match(_t,USEREVVIDEO); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EQUAL: { AST __t1759 = _t; AST tmp1857_AST_in = (AST)_t; match(_t,EQUAL); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1759; _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1757; _t = _t.getNextSibling(); break; } case USEUNDERLINE: { AST __t1760 = _t; AST tmp1858_AST_in = (AST)_t; match(_t,USEUNDERLINE); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EQUAL: { AST __t1762 = _t; AST tmp1859_AST_in = (AST)_t; match(_t,EQUAL); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1762; _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1760; _t = _t.getNextSibling(); break; } case V6FRAME: { AST __t1763 = _t; AST tmp1860_AST_in = (AST)_t; match(_t,V6FRAME); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EQUAL: { AST __t1765 = _t; AST tmp1861_AST_in = (AST)_t; match(_t,EQUAL); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1765; _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1763; _t = _t.getNextSibling(); break; } case NOERROR_KW: { AST tmp1862_AST_in = (AST)_t; match(_t,NOERROR_KW); _t = _t.getNextSibling(); break; } default: { break _loop1766; } } } while (true); } state_end(_t); _t = _retTree; _t = __t1717; _t = _t.getNextSibling(); _retTree = _t; } | 13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/daa15e07422d3491bbbb4d0060450c81983332a4/TreeParser01.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
1161,
14849,
340,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
1161,
14849,
340,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1161,
14849,
340,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
1161,
14849,
340,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
29... |
X10MethodInstance mi = (X10MethodInstance) result.methodInstance(); | X10MethodInstance mi = (X10MethodInstance) methodInstance(); | private void checkAnnotations(Call_c result, TypeChecker tc) throws SemanticException { X10Context c = (X10Context) tc.context(); X10MethodInstance mi = (X10MethodInstance) result.methodInstance(); if (mi !=null) { X10Flags flags = X10Flags.toX10Flags(mi.flags()); if (c.inNonBlockingCode() && ! (mi.isJavaMethod() || mi.isSafe() || flags.isNonBlocking())) throw new SemanticException(mi + ": Only nonblocking methods can be called from nonblocking code.", position()); if (c.inSequentialCode() && ! (mi.isJavaMethod()|| mi.isSafe() || flags.isSequential())) throw new SemanticException(mi + ": Only sequential methods can be called from sequential code.", position()); if (c.inLocalCode() && ! (mi.isJavaMethod() || mi.isSafe() || flags.isLocal())) throw new SemanticException(mi + ": Only local methods can be called from local code.", position()); } } | 1769 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1769/a89e193ac8035e07e6d3560d31efa985c215e028/X10Call_c.java/clean/x10.compiler/src/polyglot/ext/x10/ast/X10Call_c.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
866,
5655,
12,
1477,
67,
71,
563,
16,
1412,
8847,
1715,
13,
1216,
24747,
503,
288,
377,
202,
60,
2163,
1042,
276,
273,
261,
60,
2163,
1042,
13,
1715,
18,
2472,
5621,
377,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
866,
5655,
12,
1477,
67,
71,
563,
16,
1412,
8847,
1715,
13,
1216,
24747,
503,
288,
377,
202,
60,
2163,
1042,
276,
273,
261,
60,
2163,
1042,
13,
1715,
18,
2472,
5621,
377,
2... |
listeners.remove(packetListener); | for (int i=0; i<listeners.size(); i++) { ListenerWrapper wrapper = (ListenerWrapper)listeners.get(i); if (wrapper != null && wrapper.packetListener.equals(packetListener)) { listeners.set(i, null); } } | public void removePacketListener(PacketListener packetListener) { synchronized (listeners) { listeners.remove(packetListener); } } | 7665 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7665/2b152cd9aaf3653de4f5950d84ab1148a3e02fc3/PacketWriter.java/buggy/source/org/jivesoftware/smack/PacketWriter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1206,
6667,
2223,
12,
6667,
2223,
4414,
2223,
13,
288,
3639,
3852,
261,
16072,
13,
288,
5411,
364,
261,
474,
277,
33,
20,
31,
277,
32,
16072,
18,
1467,
5621,
277,
27245,
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,
377,
1071,
918,
1206,
6667,
2223,
12,
6667,
2223,
4414,
2223,
13,
288,
3639,
3852,
261,
16072,
13,
288,
5411,
364,
261,
474,
277,
33,
20,
31,
277,
32,
16072,
18,
1467,
5621,
277,
27245,
288,... |
return | return | public boolean equals( Object object ) { if( object == null ) return false; Pair pair = (Pair)object; return clOrdID.equals( pair.clOrdID ) && sessionID.equals( pair.sessionID );} | 5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/1848fd8ead9221116352f57bb14898c5c489440b/at_messagecracker.java/clean/src/at_messagecracker.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
1250,
1606,
12,
1033,
733,
262,
288,
225,
309,
12,
733,
422,
446,
262,
565,
327,
629,
31,
225,
8599,
3082,
273,
261,
4154,
13,
1612,
31,
225,
327,
377,
927,
15383,
734,
18,
14963,
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,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
1250,
1606,
12,
1033,
733,
262,
288,
225,
309,
12,
733,
422,
446,
262,
565,
327,
629,
31,
225,
8599,
3082,
273,
261,
4154,
13,
1612,
31,
225,
327,
377,
927,
15383,
734,
18,
14963,
12... |
AST __t189 = _t; | AST __t190 = _t; | public final Expression constructor(AST _t, PathExpr path ) throws RecognitionException, PermissionDeniedException,EXistException,XPathException { Expression step; org.exist.xquery.parser.XQueryAST constructor_AST_in = (_t == ASTNULL) ? null : (org.exist.xquery.parser.XQueryAST)_t; org.exist.xquery.parser.XQueryAST qn = null; org.exist.xquery.parser.XQueryAST prefix = null; org.exist.xquery.parser.XQueryAST uri = null; org.exist.xquery.parser.XQueryAST attr = null; org.exist.xquery.parser.XQueryAST pid = null; org.exist.xquery.parser.XQueryAST e = null; org.exist.xquery.parser.XQueryAST attrName = null; org.exist.xquery.parser.XQueryAST attrVal = null; org.exist.xquery.parser.XQueryAST pcdata = null; org.exist.xquery.parser.XQueryAST t = null; org.exist.xquery.parser.XQueryAST tc = null; org.exist.xquery.parser.XQueryAST d = null; org.exist.xquery.parser.XQueryAST cdata = null; org.exist.xquery.parser.XQueryAST p = null; org.exist.xquery.parser.XQueryAST cdataSect = null; org.exist.xquery.parser.XQueryAST l = null; step= null; PathExpr elementContent= null; Expression contentExpr= null; Expression qnameExpr = null; if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case COMP_ELEM_CONSTRUCTOR: { AST __t184 = _t; qn = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,COMP_ELEM_CONSTRUCTOR); _t = _t.getFirstChild(); ElementConstructor c= new ElementConstructor(context); c.setASTNode(qn); step= c; SequenceConstructor construct = new SequenceConstructor(context); EnclosedExpr enclosed = new EnclosedExpr(context); enclosed.addPath(construct); c.setContent(enclosed); PathExpr qnamePathExpr = new PathExpr(context); c.setNameExpr(qnamePathExpr); qnameExpr=expr(_t,qnamePathExpr); _t = _retTree; { _loop187: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case COMP_NS_CONSTRUCTOR: { AST __t186 = _t; prefix = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,COMP_NS_CONSTRUCTOR); _t = _t.getFirstChild(); uri = (org.exist.xquery.parser.XQueryAST)_t; match(_t,STRING_LITERAL); _t = _t.getNextSibling(); _t = __t186; _t = _t.getNextSibling(); c.addNamespaceDecl(prefix.getText(), uri.getText()); break; } case QNAME: case PARENTHESIZED: case ABSOLUTE_SLASH: case ABSOLUTE_DSLASH: case WILDCARD: case PREFIX_WILDCARD: case FUNCTION: case UNARY_MINUS: case UNARY_PLUS: case VARIABLE_REF: case ELEMENT: case TEXT: case BEFORE: case AFTER: case ATTRIBUTE_TEST: case COMP_ELEM_CONSTRUCTOR: case COMP_ATTR_CONSTRUCTOR: case COMP_TEXT_CONSTRUCTOR: case COMP_COMMENT_CONSTRUCTOR: case COMP_PI_CONSTRUCTOR: case COMP_DOC_CONSTRUCTOR: case NCNAME: case EQ: case STRING_LITERAL: case LITERAL_element: case LCURLY: case COMMA: case STAR: case PLUS: case LITERAL_some: case LITERAL_every: case LITERAL_if: case LITERAL_return: case LITERAL_or: case LITERAL_and: case LITERAL_instance: case LITERAL_castable: case LITERAL_cast: case LT: case GT: case LITERAL_eq: case LITERAL_ne: case LITERAL_lt: case LITERAL_le: case LITERAL_gt: case LITERAL_ge: case NEQ: case GTEQ: case LTEQ: case LITERAL_is: case LITERAL_isnot: case ANDEQ: case OREQ: case LITERAL_to: case MINUS: case LITERAL_div: case LITERAL_idiv: case LITERAL_mod: case UNION: case LITERAL_intersect: case LITERAL_except: case SLASH: case DSLASH: case LITERAL_text: case LITERAL_node: case LITERAL_attribute: case LITERAL_comment: case 142: case SELF: case XML_COMMENT: case XML_PI: case AT: case PARENT: case LITERAL_child: case LITERAL_self: case LITERAL_descendant: case 154: case 155: case LITERAL_following: case LITERAL_parent: case LITERAL_ancestor: case 159: case 160: case DOUBLE_LITERAL: case DECIMAL_LITERAL: case INTEGER_LITERAL: case XML_CDATA: case LITERAL_preceding: { elementContent = new PathExpr(context); contentExpr=expr(_t,elementContent); _t = _retTree; construct.addPath(elementContent); break; } default: { break _loop187; } } } while (true); } _t = __t184; _t = _t.getNextSibling(); break; } case COMP_ATTR_CONSTRUCTOR: { AST __t188 = _t; attr = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,COMP_ATTR_CONSTRUCTOR); _t = _t.getFirstChild(); DynamicAttributeConstructor a= new DynamicAttributeConstructor(context); a.setASTNode(attr); step = a; PathExpr qnamePathExpr = new PathExpr(context); a.setNameExpr(qnamePathExpr); elementContent = new PathExpr(context); a.setContentExpr(elementContent); qnameExpr=expr(_t,qnamePathExpr); _t = _retTree; contentExpr=expr(_t,elementContent); _t = _retTree; _t = __t188; _t = _t.getNextSibling(); break; } case COMP_PI_CONSTRUCTOR: { AST __t189 = _t; pid = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,COMP_PI_CONSTRUCTOR); _t = _t.getFirstChild(); DynamicPIConstructor pd= new DynamicPIConstructor(context); pd.setASTNode(pid); step = pd; PathExpr qnamePathExpr = new PathExpr(context); pd.setNameExpr(qnamePathExpr); elementContent = new PathExpr(context); pd.setContentExpr(elementContent); qnameExpr=expr(_t,qnamePathExpr); _t = _retTree; contentExpr=expr(_t,elementContent); _t = _retTree; _t = __t189; _t = _t.getNextSibling(); break; } case ELEMENT: { AST __t190 = _t; e = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,ELEMENT); _t = _t.getFirstChild(); ElementConstructor c= new ElementConstructor(context, e.getText()); c.setASTNode(e); step= c; { _loop196: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==ATTRIBUTE)) { AST __t192 = _t; attrName = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,ATTRIBUTE); _t = _t.getFirstChild(); AttributeConstructor attrib= new AttributeConstructor(context, attrName.getText()); attrib.setASTNode(attrName); { int _cnt195=0; _loop195: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case ATTRIBUTE_CONTENT: { attrVal = (org.exist.xquery.parser.XQueryAST)_t; match(_t,ATTRIBUTE_CONTENT); _t = _t.getNextSibling(); attrib.addValue(attrVal.getText()); break; } case LCURLY: { AST __t194 = _t; org.exist.xquery.parser.XQueryAST tmp82_AST_in = (org.exist.xquery.parser.XQueryAST)_t; match(_t,LCURLY); _t = _t.getFirstChild(); PathExpr enclosed= new PathExpr(context); expr(_t,enclosed); _t = _retTree; attrib.addEnclosedExpr(enclosed); _t = __t194; _t = _t.getNextSibling(); break; } default: { if ( _cnt195>=1 ) { break _loop195; } else {throw new NoViableAltException(_t);} } } _cnt195++; } while (true); } c.addAttribute(attrib); _t = __t192; _t = _t.getNextSibling(); } else { break _loop196; } } while (true); } { _loop198: do { if (_t==null) _t=ASTNULL; if ((_tokenSet_1.member(_t.getType()))) { if (elementContent == null) { elementContent= new PathExpr(context); c.setContent(elementContent); } contentExpr=constructor(_t,elementContent); _t = _retTree; elementContent.add(contentExpr); } else { break _loop198; } } while (true); } _t = __t190; _t = _t.getNextSibling(); break; } case TEXT: { AST __t199 = _t; pcdata = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,TEXT); _t = _t.getFirstChild(); TextConstructor text= new TextConstructor(context, pcdata.getText()); text.setASTNode(pcdata); step= text; _t = __t199; _t = _t.getNextSibling(); break; } case COMP_TEXT_CONSTRUCTOR: { AST __t200 = _t; t = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,COMP_TEXT_CONSTRUCTOR); _t = _t.getFirstChild(); elementContent = new PathExpr(context); DynamicTextConstructor text = new DynamicTextConstructor(context, elementContent); text.setASTNode(t); step= text; contentExpr=expr(_t,elementContent); _t = _retTree; _t = __t200; _t = _t.getNextSibling(); break; } case COMP_COMMENT_CONSTRUCTOR: { AST __t201 = _t; tc = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,COMP_COMMENT_CONSTRUCTOR); _t = _t.getFirstChild(); elementContent = new PathExpr(context); DynamicCommentConstructor comment = new DynamicCommentConstructor(context, elementContent); comment.setASTNode(t); step= comment; contentExpr=expr(_t,elementContent); _t = _retTree; _t = __t201; _t = _t.getNextSibling(); break; } case COMP_DOC_CONSTRUCTOR: { AST __t202 = _t; d = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,COMP_DOC_CONSTRUCTOR); _t = _t.getFirstChild(); elementContent = new PathExpr(context); DocumentConstructor doc = new DocumentConstructor(context, elementContent); doc.setASTNode(d); step= doc; contentExpr=expr(_t,elementContent); _t = _retTree; _t = __t202; _t = _t.getNextSibling(); break; } case XML_COMMENT: { AST __t203 = _t; cdata = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,XML_COMMENT); _t = _t.getFirstChild(); CommentConstructor comment= new CommentConstructor(context, cdata.getText()); comment.setASTNode(cdata); step= comment; _t = __t203; _t = _t.getNextSibling(); break; } case XML_PI: { AST __t204 = _t; p = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,XML_PI); _t = _t.getFirstChild(); PIConstructor pi= new PIConstructor(context, p.getText()); pi.setASTNode(p); step= pi; _t = __t204; _t = _t.getNextSibling(); break; } case XML_CDATA: { AST __t205 = _t; cdataSect = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,XML_CDATA); _t = _t.getFirstChild(); CDATAConstructor cd = new CDATAConstructor(context, cdataSect.getText()); cd.setASTNode(cdataSect); step= cd; _t = __t205; _t = _t.getNextSibling(); break; } case LCURLY: { AST __t206 = _t; l = _t==ASTNULL ? null :(org.exist.xquery.parser.XQueryAST)_t; match(_t,LCURLY); _t = _t.getFirstChild(); EnclosedExpr subexpr= new EnclosedExpr(context); subexpr.setASTNode(l); step=expr(_t,subexpr); _t = _retTree; step= subexpr; _t = __t206; _t = _t.getNextSibling(); break; } default: { throw new NoViableAltException(_t); } } _retTree = _t; return step; } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/10544e5ec103a411822c6180ed81ef38eab15de8/XQueryTreeParser.java/buggy/src/org/exist/xquery/parser/XQueryTreeParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
5371,
225,
3885,
12,
9053,
389,
88,
16,
202,
202,
743,
4742,
589,
202,
13,
1216,
9539,
16,
8509,
15877,
16,
2294,
376,
503,
16,
14124,
503,
288,
202,
202,
2300,
2235,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
5371,
225,
3885,
12,
9053,
389,
88,
16,
202,
202,
743,
4742,
589,
202,
13,
1216,
9539,
16,
8509,
15877,
16,
2294,
376,
503,
16,
14124,
503,
288,
202,
202,
2300,
2235,
3... |
return eDynamicIsSet( eFeature ); | return super.eIsSet( featureID ); | public boolean eIsSet( EStructuralFeature eFeature ) { switch ( eDerivedStructuralFeatureID( eFeature ) ) { case AttributePackage.CALL_BACK_VALUE__IDENTIFIER : return IDENTIFIER_EDEFAULT == null ? identifier != null : !IDENTIFIER_EDEFAULT.equals( identifier ); } return eDynamicIsSet( eFeature ); } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/036e8c78765730b146e5854b9d6c397a296fed86/CallBackValueImpl.java/buggy/chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/model/attribute/impl/CallBackValueImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
20372,
12,
512,
14372,
4595,
425,
4595,
262,
202,
95,
202,
202,
9610,
261,
425,
21007,
14372,
4595,
734,
12,
425,
4595,
262,
262,
202,
202,
95,
1082,
202,
3593,
3601,
22... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
20372,
12,
512,
14372,
4595,
425,
4595,
262,
202,
95,
202,
202,
9610,
261,
425,
21007,
14372,
4595,
734,
12,
425,
4595,
262,
262,
202,
202,
95,
1082,
202,
3593,
3601,
22... |
"=Bean Example/src<bean{BoundPoint.aj}BoundPoint`declare parents", | "=Bean Example/src<bean*BoundPoint.aj}BoundPoint`declare parents", | public void testCreateElementFromHandle2() throws Exception { IProject project = createPredefinedProject("Bean Example"); try { String methodHandle = "=Bean Example/src<bean{Demo.java[Demo~main~\\[QString;?method-call(void bean.Point.setX(int))!37!0!0!0!I"; if ((EclipseVersion.MAJOR_VERSION == 3) && (EclipseVersion.MINOR_VERSION == 0)) { // the handle identifiers for method signatures changed after // eclipes 3.0: note the lack of escape character ~[QString; // instead of ~\[QString; methodHandle = "=Bean Example/src<bean{Demo.java[Demo~main~[QString;?method-call(void bean.Point.setX(int))!37!0!0!0!I"; } // each entry in the array contains: // <handle> <name of element> <containing resource> <class name of // element> // note that the elements referred to by the handles need to exist // in the workspace String[][] testHandles = { { methodHandle, "method-call(void bean.Point.setX(int))", "Demo.java", "AJCodeElement" }, { "=Bean Example/src<bean{BoundPoint.aj}BoundPoint&around&QPoint;", "around", "BoundPoint.aj", "AdviceElement" }, { "=Bean Example/src<bean{BoundPoint.aj}BoundPointPoint.hasListenersQString;", "Point.hasListeners", "BoundPoint.aj", "IntertypeElement" }, { "=Bean Example/src<bean{BoundPoint.aj}BoundPoint`declare parents", "declare parents", "BoundPoint.aj", "DeclareElement" }, { "=Bean Example/src<bean{BoundPoint.aj}BoundPoint`declare parents!2", "declare parents", "BoundPoint.aj", "DeclareElement" } }; compareWithHandles(testHandles); } finally { deleteProject(project); } } | 13558 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13558/f05b2602d10e93bf4cefd5271b5aa4c86c03532c/AJCoreTest.java/clean/org.eclipse.ajdt.core.tests/src/org/eclipse/ajdt/core/tests/AJCoreTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
1684,
1046,
1265,
3259,
22,
1435,
1216,
1185,
288,
202,
202,
45,
4109,
1984,
273,
752,
1386,
2178,
4109,
2932,
3381,
5090,
8863,
202,
202,
698,
288,
1082,
202,
780,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1684,
1046,
1265,
3259,
22,
1435,
1216,
1185,
288,
202,
202,
45,
4109,
1984,
273,
752,
1386,
2178,
4109,
2932,
3381,
5090,
8863,
202,
202,
698,
288,
1082,
202,
780,
... |
if (currNode instanceof ProgramElementNode) { navigationAction((ProgramElementNode)currNode, true); | if (currNode instanceof IProgramElement) { navigationAction((IProgramElement)currNode, true); | public void fireNavigationAction(String newFilePath, int lineNumber) { StructureNode currNode = Ajde.getDefault().getStructureModelManager().getStructureModel().findNodeForSourceLine( newFilePath, lineNumber); if (currNode instanceof ProgramElementNode) { navigationAction((ProgramElementNode)currNode, true); } } | 53148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53148/f1deb9c11024ecebab2e0aa17a260821375c25bd/StructureViewManager.java/clean/ajde/src/org/aspectj/ajde/ui/StructureViewManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
4452,
14301,
1803,
12,
780,
394,
5598,
16,
509,
13629,
13,
288,
25083,
202,
6999,
907,
4306,
907,
273,
432,
78,
323,
18,
588,
1868,
7675,
588,
6999,
1488,
1318,
7675,
588... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
4452,
14301,
1803,
12,
780,
394,
5598,
16,
509,
13629,
13,
288,
25083,
202,
6999,
907,
4306,
907,
273,
432,
78,
323,
18,
588,
1868,
7675,
588,
6999,
1488,
1318,
7675,
588... |
tuple[6] = r.getBytes(7); | int attypmod = rs.getInt(8) - VARHDRSZ; tuple[6] = Integer.toString( ( attypmod >> 16 ) & 0xffff ).getBytes(); tuple[8] = Integer.toString(attypmod & 0xffff).getBytes(); tuple[9] = "10".getBytes(); } else if (pgType.equals("bit") || pgType.equals("varbit")) { tuple[6] = rs.getBytes("atttypmod"); tuple[9] = "2".getBytes(); } else { tuple[6] = rs.getBytes("attlen"); tuple[9] = "10".getBytes(); | public java.sql.ResultSet getColumns(String catalog, String schemaPattern, String tableNamePattern, String columnNamePattern) throws SQLException { Vector v = new Vector(); // The new ResultSet tuple stuff Field f[] = new Field[18]; // The field descriptors for the new ResultSet f[0] = new Field(connection, "TABLE_CAT", iVarcharOid, NAME_SIZE); f[1] = new Field(connection, "TABLE_SCHEM", iVarcharOid, NAME_SIZE); f[2] = new Field(connection, "TABLE_NAME", iVarcharOid, NAME_SIZE); f[3] = new Field(connection, "COLUMN_NAME", iVarcharOid, NAME_SIZE); f[4] = new Field(connection, "DATA_TYPE", iInt2Oid, 2); f[5] = new Field(connection, "TYPE_NAME", iVarcharOid, NAME_SIZE); f[6] = new Field(connection, "COLUMN_SIZE", iInt4Oid, 4); f[7] = new Field(connection, "BUFFER_LENGTH", iVarcharOid, NAME_SIZE); f[8] = new Field(connection, "DECIMAL_DIGITS", iInt4Oid, 4); f[9] = new Field(connection, "NUM_PREC_RADIX", iInt4Oid, 4); f[10] = new Field(connection, "NULLABLE", iInt4Oid, 4); f[11] = new Field(connection, "REMARKS", iVarcharOid, NAME_SIZE); f[12] = new Field(connection, "COLUMN_DEF", iVarcharOid, NAME_SIZE); f[13] = new Field(connection, "SQL_DATA_TYPE", iInt4Oid, 4); f[14] = new Field(connection, "SQL_DATETIME_SUB", iInt4Oid, 4); f[15] = new Field(connection, "CHAR_OCTET_LENGTH", iVarcharOid, NAME_SIZE); f[16] = new Field(connection, "ORDINAL_POSITION", iInt4Oid, 4); f[17] = new Field(connection, "IS_NULLABLE", iVarcharOid, NAME_SIZE); StringBuffer sql = new StringBuffer(512); /* Build a >= 7.1 SQL statement to list all columns */ sql.append("select " + (connection.haveMinimumServerVersion("7.2") ? "a.attrelid, " : "a.oid, ") + " c.relname, " + " a.attname, " + " a.atttypid, " + " a.attnum, " + " a.attnotnull, " + " a.attlen, " + " a.atttypmod, " + " d.adsrc, " + " t.typname, " + /* Use the new col_description in 7.2 or an additional outer join in 7.1 */ (connection.haveMinimumServerVersion("7.2") ? "col_description(a.attrelid, a.attnum) " : "e.description ") + "from" + " (" + " (pg_class c inner join pg_attribute a on" + " (" + " a.attrelid=c.oid"); if ((tableNamePattern != null) && ! tableNamePattern.equals("%")) { sql.append(" and c.relname like \'" + tableNamePattern.toLowerCase() + "\'"); } if ((columnNamePattern != null) && ! columnNamePattern.equals("%")) { sql.append(" and a.attname like \'" + columnNamePattern.toLowerCase() + "\'"); } sql.append( " and a.attnum > 0" + " )" + " ) inner join pg_type t on" + " (" + " t.oid = a.atttypid" + " )" + " )" + " left outer join pg_attrdef d on" + " (" + " c.oid = d.adrelid" + " and a.attnum = d.adnum" + " ) "); if (!connection.haveMinimumServerVersion("7.2")) { /* Only for 7.1 */ sql.append( " left outer join pg_description e on" + " (" + " e.objoid = a.oid" + " ) "); } sql.append("order by" + " c.relname, a.attnum"); java.sql.ResultSet r = connection.ExecSQL(sql.toString()); while (r.next()) { byte[][] tuple = new byte[18][0]; String nullFlag = r.getString(6); String typname = r.getString(10); tuple[0] = null; // Catalog name, not supported tuple[1] = null; // Schema name, not supported tuple[2] = r.getBytes(2); // Table name tuple[3] = r.getBytes(3); // Column name tuple[4] = Integer.toString(connection.getSQLType(typname)).getBytes(); // Data type tuple[5] = typname.getBytes(); // Type name // Column size // Looking at the psql source, // I think the length of a varchar as specified when the table was created // should be extracted from atttypmod which contains this length + sizeof(int32) if (typname.equals("bpchar") || typname.equals("varchar")) { int atttypmod = r.getInt(8); tuple[6] = Integer.toString(atttypmod != -1 ? atttypmod - VARHDRSZ : 0).getBytes(); } else { tuple[6] = r.getBytes(7); } tuple[7] = null; // Buffer length // Decimal digits = scale // From the source (see e.g. backend/utils/adt/format_type.c, // function numeric()) the scale and precision can be calculated // from the typmod value. if (typname.equals("numeric") || typname.equals("decimal")) { int attypmod = r.getInt(8) - VARHDRSZ; tuple[8] = Integer.toString(attypmod & 0xffff).getBytes(); tuple[9] = Integer.toString( ( attypmod >> 16 ) & 0xffff ).getBytes(); } else { tuple[8] = "0".getBytes(); tuple[9] = "10".getBytes(); // Num Prec Radix - assume decimal } tuple[10] = Integer.toString(nullFlag.equals("f") ? java.sql.DatabaseMetaData.columnNullable : java.sql.DatabaseMetaData.columnNoNulls).getBytes(); // Nullable tuple[11] = r.getBytes(11); // Description (if any) tuple[12] = r.getBytes(9); // Column default tuple[13] = null; // sql data type (unused) tuple[14] = null; // sql datetime sub (unused) tuple[15] = tuple[6]; // char octet length tuple[16] = r.getBytes(5); // ordinal position tuple[17] = (nullFlag.equals("f") ? "YES" : "NO").getBytes(); // Is nullable v.addElement(tuple); } r.close(); return connection.getResultSet(null, f, v, "OK", 1); } | 49868 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49868/40327076bce2d4a086a440f2d10fd1d514f96450/AbstractJdbc1DatabaseMetaData.java/clean/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2252,
18,
4669,
18,
13198,
14226,
12,
780,
6222,
16,
514,
1963,
3234,
16,
514,
4775,
3234,
16,
514,
7578,
3234,
13,
1216,
6483,
202,
95,
202,
202,
5018,
331,
273,
394,
5589,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2252,
18,
4669,
18,
13198,
14226,
12,
780,
6222,
16,
514,
1963,
3234,
16,
514,
4775,
3234,
16,
514,
7578,
3234,
13,
1216,
6483,
202,
95,
202,
202,
5018,
331,
273,
394,
5589,
... |
synchronized Tds allocateTds() throws java.sql.SQLException | synchronized Tds allocateTds(boolean mainTds) throws java.sql.SQLException | synchronized Tds allocateTds() throws java.sql.SQLException { Tds result; int i; try { i = findAnAvailableTds(); if (i == -1) { Tds tmpTds = null; try { tmpTds = new Tds(this, initialProps); } catch (SQLException e) { throw new SQLException(e.getMessage() + "\n" + tdsPool.size() + " connections are in use by the driver"); } TdsInstance tmp = new TdsInstance(tmpTds); tdsPool.addElement(tmp); i = findAnAvailableTds(); } if (i == -1) { throw new TdsException("Internal Error. Couldn't get tds instance"); } if (((TdsInstance) tdsPool.elementAt(i)).inUse) { throw new TdsException("Internal Error. tds " + i + " is already allocated"); } ((TdsInstance) tdsPool.elementAt(i)).inUse = true; result = ((TdsInstance) (tdsPool.elementAt(i))).tds; result.changeSettings(autoCommit, transactionIsolationLevel); } catch (net.sourceforge.jtds.jdbc.TdsException e) { throw new SQLException(e.getMessage()); } catch (java.io.IOException e) { throw new SQLException(e.getMessage()); } return result; } | 2029 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2029/f25484172cf02d1cf4e49d91823f230640038cac/TdsConnection.java/buggy/src/main/net/sourceforge/jtds/jdbc/TdsConnection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3852,
399,
2377,
10101,
56,
2377,
12,
6494,
2774,
56,
2377,
13,
1216,
2252,
18,
4669,
18,
23116,
565,
288,
3639,
399,
2377,
563,
31,
3639,
509,
277,
31,
3639,
775,
288,
5411,
277,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3852,
399,
2377,
10101,
56,
2377,
12,
6494,
2774,
56,
2377,
13,
1216,
2252,
18,
4669,
18,
23116,
565,
288,
3639,
399,
2377,
563,
31,
3639,
509,
277,
31,
3639,
775,
288,
5411,
277,
273,
... |
clearResourceCache(); return oldLock; } | clearResourceCache(); return oldLock; } | public CmsLock unlockResource(CmsRequestContext context, String resourcename) throws CmsException { CmsLock oldLock = m_lockDispatcher.removeResource(this, context, resourcename, false); clearResourceCache(); return oldLock; } | 51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/144dc8926969cbdfc51349a47e94ee493e6f935e/CmsDriverManager.java/buggy/src/org/opencms/db/CmsDriverManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2149,
2531,
7186,
1420,
12,
4747,
21426,
819,
16,
514,
31174,
1069,
13,
1216,
11228,
288,
3639,
2149,
2531,
1592,
2531,
273,
312,
67,
739,
6681,
18,
4479,
1420,
12,
2211,
16,
819,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
2149,
2531,
7186,
1420,
12,
4747,
21426,
819,
16,
514,
31174,
1069,
13,
1216,
11228,
288,
3639,
2149,
2531,
1592,
2531,
273,
312,
67,
739,
6681,
18,
4479,
1420,
12,
2211,
16,
819,
... |
static Class loadClass(Class clazz, String name) { | static Class loadClass(ClassLoader loader, String name) { | static Class loadClass(Class clazz, String name) { try { return Class.forName(name, true, clazz.getClassLoader()); } catch (ClassNotFoundException e) { throw new UtilException( "util.handler.class.not.found", name); } } | 9667 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9667/f79abd5cbf7b41525411f40806df7beaaf71a5d5/HandlerAnnotationProcessor.java/buggy/jaxws-ri/rt/src/com/sun/xml/ws/util/HandlerAnnotationProcessor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
760,
1659,
16038,
12,
7805,
4088,
16,
514,
508,
13,
288,
3639,
775,
288,
5411,
327,
1659,
18,
1884,
461,
12,
529,
16,
638,
16,
4003,
18,
588,
7805,
10663,
3639,
289,
1044,
261,
797,
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,
760,
1659,
16038,
12,
7805,
4088,
16,
514,
508,
13,
288,
3639,
775,
288,
5411,
327,
1659,
18,
1884,
461,
12,
529,
16,
638,
16,
4003,
18,
588,
7805,
10663,
3639,
289,
1044,
261,
797,
3... |
abstract public void paintValue(Graphics gfx, Rectangle box); | void paintValue(Graphics gfx, Rectangle box); | abstract public void paintValue(Graphics gfx, Rectangle box); | 45713 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45713/b37b39a8e8ee762cc74efa7e8d06368d13147150/PropertyEditor.java/buggy/libraries/javalib/java/beans/PropertyEditor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
8770,
1071,
918,
12574,
620,
12,
17558,
30940,
16,
13264,
3919,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
8770,
1071,
918,
12574,
620,
12,
17558,
30940,
16,
13264,
3919,
1769,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
s += "\n"; return s; } | public String generateConstraints(MModelElement me) { // This method just adds comments to the generated java code. This should be code generated by ocl-argo int he future? Collection cs = me.getConstraints(); if (cs == null || cs.size() == 0) return ""; String s = INDENT + "// constraints\n"; int size = cs.size(); // MConstraint[] csarray = (MConstraint[])cs.toArray(); // System.out.println("Got " + csarray.size() + " constraints."); for (Iterator i = cs.iterator(); i.hasNext();) { MConstraint c = (MConstraint) i.next(); String constrStr = generateConstraint(c); java.util.StringTokenizer st = new java.util.StringTokenizer(constrStr, "\n\r"); while (st.hasMoreElements()) { String constrLine = st.nextToken(); s += INDENT + "// " + constrLine + "\n"; } } s += "\n"; return s; } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/5cee6094c7b77e3bcf6338f68456e6e531e781b7/GeneratorPHP.java/buggy/modules/php/src/org/argouml/language/php/generator/GeneratorPHP.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
2103,
4878,
12,
49,
1488,
1046,
1791,
13,
288,
565,
368,
1220,
707,
2537,
4831,
5678,
358,
326,
4374,
2252,
981,
18,
1220,
1410,
506,
981,
4374,
635,
320,
830,
17,
26999,
509... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
514,
2103,
4878,
12,
49,
1488,
1046,
1791,
13,
288,
565,
368,
1220,
707,
2537,
4831,
5678,
358,
326,
4374,
2252,
981,
18,
1220,
1410,
506,
981,
4374,
635,
320,
830,
17,
26999,
509... | |
exp4.setStrand(new Integer(-1)); | exp4.setStrand(new Integer(1)); | public void testCreateChromosomeLocation() throws Exception { Chromosome chr = getChromosome(); int chrId = chr.getId().intValue(); BioEntity parent = (BioEntity) DynamicUtil.createObject(Collections.singleton(BioEntity.class)); int parentId = 101; parent.setId(new Integer(parentId)); BioEntity child = (BioEntity) DynamicUtil.createObject(Collections.singleton(BioEntity.class)); int childId = 102; child.setId(new Integer(childId)); // ------------------> parent // | | // ----------> child CalculateLocations cl = new CalculateLocations(osw); CalculateLocations.SimpleLoc parentOnChr = cl.new SimpleLoc(chrId, parentId, 101, 400, 1); CalculateLocations.SimpleLoc childOnParent = cl.new SimpleLoc(parentId, childId, 151, 250, 1); Location res = cl.createChromosomeLocation(parentOnChr, childOnParent, chr, child); Location exp1 = (Location) DynamicUtil.createObject(Collections.singleton(Location.class)); exp1.setStart(new Integer(251)); exp1.setEnd(new Integer(350)); exp1.setStartIsPartial(Boolean.FALSE); exp1.setEndIsPartial(Boolean.FALSE); exp1.setStrand(new Integer(1)); exp1.setObject(chr); exp1.setSubject(child); assertEquals(toItem(exp1), toItem(res)); // <------------------ parent // | | // ----------> child cl = new CalculateLocations(osw); parentOnChr = cl.new SimpleLoc(chrId, parentId, 101, 400, -1); childOnParent = cl.new SimpleLoc(parentId, childId, 151, 250, 1); res = cl.createChromosomeLocation(parentOnChr, childOnParent, chr, child); Location exp2 = (Location) DynamicUtil.createObject(Collections.singleton(Location.class)); exp2.setStart(new Integer(151)); exp2.setEnd(new Integer(250)); exp2.setStartIsPartial(Boolean.FALSE); exp2.setEndIsPartial(Boolean.FALSE); exp2.setStrand(new Integer(1)); exp2.setObject(chr); exp2.setSubject(child); assertEquals(toItem(exp2), toItem(res)); // ------------------> parent // | | // <---------- child cl = new CalculateLocations(osw); parentOnChr = cl.new SimpleLoc(chrId, parentId, 101, 400, 1); childOnParent = cl.new SimpleLoc(parentId, childId, 151, 250, -1); res = cl.createChromosomeLocation(parentOnChr, childOnParent, chr, child); Location exp3 = (Location) DynamicUtil.createObject(Collections.singleton(Location.class)); exp3.setStart(new Integer(251)); exp3.setEnd(new Integer(350)); exp3.setStartIsPartial(Boolean.FALSE); exp3.setEndIsPartial(Boolean.FALSE); exp3.setStrand(new Integer(-1)); exp3.setObject(chr); exp3.setSubject(child); assertEquals(toItem(exp3), toItem(res)); // <----------------- parent // | | // <---------- child cl = new CalculateLocations(osw); parentOnChr = cl.new SimpleLoc(chrId, parentId, 101, 400, -1); childOnParent = cl.new SimpleLoc(parentId, childId, 151, 250, -1); res = cl.createChromosomeLocation(parentOnChr, childOnParent, chr, child); Location exp4 = (Location) DynamicUtil.createObject(Collections.singleton(Location.class)); exp4.setStart(new Integer(151)); exp4.setEnd(new Integer(250)); exp4.setStartIsPartial(Boolean.FALSE); exp4.setEndIsPartial(Boolean.FALSE); exp4.setStrand(new Integer(-1)); exp4.setObject(chr); exp4.setSubject(child); assertEquals(toItem(exp4), toItem(res)); } | 7196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7196/fe86d6e97ce647c8d58ad11b09a19ce7267f93e3/CalculateLocationsTest.java/buggy/flymine/model/genomic/src/test/org/flymine/postprocess/CalculateLocationsTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
1684,
30761,
16958,
2735,
1435,
1216,
1185,
288,
3639,
1680,
520,
16958,
4513,
273,
336,
30761,
16958,
5621,
3639,
509,
4513,
548,
273,
4513,
18,
26321,
7675,
474,
620,
562... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1684,
30761,
16958,
2735,
1435,
1216,
1185,
288,
3639,
1680,
520,
16958,
4513,
273,
336,
30761,
16958,
5621,
3639,
509,
4513,
548,
273,
4513,
18,
26321,
7675,
474,
620,
562... |
return new RubyFixnum(getRuby(), getLength()); | return RubyFixnum.newFixnum(getRuby(), getLength()); | public RubyFixnum length() { return new RubyFixnum(getRuby(), getLength()); } | 45753 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45753/afb67c3765f6466c476317e6bb0c72f6593f05f3/RubyArray.java/buggy/org/jruby/RubyArray.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
19817,
8585,
2107,
769,
1435,
288,
202,
202,
2463,
394,
19817,
8585,
2107,
12,
588,
54,
10340,
9334,
9888,
10663,
202,
97,
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,
225,
202,
482,
19817,
8585,
2107,
769,
1435,
288,
202,
202,
2463,
394,
19817,
8585,
2107,
12,
588,
54,
10340,
9334,
9888,
10663,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
engineUpdate (input, 0, input.length); | engineUpdate (input); | public void update (byte[] input) { engineUpdate (input, 0, input.length); } | 47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/929d12f9c1cf27322f4228118023127504d9e8ac/MessageDigest.java/buggy/java/security/MessageDigest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1089,
261,
7229,
8526,
810,
13,
225,
288,
565,
4073,
1891,
261,
2630,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
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,
282,
1071,
918,
1089,
261,
7229,
8526,
810,
13,
225,
288,
565,
4073,
1891,
261,
2630,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
StringBuffer sb = new StringBuffer(); ListIterator iterator = list.listIterator(); while (iterator.hasNext()) { sb.append(iterator.next()); if (iterator.hasNext()) { sb.append(" "); } } return sb.toString(); | if (list != null) { StringBuffer sb = new StringBuffer(); ListIterator iterator = list.listIterator(); while (iterator.hasNext()) { sb.append(iterator.next()); if (iterator.hasNext()) { sb.append(" "); } } return sb.toString(); } else { return ""; } | private String toString(LinkedList list) { StringBuffer sb = new StringBuffer(); ListIterator iterator = list.listIterator(); while (iterator.hasNext()) { sb.append(iterator.next()); if (iterator.hasNext()) { sb.append(" "); } } return sb.toString(); } | 52185 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52185/32fddda4a8e27f6d7e4fd2aa66f2901627bb4594/NISTAlign.java/buggy/edu/cmu/sphinx/util/NISTAlign.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
1762,
12,
13174,
682,
666,
13,
288,
202,
780,
1892,
2393,
273,
394,
6674,
5621,
3639,
987,
3198,
2775,
273,
666,
18,
1098,
3198,
5621,
3639,
1323,
261,
9838,
18,
5332,
2134,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
514,
1762,
12,
13174,
682,
666,
13,
288,
202,
780,
1892,
2393,
273,
394,
6674,
5621,
3639,
987,
3198,
2775,
273,
666,
18,
1098,
3198,
5621,
3639,
1323,
261,
9838,
18,
5332,
2134,
... |
public Object replace(Object arg0, Object arg1, Object arg2) throws HibernateException { return null; | public Object replace(Object original, Object target, Object owner) throws HibernateException { return original; | public Object replace(Object arg0, Object arg1, Object arg2) throws HibernateException { // TODO Auto-generated method stub return null; } | 4075 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4075/3e5be4c89e576c2d9e3b0ef5f3f44b0b21feaf89/GeometryType.java/buggy/java/ejb3/src/org/postgis/hibernate/GeometryType.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1033,
1453,
12,
921,
1501,
20,
16,
1033,
1501,
21,
16,
1033,
1501,
22,
13,
1216,
670,
24360,
503,
288,
202,
202,
759,
2660,
8064,
17,
11168,
707,
7168,
202,
202,
2463,
446,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1033,
1453,
12,
921,
1501,
20,
16,
1033,
1501,
21,
16,
1033,
1501,
22,
13,
1216,
670,
24360,
503,
288,
202,
202,
759,
2660,
8064,
17,
11168,
707,
7168,
202,
202,
2463,
446,
... |
bodyContainer.add(new AppendingAttributeModifier("onLoad", model)); | bodyContainer.add(new AppendingAttributeModifier("onload", model)); | public final BodyContainer addOnLoadModifier(final String value) { final Model model = new Model(value); final Component bodyContainer = page.get(id); // TODO Post 1.2: Move all attribute modifier into a separate package // and add an AppendingAttributeModifier to that package bodyContainer.add(new AppendingAttributeModifier("onLoad", model)); return this; } | 46434 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46434/d8613dded4d2bb99aba9d9bf902538014539059b/BodyContainer.java/buggy/wicket/src/java/wicket/markup/html/BodyContainer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
5652,
2170,
19365,
2563,
9829,
12,
6385,
514,
460,
13,
202,
95,
202,
202,
6385,
3164,
938,
273,
394,
3164,
12,
1132,
1769,
202,
202,
6385,
5435,
1417,
2170,
273,
1363,
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,
727,
5652,
2170,
19365,
2563,
9829,
12,
6385,
514,
460,
13,
202,
95,
202,
202,
6385,
3164,
938,
273,
394,
3164,
12,
1132,
1769,
202,
202,
6385,
5435,
1417,
2170,
273,
1363,
18... |
IASTName[] decls = getDeclarationOffTU((IASTName)node); | IName[] decls = getDeclarationOffTU((IASTName)node); | public void testBug80826() throws Exception { Writer writer = new StringWriter(); writer.write("void swapImpl(int& a, int& b) {/*...*/} // line C\n"); //$NON-NLS-1$ writer.write("#define swap(a,b) (swapImpl(a,b)) // line B\n"); //$NON-NLS-1$ writer.write("// ...\n"); //$NON-NLS-1$ writer.write("void foo(int x, int y)\n"); //$NON-NLS-1$ writer.write("{\n"); //$NON-NLS-1$ writer.write("swap(x,y); // line A\n"); //$NON-NLS-1$ writer.write(" //...\n"); //$NON-NLS-1$ writer.write("}\n"); //$NON-NLS-1$ String code = writer.toString(); int index = code.indexOf("swap(x,y);"); //$NON-NLS-1$ IASTNode node = parse( code, index, index + 4, true ); assertTrue( node instanceof IASTName ); assertTrue( ((IASTName)node).resolveBinding() instanceof IMacroBinding ); assertEquals( ((IASTName)node).toString(), "swap" ); //$NON-NLS-1$ IASTName[] decls = getDeclarationOffTU((IASTName)node); assertEquals(decls.length, 1); assertEquals( decls[0].toString(), "swap" ); //$NON-NLS-1$ assertEquals( ((ASTNode)decls[0]).getOffset(), 58); assertEquals( ((ASTNode)decls[0]).getLength(), 4); } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/75cbff035e927043ff1116bbd1e33e89ab93b9cb/DOMSelectionParseTest.java/buggy/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/DOMSelectionParseTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
19865,
3672,
28,
5558,
1435,
1216,
1185,
288,
202,
202,
2289,
2633,
273,
394,
17436,
5621,
202,
202,
6299,
18,
2626,
2932,
6459,
7720,
2828,
12,
474,
10,
279,
16,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
19865,
3672,
28,
5558,
1435,
1216,
1185,
288,
202,
202,
2289,
2633,
273,
394,
17436,
5621,
202,
202,
6299,
18,
2626,
2932,
6459,
7720,
2828,
12,
474,
10,
279,
16,
5... |
nbm.setTargetMilestone(milestoneCombo.getItem(milestoneCombo.getSelectionIndex())); | public void saveDataToModel() { // get the model that we are using AbstractBugWizard wizard = (AbstractBugWizard) getWizard(); NewBugModel nbm = wizard.model; nbm.setDescription(descriptionText.getText()); nbm.setSummary(summaryText.getText()); // go through each of the attributes and sync their values with the // combo boxes for (Iterator<Attribute> it = nbm.getAttributes().iterator(); it.hasNext();) { Attribute attribute = it.next(); String key = attribute.getName(); Map<String, String> values = attribute.getOptionValues(); try { if (values == null) values = new HashMap<String, String>(); if (key.equals(ATTRIBUTE_OS)) { String os = oSCombo.getItem(oSCombo.getSelectionIndex()); attribute.setValue(os); } else if (key.equals(ATTRIBUTE_VERSION)) { String version = versionCombo.getItem(versionCombo.getSelectionIndex()); attribute.setValue(version); } else if (key.equals(ATTRIBUTE_SEVERITY)) { String severity = severityCombo.getItem(severityCombo.getSelectionIndex()); attribute.setValue(severity); } else if (key.equals(ATTRIBUTE_PLATFORM)) { String platform = platformCombo.getItem(platformCombo.getSelectionIndex()); attribute.setValue(platform); } else if (key.equals(ATTRIBUTE_COMPONENT)) { String component = componentCombo.getItem(componentCombo.getSelectionIndex()); attribute.setValue(component); } else if (key.equals(ATTRIBUTE_PRIORITY)) { String priority = priorityCombo.getItem(priorityCombo.getSelectionIndex()); attribute.setValue(priority); } else if (key.equals(ATTRIBUTE_URL)) { String url = urlText.getText(); if (url.equalsIgnoreCase("http://")) url = ""; attribute.setValue(url); } else if (key.equals("Assign To")) { String assignTo = assignedToText.getText(); attribute.setValue(assignTo); } else { // do nothing } } catch (IllegalArgumentException e) { MylarStatusHandler.fail(e, "could not set attribute: " + attribute, false); } } wizard.attributeCompleted = true; } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/ca10bb1cd2a2e03fc2c13236ecabf7a2d85b42e3/AbstractWizardDataPage.java/buggy/org.eclipse.mylyn.bugzilla.ui/src/org/eclipse/mylyn/internal/bugzilla/ui/wizard/AbstractWizardDataPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
6423,
81,
18,
542,
2326,
49,
18270,
12,
81,
18270,
16156,
18,
588,
1180,
12,
81,
18270,
16156,
18,
588,
6233,
1016,
1435,
10019,
225,
918,
6423,
81,
18,
542,
2326,
49,
18270,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6423,
81,
18,
542,
2326,
49,
18270,
12,
81,
18270,
16156,
18,
588,
1180,
12,
81,
18270,
16156,
18,
588,
6233,
1016,
1435,
10019,
225,
918,
6423,
81,
18,
542,
2326,
49,
18270,
... | |
return ParserLanguage.CPP; | return ParserLanguage.C; | public static ParserLanguage getLanguage( IPath path, IProject project ) { //FIXME: ALAIN, for headers should we assume CPP ?? // The problem is that it really depends on how the header was included. String id = null; IContentType contentType = CCorePlugin.getContentType(project, path.lastSegment()); if (contentType != null) { id = contentType.getId(); } if (id != null) { if (CCorePlugin.CONTENT_TYPE_CXXHEADER.equals(id)) { return ParserLanguage.CPP; } else if (CCorePlugin.CONTENT_TYPE_CXXSOURCE.equals(id)) { return ParserLanguage.CPP; } else if (CCorePlugin.CONTENT_TYPE_CHEADER.equals(id)) { return ParserLanguage.CPP; // <============== is that right ? should not this be C ? } else if (CCorePlugin.CONTENT_TYPE_CSOURCE.equals(id)) { return ParserLanguage.C; } else if (CCorePlugin.CONTENT_TYPE_ASMSOURCE.equals(id)) { // ??? // What do we do here ? } } return ParserLanguage.CPP; } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/b259cae6669432fb2a3cc991323c721ae2669e48/DOMSearchUtil.java/buggy/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/core/dom/DOMSearchUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
6783,
3779,
12898,
12,
467,
743,
589,
16,
467,
4109,
1984,
262,
565,
288,
4202,
202,
759,
25810,
30,
432,
2534,
706,
16,
364,
1607,
1410,
732,
6750,
5181,
52,
5317,
377,
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,
377,
1071,
760,
6783,
3779,
12898,
12,
467,
743,
589,
16,
467,
4109,
1984,
262,
565,
288,
4202,
202,
759,
25810,
30,
432,
2534,
706,
16,
364,
1607,
1410,
732,
6750,
5181,
52,
5317,
377,
202,... |
log("Failed to issue Site Command: " + TheCMD,Project.MSG_WARN); | log("Failed to issue Site Command: " + TheCMD, Project.MSG_WARN); | protected void doSiteCommand(FTPClient ftp, String TheCMD) throws IOException, BuildException { boolean rc; String MyReply[] = null; log("Doing Site Command: " + TheCMD,Project.MSG_VERBOSE); rc = ftp.sendSiteCommand(TheCMD); if (rc == false) { log("Failed to issue Site Command: " + TheCMD,Project.MSG_WARN); } else { MyReply = ftp.getReplyStrings(); for (int x=0; x < MyReply.length; x++) { if (MyReply[x].indexOf("200") == -1) { log(MyReply[x],Project.MSG_WARN); } } } } | 639 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/639/6154080061f869b4e425d608da3bd61fad967564/FTP.java/clean/src/main/org/apache/tools/ant/taskdefs/optional/net/FTP.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
741,
4956,
2189,
12,
17104,
1227,
13487,
16,
514,
1021,
19473,
13,
3639,
1216,
1860,
16,
18463,
288,
3639,
1250,
4519,
31,
3639,
514,
8005,
7817,
8526,
273,
446,
31,
3639,
613,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
741,
4956,
2189,
12,
17104,
1227,
13487,
16,
514,
1021,
19473,
13,
3639,
1216,
1860,
16,
18463,
288,
3639,
1250,
4519,
31,
3639,
514,
8005,
7817,
8526,
273,
446,
31,
3639,
613,... |
private static double TimeClip(double d) { | private static double TimeClip(double d) { | private static double TimeClip(double d) { if (d != d || d == Double.POSITIVE_INFINITY || d == Double.NEGATIVE_INFINITY || Math.abs(d) > HalfTimeDomain) { return ScriptRuntime.NaN; } if (d > 0.0) return Math.floor(d + 0.); else return Math.ceil(d + 0.); } | 11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/ba8f69355a752cc7402f5b559a19be4d84c54e22/NativeDate.java/buggy/js/rhino/src/org/mozilla/javascript/NativeDate.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
1645,
2647,
15339,
12,
9056,
302,
13,
288,
3639,
309,
261,
72,
480,
302,
747,
5411,
302,
422,
3698,
18,
7057,
16325,
67,
17716,
747,
5411,
302,
422,
3698,
18,
5407,
22421,
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,
3238,
760,
1645,
2647,
15339,
12,
9056,
302,
13,
288,
3639,
309,
261,
72,
480,
302,
747,
5411,
302,
422,
3698,
18,
7057,
16325,
67,
17716,
747,
5411,
302,
422,
3698,
18,
5407,
22421,
67... |
Section superiorSection = this.getSuperiorSection(); Site sectionSite = this.getSite(); Integer sectionToDeleteOrder = this.getSectionOrder(); | Section superiorSection = this.getSuperiorSection(); Site sectionSite = this.getSite(); Integer sectionToDeleteOrder = this.getSectionOrder(); | public void delete() { checkIfSectionCanBeDeleted(this); for (Section subSection : this.getAssociatedSections()) { checkIfSectionCanBeDeleted(subSection); } Section superiorSection = this.getSuperiorSection(); Site sectionSite = this.getSite(); Integer sectionToDeleteOrder = this.getSectionOrder(); // Delete Associated Items if (this.getAssociatedItemsCount() != 0) { List<Item> items = new ArrayList(); items.addAll(this.getAssociatedItems()); for (Item item : items) { item.delete(); } } // Delete Associated Sections if (this.getAssociatedSectionsCount() != 0) { List<Section> sections = new ArrayList(); sections.addAll(this.getAssociatedSections()); for (Section section : sections) { section.delete(); } } // Delete Associations with Superior Section if exists if (superiorSection != null) { this.setSuperiorSection(null); } // Delete Associations with Site this.setSite(null); // ReOrder Sections List<Section> sectionsReordered = sectionSite.getAssociatedSections(superiorSection); for (Section section : sectionsReordered) { Integer sectionOrder = section.getSectionOrder(); if (sectionOrder.intValue() > sectionToDeleteOrder.intValue()) { section.setSectionOrder(new Integer(sectionOrder.intValue() - 1)); } } removeRootDomainObject(); super.deleteDomainObject(); } | 2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/bcbd60dad6478ee81084418eff681466c68d2559/Section.java/clean/src/net/sourceforge/fenixedu/domain/Section.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1430,
1435,
288,
3639,
19130,
5285,
2568,
1919,
7977,
12,
2211,
1769,
3639,
364,
261,
5285,
720,
5285,
294,
333,
18,
588,
19233,
15965,
10756,
288,
5411,
19130,
5285,
2568,
1919,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1430,
1435,
288,
3639,
19130,
5285,
2568,
1919,
7977,
12,
2211,
1769,
3639,
364,
261,
5285,
720,
5285,
294,
333,
18,
588,
19233,
15965,
10756,
288,
5411,
19130,
5285,
2568,
1919,... |
public void testNLOW() throws Exception | public void testNLOW() throws Exception | public void testNLOW() throws Exception { final DefaultConfiguration checkConfig = createCheckConfig(LeftCurlyCheck.class); checkConfig.addAttribute("option", LeftCurlyOption.NLOW.toString()); final String[] expected = { "8:1: '{' should be on the previous line.", "12:5: '{' should be on the previous line.", "21:5: '{' should be on the previous line.", "30:5: '{' should be on the previous line.", "39:5: '{' should be on the previous line.", "49:14: '{' should be on a new line.", "53:14: '{' should be on a new line.", "58:18: '{' should be on a new line.", "62:18: '{' should be on a new line.", "67:12: '{' should be on a new line.", "72:18: '{' should be on a new line.", }; verify(checkConfig, getPath("InputScopeInnerInterfaces.java"), expected); } | 31427 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31427/78e9ce870170ca3ef88fd78f8e0af0681c958eb3/LeftCurlyCheckTest.java/clean/src/tests/com/puppycrawl/tools/checkstyle/checks/blocks/LeftCurlyCheckTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
50,
4130,
1435,
3639,
1216,
1185,
565,
288,
3639,
727,
2989,
1750,
866,
809,
273,
5411,
752,
1564,
809,
12,
3910,
30043,
1564,
18,
1106,
1769,
3639,
866,
809,
18,
1289,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
50,
4130,
1435,
3639,
1216,
1185,
565,
288,
3639,
727,
2989,
1750,
866,
809,
273,
5411,
752,
1564,
809,
12,
3910,
30043,
1564,
18,
1106,
1769,
3639,
866,
809,
18,
1289,
... |
public void setParent(String fatherRuntimeName) throws ProActiveException { | public void setParent(String fatherRuntimeName) throws ProActiveException { | public void setParent(String fatherRuntimeName) throws ProActiveException { try { jiniRuntime.setParent(fatherRuntimeName); } catch (java.rmi.RemoteException re) { throw new ProActiveException(re); } } | 14315 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14315/1279458d52679339839158611daec34b4baf800a/JiniRuntimeAdapter.java/buggy/src/org/objectweb/proactive/core/runtime/jini/JiniRuntimeAdapter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
12548,
12,
780,
284,
4806,
5576,
461,
13,
1216,
1186,
3896,
503,
288,
3639,
775,
288,
2398,
525,
8767,
5576,
18,
542,
3054,
12,
74,
4806,
5576,
461,
1769,
3639,
289,
1044,
26... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
12548,
12,
780,
284,
4806,
5576,
461,
13,
1216,
1186,
3896,
503,
288,
3639,
775,
288,
2398,
525,
8767,
5576,
18,
542,
3054,
12,
74,
4806,
5576,
461,
1769,
3639,
289,
1044,
26... |
IReportRunnable runnable; HttpServletRequest request = (HttpServletRequest) runOptions .getOption( InputOptions.OPT_REQUEST ); Locale locale = (Locale) runOptions.getOption( InputOptions.OPT_LOCALE ); ViewerAttributeBean attrBean = (ViewerAttributeBean) request .getAttribute( IBirtConstants.ATTRIBUTE_BEAN ); Map parsedParams = attrBean.getParameters( ); if ( parameters != null ) { parsedParams.putAll( parameters ); } runnable = (IReportRunnable) design.getDesignObject( ); try { ReportEngineService.getInstance( ).runReport( request, runnable, outputDocName, locale, (HashMap) parsedParams ); } catch ( RemoteException e ) { e.printStackTrace( ); throw new ReportServiceException( e.getLocalizedMessage( ) ); } return outputDocName; | return runReport( design, outputDocName, runOptions, parameters, null ); | public String runReport( IViewerReportDesignHandle design, String outputDocName, InputOptions runOptions, Map parameters ) throws ReportServiceException { IReportRunnable runnable; HttpServletRequest request = (HttpServletRequest) runOptions .getOption( InputOptions.OPT_REQUEST ); Locale locale = (Locale) runOptions.getOption( InputOptions.OPT_LOCALE ); ViewerAttributeBean attrBean = (ViewerAttributeBean) request .getAttribute( IBirtConstants.ATTRIBUTE_BEAN ); Map parsedParams = attrBean.getParameters( ); if ( parameters != null ) { parsedParams.putAll( parameters ); } runnable = (IReportRunnable) design.getDesignObject( ); try { ReportEngineService.getInstance( ).runReport( request, runnable, outputDocName, locale, (HashMap) parsedParams ); } catch ( RemoteException e ) { e.printStackTrace( ); throw new ReportServiceException( e.getLocalizedMessage( ) ); } return outputDocName; } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/18f4115424ea1d6d3a0a582cf6ab5434077a329f/BirtViewerReportService.java/buggy/viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/service/BirtViewerReportService.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
1086,
4820,
12,
467,
18415,
4820,
15478,
3259,
8281,
16,
1082,
202,
780,
876,
1759,
461,
16,
2741,
1320,
1086,
1320,
16,
1635,
1472,
262,
1082,
202,
15069,
8706,
15133,
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,
514,
1086,
4820,
12,
467,
18415,
4820,
15478,
3259,
8281,
16,
1082,
202,
780,
876,
1759,
461,
16,
2741,
1320,
1086,
1320,
16,
1635,
1472,
262,
1082,
202,
15069,
8706,
15133,
202... |
NativeEvaluator nativeEvaluator = schemaReader.getNativeSetEvaluator(call.getFunDef(), evaluator, call.getArgs()); | NativeEvaluator nativeEvaluator = schemaReader.getNativeSetEvaluator( call.getFunDef(), call.getArgs(), evaluator, this); | public List evaluateList(Evaluator evaluator) { // Use a native evaluator, if more efficient. // TODO: Figure this out at compile time. SchemaReader schemaReader = evaluator.getSchemaReader(); NativeEvaluator nativeEvaluator = schemaReader.getNativeSetEvaluator(call.getFunDef(), evaluator, call.getArgs()); if (nativeEvaluator != null) { return (List) nativeEvaluator.execute(); } List members = listCalc.evaluateList(evaluator); List result = new ArrayList(); Evaluator evaluator2 = evaluator.push(); for (int i = 0, count = members.size(); i < count; i++) { Member member = (Member) members.get(i); evaluator2.setContext(member); if (calc.evaluateBoolean(evaluator2)) { result.add(member); } } return result; } | 37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/319000e61453ebba073646221f973a9aed020c59/BuiltinFunTable.java/buggy/src/main/mondrian/olap/fun/BuiltinFunTable.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
7682,
1071,
987,
5956,
682,
12,
15876,
18256,
13,
288,
18701,
368,
2672,
279,
6448,
18256,
16,
309,
1898,
14382,
18,
18701,
368,
2660,
30,
18818,
333,
596,
622,
4074,
813,
18,
18701,
4611,
251... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
7682,
1071,
987,
5956,
682,
12,
15876,
18256,
13,
288,
18701,
368,
2672,
279,
6448,
18256,
16,
309,
1898,
14382,
18,
18701,
368,
2660,
30,
18818,
333,
596,
622,
4074,
813,
18,
18701,
4611,
251... |
if(includeData && allDataPending != null) | if(includeData && (allDataPending != null)) | public void sendPendingMessages(FCPConnectionOutputHandler handler, boolean includePersistentRequest, boolean includeData, boolean onlyData) { if(persistenceType == ClientRequest.PERSIST_CONNECTION) { Logger.error(this, "WTF? persistenceType="+persistenceType, new Exception("error")); return; } if(!onlyData) { if(includePersistentRequest) { FCPMessage msg = new PersistentGet(identifier, uri, verbosity, priorityClass, returnType, persistenceType, targetFile, tempFile, clientToken, client.isGlobalQueue); handler.queue(msg); } if(progressPending != null) handler.queue(progressPending); if(finished) trySendDataFoundOrGetFailed(handler); } if(includeData && allDataPending != null) handler.queue(allDataPending); } | 8026 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8026/ca136843ae9ecb30cadada58a33a5dc2cf8ad064/ClientGet.java/clean/src/freenet/node/fcp/ClientGet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1366,
8579,
5058,
12,
42,
4258,
1952,
30796,
1838,
16,
1250,
2341,
11906,
691,
16,
1250,
2341,
751,
16,
1250,
1338,
751,
13,
288,
202,
202,
430,
12,
24854,
559,
422,
2445... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1366,
8579,
5058,
12,
42,
4258,
1952,
30796,
1838,
16,
1250,
2341,
11906,
691,
16,
1250,
2341,
751,
16,
1250,
1338,
751,
13,
288,
202,
202,
430,
12,
24854,
559,
422,
2445... |
if (this.file == null ||!this.file.isDirectory()) { | if (this.file == null || !this.file.isDirectory()) { | public TarEntry[] getDirectoryEntries() { if (this.file == null ||!this.file.isDirectory()) { return new TarEntry[0]; } String[] list = this.file.list(); TarEntry[] result = new TarEntry[list.length]; for (int i = 0; i < list.length; ++i) { result[i] = new TarEntry(new File(this.file, list[i])); } return result; } | 506 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/506/6154080061f869b4e425d608da3bd61fad967564/TarEntry.java/clean/src/main/org/apache/tools/tar/TarEntry.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
20334,
1622,
8526,
19831,
5400,
1435,
288,
3639,
309,
261,
2211,
18,
768,
422,
446,
747,
401,
2211,
18,
768,
18,
291,
2853,
10756,
288,
5411,
327,
394,
20334,
1622,
63,
20,
15533,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
20334,
1622,
8526,
19831,
5400,
1435,
288,
3639,
309,
261,
2211,
18,
768,
422,
446,
747,
401,
2211,
18,
768,
18,
291,
2853,
10756,
288,
5411,
327,
394,
20334,
1622,
63,
20,
15533,
... |
getBaseDonnees ().commit () ; | public void initialiserBaseDonnees () throws ServletException { OQLQuery lRequete ; // Requte raliser sur la base QueryResults lResultat ; // Rsultat de la requte sur la base try { // Rcupre le projet ouvert dans la session HttpSession session = getRequete ().getSession (true) ; mSession = (Session) session.getAttribute ("SESSION") ; mProjet = mSession.getProjet() ; getBaseDonnees ().begin () ; int lIdProjet = mProjet.getId () ; // Rcupre le projet dans la base de donnes lRequete = getBaseDonnees () .getOQLQuery ( "select PROJET from owep.modele.execution.MProjet PROJET where mId = $1") ; lRequete.bind (lIdProjet) ; lResultat = lRequete.execute () ; mProjet = (MProjet) lResultat.next () ; getBaseDonnees ().commit () ; } catch (Exception eException) { eException.printStackTrace () ; throw new ServletException (CConstante.EXC_TRAITEMENT) ; } } | 8474 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8474/1e9e977d7cfd03e68eec5267e46682c760512583/CListeIndicateurs.java/buggy/owep/Java/owep/controle/iteration/CListeIndicateurs.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
2172,
15914,
2171,
22293,
4644,
281,
1832,
1216,
16517,
225,
288,
565,
531,
2024,
1138,
328,
426,
372,
12865,
274,
368,
17945,
624,
225,
436,
287,
15914,
5056,
7125,
1026,
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,
918,
2172,
15914,
2171,
22293,
4644,
281,
1832,
1216,
16517,
225,
288,
565,
531,
2024,
1138,
328,
426,
372,
12865,
274,
368,
17945,
624,
225,
436,
287,
15914,
5056,
7125,
1026,
565,
... | |
if (logger.isDebugEnabled()) { logger.debug("MethodCall.execute() name = " + this.getName()); logger.debug("MethodCall.execute() reifiedMethod = " + reifiedMethod); logger.debug( "MethodCall.execute() reifiedMethod.getDeclaringClass() = " + reifiedMethod.getDeclaringClass()); logger.debug("MethodCall.execute() targetObject " + targetObject); } | public Object execute(Object targetObject) throws InvocationTargetException, MethodCallExecutionFailedException { // A test at how non-public methods can be reflected if ((serializedEffectiveArguments != null) && (effectiveArguments == null)) { try { ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(serializedEffectiveArguments); //ObjectInputStream objectInputStream = new ObjectInputStream(byteArrayInputStream); MarshalInputStream objectInputStream = new MarshalInputStream(byteArrayInputStream); effectiveArguments = (Object[]) objectInputStream.readObject(); objectInputStream.close(); byteArrayInputStream.close(); } catch (Exception e) { e.printStackTrace(); } serializedEffectiveArguments = null; } if (reifiedMethod.getParameterTypes().length > 0) { reifiedMethod.setAccessible(true); } try { return reifiedMethod.invoke(targetObject, effectiveArguments); } catch (IllegalAccessException e) { throw new MethodCallExecutionFailedException( "Access rights to the method denied: " + e); } } | 58694 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58694/c171c3550f70b496c1228bbed45f5f8feea45a9c/MethodCall.java/clean/src/org/objectweb/proactive/core/mop/MethodCall.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
309,
261,
4901,
18,
291,
2829,
1526,
10756,
288,
1194,
18,
4148,
2932,
12592,
18,
8837,
1435,
508,
273,
315,
397,
333,
18,
17994,
10663,
1194,
18,
4148,
2932,
12592,
18,
8837,
1435,
283,
939,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
309,
261,
4901,
18,
291,
2829,
1526,
10756,
288,
1194,
18,
4148,
2932,
12592,
18,
8837,
1435,
508,
273,
315,
397,
333,
18,
17994,
10663,
1194,
18,
4148,
2932,
12592,
18,
8837,
1435,
283,
939,
... | |
public PreprocessorRule(IWordDetector detector, IToken defaultToken) { super(detector, defaultToken); | public PreprocessorRule(IWordDetector detector) { this(detector, Token.UNDEFINED); | public PreprocessorRule(IWordDetector detector, IToken defaultToken) { super(detector, defaultToken); } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/17464c08f4d94cc47098c0d0ca9a1f7ddc481fe8/PreprocessorRule.java/buggy/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/PreprocessorRule.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2962,
8700,
2175,
12,
45,
3944,
12594,
13826,
16,
467,
1345,
805,
1345,
13,
288,
202,
202,
9565,
12,
8238,
1229,
16,
805,
1345,
1769,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
2962,
8700,
2175,
12,
45,
3944,
12594,
13826,
16,
467,
1345,
805,
1345,
13,
288,
202,
202,
9565,
12,
8238,
1229,
16,
805,
1345,
1769,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,... |
expectFormat("data/ethene.mm1gp", "org.openscience.cdk.io.GhemicalMMReader"); | expectReader("data/ethene.mm1gp", "org.openscience.cdk.io.GhemicalMMReader"); | public void testGhemical() { expectFormat("data/ethene.mm1gp", "org.openscience.cdk.io.GhemicalMMReader"); } | 1306 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1306/bdc58ad09c37a2a429f567429207884d07cd9fdb/ReaderFactoryTest.java/clean/src/org/openscience/cdk/test/io/ReaderFactoryTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
43,
76,
351,
1706,
1435,
288,
3639,
4489,
2514,
2932,
892,
19,
546,
4009,
18,
7020,
21,
6403,
3113,
315,
3341,
18,
20346,
71,
6254,
18,
71,
2883,
18,
1594,
18,
43,
76... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
43,
76,
351,
1706,
1435,
288,
3639,
4489,
2514,
2932,
892,
19,
546,
4009,
18,
7020,
21,
6403,
3113,
315,
3341,
18,
20346,
71,
6254,
18,
71,
2883,
18,
1594,
18,
43,
76... |
DiagramPrintingResourceManager .getI18NString("PrintPreview.Title"), DiagramPrintingResourceManager .getI18NString("PrintPreview.NotEnabled")); | DiagramUIPrintingMessages.PrintPreview_Title, DiagramUIPrintingMessages.PrintPreview_NotEnabled); | public void doPrintPreview(IPrintActionHelper prActionHelper) { this.printActionHelper = prActionHelper; if (getDiagramEditorPart() == null) { MessageDialog .openInformation(PlatformUI.getWorkbench() .getActiveWorkbenchWindow().getShell(), DiagramPrintingResourceManager .getI18NString("PrintPreview.Title"), //$NON-NLS-1$ DiagramPrintingResourceManager .getI18NString("PrintPreview.NotEnabled")); //$NON-NLS-1$ return; } if (!isPrinterInstalled()) { WindowUtil .doMessageBox(DiagramPrintingResourceManager .getI18NString("PrintPreview.NoPrinterInstalled"), //$NON-NLS-1$ DiagramPrintingResourceManager .getI18NString("PrintPreview.Title"), //$NON-NLS-1$ SWT.ICON_ERROR, PlatformUI.getWorkbench() .getActiveWorkbenchWindow().getShell()); return; } initializeToolbarImages(); initializeMapMode(); diagramEditPart = null; pageBreakBounds = null; userX = 0; userY = 0; totalNumberOfRows = -1; totalNumberOfColumns = -1; if (getTotalNumberOfRows() == 1 && getTotalNumberOfColumns() == 1) { numberOfRowsToDisplay = 1; numberOfColumnsToDisplay = 1; } else if (getTotalNumberOfRows() == 1) { numberOfRowsToDisplay = 1; numberOfColumnsToDisplay = 2; } else { numberOfRowsToDisplay = 2; numberOfColumnsToDisplay = 2; } Display display = Display.getDefault(); shell = new Shell(display, SWT.APPLICATION_MODAL | SWT.TITLE | SWT.CLOSE | SWT.BORDER); shell.setSize(PlatformUI.getWorkbench().getActiveWorkbenchWindow() .getShell().getSize()); shell.setText(DiagramPrintingResourceManager .getI18NString("PrintPreview.Title")); //$NON-NLS-1$ shell.setLocation(PlatformUI.getWorkbench().getActiveWorkbenchWindow() .getShell().getLocation()); shell.setLayout(new GridLayout(1, true)); ToolBar bar = new ToolBar(shell, SWT.FLAT | SWT.HORIZONTAL); printTool = new ToolItem(bar, SWT.NULL); printTool.setToolTipText(DiagramPrintingResourceManager .getI18NString("PrintPreview.PrintToolItem")); //$NON-NLS-1$ printTool.setImage(printImage); printTool.setDisabledImage(disabledPrintImage); printTool.addSelectionListener(new SelectionListener() { /** * @see org.eclipse.swt.events.SelectionListener#widgetSelected(SelectionEvent) */ public void widgetSelected(SelectionEvent e) { //should not be enabled Assert.isNotNull(printActionHelper); printActionHelper .doPrint(PlatformUI.getWorkbench() .getActiveWorkbenchWindow().getActivePage() .getActivePart()); shell.setActive(); } /** * @see org.eclipse.swt.events.SelectionListener#widgetDefaultSelected(SelectionEvent) */ public void widgetDefaultSelected(SelectionEvent e) { widgetSelected(e); } }); if (printActionHelper == null) { printTool.setEnabled(false); } new ToolItem(bar, SWT.SEPARATOR); pagesTool = new ToolItem(bar, SWT.DROP_DOWN); pagesTool.setToolTipText(DiagramPrintingResourceManager .getI18NString("PrintPreview.PagesToolItem")); //$NON-NLS-1$ pagesTool.setImage(pageImage); pagesTool.addSelectionListener(new SelectionAdapter() { private Menu menu = null; //also update userX, userY, numberOfRowsToDisplay, // numberOfColumnsToDisplay private void updatePreview(int newNumberOfColumnsToDisplay, int newNumberOfRowsToDisplay) { numberOfRowsToDisplay = newNumberOfRowsToDisplay; numberOfColumnsToDisplay = newNumberOfColumnsToDisplay; //When switching the number of pages to display to a bigger //number, you can get an extra blank page on the right or on //the bottom. This check prevents the extra blank page. if (userX + numberOfColumnsToDisplay > getTotalNumberOfColumns()) { //move it left userX = getTotalNumberOfColumns() - numberOfColumnsToDisplay; //be safe, check for 0 if (userX < 0) userX = 0; } if (userY + numberOfRowsToDisplay > getTotalNumberOfRows()) { //move it up userY = getTotalNumberOfRows() - numberOfRowsToDisplay; //be safe, check for 0 if (userY < 0) userY = 0; } updateLeftRightUpDownButtonsForToolbar(); updateCompositeForNumberOfColumns(numberOfRowsToDisplay, numberOfColumnsToDisplay); } public void widgetSelected(SelectionEvent event) { // Create the menu if it has not already been created if (menu == null) { // Lazy create the menu. menu = new Menu(shell); MenuItem menuItem = new MenuItem(menu, SWT.NONE); menuItem.setText(DiagramPrintingResourceManager .getI18NString("PrintPreview.1Up")); //$NON-NLS-1$ menuItem.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { updatePreview(1, 1); } }); menuItem = new MenuItem(menu, SWT.NONE); menuItem.setText(DiagramPrintingResourceManager .getI18NString("PrintPreview.2Up")); //$NON-NLS-1$ menuItem.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { updatePreview(2, 1); } }); menuItem = new MenuItem(menu, SWT.NONE); menuItem.setText(DiagramPrintingResourceManager .getI18NString("PrintPreview.4Up")); //$NON-NLS-1$ menuItem.addSelectionListener(new SelectionAdapter() { public void widgetSelected(SelectionEvent e) { updatePreview(2, 2); } }); } final ToolItem toolItem = (ToolItem) event.widget; final ToolBar toolBar = toolItem.getParent(); org.eclipse.swt.graphics.Rectangle toolItemBounds = toolItem .getBounds(); //left aligned under the pages button Point point = toolBar.toDisplay(new Point(toolItemBounds.x, toolItemBounds.y)); menu.setLocation(point.x, point.y + toolItemBounds.height); setMenuVisible(true); } private void setMenuVisible(boolean visible) { menu.setVisible(visible); } }); new ToolItem(bar, SWT.SEPARATOR); leftTool = new ToolItem(bar, SWT.NULL); leftTool.setToolTipText(DiagramPrintingResourceManager .getI18NString("PrintPreview.LeftToolItem")); //$NON-NLS-1$ leftTool.setImage(leftImage); leftTool.setDisabledImage(disabledLeftImage); leftTool.addSelectionListener(new SelectionListener() { /** * @see org.eclipse.swt.events.SelectionListener#widgetSelected(SelectionEvent) */ public void widgetSelected(SelectionEvent e) { if (userX > 0) { userX--; updateCompositeForNumberOfColumns(numberOfRowsToDisplay, numberOfColumnsToDisplay); updateLeftRightUpDownButtonsForToolbar(); } } /** * @see org.eclipse.swt.events.SelectionListener#widgetDefaultSelected(SelectionEvent) */ public void widgetDefaultSelected(SelectionEvent e) { widgetSelected(e); } }); rightTool = new ToolItem(bar, SWT.NULL); rightTool.setToolTipText(DiagramPrintingResourceManager .getI18NString("PrintPreview.RightToolItem")); //$NON-NLS-1$ rightTool.setImage(rightImage); rightTool.setDisabledImage(disabledRightImage); rightTool.addSelectionListener(new SelectionListener() { /** * @see org.eclipse.swt.events.SelectionListener#widgetSelected(SelectionEvent) */ public void widgetSelected(SelectionEvent e) { //check for max pages to be safe if (!(userX + numberOfColumnsToDisplay + 1 > getTotalNumberOfColumns())) { userX++; updateCompositeForNumberOfColumns(numberOfRowsToDisplay, numberOfColumnsToDisplay); updateLeftRightUpDownButtonsForToolbar(); } } /** * @see org.eclipse.swt.events.SelectionListener#widgetDefaultSelected(SelectionEvent) */ public void widgetDefaultSelected(SelectionEvent e) { widgetSelected(e); } }); upTool = new ToolItem(bar, SWT.NULL); upTool.setToolTipText(DiagramPrintingResourceManager .getI18NString("PrintPreview.UpToolItem")); //$NON-NLS-1$ upTool.setImage(upImage); upTool.setDisabledImage(disabledUpImage); upTool.addSelectionListener(new SelectionListener() { /** * @see org.eclipse.swt.events.SelectionListener#widgetSelected(SelectionEvent) */ public void widgetSelected(SelectionEvent e) { if (userY > 0) { userY--; updateCompositeForNumberOfColumns(numberOfRowsToDisplay, numberOfColumnsToDisplay); updateLeftRightUpDownButtonsForToolbar(); } } /** * @see org.eclipse.swt.events.SelectionListener#widgetDefaultSelected(SelectionEvent) */ public void widgetDefaultSelected(SelectionEvent e) { widgetSelected(e); } }); downTool = new ToolItem(bar, SWT.NULL); downTool.setToolTipText(DiagramPrintingResourceManager .getI18NString("PrintPreview.DownToolItem")); //$NON-NLS-1$ downTool.setImage(downImage); downTool.setDisabledImage(disabledDownImage); downTool.addSelectionListener(new SelectionListener() { /** * @see org.eclipse.swt.events.SelectionListener#widgetSelected(SelectionEvent) */ public void widgetSelected(SelectionEvent e) { if (!(userY + numberOfRowsToDisplay + 1 > getTotalNumberOfRows())) { userY++; updateCompositeForNumberOfColumns(numberOfRowsToDisplay, numberOfColumnsToDisplay); updateLeftRightUpDownButtonsForToolbar(); } } /** * @see org.eclipse.swt.events.SelectionListener#widgetDefaultSelected(SelectionEvent) */ public void widgetDefaultSelected(SelectionEvent e) { widgetSelected(e); } }); new ToolItem(bar, SWT.SEPARATOR); closeTool = new ToolItem(bar, SWT.NULL); closeTool.setToolTipText(DiagramPrintingResourceManager .getI18NString("PrintPreview.CloseToolItem")); //$NON-NLS-1$ closeTool.setImage(closeImage); closeTool.addSelectionListener(new SelectionListener() { /** * @see org.eclipse.swt.events.SelectionListener#widgetSelected(SelectionEvent) */ public void widgetSelected(SelectionEvent e) { dispose(); shell.close(); shell.dispose(); } /** * @see org.eclipse.swt.events.SelectionListener#widgetDefaultSelected(SelectionEvent) */ public void widgetDefaultSelected(SelectionEvent e) { widgetSelected(e); } }); buttonBarHeight = bar.getBounds().height - bar.getBounds().y; bar.setBounds(0, 0, shell.getSize().x, buttonBarHeight); //do the body in the middle body = new Composite(shell, SWT.NULL); body.setLayout(new GridLayout(1, true)); body.setLayoutData(new GridData(GridData.FILL_BOTH)); body.setBackground(BACKGROUND_COLOR); composite = new Composite(body, SWT.NULL); composite.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, true, true)); updateCompositeForNumberOfColumns(numberOfRowsToDisplay, numberOfColumnsToDisplay); updateLeftRightUpDownButtonsForToolbar(); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } shell.dispose(); } | 1758 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1758/e66f9c3483db21ee776650f0e5341a7a370f06cb/PrintPreviewHelper.java/buggy/org.eclipse.gmf.runtime/plugins/org.eclipse.gmf.runtime.diagram.ui.printing/src/org/eclipse/gmf/runtime/diagram/ui/printing/internal/printpreview/PrintPreviewHelper.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
741,
5108,
11124,
12,
45,
5108,
1803,
2276,
846,
1803,
2276,
13,
288,
202,
202,
2211,
18,
1188,
1803,
2276,
273,
846,
1803,
2276,
31,
202,
202,
430,
261,
588,
14058,
1940... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
741,
5108,
11124,
12,
45,
5108,
1803,
2276,
846,
1803,
2276,
13,
288,
202,
202,
2211,
18,
1188,
1803,
2276,
273,
846,
1803,
2276,
31,
202,
202,
430,
261,
588,
14058,
1940... |
manager.registerListener(l); | try { manager.registerListener(l); } catch (NotificationException e) { /* ignore */} | public final void initialise() throws InitialisationException { doInitialise(); UMOManager manager = MuleManager.getInstance(); if (!ignoreManagerNotifications) { UMOServerNotificationListener l = new ManagerNotificationListener() { public void onNotification(UMOServerNotification notification) { logEvent(notification); } }; manager.registerListener(l); listeners.add(l); } if (!ignoreModelNotifications) { UMOServerNotificationListener l = new ModelNotificationListener() { public void onNotification(UMOServerNotification notification) { logEvent(notification); } }; manager.registerListener(l); listeners.add(l); } if (!ignoreComponentNotifications) { UMOServerNotificationListener l = new ComponentNotificationListener() { public void onNotification(UMOServerNotification notification) { logEvent(notification); } }; manager.registerListener(l); listeners.add(l); } if (!ignoreSecurityNotifications) { UMOServerNotificationListener l = new SecurityNotificationListener() { public void onNotification(UMOServerNotification notification) { logEvent(notification); } }; manager.registerListener(l); listeners.add(l); } if (!ignoreManagementNotifications) { UMOServerNotificationListener l = new ManagementNotificationListener() { public void onNotification(UMOServerNotification notification) { logEvent(notification); } }; manager.registerListener(l); listeners.add(l); } if (!ignoreCustomNotifications) { UMOServerNotificationListener l = new CustomNotificationListener() { public void onNotification(UMOServerNotification notification) { logEvent(notification); } }; manager.registerListener(l); listeners.add(l); } if (!ignoreConnectionNotifications) { UMOServerNotificationListener l = new ConnectionNotificationListener() { public void onNotification(UMOServerNotification notification) { logEvent(notification); } }; manager.registerListener(l); listeners.add(l); } if (!ignoreAdminNotifications) { UMOServerNotificationListener l = new AdminNotificationListener() { public void onNotification(UMOServerNotification notification) { logEvent(notification); } }; manager.registerListener(l); listeners.add(l); } if(!ignoreMessageNotifications && !MuleManager.getConfiguration().isEnableMessageEvents()) { logger.warn("EventLogger agent has been asked to log message notifications, but the MuleManager is configured not to fire Message notifications"); } else if (!ignoreMessageNotifications) { UMOServerNotificationListener l = new MessageNotificationListener() { public void onNotification(UMOServerNotification notification) { logEvent(notification); } }; manager.registerListener(l); listeners.add(l); } } | 2370 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2370/4117224fe9284dc1348388627d8e6180e86a1dcb/AbstractNotificationLoggerAgent.java/buggy/src/java/org/mule/impl/internal/admin/AbstractNotificationLoggerAgent.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
918,
21301,
1435,
1216,
10188,
10742,
503,
565,
288,
3639,
741,
4435,
784,
5621,
3639,
587,
5980,
1318,
3301,
273,
490,
725,
1318,
18,
588,
1442,
5621,
3639,
309,
16051,
6185,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
727,
918,
21301,
1435,
1216,
10188,
10742,
503,
565,
288,
3639,
741,
4435,
784,
5621,
3639,
587,
5980,
1318,
3301,
273,
490,
725,
1318,
18,
588,
1442,
5621,
3639,
309,
16051,
6185,
... |
FCPQueueLoader queueLoader = new FCPQueueLoader(config.getValue("thawId")); queueLoader.start(queueManager); | FCPQueueLoader queueLoader = new FCPQueueLoader(this.config.getValue("thawId")); queueLoader.start(this.queueManager); | public boolean initNodeConnection() { if(getMainWindow() != null) getMainWindow().setStatus(I18n.getMessage("thaw.statusBar.connecting")); try { if(queueManager != null) queueManager.stopScheduler(); if(connection != null && connection.isConnected()) { disconnect(); } if(connection == null) { connection = new FCPConnection(config.getValue("nodeAddress"), Integer.parseInt(config.getValue("nodePort")), Integer.parseInt(config.getValue("maxUploadSpeed")), Boolean.valueOf(config.getValue("multipleSockets")).booleanValue()); } else { connection.setNodeAddress(config.getValue("nodeAddress")); connection.setNodePort(Integer.parseInt(config.getValue("nodePort"))); connection.setMaxUploadSpeed(Integer.parseInt(config.getValue("maxUploadSpeed"))); } if(!connection.connect()) { Logger.warning(this, "Unable to connect !"); } if(queryManager == null) queryManager = new FCPQueryManager(connection); if(queueManager == null) queueManager = new FCPQueueManager(queryManager, config.getValue("thawId"), Integer.parseInt(config.getValue("maxSimultaneousDownloads")), Integer.parseInt(config.getValue("maxSimultaneousInsertions"))); else { queueManager.setThawId(config.getValue("thawId")); queueManager.setMaxDownloads(Integer.parseInt(config.getValue("maxSimultaneousDownloads"))); queueManager.setMaxInsertions(Integer.parseInt(config.getValue("maxSimultaneousInsertions"))); } if(connection.isConnected()) { queryManager.startListening(); QueueKeeper.loadQueue(queueManager, "thaw.queue.xml"); clientHello = new FCPClientHello(queryManager, config.getValue("thawId")); if(!clientHello.start(null)) { Logger.warning(this, "Id already used !"); connection.disconnect(); new WarningWindow(this, "Unable to connect to "+config.getValue("nodeAddress")+":"+config.getValue("nodePort")); return false; } else { Logger.debug(this, "Hello successful"); Logger.debug(this, "Node name : "+clientHello.getNodeName()); Logger.debug(this, "FCP version : "+clientHello.getNodeFCPVersion()); Logger.debug(this, "Node version : "+clientHello.getNodeVersion()); queueManager.startScheduler(); queueManager.restartNonPersistent(); FCPWatchGlobal watchGlobal = new FCPWatchGlobal(true); watchGlobal.start(queueManager); FCPQueueLoader queueLoader = new FCPQueueLoader(config.getValue("thawId")); queueLoader.start(queueManager); } } else { return false; } } catch(Exception e) { /* A little bit not ... "nice" ... */ Logger.warning(this, "Exception while connecting : "+e.toString()+" ; "+e.getMessage() + " ; "+e.getCause()); e.printStackTrace(); return false; } if(connection.isConnected()) connection.addObserver(this); if(getMainWindow() != null) getMainWindow().setStatus(I18n.getMessage("thaw.statusBar.ready")); return true; } | 47012 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47012/88402a3bc59123261d50a7cfed0ac20de2b772f6/Core.java/clean/src/thaw/core/Core.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
1208,
907,
1952,
1435,
288,
202,
202,
430,
12,
588,
6376,
3829,
1435,
480,
446,
13,
1082,
202,
588,
6376,
3829,
7675,
542,
1482,
12,
45,
2643,
82,
18,
24906,
2932,
451,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1250,
1208,
907,
1952,
1435,
288,
202,
202,
430,
12,
588,
6376,
3829,
1435,
480,
446,
13,
1082,
202,
588,
6376,
3829,
7675,
542,
1482,
12,
45,
2643,
82,
18,
24906,
2932,
451,
... |
_selectors = selectors; } | _selectors = selectors; } | public void setSelectors(Set<HCorrelatorSelector> selectors) { _selectors = selectors; } | 47044 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47044/09b7bc81ee0b928ba82939c26ceb06ae7bf923a2/HCorrelator.java/buggy/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/hobj/HCorrelator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
19277,
12,
694,
32,
44,
6217,
2878,
639,
4320,
34,
11424,
13,
288,
202,
202,
67,
29829,
273,
11424,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
444,
19277,
12,
694,
32,
44,
6217,
2878,
639,
4320,
34,
11424,
13,
288,
202,
202,
67,
29829,
273,
11424,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if (s.trim().length() == 0) return; | synchronized public void message(String s) { if (s.trim().length() == 0) return; //System.out.println("M" + s.length() + ":" + s); // this is PApplet sending a message (via System.out.println) // that signals that the applet has been quit. if (s.indexOf(PApplet.EXTERNAL_QUIT) == 0) { //System.out.println("external: quit"); editor.doClose(); return; } // this is the PApplet sending us a message that the applet // is being moved to a new window location if (s.indexOf(PApplet.EXTERNAL_MOVE) == 0) { String nums = s.substring(s.indexOf(' ') + 1).trim(); int space = nums.indexOf(' '); int left = Integer.parseInt(nums.substring(0, space)); int top = Integer.parseInt(nums.substring(space + 1)); editor.appletLocation = new Point(left, top); //System.out.println("external: move to " + left + " " + top); return; } // this is PApplet sending a message saying "i'm about to spew // a stack trace because an error occurred during PApplet.run()" if (s.indexOf(PApplet.LEECH_WAKEUP) == 0) { // newMessage being set to 'true' means that the next time // message() is called, expect the first line of the actual // error message & stack trace to be sent from the applet. newMessage = true; return; // this line ignored } // these are used for debugging, in case there are concerns // that some errors aren't coming through properly /* if (s.length() > 2) { System.err.println(newMessage); System.err.println("message " + s.length() + ":" + s); } */ // always shove out the mesage, since it might not fall under // the same setup as we're expecting System.err.print(s); //System.err.println("[" + s.length() + "] " + s); System.err.flush(); // if s.length <=2, ignore it because that probably means // that it's just the platform line-terminators. //if (s.length() < 2) return; // annoying, because it seems as though the terminators // aren't being sent properly //System.err.println(s); //if (newMessage && s.length() > 2) { if (newMessage) { exception = new RunnerException(s); // type of java ex exception.hideStackTrace = true; //System.out.println("setting ex type to " + s); newMessage = false; foundMessageSource = false; messageLineCount = 0; } else { messageLineCount++; /*java.lang.NullPointerException at javatest.<init>(javatest.java:5) at Temporary_2425_1153.draw(Temporary_2425_1153.java:11) at PApplet.nextFrame(PApplet.java:481) at PApplet.run(PApplet.java:428) at java.lang.Thread.run(Unknown Source) */ if (!foundMessageSource) { // " at javatest.<init>(javatest.java:5)" // -> "javatest.<init>(javatest.java:5)" int afterAt = s.indexOf("at") + 3; //if (afterAt == -1) { if (afterAt == 2) { // means indexOf was -1 System.err.println(s); return; } s = s.substring(afterAt + 1); // "javatest.<init>(javatest.java:5)" // -> "javatest.<init>" and "(javatest.java:5)" int startParen = s.indexOf('('); // at javatest.<init>(javatest.java:5) String pkgClassFxn = null; //String fileLine = null; int codeIndex = -1; int lineIndex = -1; if (startParen == -1) { pkgClassFxn = s; } else { pkgClassFxn = s.substring(0, startParen); // "(javatest.java:5)" String fileAndLine = s.substring(startParen + 1); fileAndLine = fileAndLine.substring(0, fileAndLine.length() - 1); //if (!fileAndLine.equals("Unknown Source")) { // "javatest.java:5" int colonIndex = fileAndLine.indexOf(':'); if (colonIndex != -1) { String filename = fileAndLine.substring(0, colonIndex); // "javatest.java" and "5" //System.out.println("filename = " + filename); //System.out.println("pre0 = " + sketch.code[0].preprocName); for (int i = 0; i < sketch.codeCount; i++) { if (sketch.code[i].preprocName.equals(filename)) { codeIndex = i; break; } } if (codeIndex != -1) { // this may have a paren on the end, if so need to strip // down to just the digits int lastNumberIndex = colonIndex + 1; while ((lastNumberIndex < fileAndLine.length()) && Character.isDigit(fileAndLine.charAt(lastNumberIndex))) { lastNumberIndex++; } // lineIndex is 1-indexed, but editor wants zero-indexed lineIndex = Integer.parseInt(fileAndLine.substring(colonIndex + 1, lastNumberIndex)); exception = new RunnerException(exception.getMessage(), codeIndex, lineIndex - 1, -1); exception.hideStackTrace = true; foundMessageSource = true; } } } editor.error(exception); /* int index = s.indexOf(className + ".java"); if (index != -1) { int len = (className + ".java").length(); String lineNumberStr = s.substring(index + len + 1); index = lineNumberStr.indexOf(')'); lineNumberStr = lineNumberStr.substring(0, index); try { exception.line = Integer.parseInt(lineNumberStr) - 1; //2; } catch (NumberFormatException e) { } //e.printStackTrace(); // a recursive error waiting to happen? // if nfe occurs, who cares, still send the error on up editor.error(exception); */ /* // WARNING THESE ARE DISABLED!! } else if ((index = s.indexOf(className + ".class")) != -1) { // code to check for: // at Temporary_484_3845.loop(Compiled Code) // would also probably get: // at Temporary_484_3845.loop // which (i believe) is used by the mac and/or jview String functionStr = s.substring(index + (className + ".class").length() + 1); index = functionStr.indexOf('('); if (index != -1) { functionStr = functionStr.substring(0, index); } exception = new RunnerException(//"inside \"" + functionStr + "()\": " + exception.getMessage() + " inside " + functionStr + "() " + "[add Compiler.disable() to setup()]"); editor.error(exception); // this will fall through in tihs example: // at Temporary_4636_9696.pootie(Compiled Code) // at Temporary_4636_9696.loop(Temporary_4636_9696.java:24) // because pootie() (re)sets the exception title // and throws it, but then the line number gets set // because of the line that comes after */ } else if (messageLineCount > 5) { // this means the class name may not be mentioned // in the stack trace.. this is just a general purpose // error, but needs to make it through anyway. // so if five lines have gone past, might as well signal messageLineCount = -100; exception = new RunnerException(exception.getMessage()); exception.hideStackTrace = true; editor.error(exception); } else { //System.err.print(s); } //System.out.println("got it " + s); } } | 8833 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8833/b6066844cb968b37980ec6875af1fc004a4bd861/Runner.java/clean/app/Runner.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3852,
1071,
918,
883,
12,
780,
272,
13,
288,
225,
309,
261,
87,
18,
5290,
7675,
2469,
1435,
422,
374,
13,
327,
31,
225,
309,
261,
87,
18,
5290,
7675,
2469,
1435,
422,
374,
13,
327,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3852,
1071,
918,
883,
12,
780,
272,
13,
288,
225,
309,
261,
87,
18,
5290,
7675,
2469,
1435,
422,
374,
13,
327,
31,
225,
309,
261,
87,
18,
5290,
7675,
2469,
1435,
422,
374,
13,
327,
... | |
} | public String getHref() { Node attribute = node.getAttributes().getNamedItem(HREF_ATTRIBUTE_NAME); if (attribute != null) { return attribute.getNodeValue(); } else { return null; } } | 45951 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45951/6a307d1aa012151ea5662c0fe8d90e3697ae2a1f/SiteTreeNodeImpl.java/clean/src/java/org/apache/lenya/cms/publication/SiteTreeNodeImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
7628,
1734,
1435,
288,
202,
907,
1566,
273,
756,
18,
588,
2498,
7675,
588,
7604,
1180,
12,
44,
10771,
67,
11616,
67,
1985,
1769,
202,
430,
261,
4589,
480,
446,
13,
288,
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,
377,
1071,
514,
7628,
1734,
1435,
288,
202,
907,
1566,
273,
756,
18,
588,
2498,
7675,
588,
7604,
1180,
12,
44,
10771,
67,
11616,
67,
1985,
1769,
202,
430,
261,
4589,
480,
446,
13,
288,
202,
... | |
} for (int i = 0; i < schemalist.size(); i++) { schema = (XmlSchema) schemalist.get(i); XmlSchemaObjectCollection includes = schema.getIncludes(); if (includes != null) { Iterator tempIterator = includes.getIterator(); while (tempIterator.hasNext()) { Object o = tempIterator.next(); if (o instanceof XmlSchemaImport) { XmlSchema schema1 = ((XmlSchemaImport) o).getSchema(); if (schema1 == null) { ((XmlSchemaImport) o).setSchema( (XmlSchema) availableSchemaMap.get(((XmlSchemaImport) o).getNamespace())); } } } } | public void compile(List schemalist) throws SchemaCompilationException { try { if (schemalist.isEmpty()){ return; } //clear the loaded and available maps loadedSchemaMap.clear(); availableSchemaMap.clear(); XmlSchema schema; // first round - populate the avaialble map for (int i = 0; i < schemalist.size(); i++) { schema = (XmlSchema) schemalist.get(i); availableSchemaMap.put( schema.getTargetNamespace(), schema ); } // Fix up the imported schemas when all the schemas are // defined in the same file and import each other. for (int i = 0; i < schemalist.size(); i++) { schema = (XmlSchema) schemalist.get(i); XmlSchemaObjectCollection includes = schema.getIncludes(); if (includes != null) { Iterator tempIterator = includes.getIterator(); while (tempIterator.hasNext()) { Object o = tempIterator.next(); if (o instanceof XmlSchemaImport) { XmlSchema schema1 = ((XmlSchemaImport) o).getSchema(); if (schema1 == null) { ((XmlSchemaImport) o).setSchema( (XmlSchema) availableSchemaMap.get(((XmlSchemaImport) o).getNamespace())); } } } } } //set a mapper package if not avaialable if (writer.getExtensionMapperPackageName()==null){ //get the first schema from the list and take that namespace as the //mapper namespace writer.registerExtensionMapperPackageName( URLProcessor.makePackageName(((XmlSchema) schemalist.get(0)).getTargetNamespace())); } // second round - call the schema compiler one by one for (int i = 0; i < schemalist.size(); i++) { compile((XmlSchema) schemalist.get(i),true); } //finish up finalizeSchemaCompilation(); } catch (SchemaCompilationException e) { throw e; } catch (Exception e) { throw new SchemaCompilationException(e); } } | 49300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49300/93e11c8b6ef63c1fbd10538668502c65a1569999/SchemaCompiler.java/buggy/modules/adb-codegen/src/org/apache/axis2/schema/SchemaCompiler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4074,
12,
682,
30140,
287,
376,
13,
1216,
4611,
19184,
503,
288,
3639,
775,
288,
5411,
309,
261,
87,
1036,
287,
376,
18,
291,
1921,
10756,
95,
7734,
327,
31,
5411,
289,
5411,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
4074,
12,
682,
30140,
287,
376,
13,
1216,
4611,
19184,
503,
288,
3639,
775,
288,
5411,
309,
261,
87,
1036,
287,
376,
18,
291,
1921,
10756,
95,
7734,
327,
31,
5411,
289,
5411,... | |
if (userDir.length() == 0) return ""; | if (userDir.length() == 0) return new URI("file", "", "", null, null); | private static synchronized String getUserDir() { // get the user.dir property String userDir = ""; try { userDir = System.getProperty("user.dir"); } catch (SecurityException se) { } // return empty string if property value is empty string. if (userDir.length() == 0) return ""; // compute the new escaped value if the new property value doesn't // match the previous one if (userDir.equals(gUserDir)) { return gEscapedUserDir; } // record the new value as the global property value gUserDir = userDir; char separator = java.io.File.separatorChar; userDir = userDir.replace(separator, '/'); int len = userDir.length(), ch; StringBuffer buffer = new StringBuffer(len*3); // change C:/blah to /C:/blah if (len >= 2 && userDir.charAt(1) == ':') { ch = Character.toUpperCase(userDir.charAt(0)); if (ch >= 'A' && ch <= 'Z') { buffer.append('/'); } } // for each character in the path int i = 0; for (; i < len; i++) { ch = userDir.charAt(i); // if it's not an ASCII character, break here, and use UTF-8 encoding if (ch >= 128) break; if (gNeedEscaping[ch]) { buffer.append('%'); buffer.append(gAfterEscaping1[ch]); buffer.append(gAfterEscaping2[ch]); // record the fact that it's escaped } else { buffer.append((char)ch); } } // we saw some non-ascii character if (i < len) { // get UTF-8 bytes for the remaining sub-string byte[] bytes = null; byte b; try { bytes = userDir.substring(i).getBytes("UTF-8"); } catch (java.io.UnsupportedEncodingException e) { // should never happen return userDir; } len = bytes.length; // for each byte for (i = 0; i < len; i++) { b = bytes[i]; // for non-ascii character: make it positive, then escape if (b < 0) { ch = b + 256; buffer.append('%'); buffer.append(gHexChs[ch >> 4]); buffer.append(gHexChs[ch & 0xf]); } else if (gNeedEscaping[b]) { buffer.append('%'); buffer.append(gAfterEscaping1[b]); buffer.append(gAfterEscaping2[b]); } else { buffer.append((char)b); } } } // change blah/blah to blah/blah/ if (!userDir.endsWith("/")) buffer.append('/'); gEscapedUserDir = buffer.toString(); return gEscapedUserDir; } | 1831 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1831/057d137239f946cae88b3a7ef32de0e11d4acb9c/XMLEntityManager.java/clean/src/org/apache/xerces/impl/XMLEntityManager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
3852,
514,
4735,
1621,
1435,
288,
3639,
368,
336,
326,
729,
18,
1214,
1272,
3639,
514,
729,
1621,
273,
1408,
31,
3639,
775,
288,
5411,
729,
1621,
273,
2332,
18,
588,
1396,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3852,
514,
4735,
1621,
1435,
288,
3639,
368,
336,
326,
729,
18,
1214,
1272,
3639,
514,
729,
1621,
273,
1408,
31,
3639,
775,
288,
5411,
729,
1621,
273,
2332,
18,
588,
1396,
29... |
private XmlFormattingPolicy createPolicyFor(final PsiElement psiElement) { /* final Language language = psiElement.getLanguage(); final XmlFormattingPolicy result; if (language == StdLanguages.JSP || language == StdLanguages.XML) { result = new HtmlPolicy(getSettings(), myXmlFormattingPolicy.getDocumentModel()); } else { result = new HtmlPolicy(getSettings(), myXmlFormattingPolicy.getDocumentModel()); } result.copyFrom(myXmlFormattingPolicy); return result; */ | private XmlFormattingPolicy createPolicyFor() { | private XmlFormattingPolicy createPolicyFor(final PsiElement psiElement) { /* final Language language = psiElement.getLanguage(); final XmlFormattingPolicy result; if (language == StdLanguages.JSP || language == StdLanguages.XML) { result = new HtmlPolicy(getSettings(), myXmlFormattingPolicy.getDocumentModel()); } else { result = new HtmlPolicy(getSettings(), myXmlFormattingPolicy.getDocumentModel()); } result.copyFrom(myXmlFormattingPolicy); return result; */ return myXmlFormattingPolicy; } | 17306 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17306/e445fbd436094e87ae0470c30494f83872333c35/AbstractXmlBlock.java/buggy/source/com/intellij/psi/formatter/xml/AbstractXmlBlock.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
5714,
23974,
2582,
752,
2582,
1290,
12,
6385,
453,
7722,
1046,
23921,
1046,
13,
288,
565,
1748,
565,
727,
9889,
2653,
273,
23921,
1046,
18,
588,
3779,
5621,
565,
727,
5714,
23974,
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,
282,
3238,
5714,
23974,
2582,
752,
2582,
1290,
12,
6385,
453,
7722,
1046,
23921,
1046,
13,
288,
565,
1748,
565,
727,
9889,
2653,
273,
23921,
1046,
18,
588,
3779,
5621,
565,
727,
5714,
23974,
2... |
JFrame jf = new JFrame("Choose Address"); | JFrame jf = new JFrame(Pooka.getProperty("AddressBookTable.title", "Choose Address")); | public void showAddressWindow(AddressEntryTextArea aeta) { JFrame jf = new JFrame("Choose Address"); jf.getContentPane().add(new AddressBookSelectionPanel(aeta, jf)); jf.pack(); applyNewWindowLocation(jf, aeta); jf.show(); } | 967 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/967/f242d6e413ab5655eb64eb6c9cd7f6fab9d7666e/PookaMinimalUIFactory.java/clean/src/net/suberic/pooka/gui/PookaMinimalUIFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
2405,
1887,
3829,
12,
1887,
1622,
1528,
5484,
279,
1066,
13,
288,
565,
804,
3219,
525,
74,
273,
394,
804,
3219,
12,
52,
1184,
69,
18,
588,
1396,
2932,
31374,
1388,
18,
2649,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2405,
1887,
3829,
12,
1887,
1622,
1528,
5484,
279,
1066,
13,
288,
565,
804,
3219,
525,
74,
273,
394,
804,
3219,
12,
52,
1184,
69,
18,
588,
1396,
2932,
31374,
1388,
18,
2649,
... |
Logger.trace("GameObjects::damage",">"); | Log4J.startMethod(logger,"attack"); | public void attack(RPEntity source, RPObject.ID target, int risk, int damage) throws AttributeNotFoundException { Logger.trace("GameObjects::damage",">"); Entity entity=objects.get(target); if(entity!=null && entity instanceof RPEntity) { RPEntity rpentity=(RPEntity)entity; rpentity.onAttack(source,risk, damage); } Logger.trace("GameObjects::damage","<"); } | 4438 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4438/2f5a2a4a5b59a172e667611127a4c633125829e5/GameObjects.java/buggy/src/games/stendhal/client/GameObjects.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
13843,
12,
54,
1423,
1628,
1084,
16,
534,
52,
921,
18,
734,
1018,
16,
509,
18404,
16,
509,
302,
301,
410,
13,
1216,
3601,
3990,
565,
288,
565,
1827,
24,
46,
18,
1937,
1305,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13843,
12,
54,
1423,
1628,
1084,
16,
534,
52,
921,
18,
734,
1018,
16,
509,
18404,
16,
509,
302,
301,
410,
13,
1216,
3601,
3990,
565,
288,
565,
1827,
24,
46,
18,
1937,
1305,... |
List properties, Expr ci, TypeNode superClass, List interfaces, ClassBody body); | List<PropertyDecl> properties, Expr ci, TypeNode superClass, List interfaces, ClassBody body); | ValueClassDecl ValueClassDecl(Position pos, Flags flags, String name, List properties, Expr ci, TypeNode superClass, List interfaces, ClassBody body); | 1769 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1769/c6a9c5919552b91fb0c4af00afd67a30f78acfc4/X10NodeFactory.java/clean/x10.compiler/src/polyglot/ext/x10/ast/X10NodeFactory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
620,
797,
3456,
1445,
797,
3456,
12,
2555,
949,
16,
10104,
2943,
16,
514,
508,
16,
5411,
987,
1790,
16,
8074,
9039,
16,
1412,
907,
18846,
16,
987,
7349,
16,
6862,
6862,
225,
1659,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
620,
797,
3456,
1445,
797,
3456,
12,
2555,
949,
16,
10104,
2943,
16,
514,
508,
16,
5411,
987,
1790,
16,
8074,
9039,
16,
1412,
907,
18846,
16,
987,
7349,
16,
6862,
6862,
225,
1659,
... |
no_mods(); | no_mods(); | public void setNodeValue (String value) throws DOMException { no_mods(); } | 47110 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47110/9d0f816af79cfb799742ca4bd5fc7f9d27e4ae0e/NamespaceNode.java/buggy/jaxen/src/java/main/org/jaxen/dom/NamespaceNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
26250,
620,
261,
780,
460,
13,
202,
15069,
4703,
503,
565,
288,
202,
2135,
67,
22760,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
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,
26250,
620,
261,
780,
460,
13,
202,
15069,
4703,
503,
565,
288,
202,
2135,
67,
22760,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
protected String getSearchResultsSummary() { | protected String getSearchResultsSummary() { if (this.masterList.size() == 0) { Object[] objs = {prop.getProperty("paging.banner.items_name")}; return MessageFormat.format( prop.getProperty("paging.banner.no_items_found"), objs); } else if (this.masterList.size() == 1) { Object[] objs = {prop.getProperty("paging.banner.item_name")}; return MessageFormat.format( prop.getProperty("paging.banner.one_item_found"), objs); } else if (this.getFirstIndexForCurrentPage() == this.getLastIndexForCurrentPage()) { Object[] objs = {new Integer(this.masterList.size()), prop.getProperty("paging.banner.items_name"), prop.getProperty("paging.banner.items_name")}; | protected String getSearchResultsSummary() { if( this.masterList.size() == 0 ) { Object[] objs = {prop.getProperty( "paging.banner.items_name" )}; return MessageFormat.format( prop.getProperty( "paging.banner.no_items_found" ), objs ); } else if( this.masterList.size() == 1 ) { Object[] objs = {prop.getProperty( "paging.banner.item_name" )}; return MessageFormat.format( prop.getProperty( "paging.banner.one_item_found" ), objs ); } else if( this.getFirstIndexForCurrentPage() == this.getLastIndexForCurrentPage() ) { Object[] objs = {new Integer( this.masterList.size() ), prop.getProperty( "paging.banner.items_name" ), prop.getProperty( "paging.banner.items_name" )}; return MessageFormat.format( prop.getProperty( "paging.banner.all_items_found" ), objs ); } else { Object[] objs = {new Integer( this.masterList.size() ), prop.getProperty( "paging.banner.items_name" ), new Integer( this.getFirstIndexForCurrentPage() + 1 ), new Integer( this.getLastIndexForCurrentPage() + 1 )}; return MessageFormat.format( prop.getProperty( "paging.banner.some_items_found" ), objs ); } } | 10316 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10316/08c9646d52e50d1acc1b275f065d301659beba20/SmartListHelper.java/buggy/_OLD/displaytag08/src/org/apache/taglibs/display/SmartListHelper.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
4750,
514,
15627,
3447,
4733,
1435,
282,
288,
1377,
309,
12,
333,
18,
7525,
682,
18,
1467,
1435,
422,
374,
262,
288,
540,
1033,
8526,
12721,
273,
288,
5986,
18,
588,
1396,
12,
315,
84,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
4750,
514,
15627,
3447,
4733,
1435,
282,
288,
1377,
309,
12,
333,
18,
7525,
682,
18,
1467,
1435,
422,
374,
262,
288,
540,
1033,
8526,
12721,
273,
288,
5986,
18,
588,
1396,
12,
315,
84,
... |
modify(); | public RubyHash delete_if() { modify(); reject_bang(); return this; } | 47273 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47273/8ef00c6601e0840552319c941ea16e78bee769fe/RubyHash.java/clean/org/jruby/RubyHash.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
19817,
2310,
1430,
67,
430,
1435,
288,
202,
202,
17042,
5621,
202,
202,
24163,
67,
70,
539,
5621,
202,
202,
2463,
333,
31,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
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,
19817,
2310,
1430,
67,
430,
1435,
288,
202,
202,
17042,
5621,
202,
202,
24163,
67,
70,
539,
5621,
202,
202,
2463,
333,
31,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100... | |
public void removeLayoutComponent(Component component) { | public void removeLayoutComponent(Component component) { | public void removeLayoutComponent(Component component) { // do nothing } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/e0c4001932916dcdf180e32bf374255e88829b25/MetalFileChooserUI.java/clean/core/src/classpath/javax/javax/swing/plaf/metal/MetalFileChooserUI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1206,
3744,
1841,
12,
1841,
1794,
13,
288,
1377,
368,
741,
5083,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1206,
3744,
1841,
12,
1841,
1794,
13,
288,
1377,
368,
741,
5083,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-1... |
if ((buf[0]==105&& buf[1]==105&&buf[2]==105&&buf[3]==105) || (buf[0]==109&& buf[1]==109&&buf[2]==109&&buf[3]==109)) { imp = (ImagePlus) IJ.runPlugIn("IPLab_Reader", path); if (imp==null) width = PLUGIN_NOT_FOUND; if (imp!=null&&imp.getWidth()==0) imp = null; o = imp; } if (name.endsWith(".img") && buf[0]==75 && buf[1]==65 && buf[2]==74 && buf[3]==0) { imp = (ImagePlus) IJ.runPlugIn("InstantImager_Reader", path); if (imp==null) width = PLUGIN_NOT_FOUND; if (imp!=null&&imp.getWidth()==0) imp = null; o = imp; } if (name.endsWith(".img") || name.endsWith(".hdr")) { o = IJ.runPlugIn("Analyze_Reader", path); width = IMAGE_OPENED; } | private ImagePlus openImage(String directory, String name) { ImagePlus imp = null; Object o = null; // check the number of open windows int openWindows = WindowManager.getWindowCount(); // Set out file name and path if (directory.length()>0 && !directory.endsWith(Prefs.separator)) directory += Prefs.separator; String path = directory+name; // set up a stream to read in 132 bytes from the file header // These can be checked for "magic" values which are diagnostic // of some image types InputStream is; byte[] buf = new byte[132]; try { is = new FileInputStream(path); is.read(buf, 0, 132); is.close(); } catch (IOException e) { // Couldn't open the file for reading return null; } name = name.toLowerCase(); // OK now we get to the interesting bit // GJ: added Biorad PIC confocal file handler // Note that the Biorad_Reader plugin extends the ImagePlus class, // which is why the IJ.runPlugIn() call below returns an ImagePlus object. // ------------------------------------------ // These make 12345 if you read them as the right kind of short // and should have this value in every Biorad PIC file if(buf[54]==57 && buf[55]==48) { // Ok we've identified the file type // Now load it using the relevant plugin imp = (ImagePlus) IJ.runPlugIn("Biorad_Reader", path); if (imp==null) width = PLUGIN_NOT_FOUND; if (imp!=null&&imp.getWidth()==0) imp = null; o = imp; } // GJ: added Gatan Digital Micrograph DM3 handler // Note that the DM3_Reader plugin extends the ImagePlus class, // which is why the IJ.runPlugIn() call below returns an ImagePlus object. // ---------------------------------------------- // Check if the file ends in .DM3 or .dm3 if (name.endsWith(".dm3")) { // These make an int value of 3 which is the DM3 version number if(buf[0]==0 && buf[1]==0 && buf[2]==0 && buf[3]==3) { // Ok we've identified the file type - now load it imp = (ImagePlus) IJ.runPlugIn("DM3_Reader", path); if (imp==null) width = PLUGIN_NOT_FOUND; if (imp!=null&&imp.getWidth()==0) imp = null; o = imp; } } // Analyze format (.img/.hdr) handler // Note that the Analyze_Reader plugin opens and displays the // image and does not implement the ImagePlus class. if (name.endsWith(".img") || name.endsWith(".hdr")) { // Open Analyze image and display it o = IJ.runPlugIn("Analyze_Reader", path); // Set flag so Opener.openImage() does not display error width = IMAGE_OPENED; } // IPLab file handler // Note that the IPLab_Reader plugin extends the ImagePlus class. // Little-endian IPLab files start with "iiii" or "mmmm". if ((buf[0]==105&& buf[1]==105&&buf[2]==105&&buf[3]==105) || (buf[0]==109&& buf[1]==109&&buf[2]==109&&buf[3]==109)) { imp = (ImagePlus) IJ.runPlugIn("IPLab_Reader", path); if (imp==null) width = PLUGIN_NOT_FOUND; if (imp!=null&&imp.getWidth()==0) imp = null; o = imp; } // Packard InstantImager format (.img) handler -> check HERE // before Analyze check below! // Note that the InstantImager_Reader plugin extends the ImagePlus class. // Check extension and signature bytes KAJ_ if (name.endsWith(".img") && buf[0]==75 && buf[1]==65 && buf[2]==74 && buf[3]==0) { imp = (ImagePlus) IJ.runPlugIn("InstantImager_Reader", path); if (imp==null) width = PLUGIN_NOT_FOUND; if (imp!=null&&imp.getWidth()==0) imp = null; o = imp; } // Analyze format (.img/.hdr) handler // Note that the Analyze_Reader plugin opens and displays the // image and does not implement the ImagePlus class. if (name.endsWith(".img") || name.endsWith(".hdr")) { // Open Analyze image and display it o = IJ.runPlugIn("Analyze_Reader", path); // Set flag so Opener.openImage() does not display error width = IMAGE_OPENED; } // Image Cytometry Standard (.ics) handler // http://valelab.ucsf.edu/~nico/IJplugins/Ics_Opener.html if (name.endsWith(".ics")) { // Open ICS image and display it o = IJ.runPlugIn("Ics_Opener", path); // Set flag so Opener.openImage() does not display error width = IMAGE_OPENED; } // Princeton Instruments SPE image file (.spe) handler // http://rsb.info.nih.gov/ij/plugins/spe.html if (name.endsWith(".spe")) { // Open SPEimage and display it o = IJ.runPlugIn("OpenSPE_", path); // Set flag so Opener.openImage() does not display error width = IMAGE_OPENED; } // Zeiss Confocal LSM 510 image file (.lsm) handler // http://rsb.info.nih.gov/ij/plugins/lsm-reader.html if (name.endsWith(".lsm")) { o = IJ.runPlugIn("LSM_Reader", path); width = IMAGE_OPENED; } // BM: added Bruker file handler 29.07.04 if (name.equals("ser") || name.equals("fid") || name.equals("2rr") || name.equals("2ii") || name.equals("3rrr") || name.equals("3iii") || name.equals("2dseq")) { ij.IJ.showStatus("Opening Bruker " + name + " File"); o = IJ.runPlugIn("BrukerOpener", name + "|" + path); width = IMAGE_OPENED; } // AVI: open AVI files using AVI_Reader plugin if (name.endsWith(".avi")) { o = IJ.runPlugIn("AVI_Reader", path); width = IMAGE_OPENED; } // QuickTime: open .mov files using QT_Movie_Opener plugin if (name.endsWith(".mov")) { o = IJ.runPlugIn("QT_Movie_Opener", path); width = IMAGE_OPENED; } // ZVI file handler // Little-endian ZVI files start with d0 cf 11 e0. if (name.endsWith(".zvi") || (buf[0]==-48&& buf[1]==-49&&buf[2]==17&&buf[3]==-32)) { o = IJ.runPlugIn("ZVI_Reader", path); width = IMAGE_OPENED; } //University of North Carolina (UNC) file format handler // 'magic' numbers are (int) offsets to data structures and // may change in future releases. if (name.endsWith(".unc") || (buf[3]==117&&buf[7]==-127&&buf[11]==36&&buf[14]==32&&buf[15]==-127)) { o = IJ.runPlugIn("UNC_Reader", path); width = IMAGE_OPENED; } // ****************** MODIFY HERE ****************** // Do what ever you have to do to recognise your own file type // and then call appropriate plugin // using the above as models // eg: /* // A. Dent: Added XYZ handler // ---------------------------------------------- // Check if the file ends in .XYZ or .xyz if (name.toUpperCase().endsWith(".XYZ")) { // Bytes 0 and 1 must equal 42 for this file type if(buf[0]==42 && buf[1]==42) { // Ok we've identified the file type - now load it imp = (ImagePlus) IJ.runPlugIn("XYZ_Reader", path); if (imp==null) width = PLUGIN_NOT_FOUND; if (imp!=null&&imp.getWidth()==0) imp = null; o = imp; } } */ // if nothing was opened, one of the plugins must have failed int finalWindows = WindowManager.getWindowCount(); if (finalWindows == openWindows) o = null; // CTR: try opening the file with LOCI Bio-Formats // Always check this last! if (o == null) { Object loci = IJ.runPlugIn("loci.browser.LociImporter", path); if (loci != null) { // plugin exists and was launched try { // check whether plugin was successful boolean ok = loci.getClass().getField("success").getBoolean(loci); if (ok) { width = IMAGE_OPENED; return null; } } catch (Exception exc) { } } } else if (imp != null) return imp; // If we got this far we didn't recognise the file type return null; } | 55303 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55303/db5fe533bb4898f85d3df9e9df27eeb01a2df3f9/HandleExtraFileTypes.java/clean/loci/plugins/HandleExtraFileTypes.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
3421,
13207,
1696,
2040,
12,
780,
1867,
16,
514,
508,
13,
288,
565,
3421,
13207,
1646,
273,
446,
31,
565,
1033,
320,
273,
446,
31,
565,
368,
866,
326,
1300,
434,
1696,
9965,
565,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
3421,
13207,
1696,
2040,
12,
780,
1867,
16,
514,
508,
13,
288,
565,
3421,
13207,
1646,
273,
446,
31,
565,
1033,
320,
273,
446,
31,
565,
368,
866,
326,
1300,
434,
1696,
9965,
565,
... | |
Highlighter highlighter = new Highlighter(formatter, new QueryScorer(query)); | QueryScorer scorer = new QueryScorer(query); Highlighter highlighter = new Highlighter(formatter, scorer); | public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { HttpSession session = request.getSession(); ServletContext context = session.getServletContext(); TemplateSearchForm sf = (TemplateSearchForm) form; String queryString = sf.getQueryString(); Map globalTemplates = SessionMethods.getSuperUserProfile(context).getSavedTemplates(); Profile profile = (Profile) session.getAttribute(Constants.PROFILE); if (StringUtils.isNotEmpty(queryString)) { LOG.info("Searching " + sf.getType() + " templates for \"" + sf.getQueryString() + "\""); long time = System.currentTimeMillis(); Directory dir = (Directory) context.getAttribute(Constants.TEMPLATE_INDEX_DIR); IndexSearcher is = new IndexSearcher(profile.getUserTemplatesIndex()); IndexSearcher is2 = new IndexSearcher(dir); Searchable[] searchables; if (sf.getType().equals("user")) { searchables = new Searchable[]{is}; } else if (sf.getType().equals("global")) { searchables = new Searchable[]{is2}; } else { searchables = new Searchable[]{is, is2}; } MultiSearcher searcher = new MultiSearcher(searchables); Analyzer analyzer = new SnowballAnalyzer("English", StopAnalyzer.ENGLISH_STOP_WORDS); Query query; try { QueryParser queryParser = new QueryParser("content", analyzer); query = queryParser.parse(queryString); } catch (ParseException err) { recordError(new ActionMessage("errors.templatesearch.badinput", err.getMessage()), request); return mapping.findForward("templateSearch"); } query = query.rewrite(IndexReader.open(dir)); // required to expand search terms Hits hits = searcher.search(query); time = System.currentTimeMillis() - time; Map hitMap = new LinkedHashMap(); Map typeMap = new LinkedHashMap(); Map highlightedMap = new HashMap(); LOG.info("Found " + hits.length() + " document(s) that matched query '" + queryString + "' in " + time + " milliseconds:"); Highlighter highlighter = new Highlighter(formatter, new QueryScorer(query)); for (int i = 0; i < hits.length(); i++) { TemplateQuery template = null; Document doc = hits.doc(i); String type = doc.get("type"); String name = doc.get("name"); if (type.equals("user")) { template = (TemplateQuery) profile.getSavedTemplates().get(name); } else if (type.equals("global")) { template = (TemplateQuery) globalTemplates.get(name); } hitMap.put(template, new Float(hits.score(i))); typeMap.put(template, type); TokenStream tokenStream = analyzer.tokenStream("", new StringReader(template.getDescription())); highlighter.setTextFragmenter(new NullFragmenter()); highlightedMap.put(template, highlighter.getBestFragment(tokenStream, template.getDescription())); } request.setAttribute("results", hitMap); request.setAttribute("templateTypes", typeMap); request.setAttribute("highlighted", highlightedMap); request.setAttribute("querySeconds", new Float(time / 1000f)); request.setAttribute("queryString", queryString); request.setAttribute("resultCount", new Integer(hitMap.size())); } return mapping.findForward("templateSearch"); } | 7196 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7196/42800e701a949b806083c2fd2eb1dbc3bf9d9e18/TemplateSearchAction.java/buggy/intermine/web/main/src/org/intermine/web/TemplateSearchAction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4382,
8514,
1836,
12,
1803,
3233,
2874,
16,
4766,
4382,
1204,
646,
16,
4766,
9984,
590,
16,
4766,
12446,
766,
13,
3639,
1216,
1185,
288,
3639,
26166,
1339,
273,
590,
18,
588,
2157,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4382,
8514,
1836,
12,
1803,
3233,
2874,
16,
4766,
4382,
1204,
646,
16,
4766,
9984,
590,
16,
4766,
12446,
766,
13,
3639,
1216,
1185,
288,
3639,
26166,
1339,
273,
590,
18,
588,
2157,
... |
RubyIO.print(defout.toRubyObject(), args); | RubyIO.print(defout, args); | public static IRubyObject print(IRubyObject recv, IRubyObject args[]) { IRubyObject defout = recv.getRuntime().getGlobalVar("$>"); RubyIO.print(defout.toRubyObject(), args); return recv.getRuntime().getNil(); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f235ab756f32ea9496f8f880066b46ad95ebb692/RubyKernel.java/clean/org/jruby/RubyKernel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
15908,
10340,
921,
1172,
12,
7937,
10340,
921,
10665,
16,
15908,
10340,
921,
833,
63,
5717,
288,
3639,
15908,
10340,
921,
443,
617,
322,
273,
10665,
18,
588,
5576,
7675,
588,
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,
377,
1071,
760,
15908,
10340,
921,
1172,
12,
7937,
10340,
921,
10665,
16,
15908,
10340,
921,
833,
63,
5717,
288,
3639,
15908,
10340,
921,
443,
617,
322,
273,
10665,
18,
588,
5576,
7675,
588,
5... |
fArray, dataBuffer); | iArray, dataBuffer); | public void setPixel(int x, int y, float[] fArray) { sampleModel.setPixel(x-sampleModelTranslateX, y-sampleModelTranslateY, fArray, dataBuffer); } | 50763 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50763/fd6a57fe2ed88cedb0f331b4b49081272bc198c5/WritableRaster.java/buggy/core/src/classpath/java/java/awt/image/WritableRaster.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
444,
9037,
12,
474,
619,
16,
509,
677,
16,
1431,
8526,
284,
1076,
13,
225,
288,
565,
3296,
1488,
18,
542,
9037,
12,
92,
17,
6358,
1488,
12818,
60,
16,
9506,
677,
17,
6358,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
918,
444,
9037,
12,
474,
619,
16,
509,
677,
16,
1431,
8526,
284,
1076,
13,
225,
288,
565,
3296,
1488,
18,
542,
9037,
12,
92,
17,
6358,
1488,
12818,
60,
16,
9506,
677,
17,
6358,
... |
IOdaDataSourceDesign newExtendedDataSource( OdaDataSourceHandle source ) throws BirtException { OdaDataSourceDesign dteSource = new OdaDataSourceDesign( source .getQualifiedName( ) ); IBaseDataSourceEventHandler eventHandler = new DataSourceScriptExecutor( source, reportContext ); dteSource.setEventHandler( eventHandler ); // Adapt base class properties adaptBaseDataSource( source, dteSource ); // Adapt extended data source elements // validate that a required attribute is specified String driverName = source.getExtensionID( ); if ( driverName == null || driverName.length( ) == 0 ) { throw new EngineException( "Missing extenion id in data source definition, " + source.getName( ) ); //$NON-NLS-1$ } dteSource.setExtensionID( driverName ); // static ROM properties defined by the ODA driver extension Map staticProps = getExtensionProperties( source, source .getExtensionPropertyDefinitionList( ) ); if ( staticProps != null && !staticProps.isEmpty( ) ) { Iterator propNamesItr = staticProps.keySet( ).iterator( ); while ( propNamesItr.hasNext( ) ) { String propName = (String)propNamesItr.next( ); assert ( propName != null ); String propValue; // If property binding expression exists, use its evaluation result String bindingExpr =source.getPropertyBinding( propName ); if ( needPropertyBinding( ) && bindingExpr != null && bindingExpr.length( ) > 0 ) { propValue = evaluatePropertyBindingExpr( bindingExpr ); } else { propValue = ( String ) staticProps.get( propName ); } dteSource.addPublicProperty( ( String ) propName, propValue ); } } // private driver properties / private runtime data Iterator elmtIter = source.privateDriverPropertiesIterator( ); if ( elmtIter != null ) { while ( elmtIter.hasNext( ) ) { ExtendedPropertyHandle modelProp = ( ExtendedPropertyHandle ) elmtIter .next( ); dteSource.addPrivateProperty( modelProp.getName( ), modelProp.getValue( ) ); } } return dteSource; } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/c0422a1db84842d1e332663c3d4c7e2a8109aca8/ModelDteApiAdapter.java/buggy/engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/adapter/ModelDteApiAdapter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
4294,
2414,
8597,
15478,
394,
11456,
8597,
12,
531,
2414,
8597,
3259,
1084,
262,
1875,
202,
15069,
605,
2714,
503,
202,
95,
202,
202,
51,
2414,
8597,
15478,
302,
736,
1830,
273,
394,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
4294,
2414,
8597,
15478,
394,
11456,
8597,
12,
531,
2414,
8597,
3259,
1084,
262,
1875,
202,
15069,
605,
2714,
503,
202,
95,
202,
202,
51,
2414,
8597,
15478,
302,
736,
1830,
273,
394,... | ||
public TA_RetCode MAMA( int startIdx, int endIdx, double inReal[], double optInFastLimit, double optInSlowLimit, MInteger outBegIdx, MInteger outNbElement, double outMAMA[], double outFAMA[] ){ int outIdx, i; int lookbackTotal, today; double tempReal, tempReal2; double adjustedPrevPeriod, period; int trailingWMAIdx; double periodWMASum, periodWMASub, trailingWMAValue; double smoothedValue; final double a = 0.0962; final double b = 0.5769; double hilbertTempReal; int hilbertIdx; double []detrender_Odd = new double[3]; ; double []detrender_Even = new double[3]; ; double detrender; double prev_detrender_Odd ; double prev_detrender_Even ; double prev_detrender_input_Odd ; double prev_detrender_input_Even ; double []Q1_Odd = new double[3]; ; double []Q1_Even = new double[3]; ; double Q1; double prev_Q1_Odd ; double prev_Q1_Even ; double prev_Q1_input_Odd ; double prev_Q1_input_Even ; double []jI_Odd = new double[3]; ; double []jI_Even = new double[3]; ; double jI; double prev_jI_Odd ; double prev_jI_Even ; double prev_jI_input_Odd ; double prev_jI_input_Even ; double []jQ_Odd = new double[3]; ; double []jQ_Even = new double[3]; ; double jQ; double prev_jQ_Odd ; double prev_jQ_Even ; double prev_jQ_input_Odd ; double prev_jQ_input_Even ; double Q2, I2, prevQ2, prevI2, Re, Im; double I1ForOddPrev2, I1ForOddPrev3; double I1ForEvenPrev2, I1ForEvenPrev3; double rad2Deg; double mama,fama,todayValue,prevPhase; 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; if( optInFastLimit == (-4e+37) ) optInFastLimit = 5.000000e-1; else if( (optInFastLimit < 1.000000e-2) || (optInFastLimit > 9.900000e-1) ) return TA_RetCode. TA_BAD_PARAM; if( optInSlowLimit == (-4e+37) ) optInSlowLimit = 5.000000e-2; else if( (optInSlowLimit < 1.000000e-2) || (optInSlowLimit > 9.900000e-1) ) return TA_RetCode. TA_BAD_PARAM; rad2Deg = 180.0 / (4.0 * Math.atan (1)); lookbackTotal = 32 + (this.unstablePeriod[TA_FuncUnstId.TA_FUNC_UNST_MAMA.ordinal()]) ; if( startIdx < lookbackTotal ) startIdx = lookbackTotal; if( startIdx > endIdx ) { outBegIdx.value = 0 ; outNbElement.value = 0 ; return TA_RetCode. TA_SUCCESS; } outBegIdx.value = startIdx; trailingWMAIdx = startIdx - lookbackTotal; today = trailingWMAIdx; tempReal = inReal[today++]; periodWMASub = tempReal; periodWMASum = tempReal; tempReal = inReal[today++]; periodWMASub += tempReal; periodWMASum += tempReal*2.0; tempReal = inReal[today++]; periodWMASub += tempReal; periodWMASum += tempReal*3.0; trailingWMAValue = 0.0; i = 9; do { tempReal = inReal[today++]; { periodWMASub += tempReal; periodWMASub -= trailingWMAValue; periodWMASum += tempReal*4.0; trailingWMAValue = inReal[trailingWMAIdx++]; smoothedValue = periodWMASum*0.1; periodWMASum -= periodWMASub; } ; } while( --i != 0); hilbertIdx = 0; { detrender_Odd [0] = 0.0; detrender_Odd [1] = 0.0; detrender_Odd [2] = 0.0; detrender_Even [0] = 0.0; detrender_Even [1] = 0.0; detrender_Even [2] = 0.0; detrender = 0.0; prev_detrender_Odd = 0.0; prev_detrender_Even = 0.0; prev_detrender_input_Odd = 0.0; prev_detrender_input_Even = 0.0; } ; { Q1_Odd [0] = 0.0; Q1_Odd [1] = 0.0; Q1_Odd [2] = 0.0; Q1_Even [0] = 0.0; Q1_Even [1] = 0.0; Q1_Even [2] = 0.0; Q1 = 0.0; prev_Q1_Odd = 0.0; prev_Q1_Even = 0.0; prev_Q1_input_Odd = 0.0; prev_Q1_input_Even = 0.0; } ; { jI_Odd [0] = 0.0; jI_Odd [1] = 0.0; jI_Odd [2] = 0.0; jI_Even [0] = 0.0; jI_Even [1] = 0.0; jI_Even [2] = 0.0; jI = 0.0; prev_jI_Odd = 0.0; prev_jI_Even = 0.0; prev_jI_input_Odd = 0.0; prev_jI_input_Even = 0.0; } ; { jQ_Odd [0] = 0.0; jQ_Odd [1] = 0.0; jQ_Odd [2] = 0.0; jQ_Even [0] = 0.0; jQ_Even [1] = 0.0; jQ_Even [2] = 0.0; jQ = 0.0; prev_jQ_Odd = 0.0; prev_jQ_Even = 0.0; prev_jQ_input_Odd = 0.0; prev_jQ_input_Even = 0.0; } ; period = 0.0; outIdx = 0; prevI2 = prevQ2 = 0.0; Re = Im = 0.0; mama = fama = 0.0; I1ForOddPrev3 = I1ForEvenPrev3 = 0.0; I1ForOddPrev2 = I1ForEvenPrev2 = 0.0; prevPhase = 0.0; while( today <= endIdx ) { adjustedPrevPeriod = (0.075*period)+0.54; todayValue = inReal[today]; { periodWMASub += todayValue; periodWMASub -= trailingWMAValue; periodWMASum += todayValue*4.0; trailingWMAValue = inReal[trailingWMAIdx++]; smoothedValue = periodWMASum*0.1; periodWMASum -= periodWMASub; } ; if( (today%2) == 0 ) { { hilbertTempReal = a * smoothedValue; detrender = -detrender_Even [hilbertIdx]; detrender_Even [hilbertIdx] = hilbertTempReal; detrender += hilbertTempReal; detrender -= prev_detrender_Even ; prev_detrender_Even = b * prev_detrender_input_Even ; detrender += prev_detrender_Even ; prev_detrender_input_Even = smoothedValue; detrender *= adjustedPrevPeriod; } ; { hilbertTempReal = a * detrender; Q1 = -Q1_Even [hilbertIdx]; Q1_Even [hilbertIdx] = hilbertTempReal; Q1 += hilbertTempReal; Q1 -= prev_Q1_Even ; prev_Q1_Even = b * prev_Q1_input_Even ; Q1 += prev_Q1_Even ; prev_Q1_input_Even = detrender; Q1 *= adjustedPrevPeriod; } ; { hilbertTempReal = a * I1ForEvenPrev3; jI = -jI_Even [hilbertIdx]; jI_Even [hilbertIdx] = hilbertTempReal; jI += hilbertTempReal; jI -= prev_jI_Even ; prev_jI_Even = b * prev_jI_input_Even ; jI += prev_jI_Even ; prev_jI_input_Even = I1ForEvenPrev3; jI *= adjustedPrevPeriod; } ; { hilbertTempReal = a * Q1; jQ = -jQ_Even [hilbertIdx]; jQ_Even [hilbertIdx] = hilbertTempReal; jQ += hilbertTempReal; jQ -= prev_jQ_Even ; prev_jQ_Even = b * prev_jQ_input_Even ; jQ += prev_jQ_Even ; prev_jQ_input_Even = Q1; jQ *= adjustedPrevPeriod; } ; if( ++hilbertIdx == 3 ) hilbertIdx = 0; Q2 = (0.2*(Q1 + jI)) + (0.8*prevQ2); I2 = (0.2*(I1ForEvenPrev3 - jQ)) + (0.8*prevI2); I1ForOddPrev3 = I1ForOddPrev2; I1ForOddPrev2 = detrender; if( I1ForEvenPrev3 != 0.0 ) tempReal2 = ( Math.atan (Q1/I1ForEvenPrev3)*rad2Deg); else tempReal2 = 0.0; } else { { hilbertTempReal = a * smoothedValue; detrender = -detrender_Odd [hilbertIdx]; detrender_Odd [hilbertIdx] = hilbertTempReal; detrender += hilbertTempReal; detrender -= prev_detrender_Odd ; prev_detrender_Odd = b * prev_detrender_input_Odd ; detrender += prev_detrender_Odd ; prev_detrender_input_Odd = smoothedValue; detrender *= adjustedPrevPeriod; } ; { hilbertTempReal = a * detrender; Q1 = -Q1_Odd [hilbertIdx]; Q1_Odd [hilbertIdx] = hilbertTempReal; Q1 += hilbertTempReal; Q1 -= prev_Q1_Odd ; prev_Q1_Odd = b * prev_Q1_input_Odd ; Q1 += prev_Q1_Odd ; prev_Q1_input_Odd = detrender; Q1 *= adjustedPrevPeriod; } ; { hilbertTempReal = a * I1ForOddPrev3; jI = -jI_Odd [hilbertIdx]; jI_Odd [hilbertIdx] = hilbertTempReal; jI += hilbertTempReal; jI -= prev_jI_Odd ; prev_jI_Odd = b * prev_jI_input_Odd ; jI += prev_jI_Odd ; prev_jI_input_Odd = I1ForOddPrev3; jI *= adjustedPrevPeriod; } ; { hilbertTempReal = a * Q1; jQ = -jQ_Odd [hilbertIdx]; jQ_Odd [hilbertIdx] = hilbertTempReal; jQ += hilbertTempReal; jQ -= prev_jQ_Odd ; prev_jQ_Odd = b * prev_jQ_input_Odd ; jQ += prev_jQ_Odd ; prev_jQ_input_Odd = Q1; jQ *= adjustedPrevPeriod; } ; Q2 = (0.2*(Q1 + jI)) + (0.8*prevQ2); I2 = (0.2*(I1ForOddPrev3 - jQ)) + (0.8*prevI2); I1ForEvenPrev3 = I1ForEvenPrev2; I1ForEvenPrev2 = detrender; if( I1ForOddPrev3 != 0.0 ) tempReal2 = ( Math.atan (Q1/I1ForOddPrev3)*rad2Deg); else tempReal2 = 0.0; } tempReal = prevPhase - tempReal2; prevPhase = tempReal2; if( tempReal < 1.0 ) tempReal = 1.0; if( tempReal > 1.0 ) { tempReal = optInFastLimit/tempReal; if( tempReal < optInSlowLimit ) tempReal = optInSlowLimit; } else { tempReal = optInFastLimit; } mama = (tempReal*todayValue)+((1-tempReal)*mama); tempReal *= 0.5; fama = (tempReal*mama)+((1-tempReal)*fama); if( today >= startIdx ) { outMAMA[outIdx] = mama; outFAMA[outIdx++] = fama; } Re = (0.2*((I2*prevI2)+(Q2*prevQ2)))+(0.8*Re); Im = (0.2*((I2*prevQ2)-(Q2*prevI2)))+(0.8*Im); prevQ2 = Q2; prevI2 = I2; tempReal = period; if( (Im != 0.0) && (Re != 0.0) ) period = 360.0 / ( Math.atan (Im/Re)*rad2Deg); tempReal2 = 1.5*tempReal; if( period > tempReal2) period = tempReal2; tempReal2 = 0.67*tempReal; if( period < tempReal2 ) period = tempReal2; if( period < 6 ) period = 6; else if( period > 50 ) period = 50; period = (0.2*period) + (0.8 * tempReal); today++; } outNbElement.value = outIdx; return TA_RetCode. TA_SUCCESS;} | 7231 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7231/1bccb7a13486c61b10e8ebdf0c938797539a3f3d/Core.java/clean/ta-lib/java/src/TA/Lib/Core.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
1071,
399,
37,
67,
7055,
1085,
490,
2192,
37,
12,
509,
27108,
16,
509,
679,
4223,
16,
1645,
316,
6955,
63,
6487,
1645,
2153,
382,
12305,
3039,
16,
1645,
2153,
382,
28733,
3039,
16,
490,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
490,
2192,
37,
12,
509,
27108,
16,
509,
679,
4223,
16,
1645,
316,
6955,
63,
6487,
1645,
2153,
382,
12305,
3039,
16,
1645,
2153,
382,
28733,
3039,
16,
490,... | ||
IPMatcher.MATCHER_ALL, IPMatcher.parse( "1.2.3.1-1.2.3.10" ), new PortMatcher( 1000, 5000 ), PortMatcher.MATCHER_ALL, | ipmf.getAllMatcher(), ipmf.parse( "1.2.3.1 - 1.2.3.10" ), pmf.makeRangeMatcher( 1000, 5000 ), pmf.getAllMatcher(), | FirewallSettings getDefaultSettings() { logger.info( "Loading the default settings" ); FirewallSettings settings = new FirewallSettings( this.getTid()); /* Need this to lookup the local IP address */ NetworkingConfiguration netConfig = MvvmContextFactory.context().networkingManager().get(); try { /* Redirect settings */ settings.setQuickExit( true ); settings.setRejectSilently( true ); settings.setDefaultAccept( true ); List<FirewallRule> firewallList = new LinkedList<FirewallRule>(); IPMatcher localHostMatcher = new IPMatcher( netConfig.host()); FirewallRule tmp = new FirewallRule( false, ProtocolMatcher.MATCHER_ALL, false, true, IPMatcher.MATCHER_ALL, IPMatcher.MATCHER_ALL, PortMatcher.MATCHER_ALL, new PortMatcher( 21 ), true ); tmp.setLog( true ); tmp.setDescription( "Block and log all incoming traffic destined to port 21 (FTP)" ); firewallList.add( tmp ); /* Block all traffic TCP traffic from the network 1.2.3.4/255.255.255.0 */ tmp = new FirewallRule( false, ProtocolMatcher.MATCHER_TCP, true, true, IPMatcher.parse( "1.2.3.0/255.255.255.0" ), IPMatcher.MATCHER_ALL, PortMatcher.MATCHER_ALL, PortMatcher.MATCHER_ALL, true ); tmp.setDescription( "Block all TCP traffic from 1.2.3.0 netmask 255.255.255.0" ); firewallList.add( tmp ); tmp = new FirewallRule( false, ProtocolMatcher.MATCHER_ALL, true, true, IPMatcher.MATCHER_ALL, IPMatcher.parse( "1.2.3.1-1.2.3.10" ), new PortMatcher( 1000, 5000 ), PortMatcher.MATCHER_ALL, false ); tmp.setLog( true ); tmp.setDescription( "Accept and log all traffic to the range 1.2.3.1 - 1.2.3.10 from ports 1000-5000" ); firewallList.add( tmp ); tmp = new FirewallRule( false, ProtocolMatcher.MATCHER_PING, true, true, IPMatcher.MATCHER_ALL, IPMatcher.parse( "1.2.3.1" ), PortMatcher.MATCHER_PING, PortMatcher.MATCHER_PING, false ); tmp.setDescription( "Accept PINGs to 1.2.3.1. Note: the source and destination ports are ignored." ); firewallList.add( tmp ); for ( Iterator<FirewallRule> iter = firewallList.iterator() ; iter.hasNext() ; ) { iter.next().setCategory( "[Sample]" ); } settings.setFirewallRuleList( firewallList ); } catch (Exception e ) { logger.error( "This should never happen", e ); } return settings; } | 49954 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49954/f195f519648c05c4a5317cfd8293b1d4f20c13eb/FirewallImpl.java/buggy/tran/firewall/main/com/metavize/tran/firewall/FirewallImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
22829,
2628,
4829,
2628,
1435,
565,
288,
3639,
1194,
18,
1376,
12,
315,
10515,
326,
805,
1947,
6,
11272,
3639,
22829,
2628,
1947,
273,
394,
22829,
2628,
12,
333,
18,
588,
56,
350,
10663,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
22829,
2628,
4829,
2628,
1435,
565,
288,
3639,
1194,
18,
1376,
12,
315,
10515,
326,
805,
1947,
6,
11272,
3639,
22829,
2628,
1947,
273,
394,
22829,
2628,
12,
333,
18,
588,
56,
350,
10663,
... |
return (PluginPanel)m_pluginPanels.get(index); | return (PluginPanel)pluginPanels.get(index); | public PluginPanel getPluginPanel(int index) { return (PluginPanel)m_pluginPanels.get(index); } | 48500 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48500/f8bdbb2dab0d67be139dd05d6110e466306c8868/TreePluginPanelContainer.java/clean/src/java/org/apache/ftpserver/gui/TreePluginPanelContainer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
6258,
5537,
16319,
5537,
12,
474,
770,
13,
288,
3639,
327,
261,
3773,
5537,
13,
4094,
5537,
87,
18,
588,
12,
1615,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
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,
6258,
5537,
16319,
5537,
12,
474,
770,
13,
288,
3639,
327,
261,
3773,
5537,
13,
4094,
5537,
87,
18,
588,
12,
1615,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
executeSQL("INSERT INTO outages ( outageId, nodeId, ipAddr, ifLostService, serviceID ) " + "VALUES ( nextval('outageNxtId'), 1, '1.2.3.6', now(), 2 )"); | public void testUpgradeRevision3952ToCurrentWithData() throws Exception { if (!isDBTestEnabled()) { return; } String newCreate = m_installer.m_create_sql; URL sql = getClass().getResource("/create.sql-revision-3952"); assertNotNull("Could not find create.sql", sql); m_installer.m_create_sql = sql.getFile(); m_installer.readTables(); // First pass. m_installer.createSequences(); m_installer.m_triggerDao = new TriggerDao(); //m_installer.updatePlPgsql(); //m_installer.addStoredProcedures(); m_installer.createTables(); // Data executeSQL("INSERT INTO node ( nodeId, nodeCreateTime) VALUES ( 1, now() )"); executeSQL("INSERT INTO snmpInterface ( nodeId, ipAddr, snmpIfIndex) VALUES ( 1, '1.2.3.4', 1 )"); executeSQL("INSERT INTO ipInterface ( nodeId, ipAddr, ifIndex ) VALUES ( 1, '1.2.3.4', 1 )"); executeSQL("INSERT INTO ipInterface ( nodeId, ipAddr, ifIndex ) VALUES ( 1, '1.2.3.5', null )"); executeSQL("INSERT INTO ipInterface ( nodeId, ipAddr, ifIndex ) VALUES ( 1, '1.2.3.6', -100 )"); executeSQL("INSERT INTO service ( serviceID, serviceName ) VALUES ( 1, 'COFFEE-READY' )"); executeSQL("INSERT INTO service ( serviceID, serviceName ) VALUES ( 2, 'TEA-READY' )"); executeSQL("INSERT INTO ifServices ( nodeID, ipAddr, ifIndex, serviceID ) VALUES ( 1, '1.2.3.4', 1, 1 )"); executeSQL("INSERT INTO ifServices ( nodeID, ipAddr, ifIndex, serviceID ) VALUES ( 1, '1.2.3.5', null, 1 )"); executeSQL("INSERT INTO ifServices ( nodeID, ipAddr, ifIndex, serviceID ) VALUES ( 1, '1.2.3.6', -100, 1 )");// executeSQL("INSERT INTO ifServices ( nodeID, ipAddr, ifIndex, serviceID ) VALUES ( 1, '1.2.3.6', null, 2 )"); executeSQL("INSERT INTO outages ( outageId, nodeId, ipAddr, ifLostService, serviceID ) " + "VALUES ( nextval('outageNxtId'), 1, '1.2.3.4', now(), 1 )"); executeSQL("INSERT INTO outages ( outageId, nodeId, ipAddr, ifLostService, serviceID ) " + "VALUES ( nextval('outageNxtId'), 1, '1.2.3.5', now(), 1 )"); executeSQL("INSERT INTO outages ( outageId, nodeId, ipAddr, ifLostService, serviceID ) " + "VALUES ( nextval('outageNxtId'), 1, '1.2.3.6', now(), 1 )"); executeSQL("INSERT INTO outages ( outageId, nodeId, ipAddr, ifLostService, serviceID ) " + "VALUES ( nextval('outageNxtId'), 1, '1.2.3.6', now(), 2 )"); m_installer.m_create_sql = newCreate; m_installer.readTables(); // Second pass. m_installer.createSequences(); m_installer.updatePlPgsql(); m_installer.addStoredProcedures(); m_installer.createTables(); } | 11849 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11849/e61b604ba9bf4606f86a935533da1cfdd57ad672/InstallerDBTest.java/clean/opennms-install/src/test/java/org/opennms/install/InstallerDBTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
10784,
7939,
5520,
9401,
774,
3935,
1190,
751,
1435,
1216,
1185,
288,
3639,
309,
16051,
291,
2290,
4709,
1526,
10756,
288,
5411,
327,
31,
3639,
289,
3639,
514,
394,
1684,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10784,
7939,
5520,
9401,
774,
3935,
1190,
751,
1435,
1216,
1185,
288,
3639,
309,
16051,
291,
2290,
4709,
1526,
10756,
288,
5411,
327,
31,
3639,
289,
3639,
514,
394,
1684,
... | |
if (ApplyMylarToPackageExplorerAction.getDefault() != null) { ApplyMylarToPackageExplorerAction.getDefault().update(); } if (ApplyMylarToBrowsingPerspectiveAction.getDefault() != null) { ApplyMylarToBrowsingPerspectiveAction.getDefault().update(); } | public void start(BundleContext context) throws Exception { super.start(context); final IWorkbench workbench = PlatformUI.getWorkbench(); workbench.getDisplay().asyncExec(new Runnable() { public void run() { try { setPreferenceDefaults(); savePluginPreferences(); MylarPlugin.getContextManager().addListener(packageExplorerManager); MylarPlugin.getContextManager().addListener(typeHistoryManager); MylarPlugin.getContextManager().addListener(landmarkMarkerManager); if (getPreferenceStore().getBoolean(MylarJavaPrefConstants.PREDICTED_INTEREST_ERRORS)) { problemListener.enable(); } getPreferenceStore().addPropertyChangeListener(problemListener); ISelectionService service = PlatformUI.getWorkbench().getActiveWorkbenchWindow() .getSelectionService(); service.addPostSelectionListener(packageExplorerManager); javaEditingMonitor = new JavaEditingMonitor(); MylarPlugin.getDefault().getSelectionMonitors().add(javaEditingMonitor); installEditorTracker(workbench); // TODO: race conditions prevents this from running? if (ApplyMylarToPackageExplorerAction.getDefault() != null) { ApplyMylarToPackageExplorerAction.getDefault().update(); } if (ApplyMylarToBrowsingPerspectiveAction.getDefault() != null) { ApplyMylarToBrowsingPerspectiveAction.getDefault().update(); } if (!getPreferenceStore().contains(MylarPreferenceWizard.MYLAR_FIRST_RUN)) { JavaUiUtil.installContentAssist(JavaPlugin.getDefault().getPreferenceStore(), true); } if (!MylarPlugin.getDefault().suppressWizardsOnStartup() && !getPreferenceStore().contains(MylarPreferenceWizard.MYLAR_FIRST_RUN)) { MylarPreferenceWizard wizard = new MylarPreferenceWizard(); Shell shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(); if (wizard != null && shell != null && !shell.isDisposed()) { WizardDialog dialog = new WizardDialog(shell, wizard); dialog.create(); dialog.open(); getPreferenceStore().putValue(MylarPreferenceWizard.MYLAR_FIRST_RUN, "false"); } } JavaCore.addElementChangedListener(javaElementChangeListener); } catch (Throwable t) { MylarStatusHandler.fail(t, "Mylar Java plug-in initialization failed", true); } } }); } | 51151 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51151/e5dab796c6efd0dc2b845a7eaada8eb3254ee0c8/MylarJavaPlugin.java/clean/org.eclipse.mylyn.java.ui/src/org/eclipse/mylyn/internal/java/MylarJavaPlugin.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
787,
12,
3405,
1042,
819,
13,
1216,
1185,
288,
202,
202,
9565,
18,
1937,
12,
2472,
1769,
202,
202,
6385,
467,
2421,
22144,
1440,
22144,
273,
11810,
5370,
18,
588,
2421,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
787,
12,
3405,
1042,
819,
13,
1216,
1185,
288,
202,
202,
9565,
18,
1937,
12,
2472,
1769,
202,
202,
6385,
467,
2421,
22144,
1440,
22144,
273,
11810,
5370,
18,
588,
2421,
2... | |
ReferenceList characteristics = srcItem.getCollection("characteristics"); | protected Item translateSample(Item srcItem, Item tgtItem) throws ObjectStoreException { ReferenceList characteristics = srcItem.getCollection("characteristics"); List list = new ArrayList(); Item organism = new Item(); String s = null; if (characteristics != null) { for (Iterator i = characteristics.getRefIds().iterator(); i.hasNext();) { String id = (String) i.next(); // prefetch done Item charItem = ItemHelper.convert(srcItemReader.getItemById(id)); s = charItem.getAttribute("category").getValue(); if (s.equalsIgnoreCase("organism") && charItem.hasAttribute("value")) { String organismName = charItem.getAttribute("value").getValue(); organism = createOrganism(tgtNs + "Organism", "", organismName); tgtItem.addReference(new Reference("organism", organism.getIdentifier())); } else { list.add(id); } } ReferenceList tgtChar = new ReferenceList("characteristics", list); tgtItem.addCollection(tgtChar); } if (srcItem.hasReference("materialType")) { Item type = ItemHelper.convert(srcItemReader.getItemById( (String) srcItem.getReference("materialType").getRefId())); tgtItem.addAttribute(new Attribute("materialType", type.getAttribute("value").getValue())); } if (srcItem.hasAttribute("name")) { tgtItem.addAttribute(new Attribute("name", srcItem.getAttribute("name").getValue())); } bioSource.add(tgtItem); return organism; } | 29158 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/29158/6facc64d84ef54a3065128ae71928eddcc5b8200/MageDataTranslator.java/clean/flymine/model/mage/src/java/org/flymine/dataconversion/MageDataTranslator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
4342,
4204,
8504,
12,
1180,
1705,
1180,
16,
4342,
11680,
1180,
13,
3639,
1216,
1033,
21151,
288,
7734,
987,
666,
273,
394,
2407,
5621,
3639,
4342,
15501,
6228,
273,
394,
4342,
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,
4750,
4342,
4204,
8504,
12,
1180,
1705,
1180,
16,
4342,
11680,
1180,
13,
3639,
1216,
1033,
21151,
288,
7734,
987,
666,
273,
394,
2407,
5621,
3639,
4342,
15501,
6228,
273,
394,
4342,
5621,
... | |
super(OutboundClientMessageJob.this._context); | super(OutboundClientMessageJob.this.getContext()); | public LookupLeaseSetFailedJob() { super(OutboundClientMessageJob.this._context); } | 27433 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27433/e737e5c9507ed0d463dc9e45a8f63657f466b177/OutboundClientMessageJob.java/buggy/router/java/src/net/i2p/router/message/OutboundClientMessageJob.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
8834,
17746,
694,
2925,
2278,
1435,
225,
288,
5411,
2240,
12,
17873,
1227,
1079,
2278,
18,
2211,
18,
29120,
10663,
3639,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
8834,
17746,
694,
2925,
2278,
1435,
225,
288,
5411,
2240,
12,
17873,
1227,
1079,
2278,
18,
2211,
18,
29120,
10663,
3639,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if( curToken == null ) return curToken; if( srcChars[startPos] != '<' ) return curToken; elementStart = curToken; inElement = true; continue; | if( tokenQueue.isEmpty() ) return toReturn; else tokenQueue.add( toReturn ); | public Token next() throws IOException { // Loop until we can generate a real token. while( true ) { // If there are queued tokens, return the first one. if( !tokenQueue.isEmpty() ) return (Token) tokenQueue.removeFirst(); // Get the next input token. Token curToken = input.next(); final int startPos = (curToken != null) ? curToken.startOffset() : srcChars.length; final int endPos = (curToken != null) ? curToken.endOffset() : srcChars.length; // If we're not within an element, simply return tokens until we reach // an element start. // if( !inElement ) { // If we're at the end of the stream, get out. if( curToken == null ) return curToken; // Is this start of an element? If not, return it verbatim. if( srcChars[startPos] != '<' ) return curToken; // Remember that we're starting an element, and get the name of it. elementStart = curToken; inElement = true; continue; } // If we're starting an element, this token must be the name. if( elementStart != null ) { // Is this the end tag? If so, include the extra ">" in it. int start = elementStart.startOffset(); int end = endPos; if( srcChars[startPos-1] == '/' ) { while( end < srcChars.length && srcChars[end] != '>' ) end++; } // Okay, we found the start of the element. Make a new token. Token newToken = new Token( new String(srcChars, start, end-start), start, end, XML_TYPE ); newToken.setPositionIncrement( elementStart.getPositionIncrement() ); elementStart = null; return newToken; } // If we're in a quoted string, see if the end of the quote has been // reached // if( inQuote ) { int i = quoteStart + 1; while( i < startPos && srcChars[i] != '\"' ) i++; if( i < startPos ) inQuote = false; else quoteStart = endPos-1; } // Does this token mark the end of the element? if( srcChars[startPos] == '>' ) { // Include the '/' if the element has no content. int start = startPos; if( srcChars[startPos-1] == '/' ) --start; Token endToken = new Token( new String(srcChars, start, endPos-start), start, endPos, XML_TYPE ); inElement = false; return endToken; } // Inside a quote, add a quote mark to differentiate the token from normal // ones. // if( inQuote ) { Token attrToken = new Token( '\"' + curToken.termText() + '\"', startPos, endPos, XML_TYPE ); return attrToken; } // Is this the start of an attribute name? If so, mark it and look for the // end of the name. // if( !inAttrName ) { attrNameStart = startPos; inAttrName = true; continue; } // If no '=' found, keep scanning for the end of the attr name. if( srcChars[startPos] != '=' ) continue; // Found it. Record the attribute name. String attrName = new String(srcChars, attrNameStart, startPos-attrNameStart).trim(); Token attrToken = new Token( attrName + "=", attrNameStart, endPos, XML_TYPE ); // We're done with the name now, and ready for the quoted contents. inAttrName = false; inQuote = true; quoteStart = endPos; while( quoteStart < srcChars.length && srcChars[quoteStart] != '\"' ) quoteStart++; // Special case: empty string if( quoteStart+1 < srcChars.length && srcChars[quoteStart+1] == '\"' ) { tokenQueue.add( new Token("\"\"", quoteStart, quoteStart, XML_TYPE) ); } return attrToken; } // while } // next() | 45239 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45239/f5b306e7ff7c53c6a66f3ec134e48d9a3ff47b45/TagFilter.java/clean/WEB-INF/src/org/cdlib/xtf/textIndexer/TagFilter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
3155,
1024,
1435,
1216,
1860,
282,
288,
565,
368,
9720,
3180,
732,
848,
2103,
279,
2863,
1147,
18,
565,
1323,
12,
638,
262,
288,
5411,
368,
971,
1915,
854,
12234,
2430,
16,
327,
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,
282,
1071,
3155,
1024,
1435,
1216,
1860,
282,
288,
565,
368,
9720,
3180,
732,
848,
2103,
279,
2863,
1147,
18,
565,
1323,
12,
638,
262,
288,
5411,
368,
971,
1915,
854,
12234,
2430,
16,
327,
3... |
else prefSize = contentPaneSize; | public Dimension preferredLayoutSize(Container c) { Dimension menuBarSize; Dimension prefSize; Dimension containerSize = c.getSize(); Dimension contentPaneSize = contentPane.getPreferredSize(); if (containerSize.width == 0 && containerSize.height == 0) { if (menuBar != null) { int maxWidth; menuBarSize = menuBar.getPreferredSize(); maxWidth = Math.max(menuBarSize.width, contentPaneSize.width); prefSize = new Dimension(maxWidth, contentPaneSize.height + menuBarSize.height); } else prefSize = contentPaneSize; } else prefSize = c.getSize(); return prefSize; } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/4f54b4c49f6326d2bfe26573a0af55c73b713f0a/JRootPane.java/buggy/core/src/classpath/javax/javax/swing/JRootPane.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
13037,
9119,
3744,
1225,
12,
2170,
276,
13,
565,
288,
1377,
13037,
3824,
5190,
1225,
31,
1377,
13037,
11307,
1225,
31,
1377,
13037,
1478,
1225,
273,
276,
18,
588,
1225,
5621,
1377,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13037,
9119,
3744,
1225,
12,
2170,
276,
13,
565,
288,
1377,
13037,
3824,
5190,
1225,
31,
1377,
13037,
11307,
1225,
31,
1377,
13037,
1478,
1225,
273,
276,
18,
588,
1225,
5621,
1377,
... | |
public ASTModifiers(JavaParser p, int id) { super(p, id); | public ASTModifiers(int id) { super(id); | public ASTModifiers(JavaParser p, int id) { super(p, id); } | 41673 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/41673/2f353fa51f93e0227171d10bf9c2fca293c46cf6/ASTModifiers.java/buggy/pmd/src/net/sourceforge/pmd/ast/ASTModifiers.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
9183,
11948,
12,
5852,
2678,
293,
16,
509,
612,
13,
288,
565,
2240,
12,
84,
16,
612,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
9183,
11948,
12,
5852,
2678,
293,
16,
509,
612,
13,
288,
565,
2240,
12,
84,
16,
612,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-10... |
notifyNotOK(operation); | notifyNotOK(operation, status); | private IStatus doRedo(IProgressMonitor monitor, IAdaptable info, IUndoableOperation operation) throws ExecutionException { IStatus status = getRedoApproval(operation, info); if (status.isOK()) { notifyAboutToRedo(operation); try { status = operation.redo(monitor, info); } catch (OperationCanceledException e) { status = Status.CANCEL_STATUS; } catch (ExecutionException e) { notifyNotOK(operation); if (DEBUG_OPERATION_HISTORY_UNEXPECTED) { System.out .print("OPERATIONHISTORY >>> ExecutionException while redoing "); //$NON-NLS-1$ System.out.print(operation); System.out.println(); } throw e; } catch (Exception e) { notifyNotOK(operation); if (DEBUG_OPERATION_HISTORY_UNEXPECTED) { System.out .print("OPERATIONHISTORY >>> Exception while redoing "); //$NON-NLS-1$ System.out.print(operation); System.out.println(); } throw new ExecutionException( "While redoing the operation, an exception occurred", e); //$NON-NLS-1$ } } // if successful, the operation is removed from the redo history and // placed back in the undo history. if (status.isOK()) { // We will only add the operation to the undo stack if it can indeed // be undone. This conservatism is added to support the integration // of existing frameworks (such as Refactoring) that produce // undo and redo behavior on the fly and cannot guarantee that a // successful redo means a successful undo will be available. // We check this condition outside of the synchronized block. // See bug #84444 boolean addToUndoStack = operation.canUndo(); synchronized (undoRedoHistoryLock) { redoList.remove(operation); if (addToUndoStack && checkUndoLimit(operation)) { undoList.add(operation); } } if (!addToUndoStack) { // dispose the operation since we did not add it to the stack // and will no longer have a reference to it. // See https://bugs.eclipse.org/bugs/show_bug.cgi?id=94400 operation.dispose(); } // notify listeners must happen after history is updated notifyRedone(operation); } else { notifyNotOK(operation); } return status; } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/83d51ed63c0db3ccd7d51fae76f5803164da29df/DefaultOperationHistory.java/clean/bundles/org.eclipse.core.commands/src/org/eclipse/core/commands/operations/DefaultOperationHistory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
467,
1482,
741,
3715,
83,
12,
45,
5491,
7187,
6438,
16,
467,
13716,
429,
1123,
16,
1082,
202,
45,
31224,
429,
2988,
1674,
13,
1216,
20205,
288,
202,
202,
45,
1482,
1267,
273,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
467,
1482,
741,
3715,
83,
12,
45,
5491,
7187,
6438,
16,
467,
13716,
429,
1123,
16,
1082,
202,
45,
31224,
429,
2988,
1674,
13,
1216,
20205,
288,
202,
202,
45,
1482,
1267,
273,... |
return "/" + baseName.substring(0, baseName.lastIndexOf("Controller")); | return baseName.substring(0, baseName.lastIndexOf("Controller")); | private String extractControllerFromName(String baseName) { baseName = lowerFirstCharacter(baseName); if (baseName.endsWith("Controller")) { return "/" + baseName.substring(0, baseName.lastIndexOf("Controller")); } return "/" + baseName; } | 2770 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2770/48e35f1a8203d5b36a1d418eb4414330890076f6/DefaultPathResolver.java/buggy/vraptor-core/src/main/java/br/com/caelum/vraptor/view/DefaultPathResolver.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
2608,
2933,
29732,
12,
780,
16162,
13,
288,
3639,
16162,
273,
2612,
3759,
7069,
12,
1969,
461,
1769,
3639,
309,
261,
1969,
461,
18,
5839,
1190,
2932,
2933,
6,
3719,
288,
5411,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
2608,
2933,
29732,
12,
780,
16162,
13,
288,
3639,
16162,
273,
2612,
3759,
7069,
12,
1969,
461,
1769,
3639,
309,
261,
1969,
461,
18,
5839,
1190,
2932,
2933,
6,
3719,
288,
5411,
... |
graphics.setFont((Font)fontStack.pop()); y += graphics.getFont().getLineMetrics(mM, graphics.getFontRenderContext()).getAscent()*scriptShiftRatio; | graphics.setFont((Font) fontStack.pop()); y += graphics.getFont().getLineMetrics(mM, graphics.getFontRenderContext()).getAscent() * scriptShiftRatio; | protected String closeTag(String tag) { if (tag.equalsIgnoreCase("b")) { Font font = graphics.getFont(); if (font.isBold()) { graphics.setFont(font.deriveFont(font.getStyle() - Font.BOLD)); } } else if (tag.equalsIgnoreCase("i")) { Font font = graphics.getFont(); if (font.isItalic()) { graphics.setFont(font.deriveFont(font.getStyle() - Font.ITALIC)); } } else if (tag.equalsIgnoreCase("tt")) { graphics.setFont((Font)fontStack.pop()); } else if (tag.equalsIgnoreCase("v")) { vertical = false; } else if (tag.equalsIgnoreCase("over")) { if (print) { LineMetrics metrics = graphics.getFont().getLineMetrics(mM, graphics.getFontRenderContext()); float ascent = metrics.getAscent(); GeneralPath path = new GeneralPath(); path.moveTo(overlineStart, y-ascent); path.lineTo(overlineEnd, y-ascent); graphics.draw(path); } } else if (tag.equalsIgnoreCase("sup")) { graphics.setFont((Font)fontStack.pop()); y += graphics.getFont().getLineMetrics(mM, graphics.getFontRenderContext()).getAscent()*scriptShiftRatio; } else if (tag.equalsIgnoreCase("sub")) { graphics.setFont((Font)fontStack.pop()); y -= graphics.getFont().getLineMetrics(mM, graphics.getFontRenderContext()).getAscent()*scriptShiftRatio; } else { return super.closeTag(tag); } return ""; } | 57341 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57341/d2255fbe86a662c3d5768854411509915a7f3e00/GenericTagHandler.java/clean/freehep-graphics2d/src/main/java/org/freehep/graphics2d/GenericTagHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
514,
30798,
12,
780,
1047,
13,
288,
3639,
309,
261,
2692,
18,
14963,
5556,
2932,
70,
6,
3719,
288,
5411,
10063,
3512,
273,
17313,
18,
588,
5711,
5621,
5411,
309,
261,
5776,
18,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
514,
30798,
12,
780,
1047,
13,
288,
3639,
309,
261,
2692,
18,
14963,
5556,
2932,
70,
6,
3719,
288,
5411,
10063,
3512,
273,
17313,
18,
588,
5711,
5621,
5411,
309,
261,
5776,
18,
29... |
File news = new File(NEWS_FILE); if (news.exists()) _lastFetch = news.lastModified(); else _lastFetch = 0; | updateLastFetched(); | public NewsFetcher(I2PAppContext ctx) { _context = ctx; _log = ctx.logManager().getLog(NewsFetcher.class); _instance = this; File news = new File(NEWS_FILE); if (news.exists()) _lastFetch = news.lastModified(); else _lastFetch = 0; } | 27433 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27433/33366cc291f2fb2dd1cb85f77d725c1fb5708832/NewsFetcher.java/buggy/apps/routerconsole/java/src/net/i2p/router/web/NewsFetcher.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
27061,
16855,
12,
45,
22,
52,
3371,
1042,
1103,
13,
288,
3639,
389,
2472,
273,
1103,
31,
3639,
389,
1330,
273,
1103,
18,
1330,
1318,
7675,
588,
1343,
12,
17948,
16855,
18,
1106,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
27061,
16855,
12,
45,
22,
52,
3371,
1042,
1103,
13,
288,
3639,
389,
2472,
273,
1103,
31,
3639,
389,
1330,
273,
1103,
18,
1330,
1318,
7675,
588,
1343,
12,
17948,
16855,
18,
1106,
1... |
return getPackageFragments((IPackageFragmentRoot)element); | return getPackageFragmentRootContent((IPackageFragmentRoot)element); | public Object[] getChildren(Object element) { if (!exists(element)) return NO_CHILDREN; try { if (element instanceof IJavaModel) return getJavaProjects((IJavaModel)element); if (element instanceof IJavaProject) return getPackageFragmentRoots((IJavaProject)element); if (element instanceof IPackageFragmentRoot) return getPackageFragments((IPackageFragmentRoot)element); if (element instanceof IPackageFragment) return getPackageContents((IPackageFragment)element); if (element instanceof IFolder) return getResources((IFolder)element); if (getProvideMembers() && element instanceof ISourceReference && element instanceof IParent) { return ((IParent)element).getChildren(); } } catch (JavaModelException e) { return NO_CHILDREN; } return NO_CHILDREN; } | 9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/9910e19c5f4a333211710688e7dc9340855a4265/StandardJavaElementContentProvider.java/buggy/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/StandardJavaElementContentProvider.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1033,
8526,
10268,
12,
921,
930,
13,
288,
202,
202,
430,
16051,
1808,
12,
2956,
3719,
1082,
202,
2463,
3741,
67,
27043,
24296,
31,
6862,
202,
698,
288,
1082,
202,
430,
261,
29... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
1033,
8526,
10268,
12,
921,
930,
13,
288,
202,
202,
430,
16051,
1808,
12,
2956,
3719,
1082,
202,
2463,
3741,
67,
27043,
24296,
31,
6862,
202,
698,
288,
1082,
202,
430,
261,
29... |
match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_paren_chunk2468); if (failed) return text; | match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_paren_chunk2450); if (failed) return text; | public String paren_chunk() throws RecognitionException { String text = null; Token loc=null; String chunk = null; StringBuffer buf = null; Integer channel = null; try { // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1083:10: (loc= LEFT_PAREN ( (~ (LEFT_PAREN|RIGHT_PAREN))=>~ (LEFT_PAREN|RIGHT_PAREN) | ( paren_chunk )=>chunk= paren_chunk )* loc= RIGHT_PAREN ) // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1083:10: loc= LEFT_PAREN ( (~ (LEFT_PAREN|RIGHT_PAREN))=>~ (LEFT_PAREN|RIGHT_PAREN) | ( paren_chunk )=>chunk= paren_chunk )* loc= RIGHT_PAREN { if ( backtracking==0 ) { channel = ((SwitchingCommonTokenStream)input).getTokenTypeChannel( WS ); ((SwitchingCommonTokenStream)input).setTokenTypeChannel( WS, Token.DEFAULT_CHANNEL ); buf = new StringBuffer(); } loc=(Token)input.LT(1); match(input,LEFT_PAREN,FOLLOW_LEFT_PAREN_in_paren_chunk2468); if (failed) return text; if ( backtracking==0 ) { buf.append( loc.getText()); } // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1093:3: ( (~ (LEFT_PAREN|RIGHT_PAREN))=>~ (LEFT_PAREN|RIGHT_PAREN) | ( paren_chunk )=>chunk= paren_chunk )* loop40: do { int alt40=3; int LA40_0 = input.LA(1); if ( ((LA40_0>=ID && LA40_0<=FLOAT)||(LA40_0>=LEFT_SQUARE && LA40_0<=73)) ) { alt40=1; } else if ( (LA40_0==LEFT_PAREN) ) { alt40=2; } switch (alt40) { case 1 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1094:4: (~ (LEFT_PAREN|RIGHT_PAREN))=>~ (LEFT_PAREN|RIGHT_PAREN) { if ( (input.LA(1)>=ID && input.LA(1)<=FLOAT)||(input.LA(1)>=LEFT_SQUARE && input.LA(1)<=73) ) { input.consume(); errorRecovery=false;failed=false; } else { if (backtracking>0) {failed=true; return text;} MismatchedSetException mse = new MismatchedSetException(null,input); recoverFromMismatchedSet(input,mse,FOLLOW_set_in_paren_chunk2484); throw mse; } if ( backtracking==0 ) { buf.append( input.LT(-1).getText() ); } } break; case 2 : // D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g:1099:4: ( paren_chunk )=>chunk= paren_chunk { pushFollow(FOLLOW_paren_chunk_in_paren_chunk2508); chunk=paren_chunk(); _fsp--; if (failed) return text; if ( backtracking==0 ) { buf.append( chunk ); } } break; default : break loop40; } } while (true); if ( backtracking==0 ) { if( channel != null ) { ((SwitchingCommonTokenStream)input).setTokenTypeChannel(WS, channel.intValue()); } else { ((SwitchingCommonTokenStream)input).setTokenTypeChannel(WS, Token.HIDDEN_CHANNEL); } } loc=(Token)input.LT(1); match(input,RIGHT_PAREN,FOLLOW_RIGHT_PAREN_in_paren_chunk2544); if (failed) return text; if ( backtracking==0 ) { buf.append( loc.getText() ); text = buf.toString(); } } } catch (RecognitionException re) { reportError(re); recover(input,re); } finally { } return text; } | 31577 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/31577/afea9f80e7c11e7b76df18f232d3b5ca5ad21e72/DRLParser.java/clean/drools-compiler/src/main/java/org/drools/lang/DRLParser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
22146,
67,
6551,
1435,
1216,
9539,
288,
6647,
514,
977,
273,
446,
31,
3639,
3155,
1515,
33,
2011,
31,
3639,
514,
2441,
273,
446,
31,
21821,
6674,
1681,
273,
446,
31,
10402,
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,
22146,
67,
6551,
1435,
1216,
9539,
288,
6647,
514,
977,
273,
446,
31,
3639,
3155,
1515,
33,
2011,
31,
3639,
514,
2441,
273,
446,
31,
21821,
6674,
1681,
273,
446,
31,
10402,
2... |
return true; } | return true; } | public boolean hasDescription() { return true; } | 2796 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2796/065d08edd62599d5d244a9317db470157690f4f9/StatelessInvocationMatcher.java/clean/jmock/core/src/org/jmock/core/matcher/StatelessInvocationMatcher.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
711,
3291,
1435,
288,
3639,
327,
638,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
711,
3291,
1435,
288,
3639,
327,
638,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
public AbstractPopupSheet( Composite parent, ChartWizardContext context, | public AbstractPopupSheet( String title, ChartWizardContext context, | public AbstractPopupSheet( Composite parent, ChartWizardContext context, boolean needRefresh ) { super( ); this.context = context; this.chart = context.getModel( ); serviceprovider = context.getUIServiceProvider( ); this.needRefresh = needRefresh; } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/e89bee61a969154f0d074fedf34da17dd208f822/AbstractPopupSheet.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/wizard/format/popup/AbstractPopupSheet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4115,
13770,
8229,
12,
14728,
982,
16,
14804,
27130,
1042,
819,
16,
1082,
202,
6494,
1608,
8323,
262,
202,
95,
202,
202,
9565,
12,
11272,
202,
202,
2211,
18,
2472,
273,
819,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4115,
13770,
8229,
12,
14728,
982,
16,
14804,
27130,
1042,
819,
16,
1082,
202,
6494,
1608,
8323,
262,
202,
95,
202,
202,
9565,
12,
11272,
202,
202,
2211,
18,
2472,
273,
819,
3... |
Element newEl1 = createLeafElement(paragraph, current.getAttributes(), current.getStartOffset(), newEndOffset); | int end = newEndOffset; if (onlyContent) end = current.getEndOffset(); Element newEl1 = createLeafElement(paragraph, current.getAttributes(), current.getStartOffset(), end); firstCreated = newEl1; | private void insertFirstContentTag(ElementSpec[] data) { // FIXME: This method is not complete. It needs to properly recreate the // leaves when the spec's direction is JoinPreviousDirection. ElementSpec first = data[0]; BranchElement paragraph = (BranchElement) elementStack.peek(); int index = paragraph.getElementIndex(offset); Element current = paragraph.getElement(index); int newEndOffset = offset + first.length; Edit edit = getEditForParagraphAndIndex(paragraph, index); switch (first.getDirection()) { case ElementSpec.JoinPreviousDirection: if (current.getEndOffset() != newEndOffset) { Element newEl1 = createLeafElement(paragraph, current.getAttributes(), current.getStartOffset(), newEndOffset); edit.addRemovedElement(current); edit.addAddedElement(newEl1); if (current.getEndOffset() != newEndOffset) { // This means all the leaves that were there previously need // to be recreated after all the new Elements are inserted. } } break; case ElementSpec.JoinNextDirection: if (offset != 0) { Element next = paragraph.getElement(index + 1); Element[] removed = new Element[] { current, next }; Element newEl1 = createLeafElement(paragraph, current.getAttributes(), current.getStartOffset(), offset); Element[] added = new Element[2]; added[0] = newEl1; if (data.length == 1) added[1] = createLeafElement(paragraph, next.getAttributes(), offset, next.getEndOffset()); else added[1] = createLeafElement(paragraph, next.getAttributes(), offset, newEndOffset); edit.addRemovedElements(removed); edit.addAddedElements(added); } break; case ElementSpec.OriginateDirection: if (current.getStartOffset() != offset) { Element newEl1 = createLeafElement(paragraph, current.getAttributes(), current.getStartOffset(), offset); edit.addAddedElement(newEl1); } Element newEl2 = createLeafElement(paragraph, first.getAttributes(), offset, newEndOffset); edit.addRemovedElement(current); edit.addAddedElement(newEl2); if (current.getEndOffset() != endOffset && (data.length == 1)) { // This means all the leaves that were there previously need // to be recreated after all the new Elements are inserted. Element newCurrent = createLeafElement(paragraph, current.getAttributes(), newEndOffset, current.getEndOffset()); edit.addAddedElement(newCurrent); } break; default: break; } offset = newEndOffset; } | 47947 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47947/b02819a5f46bae8669765f7fb5737749ac76fe9a/DefaultStyledDocument.java/buggy/javax/swing/text/DefaultStyledDocument.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2243,
3759,
1350,
1805,
12,
1046,
1990,
8526,
501,
13,
565,
288,
5411,
368,
9852,
30,
1220,
707,
353,
486,
3912,
18,
225,
2597,
4260,
358,
8214,
23052,
326,
1377,
368,
15559,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2243,
3759,
1350,
1805,
12,
1046,
1990,
8526,
501,
13,
565,
288,
5411,
368,
9852,
30,
1220,
707,
353,
486,
3912,
18,
225,
2597,
4260,
358,
8214,
23052,
326,
1377,
368,
15559,
... |
outputStream.println( line ); mirrorStream.println( line ); | StringBuffer wordWrappedLine = new StringBuffer(); StringTokenizer lineTokens = new StringTokenizer( line, LINE_BREAK, true ); | public static void printLine( String line ) { outputStream.println( line ); mirrorStream.println( line ); getDebugStream().println( line ); getSessionStream().println( line ); StringBuffer colorBuffer = new StringBuffer(); colorBuffer.append( "<font color=black>" ); colorBuffer.append( line.replaceAll( "\n", "\n<br>" ) ); colorBuffer.append( "</font><br>" ); colorBuffer.append( LINE_BREAK ); LocalRelayServer.addStatusMessage( colorBuffer.toString() ); commandBuffer.append( colorBuffer.toString() ); } | 50364 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50364/f09f180a2077bc670147865875bfadc51bc19fdb/KoLmafiaCLI.java/clean/src/net/sourceforge/kolmafia/KoLmafiaCLI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
1172,
1670,
12,
514,
980,
262,
202,
95,
202,
202,
2844,
1228,
18,
8222,
12,
980,
11272,
202,
202,
27197,
1228,
18,
8222,
12,
980,
11272,
202,
202,
588,
2829,
1228,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
918,
1172,
1670,
12,
514,
980,
262,
202,
95,
202,
202,
2844,
1228,
18,
8222,
12,
980,
11272,
202,
202,
27197,
1228,
18,
8222,
12,
980,
11272,
202,
202,
588,
2829,
1228,
... |
in.seek(pos + size); | in.reset(); in.skipBytes(size); | protected void initFile(String id) throws FormatException, IOException { super.initFile(id); in = new RandomAccessFile(id, "r"); offsets = new Vector(); byte[] list = new byte[4]; String listString; type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); fcc = readStringBytes(); if (type.equals("RIFF")) { bigChunkSize = size; if (!fcc.equals("AVI ")) { whine("Sorry, AVI RIFF format not found."); } } else { whine("Not an AVI file"); } while (in.read(list) == 4) { in.seek(in.getFilePointer() - 4); listString = new String(list); if (listString.equals("JUNK")) { type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); if (type.equals("JUNK")) { in.seek(in.getFilePointer() + size); } } else if (listString.equals("LIST")) { type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); fcc = readStringBytes(); in.seek(in.getFilePointer() - 12); if (fcc.equals("hdrl")) { type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); fcc = readStringBytes(); if (type.equals("LIST")) { if (fcc.equals("hdrl")) { type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); if (type.equals("avih")) { pos = in.getFilePointer(); dwMicroSecPerFrame = DataTools.read4SignedBytes(in, little); dwMaxBytesPerSec = DataTools.read4SignedBytes(in, little); dwReserved1 = DataTools.read4SignedBytes(in, little); dwFlags = DataTools.read4SignedBytes(in, little); dwTotalFrames = DataTools.read4SignedBytes(in, little); dwInitialFrames = DataTools.read4SignedBytes(in, little); dwStreams = DataTools.read4SignedBytes(in, little); dwSuggestedBufferSize = DataTools.read4SignedBytes(in, little); dwWidth = DataTools.read4SignedBytes(in, little); dwHeight = DataTools.read4SignedBytes(in, little); dwScale = DataTools.read4SignedBytes(in, little); dwRate = DataTools.read4SignedBytes(in, little); dwStart = DataTools.read4SignedBytes(in, little); dwLength = DataTools.read4SignedBytes(in, little); metadata.put("Microseconds per frame", new Integer(dwMicroSecPerFrame)); metadata.put("Max. bytes per second", new Integer(dwMaxBytesPerSec)); metadata.put("Total frames", new Integer(dwTotalFrames)); metadata.put("Initial frames", new Integer(dwInitialFrames)); metadata.put("Frame width", new Integer(dwWidth)); metadata.put("Frame height", new Integer(dwHeight)); metadata.put("Scale factor", new Integer(dwScale)); metadata.put("Frame rate", new Integer(dwRate)); metadata.put("Start time", new Integer(dwStart)); metadata.put("Length", new Integer(dwLength)); in.seek(pos + size); } } } } else if (fcc.equals("strl")) { long startPos = in.getFilePointer(); long streamSize = size; type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); fcc = readStringBytes(); if (type.equals("LIST")) { if (fcc.equals("strl")) { type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); if (type.equals("strh")) { pos = in.getFilePointer(); String fccStreamTypeOld = fccStreamType; fccStreamType = readStringBytes(); if (!fccStreamType.equals("vids")) { fccStreamType = fccStreamTypeOld; } fccStreamHandler = readStringBytes(); dwStreamFlags = DataTools.read4SignedBytes(in, little); dwStreamReserved1 = DataTools.read4SignedBytes(in, little); dwStreamInitialFrames = DataTools.read4SignedBytes(in, little); dwStreamScale = DataTools.read4SignedBytes(in, little); dwStreamRate = DataTools.read4SignedBytes(in, little); dwStreamStart = DataTools.read4SignedBytes(in, little); dwStreamLength = DataTools.read4SignedBytes(in, little); dwStreamSuggestedBufferSize = DataTools.read4SignedBytes(in, little); dwStreamQuality = DataTools.read4SignedBytes(in, little); dwStreamSampleSize = DataTools.read4SignedBytes(in, little); metadata.put("Stream quality", new Integer(dwStreamQuality)); metadata.put("Stream sample size", new Integer(dwStreamSampleSize)); in.seek(pos + size); } type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); if (type.equals("strf")) { pos = in.getFilePointer(); bmpSize = DataTools.read4SignedBytes(in, little); bmpWidth = DataTools.read4SignedBytes(in, little); bmpHeight = DataTools.read4SignedBytes(in, little); bmpPlanes = DataTools.read2SignedBytes(in, little); bmpBitsPerPixel = DataTools.read2SignedBytes(in, little); bmpCompression = DataTools.read4SignedBytes(in, little); bmpSizeOfBitmap = DataTools.read4SignedBytes(in, little); bmpHorzResolution = DataTools.read4SignedBytes(in, little); bmpVertResolution = DataTools.read4SignedBytes(in, little); bmpColorsUsed = DataTools.read4SignedBytes(in, little); bmpColorsImportant = DataTools.read4SignedBytes(in, little); bmpTopDown = (bmpHeight < 0); bmpNoOfPixels = bmpWidth * bmpHeight; metadata.put("Bitmap compression value", new Integer(bmpCompression)); metadata.put("Horizontal resolution", new Integer(bmpHorzResolution)); metadata.put("Vertical resolution", new Integer(bmpVertResolution)); metadata.put("Number of colors used", new Integer(bmpColorsUsed)); metadata.put("Bits per pixel", new Integer(bmpBitsPerPixel)); // scan line is padded with zeros to be a multiple of 4 bytes int npad = bmpWidth % 4; if (npad > 0) npad = 4 - npad; bmpScanLineSize = (bmpWidth + npad) * (bmpBitsPerPixel / 8); if (bmpSizeOfBitmap != 0) { bmpActualSize = bmpSizeOfBitmap; } else { // a value of 0 doesn't mean 0 -- it means we have // to calculate it bmpActualSize = bmpScanLineSize * bmpHeight; } if (bmpColorsUsed != 0) { bmpActualColorsUsed = bmpColorsUsed; } else { // a value of 0 means we determine this based on the // bits per pixel if (bmpBitsPerPixel < 16) { bmpActualColorsUsed = 1 << bmpBitsPerPixel; } else { // no palette bmpActualColorsUsed = 0; } } if (bmpCompression != 0) { whine("Sorry, compressed AVI files not supported."); } if (!(bmpBitsPerPixel == 8 || bmpBitsPerPixel == 24 || bmpBitsPerPixel == 32)) { whine("Sorry, " + bmpBitsPerPixel + " bits per pixel not " + "supported"); } if (bmpActualColorsUsed != 0) { // read the palette long pos1 = in.getFilePointer(); pr = new byte[bmpColorsUsed]; pg = new byte[bmpColorsUsed]; pb = new byte[bmpColorsUsed]; for (int i=0; i<bmpColorsUsed; i++) { pb[i] = (byte) in.read(); pg[i] = (byte) in.read(); pr[i] = (byte) in.read(); in.read(); } } in.seek(pos + size); } } type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); if (type.equals("strd")) { in.seek(in.getFilePointer() + size); } else { in.seek(in.getFilePointer() - 8); } type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); if (type.equals("strn")) { in.seek(in.getFilePointer() + size); } else { in.seek(in.getFilePointer() - 8); } } in.seek(startPos + 8 + streamSize); } else if (fcc.equals("movi")) { type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); fcc = readStringBytes(); if (type.equals("LIST")) { if (fcc.equals("movi")) { type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); fcc = readStringBytes(); if (!(type.equals("LIST") && fcc.equals("rec "))) { in.seek(in.getFilePointer() - 12); } type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); long startPos = in.getFilePointer(); while (type.substring(2).equals("db") || type.substring(2).equals("dc") || type.substring(2).equals("wb")) { pos = in.getFilePointer(); if (type.substring(2).equals("db") || type.substring(2).equals("dc")) { offsets.add(new Long(in.getFilePointer())); in.skipBytes(bmpHeight * bmpScanLineSize); } type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); if (type.equals("JUNK")) { in.seek(in.getFilePointer() + size); type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); } } in.seek(in.getFilePointer() - 8); } } } else { // skipping unknown block in.seek(in.getFilePointer() + 8 + size); } } else { // skipping unknown block type = readStringBytes(); size = DataTools.read4SignedBytes(in, little); in.seek(in.getFilePointer() + size); } } numImages = offsets.size(); initOMEMetadata(); } | 46826 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46826/91859a26506b8a1d312b398da2c3ecd94e02fa60/AVIReader.java/buggy/loci/formats/AVIReader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1208,
812,
12,
780,
612,
13,
1216,
4077,
503,
16,
1860,
288,
565,
2240,
18,
2738,
812,
12,
350,
1769,
565,
316,
273,
394,
8072,
26933,
12,
350,
16,
315,
86,
8863,
565,
8738... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
918,
1208,
812,
12,
780,
612,
13,
1216,
4077,
503,
16,
1860,
288,
565,
2240,
18,
2738,
812,
12,
350,
1769,
565,
316,
273,
394,
8072,
26933,
12,
350,
16,
315,
86,
8863,
565,
8738... |
StringBuffer sb = new StringBuffer(); | StringBuilder sb = new StringBuilder(); | public String toString() { if (inclusions == 0) return ""; StringBuffer sb = new StringBuffer(); if ((inclusions & INCLUDE_TRASH) != 0) sb.append(ENC_TRASH); if ((inclusions & INCLUDE_SPAM) != 0) sb.append(ENC_SPAM); if ((inclusions & INCLUDE_SENT) != 0) sb.append(ENC_SENT); if ((inclusions & INCLUDE_OTHERS) != 0) sb.append(ENC_OTHER); if ((inclusions & INCLUDE_QUERY) != 0) sb.append(ENC_QUERY).append(query); return sb.toString(); } | 6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/dd273fea1bc7967ad19cf304c0d82f9116bfe2c3/MailItem.java/buggy/ZimbraServer/src/java/com/zimbra/cs/mailbox/MailItem.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
514,
1762,
1435,
288,
5411,
309,
261,
267,
25364,
422,
374,
13,
7734,
327,
1408,
31,
5411,
3225,
2393,
273,
394,
3225,
5621,
5411,
309,
14015,
267,
25364,
473,
28062,
67,
20060,
266... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
514,
1762,
1435,
288,
5411,
309,
261,
267,
25364,
422,
374,
13,
7734,
327,
1408,
31,
5411,
3225,
2393,
273,
394,
3225,
5621,
5411,
309,
14015,
267,
25364,
473,
28062,
67,
20060,
266... |
jexlContext.getVars().put(name, Boolean.FALSE); } } try { Boolean result = (Boolean)m_jexlExpr.evaluate(jexlContext); if (result == null) { return false; } if (result.booleanValue()) { | public boolean matches(final String className, final MethodMetaData methodMetaData) { JexlContext jexlContext = JexlHelper.createContext(); for (Iterator it = m_pointcutPatterns.entrySet().iterator(); it.hasNext();) { Map.Entry entry = (Map.Entry)it.next(); String name = (String)entry.getKey(); PointcutPatternTuple pointcutPattern = (PointcutPatternTuple)entry.getValue(); if (pointcutPattern.getClassPattern().matches(className) && ((MethodPattern)pointcutPattern.getPattern()).matches(methodMetaData)) { jexlContext.getVars().put(name, Boolean.TRUE); } else { jexlContext.getVars().put(name, Boolean.FALSE); } } try { Boolean result = (Boolean)m_jexlExpr.evaluate(jexlContext); if (result == null) { return false; } if (result.booleanValue()) { return true; } else { return false; } } catch (Exception e) { throw new WrappedRuntimeException(e); } } | 7954 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7954/797e662bcd4bca47d6ac84f41fbf32bf15013a33/MethodPointcut.java/clean/aspectwerkz/src/main/org/codehaus/aspectwerkz/pointcut/MethodPointcut.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1885,
12,
6385,
514,
2658,
16,
727,
2985,
6998,
707,
6998,
13,
288,
3639,
804,
338,
80,
1042,
525,
338,
80,
1042,
273,
804,
338,
80,
2276,
18,
2640,
1042,
5621,
3639,
364,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
1885,
12,
6385,
514,
2658,
16,
727,
2985,
6998,
707,
6998,
13,
288,
3639,
804,
338,
80,
1042,
525,
338,
80,
1042,
273,
804,
338,
80,
2276,
18,
2640,
1042,
5621,
3639,
364,
... | |
(String) result); | (String) result); | protected void notifyEndActiveHandler(String name, UnmarshallerHandler activeHandler) throws SAXException { if (name.equals(HIERARCHICIAL_REFERENCE_TAG)) { if (!(targetProcess instanceof HierarchicalProcess)) { throw new org.xml.sax.SAXException( "found a hierarchical reference inside a non hierarchical process"); } HierarchicalProcess hp = (HierarchicalProcess) targetProcess; Object result = activeHandler.getResultObject(); proActiveDescriptor.registerHierarchicalProcess(hp, (String) result); } else { super.notifyEndActiveHandler(name, activeHandler); } } | 58694 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58694/02b74933ab36f3053e665e84b8287cd5fd62e098/ProcessDefinitionHandler.java/clean/src/org/objectweb/proactive/core/descriptor/xml/ProcessDefinitionHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
4750,
918,
5066,
1638,
3896,
1503,
12,
780,
508,
16,
5411,
1351,
27296,
1503,
2695,
1503,
13,
1216,
14366,
288,
5411,
309,
261,
529,
18,
14963,
12,
29994,
654,
10586,
2871,
6365,
67,
1461... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
4750,
918,
5066,
1638,
3896,
1503,
12,
780,
508,
16,
5411,
1351,
27296,
1503,
2695,
1503,
13,
1216,
14366,
288,
5411,
309,
261,
529,
18,
14963,
12,
29994,
654,
10586,
2871,
6365,
67,
1461... |
Class type = getMetaObject().getType(); | Class type; | public String getLabel() { Class type = getMetaObject().getType(); // if (type == null) {// type = getMetaObject().getType();// } return RenderUtils.getSlotLabel(type, getName(), getBundle(), getLabelKey()); } | 2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/d95362ebe81e903aaab9e436c672e0f3c7b9880d/MetaSlot.java/buggy/src/net/sourceforge/fenixedu/renderers/model/MetaSlot.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
11237,
1435,
288,
202,
797,
618,
31,
3639,
368,
3639,
309,
261,
723,
422,
446,
13,
288,
759,
5411,
618,
273,
11312,
921,
7675,
588,
559,
5621,
759,
3639,
289,
7734,
327,
6987... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
11237,
1435,
288,
202,
797,
618,
31,
3639,
368,
3639,
309,
261,
723,
422,
446,
13,
288,
759,
5411,
618,
273,
11312,
921,
7675,
588,
559,
5621,
759,
3639,
289,
7734,
327,
6987... |
private byte[] getContentHead(CmsObject cms, CmsXmlWpTemplateFile template, String elementName, Hashtable parameters, String templateSelector) throws CmsException { //return var byte[] processResult = null; //get the class of the content definition Class cdClass = getContentDefinitionClass(); //init vars String singleSelection = ""; String allSelections = ""; //create new or fetch existing session CmsSession session = (CmsSession) cms.getRequestContext().getSession(true); //get filter method from session String selectBoxValue = (String) session.getValue("selectbox"); //create appropriate class name with underscores for labels String moduleName = ""; moduleName = (String) getClass().toString(); //get name moduleName = moduleName.substring(5); //remove 'class' substring at the beginning moduleName = moduleName.trim(); moduleName = moduleName.replace('.', '_'); //replace dots with underscores //create new language file object CmsXmlLanguageFile lang = new CmsXmlLanguageFile(cms); //set labels in the template template.setData("filter", lang.getLanguageValue(moduleName + ".label.filter")); template.setData("filterparameter", lang.getLanguageValue(moduleName + ".label.filterparameter")); //get vector of filter names from the content definition Vector filterMethods = new Vector(); try { filterMethods = (Vector) cdClass.getMethod("getFilterMethods", new Class[] {CmsObject.class}).invoke(null, new Object[] {cms}); } catch (InvocationTargetException ite) { //error occured while applying the filter if (A_OpenCms.isLogging()) { A_OpenCms.log(C_OPENCMS_INFO, getClassName() + ": Backoffice getContentHead: InvocationTargetException!"); } } catch (NoSuchMethodException nsm) { if (A_OpenCms.isLogging()) { A_OpenCms.log(C_OPENCMS_INFO, getClassName() + ": Backoffice getContentHead: Requested method was not found!"); } } catch (Exception e) { if (A_OpenCms.isLogging()) { A_OpenCms.log(C_OPENCMS_INFO, getClassName() + ": Backoffice getContentHead: Problem occured with your filter methods!"); } } //no filter selected so far, store a default filter in the session FilterMethod filterMethod = null; if (selectBoxValue == null) { FilterMethod defaultFilter = (FilterMethod) filterMethods.firstElement(); session.putValue("selectbox", defaultFilter.getFilterName()); } //set the select box for (int i = 0; i < filterMethods.size(); i++) { FilterMethod currentFilter = (FilterMethod) filterMethods.elementAt(i); //insert filter in the template selectbox template.setData("selectname", currentFilter.getFilterName()); template.setData("selectnumber", "" + i); //add additional inputfield, if filter allows parameters template.setData("selectparameter", "" + currentFilter.hasUserParameter()); //get processed data from the template try { singleSelection = template.getProcessedDataValue("singleselection", this); allSelections += singleSelection; } catch (Exception e) { if (A_OpenCms.isLogging()) { A_OpenCms.log(C_OPENCMS_INFO, getClassName() + ": Backoffice getContentHead: Error while getting processedDataValue from Backoffice template!"); } } } //if getCreateUrl equals null, the "create new entry" button //will not be displayed in the template String createButton = null; try { createButton = (String) getCreateUrl(cms, null, null, null); } catch (Exception e) { } if (createButton == null) { String cb = template.getDataValue("nowand"); template.setData("createbutton", cb); } else { String cb = template.getDataValue("wand"); template.setData("createbutton", cb); } //insert tablecontent in template template.setData("selectionbox", "" + allSelections); //finally start the processing processResult = startProcessing(cms, template, elementName, parameters, templateSelector); return processResult;} | 51784 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51784/e35acfbadf19f0011ef0a9ded827a556ad57599a/A_Backoffice.java/buggy/src/com/opencms/defaults/A_Backoffice.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
1160,
8526,
5154,
1414,
12,
4747,
921,
6166,
16,
16084,
59,
84,
2283,
812,
1542,
16,
514,
14453,
16,
18559,
1472,
16,
514,
1542,
4320,
13,
1216,
11228,
288,
202,
759,
2463,
569,
202,
7... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3238,
1160,
8526,
5154,
1414,
12,
4747,
921,
6166,
16,
16084,
59,
84,
2283,
812,
1542,
16,
514,
14453,
16,
18559,
1472,
16,
514,
1542,
4320,
13,
1216,
11228,
288,
202,
759,
2463,
569,
202,
7... | ||
viewPanelLayout.show(viewPanel, viewName); boolean viewingBugs = viewName.equals("BugTree"); if (viewingBugs) checkBugDetailsVisibility(); viewProjectItem.setSelected(!viewingBugs); if (viewingBugs) viewBugsItem.setEnabled(true); viewBugsItem.setSelected(viewingBugs); | viewPanelLayout.show(viewPanel, viewName); boolean viewingBugs = viewName.equals("BugTree"); if (viewingBugs) checkBugDetailsVisibility(); | private void setView(String viewName) { //System.out.println("Showing view " + viewName); viewPanelLayout.show(viewPanel, viewName); boolean viewingBugs = viewName.equals("BugTree"); if (viewingBugs) checkBugDetailsVisibility(); viewProjectItem.setSelected(!viewingBugs); if (viewingBugs) viewBugsItem.setEnabled(true); viewBugsItem.setSelected(viewingBugs); currentView = viewName; } | 10715 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10715/1d541964940eaa91b52b21469dc5b763fef1d8d1/FindBugsFrame.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/gui/FindBugsFrame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
19923,
12,
780,
22244,
13,
288,
3639,
368,
3163,
18,
659,
18,
8222,
2932,
5706,
310,
1476,
315,
397,
22244,
1769,
3639,
1476,
5537,
3744,
18,
4500,
12,
1945,
5537,
16,
22244,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
19923,
12,
780,
22244,
13,
288,
3639,
368,
3163,
18,
659,
18,
8222,
2932,
5706,
310,
1476,
315,
397,
22244,
1769,
3639,
1476,
5537,
3744,
18,
4500,
12,
1945,
5537,
16,
22244,
... |
curLine = myLines [myLineIndex]; if (curLine.startsWith("--- ") || curLine.startsWith("@@ ")) { | String curLine = myLines [myLineIndex]; final PatchLine line = parsePatchLine(curLine, 1); if (line == null) { | private PatchHunk readNextHunkUnified() throws PatchSyntaxException { String curLine = myLines [myLineIndex]; if (curLine.startsWith("--- ")) { return null; } if (!curLine.startsWith("@@ ")) { throw new PatchSyntaxException(myLineIndex, "Hunk start expected"); } Matcher m = ourUnifiedHunkStartPattern.matcher(curLine); if (!m.matches()) { throw new PatchSyntaxException(myLineIndex, "Unknown hunk start syntax"); } int startLineBefore = Integer.parseInt(m.group(1)); int endLineBefore = Integer.parseInt(m.group(2)); int startLineAfter = Integer.parseInt(m.group(3)); int endLineAfter = Integer.parseInt(m.group(4)); PatchHunk hunk = new PatchHunk(startLineBefore, endLineBefore, startLineAfter, endLineAfter); myLineIndex++; while(myLineIndex < myLines.length) { curLine = myLines [myLineIndex]; if (curLine.startsWith("--- ") || curLine.startsWith("@@ ")) { break; } hunk.addLine(parsePatchLine(curLine, 1)); myLineIndex++; } return hunk; } | 56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/f9b40f09b17b414d40d409b0ca80e176628b5511/PatchReader.java/buggy/source/com/intellij/openapi/diff/impl/patch/PatchReader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
12042,
44,
1683,
855,
2134,
44,
1683,
984,
939,
1435,
1216,
12042,
14714,
288,
565,
514,
662,
1670,
273,
3399,
5763,
306,
4811,
1670,
1016,
15533,
565,
309,
261,
1397,
1670,
18,
175... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
12042,
44,
1683,
855,
2134,
44,
1683,
984,
939,
1435,
1216,
12042,
14714,
288,
565,
514,
662,
1670,
273,
3399,
5763,
306,
4811,
1670,
1016,
15533,
565,
309,
261,
1397,
1670,
18,
175... |
if (traceEnabled) { println(formatMessage("E",message,th)); if (th != null) th.printStackTrace(); } | println(formatMessage("E",message,th)); if (th != null) th.printStackTrace(); | public void error (String message, Throwable th) { if (traceEnabled) { println(formatMessage("E",message,th)); if (th != null) th.printStackTrace(); } } | 53148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53148/6bf6295895351381b81fdf1cb625ea8e81032c1a/DefaultTrace.java/clean/weaver/src/org/aspectj/weaver/tools/DefaultTrace.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
555,
261,
780,
883,
16,
4206,
286,
13,
288,
202,
202,
430,
261,
5129,
1526,
13,
288,
1082,
202,
8222,
12,
2139,
1079,
2932,
41,
3113,
2150,
16,
451,
10019,
1082,
202,
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,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
555,
261,
780,
883,
16,
4206,
286,
13,
288,
202,
202,
430,
261,
5129,
1526,
13,
288,
1082,
202,
8222,
12,
2139,
1079,
2932,
41,
3113,
2150,
16,
451,
10019,
1082,
202,
4... |
Object[] oArr = datapoint.getComponents( ).toArray( ); String[] sArr = new String[oArr.length]; for ( int i = 0; i < oArr.length; i++ ) | EList oArr = datapoint.getComponents( ); ArrayList sArr = new ArrayList( oArr.size( ) ); for ( int i = 0; i < oArr.size( ); i++ ) | private String[] getDataPointComponents( DataPoint datapoint ) { Object[] oArr = datapoint.getComponents( ).toArray( ); String[] sArr = new String[oArr.length]; for ( int i = 0; i < oArr.length; i++ ) { sArr[i] = LiteralHelper.dataPointComponentTypeSet.getDisplayNameByName( ( (DataPointComponent) oArr[i] ).getType( ) .getName( ) ); } return sArr; } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/93371f9edb7031999c819528b188b59e604dc2d9/SeriesLabelSheet.java/buggy/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/wizard/format/popup/series/SeriesLabelSheet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
514,
8526,
4303,
2148,
7171,
12,
1910,
2148,
25252,
262,
202,
95,
202,
202,
921,
8526,
320,
5715,
273,
25252,
18,
588,
7171,
12,
262,
18,
31447,
12,
11272,
202,
202,
780,
852... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
514,
8526,
4303,
2148,
7171,
12,
1910,
2148,
25252,
262,
202,
95,
202,
202,
921,
8526,
320,
5715,
273,
25252,
18,
588,
7171,
12,
262,
18,
31447,
12,
11272,
202,
202,
780,
852... |
public org.quickfix.field.LegSymbolSfx getLegSymbolSfx() throws FieldNotFound { org.quickfix.field.LegSymbolSfx value = new org.quickfix.field.LegSymbolSfx(); | public quickfix.field.LegSymbolSfx getLegSymbolSfx() throws FieldNotFound { quickfix.field.LegSymbolSfx value = new quickfix.field.LegSymbolSfx(); | public org.quickfix.field.LegSymbolSfx getLegSymbolSfx() throws FieldNotFound { org.quickfix.field.LegSymbolSfx value = new org.quickfix.field.LegSymbolSfx(); getField(value); return value; } | 5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/TradeCaptureReportAck.java/buggy/src/java/src/quickfix/fix44/TradeCaptureReportAck.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
5335,
55,
19595,
336,
8329,
5335,
55,
19595,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
5335,
55,
19595,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
5335,
55,
19595,
336,
8329,
5335,
55,
19595,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
5335,
55,
19595,
... |
IStructuredSelection ss= (IStructuredSelection)sel; Set selected= new HashSet(); selected.addAll(ss.toList()); return selected; | private Set getSelectedTableEntries() { ISelection sel= fViewer.getSelection(); if (!(sel instanceof IStructuredSelection)) return new HashSet(0); IStructuredSelection ss= (IStructuredSelection)sel; Set selected= new HashSet(); selected.addAll(ss.toList()); return selected; } | 9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/c745d9d19d97b7abc8f230eddbaa21da5d536053/ExternalizeWizardPage.java/buggy/org.eclipse.jdt.ui/ui refactoring/org/eclipse/jdt/internal/ui/refactoring/nls/ExternalizeWizardPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
1000,
16625,
1388,
5400,
1435,
288,
202,
202,
45,
6233,
357,
33,
284,
18415,
18,
588,
6233,
5621,
202,
202,
430,
16051,
12,
1786,
1276,
467,
30733,
6233,
3719,
1082,
202,
2463,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1000,
16625,
1388,
5400,
1435,
288,
202,
202,
45,
6233,
357,
33,
284,
18415,
18,
588,
6233,
5621,
202,
202,
430,
16051,
12,
1786,
1276,
467,
30733,
6233,
3719,
1082,
202,
2463,... | |
} | } | public void fillCdeCombo2(List<GraphObject> objs) { for (int i=0;i<objs.size();i++) { GraphObject gObj = objs.get(i); if (gObj.isDisplayable()){ ClassBean cBean = gObj.getClassBean(); ArrayList attributes = cBean.getAttributes(); for (int j = 0; j < attributes.size(); j++) { AttributeBean aBean = (AttributeBean)attributes.get(j); CDEComboboxBean cdeBean = new CDEComboboxBean(); cdeBean.setGraphObject(gObj);// cdeBean.setClassBean(cBean); cdeBean.setAttributeBean(aBean); getCdeCombo().addItem(cdeBean); } } } } | 45556 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45556/0178d86edbca6c0ebad0cacf71b150dd0e1f9d2f/FilterRowPanel.java/buggy/catrip/codebase/projects/gui/src/java/edu/duke/cabig/catrip/gui/panels/FilterRowPanel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3636,
39,
323,
16156,
22,
12,
682,
32,
4137,
921,
34,
12721,
13,
288,
7734,
364,
261,
474,
277,
33,
20,
31,
77,
32,
18093,
18,
1467,
5621,
77,
27245,
288,
5411,
5601,
921,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
3636,
39,
323,
16156,
22,
12,
682,
32,
4137,
921,
34,
12721,
13,
288,
7734,
364,
261,
474,
277,
33,
20,
31,
77,
32,
18093,
18,
1467,
5621,
77,
27245,
288,
5411,
5601,
921,
... |
inStream = getClass().getResourceAsStream("/bin/langpacks/installer/"+str+".xml"); | inStream = getClass().getResourceAsStream( "/bin/langpacks/installer/" + str + ".xml"); | public void executeCompiler() throws Exception { // normalize and test: TODO: may allow failure if we require write access File base = new File(basedir).getAbsoluteFile(); if (! base.canRead() || ! base.isDirectory()) throw new CompilerException("Invalid base directory: "+base); // Usefull variables int i; String str; Iterator iter; InputStream inStream; // We get the XML data tree XMLElement data = getXMLTree(); // We get the Packager Packager packager = getPackager(); // We add the variable declaration packager.setVariables(getVariables(data)); // We add the info packager.setInfo(getInfo(data)); // We add the GUIPrefs packager.setGUIPrefs(getGUIPrefs(data)); // We add the language packs iter = getLangpacksCodes(data).iterator(); while (iter.hasNext()) { str = (String) iter.next(); // The language pack - first try to get stream directly (for standalone compiler) inStream = getClass().getResourceAsStream("/bin/langpacks/installer/"+str+".xml"); if (inStream == null) { inStream = new FileInputStream(Compiler.IZPACK_HOME + "bin" + File.separator + "langpacks" + File.separator + "installer" + File.separator + str + ".xml"); } packager.addLangPack(str, inStream); // The flag - try to get stream for standalone compiler inStream = getClass ().getResourceAsStream("/bin/langpacks/flags/"+str+".gif"); if (inStream == null) { inStream = new FileInputStream(Compiler.IZPACK_HOME + "bin" + File.separator + "langpacks" + File.separator + "flags" + File.separator + str + ".gif"); } packager.addResource("flag." + str, inStream); inStream.close (); } // We add the resources iter = getResources(data).iterator(); while (iter.hasNext()) { Resource res = (Resource) iter.next(); if (res.parse) { if ((res.src == null) || (res.src_is != null)) { System.err.println("ERROR: cannot parse resource from stream. (Internal error.)"); packager.addResource(res.id, res.src_is); } if (null != varMap) { File resFile = new File(res.src); FileInputStream inFile = new FileInputStream(resFile); BufferedInputStream bin = new BufferedInputStream(inFile, 5120); File parsedFile = File.createTempFile("izpp", null, resFile.getParentFile()); FileOutputStream outFile = new FileOutputStream(parsedFile); BufferedOutputStream bout = new BufferedOutputStream(outFile, 5120); VariableSubstitutor vs = new VariableSubstitutor(varMap); vs.substitute(bin, bout, res.type, res.encoding); bin.close(); bout.close(); inFile = new FileInputStream(parsedFile); packager.addResource(res.id, inFile); inFile.close(); parsedFile.delete(); } else { System.err.println("ERROR: no variable is defined. " + res.src + " is not parsed."); inStream = new FileInputStream(res.src); packager.addResource(res.id, inStream); inStream.close (); } } else { if (res.src != null) { inStream = new FileInputStream(res.src); } else { inStream = res.src_is; } packager.addResource(res.id, inStream); if (res.src != null) inStream.close (); } } // We add the native libraries iter = getNativeLibraries(data).iterator(); while (iter.hasNext()) { NativeLibrary nat = (NativeLibrary) iter.next(); inStream = new FileInputStream(nat.path); packager.addNativeLibrary(nat.name, inStream); } // We add the additionnal jar files content iter = getJars(data).iterator(); while (iter.hasNext()) packager.addJarContent((String) iter.next()); // We add the panels ArrayList panels = getPanels(data); TreeSet panelsCache = new TreeSet(); iter = getPanels(data).iterator(); while (iter.hasNext()) { Panel p = (Panel)iter.next(); // We locate the panel classes directory str = p.className; // first try to get a Jar file for standalone compiler JarInputStream panel_is = null; try { InputStream jarInStream = getClass().getResourceAsStream("/bin/panels/"+str+".jar"); if (jarInStream != null) panel_is = new JarInputStream (jarInStream); } catch (IOException e) { // for now, ignore this - try to read panel classes from filesystem panel_is = null; } if (panel_is != null) { if (panelsCache.contains(str)) continue; panelsCache.add(str); // now add files ZipEntry entry = null; while ((entry = panel_is.getNextEntry()) != null) packager.addPanelClass(entry.getName(), panel_is); } else { File dir = new File(Compiler.IZPACK_HOME + "bin" + File.separator + "panels" + File.separator + str); if (!dir.exists()) throw new Exception(str + " panel does not exist"); // We add each file in the panel folder if (panelsCache.contains(str)) continue; panelsCache.add(str); File[] files = dir.listFiles(); int nf = files.length; for (int j = 0; j < nf; j++) { if (files[j].isDirectory()) continue; FileInputStream inClass = new FileInputStream(files[j]); packager.addPanelClass(files[j].getName(), inClass); } } } // We set the panels order packager.setPanelsOrder(panels); Map storedFiles = new HashMap(); // We add the packs i = 0; //pack counter iter = getPacks(data).iterator(); while (iter.hasNext()) { Pack pack = (Pack) iter.next(); ZipOutputStream zipOut = packager.addPack(i, pack.name, pack.osConstraints, pack.required, pack.description, pack.preselected); zipOut.flush();//make sure buffers are flushed before we start counting ByteCountingOutputStream dos = new ByteCountingOutputStream(zipOut);//stream with byte counter ObjectOutputStream objOut = new ObjectOutputStream(dos); // We write the pack data objOut.writeInt(pack.packFiles.size()); Iterator iter2 = pack.packFiles.iterator(); long packageBytes = 0; while (iter2.hasNext()) { // Initialisations PackSource p = (PackSource) iter2.next(); File f = new File(p.src); FileInputStream in = new FileInputStream(f); long nbytes = f.length(); long mtime = f.lastModified(); String targetFilename = p.getTargetFilename (); // pack paths in canonical (unix) form regardless of current host o/s: if('/' != File.separatorChar) { targetFilename = targetFilename.replace(File.separatorChar, '/'); } // Writing PackFile pf = new PackFile(targetFilename, p.osConstraints, nbytes, mtime, p.override); long[] info = (long[])storedFiles.get(p.src); boolean addFile = true; if (info != null && packager.allowPackFileBackReferences()) { pf.setPreviousPackFileRef((int)info[0],info[1]); addFile = false; } objOut.writeObject(pf); objOut.flush();//make sure it is written long pos = dos.getByteCount();//get the position if (addFile) { byte[] buffer = new byte[5120]; long bytesWritten = 0; int bytesInBuffer; while ((bytesInBuffer = in.read(buffer)) != -1) { objOut.write(buffer, 0, bytesInBuffer); bytesWritten += bytesInBuffer; } if (bytesWritten != nbytes) throw new IOException ("File size mismatch when reading " + f); storedFiles.put(p.src,new long[]{i,pos}); } packageBytes += nbytes;//aldo could be not really written we still want to know size. in.close(); } packager.packAdded(i, packageBytes); // Write out information about parsable files objOut.writeInt(pack.parsables.size()); iter2 = pack.parsables.iterator(); while (iter2.hasNext()) objOut.writeObject(iter2.next()); // Write out information about executable files objOut.writeInt(pack.executables.size()); iter2 = pack.executables.iterator(); while (iter2.hasNext()) { objOut.writeObject(iter2.next()); } // Write out information about executable files objOut.writeInt(pack.updatechecks.size()); iter2 = pack.updatechecks.iterator(); while (iter2.hasNext()) { objOut.writeObject(iter2.next()); } // Cleanup objOut.flush(); zipOut.closeEntry(); i++; } // We ask the packager to finish packager.finish(); this.compileFailed = false; } | 54145 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54145/6e8ab3930a21f787bcd0f3cf0b9937f9d50c80c0/Compiler.java/buggy/src/lib/com/izforge/izpack/compiler/Compiler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1836,
9213,
1435,
1216,
1185,
225,
288,
565,
368,
3883,
471,
1842,
30,
2660,
30,
2026,
1699,
5166,
309,
732,
2583,
1045,
2006,
565,
1387,
1026,
273,
394,
1387,
12,
31722,
2934,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9213,
1435,
1216,
1185,
225,
288,
565,
368,
3883,
471,
1842,
30,
2660,
30,
2026,
1699,
5166,
309,
732,
2583,
1045,
2006,
565,
1387,
1026,
273,
394,
1387,
12,
31722,
2934,... |
peerRow.addChild("td", "class", "peer-location", String.valueOf(peerNode.getLocation().getValue())); | peerRow.addChild("td", "class", "peer-location", String.valueOf(peerNodeStatus.getLocation())); | public void handleGet(URI uri, ToadletContext ctx) throws ToadletContextClosedException, IOException, RedirectException { String path = uri.getPath(); if(path.endsWith("myref.txt")) { SimpleFieldSet fs = node.exportPublicFieldSet(); StringWriter sw = new StringWriter(); fs.writeTo(sw); this.writeReply(ctx, 200, "text/plain", "OK", sw.toString()); return; } final boolean advancedEnabled = node.getToadletContainer().isAdvancedDarknetEnabled(); /* gather connection statistics */ PeerNode[] peerNodes = node.getDarknetConnections(); Arrays.sort(peerNodes, new Comparator() { public int compare(Object first, Object second) { PeerNode firstNode = (PeerNode) first; PeerNode secondNode = (PeerNode) second; int statusDifference = firstNode.getPeerNodeStatus() - secondNode.getPeerNodeStatus(); if (statusDifference != 0) { return statusDifference; } return firstNode.getName().compareTo(secondNode.getName()); } }); /* copy peer node statuses for consistent display. */ int[] peerNodeStatuses = new int[peerNodes.length]; for (int peerIndex = 0, peerCount = peerNodes.length; peerIndex < peerCount; peerIndex++) { peerNodeStatuses[peerIndex] = peerNodes[peerIndex].getPeerNodeStatus(); } int numberOfConnected = getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_CONNECTED); int numberOfRoutingBackedOff = getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_ROUTING_BACKED_OFF); int numberOfTooNew = getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_TOO_NEW); int numberOfTooOld = getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_TOO_OLD); int numberOfDisconnected = getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_DISCONNECTED); int numberOfNeverConnected = getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_NEVER_CONNECTED); int numberOfDisabled = getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_DISABLED); int numberOfBursting = getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_BURSTING); int numberOfListening = getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_LISTENING); int numberOfListenOnly = getPeerStatusCount(peerNodeStatuses, Node.PEER_NODE_STATUS_LISTEN_ONLY); int numberOfSimpleConnected = numberOfConnected + numberOfRoutingBackedOff; int numberOfNotConnected = numberOfTooNew + numberOfTooOld + numberOfDisconnected + numberOfNeverConnected + numberOfDisabled + numberOfBursting + numberOfListening + numberOfListenOnly; String titleCountString = null; if(advancedEnabled) { titleCountString = "(" + numberOfConnected + "/" + numberOfRoutingBackedOff + "/" + numberOfTooNew + "/" + numberOfTooOld + "/" + numberOfNotConnected + ")"; } else { titleCountString = String.valueOf(numberOfSimpleConnected); } HTMLNode pageNode = ctx.getPageMaker().getPageNode(titleCountString + " Darknet Peers of " + node.getMyName()); HTMLNode contentNode = ctx.getPageMaker().getContentNode(pageNode); // FIXME! We need some nice images long now = System.currentTimeMillis(); contentNode.addChild(node.alerts.createSummary()); /* node status values */ int bwlimitDelayTime = (int) node.getBwlimitDelayTime(); int nodeAveragePingTime = (int) node.getNodeAveragePingTime(); int networkSizeEstimate = node.getNetworkSizeEstimate(0); DecimalFormat fix4 = new DecimalFormat("0.0000"); double missRoutingDistance = node.missRoutingDistance.currentValue(); DecimalFormat fix1 = new DecimalFormat("##0.0%"); double backedoffPercent = node.backedoffPercent.currentValue(); String nodeUptimeString = timeIntervalToString(( now - node.startupTime ) / 1000); // BEGIN OVERVIEW TABLE HTMLNode overviewTable = contentNode.addChild("table", "class", "column"); HTMLNode overviewTableRow = overviewTable.addChild("tr"); HTMLNode nextTableCell = overviewTableRow.addChild("td", "class", "first"); /* node status overview box */ if(advancedEnabled) { HTMLNode overviewInfobox = nextTableCell.addChild("div", "class", "infobox"); overviewInfobox.addChild("div", "class", "infobox-header", "Node status overview"); HTMLNode overviewInfoboxContent = overviewInfobox.addChild("div", "class", "infobox-content"); HTMLNode overviewList = overviewInfoboxContent.addChild("ul"); overviewList.addChild("li", "bwlimitDelayTime:\u00a0" + bwlimitDelayTime + "ms"); overviewList.addChild("li", "nodeAveragePingTime:\u00a0" + nodeAveragePingTime + "ms"); overviewList.addChild("li", "networkSizeEstimate:\u00a0" + networkSizeEstimate + "\u00a0nodes"); overviewList.addChild("li", "nodeUptime:\u00a0" + nodeUptimeString); overviewList.addChild("li", "missRoutingDistance:\u00a0" + fix4.format(missRoutingDistance)); overviewList.addChild("li", "backedoffPercent:\u00a0" + fix1.format(backedoffPercent)); nextTableCell = overviewTableRow.addChild("td"); } // Activity box int numInserts = node.getNumInserts(); int numRequests = node.getNumRequests(); int numTransferringRequests = node.getNumTransferringRequests(); int numARKFetchers = node.getNumARKFetchers(); HTMLNode activityInfobox = nextTableCell.addChild("div", "class", "infobox"); activityInfobox.addChild("div", "class", "infobox-header", "Current activity"); HTMLNode activityInfoboxContent = activityInfobox.addChild("div", "class", "infobox-content"); if ((numInserts == 0) && (numRequests == 0) && (numTransferringRequests == 0) && (numARKFetchers == 0)) { activityInfoboxContent.addChild("#", "Your node is not processing any requests right now."); } else { HTMLNode activityList = activityInfoboxContent.addChild("ul", "id", "activity"); if (numInserts > 0) { activityList.addChild("li", "Inserts:\u00a0" + numInserts); } if (numRequests > 0) { activityList.addChild("li", "Requests:\u00a0" + numRequests); } if (numTransferringRequests > 0) { activityList.addChild("li", "Transferring\u00a0Requests:\u00a0" + numTransferringRequests); } if (advancedEnabled) { if (numARKFetchers > 0) { activityList.addChild("li", "ARK\u00a0Fetch\u00a0Requests:\u00a0" + numARKFetchers); } } } nextTableCell = advancedEnabled ? overviewTableRow.addChild("td") : overviewTableRow.addChild("td", "class", "last"); // Peer statistics box HTMLNode peerStatsInfobox = nextTableCell.addChild("div", "class", "infobox"); peerStatsInfobox.addChild("div", "class", "infobox-header", "Peer statistics"); HTMLNode peerStatsContent = peerStatsInfobox.addChild("div", "class", "infobox-content"); HTMLNode peerStatsList = peerStatsContent.addChild("ul"); if (numberOfConnected > 0) { peerStatsList.addChild("li").addChild("span", "class", "peer_connected", "Connected:\u00a0" + numberOfConnected); } if (numberOfRoutingBackedOff > 0) { peerStatsList.addChild("li").addChild("span", "class", "peer_backedoff", (advancedEnabled ? "Backed off" : "Busy") + ":\u00a0" + numberOfRoutingBackedOff); } if (numberOfTooNew > 0) { peerStatsList.addChild("li").addChild("span", "class", "peer_too_new", "Too new:\u00a0" + numberOfTooNew); } if (numberOfTooOld > 0) { peerStatsList.addChild("li").addChild("span", "class", "peer_too_old", "Too old:\u00a0" + numberOfTooOld); } if (numberOfDisconnected > 0) { peerStatsList.addChild("li").addChild("span", "class", "peer_disconnected", "Disconnected:\u00a0" + numberOfDisconnected); } if (numberOfNeverConnected > 0) { peerStatsList.addChild("li").addChild("span", "class", "peer_never_connected", "Never Connected:\u00a0" + numberOfNeverConnected); } if (numberOfDisabled > 0) { peerStatsList.addChild("li").addChild("span", "class", "peer_never_connected", "Disabled:\u00a0" + numberOfDisabled); /* TODO */ } if (numberOfBursting > 0) { peerStatsList.addChild("li").addChild("span", "class", "peer_never_connected", "Bursting:\u00a0" + numberOfBursting); /* TODO */ } if (numberOfListening > 0) { peerStatsList.addChild("li").addChild("span", "class", "peer_never_connected", "Listening:\u00a0" + numberOfListening); /* TODO */ } if (numberOfListenOnly > 0) { peerStatsList.addChild("li").addChild("span", "class", "peer_never_connected", "Listen Only:\u00a0" + numberOfListenOnly); /* TODO */ } // Peer routing backoff reason box if(advancedEnabled) { nextTableCell = overviewTableRow.addChild("td", "class", "last"); HTMLNode backoffReasonInfobox = nextTableCell.addChild("div", "class", "infobox"); backoffReasonInfobox.addChild("div", "class", "infobox-header", "Peer backoff reasons"); HTMLNode backoffReasonContent = backoffReasonInfobox.addChild("div", "class", "infobox-content"); String [] routingBackoffReasons = node.getPeerNodeRoutingBackoffReasons(); if(routingBackoffReasons.length == 0) { backoffReasonContent.addChild("#", "Good, your node is not backed off from any peers!"); } else { HTMLNode reasonList = backoffReasonContent.addChild("ul"); for(int i=0;i<routingBackoffReasons.length;i++) { int reasonCount = node.getPeerNodeRoutingBackoffReasonSize(routingBackoffReasons[i]); if(reasonCount > 0) { reasonList.addChild("li", routingBackoffReasons[i] + '\u00a0' + reasonCount); } } } } // END OVERVIEW TABLE // BEGIN PEER TABLE HTMLNode peerTableInfobox = contentNode.addChild("div", "class", "infobox infobox-normal"); HTMLNode peerTableInfoboxHeader = peerTableInfobox.addChild("div", "class", "infobox-header"); peerTableInfoboxHeader.addChild("#", "My peers"); if (advancedEnabled) { if (!path.endsWith("displaymessagetypes.html")) { peerTableInfoboxHeader.addChild("#", " "); peerTableInfoboxHeader.addChild("a", "href", "displaymessagetypes.html", "(more detailed)"); } } HTMLNode peerTableInfoboxContent = peerTableInfobox.addChild("div", "class", "infobox-content"); if (peerNodes.length == 0) { peerTableInfoboxContent.addChild("#", "Freenet can not work as you have not added any peers so far. Please go to the "); peerTableInfoboxContent.addChild("a", "href", "/", "node homepage"); peerTableInfoboxContent.addChild("#", " and read the top infobox to see how it is done."); } else { HTMLNode peerForm = peerTableInfoboxContent.addChild("form", new String[] { "action", "method", "enctype" }, new String[] { ".", "post", "multipart/form-data" }); peerForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "formPassword", node.formPassword }); HTMLNode peerTable = peerForm.addChild("table", "class", "darknet_connections"); HTMLNode peerTableHeaderRow = peerTable.addChild("tr"); peerTableHeaderRow.addChild("th"); peerTableHeaderRow.addChild("th", "Status"); peerTableHeaderRow.addChild("th").addChild("span", new String[] { "title", "style" }, new String[] { "Click on the nodename link to send N2NTM", "border-bottom: 1px dotted; cursor: help;" }, "Name"); if (advancedEnabled) { peerTableHeaderRow.addChild("th").addChild("span", new String[] { "title", "style" }, new String[] { "Address:Port", "border-bottom: 1px dotted; cursor: help;" }, "Address"); } peerTableHeaderRow.addChild("th", "Version"); if (advancedEnabled) { peerTableHeaderRow.addChild("th", "Location"); peerTableHeaderRow.addChild("th").addChild("span", new String[] { "title", "style" }, new String[] { "Temporarily disconnected. Other node busy? Wait time(s) remaining/total", "border-bottom: 1px dotted; cursor: help;" }, "Backoff"); } peerTableHeaderRow.addChild("th").addChild("span", new String[] { "title", "style" }, new String[] { "How long since the node connected or was last seen", "border-bottom: 1px dotted; cursor: help;" }, "Connected\u00a0/\u00a0Idle"); for (int peerIndex = 0, peerCount = peerNodes.length; peerIndex < peerCount; peerIndex++) { PeerNode peerNode = peerNodes[peerIndex]; HTMLNode peerRow = peerTable.addChild("tr"); // check box column peerRow.addChild("td", "class", "peer-marker").addChild("input", new String[] { "type", "name" }, new String[] { "checkbox", "node_" + peerNode.hashCode() }); // status column String statusString = peerNode.getPeerNodeStatusString(); if (!advancedEnabled && (peerNode.getPeerNodeStatus() == Node.PEER_NODE_STATUS_ROUTING_BACKED_OFF)) { statusString = "BUSY"; } peerRow.addChild("td", "class", "peer-status").addChild("span", "class", peerNode.getPeerNodeStatusCSSClassName(), statusString + (peerNode.isFetchingARK() ? "*" : "")); // name column if (peerNode.isConnected() && (Integer.parseInt(peerNode.getSimpleVersion()) > 476)) { peerRow.addChild("td", "class", "peer-name").addChild("a", "href", "/send_n2ntm/?peernode_hashcode=" + peerNode.hashCode(), peerNode.getName()); } else { peerRow.addChild("td", "class", "peer-name").addChild("#", peerNode.getName()); } // address column if (advancedEnabled) { String pingTime = ""; if (peerNode.isConnected()) { pingTime = " (" + String.valueOf((int) peerNode.averagePingTime()) + "ms)"; } peerRow.addChild("td", "class", "peer-address").addChild("#", ((peerNode.getDetectedPeer() != null) ? (peerNode.getDetectedPeer().toString()) : ("(unknown address)")) + pingTime); } // version column if (peerNode.publicReverseInvalidVersion()) { peerRow.addChild("td", "class", "peer-version").addChild("span", "class", "peer_too_new", advancedEnabled ? peerNode.getVersion() : peerNode.getSimpleVersion()); } else { peerRow.addChild("td", "class", "peer-version").addChild("#", advancedEnabled ? peerNode.getVersion() : peerNode.getSimpleVersion()); } // location column if (advancedEnabled) { peerRow.addChild("td", "class", "peer-location", String.valueOf(peerNode.getLocation().getValue())); } // backoff column if (advancedEnabled) { HTMLNode backoffCell = peerRow.addChild("td", "class", "peer-backoff"); backoffCell.addChild("#", fix1.format(peerNode.backedOffPercent.currentValue())); int backoff = (int) (Math.max(peerNode.getRoutingBackedOffUntil() - now, 0)); // Don't list the backoff as zero before it's actually zero if ((backoff > 0) && (backoff < 1000)) { backoff = 1000; } backoffCell.addChild("#", " " + String.valueOf(backoff / 1000) + "/" + String.valueOf(peerNode.getRoutingBackoffLength() / 1000)); backoffCell.addChild("#", (peerNode.getLastBackoffReason() == null) ? "" : ("/" + (peerNode.getLastBackoffReason()))); } // idle column long idle = peerNode.timeLastRoutable(); if(peerNode.isRoutable()) { idle = peerNode.timeLastConnectionCompleted(); } else if(peerNodeStatuses[peerIndex] == Node.PEER_NODE_STATUS_NEVER_CONNECTED) { idle = peerNode.getPeerAddedTime(); } peerRow.addChild("td", "class", "peer-idle", idleToString(now, idle)); if (path.endsWith("displaymessagetypes.html")) { HTMLNode messageCountRow = peerTable.addChild("tr", "class", "message-status"); messageCountRow.addChild("td", "colspan", "2"); HTMLNode messageCountCell = messageCountRow.addChild("td", "colspan", String.valueOf(advancedEnabled ? 6 : 3)); HTMLNode messageCountTable = messageCountCell.addChild("table", "class", "message-count"); HTMLNode countHeaderRow = messageCountTable.addChild("tr"); countHeaderRow.addChild("th", "Message"); countHeaderRow.addChild("th", "Incoming"); countHeaderRow.addChild("th", "Outgoing"); List messageNames = new ArrayList(); Map messageCounts = new HashMap(); for (Iterator incomingMessages = peerNode.getLocalNodeReceivedMessagesFromStatistic().keySet().iterator(); incomingMessages.hasNext(); ) { String messageName = (String) incomingMessages.next(); messageNames.add(messageName); Long messageCount = (Long) peerNode.getLocalNodeReceivedMessagesFromStatistic().get(messageName); messageCounts.put(messageName, new Long[] { messageCount, new Long(0) }); } for (Iterator outgoingMessages = peerNode.getLocalNodeSentMessagesToStatistic().keySet().iterator(); outgoingMessages.hasNext(); ) { String messageName = (String) outgoingMessages.next(); if (!messageNames.contains(messageName)) { messageNames.add(messageName); } Long messageCount = (Long) peerNode.getLocalNodeSentMessagesToStatistic().get(messageName); Long[] existingCounts = (Long[]) messageCounts.get(messageName); if (existingCounts == null) { messageCounts.put(messageName, new Long[] { new Long(0), messageCount }); } else { existingCounts[1] = messageCount; } } Collections.sort(messageNames, new Comparator() { public int compare(Object first, Object second) { return ((String) first).compareToIgnoreCase((String) second); } }); for (Iterator messageNamesIterator = messageNames.iterator(); messageNamesIterator.hasNext(); ) { String messageName = (String) messageNamesIterator.next(); Long[] messageCount = (Long[]) messageCounts.get(messageName); HTMLNode messageRow = messageCountTable.addChild("tr"); messageRow.addChild("td", messageName); messageRow.addChild("td", "class", "right-align", String.valueOf(messageCount[0])); messageRow.addChild("td", "class", "right-align", String.valueOf(messageCount[1])); } } } if(!advancedEnabled) { peerForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "remove", "Remove selected peers" }); } else { HTMLNode actionSelect = peerForm.addChild("select", "name", "action"); actionSelect.addChild("option", "value", "", "-- Select action --"); actionSelect.addChild("option", "value", "enable", "Enable selected peers"); actionSelect.addChild("option", "value", "disable", "Disable selected peers"); actionSelect.addChild("option", "value", "set_burst_only", "On selected peers, set BurstOnly"); actionSelect.addChild("option", "value", "clear_burst_only", "On selected peers, clear BurstOnly"); actionSelect.addChild("option", "value", "set_listen_only", "On selected peers, set ListenOnly"); actionSelect.addChild("option", "value", "clear_listen_only", "On selected peers, clear ListenOnly"); actionSelect.addChild("option", "value", "", "-- -- --"); actionSelect.addChild("option", "value", "remove", "Remove selected peers"); peerForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "submit", "Go" }); } } // END PEER TABLE // BEGIN PEER ADDITION BOX HTMLNode peerAdditionInfobox = contentNode.addChild("div", "class", "infobox infobox-normal"); peerAdditionInfobox.addChild("div", "class", "infobox-header", "Add another peer"); HTMLNode peerAdditionContent = peerAdditionInfobox.addChild("div", "class", "infobox-content"); HTMLNode peerAdditionForm = peerAdditionContent.addChild("form", new String[] { "action", "method", "enctype" }, new String[] { ".", "post", "multipart/form-data" }); peerAdditionForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "hidden", "formPassword", node.formPassword }); peerAdditionForm.addChild("#", "Paste the reference here:"); peerAdditionForm.addChild("br"); peerAdditionForm.addChild("textarea", new String[] { "id", "name", "rows", "cols" }, new String[] { "reftext", "ref", "8", "74" }); peerAdditionForm.addChild("br"); peerAdditionForm.addChild("#", "Enter the URL of the reference here: "); peerAdditionForm.addChild("input", new String[] { "id", "type", "name" }, new String[] { "refurl", "text", "url" }); peerAdditionForm.addChild("br"); peerAdditionForm.addChild("#", "Choose the file containing the reference here: "); peerAdditionForm.addChild("input", new String[] { "id", "type", "name" }, new String[] { "reffile", "file", "reffile" }); peerAdditionForm.addChild("br"); peerAdditionForm.addChild("input", new String[] { "type", "name", "value" }, new String[] { "submit", "add", "Add" }); // our reference HTMLNode referenceInfobox = contentNode.addChild("div", "class", "infobox infobox-normal"); referenceInfobox.addChild("div", "class", "infobox-header").addChild("a", "href", "myref.txt", "My reference"); referenceInfobox.addChild("div", "class", "infobox-content").addChild("pre", "id", "reference", node.exportPublicFieldSet().toString()); StringBuffer pageBuffer = new StringBuffer(); pageNode.generate(pageBuffer); this.writeReply(ctx, 200, "text/html", "OK", pageBuffer.toString()); } | 50915 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50915/8894de616e17a43e740747a9eb17956bab9b3b3d/DarknetConnectionsToadlet.java/clean/src/freenet/clients/http/DarknetConnectionsToadlet.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1640,
967,
12,
3098,
2003,
16,
2974,
361,
1810,
1042,
1103,
13,
1216,
2974,
361,
1810,
1042,
7395,
503,
16,
1860,
16,
9942,
503,
288,
9506,
202,
780,
589,
273,
2003,
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,
918,
1640,
967,
12,
3098,
2003,
16,
2974,
361,
1810,
1042,
1103,
13,
1216,
2974,
361,
1810,
1042,
7395,
503,
16,
1860,
16,
9942,
503,
288,
9506,
202,
780,
589,
273,
2003,
18,
... |
Vector list = new Vector(); | List list = new ArrayList(); | public Object handleSpecialWorkplaceTag(CmsObject cms, Element n, A_CmsXmlContent doc, Object callingObject, Hashtable parameters, CmsXmlLanguageFile lang) throws CmsException { // Get list definition values CmsXmlWpTemplateFile listdef = getTaskListDefinitions(cms); CmsRequestContext context = cms.getRequestContext(); String listMethod = n.getAttribute("method"); // call the method for generating projectlist elements Method callingMethod = null; Vector list = new Vector(); try { callingMethod = callingObject.getClass().getMethod(listMethod, new Class[] { CmsObject.class, CmsXmlLanguageFile.class }); list = (Vector)callingMethod.invoke(callingObject, new Object[] { cms, lang }); } catch(NoSuchMethodException exc) { // The requested method was not found. throwException("Could not find method " + listMethod + " in calling class " + callingObject.getClass().getName() + " for generating lasklist content.", CmsException.C_NOT_FOUND); } catch(InvocationTargetException targetEx) { // the method could be invoked, but throwed a exception // itself. Get this exception and throw it again. Throwable e = targetEx.getTargetException(); if(!(e instanceof CmsException)) { // Only print an error if this is NO CmsException throwException("User method " + listMethod + " in calling class " + callingObject.getClass().getName() + " throwed an exception. " + e, CmsException.C_UNKNOWN_EXCEPTION); } else { // This is a CmsException // Error printing should be done previously. throw (CmsException)e; } } catch(Exception exc2) { throwException("User method " + listMethod + " in calling class " + callingObject.getClass().getName() + " was found but could not be invoked. " + exc2, CmsException.C_XML_NO_USER_METHOD); } /** StringBuffer for the generated output */ StringBuffer result = new StringBuffer(); String priority; String projectname; String stateIcon; String style; String contextmenu; long startTime; long timeout; GregorianCalendar cal = new GregorianCalendar(); cal.setTime(new Date(System.currentTimeMillis())); cal.set(Calendar.HOUR, 0); cal.set(Calendar.MINUTE, 0); cal.set(Calendar.SECOND, 0); cal.set(Calendar.MILLISECOND, 0); GregorianCalendar newcal = new GregorianCalendar(cal.get(Calendar.YEAR), cal.get(Calendar.MONTH), cal.get(Calendar.DAY_OF_MONTH), 0, 0, 0); long now = newcal.getTime().getTime(); CmsTaskService taskService = cms.getTaskService(); for(int i = 0;i < list.size();i++) { // get the actual project CmsTask task = (CmsTask)list.elementAt(i); CmsProject project = null; projectname = "?"; try { project = taskService.readProject(task); } catch(Exception exc) { // no project - continue with next task continue; } if((project == null) || (project.getFlags() == I_CmsConstants.C_PROJECT_STATE_ARCHIVE)) { // project was published - continue continue; } projectname = project.getName(); priority = listdef.getProcessedDataValue("priority" + task.getPriority(), callingObject); startTime = task.getStartTime().getTime(); timeout = task.getTimeOut().getTime(); listdef.setData("taskid", task.getId() + ""); listdef.setData("count", i + ""); // making the context menus depending on the state of the task and // the role of the user CmsUser owner = null; String ownerName = ""; try { owner = taskService.readOwner(task); ownerName = owner.getName(); } catch(Exception exc) { // ignore the exception } CmsUser editor = null; try { editor = taskService.readAgent(task); } catch(Exception exc) { // ignore the exception } CmsGroup role = null; String roleName = ""; try { role = taskService.readGroup(task); roleName = role.getName(); } catch(Exception exc) { // ignore the exception } boolean isOwner = context.currentUser().equals(owner); boolean isEditor = context.currentUser().equals(editor); boolean isInRole = false; try { isInRole = cms.userInGroup(context.currentUser().getName(), roleName); } catch(Exception exc) { // ignore the exception } // now decide which contex menu is appropriate if(task.getState() == I_CmsConstants.C_TASK_STATE_ENDED) { if(isOwner) { contextmenu = "task1"; } else { if(isEditor) { contextmenu = "task2"; } else { if(isInRole) { contextmenu = "task3"; } else { contextmenu = "task3"; } } } listdef.setData("contextmenu", contextmenu); stateIcon = listdef.getProcessedDataValue("ok", callingObject); style = listdef.getProcessedDataValue("style_ok", callingObject); } else { if(task.getPercentage() == 0) { if(isOwner && isEditor) { contextmenu = "task4"; } else { if(isOwner) { contextmenu = "task5"; } else { if(isEditor) { contextmenu = "task6"; } else { if(isInRole) { contextmenu = "task7"; } else { contextmenu = "task8"; } } } } listdef.setData("contextmenu", contextmenu); if(timeout < now) { stateIcon = listdef.getProcessedDataValue("alert", callingObject); style = listdef.getProcessedDataValue("style_alert", callingObject); } else { stateIcon = listdef.getProcessedDataValue("new", callingObject); style = listdef.getProcessedDataValue("style_new", callingObject); } } else { if(isOwner && isEditor) { contextmenu = "task9"; } else { if(isOwner) { contextmenu = "task10"; } else { if(isEditor) { contextmenu = "task11"; } else { if(isInRole) { contextmenu = "task12"; } else { contextmenu = "task13"; } } } } listdef.setData("contextmenu", contextmenu); if(timeout < now) { stateIcon = listdef.getProcessedDataValue("alert", callingObject); style = listdef.getProcessedDataValue("style_alert", callingObject); } else { stateIcon = listdef.getProcessedDataValue("activ", callingObject); style = listdef.getProcessedDataValue("style_activ", callingObject); } } } String agent = ""; String group = ""; String due = ""; String from = ""; try { agent = taskService.readAgent(task).getName(); } catch(Exception exc) { // ignore the exception } try { group = taskService.readGroup(task).getName(); } catch(Exception exc) { // ignore the exception } try { due = CmsDateUtil.getDateShort(timeout); } catch(Exception exc) { // ignore the exception } try { from = CmsDateUtil.getDateShort(startTime); } catch(Exception exc) { // ignore the exception } // get the processed list. listdef.setData("stateicon", stateIcon); listdef.setData("style", style); listdef.setData("priority", priority); listdef.setData("taskid", task.getId() + ""); listdef.setData("task", task.getName()); listdef.setData("foruser", agent); listdef.setData("forrole", group); listdef.setData("actuator", ownerName); listdef.setData("due", due); listdef.setData("from", from); listdef.setData("project", projectname); result.append(listdef.getProcessedDataValue("defaulttasklist", callingObject, parameters)); } return result.toString(); } | 8585 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8585/59a0fe6c0fdbb2ccab3012e14c6cc859eef786f5/CmsTaskList.java/buggy/src/com/opencms/workplace/CmsTaskList.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
1640,
12193,
16514,
1805,
12,
4747,
921,
6166,
16,
3010,
290,
16,
432,
67,
4747,
27415,
997,
16,
1033,
4440,
921,
16,
2398,
18559,
1472,
16,
16084,
3779,
812,
3303,
13,
1216,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1033,
1640,
12193,
16514,
1805,
12,
4747,
921,
6166,
16,
3010,
290,
16,
432,
67,
4747,
27415,
997,
16,
1033,
4440,
921,
16,
2398,
18559,
1472,
16,
16084,
3779,
812,
3303,
13,
1216,
... |
int n = getComponentCount(); | ModifiableComponent comp = getSocietyComponent(); List propertyNames = comp.getPropertyNamesList(); for (Iterator j = propertyNames.iterator(); j.hasNext(); ) { Property property = comp.getProperty((CompositeName)j.next()); if (! property.isValueSet()) { List values = property.getExperimentValues(); if (values == null || values.size() == 0) { return true; } } } int n = getRecipeComponentCount(); | public boolean hasUnboundProperties() { int n = getComponentCount(); for (int i = 0; i < n; i++) { ModifiableComponent comp = getComponent(i); List propertyNames = comp.getPropertyNamesList(); for (Iterator j = propertyNames.iterator(); j.hasNext(); ) { Property property = comp.getProperty((CompositeName)j.next()); if (! property.isValueSet()) { List values = property.getExperimentValues(); if (values == null || values.size() == 0) { return true; } } } // end of loop over this components properties } // end of loop over all components in experiment return false; } | 9368 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9368/609bc500b3e2ce535f356ab539e69101ef5a4ca6/Experiment.java/buggy/csmart/src/org/cougaar/tools/csmart/experiment/Experiment.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
711,
984,
3653,
2297,
1435,
288,
377,
3431,
8424,
1841,
1161,
273,
1322,
1882,
14369,
1841,
5621,
987,
26570,
273,
1161,
18,
588,
29932,
682,
5621,
364,
261,
3198,
525,
273,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
711,
984,
3653,
2297,
1435,
288,
377,
3431,
8424,
1841,
1161,
273,
1322,
1882,
14369,
1841,
5621,
987,
26570,
273,
1161,
18,
588,
29932,
682,
5621,
364,
261,
3198,
525,
273,
2... |
public void merge(Section section) throws ManifestException { if (name == null && section.getName() != null || name != null && !(name.equalsIgnoreCase(section.getName()))) { throw new ManifestException("Unable to merge sections " + "with different names"); | public void merge( Section section ) throws ManifestException { if ( name == null && section.getName() != null || name != null && !( name.equalsIgnoreCase( section.getName() ) ) ) { throw new ManifestException( "Unable to merge sections " + "with different names" ); | public void merge(Section section) throws ManifestException { if (name == null && section.getName() != null || name != null && !(name.equalsIgnoreCase(section.getName()))) { throw new ManifestException("Unable to merge sections " + "with different names"); } Enumeration e = section.getAttributeKeys(); Attribute classpathAttribute = null; while (e.hasMoreElements()) { String attributeName = (String) e.nextElement(); Attribute attribute = section.getAttribute(attributeName); if (attributeName.equalsIgnoreCase(ATTRIBUTE_CLASSPATH)) { if (classpathAttribute == null) { classpathAttribute = new Attribute(); classpathAttribute.setName(ATTRIBUTE_CLASSPATH); } Enumeration cpe = attribute.getValues(); while (cpe.hasMoreElements()) { String value = (String) cpe.nextElement(); classpathAttribute.addValue(value); } } else { // the merge file always wins storeAttribute(attribute); } } if (classpathAttribute != null) { // the merge file *always* wins, even for Class-Path storeAttribute(classpathAttribute); } // add in the warnings Enumeration warnEnum = section.warnings.elements(); while (warnEnum.hasMoreElements()) { warnings.addElement(warnEnum.nextElement()); } } | 10884 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10884/8348e0b29d34f62b8f140a99598373fb0cbf7fcb/Manifest.java/clean/src/main/java/org/codehaus/plexus/archiver/jar/Manifest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
2691,
12,
5285,
2442,
13,
1216,
15443,
503,
288,
5411,
309,
261,
529,
422,
446,
597,
2442,
18,
17994,
1435,
480,
446,
7734,
747,
508,
480,
446,
7734,
597,
401,
12,
529,
18,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
918,
2691,
12,
5285,
2442,
13,
1216,
15443,
503,
288,
5411,
309,
261,
529,
422,
446,
597,
2442,
18,
17994,
1435,
480,
446,
7734,
747,
508,
480,
446,
7734,
597,
401,
12,
529,
18,
... |
(PsiArrayInitializerExpression) lastArgument; | newExpression.getArrayInitializer(); if (arrayInitializerExpression == null) { continue; } | private static void makeMethodCallsVarargs(PsiElement element) throws IncorrectOperationException { final PsiMethod method = (PsiMethod) element.getParent(); final Query<PsiReference> query = ReferencesSearch.search(method, method.getUseScope(), false); for (PsiReference reference : query) { final PsiMethodCallExpression methodCallExpression = (PsiMethodCallExpression) reference.getElement(); final PsiExpressionList argumentList = methodCallExpression.getArgumentList(); final PsiExpression[] arguments = argumentList.getExpressions(); if (arguments.length == 0) { continue; } final PsiExpression lastArgument = arguments[arguments.length - 1]; if (!(lastArgument instanceof PsiArrayInitializerExpression)) { continue; } final PsiArrayInitializerExpression arrayInitializerExpression = (PsiArrayInitializerExpression) lastArgument; final PsiExpression[] initializers = arrayInitializerExpression.getInitializers(); lastArgument.delete(); for (PsiExpression initializer : initializers) { argumentList.add(initializer); } } } | 56627 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56627/005c7bfdb0dfb0eb2f98eb932d2109661dcbd3e4/MakeMethodVarargsIntention.java/clean/plugins/IntentionPowerPak/src/com/siyeh/ipp/varargs/MakeMethodVarargsIntention.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
918,
1221,
1305,
10125,
27232,
12,
52,
7722,
1046,
930,
13,
2398,
1216,
657,
6746,
10602,
288,
3639,
727,
453,
7722,
1305,
707,
273,
261,
52,
7722,
1305,
13,
930,
18,
588,
30... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1221,
1305,
10125,
27232,
12,
52,
7722,
1046,
930,
13,
2398,
1216,
657,
6746,
10602,
288,
3639,
727,
453,
7722,
1305,
707,
273,
261,
52,
7722,
1305,
13,
930,
18,
588,
30... |
191, 191, 191, 0, 0, 191, 191, 191, 0, 191, 0, 0, 185, 185, 0, 0, 0, 0, 0, 191, 191, 0, 0, 0, 0, 0, 0, 0, 191, 191, 0, 191, 191, 191, 191, 191, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 0, 0, 191, 191, 184, 184, 184, 191, 0, 184, 184, 184, 191, 184, 0, 0, 0, 0, 0, 0, 0, 0, 0, 184, 184, 0, 0, 0, 0, 0, 0, 0, 184, 184, 0, 184, 184, 184, 184, 184, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 0, 0, 184, 184, 0, 0, 0, 184, 185, 185, 185, 0, 184, 185, 185, 185, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 185, 185, 0, 0, 0, 0, 0, 0, 0, 185, 185, 0, 185, 185, 185, 185, 185, 209, 0, 0, 0, 0, 0, 0, 0, 0, 0, 209, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 0, 0, 185, 185, 0, 209, 0, 185, 209, 0, 0, 209, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 209, 209, 209, 0, 209, 209, 0, 0, 0, 0, 0, 0, 0, 0, 0, 210, 0, 0, 0, 0, 0, 0, 0, 0, 0, 210, 0, 0, 0, 0, 0, 0, 334, 329, 0, 209, 209, 332, 330, 0, 331, 0, 333, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 210, 0, 326, 210, 325, 324, 210, 0, 0, 0, 0, 0, 0, 209, 209, 0, 0, 0, 0, 0, 210, 210, 210, | 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 185, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 191, 191, 191, 0, 0, 191, 191, 191, 0, 191, 0, 0, 185, 185, 0, 0, 0, 0, 0, 191, 191, 0, 0, 0, 0, 0, 0, 0, 191, 191, 0, 191, 191, 191, 191, 191, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 0, 0, 191, 191, 184, 184, 184, 191, 0, 184, 184, 184, 191, 184, 0, 0, 0, 0, 0, 0, 0, 0, 0, 184, 184, 0, 0, 0, 0, 0, 0, 0, 184, 184, 0, 184, 184, 184, 184, 184, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 0, 0, 184, 184, 0, 0, 0, 184, 185, 185, 185, 0, 184, 185, 185, 185, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 185, 185, 0, 0, 0, 0, 0, 0, 0, 185, 185, 0, 185, 185, 185, 185, 185, 209, 0, 0, 0, 0, 0, 0, 0, 0, 0, 209, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 0, 0, 185, 185, 0, 209, 0, 185, 209, 0, 0, 209, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 209, 209, 209, 0, 209, 209, 0, 0, 0, 0, 0, 0, 0, 0, 0, 210, 0, 0, 0, 0, 0, 0, 0, 0, 0, 210, 0, 0, 0, 0, 0, 0, 334, 329, 0, 209, 209, 332, 330, 0, 331, 0, 333, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 210, 0, 326, 210, 325, 324, 210, 0, 0, 0, 0, 0, 0, 209, 209, 0, 0, 0, 0, 0, 210, 210, 210, 0, 210, 210, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 328, 0, 0, 196, 0, 0, 0, 0, 0, 0, 0, 0, 0, 196, 0, 0, 0, 0, 0, 210, 210, 0, 0, 0, 0, 0, 0, 0, 0, 0, 327, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 196, 0, 0, 196, 0, 0, 196, 0, 0, 210, 210, 0, 0, 0, 0, 0, 0, 0, 0, 0, 196, 196, 196, 0, 196, 196, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 334, 329, 0, 0, 0, 332, 330, 0, 331, 0, 333, 0, 0, 0, 0, 196, 196, 0, 0, 0, 0, 0, 0, 326, 0, 325, 0, 0, 0, 0, 0, 0, 0, 0, 209, 209, 209, 0, 0, 209, 209, 209, 0, 209, 0, 0, 196, 196, 0, 0, 0, 0, 0, 209, 209, 0, 0, 328, 0, 0, 0, 0, 209, 209, 0, 209, 209, 209, 209, 209, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 327, 0, 0, 0, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 0, 0, 209, 209, 210, 210, 210, 209, 0, 210, 210, 210, 209, 210, 0, 0, 0, 0, 0, 0, 0, 0, | private static final short[] yyTable3() { return new short[] { 0, 0, 188, 0, 186, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 187, 187, 188, 188, 0, 0, 188, 188, 188, 188, 188, 0, 188, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 188, 188, 188, 0, 188, 188, 0, 0, 0, 0, 0, 0, 0, 0, 0, 190, 0, 0, 0, 0, 0, 0, 0, 0, 0, 190, 0, 0, 0, 0, 0, 0, 0, 0, 0, 188, 188, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 190, 190, 0, 0, 190, 190, 190, 190, 190, 0, 190, 0, 0, 0, 188, 188, 0, 0, 0, 0, 0, 190, 190, 190, 0, 190, 190, 0, 0, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 0, 0, 322, 323, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 190, 190, 0, 0, 0, 0, 0, 187, 187, 187, 0, 0, 187, 187, 187, 0, 187, 0, 212, 0, 0, 0, 0, 0, 0, 0, 187, 187, 212, 0, 0, 190, 190, 0, 0, 187, 187, 0, 187, 187, 187, 187, 187, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 212, 0, 0, 212, 0, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 187, 212, 212, 187, 187, 0, 212, 0, 187, 0, 0, 0, 0, 187, 0, 0, 0, 0, 0, 0, 0, 188, 188, 188, 0, 0, 188, 188, 188, 0, 188, 0, 0, 0, 0, 0, 212, 0, 0, 0, 188, 188, 0, 0, 0, 0, 0, 0, 0, 188, 188, 0, 188, 188, 188, 188, 188, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 212, 0, 0, 0, 0, 0, 0, 0, 0, 0, 188, 188, 188, 188, 188, 188, 188, 188, 188, 188, 188, 188, 0, 0, 188, 188, 190, 190, 190, 188, 0, 190, 190, 190, 188, 190, 0, 0, 0, 0, 0, 0, 0, 0, 0, 190, 190, 0, 0, 0, 0, 0, 0, 0, 190, 190, 0, 190, 190, 190, 190, 190, 0, 0, 0, 0, 0, 191, 0, 0, 0, 0, 0, 0, 0, 0, 0, 191, 0, 0, 0, 0, 0, 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, 190, 0, 0, 190, 190, 0, 0, 0, 190, 0, 191, 191, 0, 190, 191, 191, 191, 191, 191, 0, 191, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 191, 191, 191, 0, 191, 191, 0, 0, 0, 0, 0, 0, 212, 212, 212, 184, 0, 212, 212, 212, 0, 212, 0, 0, 0, 184, 0, 0, 0, 0, 0, 212, 212, 0, 0, 191, 191, 0, 0, 0, 212, 212, 0, 212, 212, 212, 212, 212, 0, 0, 0, 0, 0, 184, 0, 0, 184, 0, 184, 184, 184, 0, 0, 0, 0, 0, 191, 191, 0, 0, 0, 0, 0, 184, 184, 184, 212, 184, 184, 212, 212, 0, 0, 0, 0, 0, 0, 0, 212, 0, 0, 0, 185, 212, 0, 0, 0, 0, 0, 0, 0, 0, 185, 0, 0, 0, 0, 0, 184, 184, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 185, 0, 0, 185, 0, 185, 185, 185, 0, 184, 184, 0, 0, 0, 0, 0, 0, 0, 0, 0, 185, 185, 185, 0, 185, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 185, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 191, 191, 191, 0, 0, 191, 191, 191, 0, 191, 0, 0, 185, 185, 0, 0, 0, 0, 0, 191, 191, 0, 0, 0, 0, 0, 0, 0, 191, 191, 0, 191, 191, 191, 191, 191, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 191, 0, 0, 191, 191, 184, 184, 184, 191, 0, 184, 184, 184, 191, 184, 0, 0, 0, 0, 0, 0, 0, 0, 0, 184, 184, 0, 0, 0, 0, 0, 0, 0, 184, 184, 0, 184, 184, 184, 184, 184, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 184, 0, 0, 184, 184, 0, 0, 0, 184, 185, 185, 185, 0, 184, 185, 185, 185, 0, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 185, 185, 0, 0, 0, 0, 0, 0, 0, 185, 185, 0, 185, 185, 185, 185, 185, 209, 0, 0, 0, 0, 0, 0, 0, 0, 0, 209, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 185, 0, 0, 185, 185, 0, 209, 0, 185, 209, 0, 0, 209, 185, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 209, 209, 209, 0, 209, 209, 0, 0, 0, 0, 0, 0, 0, 0, 0, 210, 0, 0, 0, 0, 0, 0, 0, 0, 0, 210, 0, 0, 0, 0, 0, 0, 334, 329, 0, 209, 209, 332, 330, 0, 331, 0, 333, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 210, 0, 326, 210, 325, 324, 210, 0, 0, 0, 0, 0, 0, 209, 209, 0, 0, 0, 0, 0, 210, 210, 210, 0, 210, 210, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 328, 0, 0, 196, 0, 0, 0, 0, 0, 0, 0, 0, 0, 196, 0, 0, 0, 0, 0, 210, 210, 0, 0, 0, 0, 0, 0, 0, 0, 0, 327, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 196, 0, 0, 196, 0, 0, 196, 0, 0, 210, 210, 0, 0, 0, 0, 0, 0, 0, 0, 0, 196, 196, 196, 0, 196, 196, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 334, 329, 0, 0, 0, 332, 330, 0, 331, 0, 333, 0, 0, 0, 0, 196, 196, 0, 0, 0, 0, 0, 0, 326, 0, 325, 0, 0, 0, 0, 0, 0, 0, 0, 209, 209, 209, 0, 0, 209, 209, 209, 0, 209, 0, 0, 196, 196, 0, 0, 0, 0, 0, 209, 209, 0, 0, 328, 0, 0, 0, 0, 209, 209, 0, 209, 209, 209, 209, 209, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 327, 0, 0, 0, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 209, 0, 0, 209, 209, 210, 210, 210, 209, 0, 210, 210, 210, 209, 210, 0, 0, 0, 0, 0, 0, 0, 0, 0, 210, 210, 0, 0, 0, 0, 0, 0, 0, 210, 210, 0, 210, 210, 210, 210, 210, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 320, 321, 0, 0, 322, 323, 0, 0, 0, 0, 210, 210, 210, 210, 210, 210, 210, 210, 210, 210, 210, 210, 0, 0, 210, 210, 0, 0, 0, 210, 196, 196, 196, 0, 210, 196, 196, 196, 0, 196, 0, 194, 0, 0, 0, 0, 0, 0, 0, 196, 196, 194, 0, 0, 0, 0, 0, 0, 196, 196, 0, 196, 196, 196, 196, 196, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 194, 0, 0, 194, 0, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 196, 194, 194, 194, 0, 194, 194, 0, 196, 0, 0, 0, 0, 196, 0, 0, 195, 0, 0, 0, 0, 0, 0, 0, 0, 0, 195, 0, 0, 309, 310, 311, 312, 313, 314, 315, 194, 194, 318, 319, 0, 0, 0, 0, 322, 323, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 195, 0, 0, 195, 0, 0, 0, 0, 0, 0, 194, 194, 0, 0, 0, 0, 0, 195, 195, 195, 0, 195, 195, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 199, 0, 0, 0, 0, 0, 0, 0, 0, 0, 199, 0, 0, 0, 0, 0, 195, 195, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 199, 0, 0, 199, 0, 0, 195, 195, 0, 0, 0, 0, 0, 0, 0, 0, 0, 199, 199, 199, 0, 199, 199, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 183, 178, 0, 0, 0, 181, 179, 0, 180, 0, 182, 0, 0, 0, 0, 0, 199, 0, 0, 0, 0, 0, 0, 175, 0, 174, 0, 0, 0, 0, 0, 0, 0, 0, 0, 194, 194, 194, 0, 0, 194, 194, 194, 0, 194, 0, 0, 0, 199, 0, 0, 0, 0, 0, 194, 194, 0, 177, 0, 185, 0, 0, 0, 194, 194, 0, 194, 194, 194, 194, 194, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 0, 184, 0, 0, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 194, 0, 0, 0, 0, 195, 195, 195, 194, 0, 195, 195, 195, 194, 195, 0, 0, 0, 0, 0, 0, 0, 0, 0, 195, 195, 0, 0, 0, 0, 0, 0, 0, 195, 195, 201, 195, 195, 195, 195, 195, 0, 0, 0, 0, 201, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 195, 0, 0, 201, 0, 0, 201, 0, 195, 199, 199, 199, 0, 195, 199, 199, 199, 0, 199, 0, 201, 201, 201, 0, 201, 201, 0, 0, 199, 199, 0, 0, 0, 0, 0, 0, 0, 199, 199, 198, 199, 199, 199, 199, 199, 0, 0, 0, 0, 198, 0, 0, 0, 0, 0, 201, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 199, 0, 0, 198, 0, 0, 198, 0, 199, 0, 201, 0, 0, 199, 515, 516, 0, 0, 517, 0, 198, 198, 198, 0, 198, 198, 160, 161, 162, 163, 164, 165, 0, 166, 167, 200, 0, 168, 0, 0, 0, 169, 170, 171, 172, 200, 0, 0, 0, 0, 0, 0, 0, 0, 173, 198, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 200, 0, 0, 200, 0, 0, 0, 0, 0, 0, 0, 198, 0, 0, 0, 0, 0, 200, 200, 200, 0, 200, 200, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 200, 203, 0, 0, 0, 0, 0, 0, 0, 0, 0, 203, 0, 0, 0, 0, 0, 0, 0, 201, 201, 201, 0, 0, 201, 201, 201, 0, 201, 0, 0, 0, 200, 0, 0, 0, 0, 0, 201, 201, 0, 0, 203, 0, 0, 203, 0, 201, 201, 0, 201, 201, 201, 201, 201, 0, 0, 0, 0, 203, 203, 0, 0, 0, 203, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 201, 0, 0, 0, 0, 0, 0, 203, 201, 198, 198, 198, 0, 201, 198, 198, 198, 0, 198, 0, 0, 0, 0, 0, 0, 0, 0, 0, 198, 198, 0, 0, 0, 0, 0, 0, 0, 198, 198, 203, 198, 198, 198, 198, 198, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 198, 198, 198, 198, 198, 198, 198, 198, 198, 198, 198, 198, 0, 0, 0, 0, 200, 200, 200, 198, 0, 200, 200, 200, 198, 200, 0, 204, 0, 0, 0, 0, 0, 0, 0, 200, 200, 204, 0, 0, 0, 0, 0, 0, 200, 200, 0, 200, 200, 200, 200, 200, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 204, 0, 0, 204, 0, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 200, 204, 204, 0, 0, 0, 204, 0, 200, 0, 0, 0, 0, 200, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 203, 203, 203, 211, 0, 203, 203, 203, 0, 203, 204, 0, 0, 211, 0, 0, 0, 0, 0, 203, 203, 0, 0, 0, 0, 0, 0, 0, 203, 203, 0, 203, 203, 203, 203, 203, 0, 0, 0, 0, 0, 263, 204, 0, 211, 0, 0, 211, 0, 0, 0, 263, 0, 0, 0, 0, 0, 0, 0, 0, 0, 211, 211, 203, 203, 0, 211, 203, 203, 0, 0, 0, 0, 0, 0, 0, 203, 0, 0, 0, 205, 203, 263, 0, 0, 262, 0, 0, 0, 0, 205, 0, 0, 0, 0, 0, 211, 0, 0, 263, 263, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 205, 0, 0, 205, 0, 0, 0, 211, 0, 0, 206, 0, 0, 0, 0, 0, 0, 205, 205, 0, 206, 0, 205, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 263, 0, 0, 0, 0, 0, 206, 205, 0, 206, 0, 0, 0, 204, 204, 204, 182, 0, 204, 204, 204, 0, 204, 206, 206, 0, 182, 0, 206, 0, 0, 0, 204, 204, 0, 0, 0, 0, 0, 205, 0, 204, 204, 0, 204, 204, 204, 204, 204, 0, 0, 0, 0, 0, 183, 0, 0, 182, 206, 0, 182, 0, 0, 0, 183, 0, 0, 0, 0, 0, 0, 0, 0, 0, 182, 182, 204, 204, 0, 182, 204, 204, 0, 0, 0, 0, 0, 0, 0, 204, 206, 0, 0, 0, 204, 183, 0, 0, 183, 211, 211, 211, 0, 0, 211, 211, 211, 0, 211, 182, 0, 0, 183, 183, 0, 0, 0, 183, 211, 211, 0, 0, 0, 0, 0, 0, 0, 211, 211, 0, 211, 211, 211, 211, 211, 0, 0, 263, 263, 263, 0, 182, 263, 263, 263, 0, 263, 183, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 211, 211, 0, 0, 211, 211, 263, 263, 263, 263, 263, 0, 0, 211, 205, 205, 205, 183, 211, 205, 205, 205, 0, 205, 0, 0, 0, 0, 0, 0, 0, 0, 0, 205, 205, 0, 0, 0, 0, 0, 0, 0, 205, 205, 0, 205, 205, 205, 205, 205, 0, 263, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 206, 206, 206, 0, 0, 206, 206, 206, 0, 206, 0, 0, 205, 205, 0, 0, 205, 205, 0, 206, 206, 0, 0, 0, 0, 205, 0, 0, 206, 206, 205, 206, 206, 206, 206, 206, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 182, 182, 182, 0, 0, 182, 182, 182, 0, 182, 0, 0, 206, 206, 0, 0, 206, 206, 0, 182, 182, 0, 0, 0, 0, 206, 0, 0, 182, 182, 206, 182, 182, 182, 182, 182, 217, 0, 183, 183, 183, 0, 0, 183, 183, 183, 217, 183, 0, 0, 0, 0, 0, 0, 0, 0, 0, 183, 183, 0, 0, 0, 0, 0, 0, 0, 183, 183, 0, 183, 183, 183, 183, 183, 181, 0, 182, 217, 0, 0, 217, 182, 0, 0, 181, 0, 0, 0, 0, 0, 0, 0, 0, 0, 217, 217, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 174, 183, 181, 0, 0, 181, 183, 0, 0, 0, 174, 0, 0, 0, 0, 0, 217, 0, 0, 181, 181, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 214, 0, 174, 0, 0, 174, 0, 0, 0, 217, 214, 0, 0, 0, 0, 181, 0, 0, 0, 174, 174, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 180, 0, 0, 214, 0, 0, 214, 0, 0, 181, 180, 0, 0, 0, 0, 0, 174, 0, 0, 0, 214, 214, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 215, 0, 180, 0, 0, 180, 0, 0, 0, 174, 215, 0, 0, 0, 0, 0, 214, 0, 0, 180, 180, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 215, 0, 0, 215, 0, 0, 0, 214, 0, 0, 0, 0, 0, 180, 0, 0, 0, 215, 215, 0, 0, 0, 0, 0, 0, 0, 0, 0, 217, 217, 217, 0, 0, 217, 217, 217, 0, 217, 0, 0, 0, 0, 0, 0, 0, 180, 0, 217, 217, 0, 0, 0, 215, 0, 0, 0, 217, 217, 0, 217, 217, 217, 217, 217, 0, 0, 181, 181, 181, 0, 0, 181, 181, 181, 0, 181, 0, 0, 0, 0, 0, 0, 0, 0, 215, 181, 181, 0, 0, 0, 0, 0, 0, 0, 181, 181, 0, 181, 181, 181, 181, 181, 0, 0, 217, 174, 174, 174, 0, 217, 174, 174, 174, 0, 174, 0, 0, 0, 0, 0, 0, 0, 0, 0, 174, 174, 0, 0, 0, 0, 0, 0, 0, 174, 174, 0, 174, 174, 174, 174, 174, 0, 181, 0, 214, 214, 214, 181, 0, 214, 214, 214, 0, 214, 0, 0, 0, 0, 0, 0, 0, 0, 0, 214, 214, 0, 0, 0, 0, 0, 0, 0, 214, 214, 0, 214, 214, 214, 214, 214, 0, 174, 180, 180, 180, 0, 174, 180, 180, 180, 0, 180, 0, 0, 0, 0, 0, 0, 0, 0, 0, 180, 180, 0, 0, 0, 0, 0, 0, 0, 180, 180, 0, 180, 180, 180, 180, 180, 0, 0, 214, 215, 215, 215, 178, 214, 215, 215, 215, 0, 215, 0, 0, 0, 178, 0, 0, 0, 0, 0, 215, 215, 0, 0, 0, 0, 0, 0, 0, 215, 215, 0, 215, 215, 215, 215, 215, 0, 180, 0, 179, 0, 0, 180, 0, 178, 0, 0, 178, 0, 179, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 178, 178, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 215, 0, 0, 0, 179, 215, 0, 179, 0, 0, 0, 0, 0, 0, 176, 0, 0, 0, 0, 0, 178, 179, 179, 0, 176, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 177, 0, 178, 0, 0, 176, 179, 0, 176, 0, 177, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 176, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 173, 179, 0, 0, 177, 0, 0, 177, 0, 0, 173, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 177, 177, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 0, 0, 0, 173, 0, 0, 173, 0, 175, 0, 0, 0, 0, 0, 176, 0, 0, 0, 177, 0, 173, 173, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 175, 0, 0, 175, 0, 0, 0, 0, 0, 0, 0, 177, 0, 0, 0, 0, 173, 175, 175, 0, 0, 0, 0, 0, 0, 178, 178, 178, 0, 0, 178, 178, 178, 0, 178, 0, 0, 0, 0, 0, 0, 261, 0, 0, 178, 178, 0, 0, 173, 0, 0, 261, 175, 178, 178, 0, 178, 178, 178, 178, 178, 179, 179, 179, 0, 0, 179, 179, 179, 0, 179, 0, 0, 0, 0, 0, 0, 0, 0, 0, 179, 179, 261, 0, 175, 261, 0, 0, 0, 179, 179, 0, 179, 179, 179, 179, 179, 0, 0, 261, 261, 178, 0, 0, 0, 0, 178, 0, 0, 0, 0, 0, 176, 176, 176, 0, 0, 176, 176, 176, 0, 176, 0, 0, 0, 0, 0, 0, 0, 0, 0, 176, 176, 0, 261, 0, 0, 179, 0, 0, 176, 176, 179, 176, 176, 176, 176, 176, 177, 177, 177, 0, 0, 177, 177, 177, 0, 177, 0, 0, 0, 0, 0, 0, 0, 0, 261, 177, 177, 0, 0, 0, 0, 0, 0, 0, 177, 177, 0, 177, 177, 177, 177, 177, 0, 173, 173, 173, 176, 0, 173, 173, 173, 176, 173, 0, 0, 0, 0, 0, 0, 172, 0, 0, 173, 173, 0, 0, 0, 0, 0, 172, 0, 173, 173, 0, 173, 173, 173, 173, 173, 175, 175, 175, 177, 0, 175, 175, 175, 177, 175, 0, 0, 0, 0, 0, 0, 262, 0, 0, 175, 175, 172, 0, 0, 172, 0, 262, 0, 175, 175, 0, 175, 175, 175, 175, 175, 0, 0, 172, 172, 173, 0, 0, 0, 0, 173, 334, 329, 0, 0, 0, 332, 330, 0, 331, 0, 333, 262, 0, 0, 262, 0, 0, 0, 0, 0, 0, 0, 0, 326, 0, 325, 0, 172, 262, 262, 175, 0, 0, 0, 0, 175, 261, 261, 261, 318, 0, 261, 261, 261, 0, 261, 0, 0, 0, 318, 0, 0, 0, 0, 0, 261, 261, 328, 0, 172, 0, 0, 0, 262, 261, 261, 0, 261, 261, 261, 261, 261, 0, 0, 0, 0, 318, 318, 0, 0, 318, 318, 318, 318, 318, 318, 318, 327, 0, 0, 0, 0, 0, 0, 0, 262, 0, 318, 318, 318, 0, 318, 318, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 261, 172, 0, 0, 0, 0, 0, 0, 0, 0, 0, 172, 319, 318, 0, 0, 318, 0, 0, 0, 0, 0, 319, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 172, 0, 0, 217, 318, 318, 0, 319, 319, 0, 0, 319, 319, 319, 319, 319, 319, 319, 172, 0, 0, 0, 0, 0, 0, 0, 0, 0, 319, 319, 319, 0, 319, 319, 0, 0, 0, 172, 172, 172, 0, 0, 172, 172, 172, 0, 172, 0, 0, 0, 0, 0, 0, 0, 0, 0, 172, 172, 0, 0, 0, 319, 0, 0, 319, 172, 172, 0, 172, 172, 172, 172, 0, 262, 262, 262, 0, 0, 262, 262, 262, 0, 262, 0, 172, 0, 0, 0, 0, 0, 0, 0, 262, 262, 319, 319, 0, 0, 0, 0, 0, 262, 262, 0, 262, 262, 262, 262, 262, 0, 0, 0, 0, 172, 0, 0, 0, 0, 172, 0, 0, 0, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319, 0, 0, 0, 0, 322, 323, 0, 0, 0, 318, 318, 318, 0, 0, 318, 318, 318, 0, 318, 0, 0, 262, 0, 0, 0, 0, 0, 0, 318, 0, 0, 0, 0, 0, 0, 0, 0, 318, 318, 0, 318, 318, 318, 318, 318, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, 318, 0, 0, 318, 318, 318, 0, 0, 318, 0, 0, 172, 172, 172, 0, 0, 0, 172, 172, 0, 172, 0, 319, 319, 319, 0, 0, 319, 319, 319, 0, 319, 0, 0, 0, 0, 0, 0, 0, 172, 172, 319, 172, 172, 172, 172, 0, 0, 0, 0, 319, 319, 0, 319, 319, 319, 319, 319, 0, 283, 0, 0, 0, 0, 0, 0, 0, 0, 0, 283, 0, 0, 0, 0, 0, 0, 0, 0, 319, 319, 319, 319, 319, 319, 319, 319, 319, 319, 319, 319, 319, 0, 0, 319, 319, 319, 283, 283, 319, 0, 283, 283, 283, 283, 283, 283, 283, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 283, 283, 283, 0, 283, 283, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 334, 329, 0, 0, 0, 332, 330, 0, 331, 423, 333, 0, 0, 0, 0, 283, 0, 0, 283, 423, 0, 0, 0, 326, 0, 325, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 423, 423, 283, 283, 423, 423, 423, 74, 423, 423, 423, 328, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 423, 423, 82, 423, 423, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 273, 0, 327, 0, 0, 0, 0, 0, 0, 0, 273, 0, 0, 0, 0, 423, 0, 40, 423, 0, 0, 0, 0, 0, 0, 0, 0, 40, 0, 0, 0, 0, 0, 0, 0, 0, 0, 273, 273, 0, 0, 273, 273, 273, 81, 273, 273, 273, 423, 423, 0, 0, 0, 0, 0, 0, 0, 0, 40, 273, 273, 89, 273, 273, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 40, 40, 0, 0, 0, 0, 0, 0, 0, 0, 54, 0, 0, 0, 0, 0, 273, 0, 0, 273, 54, 0, 0, 0, 0, 0, 283, 283, 283, 0, 0, 283, 283, 283, 0, 283, 0, 0, 0, 0, 0, 0, 0, 0, 0, 283, 0, 0, 0, 273, 273, 54, 0, 0, 283, 283, 0, 283, 283, 283, 283, 283, 0, 0, 0, 0, 0, 40, 54, 54, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, 283, 0, 0, 283, 283, 283, 42, 0, 283, 54, 0, 0, 0, 0, 0, 0, 42, 423, 423, 423, 0, 0, 0, 423, 423, 0, 423, 309, 310, 311, 312, 313, 314, 315, 316, 0, 318, 319, 0, 0, 0, 54, 322, 323, 0, 423, 423, 42, 423, 423, 423, 423, 423, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 42, 42, 0, 0, 0, 0, 0, 0, 0, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 423, 0, 0, 423, 423, 423, 0, 424, 273, 273, 273, 0, 0, 0, 273, 273, 0, 273, 0, 0, 0, 0, 0, 0, 0, 40, 40, 40, 0, 0, 40, 40, 40, 0, 40, 0, 273, 273, 0, 273, 273, 273, 273, 273, 40, 279, 42, 0, 0, 0, 0, 0, 0, 40, 40, 279, 40, 40, 40, 40, 40, 0, 0, 0, 273, 273, 273, 273, 273, 273, 273, 273, 273, 273, 273, 273, 273, 0, 0, 273, 273, 273, 279, 279, 0, 0, 279, 279, 279, 80, 279, 279, 279, 54, 54, 54, 0, 0, 54, 54, 54, 0, 54, 0, 279, 279, 88, 279, 279, 0, 0, 0, 54, 54, 0, 0, 0, 0, 0, 280, 0, 54, 54, 0, 54, 54, 54, 54, 54, 280, 0, 0, 0, 0, 0, 0, 279, 0, 0, 279, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 280, 280, 0, 0, 280, 280, 280, 75, 280, 280, 280, 0, 0, 279, 279, 0, 0, 0, 0, 0, 0, 0, 280, 280, 83, 280, 280, 42, 42, 42, 0, 0, 42, 42, 42, 0, 42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 42, 0, 0, 0, 0, 0, 0, 0, 280, 42, 42, 280, 42, 42, 42, 42, 42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 58, 0, 0, 0, 0, 0, 4, 5, 6, 0, 8, 280, 280, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 96, 97, 17, 18, 0, 0, 0, 0, 98, 99, 100, 22, 23, 24, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 31, 32, 102, 34, 35, 36, 103, 38, 39, 40, 0, 41, 42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 279, 279, 279, 0, 0, 0, 279, 279, 0, 279, 105, 0, 0, 106, 47, 48, 49, 0, 59, 0, 51, 52, 53, 54, 55, 56, 58, 0, 279, 279, 107, 279, 279, 279, 279, 279, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 279, 279, 279, 279, 279, 279, 279, 279, 279, 279, 279, 279, 279, 0, 0, 279, 279, 279, 280, 280, 280, 0, 0, 0, 280, 280, 0, 280, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 280, 280, 0, 280, 280, 280, 280, 280, 0, 0, 0, 0, 0, 0, 0, 0, 0, 59, 0, 0, 0, 0, 0, 0, 0, 0, 58, 0, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 280, 0, 0, 280, 280, 280, 3, 4, 5, 6, 7, 8, 396, 0, 0, 9, 10, 0, 0, 0, 11, 0, 12, 13, 14, 15, 16, 17, 18, 0, }; } | 48072 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48072/f5c9a1ebd775712f2dc086acfce1a14a123ec632/YyTables.java/clean/src/org/jruby/parser/YyTables.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
3238,
760,
727,
3025,
8526,
9016,
1388,
23,
1435,
288,
1377,
327,
394,
3025,
8526,
288,
5411,
374,
16,
565,
374,
16,
225,
404,
5482,
16,
565,
374,
16,
225,
404,
5292,
16,
565,
374,
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,
565,
3238,
760,
727,
3025,
8526,
9016,
1388,
23,
1435,
288,
1377,
327,
394,
3025,
8526,
288,
5411,
374,
16,
565,
374,
16,
225,
404,
5482,
16,
565,
374,
16,
225,
404,
5292,
16,
565,
374,
16... |
typeAndRun(SWT.ESC); | type(SWT.ESC); | public void testExitOnEsc() throws BadLocationException, JavaModelException, CoreException { use14(); setCaret(BODY_OFFSET); type('('); type('('); type('('); type('('); typeAndRun(SWT.ESC); assertEquals("(((())))", fDocument.get(BODY_OFFSET, 8)); assertEquals(BODY_OFFSET + 4, getCaret()); assertFalse(LinkedModeModel.hasInstalledModel(fDocument)); } | 9698 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/9698/376240f96b8d520e0b161b6f94801361283f351a/BracketInserterTest.java/clean/org.eclipse.jdt.text.tests/src/org/eclipse/jdt/text/tests/BracketInserterTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
6767,
1398,
6412,
1435,
1216,
6107,
2735,
503,
16,
5110,
1488,
503,
16,
30015,
288,
202,
202,
1202,
3461,
5621,
202,
202,
542,
39,
20731,
12,
16691,
67,
11271,
1769,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
6767,
1398,
6412,
1435,
1216,
6107,
2735,
503,
16,
5110,
1488,
503,
16,
30015,
288,
202,
202,
1202,
3461,
5621,
202,
202,
542,
39,
20731,
12,
16691,
67,
11271,
1769,
... |
return FuzzyBoolean.fromBoolean(signature.matches(thisClass,member)); | return FuzzyBoolean.fromBoolean(signature.matches(targetClass,member)); | public FuzzyBoolean matchesStatically(String joinpointKind, java.lang.reflect.Member member, Class thisClass, Class targetClass, java.lang.reflect.Member withinCode) { if (joinpointKind.equals(kind.getName())) { return FuzzyBoolean.fromBoolean(signature.matches(thisClass,member)); } return FuzzyBoolean.NO; } | 53148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53148/63e5dc2ba8b7bad4ceb4c472f4d289ef9b446761/KindedPointcut.java/clean/weaver/src/org/aspectj/weaver/patterns/KindedPointcut.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
478,
13903,
5507,
1885,
5788,
1230,
12,
780,
1233,
1153,
5677,
16,
1082,
202,
6290,
18,
4936,
18,
1734,
1582,
18,
4419,
3140,
16,
1659,
333,
797,
16,
1082,
202,
797,
14563,
16... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
478,
13903,
5507,
1885,
5788,
1230,
12,
780,
1233,
1153,
5677,
16,
1082,
202,
6290,
18,
4936,
18,
1734,
1582,
18,
4419,
3140,
16,
1659,
333,
797,
16,
1082,
202,
797,
14563,
16... |
if (bIsAmPM == true) | if (m_bIsAmPM == true) | private String mapTime(String LDMLPattern) { boolean bIsAmPM = false; //do AM/PM first as the Ms in AM/PM can be ambiguous if (translate(LDMLPattern, "AM/PM")) { LDMLPattern = LDMLPattern.replaceAll("AM/PM", "a"); bIsAmPM = true; } if (m_type.compareTo(OOConstants.FEU_DATE_TIME)==0) { LDMLPattern = doMinutes(LDMLPattern); } else if (m_type.compareTo(OOConstants.FEU_TIME)==0) { if (translate(LDMLPattern, "M")) { //takes care of M and MM LDMLPattern = LDMLPattern.replace('M', 'm'); } } //hours if (translate(LDMLPattern, "h")) { //takes care of h and hh if (bIsAmPM == true) LDMLPattern = LDMLPattern.replace('h', 'K'); else LDMLPattern = LDMLPattern.replace('h', 'H'); } else if (translate(LDMLPattern, "H")) { //takes care of H and HH where AM/PM is present, apttern is same if not present if (bIsAmPM == true) LDMLPattern = LDMLPattern.replace('H', 'K'); } //seconds if (translate(LDMLPattern, "S")) { //takes care of S and SS LDMLPattern = LDMLPattern.replace('S', 's'); } //milliseconds if (translate(LDMLPattern, "0")) { //takes care of 0, 00, 000 etc LDMLPattern = LDMLPattern.replace('0', 'S'); } return LDMLPattern; } | 27800 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/27800/6c5e06f4becefa8ace1617808703b643a6d148ca/OOToLDMLPattern.java/buggy/tools/java/org/unicode/cldr/ooo/OOToLDMLPattern.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
514,
852,
950,
12,
780,
28083,
1495,
3234,
13,
565,
288,
3639,
1250,
24236,
9864,
12728,
273,
629,
31,
3639,
368,
2896,
20653,
19,
12728,
1122,
487,
326,
29724,
316,
20653,
19,
1272... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
514,
852,
950,
12,
780,
28083,
1495,
3234,
13,
565,
288,
3639,
1250,
24236,
9864,
12728,
273,
629,
31,
3639,
368,
2896,
20653,
19,
12728,
1122,
487,
326,
29724,
316,
20653,
19,
1272... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.