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 |
|---|---|---|---|---|---|---|
Set<Person> elements = super.buildSet(); Collection<Attends> attendss = this.getExecutionCourse().getAttends(); Collection<Person> persons = CollectionUtils.collect(attendss, new AttendPersonTransformer()); elements.addAll(persons); return super.freezeSet(elements); | return super.freezeSet(new HashSet<Person>(CollectionUtils.collect(getExecutionCourse() .getAttends(), new AttendPersonTransformer()))); | public Set<Person> getElements() { Set<Person> elements = super.buildSet(); Collection<Attends> attendss = this.getExecutionCourse().getAttends(); Collection<Person> persons = CollectionUtils.collect(attendss, new AttendPersonTransformer()); elements.addAll(persons); return super.freezeSet(elements); } | 2645 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2645/baab988250de1b59ced42d4dea5b63478c339d5c/ExecutionCourseStudentsGroup.java/buggy/src/net/sourceforge/fenixedu/domain/accessControl/ExecutionCourseStudentsGroup.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1000,
32,
8346,
34,
8886,
1435,
288,
202,
694,
32,
8346,
34,
2186,
273,
2240,
18,
3510,
694,
5621,
202,
2532,
32,
3075,
5839,
34,
2403,
409,
1049,
273,
333,
18,
588,
3210,
39,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1000,
32,
8346,
34,
8886,
1435,
288,
202,
694,
32,
8346,
34,
2186,
273,
2240,
18,
3510,
694,
5621,
202,
2532,
32,
3075,
5839,
34,
2403,
409,
1049,
273,
333,
18,
588,
3210,
39,
3... |
numericClass = RubyNumeric.createNumericClass(runtime); | numericClass = new NumericMetaClass(runtime); | public RubyClass getNumericClass() { if (numericClass == null) { numericClass = RubyNumeric.createNumericClass(runtime); } return numericClass; } | 48300 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48300/803c66ee682936beecc8a43fe2cfc90fe5645b22/RubyClasses.java/buggy/src/org/jruby/RubyClasses.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
797,
336,
9902,
797,
1435,
288,
3639,
309,
261,
5246,
797,
422,
446,
13,
288,
5411,
6389,
797,
273,
394,
16980,
2781,
797,
12,
9448,
1769,
3639,
289,
3639,
327,
6389,
797,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
19817,
797,
336,
9902,
797,
1435,
288,
3639,
309,
261,
5246,
797,
422,
446,
13,
288,
5411,
6389,
797,
273,
394,
16980,
2781,
797,
12,
9448,
1769,
3639,
289,
3639,
327,
6389,
797,
... |
public String ReceiveString(int maxsize) throws SQLException { return ReceiveString(maxsize, null); } | public String ReceiveString(int maxsiz) throws SQLException { return ReceiveString(maxsiz, null); } | public String ReceiveString(int maxsize) throws SQLException { return ReceiveString(maxsize, null); } | 45672 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45672/5383b5d8ed6da5c90bcbdb63401b7d1d75db563d/PG_Stream.java/buggy/src/interfaces/jdbc/org/postgresql/PG_Stream.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
17046,
780,
12,
474,
22959,
13,
1216,
6483,
288,
3639,
327,
17046,
780,
12,
1896,
1467,
16,
446,
1769,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
514,
17046,
780,
12,
474,
22959,
13,
1216,
6483,
288,
3639,
327,
17046,
780,
12,
1896,
1467,
16,
446,
1769,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
if (m_courses[i].getId().equals(courseId)) | Course c = (Course)m_courses.get(i); if (c.getId().equals(courseId)) | public Course getCourse(String courseId) { for (int i = 0; i < m_courses.length; i++) { if (m_courses[i].getId().equals(courseId)) { return m_courses[i]; } } return null; } | 2021 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2021/45eecea5b069ca75037a71c377a75334b708b91d/SampleCourseManagementProvider.java/clean/site-manage/site-manage-impl/impl/src/java/org/sakaiproject/site/impl/SampleCourseManagementProvider.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
385,
3117,
1927,
3117,
12,
780,
4362,
548,
13,
202,
95,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
312,
67,
15804,
18,
2469,
31,
277,
27245,
202,
202,
95,
1082,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
385,
3117,
1927,
3117,
12,
780,
4362,
548,
13,
202,
95,
202,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
312,
67,
15804,
18,
2469,
31,
277,
27245,
202,
202,
95,
1082,
... |
if( actualParameterList[i].value instanceof byte[] ) | if (actualParameterList[i].value instanceof byte[]) | private synchronized void executeProcedureInternal( String procedureName, ParameterListItem[] formalParameterList, ParameterListItem[] actualParameterList, TdsStatement stmt, SQLWarningChain wChain, int timeout, boolean noMetaData) throws java.sql.SQLException, net.sourceforge.jtds.jdbc.TdsException, java.io.IOException { // SAfe We need to check if all cancel requests were processed and wait // for any outstanding cancel. It could happen that we sent the // CANCEL after the server sent us all the data, so the answer is // going to come in a packet of its own. while( cancelController.outstandingCancels() > 0 ) { waitForDataOrTimeout(wChain, timeout); // @todo Make sure the statement/resultset are not left in an inconsistent state. processSubPacket(); } // A stored procedure has a packet type of 0x03 in the header packet. // for non-image date the packets consists of // offset length desc. // 0 1 The length of the name of the stored proc // 1 N1 The name of the stored proc // N1 + 1 2 unknown (filled with zeros?) // N1 + 3 2 unknown prefix for param 1 (zero filled?) // N1 + 5 1 datatype for param 1 // N1 + 6 1 max length of param 1 // N1 + 7 N2 parameter 1 data // ... // // For image data (datatype 0x22) the packet consists of // 0 1 The length of the name of the stored proc // 1 N1 The name of the stored proc // N1 + 1 2 unknown (filled with zeros?) // N1 + 3 2 unknown prefix for param 1 (zero filled?) // N1 + 5 1 datatype for param 1 // N1 + 6 4 length of param 1 // N1 + 10 4 length of param 1 (duplicated?) // N1 + 7 N2 parameter 1 data // ... checkMaxRows(stmt); int i; try { // SAfe We must not do this here, if an exception is thrown before // the packet is actually sent, we will deadlock in skipToEnd // with nothing to read. // moreResults = true; // Start sending the procedure execute packet. comm.startPacket(TdsComm.PROC); if (tdsVer == Tds.TDS70) { comm.appendTdsShort((short) (procedureName.length())); comm.appendChars(procedureName); } else { byte[] nameBytes = encoder.getBytes(procedureName); comm.appendByte((byte) nameBytes.length); comm.appendBytes(nameBytes, nameBytes.length, (byte) 0); } // SAfe I think if this is set to 2 it means "don't return column // information" (useful for scrollable statements, to reduce // the amount of data passed around). comm.appendShort((short) (noMetaData ? 512 : 0)); // Now handle the parameters for( i=0; i<formalParameterList.length; i++ ) { // SAfe We could try using actualParameterList here, instead // of formalParameterList. If it works (although it // shouldn't) it will solve a lot of problems. byte nativeType = cvtJdbcTypeToNativeType(formalParameterList[i].type); comm.appendByte((byte) 0); if (actualParameterList[i].isOutput) { comm.appendByte((byte)1); if (nativeType == SYBBIT && actualParameterList[i].value == null) { actualParameterList[i].value = Boolean.FALSE; } } else { comm.appendByte((byte) 0); } if (actualParameterList[i].value == null && (nativeType == SYBINT1 || nativeType == SYBINT2 || nativeType == SYBINT4)) { nativeType = SYBINTN; } switch (nativeType) { case SYBCHAR: { String val; try { val = (String)actualParameterList[i].value; } catch (ClassCastException e) { if( actualParameterList[i].value instanceof Boolean ) val = ((Boolean)actualParameterList[i].value).booleanValue() ? "1" : "0"; else val = actualParameterList[i].value.toString(); } if( tdsVer<TDS70 && val!=null && val.length()==0 ) val = " "; int len = val != null ? val.length() : 0; int max = formalParameterList[i].maxLength; // MJH - Do not use the formalType from the actual parameters as // this will be null where a cached stored procedure is reused by a // different PreparedStatement from the one that created it in the fist // place. Use the formalParameter data instead. // //if (actualParameterList[i].formalType != null && // actualParameterList[i].formalType.startsWith("n")) { // if( formalParameterList[i].formalType != null && formalParameterList[i].formalType.startsWith("n") ) { /* * This is a Unicode column, save to assume TDS 7.0 */ if (max > 4000) { comm.appendByte(SYBNTEXT); comm.appendTdsInt(max * 2); if (val == null) { comm.appendTdsInt(0xFFFFFFFF); } else { comm.appendTdsInt(len * 2); comm.appendChars(val); } } else { comm.appendByte((byte) (SYBNVARCHAR | 0x80)); comm.appendTdsShort((short) (max * 2)); if (val == null) { comm.appendTdsShort((short) 0xFFFF); } else { // MJH - Trap silent truncation problem if( val.length() > 4000 ) throw new java.io.IOException("Field too long"); comm.appendTdsShort((short) (len * 2)); comm.appendChars(val); } } } else { /* * Either VARCHAR or TEXT, TEXT can not happen * with TDS 7.0 as we would always use NTEXT there */ if (tdsVer != TDS70 && max > 255) { // TEXT comm.appendByte(SYBTEXT); if( actualParameterList[i].value instanceof byte[] ) sendSybImage((byte[]) actualParameterList[i].value); else sendSybImage(encoder.getBytes(val)); } else { // VARCHAR sendSybChar(val, formalParameterList[i].maxLength); } } break; } case SYBINTN: comm.appendByte(SYBINTN); comm.appendByte((byte)4); // maximum length of the field, if (actualParameterList[i].value == null) { comm.appendByte((byte)0); // actual length } else { comm.appendByte((byte)4); // actual length comm.appendTdsInt(((Number)(actualParameterList[i].value)).intValue()); } break; case SYBINT4: comm.appendByte(SYBINT4); comm.appendTdsInt(((Number)(actualParameterList[i].value)).intValue()); break; case SYBINT2: comm.appendByte(SYBINT2); comm.appendTdsShort(((Number)(actualParameterList[i].value)).shortValue()); break; case SYBINT1: comm.appendByte(SYBINT1); comm.appendByte(((Number)(actualParameterList[i].value)).byteValue()); break; case SYBFLT8: case SYBFLTN: { if (actualParameterList[i].value == null) { comm.appendByte(SYBFLTN); comm.appendByte((byte)8); comm.appendByte((byte)0); } else { Number n = (Number)(actualParameterList[i].value); Double d = new Double(n.doubleValue()); comm.appendByte(SYBFLT8); comm.appendFlt8(d); } break; } case SYBDATETIMN: { writeDatetimeValue(actualParameterList[i].value, SYBDATETIMN); break; } case SYBIMAGE: { comm.appendByte(nativeType); sendSybImage((byte[]) actualParameterList[i].value); break; } case SYBTEXT: { comm.appendByte(SYBTEXT); sendSybImage(encoder.getBytes((String) actualParameterList[i]. value)); break; } case SYBBIT: case SYBBITN: { if (actualParameterList[i].value == null) { comm.appendByte(SYBBITN); comm.appendByte((byte)1); comm.appendByte((byte)0); } else { comm.appendByte(SYBBIT); if( actualParameterList[i].value.equals(Boolean.TRUE) ) comm.appendByte((byte)1); else comm.appendByte((byte)0); } break; } case SYBNUMERIC: case SYBDECIMAL: { writeDecimalValue(nativeType, actualParameterList[i].value, 0, -1); break; } case SYBBINARY: case SYBVARBINARY: { byte[] value = (byte[])actualParameterList[i].value; int maxLength = formalParameterList[i].maxLength; if (value == null) { comm.appendByte(SYBVARBINARY); comm.appendByte((byte)(maxLength)); comm.appendByte((byte)0); } else { if (value.length > 255) { if (tdsVer != TDS70) { throw new java.io.IOException("Field too long"); } comm.appendByte(SYBBIGVARBINARY); if (maxLength < 0 || maxLength > 8000) { comm.appendTdsShort((short)8000); } else comm.appendTdsShort((short)maxLength); comm.appendTdsShort((short)(value.length)); } else { comm.appendByte(SYBVARBINARY); comm.appendByte((byte)(maxLength)); comm.appendByte((byte)(value.length)); } comm.appendBytes(value); } break; } case SYBVOID: case SYBVARCHAR: case SYBDATETIME4: case SYBREAL: case SYBMONEY: case SYBDATETIME: case SYBMONEYN: case SYBMONEY4: default: { throw new SQLException("Not implemented for nativeType 0x" + Integer.toHexString(nativeType)); } } } // mark that we are performing a query cancelController.setQueryInProgressFlag(); moreResults = true; comm.sendPacket(); waitForDataOrTimeout(wChain, timeout); } catch (java.io.IOException e) { throw new SQLException("Network error- " + e.getMessage()); } finally { comm.packetType = 0; } } | 5753 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5753/36d7d34eb620f32e386322a293eaf58cf253a3a6/Tds.java/buggy/src/main/net/sourceforge/jtds/jdbc/Tds.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
3852,
918,
1836,
17213,
3061,
12,
5411,
514,
12131,
461,
16,
5411,
5498,
13575,
8526,
25739,
1662,
682,
16,
5411,
5498,
13575,
8526,
3214,
1662,
682,
16,
5411,
399,
2377,
3406,
3480,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3852,
918,
1836,
17213,
3061,
12,
5411,
514,
12131,
461,
16,
5411,
5498,
13575,
8526,
25739,
1662,
682,
16,
5411,
5498,
13575,
8526,
3214,
1662,
682,
16,
5411,
399,
2377,
3406,
3480,
... |
if(head instanceof ZSuperNode || head instanceof SuperNode) { } else if (head instanceof VCallNode || head instanceof FCallNode) { } else if (head instanceof CallNode) { } else if (head instanceof Match2Node || head instanceof Match3Node) { return "method"; } else if (head instanceof YieldNode) { return "yield"; } else if (head instanceof SelfNode) { return "self"; } else if (head instanceof NilNode) { return "nil"; } else if (head instanceof TrueNode) { return "true"; } else if (head instanceof FalseNode) { return "false"; } else if (head instanceof AssignableNode || head instanceof AttrSetNode || head instanceof OpAsgn1Node || head instanceof OpAsgn2Node) { return "assignment"; } else if (head instanceof LVarNode) { return "local-variable"; } else if (head instanceof DVarNode) { return "local-variable(in-block)"; } else if (head instanceof GVarNode) { return "global-variable"; } else if (head instanceof IVarNode) { return "instance-variable"; } else if (head instanceof ConstNode) { return "constant"; } else if (head instanceof CVarNode) { return "class variable"; } else if (head instanceof CVar2Node) { } else if (head instanceof Colon2Node) { | public String getDefined() { Node head = getHeadNode(); if(head instanceof ZSuperNode || head instanceof SuperNode) { //if (ruby_frame->last_func == 0) return 0; // else if (ruby_frame->last_class == 0) return 0; // else if (rb_method_boundp(RCLASS(ruby_frame->last_class)->super, // ruby_frame->last_func, 0)) { // if (nd_type(node) == NODE_SUPER) { // return arg_defined(self, node->nd_args, buf, "super"); // } // return "super"; // } // break; } else if (head instanceof VCallNode || head instanceof FCallNode) { } else if (head instanceof CallNode) { } else if (head instanceof Match2Node || head instanceof Match3Node) { return "method"; } else if (head instanceof YieldNode) { //if block given, TODO----FIXME return "yield"; } else if (head instanceof SelfNode) { return "self"; } else if (head instanceof NilNode) { return "nil"; } else if (head instanceof TrueNode) { return "true"; } else if (head instanceof FalseNode) { return "false"; } else if (head instanceof AssignableNode || head instanceof AttrSetNode || head instanceof OpAsgn1Node || head instanceof OpAsgn2Node) { return "assignment"; } else if (head instanceof LVarNode) { return "local-variable"; } else if (head instanceof DVarNode) { return "local-variable(in-block)"; } else if (head instanceof GVarNode) { //FIXME...need to first check that it's defined!!! // if (rb_gvar_defined(node->nd_entry)) { return "global-variable"; } else if (head instanceof IVarNode) { //FIXME...need to first check that it's defined!!! // if (rb_ivar_defined(self, node->nd_vid)) { return "instance-variable"; } else if (head instanceof ConstNode) { // FIXME if(constant is defined) return "constant"; } else if (head instanceof CVarNode) { // FIXME!!!! //if (NIL_P(ruby_cbase)) { //if (rb_cvar_defined(CLASS_OF(self), node->nd_vid)) { //return "class variable"; //} //break; //} //if (!FL_TEST(ruby_cbase, FL_SINGLETON)) { //if (rb_cvar_defined(ruby_cbase, node->nd_vid)) { //return "class variable"; //} //break; //} //self = rb_iv_get(ruby_cbase, "__attached__"); return "class variable"; } else if (head instanceof CVar2Node) { // FIXME!!!! //if (rb_cvar_defined(rb_cvar_singleton(self), node->nd_vid)) { //return "class variable"; //} } else if (head instanceof Colon2Node) { //FIXME!!!!! //PUSH_TAG(PROT_NONE); //if ((state = EXEC_TAG()) == 0) { //val = rb_eval(self, node->nd_head); //} //POP_TAG(); //if (state) { //ruby_errinfo = Qnil; //return 0; //} //else { //switch (TYPE(val)) { //case T_CLASS: //case T_MODULE: //if (rb_const_defined_at(val, node->nd_mid)) //return "constant"; //default: //if (rb_method_boundp(val, node->nd_mid, 1)) { //return "method"; //} //} //} //break; return null; } else if (head instanceof NthRefNode) { //FIXME!! //if (RTEST(rb_reg_nth_defined(node->nd_nth, MATCH_DATA))) { //sprintf(buf, "$%d", node->nd_nth); //return buf; //} //break; return null; } else if (head instanceof BackRefNode) { //FIXME!! //if (RTEST(rb_reg_nth_defined(0, MATCH_DATA))) { //sprintf(buf, "$%c", node->nd_nth); //return buf; //} //break; return null; } else { //FIXME!! //default: //PUSH_TAG(PROT_NONE); //if ((state = EXEC_TAG()) == 0) { //rb_eval(self, node); //} //POP_TAG(); //if (!state) { //return "expression"; //} //ruby_errinfo = Qnil; //break; } return null; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/6f48980923c4b06bac2890165c858310895f9a14/DefinedNode.java/clean/org/jruby/nodes/DefinedNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1377,
1071,
514,
336,
8116,
1435,
288,
3639,
2029,
910,
273,
336,
1414,
907,
5621,
3639,
309,
12,
1978,
1276,
2285,
8051,
907,
747,
910,
1276,
14845,
907,
13,
288,
202,
202,
759,
430,
261,
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,
1377,
1071,
514,
336,
8116,
1435,
288,
3639,
2029,
910,
273,
336,
1414,
907,
5621,
3639,
309,
12,
1978,
1276,
2285,
8051,
907,
747,
910,
1276,
14845,
907,
13,
288,
202,
202,
759,
430,
261,
2... | |
if ( _cnt99>=1 ) { break _loop99; } else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());} | if ( _cnt1008>=1 ) { break _loop1008; } else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());} | public final void mINT(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException { int _ttype; Token _token=null; int _begin=text.length(); _ttype = INT; int _saveIndex; { int _cnt99=0; _loop99: do { if (((LA(1) >= '0' && LA(1) <= '9'))) { mDIGIT(false); } else { if ( _cnt99>=1 ) { break _loop99; } else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());} } _cnt99++; } while (true); } { _loop103: do { if ((LA(1)=='.')) { match('.'); { int _cnt102=0; _loop102: do { if (((LA(1) >= '0' && LA(1) <= '9'))) { mDIGIT(false); } else { if ( _cnt102>=1 ) { break _loop102; } else {throw new NoViableAltForCharException((char)LA(1), getFilename(), getLine(), getColumn());} } _cnt102++; } while (true); } } else { break _loop103; } } while (true); } if ( _createToken && _token==null && _ttype!=Token.SKIP ) { _token = makeToken(_ttype); _token.setText(new String(text.getBuffer(), _begin, text.length()-_begin)); } _returnToken = _token; } | 2909 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/2909/1c0cc42431436631d1b2e9ea8af63bb6dd883496/XPathLexer.java/buggy/src/org/exist/parser/XPathLexer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
312,
3217,
12,
6494,
389,
2640,
1345,
13,
1216,
9539,
16,
3703,
1228,
503,
16,
3155,
1228,
503,
288,
202,
202,
474,
389,
88,
723,
31,
3155,
389,
2316,
33,
2011,
31... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
312,
3217,
12,
6494,
389,
2640,
1345,
13,
1216,
9539,
16,
3703,
1228,
503,
16,
3155,
1228,
503,
288,
202,
202,
474,
389,
88,
723,
31,
3155,
389,
2316,
33,
2011,
31... |
Category log = ThreadCategory.getInstance(Manager.class); | private static Authenticator getAuthenticator() { ServiceConfigFactory sfact = null; try { ServiceConfigFactory.init(); sfact = ServiceConfigFactory.getInstance(); } catch (Throwable t) { throw new UndeclaredThrowableException(t); } // allocate some storage locations Service[] services = sfact.getServices(); Category log = ThreadCategory.getInstance(Manager.class); Service service = null; for (int i = 0; i < services.length; i++) { if (services[i].getName().equals(":Name=HttpAdaptorMgmt")) { service = services[i]; break; } } if (service == null) { // Didn't find the service we were looking for return null; } org.opennms.netmgt.config.service.Attribute[] attribs = service.getAttribute(); if (attribs == null) { // the AuthenticationMethod is not set, so no authentication return null; } boolean usingBasic = false; for (int j = 0; j < attribs.length; j++) { if (attribs[j].getName().equals("AuthenticationMethod")) { if (!attribs[j].getValue().getContent().equals("basic")) { log.error("AuthenticationMethod is \"" + attribs[j].getValue() + "\", but only \"basic\" is supported"); return null; } usingBasic = true; break; } } if (!usingBasic) { // AuthenticationMethod is not set to basic, so no authentication return null; } String username = null; String password = null; Invoke[] invokes = service.getInvoke(); for (int j = 0; invokes != null && j < invokes.length; j++) { if (invokes[j].getMethod().equals("addAuthorization")) { Argument[] args = invokes[j].getArgument(); if (args != null && args.length == 2 && args[0].getContent().equals("manager")) { username = args[0].getContent(); password = args[1].getContent(); break; } } } if (username == null || password == null) { // Didn't find a username or password return null; } final String username_f = username; final String password_f = password; return new Authenticator() { protected PasswordAuthentication getPasswordAuthentication() { return new PasswordAuthentication(username_f, password_f.toCharArray()); } }; } | 47678 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47678/ecd62ed236d13ba5e40cad90759a671d988ac804/Manager.java/clean/src/services/org/opennms/netmgt/vmmgr/Manager.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
27089,
14191,
10149,
1435,
288,
3639,
1956,
809,
1733,
272,
3493,
273,
446,
31,
3639,
775,
288,
5411,
1956,
809,
1733,
18,
2738,
5621,
5411,
272,
3493,
273,
1956,
809,
1733,
18... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
760,
27089,
14191,
10149,
1435,
288,
3639,
1956,
809,
1733,
272,
3493,
273,
446,
31,
3639,
775,
288,
5411,
1956,
809,
1733,
18,
2738,
5621,
5411,
272,
3493,
273,
1956,
809,
1733,
18... | |
for (int i = 0; i < ((RubyArray)newBackTrace).getLength(); i++) { if (!(((RubyArray)newBackTrace).entry(i) instanceof RubyString)) { | for (int i = 0; i < ((RubyArray) newBackTrace).getLength(); i++) { if (!(((RubyArray) newBackTrace).entry(i) instanceof RubyString)) { | private RubyArray createBacktrace(RubyObject newBackTrace) { if (newBackTrace instanceof RubyString) { return RubyArray.newArray(ruby, newBackTrace); } else if (newBackTrace instanceof RubyArray) { for (int i = 0; i < ((RubyArray)newBackTrace).getLength(); i++) { if (!(((RubyArray)newBackTrace).entry(i) instanceof RubyString)) { throw new TypeError(ruby, "backtrace must be Array of String"); } } return (RubyArray)newBackTrace; } throw new TypeError(ruby, "backtrace must be Array of String"); } | 45753 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45753/7798138390a306a202dcec9bde45928dae2e852e/RubyException.java/clean/org/jruby/RubyException.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
19817,
1076,
752,
2711,
5129,
12,
54,
10340,
921,
394,
2711,
3448,
13,
288,
3639,
309,
261,
2704,
2711,
3448,
1276,
19817,
780,
13,
288,
5411,
327,
19817,
1076,
18,
2704,
1076,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
19817,
1076,
752,
2711,
5129,
12,
54,
10340,
921,
394,
2711,
3448,
13,
288,
3639,
309,
261,
2704,
2711,
3448,
1276,
19817,
780,
13,
288,
5411,
327,
19817,
1076,
18,
2704,
1076,
12,
... |
return false; | return false; | public boolean isInheritedProperty() { return false; } | 46680 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46680/3b3a27d20be34686dbc98ec4fcb7bc3846f2125e/TextDecorationResolver.java/clean/sources/org/apache/batik/css/value/TextDecorationResolver.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
8048,
3721,
329,
1396,
1435,
288,
202,
2463,
629,
31,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1250,
8048,
3721,
329,
1396,
1435,
288,
202,
2463,
629,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
FontSetup.setup(this.document, null); | FontSetup.setup(this.document.getFontInfo(), null); | AbstractPSDocumentGraphics2D(boolean textAsShapes) { super(textAsShapes); if (!textAsShapes) { this.document = new Document(null); FontSetup.setup(this.document, null); } } | 5268 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5268/e0c6bb98bff4b94131c82eb8c5be82ee2a1f43a0/AbstractPSDocumentGraphics2D.java/buggy/src/java/org/apache/fop/render/ps/AbstractPSDocumentGraphics2D.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4115,
5857,
2519,
17558,
22,
40,
12,
6494,
977,
1463,
30080,
13,
288,
3639,
2240,
12,
955,
1463,
30080,
1769,
3639,
309,
16051,
955,
1463,
30080,
13,
288,
5411,
333,
18,
5457,
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,
377,
4115,
5857,
2519,
17558,
22,
40,
12,
6494,
977,
1463,
30080,
13,
288,
3639,
2240,
12,
955,
1463,
30080,
1769,
3639,
309,
16051,
955,
1463,
30080,
13,
288,
5411,
333,
18,
5457,
273,
394,
... |
lblHelp = new AdvancedLabel("Help is currently unavailable."); | lblHelp = new AdvancedLabel(Messages.getString("CommonHelpDialog.noHelp.Message")); | public CommonHelpDialog(Frame frame, File helpfile) { // Construct the superclass. super( frame ); // Make sure we close at the appropriate times. this.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { quit(); } } ); // Create the help dialog. this.setLayout( new BorderLayout() ); lblHelp = new AdvancedLabel("Help is currently unavailable."); ScrollPane scroll = new ScrollPane(); scroll.add( lblHelp ); this.add( scroll, BorderLayout.CENTER ); // Add a "Close" button. Button butClose = new Button( "Close" ); butClose.addActionListener( new ActionListener() { public void actionPerformed( ActionEvent event ) { quit(); } } ); this.add( butClose, BorderLayout.SOUTH ); // Make the window half the screensize by default. Dimension screenSize = frame.getToolkit().getScreenSize(); Dimension windowSize = new Dimension( screenSize.width / 2, screenSize.height / 2 ); this.pack(); this.setSize( windowSize ); // Place this dialog on middle of screen. this.setLocation( screenSize.width / 2 - windowSize.width / 2, screenSize.height / 2 - windowSize.height / 2 ); setFile(helpfile); } | 3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/18ec0036f3c5df3d8fbef60e9dd53cc153fc889e/CommonHelpDialog.java/buggy/megamek/src/megamek/client/ui/AWT/CommonHelpDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
5658,
6696,
6353,
12,
3219,
2623,
16,
1387,
2809,
768,
13,
288,
3639,
368,
14291,
326,
12098,
18,
3639,
2240,
12,
2623,
11272,
3639,
368,
4344,
3071,
732,
1746,
622,
326,
5505,
4124... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5658,
6696,
6353,
12,
3219,
2623,
16,
1387,
2809,
768,
13,
288,
3639,
368,
14291,
326,
12098,
18,
3639,
2240,
12,
2623,
11272,
3639,
368,
4344,
3071,
732,
1746,
622,
326,
5505,
4124... |
Iterator definedMembers = getDefinedMembers().iterator(); definedMemberLoop: while (definedMembers.hasNext()) { Member mdxMember = (Member) definedMembers.next(); if (parent != null) { Level lev = mdxMember.getLevel(); if (parent instanceof Level) { if ( !parent.equals(lev)) continue definedMemberLoop; } else { Hierarchy hier = lev.getHierarchy(); if (parent instanceof Hierarchy) { if (!parent.equals(hier)) continue definedMemberLoop; } else { Dimension dim = hier.getDimension(); if (parent instanceof Dimension && !parent.equals(dim)) continue definedMemberLoop; } } } if (mdxMember.getName().equalsIgnoreCase(s)) { return mdxMember; } } | public OlapElement getElementChild(OlapElement parent, String s) { // first look in cube OlapElement mdxElement = schemaReader.getElementChild(parent, s); if (mdxElement != null) { return mdxElement; } // then look in defined members Iterator definedMembers = getDefinedMembers().iterator(); definedMemberLoop: while (definedMembers.hasNext()) { Member mdxMember = (Member) definedMembers.next(); if (parent != null) { // make sure that parent (Level,Hierarchy,Dimension) // matches the MDX member Level lev = mdxMember.getLevel(); if (parent instanceof Level) { if ( !parent.equals(lev)) continue definedMemberLoop; } else { Hierarchy hier = lev.getHierarchy(); if (parent instanceof Hierarchy) { if (!parent.equals(hier)) continue definedMemberLoop; } else { Dimension dim = hier.getDimension(); if (parent instanceof Dimension && !parent.equals(dim)) continue definedMemberLoop; } } } // parent check if (mdxMember.getName().equalsIgnoreCase(s)) { // allow member to be referenced without dimension name return mdxMember; } } // then in defined sets for (int i = 0; i < formulas.length; i++) { Formula formula = formulas[i]; if (formula.isMember) { continue; // have already done these } if (formula.names[0].equals(s)) { return formula.mdxSet; } } return mdxElement; } | 37907 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/37907/d3678dc391a524c3eb9eac0f6e119c6648f8823c/Query.java/clean/src/main/mondrian/olap/Query.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
1071,
531,
3762,
1046,
7426,
1763,
12,
51,
3762,
1046,
982,
16,
514,
272,
13,
288,
5411,
368,
1122,
2324,
316,
18324,
5411,
531,
3762,
1046,
3481,
92,
1046,
273,
1963,
2514,
18,
21336,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
531,
3762,
1046,
7426,
1763,
12,
51,
3762,
1046,
982,
16,
514,
272,
13,
288,
5411,
368,
1122,
2324,
316,
18324,
5411,
531,
3762,
1046,
3481,
92,
1046,
273,
1963,
2514,
18,
21336,
... | |
protected ORB getORB() { | protected ORB getORB() { | protected ORB getORB() { return orb_; } | 46355 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46355/b914fd6ef0aa122dbdecdcbeef832bfc41032c72/AbstractAdmin.java/buggy/src/org/jacorb/notification/servant/AbstractAdmin.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
4869,
38,
336,
916,
38,
1435,
288,
3639,
327,
16823,
67,
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... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
4869,
38,
336,
916,
38,
1435,
288,
3639,
327,
16823,
67,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,... |
inputHandle.setTargetWindow( ChoiceSetFactory .getValueFromChoiceSet( targetChooser.getText( ), CHOICESET_TARGET ) ); inputHandle.setFormatType( ChoiceSetFactory .getValueFromChoiceSet( formatChooser.getText( ), CHOICESET_FORMAT ) ); | if ( sameWindowButton.getSelection( ) ) { inputHandle.setTargetWindow( DesignChoiceConstants.TARGET_NAMES_TYPE_SELF ); } else { inputHandle.setTargetWindow( DesignChoiceConstants.TARGET_NAMES_TYPE_BLANK ); } if ( htmlButton.getSelection( ) ) { inputHandle.setFormatType( "html" ); } else { inputHandle.setFormatType( DesignChoiceConstants.FORMAT_TYPE_PDF ); } | protected void okPressed( ) { try { // Remove original settings inputHandle.setURI( null ); inputHandle.setTargetBookmark( null ); inputHandle.setTargetWindow( null ); inputHandle.setReportName( null ); inputHandle.setFormatType( null ); inputHandle.getMember( Action.PARAM_BINDINGS_MEMBER ).setValue( null ); if ( DesignChoiceConstants.ACTION_LINK_TYPE_HYPERLINK .equals( selectedType ) ) { inputHandle.setURI( locationEditor.getText( ).trim( ) ); inputHandle.setTargetWindow( ChoiceSetFactory .getValueFromChoiceSet( targetChooser.getText( ), CHOICESET_TARGET ) ); } else if ( DesignChoiceConstants.ACTION_LINK_TYPE_BOOKMARK_LINK .equals( selectedType ) ) { inputHandle .setTargetBookmark( bookmarkEditor.getText( ).trim( ) ); } else if ( DesignChoiceConstants.ACTION_LINK_TYPE_DRILL_THROUGH .equals( selectedType ) ) { inputHandle.setReportName( locationEditor.getText( ).trim( ) ); for ( Iterator iter = bindingList.iterator( ); iter.hasNext( ); ) { inputHandle.addParamBinding( (ParamBinding) iter.next( ) ); } if ( !StringUtil.isBlank( bookmarkEditor.getText( ) ) ) { inputHandle.setTargetBookmark( bookmarkEditor.getText( ) .trim( ) ); } inputHandle.setTargetWindow( ChoiceSetFactory .getValueFromChoiceSet( targetChooser.getText( ), CHOICESET_TARGET ) ); inputHandle.setFormatType( ChoiceSetFactory .getValueFromChoiceSet( formatChooser.getText( ), CHOICESET_FORMAT ) ); } inputHandle.setLinkType( selectedType ); } catch ( SemanticException e ) { ExceptionHandler.handle( e ); } setResult( inputHandle ); super.okPressed( ); } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/05098ff36f1ebd6963fab20b8ff6d00d41d69d21/HyperlinkBuilder.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/HyperlinkBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1529,
24624,
12,
262,
202,
95,
202,
202,
698,
202,
202,
95,
1082,
202,
759,
3581,
2282,
1947,
1082,
202,
2630,
3259,
18,
542,
3098,
12,
446,
11272,
1082,
202,
2630,
3259... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1529,
24624,
12,
262,
202,
95,
202,
202,
698,
202,
202,
95,
1082,
202,
759,
3581,
2282,
1947,
1082,
202,
2630,
3259,
18,
542,
3098,
12,
446,
11272,
1082,
202,
2630,
3259... |
public void showError(String text, Exception e) { dispose(); Pooka.getUIFactory().showError(text, e); | public void showError(String text) { Pooka.getUIFactory().showError(text); | public void showError(String text, Exception e) { dispose(); Pooka.getUIFactory().showError(text, e); } | 967 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/967/2c30a0941141310e27694fee4a1cfed852c1c676/MessagePrinterDisplay.java/buggy/src/net/suberic/pooka/gui/MessagePrinterDisplay.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
2405,
668,
12,
780,
977,
16,
1185,
425,
13,
288,
565,
15825,
5621,
565,
453,
1184,
69,
18,
588,
5370,
1733,
7675,
4500,
668,
12,
955,
16,
425,
1769,
225,
289,
2,
0,
0,
0,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
2405,
668,
12,
780,
977,
16,
1185,
425,
13,
288,
565,
15825,
5621,
565,
453,
1184,
69,
18,
588,
5370,
1733,
7675,
4500,
668,
12,
955,
16,
425,
1769,
225,
289,
2,
-100,
-100... |
} */ if (!isTerminated()) { if (!isSuspended()) { } CommandFactory factory = session.getCommandFactory(); MIGDBExit exit = factory.createMIGDBExit(); try { session.postCommand(exit); } catch (MIException e) { } | setTerminated(); | public void destroy() {/* if (!isTerminated()) { CommandFactory factory = session.getCommandFactory(); MIExecAbort abort = factory.createMIExecAbort(); try { session.postCommand(abort); setTerminated(); session.getRxThread().fireEvent(new MIInferiorExitEvent()); } catch (MIException e) { } }*/ if (!isTerminated()) { if (!isSuspended()) { // interrupt execution } CommandFactory factory = session.getCommandFactory(); MIGDBExit exit = factory.createMIGDBExit(); try { session.postCommand(exit); } catch (MIException e) { } } } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/fa183e80b0b768db710947c5319e59f56b9cbd00/MIInferior.java/buggy/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/MIInferior.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
5546,
1435,
288,
20308,
202,
202,
430,
16051,
291,
21888,
10756,
288,
1082,
202,
2189,
1733,
3272,
273,
1339,
18,
588,
2189,
1733,
5621,
1082,
202,
7492,
1905,
13572,
6263,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5546,
1435,
288,
20308,
202,
202,
430,
16051,
291,
21888,
10756,
288,
1082,
202,
2189,
1733,
3272,
273,
1339,
18,
588,
2189,
1733,
5621,
1082,
202,
7492,
1905,
13572,
6263,
... |
lastToken[0] = token; | token = readToken(";"); } else if ( token.equalsIgnoreCase("ENDBLOCK") || token.equalsIgnoreCase("END") ) { return null; } else { throw new BadFormatException("Unknown command '" + token + "' in TREES block"); } | private Tree readNextTree(HashMap translationList, String[] lastToken) throws ImportException, IOException { try { Tree tree = null; String token = lastToken[0]; if ( token.equalsIgnoreCase("UTREE") || token.equalsIgnoreCase("TREE")) { if (nextCharacter() == '*') { // Star is used to specify a default tree - ignore it readCharacter(); } String token2 = readToken( "=;" ); if (getLastDelimiter() != '=') { throw new BadFormatException("Missing label for tree'" + token2 + "' or missing '=' in TREE command of TREES block"); } try { if (nextCharacter() != '(') { throw new BadFormatException("Missing tree definition in TREE command of TREES block"); } // Save tree comment and attach it later final String comment = getLastMetaComment(); clearLastMetaComment(); FlexibleNode root = readInternalNode(translationList); tree = new FlexibleTree(root, false, true); tree.setId(token2); if (getLastDelimiter() != ';') { throw new BadFormatException("Expecting ';' after tree, '" + token2 + "', TREE command of TREES block"); } if (comment != null) { // if '[W number]' (MrBayes), set weight attribute if( comment.matches("^W\\s+[\\+\\-]?[\\d\\.]+")) { tree.setAttribute("weight", new Float(comment.substring(2)) ); } else { try { String[] pairs = metaCommentPairs(comment); for(int n = 0; n < pairs.length/2; ++n) { tree.setAttribute(pairs[2*n], pairs[2*n+1]); } } catch(Importer.BadFormatException e) { // set generic comment attribute tree.setAttribute("comment", comment); } } } } catch (EOFException e) { // If we reach EOF we may as well return what we have? return tree; } token = readToken(";"); } else if ( token.equalsIgnoreCase("ENDBLOCK") || token.equalsIgnoreCase("END") ) { return null; } else { throw new BadFormatException("Unknown command '" + token + "' in TREES block"); } //added this to escape readNextTree loop correctly -- AJD lastToken[0] = token; return tree; } catch (EOFException e) { return null; } } | 49053 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/49053/ecc2159a8784301f4d88a04d811fbdeb62513ba3/NexusImporter.java/buggy/branches/1.4/src/dr/evolution/io/NexusImporter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
4902,
855,
2134,
2471,
12,
8658,
4794,
682,
16,
514,
8526,
27231,
13,
1216,
6164,
503,
16,
1860,
565,
288,
3639,
775,
288,
5411,
4902,
2151,
273,
446,
31,
5411,
514,
1147,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
4902,
855,
2134,
2471,
12,
8658,
4794,
682,
16,
514,
8526,
27231,
13,
1216,
6164,
503,
16,
1860,
565,
288,
3639,
775,
288,
5411,
4902,
2151,
273,
446,
31,
5411,
514,
1147,
27... |
this.setList_counter(counter); | list_counter = counter; | public void setListCounter(int counter) { this.setList_counter(counter); } | 52947 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52947/0bcb35d367c0f0b2a89eb6aabedfe9807525ad3a/ContextImpl.java/clean/src/java/org/xhtmlrenderer/layout/ContextImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
682,
4789,
12,
474,
3895,
13,
288,
3639,
666,
67,
7476,
273,
3895,
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,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
444,
682,
4789,
12,
474,
3895,
13,
288,
3639,
666,
67,
7476,
273,
3895,
31,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
public Relation getPropertyRelation (String propname) { if (propname == null) return propertiesRel; Relation rel = (Relation) prop2db.get (propname.toLowerCase()); return rel != null ? rel : propertiesRel; | public Relation getPropertyRelation () { return propertiesRel; | public Relation getPropertyRelation (String propname) { if (propname == null) return propertiesRel; Relation rel = (Relation) prop2db.get (propname.toLowerCase()); return rel != null ? rel : propertiesRel; } | 46029 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46029/2c0d6677501f1fd584330797def9f74440d59a3e/DbMapping.java/clean/src/helma/objectmodel/DbMapping.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
7317,
3911,
3963,
261,
780,
2270,
529,
13,
288,
202,
430,
261,
5986,
529,
422,
446,
13,
202,
565,
327,
1790,
1971,
31,
202,
3963,
1279,
273,
261,
3963,
13,
2270,
22,
1966,
18,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
7317,
3911,
3963,
261,
780,
2270,
529,
13,
288,
202,
430,
261,
5986,
529,
422,
446,
13,
202,
565,
327,
1790,
1971,
31,
202,
3963,
1279,
273,
261,
3963,
13,
2270,
22,
1966,
18,
5... |
if (view == activePart) { | if (ref.getPart(false) == activePart) { | public void addFastView(IViewPart view) { Perspective persp = getActivePerspective(); if (persp == null) return; // If view is zoomed unzoom. if (isZoomed() && partChangeAffectsZoom(view)) zoomOut(); // Do real work. persp.addFastView(view); // The view is now invisible. // If it is active then deactivate it. if (view == activePart) { activate(activationList.getActive()); } // Notify listeners. window.getShortcutBar().update(true); window.firePerspectiveChanged(this, getPerspective(), CHANGE_FAST_VIEW_ADD);} | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/234570228ea456ece089ff59b2b055ff81273d9b/WorkbenchPage.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
527,
12305,
1767,
12,
45,
1767,
1988,
1476,
13,
288,
202,
14781,
16772,
13508,
84,
273,
11960,
14781,
16772,
5621,
202,
430,
261,
10422,
84,
422,
446,
13,
202,
202,
2463,
31,
1082,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
918,
527,
12305,
1767,
12,
45,
1767,
1988,
1476,
13,
288,
202,
14781,
16772,
13508,
84,
273,
11960,
14781,
16772,
5621,
202,
430,
261,
10422,
84,
422,
446,
13,
202,
202,
2463,
31,
1082,
... |
rowAdded = true; } if (!valueIsAdjusting) { notifyCountListeners(); | public boolean isAddRow(LoggingEvent e, boolean valueIsAdjusting) { boolean rowAdded = false; int newRow = 0; Object id = e.getProperty(ChainsawConstants.LOG4J_ID_KEY); if (id == null) { id = new Integer(++uniqueRow); e.setProperty(ChainsawConstants.LOG4J_ID_KEY, id.toString()); } //prevent duplicate rows if (idSet.contains(id)) { return false; } idSet.add(id); unfilteredList.add(e); rowAdded = true; if ((displayRule == null) || (displayRule.evaluate(e))) { synchronized (filteredList) { filteredList.add(e); newRow = filteredList.size() - 1; } rowAdded = true; } if (!valueIsAdjusting) { notifyCountListeners(); } /** * Is this a new MDC key we haven't seen before? */ boolean newColumn = uniqueMDCKeys.addAll(e.getMDCKeySet()); /** * If so, we should add them as columns and notify listeners. */ for (Iterator iter = e.getMDCKeySet().iterator(); iter.hasNext();) { Object key = iter.next(); if (!columnNames.contains(key)) { columnNames.add(key); LogLog.debug("Adding col '" + key + "', columNames=" + columnNames); fireNewKeyColumnAdded( new NewKeyEvent( this, columnNames.indexOf(key), key, e.getMDC(key.toString()))); } } if (!isCyclic() && !newColumn) { fireTableRowsInserted(newRow, newRow); } else { if ( newColumn || (unfilteredList.size() == ((CyclicBufferList) unfilteredList) .getMaxSize())) { fireTableDataChanged(); } else { fireTableRowsInserted(newRow, newRow); } } return rowAdded; } | 47730 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47730/5e174411f47eae139a3b4c2198c45ad6f0ba2cbc/ChainsawCyclicBufferTableModel.java/buggy/src/java/org/apache/log4j/chainsaw/ChainsawCyclicBufferTableModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
1250,
353,
986,
1999,
12,
7735,
1133,
425,
16,
1250,
460,
2520,
10952,
310,
13,
288,
565,
1250,
1027,
8602,
273,
629,
31,
565,
509,
27805,
273,
374,
31,
565,
1033,
612,
273,
425,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
353,
986,
1999,
12,
7735,
1133,
425,
16,
1250,
460,
2520,
10952,
310,
13,
288,
565,
1250,
1027,
8602,
273,
629,
31,
565,
509,
27805,
273,
374,
31,
565,
1033,
612,
273,
425,
... | |
private Properties load( String name ) throws IOException | private Properties load( String name ) throws IOException | private Properties load( String name ) throws IOException { Properties prop = new Properties(); prop.load( getClass().getClassLoader().getResourceAsStream( name ) ); return prop; } | 56296 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56296/a3340879daece7a986f1b3b03ee5d2885b08ab54/Log4jServiceFactoryTestCase.java/clean/service/src/unittests/org/ops4j/pax/logging/test/Log4jServiceFactoryTestCase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
6183,
1262,
12,
514,
508,
262,
1216,
1860,
3639,
288,
5411,
6183,
2270,
273,
394,
6183,
5621,
5411,
2270,
18,
945,
12,
2900,
7675,
588,
7805,
7675,
588,
1420,
17052,
12,
508,
262,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
540,
3238,
6183,
1262,
12,
514,
508,
262,
1216,
1860,
3639,
288,
5411,
6183,
2270,
273,
394,
6183,
5621,
5411,
2270,
18,
945,
12,
2900,
7675,
588,
7805,
7675,
588,
1420,
17052,
12,
508,
262,
... |
DriverManager.println(msg); | DriverManager.println(msg); | public void addWarning(String msg) { DriverManager.println(msg); // Add the warning to the chain if(firstWarning!=null) firstWarning.setNextWarning(new SQLWarning(msg)); else firstWarning = new SQLWarning(msg); // Now check for some specific messages // This is obsolete in 6.5, but I've left it in here so if we need to use this // technique again, we'll know where to place it. // // This is generated by the SQL "show datestyle" //if(msg.startsWith("NOTICE:") && msg.indexOf("DateStyle")>0) { //// 13 is the length off "DateStyle is " //msg = msg.substring(msg.indexOf("DateStyle is ")+13); // //for(int i=0;i<dateStyles.length;i+=2) //if(msg.startsWith(dateStyles[i])) //currentDateStyle=i+1; // this is the index of the format //} } | 45672 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45672/839b9bc0117946afd62ee385a4c8a36c01b3053b/Connection.java/clean/src/interfaces/jdbc/org/postgresql/Connection.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
527,
6210,
12,
780,
1234,
13,
565,
288,
202,
4668,
1318,
18,
8222,
12,
3576,
1769,
202,
759,
1436,
326,
3436,
358,
326,
2687,
202,
430,
12,
3645,
6210,
5,
33,
2011,
13,
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,
918,
527,
6210,
12,
780,
1234,
13,
565,
288,
202,
4668,
1318,
18,
8222,
12,
3576,
1769,
202,
759,
1436,
326,
3436,
358,
326,
2687,
202,
430,
12,
3645,
6210,
5,
33,
2011,
13,
202... |
if (nameIndex == -1) nameIndex = contentTypeString.indexOf("\n"); | public static String parseContentType(String contentTypeString) { int nameIndex = contentTypeString.indexOf("Content-Type: "); if (nameIndex != -1) { int endLineIndex = contentTypeString.indexOf("\n"); if (endLineIndex == -1) { endLineIndex = contentTypeString.length()-1; } return contentTypeString.substring(nameIndex+14, endLineIndex); } return null; } | 48068 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/48068/de71a13dd9d82d1df2a37155b9c62e4c7a504e01/MultipartIterator.java/clean/src/share/org/apache/struts/upload/MultipartIterator.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
309,
261,
529,
1016,
422,
300,
21,
13,
508,
1016,
273,
5064,
780,
18,
31806,
31458,
82,
8863,
225,
309,
261,
529,
1016,
422,
300,
21,
13,
508,
1016,
273,
5064,
780,
18,
31806,
31458,
82,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
309,
261,
529,
1016,
422,
300,
21,
13,
508,
1016,
273,
5064,
780,
18,
31806,
31458,
82,
8863,
225,
309,
261,
529,
1016,
422,
300,
21,
13,
508,
1016,
273,
5064,
780,
18,
31806,
31458,
82,
8... | |
Trace.debug( "CoordGmsImpl.handleJoin()", "joined member " + mbr + ", view is " + v); | Trace.debug("CoordGmsImpl.handleJoin()", "joined member " + mbr + ", view is " + v); | public synchronized JoinRsp handleJoin(Address mbr) { Vector new_mbrs=new Vector(); View v=null; Digest d, tmp; if(Trace.trace) Trace.info("CoordGmsImpl.handleJoin()", "mbr=" + mbr); if(gms.local_addr.equals(mbr)) { Trace.error("CoordGmsImpl.handleJoin()", "cannot join myself !"); return null; } if(gms.members.contains(mbr)) { if(Trace.trace) Trace.error( "CoordGmsImpl.handleJoin()", "member " + mbr + " already present; returning existing view " + gms.members.getMembers()); return new JoinRsp( new View(gms.view_id, gms.members.getMembers()), gms.getDigest()); // already joined: return current digest and membership } new_mbrs.addElement(mbr); tmp=gms.getDigest(); // get existing digest if(Trace.trace) Trace.info("CoordGmsImpl.handleJoin()", "got digest=" + tmp); d=new Digest(tmp.size() + 1); // create a new digest, which contains 1 more member d.add(tmp); // add the existing digest to the new one d.add(mbr, 0, 0); // ... and add the new member. it's first seqno will be 1 v=gms.getNextView(new_mbrs, null, null); if(Trace.trace) Trace.debug( "CoordGmsImpl.handleJoin()", "joined member " + mbr + ", view is " + v); return new JoinRsp(v, d); } | 51463 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51463/60334f8c03141ab6186a1ff6bd9c35e7b0fdf185/CoordGmsImpl.java/buggy/src/org/jgroups/protocols/pbcast/CoordGmsImpl.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
4214,
54,
1752,
1640,
4572,
12,
1887,
312,
2848,
13,
288,
3639,
5589,
394,
67,
1627,
5453,
33,
2704,
5589,
5621,
3639,
4441,
331,
33,
2011,
31,
3639,
15864,
302,
16,
1853,
3... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
3852,
4214,
54,
1752,
1640,
4572,
12,
1887,
312,
2848,
13,
288,
3639,
5589,
394,
67,
1627,
5453,
33,
2704,
5589,
5621,
3639,
4441,
331,
33,
2011,
31,
3639,
15864,
302,
16,
1853,
3... |
mch = new ContentType("text;\n pflaum; name=\"spam\\\"bag\\\\wall\" \n\t((plain; text=missing); (pissed=off); where=myrtle);;a=b;c;\n (a)foo=bar"); | mch = new ContentType("text;\n pflaum;=foo; name=\"spam\\\"bag\\\\wall\" \n\t((plain; text=missing); (pissed=off); where=myrtle);;a=b;c;=d;\n (a)foo=bar"); | public static void main(String[] args) { MimeCompoundHeader mch; mch = new ContentType("text/plain; charset=US-ASCII;\r\n\tFormat=Flowed DelSp=Yes\r\n"); System.out.println(mch.toString("Content-Type")); mch = new ContentDisposition(" \n INline;\n filename=\"=?utf-8?Q?=E3=82=BD=E3=83=AB=E3=83=86=E3=82=A3=E3=83=AC=E3=82=A4.rtf?=\"\n \n ", false); System.out.println(mch.toString("Content-Disposition")); mch = new ContentDisposition(" \n gropp;\n filename*=UTF-8''%E3%82%BD%E3%83%AB%E3%83%86%E3%82%A3%E3%83%AC%E3%82%A4.rtf\n \n ", true); System.out.println(mch.toString("Content-Disposition")); mch = new ContentDisposition(mch.toString()); System.out.println(mch.toString("Content-Disposition")); mch = new ContentType("application/x-stuff; title*0*=us-ascii'en'This%20is%20even%20more%20; title*1*=%2A%2A%2Afun%2A%2A%2A%20; title*2=\"isn't it!\"\n"); System.out.println(mch.toString("Content-Type")); mch = new ContentType("multipart/MIXED; charset=us-ascii;\n foo=\n boundary=\"---\" \n"); System.out.println(mch.toString("Content-Type")); mch = new ContentType("message/external-body; access-type=URL;\n URL*0=\"ftp://\";\n URL*1=\"cs.utk.edu/pub/moore/bulk-mailer/bulk-mailer.tar\"\n"); System.out.println(mch.toString("Content-Type")); mch = new ContentType("application/x-stuff;\n\ttitle*=us-ascii'en-us'This%20is%20%2A%2A%2Afun%2A%2A%2A"); System.out.println(mch.toString("Content-Type")); mch = new ContentType("application/pdf;\n x-unix-mode=0644;\n name=Zimbra on Mac OS X success story.pdf"); System.out.println(mch.toString("Content-Type")); mch = new ContentType("c; name=TriplePlay_Converged_Network_v5.pdf;\n x-mac-creator=70727677; x-mac-type=50444620"); System.out.println(mch.toString("Content-Type")); mch = new ContentType("text;\n pflaum; name=\"spam\\\"bag\\\\wall\" \n\t((plain; text=missing); (pissed=off); where=myrtle);;a=b;c;\n (a)foo=bar"); System.out.println(mch.toString("Content-Type")); mch = new ContentType(null); System.out.println(mch.toString("Content-Type")); } | 6965 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6965/5eb8fc9e20de5f4e95bcb3e2541453573be8e52b/MimeCompoundHeader.java/buggy/ZimbraServer/src/java/com/zimbra/cs/mime/MimeCompoundHeader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
288,
3639,
22059,
16835,
1864,
312,
343,
31,
3639,
312,
343,
273,
394,
11691,
2932,
955,
19,
7446,
31,
4856,
33,
3378,
17,
13756,
9747,
86,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
918,
2774,
12,
780,
8526,
833,
13,
288,
3639,
22059,
16835,
1864,
312,
343,
31,
3639,
312,
343,
273,
394,
11691,
2932,
955,
19,
7446,
31,
4856,
33,
3378,
17,
13756,
9747,
86,... |
ViewsTreeProvider provider = new ViewsTreeProvider( ); | ViewsTreeProvider provider = new ViewsTreeProvider( ) { public Image getImage( Object element ) { if ( element instanceof LibraryHandle ) { Image image = libraryProvider.getDisplayIcon( (LibraryHandle) element ); if ( image == null ) { image = ReportPlatformUIImages.getImage( element ); } return image; } return super.getImage( element ); } }; | protected void configTreeViewer( ) { ViewsTreeProvider provider = new ViewsTreeProvider( ); treeViewer.setContentProvider( provider ); treeViewer.setLabelProvider( provider ); refreshRoot( ); // add inline renaming support // Adds drag and drop support int ops = DND.DROP_COPY; Transfer[] transfers = new Transfer[]{ TemplateTransfer.getInstance( ) }; treeViewer.addDragSupport( ops, transfers, new LibraryDragListener( treeViewer ) ); } | 12803 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12803/c0912535580235d6ab1eea95c45eba6927bb18b4/LibraryExplorerTreeViewPage.java/buggy/UI/org.eclipse.birt.report.designer.ui.lib.explorer/src/org/eclipse/birt/report/designer/ui/lib/explorer/LibraryExplorerTreeViewPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
642,
2471,
18415,
12,
262,
202,
95,
202,
202,
9959,
2471,
2249,
2893,
273,
394,
31117,
2471,
2249,
12,
11272,
202,
202,
3413,
18415,
18,
542,
1350,
2249,
12,
2893,
11272,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
642,
2471,
18415,
12,
262,
202,
95,
202,
202,
9959,
2471,
2249,
2893,
273,
394,
31117,
2471,
2249,
12,
11272,
202,
202,
3413,
18415,
18,
542,
1350,
2249,
12,
2893,
11272,
... |
enqueue (new Short (s)); | enqueue (new Character (c)); | public void pushChar(short s) { ASSERT (type == Short.TYPE); enqueue (new Short (s)); } | 47772 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47772/f7663153b76059c7fc1f7f68b827e970b676c1fa/Channel.java/clean/streams/src/streamit/library/Channel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1817,
2156,
12,
6620,
272,
13,
565,
288,
3639,
17289,
11539,
261,
723,
422,
7925,
18,
2399,
1769,
3639,
12850,
261,
2704,
6577,
225,
261,
71,
10019,
565,
289,
2,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1817,
2156,
12,
6620,
272,
13,
565,
288,
3639,
17289,
11539,
261,
723,
422,
7925,
18,
2399,
1769,
3639,
12850,
261,
2704,
6577,
225,
261,
71,
10019,
565,
289,
2,
-100,
-100,
... |
String dn = certs[0].getSubjectDN().getName(); | String dn = getDistinguishedName(certs); | protected String getUserNameForCertificates(final X509Certificate[] certs) throws LoginException { if (certs == null) { throw new LoginException("Client certificates not found. Cannot authenticate."); } File usersFile = new File(baseDir,usersFilePathname); Properties users = new Properties(); try { users.load(new java.io.FileInputStream(usersFile)); } catch (IOException ioe) { throw new LoginException("Unable to load user properties file " + usersFile); } String dn = certs[0].getSubjectDN().getName(); for(Enumeration vals = users.elements(), keys = users.keys(); vals.hasMoreElements(); ) { if ( ((String)vals.nextElement()).equals(dn) ) { return (String)keys.nextElement(); } else { keys.nextElement(); } } return null; } | 17032 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/17032/a8b181014185341a0608448fbecdef3db07ba97a/TextFileCertificateLoginModule.java/clean/activemq-jaas/src/main/java/org/apache/activemq/jaas/TextFileCertificateLoginModule.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
514,
30456,
1290,
14133,
12,
6385,
1139,
5995,
4719,
8526,
13870,
13,
1216,
11744,
503,
288,
3639,
309,
261,
24596,
422,
446,
13,
288,
5411,
604,
394,
11744,
503,
2932,
1227,
12522,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
30456,
1290,
14133,
12,
6385,
1139,
5995,
4719,
8526,
13870,
13,
1216,
11744,
503,
288,
3639,
309,
261,
24596,
422,
446,
13,
288,
5411,
604,
394,
11744,
503,
2932,
1227,
12522,
... |
if (getConverterName() != null) { try { Class converterClass = Class.forName(getConverterName()); this.converter = (HttpClientConverter) converterClass.newInstance(); } catch (ClassNotFoundException e) { getContext().getLogger().log( Level.WARNING, "Couldn't find the converter class. Please check that your classpath includes " + converterName, e); } catch (InstantiationException e) { getContext() .getLogger() .log( Level.WARNING, "Couldn't instantiate the converter class. Please check this class has an empty constructor " + converterName, e); } catch (IllegalAccessException e) { getContext() .getLogger() .log( Level.WARNING, "Couldn't instantiate the converter class. Please check that you have to proper access rights to " + converterName, e); } } if (this.converter == null) { getContext().getLogger().log(Level.WARNING, "Instantiating the default HTTP call converter"); this.converter = new HttpClientConverter(); } | this.converter = new HttpClientConverter(); | public HttpClientConverter getConverter() { if (this.converter == null) { if (getConverterName() != null) { try { // Load the converter class using the given class name Class converterClass = Class.forName(getConverterName()); this.converter = (HttpClientConverter) converterClass.newInstance(); } catch (ClassNotFoundException e) { getContext().getLogger().log( Level.WARNING, "Couldn't find the converter class. Please check that your classpath includes " + converterName, e); } catch (InstantiationException e) { getContext() .getLogger() .log( Level.WARNING, "Couldn't instantiate the converter class. Please check this class has an empty constructor " + converterName, e); } catch (IllegalAccessException e) { getContext() .getLogger() .log( Level.WARNING, "Couldn't instantiate the converter class. Please check that you have to proper access rights to " + converterName, e); } } if (this.converter == null) { getContext().getLogger().log(Level.WARNING, "Instantiating the default HTTP call converter"); this.converter = new HttpClientConverter(); } } return this.converter; } | 14172 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14172/105b39efb219de4cc0af24b8ca61ce6c459934a4/HttpClient.java/buggy/plugins/internal/com.noelios.restlet/src/com/noelios/restlet/impl/connector/HttpClient.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
16308,
5072,
31173,
1435,
202,
95,
202,
202,
430,
261,
2211,
18,
15747,
422,
446,
13,
202,
202,
95,
1082,
202,
430,
261,
588,
5072,
461,
1435,
480,
446,
13,
1082,
202,
95,
9... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
16308,
5072,
31173,
1435,
202,
95,
202,
202,
430,
261,
2211,
18,
15747,
422,
446,
13,
202,
202,
95,
1082,
202,
430,
261,
588,
5072,
461,
1435,
480,
446,
13,
1082,
202,
95,
9... |
pub.addAttribute(new Attribute("title", "Automatic clustering of orthologs and" | pub.addAttribute(new Attribute("title", "Automatic clustering of orthologs and " | protected void setupItems() throws ObjectStoreException { Item pub = newItem("Publication"); pub.addAttribute(new Attribute("title", "Automatic clustering of orthologs and" + "in-paralogs from pairwise species comparisons")); pub.addAttribute(new Attribute("journal", "Journal of Molecular Biology")); pub.addAttribute(new Attribute("volume", "314")); pub.addAttribute(new Attribute("issue", "5")); pub.addAttribute(new Attribute("year", "2001")); pub.addAttribute(new Attribute("pages", "1041-1052")); pub.addAttribute(new Attribute("pubMedId", "11743721")); Item author1 = newItem("Author"), author2 = newItem("Author"), author3 = newItem("Author"); ReferenceList publications = new ReferenceList("publications", Arrays.asList(new Object[] {pub.getIdentifier()})); author1.addAttribute(new Attribute("name", "Remm, Maido")); author1.addCollection(publications); author2.addAttribute(new Attribute("name", "Storm, Christian E. V.")); author2.addCollection(publications); author3.addAttribute(new Attribute("name", "Sonnhammer, Erik L. L.")); author3.addCollection(publications); ReferenceList authors = new ReferenceList("authors", Arrays.asList(new Object[] {author1.getIdentifier(), author2.getIdentifier(), author3.getIdentifier()})); pub.addCollection(authors); analysis = newItem("INPARANOIDAnalysis"); analysis.addAttribute(new Attribute("algorithm", "INPARANOID")); analysis.addReference(new Reference("publication", pub.getIdentifier())); db = newItem("Database"); db.addAttribute(new Attribute("title", "INPARANOID")); db.addAttribute(new Attribute("url", "http://inparanoid.cgb.ki.se")); List toStore = Arrays.asList(new Object[] {db, analysis, author1, author2, author3, pub}); for (Iterator i = toStore.iterator(); i.hasNext();) { writer.store(ItemHelper.convert((Item) i.next())); } } | 29158 /local/tlutelli/issta_data/temp/all_java2context/java/2006_temp/2006/29158/b3e23808bf2c8153732aadff18f0712f2a41479c/OrthologueConverter.java/buggy/flymine/model/orthologue/src/java/org/flymine/dataconversion/OrthologueConverter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
3875,
3126,
1435,
1216,
1033,
21151,
288,
3639,
4342,
5634,
273,
26536,
2932,
4782,
367,
8863,
3639,
5634,
18,
1289,
1499,
12,
2704,
3601,
2932,
2649,
3113,
315,
7150,
4941,
1874... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
3875,
3126,
1435,
1216,
1033,
21151,
288,
3639,
4342,
5634,
273,
26536,
2932,
4782,
367,
8863,
3639,
5634,
18,
1289,
1499,
12,
2704,
3601,
2932,
2649,
3113,
315,
7150,
4941,
1874... |
while ((rs = statement.getResultSet()) != null) { log("Processing new result set.", Project.MSG_VERBOSE); ResultSetMetaData md = rs.getMetaData(); int columnCount = md.getColumnCount(); StringBuffer line = new StringBuffer(); if (showheaders) { for (int col = 1; col < columnCount; col++) { line.append(md.getColumnName(col)); line.append(","); | do { rs = statement.getResultSet(); if (rs != null) { log("Processing new result set.", Project.MSG_VERBOSE); ResultSetMetaData md = rs.getMetaData(); int columnCount = md.getColumnCount(); StringBuffer line = new StringBuffer(); if (showheaders) { for (int col = 1; col < columnCount; col++) { line.append(md.getColumnName(col)); line.append(","); } line.append(md.getColumnName(columnCount)); out.println(line); line.setLength(0); | protected void printResults() throws java.sql.SQLException { ResultSet rs = null; PrintStream out = System.out; try { if (output != null) { log("Opening PrintStream to output file " + output, Project.MSG_VERBOSE); out = new PrintStream(new BufferedOutputStream(new FileOutputStream(output))); } while ((rs = statement.getResultSet()) != null) { log("Processing new result set.", Project.MSG_VERBOSE); ResultSetMetaData md = rs.getMetaData(); int columnCount = md.getColumnCount(); StringBuffer line = new StringBuffer(); if (showheaders) { for (int col = 1; col < columnCount; col++) { line.append(md.getColumnName(col)); line.append(","); } line.append(md.getColumnName(columnCount)); out.println(line); line.setLength(0); } while (rs.next()) { for (int col = 1; col < columnCount; col++) { line.append(rs.getString(col).trim()); line.append(","); } line.append(rs.getString(columnCount).trim()); out.println(line); line.setLength(0); } statement.getMoreResults(); } } catch (IOException ioe) { throw new BuildException("Error writing " + output.getAbsolutePath(), ioe, location); } finally { if (out != null && out != System.out) { out.close(); } } } | 639 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/639/2e15020c1e0390dcba2144bf2a66e387edd9f2c8/SQLExec.java/buggy/src/main/org/apache/tools/ant/taskdefs/SQLExec.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
918,
1172,
3447,
1435,
1216,
2252,
18,
4669,
18,
23116,
288,
3639,
10842,
3597,
273,
446,
31,
3639,
21677,
596,
273,
2332,
18,
659,
31,
3639,
775,
288,
5411,
309,
261,
2844,
480,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1172,
3447,
1435,
1216,
2252,
18,
4669,
18,
23116,
288,
3639,
10842,
3597,
273,
446,
31,
3639,
21677,
596,
273,
2332,
18,
659,
31,
3639,
775,
288,
5411,
309,
261,
2844,
480,
... |
boolean dontTellParent, boolean getCHKOnly, boolean reportMetadataOnly) throws InserterException { | boolean getCHKOnly, boolean reportMetadataOnly) throws InserterException { | SingleFileInserter(BaseClientPutter parent, PutCompletionCallback cb, InsertBlock block, boolean metadata, InserterContext ctx, boolean dontCompress, boolean dontTellParent, boolean getCHKOnly, boolean reportMetadataOnly) throws InserterException { this.reportMetadataOnly = reportMetadataOnly; this.parent = parent; this.block = block; this.ctx = ctx; this.metadata = metadata; this.cb = cb; this.dontTellParent = dontTellParent; this.getCHKOnly = getCHKOnly; } | 50619 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50619/21208e342489c2a0c49f6715dd86892930851371/SingleFileInserter.java/buggy/src/freenet/client/async/SingleFileInserter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
5281,
812,
382,
550,
387,
12,
2171,
1227,
6426,
387,
982,
16,
4399,
11238,
2428,
2875,
16,
8040,
1768,
1203,
16,
1875,
202,
6494,
1982,
16,
657,
550,
387,
1042,
1103,
16,
1250,
140... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
5281,
812,
382,
550,
387,
12,
2171,
1227,
6426,
387,
982,
16,
4399,
11238,
2428,
2875,
16,
8040,
1768,
1203,
16,
1875,
202,
6494,
1982,
16,
657,
550,
387,
1042,
1103,
16,
1250,
140... |
users.clear(); | users.clear(); | public void clearUsers(){ users.clear(); } | 4109 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4109/7252922d8cb9bfc101faf67e3ecd4ab689b85a9e/RAInterfaceBean.java/buggy/src/java/se/anatom/ejbca/webdist/rainterface/RAInterfaceBean.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2424,
6588,
1435,
95,
1377,
3677,
18,
8507,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
2424,
6588,
1435,
95,
1377,
3677,
18,
8507,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
public void testIndentInfoBracket () throws BadLocationException { // just bracket BraceReduction rm = doc._reduced; doc.insertString(0, "\n[\n", null); IndentInfo ii = rm.getIndentInformation(); assertEquals("1.0", openBracket, ii.braceType); assertEquals("1.1", 2, ii.distToNewline); assertEquals("1.2", 2, ii.distToBrace); // bracket with stuff in front doc.insertString(1, " helo ", null); doc.move(2); // \n helo (\n# assertEquals("0.1", "\n helo [\n", doc.getText(0, doc.getLength())); ii = rm.getIndentInformation(); assertEquals("2.0", openBracket, ii.braceType); assertEquals("2.1", 9, ii.distToNewline); assertEquals("2.2", 2, ii.distToBrace); //single layer brace doc.move(-1); doc.insertString(9, " [", null); doc.move(1); // \n helo ( (\n# assertEquals("0.2", "\n helo [ [\n", doc.getText(0, doc.getLength())); ii = rm.getIndentInformation(); assertEquals("3.0", openBracket, ii.braceType); assertEquals("3.1", 11, ii.distToNewline); assertEquals("3.2", 2, ii.distToBrace); } | 11192 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11192/e325016b29b8dde8e3ba0908ae34d55edb22c64f/IndentTest.java/buggy/drjava/src/edu/rice/cs/drjava/IndentTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
3813,
7790,
966,
11450,
1435,
15069,
6434,
2735,
503,
95,
759,
3732,
21025,
21965,
3715,
4062,
8864,
33,
2434,
6315,
1118,
26372,
31,
2434,
18,
6387,
780,
12,
20,
10837,
64,
82,
74... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
6459,
3813,
7790,
966,
11450,
1435,
15069,
6434,
2735,
503,
95,
759,
3732,
21025,
21965,
3715,
4062,
8864,
33,
2434,
6315,
1118,
26372,
31,
2434,
18,
6387,
780,
12,
20,
10837,
64,
82,
74... | ||
sb.append(' '); | sb.append(" RTT="); | public String statsPageLine(boolean isSSK, boolean isInsert) { StringBuffer sb = new StringBuffer(100); sb.append(isSSK ? "SSK" : "CHK"); sb.append(' '); sb.append(isInsert ? "Insert" : "Request"); sb.append(' '); MyRequestThrottle throttle = getThrottle(isSSK, isInsert); sb.append(TimeUtil.formatTime((long)throttle.getRTT(), 2, true)); sb.append(" RTT "); sb.append(TimeUtil.formatTime((long)throttle.getDelay(), 2, true)); sb.append(" delay = "); sb.append((long)throttle.getRate()); sb.append("B/sec"); return sb.toString(); } | 50915 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50915/d9d1cea4bc8dfd9ebd6134aaf58a675fbf84d722/RequestStarterGroup.java/clean/src/freenet/node/RequestStarterGroup.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
3177,
1964,
1670,
12,
6494,
353,
1260,
47,
16,
1250,
353,
4600,
13,
288,
202,
202,
780,
1892,
2393,
273,
394,
6674,
12,
6625,
1769,
202,
202,
18366,
18,
6923,
12,
291,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
3177,
1964,
1670,
12,
6494,
353,
1260,
47,
16,
1250,
353,
4600,
13,
288,
202,
202,
780,
1892,
2393,
273,
394,
6674,
12,
6625,
1769,
202,
202,
18366,
18,
6923,
12,
291,
... |
if (object.has(methodId, object)) { try { Context cx = Context.enter(); Object fun = object.get(methodId, object); return ScriptRuntime.call(cx, fun, object, args, object); } catch (JavaScriptException ex) { } finally { Context.exit(); } } return Context.getUndefinedValue(); | try { Context cx = Context.enter(); Object fun = ScriptableObject.getProperty(object,methodId); if (fun == Scriptable.NOT_FOUND) { fun = Undefined.instance; } return ScriptRuntime.call(cx, fun, object, args, object); } catch (JavaScriptException ex) { throw WrappedException.wrapException(ex); } finally { Context.exit(); } | public static Object callMethod(Scriptable object, String methodId, Object[] args) { if (object.has(methodId, object)) { try { Context cx = Context.enter(); Object fun = object.get(methodId, object); return ScriptRuntime.call(cx, fun, object, args, object); } catch (JavaScriptException ex) { // TODO: could occur } finally { Context.exit(); } } return Context.getUndefinedValue(); } | 11366 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/11366/561cf27d9800e6f27583c1f2241f29d0ace7e910/JavaAdapter.java/clean/js/rhino/org/mozilla/javascript/JavaAdapter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
745,
1305,
12,
3651,
429,
733,
16,
514,
707,
548,
16,
4766,
565,
1033,
8526,
833,
13,
377,
288,
377,
202,
430,
261,
1612,
18,
5332,
12,
2039,
548,
16,
733,
3719,
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,
760,
1033,
745,
1305,
12,
3651,
429,
733,
16,
514,
707,
548,
16,
4766,
565,
1033,
8526,
833,
13,
377,
288,
377,
202,
430,
261,
1612,
18,
5332,
12,
2039,
548,
16,
733,
3719,
288,... |
parseError (locals, "<locale> requires a <langpack>"); | parseError(locals, "<locale> requires a <langpack>"); | protected ArrayList getLangpacksCodes(XMLElement data) throws CompilerException { // Initialisation ArrayList langpacks = new ArrayList(); XMLElement locals = requireChildNamed(data, "locale"); // We process each langpack markup Iterator iter = locals.getChildrenNamed("langpack").iterator(); while (iter.hasNext()) { XMLElement pack = (XMLElement) iter.next(); langpacks.add(requireAttribute(pack, "iso3")); } if (langpacks.isEmpty()) parseError (locals, "<locale> requires a <langpack>"); // We return the ArrayList return langpacks; } | 58440 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58440/47db88bfea6b64e47a33aa3c937b2ce6e8640d56/Compiler.java/buggy/izpack-src/trunk/src/lib/com/izforge/izpack/compiler/Compiler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
4750,
2407,
24930,
2920,
87,
6295,
12,
15223,
501,
13,
1216,
28227,
225,
288,
565,
368,
10188,
10742,
565,
2407,
3303,
2920,
87,
273,
394,
2407,
5621,
565,
1139,
11155,
8985,
273,
2583,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
2407,
24930,
2920,
87,
6295,
12,
15223,
501,
13,
1216,
28227,
225,
288,
565,
368,
10188,
10742,
565,
2407,
3303,
2920,
87,
273,
394,
2407,
5621,
565,
1139,
11155,
8985,
273,
2583,
1... |
public org.quickfix.field.UnderlyingCurrentValue getUnderlyingCurrentValue() throws FieldNotFound { org.quickfix.field.UnderlyingCurrentValue value = new org.quickfix.field.UnderlyingCurrentValue(); | public quickfix.field.UnderlyingCurrentValue getUnderlyingCurrentValue() throws FieldNotFound { quickfix.field.UnderlyingCurrentValue value = new quickfix.field.UnderlyingCurrentValue(); | public org.quickfix.field.UnderlyingCurrentValue getUnderlyingCurrentValue() throws FieldNotFound { org.quickfix.field.UnderlyingCurrentValue value = new org.quickfix.field.UnderlyingCurrentValue(); getField(value); return value; } | 5926 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5926/fecc27f98261270772ff182a1d4dfd94b5daa73d/RequestForPositionsAck.java/clean/src/java/src/quickfix/fix44/RequestForPositionsAck.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
3935,
620,
10833,
765,
6291,
3935,
620,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
3935,
620... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
3935,
620,
10833,
765,
6291,
3935,
620,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
14655,
6291,
3935,
620... |
String stat = all.substring(from, to); | String stat; if (to<=length) stat = all.substring(from, to); else stat = all.substring(from); | public Result execStatements(String script) throws KettleDatabaseException { Result result = new Result(); String all = script; int from=0; int to=0; int length = all.length(); int nrstats = 0; while (to<length) { char c = all.charAt(to); if (c=='"') { to++; c=' '; while (to<length && c!='"') { c=all.charAt(to); to++; } } else if (c=='\'') // skip until next ' { to++; c=' '; while (to<length && c!='\'') { c=all.charAt(to); to++; } } else if (all.substring(to).startsWith("--")) // -- means: ignore comment until end of line... { to++; while (to<length && c!='\n' && c!='\r') { c=all.charAt(to); to++; } } if (c==';' || to>=length-1) // end of statement { if (to>=length-1) to++; // grab last char also! String stat = all.substring(from, to); if (!Const.onlySpaces(stat)) { String sql=Const.trim(stat); if (sql.toUpperCase().startsWith("SELECT")) { // A Query log.logDetailed(toString(), "launch SELECT statement: "+Const.CR+sql); nrstats++; ResultSet rs = null; try { rs = openQuery(sql); if (rs!=null) { Row r = getRow(rs); while (r!=null) { result.setNrLinesRead(result.getNrLinesRead()+1); log.logDetailed(toString(), r.toString()); r=getRow(rs); } } else { log.logDebug(toString(), "Error executing query: "+Const.CR+sql); } } finally { try { if ( rs != null ) rs.close(); } catch (SQLException ex ) { log.logDebug(toString(), "Error closing query: "+Const.CR+sql); } } } else // any kind of statement { log.logDetailed(toString(), "launch DDL statement: "+Const.CR+sql); // A DDL statement nrstats++; Result res = execStatement(sql); result.add(res); } } to++; from=to; } else { to++; } } log.logDetailed(toString(), nrstats+" statement"+(nrstats==1?"":"s")+" executed"); return result; } | 58146 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58146/631fb871a3fae954da34431c6aeb70ff412baac8/Database.java/buggy/kettle/src/be/ibridge/kettle/core/database/Database.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
3438,
1196,
14663,
12,
780,
2728,
13,
202,
202,
15069,
1475,
278,
5929,
4254,
503,
202,
95,
3639,
3438,
563,
273,
394,
3438,
5621,
540,
202,
202,
780,
777,
273,
2728,
31,
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,
3438,
1196,
14663,
12,
780,
2728,
13,
202,
202,
15069,
1475,
278,
5929,
4254,
503,
202,
95,
3639,
3438,
563,
273,
394,
3438,
5621,
540,
202,
202,
780,
777,
273,
2728,
31,
202,... |
day = new Day(calendar, date); | day = new Day(calendar, date, firstDay); | public Day getDay() { if (day == null) day = new Day(calendar, date); return day; } | 18469 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/18469/d0eda0df84a1ba4fde5ae4171f9d3207f80ba104/CalendarDisplay.java/buggy/src/java/com/atlassian/confluence/extra/calendar/display/CalendarDisplay.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
13735,
20444,
1435,
565,
288,
3639,
309,
261,
2881,
422,
446,
13,
5411,
2548,
273,
394,
13735,
12,
11650,
16,
1509,
16,
1122,
4245,
1769,
3639,
327,
2548,
31,
565,
289,
2,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
13735,
20444,
1435,
565,
288,
3639,
309,
261,
2881,
422,
446,
13,
5411,
2548,
273,
394,
13735,
12,
11650,
16,
1509,
16,
1122,
4245,
1769,
3639,
327,
2548,
31,
565,
289,
2,
-100,
-... |
ready(); | if (client.doYesNoDialog( "Punch " + client.game.getEntity(ten).getDisplayName() + "?", "To Hit [RA]: " + rightArm.getValueAsString() + " (" + Compute.oddsAbove(rightArm.getValue()) + "%) (" + rightArm.getDesc() + ")" + "\nDamage [RA]: "+Compute.getPunchDamageFor(ce(),PunchAttackAction.RIGHT)+rightArm.getTableDesc() + "\n and/or" +"\nTo Hit [LA]: " + leftArm.getValueAsString() + " (" + Compute.oddsAbove(leftArm.getValue()) + "%) (" + leftArm.getDesc() + ")" + "\nDamage [LA]: "+Compute.getPunchDamageFor(ce(),PunchAttackAction.LEFT)+leftArm.getTableDesc() ) ) { disableButtons(); if (leftArm.getValue() != ToHitData.IMPOSSIBLE && rightArm.getValue() != ToHitData.IMPOSSIBLE) { attacks.addElement(new PunchAttackAction(cen, ten, PunchAttackAction.BOTH)); } else if (leftArm.getValue() < rightArm.getValue()) { attacks.addElement(new PunchAttackAction(cen, ten, PunchAttackAction.LEFT)); } else { attacks.addElement(new PunchAttackAction(cen, ten, PunchAttackAction.RIGHT)); } ready(); }; | private void punch() { disableButtons(); final ToHitData leftArm = Compute.toHitPunch(client.game, cen, ten, PunchAttackAction.LEFT); final ToHitData rightArm = Compute.toHitPunch(client.game, cen, ten, PunchAttackAction.RIGHT); if (leftArm.getValue() != ToHitData.IMPOSSIBLE && rightArm.getValue() != ToHitData.IMPOSSIBLE) { attacks.addElement(new PunchAttackAction(cen, ten, PunchAttackAction.BOTH)); } else if (leftArm.getValue() < rightArm.getValue()) { attacks.addElement(new PunchAttackAction(cen, ten, PunchAttackAction.LEFT)); } else { attacks.addElement(new PunchAttackAction(cen, ten, PunchAttackAction.RIGHT)); } ready(); } | 3464 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/3464/74dca4ac88f78c7a76550b5e2d1a9a4e31c07c13/PhysicalDisplay.java/clean/megamek/src/megamek/client/ui/AWT/PhysicalDisplay.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
293,
4384,
1435,
288,
3639,
4056,
14388,
5621,
3639,
727,
2974,
13616,
751,
2002,
25583,
273,
8155,
18,
869,
13616,
52,
4384,
12,
2625,
18,
13957,
16,
276,
275,
16,
19572,
16,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
293,
4384,
1435,
288,
3639,
4056,
14388,
5621,
3639,
727,
2974,
13616,
751,
2002,
25583,
273,
8155,
18,
869,
13616,
52,
4384,
12,
2625,
18,
13957,
16,
276,
275,
16,
19572,
16,
... |
protected int convertWidthInCharsToPixels(int chars) { return convertHorizontalDLUsToPixels(chars * 4); | public static int convertWidthInCharsToPixels(FontMetrics fontMetrics, int chars) { return fontMetrics.getAverageCharWidth() * chars; | protected int convertWidthInCharsToPixels(int chars) { return convertHorizontalDLUsToPixels(chars * 4);} | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/d9f7a617ed98e778f2d85eb7cd8f6aa746530e2c/Dialog.java/buggy/bundles/org.eclipse.ui/Eclipse JFace/org/eclipse/jface/dialogs/Dialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
4750,
509,
1765,
2384,
382,
7803,
774,
18079,
12,
474,
5230,
13,
288,
202,
2463,
1765,
14457,
8914,
3477,
774,
18079,
12,
7549,
380,
1059,
1769,
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,
0,
0,
0,
0,
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,
4750,
509,
1765,
2384,
382,
7803,
774,
18079,
12,
474,
5230,
13,
288,
202,
2463,
1765,
14457,
8914,
3477,
774,
18079,
12,
7549,
380,
1059,
1769,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100... |
if ((contentSpec.type & 0x0f) == XMLContentSpec.CONTENTSPECNODE_ANY) { | if ((contentSpec.type & 0x0f) == XMLContentSpec.CONTENTSPECNODE_ANY || (contentSpec.type & 0x0f) == XMLContentSpec.CONTENTSPECNODE_ANY_OTHER || (contentSpec.type & 0x0f) == XMLContentSpec.CONTENTSPECNODE_ANY_NS) { | private final CMNode buildSyntaxTree(int startNode, XMLContentSpec contentSpec) throws CMException { // We will build a node at this level for the new tree CMNode nodeRet = null; getContentSpec(startNode, contentSpec); if ((contentSpec.type & 0x0f) == XMLContentSpec.CONTENTSPECNODE_ANY) { //nodeRet = new CMAny(contentSpec.type, -1, fLeafCount++); nodeRet = new CMAny(contentSpec.type, contentSpec.otherValue, fLeafCount++); } else if ((contentSpec.type & 0x0f) == XMLContentSpec.CONTENTSPECNODE_ANY_OTHER) { nodeRet = new CMAny(contentSpec.type, contentSpec.otherValue, fLeafCount++); } else if ((contentSpec.type & 0x0f) == XMLContentSpec.CONTENTSPECNODE_ANY_LOCAL) { nodeRet = new CMAny(contentSpec.type, 0, fLeafCount++); } // // If this node is a leaf, then it's an easy one. We just add it // to the tree. // else if (contentSpec.type == XMLContentSpec.CONTENTSPECNODE_LEAF) { // // Create a new leaf node, and pass it the current leaf count, // which is its DFA state position. Bump the leaf count after // storing it. This makes the positions zero based since we // store first and then increment. // fQName1.setValues(-1, contentSpec.value, contentSpec.value, contentSpec.otherValue); nodeRet = new CMLeaf(fQName1, fLeafCount++); } else { // // It's not a leaf, so we have to recurse its left and maybe right // nodes. Save both values before we recurse and trash the node. // final int leftNode = contentSpec.value; final int rightNode = contentSpec.otherValue; if ((contentSpec.type == XMLContentSpec.CONTENTSPECNODE_CHOICE) || (contentSpec.type == XMLContentSpec.CONTENTSPECNODE_SEQ)) { // // Recurse on both children, and return a binary op node // with the two created sub nodes as its children. The node // type is the same type as the source. // nodeRet = new CMBinOp( contentSpec.type, buildSyntaxTree(leftNode, contentSpec) , buildSyntaxTree(rightNode, contentSpec)); /* MODIFIED (Jan, 2001) */ } else if (contentSpec.type == XMLContentSpec.CONTENTSPECNODE_ZERO_OR_MORE || contentSpec.type == XMLContentSpec.CONTENTSPECNODE_ZERO_OR_ONE || contentSpec.type == XMLContentSpec.CONTENTSPECNODE_ONE_OR_MORE) { nodeRet = new CMUniOp(contentSpec.type, buildSyntaxTree(leftNode, contentSpec)); } /* MODIFIED (Jan, 2001) */ else { throw new CMException(ImplementationMessages.VAL_CST); } } // And return our new node for this level return nodeRet; } | 4434 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4434/324a378263df724c6237910dc043c39b4adb901f/Grammar.java/clean/src/org/apache/xerces/validators/common/Grammar.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
727,
15871,
907,
1361,
8070,
2471,
12,
474,
25467,
16,
3167,
1350,
1990,
29617,
13,
1216,
15871,
503,
565,
288,
3639,
368,
1660,
903,
1361,
279,
756,
622,
333,
1801,
364,
326,
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,
377,
3238,
727,
15871,
907,
1361,
8070,
2471,
12,
474,
25467,
16,
3167,
1350,
1990,
29617,
13,
1216,
15871,
503,
565,
288,
3639,
368,
1660,
903,
1361,
279,
756,
622,
333,
1801,
364,
326,
394,
... |
Map em = makeEmptyMap(); | resetEmpty(); | public void testMapContainsKey() { Object[] keys = getSampleKeys(); Map em = makeEmptyMap(); for(int i = 0; i < keys.length; i++) { assertTrue("Map must not contain key when map is empty", !em.containsKey(keys[i])); } Map fm = makeFullMap(); for(int i = 0; i < keys.length; i++) { assertTrue("Map must contain key for a mapping in the map. " + "Missing: " + keys[i], fm.containsKey(keys[i])); } } | 55609 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55609/326f500bb3e288c361bbe80b41c0e22397ba3ab5/TestMap.java/buggy/src/test/org/apache/commons/collections/TestMap.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
863,
10846,
653,
1435,
288,
3639,
1033,
8526,
1311,
273,
26078,
2396,
5621,
3639,
2715,
1921,
5621,
4202,
364,
12,
474,
277,
273,
374,
31,
277,
411,
1311,
18,
2469,
31,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
863,
10846,
653,
1435,
288,
3639,
1033,
8526,
1311,
273,
26078,
2396,
5621,
3639,
2715,
1921,
5621,
4202,
364,
12,
474,
277,
273,
374,
31,
277,
411,
1311,
18,
2469,
31,
... |
vcs.createFile(p("file"), "content"); | vcs.createFile(p("/file"), "content"); | public void testDoesNotStoreUnappliedChanges() { vcs.createFile(p("file"), "content"); vcs.store(); vcs.store(); LocalVcs result = createVcs(); assertTrue(result.isClean()); } | 12814 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/12814/8a6fdbc15b3cd4aaa232cf2026aa4a60418c162a/LocalVcsStoringTest.java/buggy/LocalVcs/test/com/intellij/localvcs/LocalVcsStoringTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
10154,
1248,
2257,
984,
438,
3110,
7173,
1435,
288,
565,
20255,
18,
2640,
812,
12,
84,
2932,
19,
768,
6,
3631,
315,
1745,
8863,
565,
20255,
18,
2233,
5621,
565,
20255,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
918,
1842,
10154,
1248,
2257,
984,
438,
3110,
7173,
1435,
288,
565,
20255,
18,
2640,
812,
12,
84,
2932,
19,
768,
6,
3631,
315,
1745,
8863,
565,
20255,
18,
2233,
5621,
565,
20255,
... |
iCodeTop = addByte((byte) TokenStream.ONE, iCodeTop); | iCodeTop = addByte(TokenStream.ONE, iCodeTop); | private int generateICode(Node node, int iCodeTop) { int type = node.getType(); Node child = node.getFirstChild(); Node firstChild = child; switch (type) { case TokenStream.FUNCTION : { iCodeTop = addByte((byte) TokenStream.CLOSURE, iCodeTop); Node fn = (Node) node.getProp(Node.FUNCTION_PROP); Short index = (Short) fn.getProp(Node.FUNCTION_PROP); iCodeTop = addByte((byte)(index.shortValue() >> 8), iCodeTop); iCodeTop = addByte((byte)(index.shortValue() & 0xff), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.SCRIPT : iCodeTop = updateLineNumber(node, iCodeTop); while (child != null) { if (child.getType() != TokenStream.FUNCTION) iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); } break; case TokenStream.CASE : iCodeTop = updateLineNumber(node, iCodeTop); child = child.getNextSibling(); while (child != null) { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); } break; case TokenStream.LABEL : case TokenStream.WITH : case TokenStream.LOOP : case TokenStream.DEFAULT : case TokenStream.BLOCK : case TokenStream.VOID : case TokenStream.NOP : iCodeTop = updateLineNumber(node, iCodeTop); while (child != null) { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); } break; case TokenStream.COMMA : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); itsStackDepth--; child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); break; case TokenStream.SWITCH : { iCodeTop = updateLineNumber(node, iCodeTop); iCodeTop = generateICode(child, iCodeTop); int theLocalSlot = itsData.itsMaxLocals++; iCodeTop = addByte((byte) TokenStream.NEWTEMP, iCodeTop); iCodeTop = addByte((byte)theLocalSlot, iCodeTop); iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); itsStackDepth--; /* reminder - below we construct new GOTO nodes that aren't linked into the tree just for the purpose of having a node to pass to the addGoto routine. (Parallels codegen here). Seems unnecessary. */ Vector cases = (Vector) node.getProp(Node.CASES_PROP); for (int i = 0; i < cases.size(); i++) { Node thisCase = (Node)cases.elementAt(i); Node first = thisCase.getFirstChild(); // the case expression is the firstmost child // the rest will be generated when the case // statements are encountered as siblings of // the switch statement. iCodeTop = generateICode(first, iCodeTop); iCodeTop = addByte((byte) TokenStream.USETEMP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte((byte) theLocalSlot, iCodeTop); iCodeTop = addByte((byte) TokenStream.SHEQ, iCodeTop); Node target = new Node(TokenStream.TARGET); thisCase.addChildAfter(target, first); Node branch = new Node(TokenStream.IFEQ); branch.putProp(Node.TARGET_PROP, target); iCodeTop = addGoto(branch, TokenStream.IFEQ, iCodeTop); itsStackDepth--; } Node defaultNode = (Node) node.getProp(Node.DEFAULT_PROP); if (defaultNode != null) { Node defaultTarget = new Node(TokenStream.TARGET); defaultNode.getFirstChild().addChildToFront(defaultTarget); Node branch = new Node(TokenStream.GOTO); branch.putProp(Node.TARGET_PROP, defaultTarget); iCodeTop = addGoto(branch, TokenStream.GOTO, iCodeTop); } Node breakTarget = (Node) node.getProp(Node.BREAK_PROP); Node branch = new Node(TokenStream.GOTO); branch.putProp(Node.TARGET_PROP, breakTarget); iCodeTop = addGoto(branch, TokenStream.GOTO, iCodeTop); } break; case TokenStream.TARGET : { Object lblObect = node.getProp(Node.LABEL_PROP); if (lblObect == null) { int label = markLabel(acquireLabel(), iCodeTop); node.putProp(Node.LABEL_PROP, new Integer(label)); } else { int label = ((Integer)lblObect).intValue(); markLabel(label, iCodeTop); } // if this target has a FINALLY_PROP, it is a JSR target // and so has a PC value on the top of the stack if (node.getProp(Node.FINALLY_PROP) != null) { itsStackDepth = 1; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } } break; case TokenStream.EQOP : case TokenStream.RELOP : { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); int op = node.getInt(); if (version == Context.VERSION_1_2) { if (op == TokenStream.EQ) op = TokenStream.SHEQ; else if (op == TokenStream.NE) op = TokenStream.SHNE; } iCodeTop = addByte((byte) op, iCodeTop); itsStackDepth--; } break; case TokenStream.NEW : case TokenStream.CALL : { if (itsSourceFile != null && (itsData.itsSourceFile == null || ! itsSourceFile.equals(itsData.itsSourceFile))) itsData.itsSourceFile = itsSourceFile; iCodeTop = addByte((byte)TokenStream.SOURCEFILE, iCodeTop); int childCount = 0; short nameIndex = -1; while (child != null) { iCodeTop = generateICode(child, iCodeTop); if (nameIndex == -1) { if (child.getType() == TokenStream.NAME) nameIndex = (short)(itsData.itsStringTableIndex - 1); else if (child.getType() == TokenStream.GETPROP) nameIndex = (short)(itsData.itsStringTableIndex - 1); } child = child.getNextSibling(); childCount++; } if (node.getProp(Node.SPECIALCALL_PROP) != null) { // embed line number and source filename iCodeTop = addByte((byte) TokenStream.CALLSPECIAL, iCodeTop); iCodeTop = addByte((byte)(itsLineNumber >> 8), iCodeTop); iCodeTop = addByte((byte)(itsLineNumber & 0xff), iCodeTop); iCodeTop = addString(itsSourceFile, iCodeTop); } else { iCodeTop = addByte((byte) type, iCodeTop); iCodeTop = addByte((byte)(nameIndex >> 8), iCodeTop); iCodeTop = addByte((byte)(nameIndex & 0xFF), iCodeTop); } itsStackDepth -= (childCount - 1); // always a result value // subtract from child count to account for [thisObj &] fun if (type == TokenStream.NEW) childCount -= 1; else childCount -= 2; iCodeTop = addByte((byte)(childCount >> 8), iCodeTop); iCodeTop = addByte((byte)(childCount & 0xff), iCodeTop); if (childCount > itsData.itsMaxArgs) itsData.itsMaxArgs = childCount; iCodeTop = addByte((byte)TokenStream.SOURCEFILE, iCodeTop); } break; case TokenStream.NEWLOCAL : case TokenStream.NEWTEMP : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.NEWTEMP, iCodeTop); iCodeTop = addLocalRef(node, iCodeTop); } break; case TokenStream.USELOCAL : { if (node.getProp(Node.TARGET_PROP) != null) iCodeTop = addByte((byte) TokenStream.RETSUB, iCodeTop); else { iCodeTop = addByte((byte) TokenStream.USETEMP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } Node temp = (Node) node.getProp(Node.LOCAL_PROP); iCodeTop = addLocalRef(temp, iCodeTop); } break; case TokenStream.USETEMP : { iCodeTop = addByte((byte) TokenStream.USETEMP, iCodeTop); Node temp = (Node) node.getProp(Node.TEMP_PROP); iCodeTop = addLocalRef(temp, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.IFEQ : case TokenStream.IFNE : iCodeTop = generateICode(child, iCodeTop); itsStackDepth--; // after the conditional GOTO, really // fall thru... case TokenStream.GOTO : iCodeTop = addGoto(node, (byte) type, iCodeTop); break; case TokenStream.JSR : { /* mark the target with a FINALLY_PROP to indicate that it will have an incoming PC value on the top of the stack. !!! This only works if the target follows the JSR in the tree. !!! */ Node target = (Node)(node.getProp(Node.TARGET_PROP)); target.putProp(Node.FINALLY_PROP, node); iCodeTop = addGoto(node, TokenStream.GOSUB, iCodeTop); } break; case TokenStream.AND : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.DUP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int falseTarget = acquireLabel(); iCodeTop = addGoto(falseTarget, TokenStream.IFNE, iCodeTop); iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); itsStackDepth--; child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); markLabel(falseTarget, iCodeTop); } break; case TokenStream.OR : { iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.DUP, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int trueTarget = acquireLabel(); iCodeTop = addGoto(trueTarget, TokenStream.IFEQ, iCodeTop); iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); itsStackDepth--; child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); markLabel(trueTarget, iCodeTop); } break; case TokenStream.GETPROP : { iCodeTop = generateICode(child, iCodeTop); String s = (String) node.getProp(Node.SPECIAL_PROP_PROP); if (s != null) { if (s.equals("__proto__")) iCodeTop = addByte((byte) TokenStream.GETPROTO, iCodeTop); else if (s.equals("__parent__")) iCodeTop = addByte((byte) TokenStream.GETSCOPEPARENT, iCodeTop); else badTree(node); } else { child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.GETPROP, iCodeTop); itsStackDepth--; } } break; case TokenStream.DELPROP : case TokenStream.BITAND : case TokenStream.BITOR : case TokenStream.BITXOR : case TokenStream.LSH : case TokenStream.RSH : case TokenStream.URSH : case TokenStream.ADD : case TokenStream.SUB : case TokenStream.MOD : case TokenStream.DIV : case TokenStream.MUL : case TokenStream.GETELEM : iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) type, iCodeTop); itsStackDepth--; break; case TokenStream.CONVERT : { iCodeTop = generateICode(child, iCodeTop); Object toType = node.getProp(Node.TYPE_PROP); if (toType == ScriptRuntime.NumberClass) iCodeTop = addByte((byte) TokenStream.POS, iCodeTop); else badTree(node); } break; case TokenStream.UNARYOP : iCodeTop = generateICode(child, iCodeTop); switch (node.getInt()) { case TokenStream.VOID : iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); iCodeTop = addByte((byte) TokenStream.UNDEFINED, iCodeTop); break; case TokenStream.NOT : { int trueTarget = acquireLabel(); int beyond = acquireLabel(); iCodeTop = addGoto(trueTarget, TokenStream.IFEQ, iCodeTop); iCodeTop = addByte((byte) TokenStream.TRUE, iCodeTop); iCodeTop = addGoto(beyond, TokenStream.GOTO, iCodeTop); markLabel(trueTarget, iCodeTop); iCodeTop = addByte((byte) TokenStream.FALSE, iCodeTop); markLabel(beyond, iCodeTop); } break; case TokenStream.BITNOT : iCodeTop = addByte((byte) TokenStream.BITNOT, iCodeTop); break; case TokenStream.TYPEOF : iCodeTop = addByte((byte) TokenStream.TYPEOF, iCodeTop); break; case TokenStream.SUB : iCodeTop = addByte((byte) TokenStream.NEG, iCodeTop); break; case TokenStream.ADD : iCodeTop = addByte((byte) TokenStream.POS, iCodeTop); break; default: badTree(node); break; } break; case TokenStream.SETPROP : { iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); String s = (String) node.getProp(Node.SPECIAL_PROP_PROP); if (s != null) { if (s.equals("__proto__")) iCodeTop = addByte((byte) TokenStream.SETPROTO, iCodeTop); else if (s.equals("__parent__")) iCodeTop = addByte((byte) TokenStream.SETPARENT, iCodeTop); else badTree(node); } else { child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.SETPROP, iCodeTop); itsStackDepth -= 2; } } break; case TokenStream.SETELEM : iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) type, iCodeTop); itsStackDepth -= 2; break; case TokenStream.SETNAME : iCodeTop = generateICode(child, iCodeTop); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.SETNAME, iCodeTop); iCodeTop = addString(firstChild.getString(), iCodeTop); itsStackDepth--; break; case TokenStream.TYPEOF : { String name = node.getString(); int index = -1; // use typeofname if an activation frame exists // since the vars all exist there instead of in jregs if (itsInFunctionFlag && !itsData.itsNeedsActivation) index = itsVariableTable.getOrdinal(name); if (index == -1) { iCodeTop = addByte((byte) TokenStream.TYPEOFNAME, iCodeTop); iCodeTop = addString(name, iCodeTop); } else { iCodeTop = addByte((byte) TokenStream.GETVAR, iCodeTop); iCodeTop = addByte((byte) index, iCodeTop); iCodeTop = addByte((byte) TokenStream.TYPEOF, iCodeTop); } itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.PARENT : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.GETPARENT, iCodeTop); break; case TokenStream.GETBASE : case TokenStream.BINDNAME : case TokenStream.NAME : case TokenStream.STRING : iCodeTop = addByte((byte) type, iCodeTop); iCodeTop = addString(node.getString(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case TokenStream.INC : case TokenStream.DEC : { int childType = child.getType(); switch (childType) { case TokenStream.GETVAR : { String name = child.getString(); if (itsData.itsNeedsActivation) { iCodeTop = addByte((byte) TokenStream.SCOPE, iCodeTop); iCodeTop = addByte((byte) TokenStream.STRING, iCodeTop); iCodeTop = addString(name, iCodeTop); itsStackDepth += 2; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte((byte) (type == TokenStream.INC ? TokenStream.PROPINC : TokenStream.PROPDEC), iCodeTop); itsStackDepth--; } else { iCodeTop = addByte((byte) (type == TokenStream.INC ? TokenStream.VARINC : TokenStream.VARDEC), iCodeTop); int i = itsVariableTable.getOrdinal(name); iCodeTop = addByte((byte)i, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } } break; case TokenStream.GETPROP : case TokenStream.GETELEM : { Node getPropChild = child.getFirstChild(); iCodeTop = generateICode(getPropChild, iCodeTop); getPropChild = getPropChild.getNextSibling(); iCodeTop = generateICode(getPropChild, iCodeTop); if (childType == TokenStream.GETPROP) iCodeTop = addByte((byte) (type == TokenStream.INC ? TokenStream.PROPINC : TokenStream.PROPDEC), iCodeTop); else iCodeTop = addByte((byte) (type == TokenStream.INC ? TokenStream.ELEMINC : TokenStream.ELEMDEC), iCodeTop); itsStackDepth--; } break; default : { iCodeTop = addByte((byte) (type == TokenStream.INC ? TokenStream.NAMEINC : TokenStream.NAMEDEC), iCodeTop); iCodeTop = addString(child.getString(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; } } break; case TokenStream.NUMBER : { double num = node.getDouble(); if (num == 0.0) { iCodeTop = addByte((byte) TokenStream.ZERO, iCodeTop); } else if (num == 1.0) { iCodeTop = addByte((byte) TokenStream.ONE, iCodeTop); } else { iCodeTop = addByte((byte) TokenStream.NUMBER, iCodeTop); iCodeTop = addNumber(num, iCodeTop); } itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; } case TokenStream.POP : case TokenStream.POPV : iCodeTop = updateLineNumber(node, iCodeTop); case TokenStream.ENTERWITH : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) type, iCodeTop); itsStackDepth--; break; case TokenStream.GETTHIS : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) type, iCodeTop); break; case TokenStream.NEWSCOPE : iCodeTop = addByte((byte) type, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case TokenStream.LEAVEWITH : iCodeTop = addByte((byte) type, iCodeTop); break; case TokenStream.TRY : { itsTryDepth++; if (itsTryDepth > itsData.itsMaxTryDepth) itsData.itsMaxTryDepth = itsTryDepth; Node catchTarget = (Node)node.getProp(Node.TARGET_PROP); Node finallyTarget = (Node)node.getProp(Node.FINALLY_PROP); if (catchTarget == null) { iCodeTop = addByte((byte) TokenStream.TRY, iCodeTop); iCodeTop = addByte((byte)0, iCodeTop); iCodeTop = addByte((byte)0, iCodeTop); } else iCodeTop = addGoto(node, TokenStream.TRY, iCodeTop); int finallyHandler = 0; if (finallyTarget != null) { finallyHandler = acquireLabel(); int theLabel = finallyHandler & 0x7FFFFFFF; itsLabelTable[theLabel].addFixup(iCodeTop); } iCodeTop = addByte((byte)0, iCodeTop); iCodeTop = addByte((byte)0, iCodeTop); Node lastChild = null; /* when we encounter the child of the catchTarget, we set the stackDepth to 1 to account for the incoming exception object. */ boolean insertedEndTry = false; while (child != null) { if (catchTarget != null && lastChild == catchTarget) { itsStackDepth = 1; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } /* When the following child is the catchTarget (or the finallyTarget if there are no catches), the current child is the goto at the end of the try statemets, we need to emit the endtry before that goto. */ Node nextSibling = child.getNextSibling(); if (!insertedEndTry && nextSibling != null && (nextSibling == catchTarget || nextSibling == finallyTarget)) { iCodeTop = addByte((byte) TokenStream.ENDTRY, iCodeTop); insertedEndTry = true; } iCodeTop = generateICode(child, iCodeTop); lastChild = child; child = child.getNextSibling(); } itsStackDepth = 0; if (finallyTarget != null) { // normal flow goes around the finally handler stublet int skippy = acquireLabel(); iCodeTop = addGoto(skippy, TokenStream.GOTO, iCodeTop); // on entry the stack will have the exception object markLabel(finallyHandler, iCodeTop); itsStackDepth = 1; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; int theLocalSlot = itsData.itsMaxLocals++; iCodeTop = addByte((byte) TokenStream.NEWTEMP, iCodeTop); iCodeTop = addByte((byte)theLocalSlot, iCodeTop); iCodeTop = addByte((byte) TokenStream.POP, iCodeTop); Integer finallyLabel = (Integer)(finallyTarget.getProp(Node.LABEL_PROP)); iCodeTop = addGoto(finallyLabel.intValue(), TokenStream.GOSUB, iCodeTop); iCodeTop = addByte((byte) TokenStream.USETEMP, iCodeTop); iCodeTop = addByte((byte)theLocalSlot, iCodeTop); iCodeTop = addByte((byte) TokenStream.JTHROW, iCodeTop); itsStackDepth = 0; markLabel(skippy, iCodeTop); } itsTryDepth--; } break; case TokenStream.THROW : iCodeTop = updateLineNumber(node, iCodeTop); iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.THROW, iCodeTop); itsStackDepth--; break; case TokenStream.RETURN : iCodeTop = updateLineNumber(node, iCodeTop); if (child != null) iCodeTop = generateICode(child, iCodeTop); else { iCodeTop = addByte((byte) TokenStream.UNDEFINED, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } iCodeTop = addGoto(node, TokenStream.RETURN, iCodeTop); itsStackDepth--; break; case TokenStream.GETVAR : { String name = node.getString(); if (itsData.itsNeedsActivation) { // SETVAR handled this by turning into a SETPROP, but // we can't do that to a GETVAR without manufacturing // bogus children. Instead we use a special op to // push the current scope. iCodeTop = addByte((byte) TokenStream.SCOPE, iCodeTop); iCodeTop = addByte((byte) TokenStream.STRING, iCodeTop); iCodeTop = addString(name, iCodeTop); itsStackDepth += 2; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; iCodeTop = addByte((byte) TokenStream.GETPROP, iCodeTop); itsStackDepth--; } else { int index = itsVariableTable.getOrdinal(name); iCodeTop = addByte((byte) TokenStream.GETVAR, iCodeTop); iCodeTop = addByte((byte)index, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } } break; case TokenStream.SETVAR : { if (itsData.itsNeedsActivation) { child.setType(TokenStream.BINDNAME); node.setType(TokenStream.SETNAME); iCodeTop = generateICode(node, iCodeTop); } else { String name = child.getString(); child = child.getNextSibling(); iCodeTop = generateICode(child, iCodeTop); int index = itsVariableTable.getOrdinal(name); iCodeTop = addByte((byte) TokenStream.SETVAR, iCodeTop); iCodeTop = addByte((byte)index, iCodeTop); } } break; case TokenStream.PRIMARY: iCodeTop = addByte((byte) node.getInt(), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; break; case TokenStream.ENUMINIT : iCodeTop = generateICode(child, iCodeTop); iCodeTop = addByte((byte) TokenStream.ENUMINIT, iCodeTop); iCodeTop = addLocalRef(node, iCodeTop); itsStackDepth--; break; case TokenStream.ENUMNEXT : { iCodeTop = addByte((byte) TokenStream.ENUMNEXT, iCodeTop); Node init = (Node)node.getProp(Node.ENUM_PROP); iCodeTop = addLocalRef(init, iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; case TokenStream.ENUMDONE : // could release the local here?? break; case TokenStream.OBJECT : { Node regexp = (Node) node.getProp(Node.REGEXP_PROP); int index = ((Integer)(regexp.getProp( Node.REGEXP_PROP))).intValue(); iCodeTop = addByte((byte) TokenStream.OBJECT, iCodeTop); iCodeTop = addByte((byte)(index >> 8), iCodeTop); iCodeTop = addByte((byte)(index & 0xff), iCodeTop); itsStackDepth++; if (itsStackDepth > itsData.itsMaxStack) itsData.itsMaxStack = itsStackDepth; } break; default : badTree(node); break; } return iCodeTop; } | 47609 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/47609/f6c346cc7699c007b0b9b27d9c3cdb5446052c64/Interpreter.java/buggy/js/rhino/src/org/mozilla/javascript/Interpreter.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
2103,
45,
1085,
12,
907,
756,
16,
509,
277,
1085,
3401,
13,
288,
3639,
509,
618,
273,
756,
18,
588,
559,
5621,
3639,
2029,
1151,
273,
756,
18,
588,
3759,
1763,
5621,
3639,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
509,
2103,
45,
1085,
12,
907,
756,
16,
509,
277,
1085,
3401,
13,
288,
3639,
509,
618,
273,
756,
18,
588,
559,
5621,
3639,
2029,
1151,
273,
756,
18,
588,
3759,
1763,
5621,
3639,
... |
private static PreferenceManager createPreferenceManager( ReportElementHandle handle ) { PreferenceManager preferenceManager = new PreferenceManager( '/' ); //Get the pages from the registry List pageContributions = new ArrayList( ); // adds preference pages into page contributions. pageContributions.add( new PreferenceNode( "General", //$NON-NLS-1$ new GeneralPreferencePage( handle ) ) ); pageContributions.add( new PreferenceNode( "Font", //$NON-NLS-1$ new FontPreferencePage( handle ) ) ); pageContributions.add( new PreferenceNode( "Background", //$NON-NLS-1$ new BackgroundPreferencePage( handle ) ) ); pageContributions.add( new PreferenceNode( "Block", //$NON-NLS-1$ new BlockPreferencePage( handle ) ) ); pageContributions.add( new PreferenceNode( "Box", //$NON-NLS-1$ new BoxPreferencePage( handle ) ) ); pageContributions.add( new PreferenceNode( "Border", //$NON-NLS-1$ new BorderPreferencePage( handle ) ) ); pageContributions.add( new PreferenceNode( "Number Format", //$NON-NLS-1$ new FormatNumberPreferencePage( handle ) ) ); pageContributions.add( new PreferenceNode( "DateTime Format", //$NON-NLS-1$ new FormatDateTimePreferencePage( handle ) ) ); pageContributions.add( new PreferenceNode( "String Format", //$NON-NLS-1$ new FormatStringPreferencePage( handle ) ) ); pageContributions.add( new PreferenceNode( "PageBreak", //$NON-NLS-1$ new PageBreakPreferencePage( handle ) ) ); pageContributions.add( new PreferenceNode( "Map", //$NON-NLS-1$ new MapPreferencePage( handle ) ) ); pageContributions.add( new PreferenceNode( "Highlights", //$NON-NLS-1$ new HighlightsPreferencePage( handle ) ) ); //Add the contributions to the manager Iterator it = pageContributions.iterator( ); while ( it.hasNext( ) ) { preferenceManager.addToRoot( (IPreferenceNode) it.next( ) ); } return preferenceManager; } | 5230 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5230/14e0e0b168f383468901a548978e32966e9bbbc0/StyleBuilder.java/buggy/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/StyleBuilder.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
29125,
1318,
752,
9624,
1318,
12,
1082,
202,
4820,
1046,
3259,
1640,
262,
202,
95,
202,
202,
9624,
1318,
11555,
1318,
273,
394,
29125,
1318,
12,
2023,
11272,
202,
202,
759... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
760,
29125,
1318,
752,
9624,
1318,
12,
1082,
202,
4820,
1046,
3259,
1640,
262,
202,
95,
202,
202,
9624,
1318,
11555,
1318,
273,
394,
29125,
1318,
12,
2023,
11272,
202,
202,
759... | ||
Iterator references = callback.getReferences().iterator(); assertEquals( callback.getReferences().size(), 2 ); assertEquals( ((IASTReference) references.next()).getReferencedElement(), m ); assertEquals( ((IASTReference) references.next()).getReferencedElement(), pm ); | assertAllReferences( 2 /* should be 3 */, createTaskList( new Task( m ), new Task( pm ) /* ,new Task( f2 )*/)); | public void testUnaryStarCastexpressionPointerToFunction_Bug43241() throws Exception { Iterator i = parse ("int m(int); \n int *pm = &m; \n int f(){} \n int f(int); \n int x = f((*pm)(5));").getDeclarations(); IASTFunction m = (IASTFunction) i.next(); IASTVariable pm = (IASTVariable) i.next(); IASTFunction f1 = (IASTFunction) i.next(); IASTFunction f2 = (IASTFunction) i.next(); IASTVariable x = (IASTVariable) i.next(); Iterator references = callback.getReferences().iterator(); assertEquals( callback.getReferences().size(), 2 ); // should be 3 assertEquals( ((IASTReference) references.next()).getReferencedElement(), m ); assertEquals( ((IASTReference) references.next()).getReferencedElement(), pm );// assertEquals( ((IASTReference) references.next()).getReferencedElement(), f2 ); } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/02c194aaf46b86d6f7a904d6f531e535d47002ba/FailedCompleteParseASTExpressionTest.java/buggy/core/org.eclipse.cdt.core.tests/failures/org/eclipse/cdt/core/parser/failedTests/FailedCompleteParseASTExpressionTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
15972,
18379,
9735,
8692,
4926,
774,
2083,
67,
19865,
24,
1578,
9803,
1435,
1216,
1185,
202,
95,
202,
202,
3198,
277,
273,
1109,
7566,
474,
312,
12,
474,
1769,
521,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
15972,
18379,
9735,
8692,
4926,
774,
2083,
67,
19865,
24,
1578,
9803,
1435,
1216,
1185,
202,
95,
202,
202,
3198,
277,
273,
1109,
7566,
474,
312,
12,
474,
1769,
521,
... |
assertInstances(collector, f, 2); assertInstances(collector, a, 3); } | assertInstances(collector, f, 2); assertInstances(collector, a, 3); } | public void testFunctionDef() throws Exception { StringBuffer buffer = new StringBuffer(); buffer.append("void f( int a ); \n"); //$NON-NLS-1$ buffer.append("void f( int b ){ \n"); //$NON-NLS-1$ buffer.append(" b; \n"); //$NON-NLS-1$ buffer.append("} \n"); //$NON-NLS-1$ IASTTranslationUnit tu = parse(buffer.toString(), ParserLanguage.CPP); CPPNameCollector collector = new CPPNameCollector(); CPPVisitor.visitTranslationUnit(tu, collector); IFunction f = (IFunction) collector.getName(0).resolveBinding(); IParameter a = (IParameter) collector.getName(1).resolveBinding(); assertInstances(collector, f, 2); assertInstances(collector, a, 3); } | 6192 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6192/85642473031be9bd27aacd0ceddea64e2ce41399/AST2CPPTests.java/clean/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2CPPTests.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
1842,
2083,
3262,
1435,
1216,
1185,
288,
1377,
6674,
1613,
273,
394,
6674,
5621,
1377,
1613,
18,
6923,
2932,
6459,
284,
12,
509,
279,
11272,
3639,
521,
82,
8863,
4329,
3993,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
565,
1071,
918,
1842,
2083,
3262,
1435,
1216,
1185,
288,
1377,
6674,
1613,
273,
394,
6674,
5621,
1377,
1613,
18,
6923,
2932,
6459,
284,
12,
509,
279,
11272,
3639,
521,
82,
8863,
4329,
3993,
17... |
if ((p == null) || !vm.isInheritedProperty()) | if ((p == null) || !vm.isInheritedProperty()) | public Value getComputedStyle(CSSStylableElement elt, String pseudo, int propidx) { StyleMap sm = elt.getComputedStyleMap(pseudo); if (sm == null) { sm = getCascadedStyleMap(elt, pseudo); elt.setComputedStyleMap(pseudo, sm); } Value value = sm.getValue(propidx); if (sm.isComputed(propidx)) return value; Value result = value; ValueManager vm = valueManagers[propidx]; CSSStylableElement p = getParentCSSStylableElement(elt); if (value == null) { if ((p == null) || !vm.isInheritedProperty()) result = vm.getDefaultValue(); } else if ((p != null) && (value == InheritValue.INSTANCE)) { result = null; } if (result == null) { // Value is 'inherit' and p != null. // The pseudo class is not propagated. result = getComputedStyle(p, null, propidx); sm.putParentRelative(propidx, true); sm.putInherited (propidx, true); } else { // Maybe is it a relative value. result = vm.computeValue(elt, pseudo, this, propidx, sm, result); } if (value == null) { sm.putValue(propidx, result); sm.putNullCascaded(propidx, true); } else if (result != value) { ComputedValue cv = new ComputedValue(value); cv.setComputedValue(result); sm.putValue(propidx, cv); result = cv; } sm.putComputed(propidx, true); return result; } | 45946 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45946/dbab799ce6fcc45bdd6cc7b702f5c01af88a7883/CSSEngine.java/clean/sources/org/apache/batik/css/engine/CSSEngine.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
1445,
29567,
2885,
12,
10276,
24273,
80,
429,
1046,
11572,
16,
21394,
514,
12454,
16,
21394,
509,
2270,
3465,
13,
288,
3639,
9767,
863,
3029,
273,
11572,
18,
588,
17934,
2885,
863,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1445,
29567,
2885,
12,
10276,
24273,
80,
429,
1046,
11572,
16,
21394,
514,
12454,
16,
21394,
509,
2270,
3465,
13,
288,
3639,
9767,
863,
3029,
273,
11572,
18,
588,
17934,
2885,
863,
... |
return BugzillaServerFacade.getBugUrlWithoutLogin(repositoryUrl, idInt); | return BugzillaClient.getBugUrlWithoutLogin(repositoryUrl, idInt); | public String getUrl() { Integer idInt = new Integer(id); return BugzillaServerFacade.getBugUrlWithoutLogin(repositoryUrl, idInt); } | 51989 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51989/dc841c630afff6eea9fa48a58143d396d272fead/BugzillaQueryHit.java/buggy/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/BugzillaQueryHit.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
8928,
1435,
288,
202,
202,
4522,
612,
1702,
273,
394,
2144,
12,
350,
1769,
202,
202,
2463,
16907,
15990,
2081,
12467,
18,
588,
19865,
1489,
8073,
5358,
12,
9071,
1489,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
514,
8928,
1435,
288,
202,
202,
4522,
612,
1702,
273,
394,
2144,
12,
350,
1769,
202,
202,
2463,
16907,
15990,
2081,
12467,
18,
588,
19865,
1489,
8073,
5358,
12,
9071,
1489,
16,
... |
assertNextToken(lexer, Token.NUMBER, "1"); assertNextToken(lexer, Token.SUBTRACT, "-"); assertNextToken(lexer, Token.NUMBER, "2"); assertNextToken(lexer, Token.END, null); } | assertNextToken(lexer, Token.NUMBER, "1"); assertNextToken(lexer, Token.SUBTRACT, "-"); assertNextToken(lexer, Token.NUMBER, "2"); assertNextToken(lexer, Token.END, null); } | public void testTokenisesSubtractOperator() throws Exception { Lexer lexer = new Lexer("1-2"); assertNextToken(lexer, Token.NUMBER, "1"); assertNextToken(lexer, Token.SUBTRACT, "-"); assertNextToken(lexer, Token.NUMBER, "2"); assertNextToken(lexer, Token.END, null); } | 54028 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54028/c26c57f3ac4851e6bc9c5df8515ac73f4045eebf/LexerTest.java/buggy/jmock/examples/calculator/src/test/jmock/examples/calculator/LexerTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
1345,
6141,
27904,
5592,
1435,
1216,
1185,
288,
202,
202,
13356,
8512,
273,
394,
14234,
2932,
21,
17,
22,
8863,
202,
202,
11231,
9399,
12,
31731,
16,
3155,
18,
9931,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1345,
6141,
27904,
5592,
1435,
1216,
1185,
288,
202,
202,
13356,
8512,
273,
394,
14234,
2932,
21,
17,
22,
8863,
202,
202,
11231,
9399,
12,
31731,
16,
3155,
18,
9931,
... |
/* | public TagScript createTagScript(String name, Attributes attributes) throws Exception { Project project = getProject(); // custom Ant tags if ( name.equals("fileScanner") ) { Tag tag = new FileScannerTag(new FileScanner(project)); return TagScript.newInstance(tag); } // is it an Ant task? Class type = (Class) project.getTaskDefinitions().get(name); if ( type != null ) { TaskTag tag = new TaskTag( project, type, name ); tag.setTrim( true ); if ( name.equals( "echo" ) ) { tag.setTrim(false); } return new AntTagScript(tag); } /* // an Ant DataType? DataType dataType = null; type = (Class) project.getDataTypeDefinitions().get(name); if ( type != null ) { try { java.lang.reflect.Constructor ctor = null; boolean noArg = false; // DataType can have a "no arg" constructor or take a single // Project argument. try { ctor = type.getConstructor(new Class[0]); noArg = true; } catch (NoSuchMethodException nse) { ctor = type.getConstructor(new Class[] { Project.class }); noArg = false; } if (noArg) { dataType = (DataType) ctor.newInstance(new Object[0]); } else { dataType = (DataType) ctor.newInstance(new Object[] {project}); } dataType.setProject( project ); } catch (Throwable t) { t.printStackTrace(); // ignore } } if ( dataType != null ) { DataTypeTag tag = new DataTypeTag( name, dataType ); tag.setAntProject( getProject() ); tag.getDynaBean().set( "project", project ); return TagScript.newInstance(tag); } */ // Since ant resolves so many dynamically loaded/created // things at run-time, we can make virtually no assumptions // as to what this tag might be. OtherAntTag tag = new OtherAntTag( project, name ); return new AntTagScript( tag ); } | 51800 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51800/9a0c6003a81f19007243f4126fd3ef1fe9c8a83a/AntTagLibrary.java/clean/jelly-tags/ant/src/java/org/apache/commons/jelly/tags/ant/AntTagLibrary.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4034,
3651,
752,
1805,
3651,
12,
780,
508,
16,
9055,
1677,
13,
1216,
1185,
288,
3639,
5420,
1984,
273,
11080,
5621,
7734,
368,
1679,
18830,
2342,
3639,
309,
261,
508,
18,
14963,
293... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
4034,
3651,
752,
1805,
3651,
12,
780,
508,
16,
9055,
1677,
13,
1216,
1185,
288,
3639,
5420,
1984,
273,
11080,
5621,
7734,
368,
1679,
18830,
2342,
3639,
309,
261,
508,
18,
14963,
293... | |
ScriptRuntime.getMessage("msg.arg.isnt.array", null), | ScriptRuntime.getMessage0("msg.arg.isnt.array"), | public static Object jsFunction_apply(Context cx, Scriptable thisObj, Object[] args, Function funObj) throws JavaScriptException { if (args.length != 2) return jsFunction_call(cx, thisObj, args, funObj); Object val = thisObj.getDefaultValue(ScriptRuntime.FunctionClass); Scriptable newThis = args[0] == null ? ScriptableObject.getTopLevelScope(thisObj) : ScriptRuntime.toObject(funObj, args[0]); Object[] newArgs; if (args.length > 1) { if ((args[1] instanceof NativeArray) || (args[1] instanceof Arguments)) newArgs = cx.getElements((Scriptable) args[1]); else throw NativeGlobal.constructError( cx, "TypeError", ScriptRuntime.getMessage("msg.arg.isnt.array", null), thisObj); } else newArgs = new Object[0]; return ScriptRuntime.call(cx, val, newThis, newArgs, newThis); } | 54155 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54155/e737c6d867e82d4ba7fd00e7e388c9c8da824ff0/NativeFunction.java/buggy/js/rhino/src/org/mozilla/javascript/NativeFunction.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
1033,
3828,
2083,
67,
9010,
12,
1042,
9494,
16,
22780,
15261,
16,
4766,
1850,
1033,
8526,
833,
16,
4284,
9831,
2675,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
309,
261,
1968,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1033,
3828,
2083,
67,
9010,
12,
1042,
9494,
16,
22780,
15261,
16,
4766,
1850,
1033,
8526,
833,
16,
4284,
9831,
2675,
13,
3639,
1216,
11905,
503,
565,
288,
3639,
309,
261,
1968,... |
AspectJUIPlugin.getResourceString("compilerPropsPage.outputJar"), | UIMessages.compilerPropsPage_outputJar, | protected Control createContents(Composite parent) { // Grab the resource (must be a project) for which this property page // is being created thisProject = (IProject) getElement(); Composite pageComposite = createPageComposite(parent, 3); // This will cover the top row of the panel. Composite row0Composite = createRowComposite(pageComposite,1); createLabel( row0Composite, AspectJUIPlugin.getResourceString("compilerPropsPage.description")); Composite row3Comp = createRowComposite(pageComposite,2); outputJarEditor = new StringFieldEditor("", AspectJUIPlugin.getResourceString("compilerPropsPage.outputJar"), row3Comp); nonStandardOptionsEditor = new StringFieldEditor( "", AspectJUIPlugin.getResourceString("compilerPropsPage.nonStandardOptions"), StringFieldEditor.UNLIMITED, pageComposite); createLabel(pageComposite,""); createLabel(pageComposite,""); updatePageContents(); return pageComposite; } | 13558 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13558/db7704a16405007af064b9eaf64639d601bcfc7c/AspectJProjectPropertiesPage.java/buggy/org.eclipse.ajdt.ui/src/org/eclipse/ajdt/internal/ui/AspectJProjectPropertiesPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
8888,
752,
6323,
12,
9400,
982,
13,
288,
202,
202,
759,
17150,
326,
1058,
261,
11926,
506,
279,
1984,
13,
364,
1492,
333,
1272,
1363,
202,
202,
759,
353,
3832,
2522,
202,
202... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
8888,
752,
6323,
12,
9400,
982,
13,
288,
202,
202,
759,
17150,
326,
1058,
261,
11926,
506,
279,
1984,
13,
364,
1492,
333,
1272,
1363,
202,
202,
759,
353,
3832,
2522,
202,
202... |
code.setPosition(Position.line(rhs.pos)); | if (global.args.debuginfo.value) code.setPosition(Position.line(rhs.pos)); | private void genDef(Symbol sym, ValDef[] parameters, Tree rhs, MSILType toType) { MethodBase method = tc.getMethod(sym); params.clear(); locals.clear(); int argOffset = method.IsStatic() ? 0 : 1; for (int i = 0; i < parameters.length; i++) { params.put(parameters[i].symbol(), new Integer(i + argOffset)); } if (method.IsConstructor()) { ConstructorInfo ctor = (ConstructorInfo) method; code = ((ConstructorBuilder)ctor).GetILGenerator(); code.setPosition(Position.line(rhs.pos)); if (sym.owner().isModuleClass() && sym.owner().owner().isPackageClass()) { Tree[] cstats = null; switch (rhs) { case Block(Tree[] stats, Tree value): TreeList stms = new TreeList(); for (int i = 0; i < stats.length; i++) { switch (stats[i]) { case Block(Tree[] stats2, Tree value2): stms.append(stats2); stms.append(value2); break; default: stms.append(stats[i]); } } switch (value) { case Block(Tree[] stats2, Tree value2): stms.append(stats2); stms.append(value2); break; } cstats = stms.toArray(); break; default: cstats = new Tree[]{rhs}; } // emit the call to the superconstructor drop(gen(cstats[0], MSILType.VOID)); code.Emit(OpCodes.Ret); // conclude the instance constructor ConstructorBuilder cctor = ((TypeBuilder)(method.DeclaringType)). DefineConstructor((short)(MethodAttributes.Static | MethodAttributes.Public), CallingConventions.Standard, Type.EmptyTypes); currentMethod = cctor; code = cctor.GetILGenerator(); code.setPosition(Position.line(sym.owner().pos)); // initialize the static module reference code.Emit(OpCodes.Newobj, ctor); code.Emit(OpCodes.Stsfld, tc.getModuleField(currentClass)); for (int i = 1; i < cstats.length; i++) { drop(gen(cstats[i], MSILType.VOID)); } code.Emit(OpCodes.Ret); // conclude the static constructor } else { drop(gen(rhs, MSILType.VOID)); code.Emit(OpCodes.Ret); } } else if (!method.IsAbstract()) { lastExpr = true; code = ((MethodBuilder)method).GetILGenerator(); code.setPosition(Position.line(rhs.pos)); Item item = gen(rhs, toType); if (returnsVoid(method)) drop(item); else coerce(load(item), toType); // FIXME: coerce??? code.Emit(OpCodes.Ret); if (currentClass.isModuleClass()) { MethodBuilder staticMethod = tc.getStaticObjectMethod(sym); if (staticMethod != null) { code = staticMethod.GetILGenerator(); code.setPosition(Position.line(sym.pos)); code.Emit(OpCodes.Ldsfld, tc.getModuleField(currentClass)); for (int i = 0; i < parameters.length; i++) emitLdarg(i); code.Emit(OpCodes.Call, (MethodInfo)method); code.Emit(OpCodes.Ret); } } } lastExpr = false; code = null; } // genDef(); | 32355 /local/tlutelli/issta_data/temp/all_java3context/java/2006_temp/2006/32355/e62db728e857ced8d60fdac6c655b89f77ca4f50/GenMSIL.java/clean/sources/scalac/backend/msil/GenMSIL.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3157,
3262,
12,
5335,
5382,
16,
12747,
3262,
8526,
1472,
16,
4902,
7711,
16,
490,
2320,
48,
559,
28234,
13,
288,
202,
1305,
2171,
707,
273,
1715,
18,
588,
1305,
12,
8117,
176... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
3157,
3262,
12,
5335,
5382,
16,
12747,
3262,
8526,
1472,
16,
4902,
7711,
16,
490,
2320,
48,
559,
28234,
13,
288,
202,
1305,
2171,
707,
273,
1715,
18,
588,
1305,
12,
8117,
176... |
{ return getSkillName( substring, KoLCharacter.getUsableSkills() ); | { return getSkillName( substring, usableSkills ); | public static String getUsableSkillName( String substring ) { return getSkillName( substring, KoLCharacter.getUsableSkills() ); } | 50364 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50364/e62c220071db475c697de817376ca4486bbcebd6/KoLmafiaCLI.java/clean/src/net/sourceforge/kolmafia/KoLmafiaCLI.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
760,
514,
336,
27682,
9030,
461,
12,
514,
3019,
262,
202,
95,
202,
2463,
1322,
16418,
461,
12,
3019,
16,
1475,
83,
48,
7069,
18,
588,
27682,
20057,
1435,
11272,
202,
97,
2,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
760,
514,
336,
27682,
9030,
461,
12,
514,
3019,
262,
202,
95,
202,
2463,
1322,
16418,
461,
12,
3019,
16,
1475,
83,
48,
7069,
18,
588,
27682,
20057,
1435,
11272,
202,
97,
2,
... |
public int init() { int ret = -1; try { //setSocket(new Socket("interno.roshka.com.py", 6767)); //setSocket(new Socket("ray-ray.roshka.com.py", 6767)); setSocket(new Socket("ray-ray.roshka.com.py", 6767)); ret = XmlPackagesSession.XML_PACKAGE_SESSION_INIT_OK; } catch (UnknownHostException e) { ret = -5; } catch (IOException e) { ret = -4; } return ret; } | 1311 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1311/9044a55dab84893696ebf313d6aaf6a3f8d65d93/CommunicatorClient.java/buggy/py/edu/uca/fcyt/toluca/net/CommunicatorClient.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
474,
2738,
1435,
202,
95,
202,
202,
474,
1349,
29711,
21,
31,
202,
202,
698,
202,
202,
95,
1082,
202,
759,
542,
4534,
12,
2704,
4534,
2932,
267,
798,
83,
18,
303,
674,
7282,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
474,
2738,
1435,
202,
95,
202,
202,
474,
1349,
29711,
21,
31,
202,
202,
698,
202,
202,
95,
1082,
202,
759,
542,
4534,
12,
2704,
4534,
2932,
267,
798,
83,
18,
303,
674,
7282,... | ||
int i = 0; for ( LinkedListNode node = list.removeFirst(); node != null; node = list.removeFirst() ) { ((TupleSink) getTupleSinks().get( i++ )).modifyTuple( (ReteTuple) ((LinkedListNodeWrapper) node).getNode(), | for ( LinkedListNode node = list.getFirst(); node != null; node = node.getNext() ) { sink.assertTuple( (ReteTuple) ((LinkedListNodeWrapper) node).getNode(), | public void updateNewNode(WorkingMemoryImpl workingMemory, PropagationContext context) { this.attachingNewNode = true; Map memory = (Map) workingMemory.getNodeMemory( this ); for ( Iterator it = memory.values().iterator(); it.hasNext(); ) { LinkedList list = (LinkedList) it.next(); int i = 0; for ( LinkedListNode node = list.removeFirst(); node != null; node = list.removeFirst() ) { ((TupleSink) getTupleSinks().get( i++ )).modifyTuple( (ReteTuple) ((LinkedListNodeWrapper) node).getNode(), context, workingMemory ); } } this.attachingNewNode = false; } | 5490 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5490/1dadc1dc8589241d5a72264e35f6f1a280ab47ec/LeftInputAdapterNode.java/buggy/drools-core/src/main/java/org/drools/reteoo/LeftInputAdapterNode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1089,
1908,
907,
12,
14836,
6031,
2828,
5960,
6031,
16,
17311,
1186,
9095,
367,
1042,
819,
13,
288,
3639,
333,
18,
7331,
310,
1908,
907,
273,
638,
31,
3639,
1635,
3778,
273,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1089,
1908,
907,
12,
14836,
6031,
2828,
5960,
6031,
16,
17311,
1186,
9095,
367,
1042,
819,
13,
288,
3639,
333,
18,
7331,
310,
1908,
907,
273,
638,
31,
3639,
1635,
3778,
273,
... |
previewCanvas.clear( ); previewCanvas.loadImage( ( (Image) img ) ); previewCanvas.showOriginal( ); }else if(selTemplate.getThumbnail( ) != null && selTemplate.getThumbnail( ).length != 0) { previewCanvas.setVisible( true ); previewThumbnail.setVisible( false ); byte[] thumbnailData = selTemplate.getThumbnail( ); | byte[] thumbnailData = handle.getThumbnail( ); | public void handleEvent( Event event ) { // change description/image selectedIndex = templateList.getSelectionIndex( ); description.setText( ( (Template) templates.get( selectedIndex ) ).getTemplateDescription( ) ); // we need to relayout if the new text has different number of lines previewPane.layout( ); Template selTemplate = (Template) templates.get( selectedIndex ); String key = selTemplate.getPictureName( ); Object img = null; if ( (key != null) && (!"".equals( key.trim( ) )) ) //$NON-NLS-1$ { key = selTemplate.getPictureFullName( ); img = imageMap.get( key ); if ( img == null ) { img = ReportPlugin.getImage( key ); imageMap.put( key, img ); } previewCanvas.setVisible( true ); previewThumbnail.setVisible( false ); previewCanvas.clear( ); previewCanvas.loadImage( ( (Image) img ) ); previewCanvas.showOriginal( ); }else if(selTemplate.getThumbnail( ) != null && selTemplate.getThumbnail( ).length != 0) { previewCanvas.setVisible( true ); previewThumbnail.setVisible( false ); byte[] thumbnailData = selTemplate.getThumbnail( ); ByteArrayInputStream inputStream = new ByteArrayInputStream( thumbnailData ); if(thumbnailImage != null) { thumbnailImage.dispose( ); thumbnailImage = null; } thumbnailImage = new Image( null, inputStream ); previewCanvas.clear( ); previewCanvas.loadImage( ( (Image) thumbnailImage ) ); } else { previewCanvas.setVisible( false ); previewThumbnail.setVisible( true ); Control[] children = previewThumbnail.getChildren( ); for ( int i = 0; i < children.length; i++ ) { children[i].dispose( ); } ReportGraphicsViewComposite thumbnail = new ReportGraphicsViewComposite( previewThumbnail, SWT.NULL, ( (Template) templates.get( selectedIndex ) ).getReportDesignHandle( ) ); previewThumbnail.layout( ); } chkBox.setEnabled( !( ( (Template) templates.get( selectedIndex ) ).getCheatSheetId( ) .equals( "" ) || ( (Template) templates.get( selectedIndex ) ).getCheatSheetId( ) .equals( "org.eclipse.birt.report.designer.ui.cheatsheet.firstreport" ) ) ); //$NON-NLS-1$ } | 46013 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46013/76ebe408a984f02b49cbaf1597c0c7a0213901fe/WizardTemplateChoicePage.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/internal/ui/wizards/WizardTemplateChoicePage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
1640,
1133,
12,
2587,
871,
262,
202,
202,
95,
1082,
202,
759,
2549,
2477,
19,
2730,
1082,
202,
8109,
1016,
273,
1542,
682,
18,
588,
6233,
1016,
12,
11272,
1082,
202,
338... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
1640,
1133,
12,
2587,
871,
262,
202,
202,
95,
1082,
202,
759,
2549,
2477,
19,
2730,
1082,
202,
8109,
1016,
273,
1542,
682,
18,
588,
6233,
1016,
12,
11272,
1082,
202,
338... |
} } | int[] intersect2sets(int[] one, int[] theOther){ int[] result = new int[(one.length>theOther.length?one.length:theOther.length)]; // simple implemention, int count = 0; for (int i=0; i<one.length; i++) { for(int j=0; j<theOther.length; j++) { if (one[i]==theOther[j]) { result[count++] = one[i]; } } } int[] result2 = new int[count]; System.arraycopy(result, 0, result2, 0, count); return result2; } | 46079 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46079/5283a802581d80b61d7c4d847a253cfd78102277/TraverseSchema.java/clean/src/org/apache/xerces/validators/schema/TraverseSchema.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
509,
8526,
9136,
22,
4424,
12,
474,
8526,
1245,
16,
509,
8526,
326,
8290,
15329,
3639,
509,
8526,
563,
273,
394,
509,
63,
12,
476,
18,
2469,
34,
5787,
8290,
18,
2469,
35,
476,
18,
246... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
509,
8526,
9136,
22,
4424,
12,
474,
8526,
1245,
16,
509,
8526,
326,
8290,
15329,
3639,
509,
8526,
563,
273,
394,
509,
63,
12,
476,
18,
2469,
34,
5787,
8290,
18,
2469,
35,
476,
18,
246... | |
MondrianDef.Cube c = (MondrianDef.Cube)o; PropertyTableModel ptm = new PropertyTableModel(c, new String[]{"name", "factSchema", "factTable"}); | MondrianDef.Cube c = (MondrianDef.Cube)o; PropertyTableModel ptm = new PropertyTableModel(c, new String[]{"name", "fact"}); | public void valueChanged(TreeSelectionEvent e) { Object o = e.getPath().getLastPathComponent(); if (o instanceof MondrianDef.Column) { MondrianDef.Column c = (MondrianDef.Column)o; PropertyTableModel ptm = new PropertyTableModel(c, new String[]{"name", "table"}); propertyTable.setModel(ptm); targetLabel.setText("Column"); } else if (o instanceof MondrianDef.Cube) { MondrianDef.Cube c = (MondrianDef.Cube)o; PropertyTableModel ptm = new PropertyTableModel(c, new String[]{"name", "factSchema", "factTable"}); propertyTable.setModel(ptm); targetLabel.setText("Cube"); } else if (o instanceof MondrianDef.Dimension) { MondrianDef.Dimension d = (MondrianDef.Dimension)o; PropertyTableModel ptm = new PropertyTableModel(d, new String[]{"name", "foreignKey"}); propertyTable.setModel(ptm); targetLabel.setText("Dimension"); } else if (o instanceof MondrianDef.DimensionUsage) { MondrianDef.DimensionUsage du = (MondrianDef.DimensionUsage)o; PropertyTableModel ptm = new PropertyTableModel(du, new String[]{"name", "foreignKey", "source"}); propertyTable.setModel(ptm); targetLabel.setText("Dimension Usage"); } else if (o instanceof MondrianDef.ExpressionView) { MondrianDef.ExpressionView ev = (MondrianDef.ExpressionView)o; PropertyTableModel ptm = new PropertyTableModel(ev, new String[]{"name", "foreignKey", "source"}); propertyTable.setModel(ptm); targetLabel.setText("Expression View"); } else if (o instanceof MondrianDef.Hierarchy) { MondrianDef.Hierarchy h = (MondrianDef.Hierarchy)o; PropertyTableModel ptm = new PropertyTableModel(h, new String[]{"hasAll", "defaultMember", "memberReaderClass", "primaryKey", "primaryKeyTable", "relation"}); propertyTable.setModel(ptm); targetLabel.setText("Hierarchy"); } else if (o instanceof MondrianDef.Join) { MondrianDef.Join j = (MondrianDef.Join)o; PropertyTableModel ptm = new PropertyTableModel(j, new String[]{"left", "leftAlias", "leftKey", "right", "rightAlias", "rightKey"}); propertyTable.setModel(ptm); targetLabel.setText("Join"); } else if (o instanceof MondrianDef.Level) { MondrianDef.Level l = (MondrianDef.Level)o; PropertyTableModel ptm = new PropertyTableModel(l, new String[]{"name", "column", "nameExp", "ordinalColumn", "ordinalExp", "table", "type", "uniqueMembers"}); propertyTable.setModel(ptm); targetLabel.setText("Level"); } else if (o instanceof MondrianDef.Measure) { MondrianDef.Measure m = (MondrianDef.Measure)o; PropertyTableModel ptm = new PropertyTableModel(m, new String[]{"name", "aggregator", "column", "formatString"}); propertyTable.setModel(ptm); targetLabel.setText("Measure"); } else if (o instanceof MondrianDef.Parameter) { MondrianDef.Parameter p = (MondrianDef.Parameter)o; PropertyTableModel ptm = new PropertyTableModel(p, new String[]{"name", "value"}); propertyTable.setModel(ptm); targetLabel.setText("Parameter"); } else if (o instanceof MondrianDef.Property) { MondrianDef.Property p = (MondrianDef.Property)o; PropertyTableModel ptm = new PropertyTableModel(p, new String[]{"name", "column", "type"}); propertyTable.setModel(ptm); targetLabel.setText("Property"); } else if (o instanceof MondrianDef.Schema) { MondrianDef.Schema s = (MondrianDef.Schema)o; PropertyTableModel ptm = new PropertyTableModel(s, new String[]{}); propertyTable.setModel(ptm); targetLabel.setText("Schema"); } else if (o instanceof MondrianDef.SQL) { MondrianDef.SQL s = (MondrianDef.SQL)o; PropertyTableModel ptm = new PropertyTableModel(s, new String[]{"cdata", "dialect"}); propertyTable.setModel(ptm); targetLabel.setText("SQL"); } else if (o instanceof MondrianDef.Table) { MondrianDef.Table t = (MondrianDef.Table)o; PropertyTableModel ptm = new PropertyTableModel(t, new String[]{"name", "alias", "schema"}); propertyTable.setModel(ptm); targetLabel.setText("Table"); } else if (o instanceof MondrianDef.View) { MondrianDef.View v = (MondrianDef.View)o; PropertyTableModel ptm = new PropertyTableModel(v, new String[]{"alias"}); propertyTable.setModel(ptm); targetLabel.setText("View"); } else if (o instanceof MondrianDef.VirtualCube) { MondrianDef.VirtualCube vc = (MondrianDef.VirtualCube)o; PropertyTableModel ptm = new PropertyTableModel(vc, new String[]{"name"}); propertyTable.setModel(ptm); targetLabel.setText("Virtual Cube"); } else if (o instanceof MondrianDef.VirtualCubeDimension) { MondrianDef.VirtualCubeDimension vc = (MondrianDef.VirtualCubeDimension)o; PropertyTableModel ptm = new PropertyTableModel(vc, new String[]{"cubeName"}); propertyTable.setModel(ptm); targetLabel.setText("Virtual Cube Dimension"); } else if (o instanceof MondrianDef.VirtualCubeMeasure) { MondrianDef.VirtualCubeMeasure vc = (MondrianDef.VirtualCubeMeasure)o; PropertyTableModel ptm = new PropertyTableModel(vc, new String[]{"name", "cubeName"}); propertyTable.setModel(ptm); targetLabel.setText("Virtual Cube Measure"); } else { PropertyTableModel ptm = new PropertyTableModel(o, new String[]{}); propertyTable.setModel(ptm); targetLabel.setText("Unknown Type"); } } | 51263 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51263/62f9e7312c940893fd2a641ed46fbde55df4a79c/SchemaExplorer.java/buggy/src/main/mondrian/gui/SchemaExplorer.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
460,
5033,
12,
2471,
6233,
1133,
425,
13,
288,
3639,
1033,
320,
273,
425,
18,
588,
743,
7675,
588,
3024,
743,
1841,
5621,
3639,
309,
261,
83,
1276,
490,
1434,
566,
304,
3262,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
460,
5033,
12,
2471,
6233,
1133,
425,
13,
288,
3639,
1033,
320,
273,
425,
18,
588,
743,
7675,
588,
3024,
743,
1841,
5621,
3639,
309,
261,
83,
1276,
490,
1434,
566,
304,
3262,... |
return element == ((MTransition)getTarget()).getTrigger(); | return element == ((MTransition) getTarget()).getTrigger(); | protected boolean isValidElement(MBase element) { return element == ((MTransition)getTarget()).getTrigger(); } | 7166 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7166/ca3bcb5d6dd283c4553bcbfe50b108dc5d499768/UMLTransitionTriggerListModel.java/clean/src_new/org/argouml/uml/ui/behavior/state_machines/UMLTransitionTriggerListModel.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
4750,
1250,
4908,
1046,
12,
49,
2171,
930,
13,
288,
3639,
327,
930,
422,
14015,
49,
8850,
13,
8571,
1435,
2934,
588,
6518,
5621,
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,
4750,
1250,
4908,
1046,
12,
49,
2171,
930,
13,
288,
3639,
327,
930,
422,
14015,
49,
8850,
13,
8571,
1435,
2934,
588,
6518,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
private String[] getDataSetColumns( ) | private String[] getDataSetColumns( ScalarParameterHandle handle, boolean needFilter ) | private String[] getDataSetColumns( ) { return getDataSetColumns( null ); } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/ffe25c84db39ac36a136a2b6d3c13bc9dc6b6fd2/CascadingParametersDialog.java/clean/UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/CascadingParametersDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
514,
8526,
4303,
694,
3380,
12,
262,
202,
95,
202,
202,
2463,
4303,
694,
3380,
12,
446,
11272,
202,
97,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
514,
8526,
4303,
694,
3380,
12,
262,
202,
95,
202,
202,
2463,
4303,
694,
3380,
12,
446,
11272,
202,
97,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-... |
public Frame(int numLocals) { | public Frame(int numLocals, DefaultValueFactory<ValueType> defaultValueFactory) { | public Frame(int numLocals) { this.numLocals = numLocals; init(new DefaultValueFactory<ValueType>() { public ValueType getDefaultValue() { return Frame.this.getDefaultValue(); } }); } | 7352 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7352/9fa31f2c8ccae450b591dbd1dd7f159df7356ae3/Frame.java/buggy/findbugs/src/java/edu/umd/cs/findbugs/ba/Frame.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
8058,
12,
474,
818,
1333,
1031,
13,
288,
202,
202,
2211,
18,
2107,
1333,
1031,
273,
818,
1333,
1031,
31,
202,
202,
2738,
12,
2704,
2989,
620,
1733,
32,
17930,
34,
1435,
288,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
8058,
12,
474,
818,
1333,
1031,
13,
288,
202,
202,
2211,
18,
2107,
1333,
1031,
273,
818,
1333,
1031,
31,
202,
202,
2738,
12,
2704,
2989,
620,
1733,
32,
17930,
34,
1435,
288,
... |
public org.quickfix.field.EncodedUnderlyingSecurityDesc getEncodedUnderlyingSecurityDesc() throws FieldNotFound { org.quickfix.field.EncodedUnderlyingSecurityDesc value = new org.quickfix.field.EncodedUnderlyingSecurityDesc(); | public quickfix.field.EncodedUnderlyingSecurityDesc getEncodedUnderlyingSecurityDesc() throws FieldNotFound { quickfix.field.EncodedUnderlyingSecurityDesc value = new quickfix.field.EncodedUnderlyingSecurityDesc(); | public org.quickfix.field.EncodedUnderlyingSecurityDesc getEncodedUnderlyingSecurityDesc() throws FieldNotFound { org.quickfix.field.EncodedUnderlyingSecurityDesc value = new org.quickfix.field.EncodedUnderlyingSecurityDesc(); getField(value); return value; } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/TradeCaptureReportRequest.java/buggy/src/java/src/quickfix/fix44/TradeCaptureReportRequest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
10397,
14655,
6291,
4368,
4217,
28799,
14655,
6291,
4368,
4217,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
10397,
14655,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
10397,
14655,
6291,
4368,
4217,
28799,
14655,
6291,
4368,
4217,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
10397,
14655,... |
setCurrentDirectory(fsv.createFileObject(currentDirectoryPath)); | setCurrentDirectory(null); | public JFileChooser(String currentDirectoryPath) { setup(null); setCurrentDirectory(fsv.createFileObject(currentDirectoryPath)); } | 1056 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1056/045a5b41cdfa747889101d3993040acf89788bc4/JFileChooser.java/buggy/core/src/classpath/javax/javax/swing/JFileChooser.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
804,
812,
17324,
12,
780,
783,
31995,
13,
225,
288,
565,
3875,
12,
2011,
1769,
565,
12589,
2853,
12,
2011,
1769,
225,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
804,
812,
17324,
12,
780,
783,
31995,
13,
225,
288,
565,
3875,
12,
2011,
1769,
565,
12589,
2853,
12,
2011,
1769,
225,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
partList.removePart(ref); | disposePart(ref); | /* package */ void partRemoved(WorkbenchPartReference ref) { activationList.remove(ref); partList.removePart(ref); } | 58148 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/58148/74d3a94029aa9f06f701704d08e52a6aa30c9e50/WorkbenchPage.java/buggy/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPage.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1748,
2181,
1195,
918,
1087,
10026,
12,
2421,
22144,
1988,
2404,
1278,
13,
288,
3639,
10027,
682,
18,
4479,
12,
1734,
1769,
3639,
15825,
1988,
12,
1734,
1769,
565,
289,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1748,
2181,
1195,
918,
1087,
10026,
12,
2421,
22144,
1988,
2404,
1278,
13,
288,
3639,
10027,
682,
18,
4479,
12,
1734,
1769,
3639,
15825,
1988,
12,
1734,
1769,
565,
289,
2,
-100,
-100,
-10... |
Logger.error(this, "Asking to ack packet which has already been acked: "+packetNumber+" on "+this+".grabAckRequests"); | Logger.minor(this, "Asking to ack packet which has already been acked: "+packetNumber+" on "+this+".grabAckRequests"); | public int[] grabAckRequests() { UpdatableSortedLinkedListItem[] items; int[] packetNumbers; int realLength; long now = System.currentTimeMillis(); synchronized(this) { synchronized(ackRequestQueue) { items = ackRequestQueue.toArray(); int length = items.length; packetNumbers = new int[length]; realLength = 0; for(int i=0;i<length;i++) { QueuedAckRequest qrr = (QueuedAckRequest)items[i]; int packetNumber = qrr.packetNumber; if(qrr.activeTime <= now) { if(sentPacketsContents.get(packetNumber) == null) { Logger.error(this, "Asking to ack packet which has already been acked: "+packetNumber+" on "+this+".grabAckRequests"); ackRequestQueue.remove(qrr); continue; } packetNumbers[realLength++] = packetNumber; Logger.minor(this, "Grabbing ack request "+packetNumber+" from "+this); qrr.sent(); } else { Logger.minor(this, "Ignoring ack request "+packetNumber+" - will become active in "+(qrr.activeTime-now)+" ms on "+this); } } } } int[] trimmedPacketNumbers = new int[realLength]; System.arraycopy(packetNumbers, 0, trimmedPacketNumbers, 0, realLength); return trimmedPacketNumbers; } | 51738 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/51738/b65da6d7400224aceca597e3463b9ed8ec21e4b9/KeyTracker.java/buggy/src/freenet/node/KeyTracker.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
8526,
11086,
11931,
6421,
1435,
288,
3639,
1948,
3404,
429,
11739,
13174,
13575,
8526,
1516,
31,
3639,
509,
8526,
4414,
10072,
31,
3639,
509,
2863,
1782,
31,
3639,
1525,
2037,
27... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
509,
8526,
11086,
11931,
6421,
1435,
288,
3639,
1948,
3404,
429,
11739,
13174,
13575,
8526,
1516,
31,
3639,
509,
8526,
4414,
10072,
31,
3639,
509,
2863,
1782,
31,
3639,
1525,
2037,
27... |
return null; | return null; | public InetAddress getLocalAddress() { // FIXME: JCL p. 510 says this should call checkConnect. But what // string should be used as the hostname? Maybe this is just a side // effect of calling InetAddress.getLocalHost. // // And is getOption with SO_BINDADDR the right way to get the address? // Doesn't seem to be since this method doesn't throw a SocketException // and SO_BINADDR can throw one. // // Also see RETURNS section in JCL p. 510 about returning any local // addr "if the current execution context is not allowed to connect to // the network interface that is actually bound to this datagram socket." // How is that done? via InetAddress.getLocalHost? But that throws // an UnknownHostException and this method doesn't. // // if (s != null) // s.checkConnect("localhost", -1); try { return (InetAddress)impl.getOption(SocketOptions.SO_BINDADDR); } catch (SocketException ex) { } try { return InetAddress.getLocalHost(); } catch (UnknownHostException ex) { // FIXME: This should never happen, so how can we avoid this construct? return null; } } | 1043 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1043/bcf934a726f09b909edaefea311bbb71e1745e81/DatagramSocket.java/clean/libjava/java/net/DatagramSocket.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
14218,
6993,
1887,
1435,
225,
288,
565,
368,
9852,
30,
804,
5017,
293,
18,
1381,
2163,
20185,
333,
1410,
745,
866,
5215,
18,
225,
12484,
4121,
565,
368,
533,
1410,
506,
1399,
487,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
14218,
6993,
1887,
1435,
225,
288,
565,
368,
9852,
30,
804,
5017,
293,
18,
1381,
2163,
20185,
333,
1410,
745,
866,
5215,
18,
225,
12484,
4121,
565,
368,
533,
1410,
506,
1399,
487,
... |
if (image != null) image.dispose(); if (usedMemColor != null) usedMemColor.dispose(); | doDispose(); | public HeapStatus(Composite parent, IPreferenceStore prefStore) { super(parent, SWT.NONE); this.prefStore = prefStore; button = new Canvas(this, SWT.NONE); button.setToolTipText(WorkbenchMessages.HeapStatus_buttonToolTip); ImageDescriptor imageDesc = WorkbenchImages.getWorkbenchImageDescriptor("obj16/trash.gif"); //$NON-NLS-1$ final Image image = imageDesc.createImage(); button.setData("image", image); //$NON-NLS-1$ final Color usedMemColor = new Color(this.getDisplay(), 255, 255, 175); setData("usedMemColor", usedMemColor); //$NON-NLS-1$ createContextMenu(); Listener listener = new Listener() { public void handleEvent(Event event) { switch (event.type) { case SWT.Dispose: if (image != null) image.dispose(); if (usedMemColor != null) usedMemColor.dispose(); break; case SWT.Resize: Rectangle rect = getClientArea(); button.setBounds(rect.width - 13, 1, 12, rect.height - 2); break; case SWT.Paint: if (event.widget == HeapStatus.this) paintComposite(event.gc); else if (event.widget == button) paintButton(event.gc); break; case SWT.MouseUp: if (event.button == 1) { gc(); arm(false); } break; case SWT.MouseDown: if (event.button == 1) { if (event.widget == HeapStatus.this) snapshot(); else if (event.widget == button) arm(true); } break; case SWT.MouseExit: arm(false); break; } } }; addListener(SWT.Dispose, listener); addListener(SWT.MouseDown, listener); addListener(SWT.Paint, listener); addListener(SWT.Resize, listener); button.addListener(SWT.MouseDown, listener); button.addListener(SWT.MouseExit, listener); button.addListener(SWT.MouseUp, listener); button.addListener(SWT.Paint, listener); // make sure stats are updated before first paint updateStats(); getDisplay().asyncExec(new Runnable() { public void run() { if (!isDisposed()) { getDisplay().timerExec(HeapStatus.this.prefStore.getInt(IHeapStatusConstants.PREF_UPDATE_INTERVAL), timer); } } }); } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/480544d3e6ae1f182fb196d67e21cf12d7ff88aa/HeapStatus.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/HeapStatus.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
30241,
1482,
12,
9400,
982,
16,
467,
9624,
2257,
11307,
2257,
13,
288,
202,
202,
9565,
12,
2938,
16,
348,
8588,
18,
9826,
1769,
7734,
333,
18,
25724,
2257,
273,
11307,
2257,
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,
30241,
1482,
12,
9400,
982,
16,
467,
9624,
2257,
11307,
2257,
13,
288,
202,
202,
9565,
12,
2938,
16,
348,
8588,
18,
9826,
1769,
7734,
333,
18,
25724,
2257,
273,
11307,
2257,
3... |
ArrayDesignService ads = ( ArrayDesignService ) getBean( "arrayDesignService" ); ad = ads.create( ad ); | PersisterHelper persisterHelper = ( PersisterHelper ) getBean( "persisterHelper" ); ad = ( ArrayDesign ) persisterHelper.persist( ad ); | public void onSetUpInTransaction() throws Exception { super.onSetUpInTransaction(); ad = ArrayDesign.Factory.newInstance(); ad.setName( "AD Bot" ); ad.setDescription( "An array design created in the ArrayDesignFormControllerTest." ); Contact c = Contact.Factory.newInstance(); c.setName( "\'Contact Name\'" ); ad.setDesignProvider( c ); ArrayDesignService ads = ( ArrayDesignService ) getBean( "arrayDesignService" ); ad = ads.create( ad ); } | 4335 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4335/fdd4f199073e68f4a2112a375b862fc2de317e7c/ArrayDesignFormControllerTest.java/buggy/gemma-web/src/test/java/ubic/gemma/web/controller/expression/arrayDesign/ArrayDesignFormControllerTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
603,
694,
1211,
382,
3342,
1435,
1216,
1185,
288,
3639,
2240,
18,
265,
694,
1211,
382,
3342,
5621,
3639,
1261,
273,
1510,
15478,
18,
1733,
18,
2704,
1442,
5621,
3639,
1261,
18,... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
603,
694,
1211,
382,
3342,
1435,
1216,
1185,
288,
3639,
2240,
18,
265,
694,
1211,
382,
3342,
5621,
3639,
1261,
273,
1510,
15478,
18,
1733,
18,
2704,
1442,
5621,
3639,
1261,
18,... |
int foo = HexUtils.DEC[0]; | public AjpAprProcessor(AprEndpoint endpoint) { this.endpoint = endpoint; request = new Request(); request.setInputBuffer(new SocketInputBuffer()); response = new Response(); response.setHook(this); response.setOutputBuffer(new SocketOutputBuffer()); request.setResponse(response); if (endpoint.getFirstReadTimeout() > 0) { readTimeout = endpoint.getFirstReadTimeout() * 1000; } else { readTimeout = 100 * 1000; } // Cause loading of HexUtils int foo = HexUtils.DEC[0]; // Allocate input and output buffers inputBuffer = ByteBuffer.allocateDirect(16 * 1024); inputBuffer.limit(0); outputBuffer = ByteBuffer.allocateDirect(16 * 1024); } | 10630 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/10630/ac94728dc7ebb33b2a1dd16392c3edef6f531eb1/AjpAprProcessor.java/buggy/java/org/apache/coyote/ajp/AjpAprProcessor.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
432,
21797,
37,
683,
5164,
12,
37,
683,
3293,
2494,
13,
288,
3639,
333,
18,
8003,
273,
2494,
31,
7734,
590,
273,
394,
1567,
5621,
3639,
590,
18,
542,
1210,
1892,
12,
2704,
8758,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
432,
21797,
37,
683,
5164,
12,
37,
683,
3293,
2494,
13,
288,
3639,
333,
18,
8003,
273,
2494,
31,
7734,
590,
273,
394,
1567,
5621,
3639,
590,
18,
542,
1210,
1892,
12,
2704,
8758,
... | |
i = parse( "class A { void f ( A ); }; void A::f( A ){ return; }" ).getDeclarations(); | i = parse( "class A { void f ( A ); }; void A::f( A ){ return; }" ).getDeclarations(); | public void testBug42840() throws Exception { Iterator i = parse( "void foo(); void foo() { } class SearchMe { };").getDeclarations(); IASTFunction fooDeclaration = (IASTFunction)i.next(); IASTFunction fooDefinition = (IASTFunction)i.next(); IASTClassSpecifier classSpec = (IASTClassSpecifier)((IASTAbstractTypeSpecifierDeclaration)i.next()).getTypeSpecifier(); assertFalse( i.hasNext() ); assertTrue( callback.getReferences().isEmpty()); i = parse( "class A { void f ( A ); }; void A::f( A ){ return; }" ).getDeclarations(); classSpec = (IASTClassSpecifier)((IASTAbstractTypeSpecifierDeclaration)i.next()).getTypeSpecifier(); IASTMethod fooMethodDefinition = (IASTMethod)i.next(); assertFalse( i.hasNext() ); Iterator subIterator = getDeclarations( classSpec ); IASTMethod fooMethodDeclaration = (IASTMethod)subIterator.next(); assertFalse( subIterator.hasNext()); Iterator references = callback.getReferences().iterator(); assertEquals( callback.getReferences().size(), 3 ); for( int j = 0; j < 3; ++j) assertEquals( ((IASTReference)callback.getReferences().get( j )).getReferencedElement(), classSpec ); } | 54911 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54911/3a6ffef8f855652606f74a14d4b15478c81e5db4/CompleteParseASTTest.java/clean/core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/CompleteParseASTTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
918,
1842,
19865,
9452,
28585,
1435,
1216,
1185,
202,
95,
202,
202,
3198,
277,
273,
1109,
12,
315,
6459,
8431,
5621,
918,
8431,
1435,
288,
289,
667,
5167,
4667,
288,
289,
4868,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
9452,
28585,
1435,
1216,
1185,
202,
95,
202,
202,
3198,
277,
273,
1109,
12,
315,
6459,
8431,
5621,
918,
8431,
1435,
288,
289,
667,
5167,
4667,
288,
289,
4868,
... |
public void load(String fileName) throws IOException { FileInputStream stream = new FileInputStream(fileName); BufferedReader reader = new BufferedReader(new InputStreamReader( stream, "utf-8")); load(reader); reader.close(); | public void load(Reader r) { Document document = null; try { DocumentBuilder parser = DocumentBuilderFactory.newInstance() .newDocumentBuilder(); document = parser.parse(new InputSource(r)); Node root = document.getFirstChild(); while (root.getNodeType() == Node.COMMENT_NODE) { document.removeChild(root); root = document.getFirstChild(); } load(document, (Element) root); } catch (ParserConfigurationException e) { } catch (IOException e) { } catch (SAXException e) { } | public void load(String fileName) throws IOException { FileInputStream stream = new FileInputStream(fileName); BufferedReader reader = new BufferedReader(new InputStreamReader( stream, "utf-8"));//$NON-NLS-1$ load(reader); reader.close(); } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/4c5bcc72a0de85e2579caedebd0a234e852deb98/DialogSettings.java/buggy/bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/DialogSettings.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1262,
12,
780,
3968,
13,
1216,
1860,
288,
3639,
11907,
1407,
273,
394,
11907,
12,
17812,
1769,
3639,
10633,
2949,
273,
394,
10633,
12,
2704,
15322,
12,
7734,
1407,
16,
315,
315... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1262,
12,
780,
3968,
13,
1216,
1860,
288,
3639,
11907,
1407,
273,
394,
11907,
12,
17812,
1769,
3639,
10633,
2949,
273,
394,
10633,
12,
2704,
15322,
12,
7734,
1407,
16,
315,
315... |
history[index].gotoEntry(page); | entry.gotoEntry(page); | private void gotoEntry() { printEntries(); try { ignoreEntries = true; history[index].gotoEntry(page); } finally { ignoreEntries = false; } } | 55805 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55805/452c7f3239eb2ed0966ab44498bee56f8c4d8108/NavigationHistory.java/buggy/bundles/org.eclipse.ui/Eclipse UI/org/eclipse/ui/internal/NavigationHistory.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1152,
918,
2897,
1622,
1435,
288,
202,
202,
1188,
5400,
5621,
202,
202,
698,
288,
1082,
202,
6185,
5400,
273,
638,
31,
1082,
202,
8189,
63,
1615,
8009,
75,
6302,
1622,
12,
2433,
17... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
1152,
918,
2897,
1622,
1435,
288,
202,
202,
1188,
5400,
5621,
202,
202,
698,
288,
1082,
202,
6185,
5400,
273,
638,
31,
1082,
202,
8189,
63,
1615,
8009,
75,
6302,
1622,
12,
2433,
17... |
pasteToParent(anchorNode, pasteNode, pasteBefore); | pasteToParent(anchorNode, pasteNode, anchorNode.getRole_(), pasteBefore); | public static void pasteRelative(SNode anchorNode, SNode pasteNode, boolean pasteBefore) { pasteToParent(anchorNode, pasteNode, pasteBefore); } | 14939 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/14939/15031dbdea96aa111ffda18800e6eaed5e934741/PasteUtil.java/buggy/source/jetbrains/mps/datatransfer/PasteUtil.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
19401,
8574,
12,
55,
907,
6984,
907,
16,
348,
907,
19401,
907,
16,
1250,
19401,
4649,
13,
288,
565,
19401,
774,
3054,
12,
16215,
907,
16,
19401,
907,
16,
6984,
907,
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
760,
918,
19401,
8574,
12,
55,
907,
6984,
907,
16,
348,
907,
19401,
907,
16,
1250,
19401,
4649,
13,
288,
565,
19401,
774,
3054,
12,
16215,
907,
16,
19401,
907,
16,
6984,
907,
18,
... |
Date out = (Date) converter.fromString(oldStyleText); assertEquals("2004-02-22 15:16:04.0 GMT", converter.toString(out)); | assertEquals(expected, converter.fromString("2004-02-22 15:16:04.0 EST")); assertEquals(expected, converter.fromString("2004-02-22 15:16:04.0 PM")); assertEquals(expected, converter.fromString("2004-02-22 15:16:04PM")); assertEquals(expected, converter.fromString("2004-02-22 15:16:04 EST")); | public void testUnmarshallsOldXStreamDatesThatLackMillisecond() { // setup String oldStyleText = "2004-02-22 15:16:04PM"; // execute Date out = (Date) converter.fromString(oldStyleText); // verify //TODO make test zone independent assertEquals("2004-02-22 15:16:04.0 GMT", converter.toString(out)); } | 5142 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/5142/9ce7b7ad84245faf7bc74d3d7a210b7d578339ea/DateConverterTest.java/clean/xstream/src/test/com/thoughtworks/xstream/converters/basic/DateConverterTest.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
984,
12201,
87,
7617,
60,
1228,
15578,
18163,
48,
484,
4814,
557,
1434,
1435,
288,
3639,
368,
3875,
3639,
514,
1592,
2885,
1528,
273,
315,
6976,
24,
17,
3103,
17,
3787,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
984,
12201,
87,
7617,
60,
1228,
15578,
18163,
48,
484,
4814,
557,
1434,
1435,
288,
3639,
368,
3875,
3639,
514,
1592,
2885,
1528,
273,
315,
6976,
24,
17,
3103,
17,
3787,
... |
public InputStream getInputStream() { return is; } }; } | public InputStream getInputStream() { return is; } }; } | getClassReader(final String className) throws IOException { final byte[] bytes = classRepository.getCompiledClass(className); if (bytes != null) { return new JavaClassReader() { public String getClassName() { return className; } public InputStream getInputStream() { return new ByteArrayInputStream(bytes); } }; } String classFile = className.replace('.', '/') + ".class"; final InputStream is = getResourceAsStream(classFile); if (is == null) { return null; } return new JavaClassReader() { public String getClassName() { return className; } public InputStream getInputStream() { return is; } }; } | 46428 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46428/ecb6fc95432bff8be4787660b00f3c6c83acb592/CompilingClassLoader.java/buggy/src/java/org/apache/cocoon/components/flow/javascript/fom/CompilingClassLoader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
2900,
2514,
12,
6385,
514,
2658,
13,
3196,
202,
15069,
1860,
288,
202,
202,
6385,
1160,
8526,
1731,
273,
667,
3305,
18,
588,
20733,
797,
12,
12434,
1769,
202,
202,
430,
261,
3890,
480,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
2398,
2900,
2514,
12,
6385,
514,
2658,
13,
3196,
202,
15069,
1860,
288,
202,
202,
6385,
1160,
8526,
1731,
273,
667,
3305,
18,
588,
20733,
797,
12,
12434,
1769,
202,
202,
430,
261,
3890,
480,
... |
} | } | public IStatus execute(IProgressMonitor monitor, IAdaptable info) { boolean updateExtensionActivation = false; // we sort the array in order to use Array.binarySearch(); Arrays.sort(contentExtensionsToActivate); try { commonViewer.getControl().setRedraw(false); INavigatorContentDescriptor[] visibleContentDescriptors = contentService .getVisibleExtensions(); int indexofContentExtensionIdToBeActivated; /* is there a delta? */ for (int i = 0; i < visibleContentDescriptors.length && !updateExtensionActivation; i++) { indexofContentExtensionIdToBeActivated = Arrays.binarySearch( contentExtensionsToActivate, visibleContentDescriptors[i].getId()); /* * Either we have a filter that should be active that isn't XOR * a filter that shouldn't be active that is currently */ if (indexofContentExtensionIdToBeActivated >= 0 ^ contentService.isActive(visibleContentDescriptors[i] .getId())) { updateExtensionActivation = true; } } /* If so, update */ if (updateExtensionActivation) { contentService.getActivationService().activateExtensions( contentExtensionsToActivate, true); contentService.getActivationService() .persistExtensionActivations(); // automatically calls viewer.refresh() contentService.update(); // the action providers may no longer be enabled, so we reset // the selection. commonViewer.setSelection(StructuredSelection.EMPTY); } } finally { commonViewer.getControl().setRedraw(true); } return Status.OK_STATUS; } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/760f9bf6c2e4d21502cb533a888c5fe64e58bdf8/UpdateActiveExtensionsOperation.java/clean/bundles/org.eclipse.ui.navigator/src/org/eclipse/ui/internal/navigator/filters/UpdateActiveExtensionsOperation.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
1482,
1836,
12,
45,
5491,
7187,
6438,
16,
467,
13716,
429,
1123,
13,
288,
202,
202,
6494,
1089,
3625,
14857,
273,
629,
31,
202,
202,
759,
732,
1524,
326,
526,
316,
1353,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
467,
1482,
1836,
12,
45,
5491,
7187,
6438,
16,
467,
13716,
429,
1123,
13,
288,
202,
202,
6494,
1089,
3625,
14857,
273,
629,
31,
202,
202,
759,
732,
1524,
326,
526,
316,
1353,
... |
return Geometry.getSize(tabFolder.computeTrim(0,0,0,0)); | return minimumSize; | public Point computeMinimumSize() { return Geometry.getSize(tabFolder.computeTrim(0,0,0,0)); } | 56152 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56152/8367ec8d82ef68c8daa2c2966aa8a908fd214f93/DefaultPartPresentation.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/presentations/DefaultPartPresentation.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4686,
3671,
13042,
1225,
1435,
288,
202,
202,
2463,
8344,
18,
588,
1225,
12,
7032,
3899,
18,
9200,
14795,
12,
20,
16,
20,
16,
20,
16,
20,
10019,
202,
97,
2,
0,
0,
0,
0,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
4686,
3671,
13042,
1225,
1435,
288,
202,
202,
2463,
8344,
18,
588,
1225,
12,
7032,
3899,
18,
9200,
14795,
12,
20,
16,
20,
16,
20,
16,
20,
10019,
202,
97,
2,
-100,
-100,
-100... |
assertTrue("FileUtils.touch() created file.", file.exists()); | assertTrue("FileUtils.touch() created file", file.exists()); | public void testTouch() throws IOException { File file = new File(getTestDirectory(), "touch.txt") ; if (file.exists()) { file.delete(); } assertTrue("Prerequisite failed, test file exists", !file.exists()); FileUtils.touch(file); assertTrue("FileUtils.touch() created file.", file.exists()); FileOutputStream out = new FileOutputStream(file) ; assertEquals("Created empty file.", 0, file.length()); out.write(0) ; out.close(); assertEquals("Wrote one byte to file.", 1, file.length()); file.setLastModified(0) ; assertEquals("Set lastModified to 0.", 0, file.lastModified()); FileUtils.touch(file) ; assertEquals("FileUtils.touch() didn't empty the file.", 1, file.length()); assertFalse("FileUtils.touch() changed lastModified.", 0 == file.lastModified()) ; } | 56629 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/56629/aee1c7a61eb5a2de13c586e16ac7dac33524d7a9/FileUtilsTestCase.java/buggy/src/test/org/apache/commons/io/FileUtilsTestCase.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
918,
1842,
10491,
1435,
1216,
1860,
288,
3639,
1387,
585,
273,
394,
1387,
12,
588,
4709,
2853,
9334,
315,
14084,
18,
5830,
7923,
274,
3639,
309,
261,
768,
18,
1808,
10756,
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,
1071,
918,
1842,
10491,
1435,
1216,
1860,
288,
3639,
1387,
585,
273,
394,
1387,
12,
588,
4709,
2853,
9334,
315,
14084,
18,
5830,
7923,
274,
3639,
309,
261,
768,
18,
1808,
10756,
288,
5411... |
{ for (int i = 0; i < formats.length; i++) { formats[i].format(v, pw); } } | { for (int i = 0; i < formats.length; i++) { formats[i].format(v, pw); } } | public void format(Object v, PrintWriter pw) { for (int i = 0; i < formats.length; i++) { formats[i].format(v, pw); } } | 4891 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/4891/b5b5168edc3af09cb74945a80b0c36e6630ed502/Format.java/clean/src/main/mondrian/util/Format.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
740,
12,
921,
331,
16,
14071,
8772,
13,
202,
202,
95,
1082,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
6449,
18,
2469,
31,
277,
27245,
288,
9506,
202,
11962,
63... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
3196,
202,
482,
918,
740,
12,
921,
331,
16,
14071,
8772,
13,
202,
202,
95,
1082,
202,
1884,
261,
474,
277,
273,
374,
31,
277,
411,
6449,
18,
2469,
31,
277,
27245,
288,
9506,
202,
11962,
63... |
return isValid[0].getCode() == ParserEditStatus.EDITABLE ? null : isValid[0].getMessage(); | public ICellEditorValidator getEditTextValidator() { return new ICellEditorValidator() { public String isValid(final Object value) { if (value instanceof String) { //final IElement element = resolveModelReference(); final IParserEditStatus isValid[] = {null}; final IParser descParser = getParser(); try { MEditingDomainGetter.getMEditingDomain((View)getModel()).runAsRead(new MRunnable() { public Object run() { isValid[0] = descParser.isValidEditString(null, (String) value); return null; } }); } catch (Exception e) { Log.error(DiagramUIPlugin.getInstance(), IStatus.ERROR, e.getMessage(), e); } return isValid[0].getCode() == ParserEditStatus.EDITABLE ? null : isValid[0].getMessage(); } return null; } }; } | 1758 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/1758/b4c938d5d97221f8736d44de85b5ab8ff289c7cc/DescriptionCompartmentEditPart.java/buggy/org.eclipse.gmf.runtime/plugins/org.eclipse.gmf.runtime.diagram.ui/src/org/eclipse/gmf/runtime/diagram/ui/internal/editparts/DescriptionCompartmentEditPart.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
467,
4020,
6946,
5126,
21221,
1528,
5126,
1435,
288,
202,
202,
2463,
394,
467,
4020,
6946,
5126,
1435,
288,
1082,
202,
482,
514,
4908,
12,
6385,
1033,
460,
13,
288,
9506,
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,
467,
4020,
6946,
5126,
21221,
1528,
5126,
1435,
288,
202,
202,
2463,
394,
467,
4020,
6946,
5126,
1435,
288,
1082,
202,
482,
514,
4908,
12,
6385,
1033,
460,
13,
288,
9506,
202,
... | |
public XPathMatcher createMatcher(FieldActivator activator) { return new Selector.Matcher(fXPath, activator); | public XPathMatcher createMatcher(FieldActivator activator, int initialDepth) { return new Selector.Matcher(fXPath, activator, initialDepth); | public XPathMatcher createMatcher(FieldActivator activator) { return new Selector.Matcher(fXPath, activator); } // createMatcher(FieldActivator):XPathMatcher | 6373 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/6373/ab4714925ce98c83d772761c156ec8c513f75ea2/Selector.java/clean/src/org/apache/xerces/impl/xs/identity/Selector.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
10172,
6286,
752,
6286,
12,
974,
12241,
639,
5981,
639,
13,
288,
3639,
327,
394,
11703,
18,
6286,
12,
74,
14124,
16,
5981,
639,
1769,
565,
289,
368,
752,
6286,
12,
974,
12241,
639... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
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,
377,
1071,
10172,
6286,
752,
6286,
12,
974,
12241,
639,
5981,
639,
13,
288,
3639,
327,
394,
11703,
18,
6286,
12,
74,
14124,
16,
5981,
639,
1769,
565,
289,
368,
752,
6286,
12,
974,
12241,
639... |
data.widthHint = convertWidthInCharsToPixels(50); | data.widthHint = convertWidthInCharsToPixels(60); | protected Control createDialogArea(Composite parent) { initializeDialogUnits(parent); Composite topArea = (Composite) super.createDialogArea(parent); errorViewer = new TableViewer(topArea, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL); errorViewer.setSorter(getViewerSorter()); errorViewer.getControl().addMouseListener(new MouseAdapter() { /* (non-Javadoc) * @see org.eclipse.swt.events.MouseAdapter#mouseDoubleClick(org.eclipse.swt.events.MouseEvent) */ public void mouseDoubleClick(MouseEvent e) { openErrorDialog(); } }); Control control = errorViewer.getControl(); GridData data = new GridData(GridData.FILL_BOTH | GridData.GRAB_HORIZONTAL | GridData.GRAB_VERTICAL); data.widthHint = convertWidthInCharsToPixels(50); data.heightHint = convertHeightInCharsToPixels(10); control.setLayoutData(data); initContentProvider(); initLabelProvider(); initContextMenu(); applyDialogFont(parent); return topArea; } | 57470 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57470/b98f3f60ecbecb74fc8a8adeadfbd809c8ff08a3/ErrorNotificationDialog.java/clean/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/progress/ErrorNotificationDialog.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
8888,
752,
6353,
5484,
12,
9400,
982,
13,
288,
202,
202,
11160,
6353,
7537,
12,
2938,
1769,
202,
202,
9400,
1760,
5484,
273,
261,
9400,
13,
2240,
18,
2640,
6353,
5484,
12,
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,
1117,
8888,
752,
6353,
5484,
12,
9400,
982,
13,
288,
202,
202,
11160,
6353,
7537,
12,
2938,
1769,
202,
202,
9400,
1760,
5484,
273,
261,
9400,
13,
2240,
18,
2640,
6353,
5484,
12,
29... |
logSystem = LogManager.createLogSystem( this ); | logSystem = LogManager.createLogSystem(this); | private void initializeLogger() throws Exception { /* * Initialize the logger. We will eventually move all * logging into the logging manager. */ if (logSystem instanceof PrimordialLogSystem ) { PrimordialLogSystem pls = (PrimordialLogSystem) logSystem; logSystem = LogManager.createLogSystem( this ); /* * in the event of failure, lets do something to let it * limp along. */ if (logSystem == null) { logSystem = new NullLogSystem(); } else { pls.dumpLogMessages( logSystem ); } } } | 55820 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/55820/e128e4125429834f73621c8aa67036ca877e731e/RuntimeInstance.java/clean/src/java/org/apache/velocity/runtime/RuntimeInstance.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
4046,
3328,
1435,
1216,
1185,
565,
288,
540,
1748,
540,
380,
9190,
326,
1194,
18,
1660,
903,
18011,
3635,
777,
540,
380,
2907,
1368,
326,
2907,
3301,
18,
540,
1195,
3639,
309,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
4046,
3328,
1435,
1216,
1185,
565,
288,
540,
1748,
540,
380,
9190,
326,
1194,
18,
1660,
903,
18011,
3635,
777,
540,
380,
2907,
1368,
326,
2907,
3301,
18,
540,
1195,
3639,
309,
... |
wait(maxShutdownTime); | m_eventSynchronisation.wait(maxShutdownTime); | private int run() throws GrinderException, InterruptedException { final Logger logger = m_context.getProcessLogger(); logger.output("The Grinder version " + GrinderBuild.getVersionString()); logger.output(System.getProperty("java.vm.vendor") + " " + System.getProperty("java.vm.name") + " " + System.getProperty("java.vm.version") + " on " + System.getProperty("os.name") + " " + System.getProperty("os.arch") + " " + System.getProperty("os.version")); final Timer timer = new Timer(true); timer.schedule(new TickLoggerTimerTask(), 0, 1000); final JythonScript jythonScript = new JythonScript(m_context, m_scriptFile); // Don't initialise the data writer until now as the script may // declare new statistics. final PrintWriter dataWriter = m_loggerImplementation.getDataWriter(); dataWriter.print("Thread, Run, Test, Milliseconds since start"); final ExpressionView[] detailExpressionViews = CommonStatisticsViews.getDetailStatisticsView().getExpressionViews(); for (int i = 0; i < detailExpressionViews.length; ++i) { dataWriter.print(", " + detailExpressionViews[i].getDisplayName()); } dataWriter.println(); final GrinderThread[] runnable = new GrinderThread[m_numberOfThreads]; for (int i = 0; i < m_numberOfThreads; i++) { runnable[i] = new GrinderThread(m_eventSynchronisation, m_context, m_loggerImplementation, jythonScript, i); } final QueuedSender consoleSender = m_context.getConsoleSender(); consoleSender.send( m_context.createStatusMessage( ProcessStatus.STATE_STARTED, (short)0, m_numberOfThreads)); if (m_initialisationMessage.getWaitForStartMessage()) { logger.output("waiting for console signal", Logger.LOG | Logger.TERMINAL); waitForMessage(); } if (received(ConsoleListener.START) || !m_initialisationMessage.getWaitForStartMessage()) { logger.output("starting threads", Logger.LOG | Logger.TERMINAL); m_context.setExecutionStartTime(System.currentTimeMillis()); // Start the threads. for (int i = 0; i < m_numberOfThreads; i++) { final Thread t = new Thread(runnable[i], "Grinder thread " + i); t.setDaemon(true); t.start(); } final TimerTask reportTimerTask = new ReportToConsoleTimerTask(); final TimerTask shutdownTimerTask = new ShutdownTimerTask(); // Schedule a regular statistics report to the console. We don't // need to schedule this at a fixed rate. Each report contains // the work done since the last report. timer.schedule(reportTimerTask, 0, m_reportToConsoleInterval); try { if (m_duration > 0) { logger.output("will shutdown after " + m_duration + " ms", Logger.LOG | Logger.TERMINAL); timer.schedule(shutdownTimerTask, m_duration); } // Wait for a termination event. synchronized (m_eventSynchronisation) { while (GrinderThread.getNumberOfThreads() > 0) { if (checkForMessage(ConsoleListener.ANY ^ ConsoleListener.START)) { break; } if (m_shutdownTriggered) { logger.output("specified duration exceeded, shutting down", Logger.LOG | Logger.TERMINAL); break; } wait(); } } synchronized (m_eventSynchronisation) { if (GrinderThread.getNumberOfThreads() > 0) { logger.output("waiting for threads to terminate", Logger.LOG | Logger.TERMINAL); m_context.shutdown(); final long time = System.currentTimeMillis(); final long maxShutdownTime = 10000; while (GrinderThread.getNumberOfThreads() > 0) { if (System.currentTimeMillis() - time > maxShutdownTime) { logger.output("threads not terminating, continuing anyway", Logger.LOG | Logger.TERMINAL); break; } wait(maxShutdownTime); } } } } finally { reportTimerTask.cancel(); shutdownTimerTask.cancel(); } jythonScript.shutdown(); // Final report to the console. reportTimerTask.run(); } m_loggerImplementation.getDataWriter().close(); if (!m_communicationShutdown) { consoleSender.send( m_context.createStatusMessage( ProcessStatus.STATE_FINISHED, (short)0, (short)0)); } consoleSender.shutdown(); logger.output("Final statistics for this process:"); final StatisticsTable statisticsTable = new StatisticsTable(CommonStatisticsViews.getSummaryStatisticsView(), m_context.getTestRegistry().getTestStatisticsMap()); statisticsTable.print(logger.getOutputLogWriter()); if (m_initialisationMessage.getWaitForStopMessage() && !received(ConsoleListener.ANY)) { // We've got here naturally, without a console signal. logger.output("finished, waiting for console signal", Logger.LOG | Logger.TERMINAL); waitForMessage(); } timer.cancel(); // Sadly it appears its impossible to interrupt a read() on stdin, // so we can't shut down the console listener cleanly. It runs in // a daemon thread, so this isn't a big deal. if (received(ConsoleListener.START)) { logger.output("requesting reset and start"); return EXIT_START_SIGNAL; } else if (received(ConsoleListener.RESET)) { logger.output("requesting reset"); return EXIT_RESET_SIGNAL; } else if (received(ConsoleListener.STOP | ConsoleListener.SHUTDOWN)) { logger.output("requesting stop"); return EXIT_STOP_SIGNAL; } else { logger.output("finished", Logger.LOG | Logger.TERMINAL); return EXIT_NATURAL_DEATH; } } | 7770 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7770/08aadaece3fa2e439e13bc7b733f63435dfa03e6/GrinderProcess.java/clean/src/net/grinder/engine/process/GrinderProcess.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
509,
1086,
1435,
1216,
611,
86,
14055,
503,
16,
7558,
288,
565,
727,
4242,
1194,
273,
312,
67,
2472,
18,
588,
2227,
3328,
5621,
565,
1194,
18,
2844,
2932,
1986,
611,
86,
14055,
11... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
3238,
509,
1086,
1435,
1216,
611,
86,
14055,
503,
16,
7558,
288,
565,
727,
4242,
1194,
273,
312,
67,
2472,
18,
588,
2227,
3328,
5621,
565,
1194,
18,
2844,
2932,
1986,
611,
86,
14055,
11... |
sdY.getQuery().setDefinition("MyExpression(Table.Column)"); | sdY.getQuery().setDefinition("Expr(\"Column\")"); | public Chart getModel(String sSubType, Orientation orientation, String sDimension) { if (newChart == null) { newChart = ChartWithAxesImpl.create(); newChart.setType(sType); newChart.setSubType(sSubType); newChart.setOrientation(orientation); newChart.setDimension(getDimensionFor(sDimension)); } else { return newChart; } ((Axis) newChart.getAxes().get(0)).setOrientation(Orientation.HORIZONTAL_LITERAL); ((Axis) newChart.getAxes().get(0)).setType(AxisType.TEXT_LITERAL); ((Axis) newChart.getAxes().get(0)).getTitle().getCaption().setValue("Base Axis Title"); SeriesDefinition sdX = SeriesDefinitionImpl.create(); Series categorySeries = SeriesImpl.create(); sdX.getSeries().add(categorySeries); ((Axis) newChart.getAxes().get(0)).getSeriesDefinitions().add(sdX); newChart.getTitle().getLabel().getCaption().setValue("Bar Chart Title"); if (sSubType.equalsIgnoreCase("Stacked")) { ((Axis) ((Axis) newChart.getAxes().get(0)).getAssociatedAxes().get(0)) .setOrientation(Orientation.VERTICAL_LITERAL); ((Axis) ((Axis) newChart.getAxes().get(0)).getAssociatedAxes().get(0)).setType(AxisType.LINEAR_LITERAL); ((Axis) ((Axis) newChart.getAxes().get(0)).getAssociatedAxes().get(0)).getTitle().getCaption().setValue( "Orthogonal Axis Title"); SeriesDefinition sdY = SeriesDefinitionImpl.create(); sdY.getQuery().setDefinition("MyExpression(Table.Column)"); sdY.getSeriesPalette().update(0); Series valueSeries = BarSeriesImpl.create(); valueSeries.getLabel().setVisible(true); valueSeries.setStacked(true); sdY.getSeries().add(valueSeries); ((Axis) ((Axis) newChart.getAxes().get(0)).getAssociatedAxes().get(0)).getSeriesDefinitions().add(sdY); } else if (sSubType.equalsIgnoreCase("Percent Stacked")) { ((Axis) ((Axis) newChart.getAxes().get(0)).getAssociatedAxes().get(0)) .setOrientation(Orientation.VERTICAL_LITERAL); ((Axis) ((Axis) newChart.getAxes().get(0)).getAssociatedAxes().get(0)).setType(AxisType.LINEAR_LITERAL); ((Axis) ((Axis) newChart.getAxes().get(0)).getAssociatedAxes().get(0)).setPercent(true); ((Axis) ((Axis) newChart.getAxes().get(0)).getAssociatedAxes().get(0)).getTitle().getCaption().setValue( "Orthogonal Axis Title"); SeriesDefinition sdY = SeriesDefinitionImpl.create(); sdY.getQuery().setDefinition("MyExpression(Table.Column)"); sdY.getSeriesPalette().update(0); Series valueSeries = BarSeriesImpl.create(); valueSeries.getLabel().setVisible(true); valueSeries.setStacked(true); ((BarSeries) valueSeries).setStacked(true); sdY.getSeries().add(valueSeries); ((Axis) ((Axis) newChart.getAxes().get(0)).getAssociatedAxes().get(0)).getSeriesDefinitions().add(sdY); } else if (sSubType.equalsIgnoreCase("Side-by-side")) { ((Axis) ((Axis) newChart.getAxes().get(0)).getAssociatedAxes().get(0)) .setOrientation(Orientation.VERTICAL_LITERAL); ((Axis) ((Axis) newChart.getAxes().get(0)).getAssociatedAxes().get(0)).setType(AxisType.LINEAR_LITERAL); ((Axis) ((Axis) newChart.getAxes().get(0)).getAssociatedAxes().get(0)).getTitle().getCaption().setValue( "Orthogonal Axis Title"); SeriesDefinition sdY = SeriesDefinitionImpl.create(); sdY.getQuery().setDefinition("MyExpression(Table.Column)"); sdY.getSeriesPalette().update(0); Series valueSeries = BarSeriesImpl.create(); valueSeries.getLabel().setVisible(true); ((BarSeries) valueSeries).setStacked(false); sdY.getSeries().add(valueSeries); ((Axis) ((Axis) newChart.getAxes().get(0)).getAssociatedAxes().get(0)).getSeriesDefinitions().add(sdY); } return newChart; } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/3312cd0d7d4efb945ae26dd43efddc7cb433aa3c/BarChart.java/clean/chart/org.eclipse.birt.chart.ui.extension/src/org/eclipse/birt/chart/ui/swt/type/BarChart.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
14804,
7454,
12,
780,
272,
30511,
16,
531,
12556,
9820,
16,
514,
272,
8611,
13,
565,
288,
3639,
309,
261,
2704,
7984,
422,
446,
13,
3639,
288,
5411,
394,
7984,
273,
14804,
1190,
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,
14804,
7454,
12,
780,
272,
30511,
16,
531,
12556,
9820,
16,
514,
272,
8611,
13,
565,
288,
3639,
309,
261,
2704,
7984,
422,
446,
13,
3639,
288,
5411,
394,
7984,
273,
14804,
1190,
2... |
if (volume == null) { return this; } | if (volume == null) { return this; } | public BoundingVolume mergeLocal(BoundingVolume volume) { if (volume == null) { return this; } if (volume instanceof BoundingBox) { BoundingBox vBox = (BoundingBox) volume; return merge(vBox.center, vBox.xExtent, vBox.yExtent, vBox.zExtent, this); } else if (volume instanceof BoundingSphere) { BoundingSphere vSphere = (BoundingSphere) volume; return merge(vSphere.center, vSphere.radius, vSphere.radius, vSphere.radius, this); } else if (volume instanceof OrientedBoundingBox) { return mergeOBB((OrientedBoundingBox) volume); } else { return null; } } | 19503 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/19503/6aaba14bb39fd6af9aea6f599180d9ac7dbd923d/BoundingBox.java/buggy/src/com/jme/bounding/BoundingBox.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
12281,
310,
4545,
2691,
2042,
12,
3499,
310,
4545,
3940,
13,
288,
3639,
309,
261,
9491,
422,
446,
13,
288,
327,
333,
31,
289,
3639,
309,
261,
9491,
1276,
25245,
13,
288,
5411,
252... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
12281,
310,
4545,
2691,
2042,
12,
3499,
310,
4545,
3940,
13,
288,
3639,
309,
261,
9491,
422,
446,
13,
288,
327,
333,
31,
289,
3639,
309,
261,
9491,
1276,
25245,
13,
288,
5411,
252... |
_t = __t2098; | _t = __t2099; | public final void systemdialoggetfilestate(AST _t) throws RecognitionException { AST systemdialoggetfilestate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST __t2089 = _t; AST tmp1475_AST_in = (AST)_t; match(_t,SYSTEMDIALOG); _t = _t.getFirstChild(); AST tmp1476_AST_in = (AST)_t; match(_t,GETFILE); _t = _t.getNextSibling(); field(_t); _t = _retTree; { _loop2101: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case FILTERS: { AST __t2091 = _t; AST tmp1477_AST_in = (AST)_t; match(_t,FILTERS); _t = _t.getFirstChild(); expression(_t); _t = _retTree; expression(_t); _t = _retTree; { _loop2093: do { if (_t==null) _t=ASTNULL; if ((_t.getType()==COMMA)) { AST tmp1478_AST_in = (AST)_t; match(_t,COMMA); _t = _t.getNextSibling(); expression(_t); _t = _retTree; expression(_t); _t = _retTree; } else { break _loop2093; } } while (true); } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case INITIALFILTER: { AST __t2095 = _t; AST tmp1479_AST_in = (AST)_t; match(_t,INITIALFILTER); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t2095; _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t2091; _t = _t.getNextSibling(); break; } case ASKOVERWRITE: { AST tmp1480_AST_in = (AST)_t; match(_t,ASKOVERWRITE); _t = _t.getNextSibling(); break; } case CREATETESTFILE: { AST tmp1481_AST_in = (AST)_t; match(_t,CREATETESTFILE); _t = _t.getNextSibling(); break; } case DEFAULTEXTENSION: { AST __t2096 = _t; AST tmp1482_AST_in = (AST)_t; match(_t,DEFAULTEXTENSION); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t2096; _t = _t.getNextSibling(); break; } case INITIALDIR: { AST __t2097 = _t; AST tmp1483_AST_in = (AST)_t; match(_t,INITIALDIR); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t2097; _t = _t.getNextSibling(); break; } case MUSTEXIST: { AST tmp1484_AST_in = (AST)_t; match(_t,MUSTEXIST); _t = _t.getNextSibling(); break; } case RETURNTOSTARTDIR: { AST tmp1485_AST_in = (AST)_t; match(_t,RETURNTOSTARTDIR); _t = _t.getNextSibling(); break; } case SAVEAS: { AST tmp1486_AST_in = (AST)_t; match(_t,SAVEAS); _t = _t.getNextSibling(); break; } case TITLE: { AST __t2098 = _t; AST tmp1487_AST_in = (AST)_t; match(_t,TITLE); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t2098; _t = _t.getNextSibling(); break; } case USEFILENAME: { AST tmp1488_AST_in = (AST)_t; match(_t,USEFILENAME); _t = _t.getNextSibling(); break; } case UPDATE: { AST __t2099 = _t; AST tmp1489_AST_in = (AST)_t; match(_t,UPDATE); _t = _t.getFirstChild(); field(_t); _t = _retTree; _t = __t2099; _t = _t.getNextSibling(); break; } case IN_KW: { AST __t2100 = _t; AST tmp1490_AST_in = (AST)_t; match(_t,IN_KW); _t = _t.getFirstChild(); AST tmp1491_AST_in = (AST)_t; match(_t,WINDOW); _t = _t.getNextSibling(); expression(_t); _t = _retTree; _t = __t2100; _t = _t.getNextSibling(); break; } default: { break _loop2101; } } } while (true); } state_end(_t); _t = _retTree; _t = __t2089; _t = _t.getNextSibling(); _retTree = _t; } | 13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/865876f0e6319c071fef156818ff116c276cfdff/TreeParser03.java/buggy/trunk/org.prorefactor.core/src/org/prorefactor/treeparser03/TreeParser03.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
2619,
12730,
588,
7540,
395,
340,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
2619,
12730,
588,
7540,
395,
340,
67,
9053,
67,
267,
273,
261,
67,
88,
4... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
2619,
12730,
588,
7540,
395,
340,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
2619,
12730,
588,
7540,
395,
340,
67,
9053,
67,
267,
273,
261,
67,
88,
4... |
"Lorg/mozilla/javascript/Scriptable;)", | "Lorg/mozilla/javascript/Scriptable;Z)", | private void generatePrologue(Context cx, Node tree, boolean inFunction, int directParameterCount) { funObjLocal = reserveWordLocal(0); contextLocal = reserveWordLocal(1); variableObjectLocal = reserveWordLocal(2); thisObjLocal = reserveWordLocal(3); if (directParameterCount > 0) { for (int i = 0; i < (3 * directParameterCount); i++) reserveWordLocal(i + 4); // reserve 'args' } // reserve 'args[]' argsLocal = reserveWordLocal(directParameterCount <= 0 ? 4 : (3 * directParameterCount) + 4); // These locals are to be pre-allocated since they need function scope. // They are primarily used by the exception handling mechanism Integer localCount = (Integer)(tree.getProp(Node.LOCALCOUNT_PROP)); if (localCount != null) { itsLocalAllocationBase = (short)(argsLocal + 1); for (int i = 0; i < localCount.intValue(); i++) { reserveWordLocal(itsLocalAllocationBase + i); } } hasVarsInRegs = inFunction && !((OptFunctionNode)tree).requiresActivation(); if (hasVarsInRegs) { // No need to create activation. Pad arguments if need be. int parmCount = vars.getParameterCount(); if (inFunction && parmCount > 0 && directParameterCount < 0) { // Set up args array // check length of arguments, pad if need be aload(argsLocal); addByteCode(ByteCode.ARRAYLENGTH); push(parmCount); int label = acquireLabel(); addByteCode(ByteCode.IF_ICMPGE, label); aload(argsLocal); push(parmCount); addScriptRuntimeInvoke("padArguments", "([Ljava/lang/Object;I)", "[Ljava/lang/Object;"); astore(argsLocal); markLabel(label); } // REMIND - only need to initialize the vars that don't get a value // before the next call and are used in the function short firstUndefVar = -1; for (int i = 0; i < vars.size(); i++) { OptLocalVariable lVar = (OptLocalVariable) vars.get(i); if (lVar.isNumber()) { lVar.assignJRegister(getNewWordPairLocal()); push(0.0); dstore(lVar.getJRegister()); } else if (lVar.isParameter()) { if (directParameterCount < 0) { lVar.assignJRegister(getNewWordLocal()); aload(argsLocal); push(i); addByteCode(ByteCode.AALOAD); astore(lVar.getJRegister()); } } else { lVar.assignJRegister(getNewWordLocal()); if (firstUndefVar == -1) { pushUndefined(); firstUndefVar = lVar.getJRegister(); } else { aload(firstUndefVar); } astore(lVar.getJRegister()); } lVar.setStartPC(classFile.getCurrentCodeOffset()); } // Indicate that we should generate debug information for // the variable table. (If we're generating debug info at // all.) debugVars = vars; // Skip creating activation object. return; } if (directParameterCount > 0) { // We're going to create an activation object, so we // need to get an args array with all the arguments in it. aload(argsLocal); push(directParameterCount); addOptRuntimeInvoke("padStart", "([Ljava/lang/Object;I)", "[Ljava/lang/Object;"); astore(argsLocal); for (int i=0; i < directParameterCount; i++) { aload(argsLocal); push(i); // "3" is 1 for Object parm and 2 for double parm, and // "4" is to account for the context, etc. parms aload((short) (3*i+4)); addByteCode(ByteCode.AASTORE); } } String debugVariableName; if (inFunction) { aload(contextLocal); aload(variableObjectLocal); aload(funObjLocal); aload(thisObjLocal); aload(argsLocal); addScriptRuntimeInvoke("initVarObj", "(Lorg/mozilla/javascript/Context;" + "Lorg/mozilla/javascript/Scriptable;" + "Lorg/mozilla/javascript/NativeFunction;" + "Lorg/mozilla/javascript/Scriptable;" + "[Ljava/lang/Object;)", "Lorg/mozilla/javascript/Scriptable;"); debugVariableName = "activation"; } else { aload(contextLocal); aload(variableObjectLocal); aload(funObjLocal); aload(thisObjLocal); addScriptRuntimeInvoke("initScript", "(Lorg/mozilla/javascript/Context;" + "Lorg/mozilla/javascript/Scriptable;" + "Lorg/mozilla/javascript/NativeFunction;" + "Lorg/mozilla/javascript/Scriptable;)", "Lorg/mozilla/javascript/Scriptable;"); debugVariableName = "global"; } astore(variableObjectLocal); if (cx.isGeneratingDebug()) { debugVars = new OptVariableTable(); debugVars.addLocal(debugVariableName); OptLocalVariable lv = (OptLocalVariable) debugVars.get(debugVariableName); lv.assignJRegister(variableObjectLocal); lv.setStartPC(classFile.getCurrentCodeOffset()); } if (!inFunction) { // OPT: use dataflow to prove that this assignment is dead scriptResultLocal = getNewWordLocal(); pushUndefined(); astore(scriptResultLocal); } if (inFunction && ((OptFunctionNode)tree).containsCalls(-1)) { if (((OptFunctionNode)tree).containsCalls(0)) { itsZeroArgArray = getNewWordLocal(); classFile.add(ByteCode.GETSTATIC, "org/mozilla/javascript/ScriptRuntime", "emptyArgs", "[Ljava/lang/Object;"); astore(itsZeroArgArray); } if (((OptFunctionNode)tree).containsCalls(1)) { itsOneArgArray = getNewWordLocal(); push(1); addByteCode(ByteCode.ANEWARRAY, "java/lang/Object"); astore(itsOneArgArray); } } if (debugLevel > 0) { // XXX is 0 correct? // setup the local for 'pc' with a default value debug_pcLocal = getNewWordLocal(); addByteCode(ByteCode.ICONST_0); istore(debug_pcLocal); if (debugLevel >= 6) { debugStopSubLabel = acquireLabel(); generateDebugStopSubroutine(); } } } | 7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/698b9afdabc6bdb8357caa1df3e68c71d1732086/Codegen.java/clean/js/rhino/src/org/mozilla/javascript/optimizer/Codegen.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2103,
626,
1330,
344,
12,
1042,
9494,
16,
2029,
2151,
16,
1250,
316,
2083,
16,
21394,
509,
2657,
1662,
1380,
13,
565,
288,
3639,
9831,
2675,
2042,
273,
20501,
3944,
2042,
12,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
3238,
918,
2103,
626,
1330,
344,
12,
1042,
9494,
16,
2029,
2151,
16,
1250,
316,
2083,
16,
21394,
509,
2657,
1662,
1380,
13,
565,
288,
3639,
9831,
2675,
2042,
273,
20501,
3944,
2042,
12,
... |
_t = __t1088; _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1081; | _t = __t1093; _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1086; | public final void runstate(AST _t) throws RecognitionException { AST runstate_AST_in = (_t == ASTNULL) ? null : (AST)_t; AST r = null; AST hnd = null; AST hexp = null; AST __t1067 = _t; r = _t==ASTNULL ? null :(AST)_t; match(_t,RUN); _t = _t.getFirstChild(); filenameorvalue(_t); _t = _retTree; if ( inputState.guessing==0 ) { action.runBegin(r); } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case LEFTANGLE: { AST tmp1440_AST_in = (AST)_t; match(_t,LEFTANGLE); _t = _t.getNextSibling(); AST tmp1441_AST_in = (AST)_t; match(_t,LEFTANGLE); _t = _t.getNextSibling(); filenameorvalue(_t); _t = _retTree; AST tmp1442_AST_in = (AST)_t; match(_t,RIGHTANGLE); _t = _t.getNextSibling(); AST tmp1443_AST_in = (AST)_t; match(_t,RIGHTANGLE); _t = _t.getNextSibling(); break; } case EOF: case PERIOD: case ASYNCHRONOUS: case IN_KW: case NOERROR_KW: case ON: case PERSISTENT: case SET: case VALUE: case Parameter_list: case TYPELESS_TOKEN: { break; } default: { throw new NoViableAltException(_t); } } } { _loop1089: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case PERSISTENT: { AST __t1070 = _t; AST tmp1444_AST_in = (AST)_t; match(_t,PERSISTENT); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case SET: { AST __t1072 = _t; AST tmp1445_AST_in = (AST)_t; match(_t,SET); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case Field_ref: { hnd = _t==ASTNULL ? null : (AST)_t; fld(_t,CQ.UPDATING); _t = _retTree; if ( inputState.guessing==0 ) { action.runPersistentSet(hnd); } break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1072; _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1070; _t = _t.getNextSibling(); break; } case SET: { AST __t1074 = _t; AST tmp1446_AST_in = (AST)_t; match(_t,SET); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case Field_ref: { fld(_t,CQ.UPDATING); _t = _retTree; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1074; _t = _t.getNextSibling(); break; } case ON: { AST __t1076 = _t; AST tmp1447_AST_in = (AST)_t; match(_t,ON); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; if ((_t.getType()==SERVER)) { AST tmp1448_AST_in = (AST)_t; match(_t,SERVER); _t = _t.getNextSibling(); } else if ((_tokenSet_3.member(_t.getType()))) { } else { throw new NoViableAltException(_t); } } expression(_t); _t = _retTree; { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case TRANSACTION: { AST tmp1449_AST_in = (AST)_t; match(_t,TRANSACTION); _t = _t.getNextSibling(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case DISTINCT: { AST tmp1450_AST_in = (AST)_t; match(_t,DISTINCT); _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1076; _t = _t.getNextSibling(); break; } case IN_KW: { AST __t1080 = _t; AST tmp1451_AST_in = (AST)_t; match(_t,IN_KW); _t = _t.getFirstChild(); hexp = _t==ASTNULL ? null : (AST)_t; expression(_t); _t = _retTree; _t = __t1080; _t = _t.getNextSibling(); if ( inputState.guessing==0 ) { action.runInHandle(hexp); } break; } case ASYNCHRONOUS: { AST __t1081 = _t; AST tmp1452_AST_in = (AST)_t; match(_t,ASYNCHRONOUS); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case SET: { AST __t1083 = _t; AST tmp1453_AST_in = (AST)_t; match(_t,SET); _t = _t.getFirstChild(); { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case Field_ref: { fld(_t,CQ.UPDATING); _t = _retTree; break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1083; _t = _t.getNextSibling(); break; } case 3: case EVENTPROCEDURE: case IN_KW: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case EVENTPROCEDURE: { AST __t1086 = _t; AST tmp1454_AST_in = (AST)_t; match(_t,EVENTPROCEDURE); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1086; _t = _t.getNextSibling(); break; } case 3: case IN_KW: { break; } default: { throw new NoViableAltException(_t); } } } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case IN_KW: { AST __t1088 = _t; AST tmp1455_AST_in = (AST)_t; match(_t,IN_KW); _t = _t.getFirstChild(); expression(_t); _t = _retTree; _t = __t1088; _t = _t.getNextSibling(); break; } case 3: { break; } default: { throw new NoViableAltException(_t); } } } _t = __t1081; _t = _t.getNextSibling(); break; } default: { break _loop1089; } } } while (true); } if ( inputState.guessing==0 ) { action.runEnd(r); } { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case Parameter_list: { parameterlist(_t); _t = _retTree; break; } case EOF: case PERIOD: case NOERROR_KW: case VALUE: case TYPELESS_TOKEN: { break; } default: { throw new NoViableAltException(_t); } } } { _loop1092: do { if (_t==null) _t=ASTNULL; switch ( _t.getType()) { case NOERROR_KW: { AST tmp1456_AST_in = (AST)_t; match(_t,NOERROR_KW); _t = _t.getNextSibling(); break; } case VALUE: case TYPELESS_TOKEN: { anyorvalue(_t); _t = _retTree; break; } default: { break _loop1092; } } } while (true); } state_end(_t); _t = _retTree; _t = __t1067; _t = _t.getNextSibling(); _retTree = _t; } | 13952 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/13952/f492fd11e745beb562b4e209643ba003aa8a6271/TreeParser01.java/clean/trunk/org.prorefactor.core/src/org/prorefactor/treeparser01/TreeParser01.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
1086,
2019,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
1086,
2019,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
482,
727,
918,
1086,
2019,
12,
9053,
389,
88,
13,
1216,
9539,
288,
9506,
202,
9053,
1086,
2019,
67,
9053,
67,
267,
273,
261,
67,
88,
422,
9183,
8560,
13,
692,
446,
294,
261,
9053... |
public IChemFormat getFormat() { | public IResourceFormat getFormat() { | public IChemFormat getFormat() { return new PMPFormat(); } | 45167 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/45167/c20f0a656b069d8a3e653822a8741d3aedc2b0f2/PMPReader.java/buggy/src/org/openscience/cdk/io/PMPReader.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
467,
1420,
1630,
10959,
1435,
288,
3639,
327,
394,
453,
4566,
1630,
5621,
565,
289,
2,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0... | [
1,
1,
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,
467,
1420,
1630,
10959,
1435,
288,
3639,
327,
394,
453,
4566,
1630,
5621,
565,
289,
2,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
-100,
... |
int q; int digit; double di; /* d truncated to an integer */ double df; /* The fractional part of d */ buffer = new char[DTOBASESTR_BUFFER_SIZE]; p = 0; if (d < 0.0) { buffer[p++] = '-'; | /* Check for Infinity and NaN */ if (Double.isNaN(d)) { return "NaN"; } else if (Double.isInfinite(d)) { return (d > 0.0) ? "Infinity" : "-Infinity"; } else if (d == 0) { return "0"; } boolean negative; if (d >= 0.0) { negative = false; } else { negative = true; | public static String JS_dtobasestr(int base, double d) { char[] buffer; /* The output string */ int p; /* index to current position in the buffer */ int pInt; /* index to the beginning of the integer part of the string */ int q; int digit; double di; /* d truncated to an integer */ double df; /* The fractional part of d */// JS_ASSERT(base >= 2 && base <= 36); buffer = new char[DTOBASESTR_BUFFER_SIZE]; p = 0; if (d < 0.0) { buffer[p++] = '-'; d = -d; } /* Check for Infinity and NaN */ if (Double.isNaN(d)) return "NaN"; else if (Double.isInfinite(d)) return "Infinity"; /* Output the integer part of d with the digits in reverse order. */ pInt = p; di = (int)d; BigInteger b = BigInteger.valueOf((int)di); String intDigits = b.toString(base); intDigits.getChars(0, intDigits.length(), buffer, p); p += intDigits.length(); df = d - di; if (df != 0.0) { /* We have a fraction. */ buffer[p++] = '.'; long dBits = Double.doubleToLongBits(d); int word0 = (int)(dBits >> 32); int word1 = (int)(dBits); int[] e = new int[1]; int[] bbits = new int[1]; b = d2b(df, e, bbits);// JS_ASSERT(e < 0); /* At this point df = b * 2^e. e must be less than zero because 0 < df < 1. */ int s2 = -(word0 >>> Exp_shift1 & Exp_mask >> Exp_shift1); if (s2 == 0) s2 = -1; s2 += Bias + P; /* 1/2^s2 = (nextDouble(d) - d)/2 */// JS_ASSERT(-s2 < e); BigInteger mlo = BigInteger.valueOf(1); BigInteger mhi = mlo; if ((word1 == 0) && ((word0 & Bndry_mask) == 0) && ((word0 & (Exp_mask & Exp_mask << 1)) != 0)) { /* The special case. Here we want to be within a quarter of the last input significant digit instead of one half of it when the output string's value is less than d. */ s2 += Log2P; mhi = BigInteger.valueOf(1<<Log2P); } b = b.shiftLeft(e[0] + s2); BigInteger s = BigInteger.valueOf(1); s = s.shiftLeft(s2); /* At this point we have the following: * s = 2^s2; * 1 > df = b/2^s2 > 0; * (d - prevDouble(d))/2 = mlo/2^s2; * (nextDouble(d) - d)/2 = mhi/2^s2. */ BigInteger bigBase = BigInteger.valueOf(base); boolean done = false; do { b = b.multiply(bigBase); BigInteger[] divResult = b.divideAndRemainder(s); b = divResult[1]; digit = (char)(divResult[0].intValue()); if (mlo == mhi) mlo = mhi = mlo.multiply(bigBase); else { mlo = mlo.multiply(bigBase); mhi = mhi.multiply(bigBase); } /* Do we yet have the shortest string that will round to d? */ int j = b.compareTo(mlo); /* j is b/2^s2 compared with mlo/2^s2. */ BigInteger delta = s.subtract(mhi); int j1 = (delta.signum() <= 0) ? 1 : b.compareTo(delta); /* j1 is b/2^s2 compared with 1 - mhi/2^s2. */ if (j1 == 0 && ((word1 & 1) == 0)) { if (j > 0) digit++; done = true; } else if (j < 0 || (j == 0 && ((word1 & 1) == 0))) { if (j1 > 0) { /* Either dig or dig+1 would work here as the least significant digit. Use whichever would produce an output value closer to d. */ b = b.shiftLeft(1); j1 = b.compareTo(s); if (j1 > 0) /* The even test (|| (j1 == 0 && (digit & 1))) is not here because it messes up odd base output * such as 3.5 in base 3. */ digit++; } done = true; } else if (j1 > 0) { digit++; done = true; }// JS_ASSERT(digit < (uint32)base); buffer[p++] = BASEDIGIT(digit); } while (!done); } return new String(buffer, 0, p); } | 7555 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/7555/46c31c6a73f04b8d84fcee283b370775bb6a0440/DToA.java/clean/js/rhino/src/org/mozilla/javascript/DToA.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
6756,
67,
72,
869,
18602,
313,
12,
474,
1026,
16,
1645,
302,
13,
565,
288,
3639,
1149,
8526,
1613,
31,
4202,
1748,
1021,
876,
533,
1195,
3639,
509,
293,
31,
9079,
1748,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
377,
1071,
760,
514,
6756,
67,
72,
869,
18602,
313,
12,
474,
1026,
16,
1645,
302,
13,
565,
288,
3639,
1149,
8526,
1613,
31,
4202,
1748,
1021,
876,
533,
1195,
3639,
509,
293,
31,
9079,
1748,
... |
public static char getCombiningChar(char c, char d) { switch (c) { case 0x0300 : switch (d) { case 0x0041 : return 0x00C0; case 0x0045 : return 0x00C8; case 0x0049 : return 0x00CC; case 0x004F : return 0x00D2; case 0x0055 : return 0x00D9; case 0x0061 : return 0x00E0; case 0x0065 : return 0x00E8; case 0x0069 : return 0x00EC; case 0x006F : return 0x00F2; case 0x0075 : return 0x00F9; default: break; } case 0x0301 : switch (d) { case 0x0041 : return 0x00C1; case 0x0043 : return 0x0106; case 0x0045 : return 0x00C9; case 0x0047 : return 0x01F4; case 0x0049 : return 0x00CD; case 0x004B : return 0x1E30; case 0x004C : return 0x0139; case 0x004D : return 0x1E3E; case 0x004E : return 0x0143; case 0x004F : return 0x00D3; case 0x0050 : return 0x1E54; case 0x0052 : return 0x0154; case 0x0053 : return 0x015A; case 0x0055 : return 0x00DA; case 0x0059 : return 0x00DD; case 0x005A : return 0x0179; case 0x0061 : return 0x00E1; case 0x0063 : return 0x0107; case 0x0065 : return 0x00E9; case 0x0067 : return 0x01F5; case 0x0069 : return 0x00ED; case 0x006B : return 0x1E31; case 0x006C : return 0x013A; case 0x006D : return 0x1E3F; case 0x006E : return 0x0144; case 0x006F : return 0x00F3; case 0x0070 : return 0x1E55; case 0x0072 : return 0x0155; case 0x0073 : return 0x015B; case 0x0075 : return 0x00FA; case 0x0079 : return 0x00FD; case 0x007A : return 0x017A; case 0x00A2 : return 0x01FE; case 0x00B2 : return 0x01FF; default: break; } case 0x0302 : switch(d) { case 0x0041 : return 0x00C2; case 0x0043 : return 0x0108; case 0x0045 : return 0x00CA; case 0x0047 : return 0x011C; case 0x0048 : return 0x0124; case 0x0049 : return 0x00CE; case 0x004A : return 0x0134; case 0x004B : return 0x01E8; case 0x004C : return 0x1E3C; case 0x004F : return 0x00D4; case 0x0053 : return 0x015C; case 0x0054 : return 0x1E70; case 0x0055 : return 0x00DB; case 0x0057 : return 0x0174; case 0x0059 : return 0x0176; case 0x0061 : return 0x00E2; case 0x0063 : return 0x0109; case 0x0065 : return 0x00EA; case 0x0067 : return 0x011D; case 0x0068 : return 0x0125; case 0x0069 : return 0x00EE; case 0x006A : return 0x0135; case 0x006B : return 0x01E9; case 0x006C : return 0x1E3D; case 0x006F : return 0x00F4; case 0x0073 : return 0x015D; case 0x0074 : return 0x1E71; case 0x0075 : return 0x00FB; case 0x0077 : return 0x0175; case 0x0079 : return 0x0177; default: break; } case 0x0303 : switch(d) { case 0x0041 : return 0x00C3; case 0x0049 : return 0x0128; case 0x004E : return 0x00D1; case 0x004F : return 0x00D5; case 0x0055 : return 0x0168; case 0x0061 : return 0x00E3; case 0x0069 : return 0x0129; case 0x006E : return 0x00F1; case 0x006F : return 0x00F5; case 0x0075 : return 0x0169; default: break; } case 0x0304 : switch(d) { case 0x0041 : return 0x0100; case 0x0045 : return 0x0112; case 0x0049 : return 0x012A; case 0x004F : return 0x014C; case 0x0055 : return 0x016A; case 0x0061 : return 0x0101; case 0x0065 : return 0x0113; case 0x0069 : return 0x012B; case 0x006F : return 0x014D; case 0x0075 : return 0x016B; default: break; } case 0x0306 : switch(d) { case 0x0041 : return 0x0102; case 0x0045 : return 0x0114; case 0x0047 : return 0x011E; case 0x0049 : return 0x012C; case 0x004F : return 0x014E; case 0x0055 : return 0x016C; case 0x0061 : return 0x0103; case 0x0065 : return 0x0115; case 0x0069 : return 0x012D; case 0x006F : return 0x014F; case 0x0075 : return 0x016D; default: break; } case 0x0307 : switch(d) { case 0x0041 : return 0x0226; case 0x0042 : return 0x1E02; case 0x0043 : return 0x010A; case 0x0045 : return 0x0116; case 0x0046 : return 0x1E1E; case 0x0047 : return 0x0120; case 0x0048 : return 0x1E22; case 0x0049 : return 0x0130; case 0x004D : return 0x1E40; case 0x004E : return 0x1E44; case 0x0054 : return 0x1E6A; case 0x0057 : return 0x1E86; case 0x0058 : return 0x1E8A; case 0x0059 : return 0x1E8E; case 0x005A : return 0x017B; case 0x0061 : return 0x0227; case 0x0062 : return 0x1E03; case 0x0063 : return 0x010B; case 0x0065 : return 0x0117; case 0x0066 : return 0x1E1F; case 0x0067 : return 0x0121; case 0x0068 : return 0x1E23; case 0x006D : return 0x1E41; case 0x006E : return 0x1E45; case 0x0074 : return 0x1E6B; case 0x0077 : return 0x1E87; case 0x0078 : return 0x1E8B; case 0x0079 : return 0x1E8F; case 0x007A : return 0x017C; default: break; } case 0x0308 : switch(d) { case 0x0041 : return 0x00C4; case 0x0045 : return 0x00CB; case 0x0049 : return 0x00CF; case 0x004F : return 0x00D6; case 0x0055 : return 0x00DC; case 0x0059 : return 0x0178; case 0x0061 : return 0x00E4; case 0x0065 : return 0x00EB; case 0x0069 : return 0x00EF; case 0x006F : return 0x00F6; case 0x0075 : return 0x00FC; case 0x0079 : return 0x00FF; default: break; } case 0x0309 : switch(d) { case 0x0041 : return 0x1EA2; case 0x0061 : return 0x1EA3; case 0x00C2 : return 0x1EA8; case 0x00E2 : return 0x1EA9; case 0x0102 : return 0x1EB2; case 0x0103 : return 0x1EB3; case 0x0045 : return 0x1EBA; case 0x0065 : return 0x1EBB; case 0x00CA : return 0x1EC0; case 0x00EA : return 0x1EC1; case 0x0049 : return 0x1EC8; case 0x0069 : return 0x1EC9; case 0x004F : return 0x1ECE; case 0x006F : return 0x1ECF; case 0x00D4 : return 0x1ED4; case 0x00F4 : return 0x1ED5; // latin capital letter O with horn and hook above case 0x01A0 : return 0x1EDE; // latin small letter o with horn and hook above case 0x01A1 : return 0x1EDF; // latin capital letter U with hook above case 0x0055 : return 0x1EE6; // latin small letter U with hook above case 0x0075 : return 0x1EE7; // latin capital letter U with horn and hook above case 0x01AF : return 0x1EEC; // latin small letter u with horn and hook above case 0x01B0 : return 0x1EED; // latin capital letter Y with hook above case 0x0059 : return 0x1EF6; // latin small letter y with hook above case 0x0079 : return 0x1EF7; default : break; } case 0x030C : switch(d) { case 0x0043 : return 0x010C; case 0x0044 : return 0x010E; case 0x0045 : return 0x011A; case 0x0047 : return 0x01E6; case 0x004C : return 0x013D; case 0x004E : return 0x0147; case 0x004F : return 0x01D1; case 0x0052 : return 0x0158; case 0x0053 : return 0x0160; case 0x0054 : return 0x0164; case 0x005A : return 0x017D; case 0x0063 : return 0x010D; case 0x0064 : return 0x010F; case 0x0065 : return 0x011B; case 0x0067 : return 0x01E7; case 0x006C : return 0x013E; case 0x006E : return 0x0148; case 0x006F : return 0x01D2; case 0x0072 : return 0x0159; case 0x0073 : return 0x0161; case 0x0074 : return 0x0165; case 0x007A : return 0x017E; default: break; } case 0x030A : switch(d) { case 0x0041 : return 0x00C5; case 0x0055 : return 0x016E; case 0x0061 : return 0x00E5; case 0x0075 : return 0x016F; default: break; } case 0x0315 : switch(d) { case 0x006E : return 0x0149; default: break; } case 0x030B : switch(d) { case 0x004F : return 0x0150; case 0x0055 : return 0x0170; case 0x006F : return 0x0151; case 0x0075 : return 0x0171; default: break; } case 0x0323 : switch(d) { case 0x0041 : return 0x1EA0; case 0x0042 : return 0x1E04; case 0x0044 : return 0x1E0C; case 0x004B : return 0x1E32; case 0x004C : return 0x1E36; case 0x004D : return 0x1E42; case 0x004E : return 0x1E46; case 0x0052 : return 0x1E5A; case 0x0054 : return 0x1E6C; case 0x0056 : return 0x1E7E; case 0x005A : return 0x1E92; case 0x0061 : return 0x1EA1; case 0x0062 : return 0x1E05; case 0x0064 : return 0x1E0D; case 0x0065 : return 0x1EB9; case 0x006B : return 0x1E33; case 0x006C : return 0x1E37; case 0x006D : return 0x1E43; case 0x006E : return 0x1E47; case 0x0072 : return 0x1E5B; case 0x0074 : return 0x1E6D; case 0x0076 : return 0x1E7F; case 0x007A : return 0x1E93; default: break; } case 0x0325 : switch(d) { case 0x0041 : return 0x1E00; case 0x0061 : return 0x1E01; default: break; } case 0x0327 : switch(d) { case 0x0043 : return 0x00C7; case 0x0047 : return 0x0122; case 0x004B : return 0x0136; case 0x004C : return 0x013B; case 0x004E : return 0x0145; case 0x0053 : return 0x015E; case 0x0054 : return 0x0162; case 0x0063 : return 0x00E7; case 0x0067 : return 0x0123; case 0x006B : return 0x0137; case 0x006C : return 0x013C; case 0x006E : return 0x0146; case 0x0072 : return 0x0157; case 0x0073 : return 0x015F; case 0x0074 : return 0x0163; default: break; } case 0x0328 : switch(d) { case 0x0041 : return 0x0104; case 0x0045 : return 0x0118; case 0x0049 : return 0x012E; case 0x004F : return 0x01EA; case 0x0055 : return 0x0172; case 0x0061 : return 0x0105; case 0x0065 : return 0x0119; case 0x0069 : return 0x012F; case 0x006F : return 0x01EB; case 0x0075 : return 0x0173; default: break; } case 0x0331 : switch(d) { case 0x0042 : return 0x1E06; case 0x0062 : return 0x1E07; default: break; } case 0x0333 : switch(d) { case 0x0047 : return 0x01E4; case 0x0048 : return 0x0126; case 0x0054 : return 0x0166; case 0x0067 : return 0x01E5; case 0x0068 : return 0x0127; case 0x0074 : return 0x0167; default: break; } case 0x0332 : switch(d) { case 0x0042 : return 0x1E06; case 0x0044 : return 0x1E0E; case 0x004B : return 0x1E34; case 0x004C : return 0x1E3A; case 0x004E : return 0x1E47; case 0x0052 : return 0x1E5E; case 0x0054 : return 0x1E6E; case 0x0062 : return 0x1E07; case 0x0064 : return 0x1E0F; case 0x006B : return 0x1E35; case 0x006C : return 0x1E3B; case 0x006E : return 0x1E48; case 0x0072 : return 0x1E5F; case 0x0074 : return 0x1E6F; default: break; } case 0x031C : switch(d) { case 0x0052 : return 0x0156; default: break; } case 0x032E : switch(d) { case 0x0048 : return 0x1E2A; case 0x0068 : return 0x1E2B; default: break; } default: break; } return 0; } | 46685 /local/tlutelli/issta_data/temp/all_java4context/java/2006_temp/2006/46685/5a70bb5e1a663b495a4eb352ec7c7510a3bfc2f1/Unicode.java/buggy/src/org/marc4j/util/Unicode.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
1071,
3845,
343,
826,
24107,
310,
2156,
12,
3001,
71,
16,
343,
1060,
15329,
202,
9610,
12,
71,
15329,
3593,
20,
92,
4630,
713,
30,
9610,
12,
72,
15329,
3593,
20,
92,
713,
9803,
30,
2463,
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,
1071,
3845,
343,
826,
24107,
310,
2156,
12,
3001,
71,
16,
343,
1060,
15329,
202,
9610,
12,
71,
15329,
3593,
20,
92,
4630,
713,
30,
9610,
12,
72,
15329,
3593,
20,
92,
713,
9803,
30,
2463,
2... | ||
public org.quickfix.field.LegOptAttribute getLegOptAttribute() throws FieldNotFound { org.quickfix.field.LegOptAttribute value = new org.quickfix.field.LegOptAttribute(); | public quickfix.field.LegOptAttribute getLegOptAttribute() throws FieldNotFound { quickfix.field.LegOptAttribute value = new quickfix.field.LegOptAttribute(); | public org.quickfix.field.LegOptAttribute getLegOptAttribute() throws FieldNotFound { org.quickfix.field.LegOptAttribute value = new org.quickfix.field.LegOptAttribute(); getField(value); return value; } | 8803 /local/tlutelli/issta_data/temp/all_java0context/java/2006_temp/2006/8803/fecc27f98261270772ff182a1d4dfd94b5daa73d/AllocationReport.java/clean/src/java/src/quickfix/fix44/AllocationReport.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
6179,
1499,
336,
8329,
6179,
1499,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
6179,
1499,
460,
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,
282,
1071,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
6179,
1499,
336,
8329,
6179,
1499,
1435,
1216,
2286,
2768,
225,
288,
2358,
18,
19525,
904,
18,
1518,
18,
8329,
6179,
1499,
460,
273,
394,
... |
colSet, filters, options, out ); | columns, filters, options, out ); | protected void __execute( ) throws RemoteException { ViewerAttributeBean attrBean = ( ViewerAttributeBean ) context .getBean( ); String docName = attrBean.getReportDocumentName( ); String resultSetName = ParameterAccessor.getResultSetName( context .getRequest( ) ); Collection columns = ParameterAccessor.getSelectedColumns( context .getRequest( ) ); Set colSet = new HashSet( ); colSet.addAll( columns ); Set filters = Collections.EMPTY_SET; Locale locale = attrBean.getLocale( ); InputOptions options = new InputOptions( ); options.setOption( InputOptions.OPT_REQUEST, context.getRequest( ) ); options.setOption( InputOptions.OPT_LOCALE, locale ); try { ServletOutputStream out = context.getResponse( ).getOutputStream( ); getReportService( ).extractResultSet( docName, resultSetName, colSet, filters, options, out ); } catch ( ReportServiceException e ) { throwAxisFault( e ); } catch ( IOException e ) { // TODO: Maybe not catch IOException here throwAxisFault( e ); } } | 15160 /local/tlutelli/issta_data/temp/all_java1context/java/2006_temp/2006/15160/da66584c91dde0675f1240968c989684455bdedc/BirtExtractDataActionHandler.java/clean/viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/service/actionhandler/BirtExtractDataActionHandler.java | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1001,
8837,
12,
262,
1216,
18361,
202,
95,
202,
202,
18415,
1499,
3381,
1604,
3381,
273,
261,
4441,
264,
1499,
3381,
262,
819,
9506,
202,
18,
588,
3381,
12,
11272,
202,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... | [
1,
8585,
326,
22398,
316,
326,
981,
30,
225,
202,
1117,
918,
1001,
8837,
12,
262,
1216,
18361,
202,
95,
202,
202,
18415,
1499,
3381,
1604,
3381,
273,
261,
4441,
264,
1499,
3381,
262,
819,
9506,
202,
18,
588,
3381,
12,
11272,
202,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.