rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
if (jj_3R_67()) return true;
if (jj_scan_token(WS)) return true;
final private boolean jj_3R_45() { if (jj_3R_67()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5a4586d6c4b36b78c3896b3ea43acac5de0be624/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
if (jj_scan_token(LPAREN)) return true;
if (jj_scan_token(WS)) return true;
final private boolean jj_3R_46() { if (jj_scan_token(LPAREN)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5a4586d6c4b36b78c3896b3ea43acac5de0be624/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
if (jj_3R_68()) return true;
if (jj_3R_69()) return true;
final private boolean jj_3R_47() { if (jj_3R_68()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5a4586d6c4b36b78c3896b3ea43acac5de0be624/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
if (jj_3R_69()) return true;
if (jj_scan_token(LPAREN)) return true;
final private boolean jj_3R_48() { if (jj_3R_69()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5a4586d6c4b36b78c3896b3ea43acac5de0be624/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
if (jj_scan_token(NULL)) return true;
if (jj_3R_70()) return true;
final private boolean jj_3R_49() { if (jj_scan_token(NULL)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5a4586d6c4b36b78c3896b3ea43acac5de0be624/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
if (jj_scan_token(TRUE)) return true;
if (jj_3R_71()) return true;
final private boolean jj_3R_50() { if (jj_scan_token(TRUE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5a4586d6c4b36b78c3896b3ea43acac5de0be624/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
if (jj_scan_token(FALSE)) return true;
if (jj_scan_token(NULL)) return true;
final private boolean jj_3R_51() { if (jj_scan_token(FALSE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5a4586d6c4b36b78c3896b3ea43acac5de0be624/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
if (jj_scan_token(UNDEFINED)) return true;
if (jj_scan_token(TRUE)) return true;
final private boolean jj_3R_52() { if (jj_scan_token(UNDEFINED)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5a4586d6c4b36b78c3896b3ea43acac5de0be624/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
if (jj_scan_token(OP_NOT)) return true;
if (jj_scan_token(FALSE)) return true;
final private boolean jj_3R_53() { if (jj_scan_token(OP_NOT)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5a4586d6c4b36b78c3896b3ea43acac5de0be624/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
if (jj_scan_token(NUMBER)) return true;
if (jj_scan_token(UNDEFINED)) return true;
final private boolean jj_3R_54() { if (jj_scan_token(NUMBER)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5a4586d6c4b36b78c3896b3ea43acac5de0be624/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
if (jj_scan_token(OP_MINUS)) return true;
if (jj_scan_token(OP_NOT)) return true;
final private boolean jj_3R_55() { if (jj_scan_token(OP_MINUS)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5a4586d6c4b36b78c3896b3ea43acac5de0be624/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
if (jj_scan_token(OP_EQ)) return true;
if (jj_scan_token(NUMBER)) return true;
final private boolean jj_3R_56() { if (jj_scan_token(OP_EQ)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5a4586d6c4b36b78c3896b3ea43acac5de0be624/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
if (jj_scan_token(OP_SET)) return true;
if (jj_scan_token(OP_MINUS)) return true;
final private boolean jj_3R_57() { if (jj_scan_token(OP_SET)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5a4586d6c4b36b78c3896b3ea43acac5de0be624/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
if (jj_scan_token(OP_NE)) return true;
if (jj_scan_token(OP_EQ)) return true;
final private boolean jj_3R_58() { if (jj_scan_token(OP_NE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5a4586d6c4b36b78c3896b3ea43acac5de0be624/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
if (jj_scan_token(OP_GT)) return true;
if (jj_scan_token(OP_SET)) return true;
final private boolean jj_3R_59() { if (jj_scan_token(OP_GT)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5a4586d6c4b36b78c3896b3ea43acac5de0be624/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
if (jj_scan_token(OP_GE)) return true;
if (jj_scan_token(OP_NE)) return true;
final private boolean jj_3R_60() { if (jj_scan_token(OP_GE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5a4586d6c4b36b78c3896b3ea43acac5de0be624/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
if (jj_scan_token(OP_LE)) return true;
if (jj_scan_token(OP_GT)) return true;
final private boolean jj_3R_61() { if (jj_scan_token(OP_LE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5a4586d6c4b36b78c3896b3ea43acac5de0be624/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
if (jj_scan_token(OP_LT)) return true;
if (jj_scan_token(OP_GE)) return true;
final private boolean jj_3R_62() { if (jj_scan_token(OP_LT)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5a4586d6c4b36b78c3896b3ea43acac5de0be624/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
Token xsp; xsp = jj_scanpos; if (jj_3R_70()) { jj_scanpos = xsp; if (jj_3R_71()) { jj_scanpos = xsp; if (jj_3R_72()) { jj_scanpos = xsp; if (jj_3R_73()) { jj_scanpos = xsp; if (jj_3R_74()) return true;
if (jj_scan_token(OP_LE)) return true;
final private boolean jj_3R_63() { Token xsp; xsp = jj_scanpos; if (jj_3R_70()) { jj_scanpos = xsp; if (jj_3R_71()) { jj_scanpos = xsp; if (jj_3R_72()) { jj_scanpos = xsp; if (jj_3R_73()) { jj_scanpos = xsp; if (jj_3R_74()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5a4586d6c4b36b78c3896b3ea43acac5de0be624/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
} else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
final private boolean jj_3R_63() { Token xsp; xsp = jj_scanpos; if (jj_3R_70()) { jj_scanpos = xsp; if (jj_3R_71()) { jj_scanpos = xsp; if (jj_3R_72()) { jj_scanpos = xsp; if (jj_3R_73()) { jj_scanpos = xsp; if (jj_3R_74()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5a4586d6c4b36b78c3896b3ea43acac5de0be624/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
if (jj_scan_token(LBRACE)) return true;
if (jj_scan_token(OP_LT)) return true;
final private boolean jj_3R_64() { if (jj_scan_token(LBRACE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5a4586d6c4b36b78c3896b3ea43acac5de0be624/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
if (jj_scan_token(RBRACE)) return true;
Token xsp; xsp = jj_scanpos; if (jj_3R_72()) { jj_scanpos = xsp; if (jj_3R_73()) { jj_scanpos = xsp; if (jj_3R_74()) { jj_scanpos = xsp; if (jj_3R_75()) { jj_scanpos = xsp; if (jj_3R_76()) return true;
final private boolean jj_3R_65() { if (jj_scan_token(RBRACE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5a4586d6c4b36b78c3896b3ea43acac5de0be624/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
} else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
final private boolean jj_3R_65() { if (jj_scan_token(RBRACE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5a4586d6c4b36b78c3896b3ea43acac5de0be624/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
if (jj_scan_token(POUND)) return true;
if (jj_scan_token(LBRACE)) return true;
final private boolean jj_3R_66() { if (jj_scan_token(POUND)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5a4586d6c4b36b78c3896b3ea43acac5de0be624/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
if (jj_scan_token(DOLLAR)) return true;
if (jj_scan_token(RBRACE)) return true;
final private boolean jj_3R_67() { if (jj_scan_token(DOLLAR)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5a4586d6c4b36b78c3896b3ea43acac5de0be624/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
Token xsp; xsp = jj_scanpos; if (jj_3R_75()) { jj_scanpos = xsp; if (jj_3R_76()) return true;
if (jj_scan_token(POUND)) return true;
final private boolean jj_3R_68() { Token xsp; xsp = jj_scanpos; if (jj_3R_75()) { jj_scanpos = xsp; if (jj_3R_76()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5a4586d6c4b36b78c3896b3ea43acac5de0be624/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
} else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
final private boolean jj_3R_68() { Token xsp; xsp = jj_scanpos; if (jj_3R_75()) { jj_scanpos = xsp; if (jj_3R_76()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5a4586d6c4b36b78c3896b3ea43acac5de0be624/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
if (jj_scan_token(LBRACKET)) return true;
if (jj_scan_token(DOLLAR)) return true;
final private boolean jj_3R_69() { if (jj_scan_token(LBRACKET)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5a4586d6c4b36b78c3896b3ea43acac5de0be624/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
if (jj_scan_token(STUFF)) return true;
Token xsp; xsp = jj_scanpos; if (jj_3R_77()) { jj_scanpos = xsp; if (jj_3R_78()) return true;
final private boolean jj_3R_70() { if (jj_scan_token(STUFF)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5a4586d6c4b36b78c3896b3ea43acac5de0be624/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
} else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
final private boolean jj_3R_70() { if (jj_scan_token(STUFF)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5a4586d6c4b36b78c3896b3ea43acac5de0be624/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
if (jj_scan_token(QCHAR)) return true;
if (jj_scan_token(LBRACKET)) return true;
final private boolean jj_3R_71() { if (jj_scan_token(QCHAR)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5a4586d6c4b36b78c3896b3ea43acac5de0be624/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
if (jj_scan_token(SLASH)) return true;
if (jj_scan_token(STUFF)) return true;
final private boolean jj_3R_72() { if (jj_scan_token(SLASH)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5a4586d6c4b36b78c3896b3ea43acac5de0be624/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
if (jj_3R_77()) return true;
if (jj_scan_token(QCHAR)) return true;
final private boolean jj_3R_73() { if (jj_3R_77()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5a4586d6c4b36b78c3896b3ea43acac5de0be624/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
if (jj_3R_78()) return true;
if (jj_scan_token(SLASH)) return true;
final private boolean jj_3R_74() { if (jj_3R_78()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5a4586d6c4b36b78c3896b3ea43acac5de0be624/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
if (jj_scan_token(QUOTE)) return true;
if (jj_3R_79()) return true;
final private boolean jj_3R_75() { if (jj_scan_token(QUOTE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5a4586d6c4b36b78c3896b3ea43acac5de0be624/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
if (jj_scan_token(SQUOTE)) return true;
if (jj_3R_80()) return true;
final private boolean jj_3R_76() { if (jj_scan_token(SQUOTE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5a4586d6c4b36b78c3896b3ea43acac5de0be624/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
if (jj_scan_token(POUNDPOUND)) return true;
if (jj_scan_token(QUOTE)) return true;
final private boolean jj_3R_77() { if (jj_scan_token(POUNDPOUND)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5a4586d6c4b36b78c3896b3ea43acac5de0be624/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
Token xsp; xsp = jj_scanpos; if (jj_3R_79()) { jj_scanpos = xsp; if (jj_3R_80()) return true;
if (jj_scan_token(SQUOTE)) return true;
final private boolean jj_3R_78() { Token xsp; xsp = jj_scanpos; if (jj_3R_79()) { jj_scanpos = xsp; if (jj_3R_80()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5a4586d6c4b36b78c3896b3ea43acac5de0be624/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
} else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
final private boolean jj_3R_78() { Token xsp; xsp = jj_scanpos; if (jj_3R_79()) { jj_scanpos = xsp; if (jj_3R_80()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5a4586d6c4b36b78c3896b3ea43acac5de0be624/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
if (jj_3R_67()) return true;
if (jj_scan_token(POUNDPOUND)) return true;
final private boolean jj_3R_79() { if (jj_3R_67()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5a4586d6c4b36b78c3896b3ea43acac5de0be624/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
if (jj_scan_token(DOLLAR)) return true;
Token xsp; xsp = jj_scanpos; if (jj_3R_81()) { jj_scanpos = xsp; if (jj_3R_82()) return true;
final private boolean jj_3R_80() { if (jj_scan_token(DOLLAR)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5a4586d6c4b36b78c3896b3ea43acac5de0be624/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
} else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
final private boolean jj_3R_80() { if (jj_scan_token(DOLLAR)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5a4586d6c4b36b78c3896b3ea43acac5de0be624/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
if (jj_3R_15()) jj_scanpos = xsp;
if (jj_3R_16()) jj_scanpos = xsp;
final private boolean jj_3_1() { Token xsp; xsp = jj_scanpos; if (jj_3R_15()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(NEWLINE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5a4586d6c4b36b78c3896b3ea43acac5de0be624/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
if (jj_3R_16()) {
if (jj_3R_17()) {
final private boolean jj_3_5() { if (jj_scan_token(WS)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; Token xsp; xsp = jj_scanpos; if (jj_3R_16()) { jj_scanpos = xsp; if (jj_3R_17()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5a4586d6c4b36b78c3896b3ea43acac5de0be624/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
if (jj_3R_17()) return true;
if (jj_3R_18()) return true;
final private boolean jj_3_5() { if (jj_scan_token(WS)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; Token xsp; xsp = jj_scanpos; if (jj_3R_16()) { jj_scanpos = xsp; if (jj_3R_17()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5a4586d6c4b36b78c3896b3ea43acac5de0be624/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
xsp = jj_scanpos; if (jj_3R_18()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(NEWLINE)) return true;
if (jj_3R_19()) return true;
final private boolean jj_3_6() { Token xsp; xsp = jj_scanpos; if (jj_3R_18()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(NEWLINE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_19()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5a4586d6c4b36b78c3896b3ea43acac5de0be624/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
xsp = jj_scanpos; if (jj_3R_19()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
while (true) { xsp = jj_scanpos; if (jj_3R_19()) { jj_scanpos = xsp; break; } if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; }
final private boolean jj_3_6() { Token xsp; xsp = jj_scanpos; if (jj_3R_18()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(NEWLINE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_19()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5a4586d6c4b36b78c3896b3ea43acac5de0be624/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
if (getToken(n).kind == WS) ++n; if (getToken(n).kind == NEWLINE) ++n; if (getToken(n).kind == WS) ++n;
Token t = getToken(n); while ( t.kind == WS || t.kind == NEWLINE ) { t = getToken(++n); }
Subdirective lookahead_subdirective(Subdirective[] subdirectives) throws ParseException { int n=1; if (getToken(n).kind == WS) ++n; if (getToken(n).kind == NEWLINE) ++n; if (getToken(n).kind == WS) ++n; if (getToken(n).kind == POUND && getToken(n+1).kind == WORD) { String word = getToken(n+1).image; for (int i=0; i<subdirectives.length; i++) if (word.equals(subdirectives[i].name)) return subdirectives[i]; } return null; }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5a4586d6c4b36b78c3896b3ea43acac5de0be624/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
callMethod("write", getRuntime().newString(line)); if (!line.endsWith("\n")) { callMethod("write", getRuntime().newString("\n")); }
callMethod("write", getRuntime().newString(line+ (line.endsWith("\n") ? "" : "\n")));
public IRubyObject puts(IRubyObject[] args) { checkArgumentCount(args, 0, -1); if (args.length == 0) { callMethod("write", getRuntime().newString("\n")); return getRuntime().getNil(); } for (int i = 0; i < args.length; i++) { String line = null; if (args[i].isNil()) { line = "nil"; } else if (args[i] instanceof RubyArray) { puts(((RubyArray) args[i]).toJavaArray()); continue; } else { line = args[i].toString(); } callMethod("write", getRuntime().newString(line)); if (!line.endsWith("\n")) { callMethod("write", getRuntime().newString("\n")); } } return getRuntime().getNil(); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/4a6b21deaf3a8472be6c0e7f4663f1a582ba5b85/RubyIO.java/buggy/src/org/jruby/RubyIO.java
Colon2Node node = iVisited; ArrayList packageList = new ArrayList(10); while (node.getLeftNode() instanceof Colon2Node) { node = (Colon2Node)node.getLeftNode(); packageList.add(node.getName().toLowerCase()); } if (node.getLeftNode() instanceof ConstNode) { StringBuffer packageName = new StringBuffer(); packageName.append(((ConstNode)node.getLeftNode()).getName().toLowerCase()); ListIterator iter = packageList.listIterator(packageList.size()); while (iter.hasPrevious()) { packageName.append('.').append(iter.previous()); } packageName.append('.'); try { String javaName = packageName.append(iVisited.getName()).toString(); Class javaClass = runtime.getJavaSupport().loadJavaClass(javaName); result = runtime.getJavaSupport().loadClass(javaClass, null); return; } catch (NameError excptn) { } String javaName = packageName.append(iVisited.getName().toLowerCase()).toString(); if (Package.getPackage(javaName) != null) { } }
public void visitColon2Node(Colon2Node iVisited) { // Java package support hack Colon2Node node = iVisited; ArrayList packageList = new ArrayList(10); while (node.getLeftNode() instanceof Colon2Node) { node = (Colon2Node)node.getLeftNode(); packageList.add(node.getName().toLowerCase()); } if (node.getLeftNode() instanceof ConstNode) { StringBuffer packageName = new StringBuffer(); packageName.append(((ConstNode)node.getLeftNode()).getName().toLowerCase()); ListIterator iter = packageList.listIterator(packageList.size()); while (iter.hasPrevious()) { packageName.append('.').append(iter.previous()); } packageName.append('.'); try { String javaName = packageName.append(iVisited.getName()).toString(); Class javaClass = runtime.getJavaSupport().loadJavaClass(javaName); result = runtime.getJavaSupport().loadClass(javaClass, null); return; } catch (NameError excptn) { } String javaName = packageName.append(iVisited.getName().toLowerCase()).toString(); if (Package.getPackage(javaName) != null) { // create JavaPackage module. // return; } } // Java package support hack end; eval(iVisited.getLeftNode()); if (result instanceof RubyModule) { result = ((RubyModule) result).getConstant(iVisited.getName()); } else { result = result.callMethod(iVisited.getName()); } }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/7677ca971349ae5011a3a094c25cc087b47cfaa4/EvaluateVisitor.java/clean/org/jruby/evaluator/EvaluateVisitor.java
public ImageAnnotation(Integer attributeId, Integer theT, String content, Integer theC, Integer theZ, Boolean valid, org.openmicroscopy.omero.model.Image image, org.openmicroscopy.omero.model.ModuleExecution moduleExecution) { this.attributeId = attributeId; this.theT = theT; this.content = content; this.theC = theC; this.theZ = theZ; this.valid = valid; this.image = image; this.moduleExecution = moduleExecution;
public ImageAnnotation() {
public ImageAnnotation(Integer attributeId, Integer theT, String content, Integer theC, Integer theZ, Boolean valid, org.openmicroscopy.omero.model.Image image, org.openmicroscopy.omero.model.ModuleExecution moduleExecution) { this.attributeId = attributeId; this.theT = theT; this.content = content; this.theC = theC; this.theZ = theZ; this.valid = valid; this.image = image; this.moduleExecution = moduleExecution; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/ImageAnnotation.java/buggy/components/common/src/org/openmicroscopy/omero/model/ImageAnnotation.java
public org.openmicroscopy.omero.model.Image getImage() {
public Image getImage() {
public org.openmicroscopy.omero.model.Image getImage() { return this.image; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/ImageAnnotation.java/buggy/components/common/src/org/openmicroscopy/omero/model/ImageAnnotation.java
public org.openmicroscopy.omero.model.ModuleExecution getModuleExecution() {
public ModuleExecution getModuleExecution() {
public org.openmicroscopy.omero.model.ModuleExecution getModuleExecution() { return this.moduleExecution; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/ImageAnnotation.java/buggy/components/common/src/org/openmicroscopy/omero/model/ImageAnnotation.java
public void setImage(org.openmicroscopy.omero.model.Image image) {
public void setImage(Image image) {
public void setImage(org.openmicroscopy.omero.model.Image image) { this.image = image; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/ImageAnnotation.java/buggy/components/common/src/org/openmicroscopy/omero/model/ImageAnnotation.java
public void setModuleExecution(org.openmicroscopy.omero.model.ModuleExecution moduleExecution) {
public void setModuleExecution(ModuleExecution moduleExecution) {
public void setModuleExecution(org.openmicroscopy.omero.model.ModuleExecution moduleExecution) { this.moduleExecution = moduleExecution; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/ImageAnnotation.java/buggy/components/common/src/org/openmicroscopy/omero/model/ImageAnnotation.java
po = new PojoOptions().exp(1);
po = new PojoOptions().exp(1L);
protected void onSetUp() throws Exception { _q = (IQuery) applicationContext.getBean("updateService"); po = new PojoOptions().exp(1); ids = new HashSet<Integer>(Arrays.asList(new Integer[]{1,2,3,4,5,6,250,253,249,258})); m = new HashMap(); m.put("id_list",ids); m.put("exp",po.getExperimenter()); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0b36a8e77f5bacb7e122d76ffce01866205b09d7/PojosDaoTest.java/clean/components/server/test/ome/server/itests/PojosDaoTest.java
LENGTH2, ""+(int) (realValue*LENGTH2), Color.GRAY);
LENGTH2, ""+(int) (realValue*LENGTH2)+" \u00B5m", Color.GRAY);
public void paintComponent(Graphics g) { super.paintComponent(g); Graphics2D g2D = (Graphics2D) g; setLocation(); //Set bounds of the drawing area. control.setImageArea(x+ViewerUIF.START, y+ViewerUIF.START, (int)(image.getWidth()*itMng.getMagFactor()), (int)(image.getHeight()*itMng.getMagFactor())); g2D.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); g2D.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY); g2D.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BILINEAR); g2D.setColor(Color.black); paintXYFrame(g2D); if (realValue > 0) paintScaleBar(g2D, ViewerUIF.START, 3*ViewerUIF.START/2+height, LENGTH2, ""+(int) (realValue*LENGTH2), Color.GRAY); if (displayImage != null) g2D.drawImage(displayImage, null, ViewerUIF.START, ViewerUIF.START); //if (lensCanvas.lensImage != null) // g2D.drawImage(lensCanvas.lensImage, null, lensCanvas.xLens, lensCanvas.yLens); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/6cdba81978070c672e8a5dc97117fa5d977eb25f/ImageCanvas.java/clean/SRC/org/openmicroscopy/shoola/agents/viewer/canvas/ImageCanvas.java
setBounds(xLens, yLens, lensImage.getWidth(), lensImage.getHeight());
setBounds(xImageCanvas+xLens, yImageCanvas+yLens, lensImage.getWidth(), lensImage.getHeight());
void paintLensImage(double f, Point p, int lensWidth, boolean painting, Color c, BufferedImage mainImage) { xLens = p.x-lensWidth/2; yLens = p.y-lensWidth/2; int w = (int) (lensWidth/(2*f)); xTopCorner = p.x-ViewerUIF.START-w; yTopCorner = p.y-ViewerUIF.START-w; int x = (int) ((p.x-ViewerUIF.START)*f)-lensWidth/2; int y = (int) ((p.y-ViewerUIF.START)*f)-lensWidth/2; lensImage = ImageFactory.getImage(mainImage, x, y, lensWidth, lensWidth, painting, c); setPreferredSize(new Dimension(lensImage.getWidth(), lensImage.getHeight())); setBounds(xLens, yLens, lensImage.getWidth(), lensImage.getHeight()); //repaint(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/6cdba81978070c672e8a5dc97117fa5d977eb25f/LensCanvas.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/canvas/LensCanvas.java
if (ruby.getScope().getLocalNames() != null) { oldSize = ruby.getScope().getLocalNames().size();
if (runtime.getScope().getLocalNames() != null) { oldSize = runtime.getScope().getLocalNames().size();
private boolean hasNewLocalVariables(IRubyParserResult result) { int newSize = 0; if (result.getLocalVariables() != null) { newSize = result.getLocalVariables().size(); } int oldSize = 0; if (ruby.getScope().getLocalNames() != null) { oldSize = ruby.getScope().getLocalNames().size(); } return newSize > oldSize; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1d78ab5252d2279eb5749dfcabc977e8def15496/Parser.java/buggy/org/jruby/parser/Parser.java
final TranscriptWindow window = new TranscriptWindow();
final JTextArea window = new JTextArea(); window.setWrapStyleWord(true); window.setFont(new Font("Dialog", Font.PLAIN, 12));
private void showHistory(final String jid) { SwingWorker transcriptLoader = new SwingWorker() { public Object construct() { String bareJID = StringUtils.parseBareAddress(jid); return ChatTranscripts.getChatTranscript(bareJID); } public void finished() { final JPanel mainPanel = new BackgroundPanel(); mainPanel.setLayout(new BorderLayout()); final VCardPanel topPanel = new VCardPanel(jid); mainPanel.add(topPanel, BorderLayout.NORTH); final TranscriptWindow window = new TranscriptWindow(); final JScrollPane pane = new JScrollPane(window); pane.getVerticalScrollBar().setBlockIncrement(50); pane.getVerticalScrollBar().setUnitIncrement(20); mainPanel.add(pane, BorderLayout.CENTER); ChatTranscript transcript = (ChatTranscript)get(); List<HistoryMessage> list = transcript.getMessages(); //Collections.sort(list, dateComparator); for (HistoryMessage message : list) { String from = message.getFrom(); String nickname = StringUtils.parseName(from); final SimpleDateFormat formatter = new SimpleDateFormat("MM/dd/yyyy h:mm a"); final String date = formatter.format(message.getDate()); String prefix = nickname + " [" + date + "]"; if (from.equals(SparkManager.getSessionManager().getJID())) { window.insertCustomMessage(prefix, message.getBody()); } else { window.insertCustomOtherMessage(prefix, message.getBody()); } } // Handle no history if (transcript.getMessages().size() == 0) { window.setText(Res.getString("message.no.history.found")); } final JFrame frame = new JFrame(Res.getString("title.history.for", jid)); frame.setIconImage(SparkRes.getImageIcon(SparkRes.HISTORY_16x16).getImage()); frame.getContentPane().setLayout(new BorderLayout()); frame.getContentPane().add(mainPanel, BorderLayout.CENTER); frame.pack(); frame.setSize(600, 400); window.setCaretPosition(0); GraphicUtils.centerWindowOnScreen(frame); frame.setVisible(true); } }; transcriptLoader.start(); }
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/4639786a0c9bdc8bd2c5848f7b9e59c4d32dc2e5/ChatTranscriptPlugin.java/clean/src/java/org/jivesoftware/sparkimpl/plugin/transcripts/ChatTranscriptPlugin.java
window.insertCustomMessage(prefix, message.getBody());
buf.append(prefix + ": " + message.getBody()); buf.append("\n");
private void showHistory(final String jid) { SwingWorker transcriptLoader = new SwingWorker() { public Object construct() { String bareJID = StringUtils.parseBareAddress(jid); return ChatTranscripts.getChatTranscript(bareJID); } public void finished() { final JPanel mainPanel = new BackgroundPanel(); mainPanel.setLayout(new BorderLayout()); final VCardPanel topPanel = new VCardPanel(jid); mainPanel.add(topPanel, BorderLayout.NORTH); final TranscriptWindow window = new TranscriptWindow(); final JScrollPane pane = new JScrollPane(window); pane.getVerticalScrollBar().setBlockIncrement(50); pane.getVerticalScrollBar().setUnitIncrement(20); mainPanel.add(pane, BorderLayout.CENTER); ChatTranscript transcript = (ChatTranscript)get(); List<HistoryMessage> list = transcript.getMessages(); //Collections.sort(list, dateComparator); for (HistoryMessage message : list) { String from = message.getFrom(); String nickname = StringUtils.parseName(from); final SimpleDateFormat formatter = new SimpleDateFormat("MM/dd/yyyy h:mm a"); final String date = formatter.format(message.getDate()); String prefix = nickname + " [" + date + "]"; if (from.equals(SparkManager.getSessionManager().getJID())) { window.insertCustomMessage(prefix, message.getBody()); } else { window.insertCustomOtherMessage(prefix, message.getBody()); } } // Handle no history if (transcript.getMessages().size() == 0) { window.setText(Res.getString("message.no.history.found")); } final JFrame frame = new JFrame(Res.getString("title.history.for", jid)); frame.setIconImage(SparkRes.getImageIcon(SparkRes.HISTORY_16x16).getImage()); frame.getContentPane().setLayout(new BorderLayout()); frame.getContentPane().add(mainPanel, BorderLayout.CENTER); frame.pack(); frame.setSize(600, 400); window.setCaretPosition(0); GraphicUtils.centerWindowOnScreen(frame); frame.setVisible(true); } }; transcriptLoader.start(); }
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/4639786a0c9bdc8bd2c5848f7b9e59c4d32dc2e5/ChatTranscriptPlugin.java/clean/src/java/org/jivesoftware/sparkimpl/plugin/transcripts/ChatTranscriptPlugin.java
window.insertCustomOtherMessage(prefix, message.getBody());
buf.append(prefix + ": " + message.getBody()); buf.append("\n");
private void showHistory(final String jid) { SwingWorker transcriptLoader = new SwingWorker() { public Object construct() { String bareJID = StringUtils.parseBareAddress(jid); return ChatTranscripts.getChatTranscript(bareJID); } public void finished() { final JPanel mainPanel = new BackgroundPanel(); mainPanel.setLayout(new BorderLayout()); final VCardPanel topPanel = new VCardPanel(jid); mainPanel.add(topPanel, BorderLayout.NORTH); final TranscriptWindow window = new TranscriptWindow(); final JScrollPane pane = new JScrollPane(window); pane.getVerticalScrollBar().setBlockIncrement(50); pane.getVerticalScrollBar().setUnitIncrement(20); mainPanel.add(pane, BorderLayout.CENTER); ChatTranscript transcript = (ChatTranscript)get(); List<HistoryMessage> list = transcript.getMessages(); //Collections.sort(list, dateComparator); for (HistoryMessage message : list) { String from = message.getFrom(); String nickname = StringUtils.parseName(from); final SimpleDateFormat formatter = new SimpleDateFormat("MM/dd/yyyy h:mm a"); final String date = formatter.format(message.getDate()); String prefix = nickname + " [" + date + "]"; if (from.equals(SparkManager.getSessionManager().getJID())) { window.insertCustomMessage(prefix, message.getBody()); } else { window.insertCustomOtherMessage(prefix, message.getBody()); } } // Handle no history if (transcript.getMessages().size() == 0) { window.setText(Res.getString("message.no.history.found")); } final JFrame frame = new JFrame(Res.getString("title.history.for", jid)); frame.setIconImage(SparkRes.getImageIcon(SparkRes.HISTORY_16x16).getImage()); frame.getContentPane().setLayout(new BorderLayout()); frame.getContentPane().add(mainPanel, BorderLayout.CENTER); frame.pack(); frame.setSize(600, 400); window.setCaretPosition(0); GraphicUtils.centerWindowOnScreen(frame); frame.setVisible(true); } }; transcriptLoader.start(); }
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/4639786a0c9bdc8bd2c5848f7b9e59c4d32dc2e5/ChatTranscriptPlugin.java/clean/src/java/org/jivesoftware/sparkimpl/plugin/transcripts/ChatTranscriptPlugin.java
window.setText(buf.toString());
private void showHistory(final String jid) { SwingWorker transcriptLoader = new SwingWorker() { public Object construct() { String bareJID = StringUtils.parseBareAddress(jid); return ChatTranscripts.getChatTranscript(bareJID); } public void finished() { final JPanel mainPanel = new BackgroundPanel(); mainPanel.setLayout(new BorderLayout()); final VCardPanel topPanel = new VCardPanel(jid); mainPanel.add(topPanel, BorderLayout.NORTH); final TranscriptWindow window = new TranscriptWindow(); final JScrollPane pane = new JScrollPane(window); pane.getVerticalScrollBar().setBlockIncrement(50); pane.getVerticalScrollBar().setUnitIncrement(20); mainPanel.add(pane, BorderLayout.CENTER); ChatTranscript transcript = (ChatTranscript)get(); List<HistoryMessage> list = transcript.getMessages(); //Collections.sort(list, dateComparator); for (HistoryMessage message : list) { String from = message.getFrom(); String nickname = StringUtils.parseName(from); final SimpleDateFormat formatter = new SimpleDateFormat("MM/dd/yyyy h:mm a"); final String date = formatter.format(message.getDate()); String prefix = nickname + " [" + date + "]"; if (from.equals(SparkManager.getSessionManager().getJID())) { window.insertCustomMessage(prefix, message.getBody()); } else { window.insertCustomOtherMessage(prefix, message.getBody()); } } // Handle no history if (transcript.getMessages().size() == 0) { window.setText(Res.getString("message.no.history.found")); } final JFrame frame = new JFrame(Res.getString("title.history.for", jid)); frame.setIconImage(SparkRes.getImageIcon(SparkRes.HISTORY_16x16).getImage()); frame.getContentPane().setLayout(new BorderLayout()); frame.getContentPane().add(mainPanel, BorderLayout.CENTER); frame.pack(); frame.setSize(600, 400); window.setCaretPosition(0); GraphicUtils.centerWindowOnScreen(frame); frame.setVisible(true); } }; transcriptLoader.start(); }
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/4639786a0c9bdc8bd2c5848f7b9e59c4d32dc2e5/ChatTranscriptPlugin.java/clean/src/java/org/jivesoftware/sparkimpl/plugin/transcripts/ChatTranscriptPlugin.java
final TranscriptWindow window = new TranscriptWindow();
final JTextArea window = new JTextArea(); window.setWrapStyleWord(true); window.setFont(new Font("Dialog", Font.PLAIN, 12));
public void finished() { final JPanel mainPanel = new BackgroundPanel(); mainPanel.setLayout(new BorderLayout()); final VCardPanel topPanel = new VCardPanel(jid); mainPanel.add(topPanel, BorderLayout.NORTH); final TranscriptWindow window = new TranscriptWindow(); final JScrollPane pane = new JScrollPane(window); pane.getVerticalScrollBar().setBlockIncrement(50); pane.getVerticalScrollBar().setUnitIncrement(20); mainPanel.add(pane, BorderLayout.CENTER); ChatTranscript transcript = (ChatTranscript)get(); List<HistoryMessage> list = transcript.getMessages(); //Collections.sort(list, dateComparator); for (HistoryMessage message : list) { String from = message.getFrom(); String nickname = StringUtils.parseName(from); final SimpleDateFormat formatter = new SimpleDateFormat("MM/dd/yyyy h:mm a"); final String date = formatter.format(message.getDate()); String prefix = nickname + " [" + date + "]"; if (from.equals(SparkManager.getSessionManager().getJID())) { window.insertCustomMessage(prefix, message.getBody()); } else { window.insertCustomOtherMessage(prefix, message.getBody()); } } // Handle no history if (transcript.getMessages().size() == 0) { window.setText(Res.getString("message.no.history.found")); } final JFrame frame = new JFrame(Res.getString("title.history.for", jid)); frame.setIconImage(SparkRes.getImageIcon(SparkRes.HISTORY_16x16).getImage()); frame.getContentPane().setLayout(new BorderLayout()); frame.getContentPane().add(mainPanel, BorderLayout.CENTER); frame.pack(); frame.setSize(600, 400); window.setCaretPosition(0); GraphicUtils.centerWindowOnScreen(frame); frame.setVisible(true); }
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/4639786a0c9bdc8bd2c5848f7b9e59c4d32dc2e5/ChatTranscriptPlugin.java/clean/src/java/org/jivesoftware/sparkimpl/plugin/transcripts/ChatTranscriptPlugin.java
window.insertCustomMessage(prefix, message.getBody());
buf.append(prefix + ": " + message.getBody()); buf.append("\n");
public void finished() { final JPanel mainPanel = new BackgroundPanel(); mainPanel.setLayout(new BorderLayout()); final VCardPanel topPanel = new VCardPanel(jid); mainPanel.add(topPanel, BorderLayout.NORTH); final TranscriptWindow window = new TranscriptWindow(); final JScrollPane pane = new JScrollPane(window); pane.getVerticalScrollBar().setBlockIncrement(50); pane.getVerticalScrollBar().setUnitIncrement(20); mainPanel.add(pane, BorderLayout.CENTER); ChatTranscript transcript = (ChatTranscript)get(); List<HistoryMessage> list = transcript.getMessages(); //Collections.sort(list, dateComparator); for (HistoryMessage message : list) { String from = message.getFrom(); String nickname = StringUtils.parseName(from); final SimpleDateFormat formatter = new SimpleDateFormat("MM/dd/yyyy h:mm a"); final String date = formatter.format(message.getDate()); String prefix = nickname + " [" + date + "]"; if (from.equals(SparkManager.getSessionManager().getJID())) { window.insertCustomMessage(prefix, message.getBody()); } else { window.insertCustomOtherMessage(prefix, message.getBody()); } } // Handle no history if (transcript.getMessages().size() == 0) { window.setText(Res.getString("message.no.history.found")); } final JFrame frame = new JFrame(Res.getString("title.history.for", jid)); frame.setIconImage(SparkRes.getImageIcon(SparkRes.HISTORY_16x16).getImage()); frame.getContentPane().setLayout(new BorderLayout()); frame.getContentPane().add(mainPanel, BorderLayout.CENTER); frame.pack(); frame.setSize(600, 400); window.setCaretPosition(0); GraphicUtils.centerWindowOnScreen(frame); frame.setVisible(true); }
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/4639786a0c9bdc8bd2c5848f7b9e59c4d32dc2e5/ChatTranscriptPlugin.java/clean/src/java/org/jivesoftware/sparkimpl/plugin/transcripts/ChatTranscriptPlugin.java
window.insertCustomOtherMessage(prefix, message.getBody());
buf.append(prefix + ": " + message.getBody()); buf.append("\n");
public void finished() { final JPanel mainPanel = new BackgroundPanel(); mainPanel.setLayout(new BorderLayout()); final VCardPanel topPanel = new VCardPanel(jid); mainPanel.add(topPanel, BorderLayout.NORTH); final TranscriptWindow window = new TranscriptWindow(); final JScrollPane pane = new JScrollPane(window); pane.getVerticalScrollBar().setBlockIncrement(50); pane.getVerticalScrollBar().setUnitIncrement(20); mainPanel.add(pane, BorderLayout.CENTER); ChatTranscript transcript = (ChatTranscript)get(); List<HistoryMessage> list = transcript.getMessages(); //Collections.sort(list, dateComparator); for (HistoryMessage message : list) { String from = message.getFrom(); String nickname = StringUtils.parseName(from); final SimpleDateFormat formatter = new SimpleDateFormat("MM/dd/yyyy h:mm a"); final String date = formatter.format(message.getDate()); String prefix = nickname + " [" + date + "]"; if (from.equals(SparkManager.getSessionManager().getJID())) { window.insertCustomMessage(prefix, message.getBody()); } else { window.insertCustomOtherMessage(prefix, message.getBody()); } } // Handle no history if (transcript.getMessages().size() == 0) { window.setText(Res.getString("message.no.history.found")); } final JFrame frame = new JFrame(Res.getString("title.history.for", jid)); frame.setIconImage(SparkRes.getImageIcon(SparkRes.HISTORY_16x16).getImage()); frame.getContentPane().setLayout(new BorderLayout()); frame.getContentPane().add(mainPanel, BorderLayout.CENTER); frame.pack(); frame.setSize(600, 400); window.setCaretPosition(0); GraphicUtils.centerWindowOnScreen(frame); frame.setVisible(true); }
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/4639786a0c9bdc8bd2c5848f7b9e59c4d32dc2e5/ChatTranscriptPlugin.java/clean/src/java/org/jivesoftware/sparkimpl/plugin/transcripts/ChatTranscriptPlugin.java
window.setText(buf.toString());
public void finished() { final JPanel mainPanel = new BackgroundPanel(); mainPanel.setLayout(new BorderLayout()); final VCardPanel topPanel = new VCardPanel(jid); mainPanel.add(topPanel, BorderLayout.NORTH); final TranscriptWindow window = new TranscriptWindow(); final JScrollPane pane = new JScrollPane(window); pane.getVerticalScrollBar().setBlockIncrement(50); pane.getVerticalScrollBar().setUnitIncrement(20); mainPanel.add(pane, BorderLayout.CENTER); ChatTranscript transcript = (ChatTranscript)get(); List<HistoryMessage> list = transcript.getMessages(); //Collections.sort(list, dateComparator); for (HistoryMessage message : list) { String from = message.getFrom(); String nickname = StringUtils.parseName(from); final SimpleDateFormat formatter = new SimpleDateFormat("MM/dd/yyyy h:mm a"); final String date = formatter.format(message.getDate()); String prefix = nickname + " [" + date + "]"; if (from.equals(SparkManager.getSessionManager().getJID())) { window.insertCustomMessage(prefix, message.getBody()); } else { window.insertCustomOtherMessage(prefix, message.getBody()); } } // Handle no history if (transcript.getMessages().size() == 0) { window.setText(Res.getString("message.no.history.found")); } final JFrame frame = new JFrame(Res.getString("title.history.for", jid)); frame.setIconImage(SparkRes.getImageIcon(SparkRes.HISTORY_16x16).getImage()); frame.getContentPane().setLayout(new BorderLayout()); frame.getContentPane().add(mainPanel, BorderLayout.CENTER); frame.pack(); frame.setSize(600, 400); window.setCaretPosition(0); GraphicUtils.centerWindowOnScreen(frame); frame.setVisible(true); }
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/4639786a0c9bdc8bd2c5848f7b9e59c4d32dc2e5/ChatTranscriptPlugin.java/clean/src/java/org/jivesoftware/sparkimpl/plugin/transcripts/ChatTranscriptPlugin.java
long b = ((RubyFixnum) beg).getValue(); long o = ((RubyFixnum) obj).getValue();
long b = RubyNumeric.fix2long(beg); long o = RubyNumeric.fix2long(obj);
public RubyBoolean op_eqq(RubyObject obj) { RubyObject beg = getInstanceVar("begin"); RubyObject end = getInstanceVar("end"); boolean excl = getInstanceVar("excl").isTrue(); if ((beg instanceof RubyFixnum) && (obj instanceof RubyFixnum) && (end instanceof RubyFixnum)) { long b = ((RubyFixnum) beg).getValue(); long o = ((RubyFixnum) obj).getValue(); if (b <= o) { long e = ((RubyFixnum) end).getValue(); if (excl) { if (o < e) { return getRuby().getTrue(); } } else { if (o <= e) { return getRuby().getTrue(); } } } return getRuby().getFalse(); } else if (beg.funcall("<=", obj).isTrue()) { if (excl) { if (end.funcall(">", obj).isTrue()) { return getRuby().getTrue(); } } else { if (end.funcall(">=", obj).isTrue()) { return getRuby().getTrue(); } } } return getRuby().getFalse(); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/786cea08c1dd2092a02d1254b49fbee371ace5f9/RubyRange.java/buggy/org/jruby/RubyRange.java
long e = ((RubyFixnum) end).getValue();
long e = RubyNumeric.fix2long(end);
public RubyBoolean op_eqq(RubyObject obj) { RubyObject beg = getInstanceVar("begin"); RubyObject end = getInstanceVar("end"); boolean excl = getInstanceVar("excl").isTrue(); if ((beg instanceof RubyFixnum) && (obj instanceof RubyFixnum) && (end instanceof RubyFixnum)) { long b = ((RubyFixnum) beg).getValue(); long o = ((RubyFixnum) obj).getValue(); if (b <= o) { long e = ((RubyFixnum) end).getValue(); if (excl) { if (o < e) { return getRuby().getTrue(); } } else { if (o <= e) { return getRuby().getTrue(); } } } return getRuby().getFalse(); } else if (beg.funcall("<=", obj).isTrue()) { if (excl) { if (end.funcall(">", obj).isTrue()) { return getRuby().getTrue(); } } else { if (end.funcall(">=", obj).isTrue()) { return getRuby().getTrue(); } } } return getRuby().getFalse(); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/786cea08c1dd2092a02d1254b49fbee371ace5f9/RubyRange.java/buggy/org/jruby/RubyRange.java
new DisplayedDocument(shell);
Dispatcher dispatcher = new Dispatcher(); Listener listener = new Listener(dispatcher); new DisplayedDocument(shell, listener, dispatcher);
public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); new DisplayedDocument(shell); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) display.sleep(); } display.dispose(); }
57508 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57508/14665a725c3c8a37791b8ce1ff8ccdaa31d56a4a/KoalaNotes.java/buggy/trunk/src/de/berlios/koalanotes/KoalaNotes.java
originalMethods = new RubyOriginalMethods(this);
public Ruby() { initOperatorTable(); // originalMethods = new RubyOriginalMethods(this); globalMap = new RubyHashMap(); classMap = new RubyHashMap(); nilObject = new RubyNil(this); trueObject = new RubyBoolean(this, true); falseObject = new RubyBoolean(this, false); initializeCoreClasses(); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f220dcff8a7e427e32a7f1f1bc78f38876b83620/Ruby.java/clean/org/jruby/Ruby.java
int argsLength = args != null? args.length : 0; switch (argsLength) { case 0: case 1: throw new RaiseException(RubyException.s_new(ruby, ruby.getExceptions().getRuntimeError(), args)); case 2: RubyException excptn = (RubyException)args[0].funcall(ruby.intern("exception"), args[1]); throw new RaiseException(excptn); default: throw new RubyArgumentException(ruby, "wrong # of arguments"); }
int argsLength = args != null? args.length : 0; switch (argsLength) { case 0: case 1: throw new RaiseException(RubyException.s_new(ruby, ruby.getExceptions().getRuntimeError(), args)); case 2: RubyException excptn = (RubyException)args[0].funcall(ruby.intern("exception"), args[1]); throw new RaiseException(excptn); default: throw new RubyArgumentException(ruby, "wrong # of arguments"); }
public static RubyObject m_raise(Ruby ruby, RubyObject recv, RubyObject args[]) { int argsLength = args != null? args.length : 0; switch (argsLength) { case 0: case 1: throw new RaiseException(RubyException.s_new(ruby, ruby.getExceptions().getRuntimeError(), args)); case 2: RubyException excptn = (RubyException)args[0].funcall(ruby.intern("exception"), args[1]); throw new RaiseException(excptn); default: throw new RubyArgumentException(ruby, "wrong # of arguments"); } }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RbKernel.java/buggy/org/jruby/core/RbKernel.java
if (!arg1.getValue().endsWith(".rb")) { arg1 = RubyString.m_newString(ruby, arg1.getValue() + ".rb"); }
if (!arg1.getValue().endsWith(".rb")) { arg1 = RubyString.m_newString(ruby, arg1.getValue() + ".rb"); }
public static RubyObject m_require(Ruby ruby, RubyObject recv, RubyString arg1) { if (arg1.getValue().endsWith(".jar")) { File jarFile = new File(arg1.getValue()); if (!jarFile.exists()) { jarFile = new File(new File(ruby.getSourceFile()).getParentFile(), arg1.getValue()); if (!jarFile.exists()) { System.err.println("[Error] Jarfile + \"" + jarFile.getAbsolutePath() + "\"not found."); } } if (jarFile.exists()) { try { ClassLoader javaClassLoader = new URLClassLoader(new URL[] { jarFile.toURL() }, ruby.getJavaClassLoader()); ruby.setJavaClassLoader(javaClassLoader); } catch (MalformedURLException murlExcptn) { } } } else { if (!arg1.getValue().endsWith(".rb")) { arg1 = RubyString.m_newString(ruby, arg1.getValue() + ".rb"); } ruby.getRuntime().loadFile(arg1, false); } return ruby.getNil(); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RbKernel.java/buggy/org/jruby/core/RbKernel.java
FileUtils.contentsEqual(target, test, true);
assertTrue(FileUtils.contentsEqual(target, test, true));
protected void check() throws Exception { FileUtils.contentsEqual(target, test, true); }
53231 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53231/b4e947c77517c73db921d02a7471df7db67e53da/AbsractCodeModelTest.java/buggy/branches/lexi-19102006/codemodel/codemodel/src/test/java/com/sun/codemodel/tests/AbsractCodeModelTest.java
IObject obj = (IObject) ht.load(m.getClass(),m.getId());
IObject obj = (IObject) ht.load( Utils.trueClass( m.getClass() ),m.getId());
protected void reloadDetails(IObject m) { IObject obj = (IObject) ht.load(m.getClass(),m.getId()); Details template = obj.getDetails(); copyAllowedDetails(template, m.getDetails()); m.setDetails(template); /* TODO what else should be preserved? * should be able to switch group if member, e.g. */ }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/12a03369e1d6eb74ea7611967086c0bcfa656aee/UpdateFilter.java/clean/components/server/src/ome/tools/hibernate/UpdateFilter.java
Iterator iter = getMethods().entrySet().iterator(); while (iter.hasNext()) { Map.Entry entry = (Map.Entry) iter.next(); MethodNode value = (MethodNode)entry.getValue(); clone.getMethods().put(entry.getKey(), new MethodNode(value.getBodyNode(), value.getNoex())); }
public RubyClass getSingletonClassClone() { if (!isSingleton()) { return (RubyClass) this; } RubyClass clone = newClass(getRuby(), getRubyClass(), getSuperClass()); clone.setupClone(this); clone.setInstanceVariables(getInstanceVariables().cloneRubyMap()); //clone.setMethods(); // st_foreach(RCLASS(klass)->m_tbl, clone_method, clone->m_tbl); clone.setSingleton(true); return clone; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/RubyClass.java/buggy/org/jruby/RubyClass.java
if (!mask) mask = me.isControlDown();
if (!mask) mask = me.isControlDown() || (me.getModifiers() == 20);
private void onClick(MouseEvent me, boolean released) { Point p = me.getPoint(); JTree tree = getSelectedTree(); int row = tree.getRowForLocation(p.x, p.y); if (row != -1) { if (me.getClickCount() == 1) { int[] rows = tree.getSelectionRows(); boolean mask = me.isShiftDown(); if (!mask) mask = me.isControlDown(); if (rows != null) { if (mask) { int[] newRows = new int[rows.length+1]; for (int i = 0; i < rows.length; i++) { newRows[i] = rows[i]; } newRows[rows.length] = row; tree.setSelectionRows(newRows); } else tree.setSelectionRow(row); } else tree.setSelectionRow(row); model.setClickPoint(p); if (me.isPopupTrigger()) controller.showPopupMenu(); //if (!released) controller.onClick(); } else if (me.getClickCount() == 2 && released) { model.viewDataObject(); } } }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/87f0144809415c3236dabaa1afd6162d13a14ebe/BrowserUI.java/clean/SRC/org/openmicroscopy/shoola/agents/treeviewer/browser/BrowserUI.java
io.modes = (IOModes) modes.clone();
public RubyIO clone_IO() { RubyIO io = new RubyIO(getRuntime(), getMetaClass()); // Two pos pointers? // http://blade.nagaokaut.ac.jp/ruby/ruby-talk/81513 // So if I understand this correctly, the descriptor level stuff // shares things like position, but the higher level stuff uses // a different set of libc functions (FILE*), which does not share // position. Our current implementation implements our higher // level operations on top of our 'sys' versions. So we could in // fact share everything. Unfortunately, we want to clone ruby's // behavior (i.e. show how this interface bleeds their // implementation). So our best bet, is to just create a yet another // copy of the handler. In fact, ruby 1.8 must do this as the cloned // resource is in fact a different fileno. What is clone for again? io.handler = handler; return io; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/24fc00ac9f647542a77f440ea686cea2d209f347/RubyIO.java/clean/src/org/jruby/RubyIO.java
public IRubyObject fcntl(IRubyObject cmd, IRubyObject arg) throws IOException { long realCmd = cmd.convertToInteger().getLongValue(); // Fixme: Arg may also be true, false, and nil and still be valid. Strangely enough, // protocol conversion is not happening in Ruby on this arg? if (!(arg instanceof RubyNumeric)) { return getRuntime().newFixnum(0); } long realArg = ((RubyNumeric)arg).getLongValue(); // Fixme: Only F_SETFL is current supported if (realCmd == 1L) { // cmd is F_SETFL boolean block = false; if((realArg & IOModes.NONBLOCK) == IOModes.NONBLOCK) { block = true; } if(!(handler instanceof IOHandlerNio)) { // cryptic for the uninitiated... throw getRuntime().newNotImplementedError("FCNTL only works with Nio based handlers"); } try { ((IOHandlerNio) handler).setBlocking(block); } catch (IOException e) { throw getRuntime().newIOError(e.getMessage()); } } return getRuntime().newFixnum(0); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/24fc00ac9f647542a77f440ea686cea2d209f347/RubyIO.java/clean/src/org/jruby/RubyIO.java
String mode = "r";
IOModes newModes = null;
public IRubyObject reopen(IRubyObject[] args) { if (args.length < 1) { throw getRuntime().newArgumentError("wrong number of arguments"); } if (args[0].isKindOf(getRuntime().getClass("IO"))) { RubyIO ios = (RubyIO) args[0]; int keepFileno = handler.getFileno(); // close the old handler before it gets overwritten if (handler.isOpen()) { try { handler.close(); } catch (IOHandler.BadDescriptorException e) { throw getRuntime().newErrnoEBADFError(); } catch (EOFException e) { return getRuntime().getNil(); } catch (IOException e) { throw getRuntime().newIOError(e.getMessage()); } } // When we reopen, we want our fileno to be preserved even // though we have a new IOHandler. // Note: When we clone we get a new fileno...then we replace it. // This ends up incrementing our fileno index up, which makes the // fileno we choose different from ruby. Since this seems a bit // too implementation specific, I did not bother trying to get // these to agree (what scary code would depend on fileno generating // a particular way?) try { handler = ios.handler.cloneIOHandler(); } catch (IOHandler.InvalidValueException e) { throw getRuntime().newErrnoEINVALError(); } catch (IOHandler.PipeException e) { throw getRuntime().newErrnoESPIPEError(); } catch (FileNotFoundException e) { throw getRuntime().newErrnoENOENTError(); } catch (IOException e) { throw getRuntime().newIOError(e.getMessage()); } handler.setFileno(keepFileno); // Update fileno list with our new handler registerIOHandler(handler); } else if (args[0].isKindOf(getRuntime().getClass("String"))) { String path = ((RubyString) args[0]).toString(); String mode = "r"; if (args.length > 1) { if (!args[1].isKindOf(getRuntime().getClass("String"))) { throw getRuntime().newTypeError(args[1], getRuntime().getClass("String")); } mode = ((RubyString) args[1]).toString(); } try { if (handler != null) { close(); } modes = new IOModes(getRuntime(), mode); handler = new IOHandlerSeekable(getRuntime(), path, modes); registerIOHandler(handler); } catch (IOHandler.InvalidValueException e) { throw getRuntime().newErrnoEINVALError(); } catch (IOException e) { throw getRuntime().newIOError(e.toString()); } } // A potentially previously close IO is being 'reopened'. isOpen = true; return this; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/24fc00ac9f647542a77f440ea686cea2d209f347/RubyIO.java/clean/src/org/jruby/RubyIO.java
mode = ((RubyString) args[1]).toString();
newModes = new IOModes(getRuntime(), ((RubyString) args[1]).toString());
public IRubyObject reopen(IRubyObject[] args) { if (args.length < 1) { throw getRuntime().newArgumentError("wrong number of arguments"); } if (args[0].isKindOf(getRuntime().getClass("IO"))) { RubyIO ios = (RubyIO) args[0]; int keepFileno = handler.getFileno(); // close the old handler before it gets overwritten if (handler.isOpen()) { try { handler.close(); } catch (IOHandler.BadDescriptorException e) { throw getRuntime().newErrnoEBADFError(); } catch (EOFException e) { return getRuntime().getNil(); } catch (IOException e) { throw getRuntime().newIOError(e.getMessage()); } } // When we reopen, we want our fileno to be preserved even // though we have a new IOHandler. // Note: When we clone we get a new fileno...then we replace it. // This ends up incrementing our fileno index up, which makes the // fileno we choose different from ruby. Since this seems a bit // too implementation specific, I did not bother trying to get // these to agree (what scary code would depend on fileno generating // a particular way?) try { handler = ios.handler.cloneIOHandler(); } catch (IOHandler.InvalidValueException e) { throw getRuntime().newErrnoEINVALError(); } catch (IOHandler.PipeException e) { throw getRuntime().newErrnoESPIPEError(); } catch (FileNotFoundException e) { throw getRuntime().newErrnoENOENTError(); } catch (IOException e) { throw getRuntime().newIOError(e.getMessage()); } handler.setFileno(keepFileno); // Update fileno list with our new handler registerIOHandler(handler); } else if (args[0].isKindOf(getRuntime().getClass("String"))) { String path = ((RubyString) args[0]).toString(); String mode = "r"; if (args.length > 1) { if (!args[1].isKindOf(getRuntime().getClass("String"))) { throw getRuntime().newTypeError(args[1], getRuntime().getClass("String")); } mode = ((RubyString) args[1]).toString(); } try { if (handler != null) { close(); } modes = new IOModes(getRuntime(), mode); handler = new IOHandlerSeekable(getRuntime(), path, modes); registerIOHandler(handler); } catch (IOHandler.InvalidValueException e) { throw getRuntime().newErrnoEINVALError(); } catch (IOException e) { throw getRuntime().newIOError(e.toString()); } } // A potentially previously close IO is being 'reopened'. isOpen = true; return this; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/24fc00ac9f647542a77f440ea686cea2d209f347/RubyIO.java/clean/src/org/jruby/RubyIO.java
modes = new IOModes(getRuntime(), mode); handler = new IOHandlerSeekable(getRuntime(), path, modes);
if (newModes != null) { modes = newModes; } if ("/dev/null".equals(path)) { handler = new IOHandlerNull(getRuntime(), modes); } else { handler = new IOHandlerSeekable(getRuntime(), path, modes); }
public IRubyObject reopen(IRubyObject[] args) { if (args.length < 1) { throw getRuntime().newArgumentError("wrong number of arguments"); } if (args[0].isKindOf(getRuntime().getClass("IO"))) { RubyIO ios = (RubyIO) args[0]; int keepFileno = handler.getFileno(); // close the old handler before it gets overwritten if (handler.isOpen()) { try { handler.close(); } catch (IOHandler.BadDescriptorException e) { throw getRuntime().newErrnoEBADFError(); } catch (EOFException e) { return getRuntime().getNil(); } catch (IOException e) { throw getRuntime().newIOError(e.getMessage()); } } // When we reopen, we want our fileno to be preserved even // though we have a new IOHandler. // Note: When we clone we get a new fileno...then we replace it. // This ends up incrementing our fileno index up, which makes the // fileno we choose different from ruby. Since this seems a bit // too implementation specific, I did not bother trying to get // these to agree (what scary code would depend on fileno generating // a particular way?) try { handler = ios.handler.cloneIOHandler(); } catch (IOHandler.InvalidValueException e) { throw getRuntime().newErrnoEINVALError(); } catch (IOHandler.PipeException e) { throw getRuntime().newErrnoESPIPEError(); } catch (FileNotFoundException e) { throw getRuntime().newErrnoENOENTError(); } catch (IOException e) { throw getRuntime().newIOError(e.getMessage()); } handler.setFileno(keepFileno); // Update fileno list with our new handler registerIOHandler(handler); } else if (args[0].isKindOf(getRuntime().getClass("String"))) { String path = ((RubyString) args[0]).toString(); String mode = "r"; if (args.length > 1) { if (!args[1].isKindOf(getRuntime().getClass("String"))) { throw getRuntime().newTypeError(args[1], getRuntime().getClass("String")); } mode = ((RubyString) args[1]).toString(); } try { if (handler != null) { close(); } modes = new IOModes(getRuntime(), mode); handler = new IOHandlerSeekable(getRuntime(), path, modes); registerIOHandler(handler); } catch (IOHandler.InvalidValueException e) { throw getRuntime().newErrnoEINVALError(); } catch (IOException e) { throw getRuntime().newIOError(e.toString()); } } // A potentially previously close IO is being 'reopened'. isOpen = true; return this; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/24fc00ac9f647542a77f440ea686cea2d209f347/RubyIO.java/clean/src/org/jruby/RubyIO.java
windowsMenu = new JMenu("Viewer Window"); TaskBar tb = ImViewerAgent.getRegistry().getTaskBar(); tb.addToMenu(TaskBar.WINDOW_MENU, windowsMenu);
private ImViewerFactory() { viewers = new HashSet(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/8b5ed57b1a06841fc56344f3b4489a5dc633e6c0/ImViewerFactory.java/clean/SRC/org/openmicroscopy/shoola/agents/imviewer/view/ImViewerFactory.java
loadedJavaClasses.put(javaClass, rubyClass);
private RubyClass createRubyClass(Class javaClass, String rubyName) { RubyClass superClass = (RubyClass) loadClass(javaClass.getSuperclass(), null); RubyClass rubyClass = ruby.defineClass(rubyName, superClass); defineWrapperMethods(javaClass, rubyClass, true); defineConstants(javaClass, rubyClass); defineFields(javaClass, rubyClass); addDefaultModules(rubyClass); loadedJavaClasses.put(javaClass, rubyClass); return rubyClass; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/213d129cf5a64a7ee67dbf5ca79a0bc3f33e8a84/JavaSupport.java/buggy/org/jruby/javasupport/JavaSupport.java
loadedJavaClasses.put(javaClass, rubyClass);
private RubyClass createRubyClass(Class javaClass, String rubyName) { RubyClass superClass = (RubyClass) loadClass(javaClass.getSuperclass(), null); RubyClass rubyClass = ruby.defineClass(rubyName, superClass); defineWrapperMethods(javaClass, rubyClass, true); defineConstants(javaClass, rubyClass); defineFields(javaClass, rubyClass); addDefaultModules(rubyClass); loadedJavaClasses.put(javaClass, rubyClass); return rubyClass; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/213d129cf5a64a7ee67dbf5ca79a0bc3f33e8a84/JavaSupport.java/buggy/org/jruby/javasupport/JavaSupport.java
public static String escapeJID(String jid){ if(jid == null){
public static String escapeJID(String jid) { if (jid == null) {
public static String escapeJID(String jid){ if(jid == null){ return null; } final StringBuilder builder = new StringBuilder(); String node = StringUtils.parseName(jid); String restOfJID = jid.substring(node.length()); builder.append(StringUtils.escapeNode(node)); builder.append(restOfJID); return builder.toString(); }
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/37d2c9c1910f8cad82e65ab912959a96c5121978/UserManager.java/buggy/src/java/org/jivesoftware/spark/UserManager.java
public static String unescapeJID(String jid){ if(jid == null){
public static String unescapeJID(String jid) { if (jid == null) {
public static String unescapeJID(String jid){ if(jid == null){ return null; } final StringBuilder builder = new StringBuilder(); String node = StringUtils.parseName(jid); String restOfJID = jid.substring(node.length()); builder.append(StringUtils.unescapeNode(node)); builder.append(restOfJID); return builder.toString(); }
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/37d2c9c1910f8cad82e65ab912959a96c5121978/UserManager.java/buggy/src/java/org/jivesoftware/spark/UserManager.java
return (int) (a*x+b);
int r = (int) (a*x+b); int c = control.getGlobalMinimum(); int d = control.getGlobalMaximum(); if (r < c) r = c; if (r > d) r = d; return r;
int convertGraphicsIntoReal(int x, int rangeReal, int rangeGraphics, int b) { double a = (double) rangeReal/rangeGraphics; return (int) (a*x+b); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/4b6a9c2b424c068230039a988c19a9a6fb4cf0c5/GraphicsRepresentationManager.java/buggy/SRC/org/openmicroscopy/shoola/agents/rnd/pane/GraphicsRepresentationManager.java
public static Test suite() throws Throwable { TestSuite suite = new TestSuite(); suite.addTest(new TestSuite(TestRubyObject.class)); suite.addTest(new TestSuite(TestRubyNil.class)); suite.addTest(new TestSuite(TestRubyHash.class)); suite.addTest(new TestSuite(TestRubyTime.class)); suite.addTest(new TestSuite(TestRuby.class)); suite.addTest(new TestSuite(TestRequire.class)); suite.addTest(new TestSuite(TestJavaUtil.class)); suite.addTestSuite(TestJavaClass.class); suite.addTest(new TestSuite(TestKernel.class)); suite.addTest(new TestSuite(TestKernel.class)); suite.addTest(new TestSuite(TestRubyCollect.class)); suite.addTest(new TestSuite(TestObjectSpace.class)); suite.addTest(ScriptTestSuite.suite()); suite.addTest(new TestSuite(TestRubySymbol.class)); suite.addTest(JavaSupportTestSuite.suite()); suite.addTest(new TestSuite(TestIdentitySet.class)); suite.addTest(new TestSuite(TestCommandlineParser.class)); suite.addTest(new TestSuite(TestRubyException.class)); suite.addTest(new TestSuite(TestReflectionCallback.class)); suite.addTest(new TestSuite(TestRegexpTranslator.class)); return suite; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/12a07cbe05d028e2ab4b0fddf61ae5467fb24e70/MainTestSuite.java/clean/test/org/jruby/test/MainTestSuite.java
RubyProc instance = RubyProc.newProc(getRuntime(), false);
IRubyObject instance = allocateObject();
public IRubyObject newInstance(IRubyObject[] args) { RubyProc instance = RubyProc.newProc(getRuntime(), false); instance.callInit(args); return instance; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/b6b1aa886c6f9708dc48ff5aa10826c42d8e924e/ProcMetaClass.java/clean/src/org/jruby/runtime/builtin/meta/ProcMetaClass.java
for (Iterator iter = ((RubyModule) arg).getMethods().keySet().iterator();
List methodNames = new ArrayList(((RubyModule) arg).getMethods().keySet()); for (Iterator iter = methodNames.iterator();
public synchronized void includeModule(IRubyObject arg) { assert arg != null; testFrozen("module"); if (!isTaint()) { getRuntime().secure(4); } if (!(arg instanceof RubyModule)) { throw getRuntime().newTypeError("Wrong argument type " + arg.getMetaClass().getName() + " (expected Module)."); } RubyModule module = (RubyModule) arg; // Make sure the module we include does not already exist if (isSame(module)) { return; } infectBy(module); RubyModule p, c; boolean changed = false; boolean skip = false; c = this; while (module != null) { if (getNonIncludedClass() == module.getNonIncludedClass()) { throw getRuntime().newArgumentError("cyclic include detected"); } boolean superclassSeen = false; for (p = getSuperClass(); p != null; p = p.getSuperClass()) { if (p instanceof IncludedModuleWrapper) { if (p.getNonIncludedClass() == module.getNonIncludedClass()) { if (!superclassSeen) { c = p; } skip = true; break; } } else { superclassSeen = true; } } if (!skip) { // In the current logic, if we get here we know that module is not an // IncludedModuleWrapper, so there's no need to fish out the delegate. But just // in case the logic should change later, let's do it anyway: c.setSuperClass(new IncludedModuleWrapper(getRuntime(), c.getSuperClass(), module.getNonIncludedClass())); c = c.getSuperClass(); changed = true; } module = module.getSuperClass(); skip = false; } if (changed) { // MRI seems to blow away its cache completely after an include; is // what we're doing here really safe? for (Iterator iter = ((RubyModule) arg).getMethods().keySet().iterator(); iter.hasNext();) { String methodName = (String) iter.next(); getRuntime().getCacheMap().remove(methodName, searchMethod(methodName)); } } }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/8d8de8e5818236d5f0bfd12d908f8ff27f51855d/RubyModule.java/clean/src/org/jruby/RubyModule.java
this(null,null);
this(null);
BrokerOwner() { this(null,null); }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/c2d009387a686003be3c3f30bc84f3a302311279/WM.java/clean/webmacro/src/org/webmacro/WM.java
_broker = (_config == null) ? new Broker(_classloader) : new Broker(_config,_classloader);
_broker = (_config == null) ? new Broker() : new Broker(_config);
synchronized Broker init() throws InitException { _brokerUsers++; if (_broker == null) { try { _broker = (_config == null) ? new Broker(_classloader) : new Broker(_config,_classloader); } catch (InitException e) {e.printStackTrace(); _broker = null; _brokerUsers = 0; throw e; // rethrow } catch (Throwable t) { _broker = null; _brokerUsers = 0; throw new InitException("An unexpected exception was raised during initialization. This is bad,\n" +"there is either a bug in WebMacro, or your configuration is messed up:\n" + t +"\nHere are some clues: if you got a ClassNotFound exception, either\n" +"something is missing from your classpath (odd since this code ran)\n" +"or your JVM is failing some important classfile due to bytecode problems\n" +"and then claiming that, it does not exist... you might also see some kind\n" +"of VerifyException or error in that case. If you suspect something like\n" +"this is happening, recompile the WebMacro base classes with your own Java\n" +"compiler and libraries--usually that helps. It could also be that your\n" +"JVM is not new enough. Again you could try recompiling, but if it is\n" +"older than Java 1.1.7 you might be out of luck. If none of this helps,\n" +"please join the WebMacro mailing list and let us know about the problem,\n" +"because yet another possibility is WebMacro has a bug--and anyway, we \n" +"might know a workaround, or at least like to hear about the bug.\n"); } } return _broker; }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/c2d009387a686003be3c3f30bc84f3a302311279/WM.java/clean/webmacro/src/org/webmacro/WM.java
this(null, null);
this(null);
public WM() throws InitException { this(null, null); }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/c2d009387a686003be3c3f30bc84f3a302311279/WM.java/clean/webmacro/src/org/webmacro/WM.java
createWindowsMenu();
HiViewerWin() { super(DEFAULT_TITLE); IconManager iconMng = IconManager.getInstance(); statusBar = new StatusBar(iconMng.getIcon(IconManager.STATUS_INFO)); createWindowsMenu(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/c339ee7ede327002893658553251772acc5aba8e/HiViewerWin.java/clean/SRC/org/openmicroscopy/shoola/agents/hiviewer/view/HiViewerWin.java
private JMenuBar createMenuBar() { JMenuBar menuBar = new JMenuBar(); menuBar.add(createFileMenu()); menuBar.add(createEditMenu()); menuBar.add(createViewMenu()); //menuBar.add(windowsMenu); menuBar.add(createHelpMenu()); TaskBar tb = ImViewerAgent.getRegistry().getTaskBar(); tb.addToMenu(TaskBar.WINDOW_MENU, windowsMenu); return menuBar; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/c339ee7ede327002893658553251772acc5aba8e/HiViewerWin.java/clean/SRC/org/openmicroscopy/shoola/agents/hiviewer/view/HiViewerWin.java
TaskBar tb = ImViewerAgent.getRegistry().getTaskBar(); tb.addToMenu(TaskBar.WINDOW_MENU, windowsMenu);
private JMenuBar createMenuBar() { JMenuBar menuBar = new JMenuBar(); menuBar.add(createFileMenu()); menuBar.add(createEditMenu()); menuBar.add(createViewMenu()); //menuBar.add(windowsMenu); menuBar.add(createHelpMenu()); TaskBar tb = ImViewerAgent.getRegistry().getTaskBar(); tb.addToMenu(TaskBar.WINDOW_MENU, windowsMenu); return menuBar; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/c339ee7ede327002893658553251772acc5aba8e/HiViewerWin.java/clean/SRC/org/openmicroscopy/shoola/agents/hiviewer/view/HiViewerWin.java
if (o instanceof ImageData) { ViewCmd cmd = new ViewCmd(parent, (ImageData) o);
if (o instanceof DataObject) { ViewCmd cmd = new ViewCmd(parent, (DataObject) o);
void viewDataObject() { TreeImageDisplay d = getLastSelectedDisplay(); if (d == null) return; Object o = d.getUserObject(); if (o instanceof ImageData) { ViewCmd cmd = new ViewCmd(parent, (ImageData) o); cmd.execute(); } }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/3b273af3a5320ab0a054540f14a3c299ff01de69/BrowserModel.java/clean/SRC/org/openmicroscopy/shoola/agents/treeviewer/browser/BrowserModel.java
ModelMapper.createAnnotation(annotatedObject.asIObject(), data), (new PojoOptions()).map());
ModelMapper.createAnnotation(ho, data), (new PojoOptions()).map());
public DataObject createAnnotationFor(DataObject annotatedObject, AnnotationData data) throws DSOutOfServiceException, DSAccessException { if (data == null) throw new IllegalArgumentException("No annotation to create."); if (annotatedObject == null) throw new IllegalArgumentException("No DataObject to annotate."); if (!(annotatedObject instanceof ImageData) && !(annotatedObject instanceof DatasetData)) throw new IllegalArgumentException("This method only supports " + "ImageData and DatasetData objects."); IObject object = gateway.createObject( ModelMapper.createAnnotation(annotatedObject.asIObject(), data), (new PojoOptions()).map()); return PojoMapper.asDataObject(ModelMapper.getAnnotatedObject(object)); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/87f0144809415c3236dabaa1afd6162d13a14ebe/OmeroDataServiceImpl.java/buggy/SRC/org/openmicroscopy/shoola/env/data/OmeroDataServiceImpl.java
public DataObject createDataObject(DataObject child, DataObject parent) throws DSOutOfServiceException, DSAccessException { if (child == null) throw new IllegalArgumentException("The child cannot be null."); IObject obj = ModelMapper.createIObject(child, parent); if (obj == null) throw new NullPointerException("Cannot convert object."); Map options = (new PojoOptions()).map(); IObject created = gateway.createObject(obj, options); if (parent != null) { ModelMapper.linkParentToNewChild(created, parent.asIObject()); } return PojoMapper.asDataObject(created); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/87f0144809415c3236dabaa1afd6162d13a14ebe/OmeroDataServiceImpl.java/buggy/SRC/org/openmicroscopy/shoola/env/data/OmeroDataServiceImpl.java