rem
stringlengths 0
477k
| add
stringlengths 0
313k
| context
stringlengths 6
599k
| meta
stringlengths 141
403
|
---|---|---|---|
} else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; | final private boolean jj_3R_66() { 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/4e88c3a52c24e9e3115286b7b792ccb08ca7a24a/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_67() { 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/4e88c3a52c24e9e3115286b7b792ccb08ca7a24a/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_68() { 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/4e88c3a52c24e9e3115286b7b792ccb08ca7a24a/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java |
if (jj_3R_73()) return true; | if (jj_scan_token(QCHAR)) return true; | final private boolean jj_3R_69() { if (jj_3R_73()) 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/4e88c3a52c24e9e3115286b7b792ccb08ca7a24a/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java |
if (jj_3R_74()) return true; | if (jj_scan_token(SLASH)) return true; | final private boolean jj_3R_70() { if (jj_3R_74()) 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/4e88c3a52c24e9e3115286b7b792ccb08ca7a24a/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java |
if (jj_scan_token(QUOTE)) return true; | if (jj_3R_75()) return true; | final private boolean jj_3R_71() { 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/4e88c3a52c24e9e3115286b7b792ccb08ca7a24a/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java |
if (jj_scan_token(SQUOTE)) return true; | if (jj_3R_76()) return true; | final private boolean jj_3R_72() { 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/4e88c3a52c24e9e3115286b7b792ccb08ca7a24a/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_73() { 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/4e88c3a52c24e9e3115286b7b792ccb08ca7a24a/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(SQUOTE)) return true; | final private boolean jj_3R_74() { 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/4e88c3a52c24e9e3115286b7b792ccb08ca7a24a/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_74() { 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/4e88c3a52c24e9e3115286b7b792ccb08ca7a24a/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java |
|
if (jj_3R_63()) return true; | if (jj_scan_token(POUNDPOUND)) return true; | final private boolean jj_3R_75() { if (jj_3R_63()) 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/4e88c3a52c24e9e3115286b7b792ccb08ca7a24a/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_77()) { jj_scanpos = xsp; if (jj_3R_78()) return true; | final private boolean jj_3R_76() { 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/4e88c3a52c24e9e3115286b7b792ccb08ca7a24a/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_76() { 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/4e88c3a52c24e9e3115286b7b792ccb08ca7a24a/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java |
|
if (jj_3R_17()) jj_scanpos = xsp; | if (jj_3R_19()) jj_scanpos = xsp; | final private boolean jj_3_11() { Token xsp; xsp = jj_scanpos; if (jj_3R_17()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_18()) { jj_scanpos = xsp; if (jj_3R_19()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_20()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_21()) 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/4e88c3a52c24e9e3115286b7b792ccb08ca7a24a/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java |
if (jj_3R_18()) { | if (jj_3R_20()) { | final private boolean jj_3_11() { Token xsp; xsp = jj_scanpos; if (jj_3R_17()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_18()) { jj_scanpos = xsp; if (jj_3R_19()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_20()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_21()) 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/4e88c3a52c24e9e3115286b7b792ccb08ca7a24a/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java |
if (jj_3R_19()) return true; | if (jj_3R_21()) return true; | final private boolean jj_3_11() { Token xsp; xsp = jj_scanpos; if (jj_3R_17()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_18()) { jj_scanpos = xsp; if (jj_3R_19()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_20()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_21()) 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/4e88c3a52c24e9e3115286b7b792ccb08ca7a24a/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java |
if (jj_3R_20()) jj_scanpos = xsp; | if (jj_3R_22()) jj_scanpos = xsp; | final private boolean jj_3_11() { Token xsp; xsp = jj_scanpos; if (jj_3R_17()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_18()) { jj_scanpos = xsp; if (jj_3R_19()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_20()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_21()) 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/4e88c3a52c24e9e3115286b7b792ccb08ca7a24a/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java |
if (jj_3R_21()) return true; | if (jj_3R_23()) return true; | final private boolean jj_3_11() { Token xsp; xsp = jj_scanpos; if (jj_3R_17()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_18()) { jj_scanpos = xsp; if (jj_3R_19()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_20()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_21()) 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/4e88c3a52c24e9e3115286b7b792ccb08ca7a24a/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java |
if (jj_3R_22()) jj_scanpos = xsp; | if (jj_3R_24()) jj_scanpos = xsp; | final private boolean jj_3_12() { Token xsp; xsp = jj_scanpos; if (jj_3R_22()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_23()) { jj_scanpos = xsp; if (jj_3R_24()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_25()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_26()) 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/4e88c3a52c24e9e3115286b7b792ccb08ca7a24a/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java |
if (jj_3R_23()) { | if (jj_3R_25()) { | final private boolean jj_3_12() { Token xsp; xsp = jj_scanpos; if (jj_3R_22()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_23()) { jj_scanpos = xsp; if (jj_3R_24()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_25()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_26()) 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/4e88c3a52c24e9e3115286b7b792ccb08ca7a24a/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java |
if (jj_3R_24()) return true; | if (jj_3R_26()) return true; | final private boolean jj_3_12() { Token xsp; xsp = jj_scanpos; if (jj_3R_22()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_23()) { jj_scanpos = xsp; if (jj_3R_24()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_25()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_26()) 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/4e88c3a52c24e9e3115286b7b792ccb08ca7a24a/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java |
if (jj_3R_25()) jj_scanpos = xsp; | if (jj_3R_27()) jj_scanpos = xsp; | final private boolean jj_3_12() { Token xsp; xsp = jj_scanpos; if (jj_3R_22()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_23()) { jj_scanpos = xsp; if (jj_3R_24()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_25()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_26()) 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/4e88c3a52c24e9e3115286b7b792ccb08ca7a24a/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java |
if (jj_3R_26()) return true; | if (jj_3R_28()) return true; | final private boolean jj_3_12() { Token xsp; xsp = jj_scanpos; if (jj_3R_22()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_23()) { jj_scanpos = xsp; if (jj_3R_24()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_25()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_26()) 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/4e88c3a52c24e9e3115286b7b792ccb08ca7a24a/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java |
xsp = jj_scanpos; if (jj_3R_27()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_28()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; | final private boolean jj_3_13() { Token xsp; xsp = jj_scanpos; if (jj_3R_27()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_28()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_29()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_30()) 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/4e88c3a52c24e9e3115286b7b792ccb08ca7a24a/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java |
|
xsp = jj_scanpos; if (jj_3R_31()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_32()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; | final private boolean jj_3_13() { Token xsp; xsp = jj_scanpos; if (jj_3R_27()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_28()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_29()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_30()) 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/4e88c3a52c24e9e3115286b7b792ccb08ca7a24a/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java |
|
if (jj_3R_31()) jj_scanpos = xsp; | if (jj_3R_33()) jj_scanpos = xsp; | final private boolean jj_3_14() { Token xsp; xsp = jj_scanpos; if (jj_3R_31()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(OP_AND)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_32()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_33()) 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/4e88c3a52c24e9e3115286b7b792ccb08ca7a24a/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java |
if (jj_3R_32()) jj_scanpos = xsp; | if (jj_3R_34()) jj_scanpos = xsp; | final private boolean jj_3_14() { Token xsp; xsp = jj_scanpos; if (jj_3R_31()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(OP_AND)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_32()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_33()) 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/4e88c3a52c24e9e3115286b7b792ccb08ca7a24a/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java |
if (jj_3R_33()) return true; | if (jj_3R_35()) return true; | final private boolean jj_3_14() { Token xsp; xsp = jj_scanpos; if (jj_3R_31()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(OP_AND)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_32()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_33()) 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/4e88c3a52c24e9e3115286b7b792ccb08ca7a24a/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java |
if (jj_3R_34()) jj_scanpos = xsp; | if (jj_3R_36()) jj_scanpos = xsp; | final private boolean jj_3_15() { Token xsp; xsp = jj_scanpos; if (jj_3R_34()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(OP_OR)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_35()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_36()) 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/4e88c3a52c24e9e3115286b7b792ccb08ca7a24a/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java |
if (jj_3R_35()) jj_scanpos = xsp; | if (jj_3R_37()) jj_scanpos = xsp; | final private boolean jj_3_15() { Token xsp; xsp = jj_scanpos; if (jj_3R_34()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(OP_OR)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_35()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_36()) 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/4e88c3a52c24e9e3115286b7b792ccb08ca7a24a/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java |
if (jj_3R_36()) return true; | if (jj_3R_38()) return true; | final private boolean jj_3_15() { Token xsp; xsp = jj_scanpos; if (jj_3R_34()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(OP_OR)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_35()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_36()) 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/4e88c3a52c24e9e3115286b7b792ccb08ca7a24a/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java |
if (jj_3R_37()) jj_scanpos = xsp; | if (jj_3R_39()) jj_scanpos = xsp; | final private boolean jj_3_17() { if (jj_scan_token(DOLLAR)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; Token xsp; xsp = jj_scanpos; if (jj_3R_37()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_38()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(WORD)) 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/4e88c3a52c24e9e3115286b7b792ccb08ca7a24a/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java |
if (jj_3R_38()) jj_scanpos = xsp; | if (jj_3R_40()) jj_scanpos = xsp; | final private boolean jj_3_17() { if (jj_scan_token(DOLLAR)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; Token xsp; xsp = jj_scanpos; if (jj_3R_37()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_38()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(WORD)) 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/4e88c3a52c24e9e3115286b7b792ccb08ca7a24a/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java |
if (jj_3R_39()) { | if (jj_3R_41()) { | final private boolean jj_3_21() { Token xsp; xsp = jj_scanpos; if (jj_3R_39()) { jj_scanpos = xsp; if (jj_3R_40()) { jj_scanpos = xsp; lookingAhead = true; jj_semLA = lookahead_not_breaking_subd(); lookingAhead = false; if (!jj_semLA || jj_3R_41()) 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; return false; } | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/4e88c3a52c24e9e3115286b7b792ccb08ca7a24a/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java |
if (jj_3R_40()) { | if (jj_3R_42()) { | final private boolean jj_3_21() { Token xsp; xsp = jj_scanpos; if (jj_3R_39()) { jj_scanpos = xsp; if (jj_3R_40()) { jj_scanpos = xsp; lookingAhead = true; jj_semLA = lookahead_not_breaking_subd(); lookingAhead = false; if (!jj_semLA || jj_3R_41()) 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; return false; } | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/4e88c3a52c24e9e3115286b7b792ccb08ca7a24a/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java |
if (!jj_semLA || jj_3R_41()) return true; | if (!jj_semLA || jj_3R_43()) return true; | final private boolean jj_3_21() { Token xsp; xsp = jj_scanpos; if (jj_3R_39()) { jj_scanpos = xsp; if (jj_3R_40()) { jj_scanpos = xsp; lookingAhead = true; jj_semLA = lookahead_not_breaking_subd(); lookingAhead = false; if (!jj_semLA || jj_3R_41()) 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; return false; } | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/4e88c3a52c24e9e3115286b7b792ccb08ca7a24a/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java |
if (jj_scan_token(POUND)) return true; | Token xsp; xsp = jj_scanpos; if (jj_3R_15()) { jj_scanpos = xsp; if (jj_3R_16()) 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; 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/4e88c3a52c24e9e3115286b7b792ccb08ca7a24a/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_3_5() { if (jj_scan_token(WS)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; 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/4e88c3a52c24e9e3115286b7b792ccb08ca7a24a/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java |
|
if (jj_3R_15()) jj_scanpos = xsp; | if (jj_3R_17()) jj_scanpos = xsp; | final private boolean jj_3_6() { 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; xsp = jj_scanpos; if (jj_3R_16()) 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/4e88c3a52c24e9e3115286b7b792ccb08ca7a24a/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java |
if (jj_3R_16()) jj_scanpos = xsp; | if (jj_3R_18()) jj_scanpos = xsp; | final private boolean jj_3_6() { 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; xsp = jj_scanpos; if (jj_3R_16()) 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/4e88c3a52c24e9e3115286b7b792ccb08ca7a24a/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java |
new SemanticZoomNode(t); | new SemanticZoomNode(t,model); | public void execute(PInputEvent e) { super.execute(e); Thumbnail t = (Thumbnail)e.getPickedNode(); double width = t.getWidth()*e.getCamera().getViewScale(); double height = t.getHeight()*e.getCamera().getViewScale(); if(width < SemanticZoomNode.getStandardWidth() && height < SemanticZoomNode.getStandardHeight()) { Image image = t.getImage(); SemanticZoomNode semanticNode = new SemanticZoomNode(t); Point2D point = new Point2D.Double(t.getOffset().getX()+ t.getBounds().getCenter2D().getX(), t.getOffset().getY()+ t.getBounds().getCenter2D().getY()); Point2D dummyPoint = new Point2D.Double(point.getX(),point.getY()); Dimension2D size = semanticNode.getBounds().getSize(); Point2D viewPoint = e.getCamera().viewToLocal(dummyPoint); semanticNode.setOffset(viewPoint.getX()-size.getWidth()/2, viewPoint.getY()-size.getHeight()/2); double offRight = semanticNode.getOffset().getX()+ semanticNode.getBounds().getWidth()- e.getCamera().getBounds().getWidth(); double offBottom = semanticNode.getOffset().getY()+ semanticNode.getBounds().getHeight()- e.getCamera().getBounds().getHeight(); double offLeft = semanticNode.getOffset().getX(); double offTop = semanticNode.getOffset().getY(); if(offRight > 0) { offLeft = offLeft-offRight-4; semanticNode.setOffset(offLeft,offTop); } if(offBottom > 0) { offTop = offTop-offBottom-4; semanticNode.setOffset(offLeft,offTop); } if(offLeft < 4) { offLeft = 4; semanticNode.setOffset(offLeft,offTop); } if(offTop < 4) { offTop = 4; semanticNode.setOffset(offLeft,offTop); } layer.nodeEntered(e.getCamera(),semanticNode,500); } } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0e4e3c4b5f21d2217fc02b1e6846dac6de60570f/PiccoloActionFactory.java/buggy/SRC/org/openmicroscopy/shoola/agents/browser/events/PiccoloActionFactory.java |
new AssignmentVisitor(ruby, self.toRubyObject()).assign(blockVariableNode, value.toRubyObject(), checkArguments); | new AssignmentVisitor(ruby, self).assign(blockVariableNode, value, checkArguments); | private IRubyObject prepareBlockVariable(IRubyObject value, IRubyObject self, INode blockVariableNode, boolean checkArguments) { if (blockVariableNode == null) { return value; } if (checkArguments && value instanceof RubyArray) { RubyArray arrayValue = ((RubyArray) value); if (blockVariableNode instanceof ZeroArgNode) { if (arrayValue.getLength() != 0) { throw new ArgumentError(ruby, arrayValue.getLength(), 0); } } if (!(blockVariableNode instanceof MultipleAsgnNode)) { if (arrayValue.getLength() == 1) { value = arrayValue.entry(0); } } } new AssignmentVisitor(ruby, self.toRubyObject()).assign(blockVariableNode, value.toRubyObject(), checkArguments); return value; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f235ab756f32ea9496f8f880066b46ad95ebb692/ThreadContext.java/buggy/org/jruby/runtime/ThreadContext.java |
return method.call(ruby, self.toRubyObject(), null, args, false); | return method.call(ruby, self, null, args, false); | public IRubyObject yield(IRubyObject value, IRubyObject self, RubyModule klass, boolean checkArguments) { if (! ruby.isBlockGiven()) { throw new RaiseException(ruby, ruby.getExceptions().getLocalJumpError(), "yield called out of block"); } pushDynamicVars(); Block currentBlock = getBlockStack().getCurrent(); getFrameStack().push(currentBlock.getFrame()); Namespace oldNamespace = ruby.getNamespace(); ruby.setNamespace(getCurrentFrame().getNamespace()); Scope oldScope = (Scope) getScopeStack().getTop(); getScopeStack().setTop(currentBlock.getScope()); getBlockStack().pop(); getDynamicVarsStack().push(currentBlock.getDynamicVariables()); ruby.pushClass((klass != null) ? klass : currentBlock.getKlass()); if (klass == null) { self = currentBlock.getSelf(); } if (value == null) { value = RubyArray.newArray(ruby, 0); } ICallable method = currentBlock.getMethod(); if (method == null) { return ruby.getNil(); } getIterStack().push(currentBlock.getIter()); IRubyObject[] args = prepareArguments(value, self, currentBlock.getVar(), checkArguments); try { while (true) { try { return method.call(ruby, self.toRubyObject(), null, args, false); } catch (RedoJump rExcptn) { } } } catch (NextJump nExcptn) { return ruby.getNil(); } catch (ReturnJump rExcptn) { return rExcptn.getReturnValue(); } finally { getIterStack().pop(); ruby.popClass(); getDynamicVarsStack().pop(); getBlockStack().setCurrent(currentBlock); getFrameStack().pop(); ruby.setNamespace(oldNamespace); getScopeStack().setTop(oldScope); getDynamicVarsStack().pop(); } } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f235ab756f32ea9496f8f880066b46ad95ebb692/ThreadContext.java/buggy/org/jruby/runtime/ThreadContext.java |
integerClass.defineMethod("to_i", CallbackFactory.getSelfMethod()); integerClass.defineMethod("to_int", CallbackFactory.getSelfMethod()); integerClass.defineMethod("ceil", CallbackFactory.getSelfMethod()); integerClass.defineMethod("floor", CallbackFactory.getSelfMethod()); integerClass.defineMethod("round", CallbackFactory.getSelfMethod()); integerClass.defineMethod("truncate", CallbackFactory.getSelfMethod()); | integerClass.defineMethod("to_i", CallbackFactory.getSelfMethod(0)); integerClass.defineMethod("to_int", CallbackFactory.getSelfMethod(0)); integerClass.defineMethod("ceil", CallbackFactory.getSelfMethod(0)); integerClass.defineMethod("floor", CallbackFactory.getSelfMethod(0)); integerClass.defineMethod("round", CallbackFactory.getSelfMethod(0)); integerClass.defineMethod("truncate", CallbackFactory.getSelfMethod(0)); | public static RubyClass createIntegerClass(Ruby ruby) { RubyClass integerClass = ruby.defineClass("Integer", ruby.getClasses().getNumericClass()); integerClass.defineSingletonMethod("induced_from", CallbackFactory.getSingletonMethod(RubyInteger.class, "induced_from", RubyObject.class)); integerClass.defineMethod("chr", CallbackFactory.getMethod(RubyInteger.class, "chr")); integerClass.defineMethod("integer?", CallbackFactory.getMethod(RubyInteger.class, "int_p")); integerClass.defineMethod("to_i", CallbackFactory.getSelfMethod()); integerClass.defineMethod("to_int", CallbackFactory.getSelfMethod()); integerClass.defineMethod("ceil", CallbackFactory.getSelfMethod()); integerClass.defineMethod("floor", CallbackFactory.getSelfMethod()); integerClass.defineMethod("round", CallbackFactory.getSelfMethod()); integerClass.defineMethod("truncate", CallbackFactory.getSelfMethod()); integerClass.defineMethod("next", CallbackFactory.getMethod(RubyInteger.class, "succ")); integerClass.defineMethod("succ", CallbackFactory.getMethod(RubyInteger.class, "succ")); integerClass.defineMethod("downto", CallbackFactory.getMethod(RubyInteger.class, "downto", RubyNumeric.class)); integerClass.defineMethod("step", CallbackFactory.getMethod(RubyInteger.class, "step", RubyNumeric.class, RubyNumeric.class)); integerClass.defineMethod("times", CallbackFactory.getMethod(RubyInteger.class, "times")); integerClass.defineMethod("upto", CallbackFactory.getMethod(RubyInteger.class, "upto", RubyNumeric.class)); return integerClass; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/6076c5ab87d25a488469aa1a32f1d2c9c9e470b2/RubyInteger.java/clean/org/jruby/RubyInteger.java |
ui.toFront(); | void showCategoryDialog(LoadCategories requestEvent) { CategoryCtrl cc = new CategoryCtrl(this,requestEvent); activeControls.add(cc); CategoryUI ui = new CategoryUI(cc,registry); ui.show(); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/cc2b318f78e93a57d60aaae0e3c9bbbfc8350f25/Classifier.java/clean/SRC/org/openmicroscopy/shoola/agents/classifier/Classifier.java |
|
protected abstract DataLoader createHierarchyLoader(); | protected abstract DataLoader createHierarchyLoader(boolean refresh); | protected abstract DataLoader createHierarchyLoader(); | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/fb3743d6f75abbf12f788b3b2925f4a6f4606dd6/HiViewerModel.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/view/HiViewerModel.java |
void fireHierarchyLoading() | void fireHierarchyLoading(boolean refresh) | void fireHierarchyLoading() { state = HiViewer.LOADING_HIERARCHY; currentLoader = createHierarchyLoader(); currentLoader.load(); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/fb3743d6f75abbf12f788b3b2925f4a6f4606dd6/HiViewerModel.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/view/HiViewerModel.java |
currentLoader = createHierarchyLoader(); | currentLoader = createHierarchyLoader(refresh); | void fireHierarchyLoading() { state = HiViewer.LOADING_HIERARCHY; currentLoader = createHierarchyLoader(); currentLoader.load(); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/fb3743d6f75abbf12f788b3b2925f4a6f4606dd6/HiViewerModel.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/view/HiViewerModel.java |
io.callMethod("write", new RubyString(io.getRuntime(), new String(new char[]{(char)(0x000000FF & bite)}))); | io.callMethod("write", io.getRuntime().newString(new String(new char[]{(char)(0x000000FF & bite)}))); | public void write(final int bite) throws IOException { io.callMethod("write", new RubyString(io.getRuntime(), new String(new char[]{(char)(0x000000FF & bite)}))); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9f2efc63a858fa0507245b207025eab027840a04/IOOutputStream.java/buggy/src/org/jruby/util/IOOutputStream.java |
args[0].convertToString(); | public IRubyObject specificEval(RubyModule mod, IRubyObject[] args) { ThreadContext tc = getRuntime().getCurrentContext(); if (tc.isBlockGiven()) { if (args.length > 0) { throw getRuntime().newArgumentError(args.length, 0); } return yieldUnder(mod); } if (args.length == 0) { throw getRuntime().newArgumentError("block not supplied"); } else if (args.length > 3) { String lastFuncName = tc.getFrameLastFunc(); throw getRuntime().newArgumentError( "wrong # of arguments: " + lastFuncName + "(src) or " + lastFuncName + "{..}"); } /* if (ruby.getSecurityLevel() >= 4) { Check_Type(argv[0], T_STRING); } else { Check_SafeStr(argv[0]); } */ IRubyObject file = args.length > 1 ? args[1] : getRuntime().newString("(eval)"); IRubyObject line = args.length > 2 ? args[2] : RubyFixnum.one(getRuntime()); Visibility savedVisibility = tc.getCurrentVisibility(); tc.setCurrentVisibility(Visibility.PUBLIC); try { return evalUnder(mod, args[0], file, line); } finally { tc.setCurrentVisibility(savedVisibility); } } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/10adf39a2aa5c73c2bb52dd3eced57b70daca628/RubyObject.java/buggy/src/org/jruby/RubyObject.java |
|
((StrNodeConvertable)yyVal).convertToStrNode(); | ((StrNodeConvertable) yyVal).convertToStrNode(); | private int here_document(int term, int indent) { int c; Node list = null; int linesave = ruby.getSourceLine(); newtok(); switch (term) { case '\'' : case '"' : case '`' : while ((c = nextc()) != term) { tokadd(c); } if (term == '\'') { term = 0; } break; default : c = term; term = '"'; if (!is_identchar(c)) { ph.rb_warn("use of bare << to mean <<\"\" is deprecated"); break; } while (is_identchar(c)) { tokadd(c); c = nextc(); } pushback(c); break; } tokfix(); RubyObject lastline_save = lex_lastline; int offset_save = lex_p - lex_pbeg; String eos = tok(); int len = eos.length(); RubyString str = RubyString.newString(ruby, ""); RubyObject line; while (true) { lex_lastline = line = lex_getline(); if (line.isNil()) { // error: ruby.setSourceLine(linesave); ph.rb_compile_error("can't find string \"" + eos + "\" anywhere before EOF"); return 0; } ruby.setSourceLine(ruby.getSourceLine()); String p = ((RubyString) line).getValue(); if (indent != 0) { while (Character.isWhitespace(p.charAt(0))) { p = p.substring(1); } // while (*p && (*p == ' ' || *p == '\t')) { // p++; // } } if (p /*.trim()*/ .startsWith(eos)) { if (p.charAt(len) == '\n' || p.charAt(len) == '\r') { break; } if (len == ((RubyString) line).getValue().length()) { break; } } lex_curline = ((RubyString) line).getValue(); lex_pbeg = lex_p = 0; lex_pend = lex_curline.length(); while (true) { switch (parse_string(term, '\n', '\n')) { case Token.tSTRING : case Token.tXSTRING : ((RubyString) yyVal).cat("\n"); if (list == null) { str.concat((RubyString) yyVal); } else { ph.list_append(list, nf.newStr((RubyObject) yyVal)); } break; case Token.tDSTRING : if (list == null) { list = nf.newDStr(str); } /* fall through */ case Token.tDXSTRING : if (list == null) { list = nf.newDXStr(str); } ph.list_append((Node) yyVal, nf.newStr(RubyString.newString(ruby, "\n"))); ((StrNodeConvertable)yyVal).convertToStrNode(); yyVal = nf.newList((Node) yyVal); ((Node) yyVal).setNextNode(((Node) yyVal).getHeadNode().getNextNode()); ph.list_concat(list, (Node) yyVal); break; case 0 : // goto error; ruby.setSourceLine(linesave); ph.rb_compile_error("can't find string \"" + eos + "\" anywhere before EOF"); return 0; } if (lex_p == lex_pend) { break; } } } lex_lastline = lastline_save; lex_curline = ((RubyString) lex_lastline).getValue(); lex_pbeg = 0; lex_pend = lex_pbeg + lex_curline.length(); lex_p = lex_pbeg + offset_save; ph.setLexState(LexState.EXPR_END); ph.setHeredocEnd(ruby.getSourceLine()); ruby.setSourceLine(linesave); if (list != null) { list.setLine(linesave + 1); yyVal = list; } switch (term) { case '\0' : case '\'' : case '"' : if (list != null) { return Token.tDSTRING; } yyVal = str; return Token.tSTRING; case '`' : if (list != null) { return Token.tDXSTRING; } yyVal = str; return Token.tXSTRING; } return 0; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9f6d418b0c7d9027a0d80f0c8a2a854790ba53aa/DefaultRubyScanner.java/clean/org/jruby/parser/DefaultRubyScanner.java |
ph.incrementLine(); | ph.incrementLine(); | private RubyObject lex_gets_str(RubyObject _s) { String s = ((RubyString) _s).getValue(); if (lex_gets_ptr != 0) { if (s.length() == lex_gets_ptr) { return ruby.getNil(); } s = s.substring(lex_gets_ptr); } int end = 0; while (end < s.length()) { if (s.charAt(end++) == '\n') { ph.incrementLine(); break; } } lex_gets_ptr += end; return RubyString.newString(ruby, s, end); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9f6d418b0c7d9027a0d80f0c8a2a854790ba53aa/DefaultRubyScanner.java/clean/org/jruby/parser/DefaultRubyScanner.java |
new RuntimeException("Want to change " + list.getClass().getName() + "to DRegxNode").printStackTrace(); | private int parse_regx(int term, int paren) { int c; char kcode = 0; boolean once = false; int nest = 0; int options = 0; int re_start = ruby.getSourceLine(); Node list = null; newtok(); regx_end : while ((c = nextc()) != -1) { if (c == term && nest == 0) { break regx_end; } switch (c) { case '#' : list = str_extend(list, term); if (list == Node.MINUS_ONE) { return 0; } continue; case '\\' : if (tokadd_escape(term) < 0) { /* * FIX 1.6.5 */ return 0; } continue; case -1 : //goto unterminated; ruby.setSourceLine(re_start); ph.rb_compile_error("unterminated regexp meets end of file"); return 0; default : if (paren != 0) { if (c == paren) { nest++; } if (c == term) { nest--; } } break; } tokadd(c); } end_options : for (;;) { switch (c = nextc()) { case 'i' : options |= ReOptions.RE_OPTION_IGNORECASE; break; case 'x' : options |= ReOptions.RE_OPTION_EXTENDED; break; case 'p' : // /p is obsolete ph.rb_warn("/p option is obsolete; use /m\n\tnote: /m does not change ^, $ behavior"); options |= ReOptions.RE_OPTION_POSIXLINE; break; case 'm' : options |= ReOptions.RE_OPTION_MULTILINE; break; case 'o' : once = true; break; case 'n' : kcode = 16; break; case 'e' : kcode = 32; break; case 's' : kcode = 48; break; case 'u' : kcode = 64; break; default : pushback(c); break end_options; } } tokfix(); ph.setLexState(LexState.EXPR_END); if (list != null) { list.setLine(re_start); if (toklen() > 0) { RubyObject ss = RubyString.newString(ruby, tok(), toklen()); ph.list_append(list, nf.newStr(ss)); } new RuntimeException("Want to change " + list.getClass().getName() + "to DRegxNode").printStackTrace(); // list.nd_set_type(once ? NODE.NODE_DREGX_ONCE : NODE.NODE_DREGX); list.setCFlag(options | kcode); yyVal = list; return Token.tDREGEXP; } else { yyVal = rb_reg_new(tok(), toklen(), options | kcode); return Token.tREGEXP; } //unterminated: //ruby_sourceline = re_start; //rb_compile_error("unterminated regexp meets end of file"); //return 0; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9f6d418b0c7d9027a0d80f0c8a2a854790ba53aa/DefaultRubyScanner.java/clean/org/jruby/parser/DefaultRubyScanner.java |
|
list.setCFlag(options | kcode); | if (once) { list = new DRegxOnceNode(list.getLiteral(), options | kcode); } else { list = new DRegxNode(list.getLiteral(), options | kcode); } | private int parse_regx(int term, int paren) { int c; char kcode = 0; boolean once = false; int nest = 0; int options = 0; int re_start = ruby.getSourceLine(); Node list = null; newtok(); regx_end : while ((c = nextc()) != -1) { if (c == term && nest == 0) { break regx_end; } switch (c) { case '#' : list = str_extend(list, term); if (list == Node.MINUS_ONE) { return 0; } continue; case '\\' : if (tokadd_escape(term) < 0) { /* * FIX 1.6.5 */ return 0; } continue; case -1 : //goto unterminated; ruby.setSourceLine(re_start); ph.rb_compile_error("unterminated regexp meets end of file"); return 0; default : if (paren != 0) { if (c == paren) { nest++; } if (c == term) { nest--; } } break; } tokadd(c); } end_options : for (;;) { switch (c = nextc()) { case 'i' : options |= ReOptions.RE_OPTION_IGNORECASE; break; case 'x' : options |= ReOptions.RE_OPTION_EXTENDED; break; case 'p' : // /p is obsolete ph.rb_warn("/p option is obsolete; use /m\n\tnote: /m does not change ^, $ behavior"); options |= ReOptions.RE_OPTION_POSIXLINE; break; case 'm' : options |= ReOptions.RE_OPTION_MULTILINE; break; case 'o' : once = true; break; case 'n' : kcode = 16; break; case 'e' : kcode = 32; break; case 's' : kcode = 48; break; case 'u' : kcode = 64; break; default : pushback(c); break end_options; } } tokfix(); ph.setLexState(LexState.EXPR_END); if (list != null) { list.setLine(re_start); if (toklen() > 0) { RubyObject ss = RubyString.newString(ruby, tok(), toklen()); ph.list_append(list, nf.newStr(ss)); } new RuntimeException("Want to change " + list.getClass().getName() + "to DRegxNode").printStackTrace(); // list.nd_set_type(once ? NODE.NODE_DREGX_ONCE : NODE.NODE_DREGX); list.setCFlag(options | kcode); yyVal = list; return Token.tDREGEXP; } else { yyVal = rb_reg_new(tok(), toklen(), options | kcode); return Token.tREGEXP; } //unterminated: //ruby_sourceline = re_start; //rb_compile_error("unterminated regexp meets end of file"); //return 0; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9f6d418b0c7d9027a0d80f0c8a2a854790ba53aa/DefaultRubyScanner.java/clean/org/jruby/parser/DefaultRubyScanner.java |
new RuntimeException("[BUG] want to change " + list.getClass().getName() + " to DXStrNode").printStackTrace(); | private int parse_string(int func, int term, int paren) { int c; Node list = null; int strstart; int nest = 0; if (func == '\'') { return parse_qstring(term, paren); } if (func == 0) { // read 1 line for heredoc // -1 for chomp yyVal = RubyString.newString(ruby, lex_curline, lex_pend - 1); lex_p = lex_pend; return Token.tSTRING; } strstart = ruby.getSourceLine(); newtok(); while ((c = nextc()) != term || nest > 0) { if (c == -1) { //unterm_str: ruby.setSourceLine(strstart); ph.rb_compile_error("unterminated string meets end of file"); return 0; } /* * if (ismbchar(c)) { * int i, len = mbclen(c)-1; * for (i = 0; i < len; i++) { * tokadd(c); * c = nextc(); * } * } * else */ if (c == '#') { list = str_extend(list, term); if (list == Node.MINUS_ONE) { //goto unterm_str; ruby.setSourceLine(strstart); ph.rb_compile_error("unterminated string meets end of file"); return 0; } continue; } else if (c == '\\') { c = nextc(); if (c == '\n') { continue; } if (c == term) { tokadd(c); } else { pushback(c); if (func != '"') { tokadd('\\'); } tokadd(read_escape()); } continue; } if (paren != 0) { if (c == paren) { nest++; } if (c == term && nest-- == 0) { break; } } tokadd(c); } tokfix(); ph.setLexState(LexState.EXPR_END); if (list != null) { list.setLine(strstart); if (toklen() > 0) { RubyObject ss = RubyString.newString(ruby, tok(), toklen()); ph.list_append(list, nf.newStr(ss)); } yyVal = list; if (func == '`') { new RuntimeException("[BUG] want to change " + list.getClass().getName() + " to DXStrNode").printStackTrace(); // list.nd_set_type(Constants.NODE_DXSTR); return Token.tDXSTRING; } else { return Token.tDSTRING; } } else { yyVal = RubyString.newString(ruby, tok(), toklen()); return (func == '`') ? Token.tXSTRING : Token.tSTRING; } } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9f6d418b0c7d9027a0d80f0c8a2a854790ba53aa/DefaultRubyScanner.java/clean/org/jruby/parser/DefaultRubyScanner.java |
|
list = new DXStrNode(list.getLiteral()); yyVal = list; | private int parse_string(int func, int term, int paren) { int c; Node list = null; int strstart; int nest = 0; if (func == '\'') { return parse_qstring(term, paren); } if (func == 0) { // read 1 line for heredoc // -1 for chomp yyVal = RubyString.newString(ruby, lex_curline, lex_pend - 1); lex_p = lex_pend; return Token.tSTRING; } strstart = ruby.getSourceLine(); newtok(); while ((c = nextc()) != term || nest > 0) { if (c == -1) { //unterm_str: ruby.setSourceLine(strstart); ph.rb_compile_error("unterminated string meets end of file"); return 0; } /* * if (ismbchar(c)) { * int i, len = mbclen(c)-1; * for (i = 0; i < len; i++) { * tokadd(c); * c = nextc(); * } * } * else */ if (c == '#') { list = str_extend(list, term); if (list == Node.MINUS_ONE) { //goto unterm_str; ruby.setSourceLine(strstart); ph.rb_compile_error("unterminated string meets end of file"); return 0; } continue; } else if (c == '\\') { c = nextc(); if (c == '\n') { continue; } if (c == term) { tokadd(c); } else { pushback(c); if (func != '"') { tokadd('\\'); } tokadd(read_escape()); } continue; } if (paren != 0) { if (c == paren) { nest++; } if (c == term && nest-- == 0) { break; } } tokadd(c); } tokfix(); ph.setLexState(LexState.EXPR_END); if (list != null) { list.setLine(strstart); if (toklen() > 0) { RubyObject ss = RubyString.newString(ruby, tok(), toklen()); ph.list_append(list, nf.newStr(ss)); } yyVal = list; if (func == '`') { new RuntimeException("[BUG] want to change " + list.getClass().getName() + " to DXStrNode").printStackTrace(); // list.nd_set_type(Constants.NODE_DXSTR); return Token.tDXSTRING; } else { return Token.tDSTRING; } } else { yyVal = RubyString.newString(ruby, tok(), toklen()); return (func == '`') ? Token.tXSTRING : Token.tSTRING; } } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9f6d418b0c7d9027a0d80f0c8a2a854790ba53aa/DefaultRubyScanner.java/clean/org/jruby/parser/DefaultRubyScanner.java |
|
/* * EnhancedDebuggerWindow.PERSISTED_DEBUGGER = true; * EnhancedDebuggerWindow.MAX_TABLE_ROWS = 10; * XMPPConnection.DEBUG_ENABLED = true; */ | EnhancedDebuggerWindow.PERSISTED_DEBUGGER = true; EnhancedDebuggerWindow.MAX_TABLE_ROWS = 10; XMPPConnection.DEBUG_ENABLED = true; | public static void main(final String[] args) { /* * EnhancedDebuggerWindow.PERSISTED_DEBUGGER = true; * EnhancedDebuggerWindow.MAX_TABLE_ROWS = 10; * XMPPConnection.DEBUG_ENABLED = true; */ String current = System.getProperty("java.library.path"); String classPath = System.getProperty("java.class.path"); // Set UIManager properties for JTree System.setProperty("apple.laf.useScreenMenuBar", "true"); /** Update Library Path **/ StringBuffer buf = new StringBuffer(); buf.append(current); buf.append(";"); final String workingDirectory = System.getProperty("appdir"); if (workingDirectory == null) { RESOURCE_DIRECTORY = new File(USER_HOME, "/Spark/resources").getAbsoluteFile(); BIN_DIRECTORY = new File(USER_HOME, "/Spark/bin").getAbsoluteFile(); LOG_DIRECTORY = new File(USER_HOME, "/Spark/logs").getAbsoluteFile(); RESOURCE_DIRECTORY.mkdirs(); LOG_DIRECTORY.mkdirs(); if (!RESOURCE_DIRECTORY.exists() || !LOG_DIRECTORY.exists()) { JOptionPane.showMessageDialog(new JFrame(), "Unable to create directories necessary for runtime.", "Spark Error", JOptionPane.ERROR_MESSAGE); System.exit(1); } } // This is the Spark.exe or Spark.dmg installed executable. else { // This is the installed executable. File workingDir = new File(workingDirectory); RESOURCE_DIRECTORY = new File(workingDir, "resources").getAbsoluteFile(); BIN_DIRECTORY = new File(workingDir, "bin").getAbsoluteFile(); if (!Spark.isWindows()) { LOG_DIRECTORY = new File(USER_HOME, "/Spark/logs").getAbsoluteFile(); } else { LOG_DIRECTORY = new File(workingDir, "logs").getAbsoluteFile(); } LOG_DIRECTORY.mkdirs(); try { buf.append(RESOURCE_DIRECTORY.getCanonicalPath()).append(";"); } catch (IOException e) { e.printStackTrace(); } } buf.append(classPath); // Update System Properties System.setProperty("java.library.path", buf.toString()); System.setProperty("sun.java2d.noddraw", "true"); SwingUtilities.invokeLater(new Runnable() { public void run() { // Start Application new Spark(); } }); // Handle arguments if (args.length > 0) { argument = args[0]; } } | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/89fd2815c162e5d302583d26afbc300dc5aec22f/Spark.java/buggy/src/java/org/jivesoftware/Spark.java |
nilClass.defineMethod("id", CallbackFactory.getSingletonMethod(RubyNil.class, "id")); | public static RubyClass createNilClass(Ruby ruby) { RubyClass nilClass = ruby.defineClass("NilClass", ruby.getClasses().getObjectClass()); nilClass.defineMethod("type", CallbackFactory.getSingletonMethod(RubyNil.class, "type")); nilClass.defineMethod("to_i", CallbackFactory.getSingletonMethod(RubyNil.class, "to_i")); nilClass.defineMethod("to_s", CallbackFactory.getSingletonMethod(RubyNil.class, "to_s")); nilClass.defineMethod("to_a", CallbackFactory.getSingletonMethod(RubyNil.class, "to_a")); nilClass.defineMethod("inspect", CallbackFactory.getSingletonMethod(RubyNil.class, "inspect")); nilClass.defineMethod("&", CallbackFactory.getSingletonMethod(RubyNil.class, "op_and", IRubyObject.class)); nilClass.defineMethod("|", CallbackFactory.getSingletonMethod(RubyNil.class, "op_or", IRubyObject.class)); nilClass.defineMethod("^", CallbackFactory.getSingletonMethod(RubyNil.class, "op_xor", IRubyObject.class)); nilClass.defineMethod("nil?", CallbackFactory.getTrueMethod(0)); nilClass.getInternalClass().undefMethod("new"); ruby.defineGlobalConstant("NIL", ruby.getNil()); return nilClass; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a33fc547e26999709256db0c7da831fd8ed14d1c/RubyNil.java/clean/org/jruby/RubyNil.java |
|
return "ModuleExecution"+(moduleExecutionId==null ? ":Hash"+this.hashCode() : ":"+moduleExecutionId); | return "ModuleExecution"+(moduleExecutionId==null ? ":Hash_"+this.hashCode() : ":Id_"+moduleExecutionId); | public String toString(){ return "ModuleExecution"+(moduleExecutionId==null ? ":Hash"+this.hashCode() : ":"+moduleExecutionId); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/51a3c546dfc7a7a98b29771a459df19094fc5b51/ModuleExecution.java/clean/components/common/src/ome/model/ModuleExecution.java |
Dimension d; if (getOrientation() == VERTICAL) { d = new Dimension(getPreferredVerticalSize()); } else { d = new Dimension(getPreferredHorizontalSize()); d.height = insetCache.top + insetCache.bottom; d.height += preferredSize_.height; } return d; | if (getOrientation() == VERTICAL) return getPreferredVerticalSize(); int width = getPreferredHorizontalSize().width; int height = insetCache.top + insetCache.bottom; height += preferredSize_.height; return new Dimension(width, height); | public Dimension getPreferredSize() { Dimension d; if (getOrientation() == VERTICAL) { d = new Dimension(getPreferredVerticalSize()); } else { d = new Dimension(getPreferredHorizontalSize()); d.height = insetCache.top + insetCache.bottom; d.height += preferredSize_.height; } return d; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/43f8c678f03aa7cac6a19865461c28a00cf7eb2b/TwoKnobsSlider.java/clean/SRC/org/openmicroscopy/shoola/util/ui/slider/TwoKnobsSlider.java |
if (knobControl == LEFT || pushKnobControl == LEFT_KNOB_PUSHED) { | if (knobControl == LEFT || pushKnobControl == LEFT_KNOB_PUSHED) { | private void handleMouseEvent(MouseEvent me) { if (!model.isEnabled()) return; int oldStart = getStartValue(); int oldEnd = getEndValue(); if (model.getOrientation() == TwoKnobsSlider.HORIZONTAL) { handleMouseEventForHorizSlider((int) me.getPoint().getX()); if (knobControl == LEFT || pushKnobControl == LEFT_KNOB_PUSHED) { firePropertyChange(LEFT_MOVED_PROPERTY, oldStart, getStartValue()); } else if (knobControl == RIGHT || pushKnobControl == RIGHT_KNOB_PUSHED) { firePropertyChange(RIGHT_MOVED_PROPERTY, oldEnd, getEndValue()); } } else { handleMouseEventForVertSlider((int) me.getPoint().getY()); if (knobControl == LEFT || pushKnobControl == LEFT_KNOB_PUSHED) { firePropertyChange(LEFT_MOVED_PROPERTY, oldEnd, getEndValue()); } else if (knobControl == RIGHT || pushKnobControl == RIGHT_KNOB_PUSHED) { firePropertyChange(RIGHT_MOVED_PROPERTY, oldStart, getStartValue()); } } } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/43f8c678f03aa7cac6a19865461c28a00cf7eb2b/TwoKnobsSlider.java/clean/SRC/org/openmicroscopy/shoola/util/ui/slider/TwoKnobsSlider.java |
} else if (knobControl == RIGHT || | } else if (knobControl == RIGHT || | private void handleMouseEvent(MouseEvent me) { if (!model.isEnabled()) return; int oldStart = getStartValue(); int oldEnd = getEndValue(); if (model.getOrientation() == TwoKnobsSlider.HORIZONTAL) { handleMouseEventForHorizSlider((int) me.getPoint().getX()); if (knobControl == LEFT || pushKnobControl == LEFT_KNOB_PUSHED) { firePropertyChange(LEFT_MOVED_PROPERTY, oldStart, getStartValue()); } else if (knobControl == RIGHT || pushKnobControl == RIGHT_KNOB_PUSHED) { firePropertyChange(RIGHT_MOVED_PROPERTY, oldEnd, getEndValue()); } } else { handleMouseEventForVertSlider((int) me.getPoint().getY()); if (knobControl == LEFT || pushKnobControl == LEFT_KNOB_PUSHED) { firePropertyChange(LEFT_MOVED_PROPERTY, oldEnd, getEndValue()); } else if (knobControl == RIGHT || pushKnobControl == RIGHT_KNOB_PUSHED) { firePropertyChange(RIGHT_MOVED_PROPERTY, oldStart, getStartValue()); } } } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/43f8c678f03aa7cac6a19865461c28a00cf7eb2b/TwoKnobsSlider.java/clean/SRC/org/openmicroscopy/shoola/util/ui/slider/TwoKnobsSlider.java |
if (knobControl == LEFT || pushKnobControl == LEFT_KNOB_PUSHED) { | if (knobControl == LEFT || pushKnobControl == LEFT_KNOB_PUSHED) { | private void handleMouseEvent(MouseEvent me) { if (!model.isEnabled()) return; int oldStart = getStartValue(); int oldEnd = getEndValue(); if (model.getOrientation() == TwoKnobsSlider.HORIZONTAL) { handleMouseEventForHorizSlider((int) me.getPoint().getX()); if (knobControl == LEFT || pushKnobControl == LEFT_KNOB_PUSHED) { firePropertyChange(LEFT_MOVED_PROPERTY, oldStart, getStartValue()); } else if (knobControl == RIGHT || pushKnobControl == RIGHT_KNOB_PUSHED) { firePropertyChange(RIGHT_MOVED_PROPERTY, oldEnd, getEndValue()); } } else { handleMouseEventForVertSlider((int) me.getPoint().getY()); if (knobControl == LEFT || pushKnobControl == LEFT_KNOB_PUSHED) { firePropertyChange(LEFT_MOVED_PROPERTY, oldEnd, getEndValue()); } else if (knobControl == RIGHT || pushKnobControl == RIGHT_KNOB_PUSHED) { firePropertyChange(RIGHT_MOVED_PROPERTY, oldStart, getStartValue()); } } } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/43f8c678f03aa7cac6a19865461c28a00cf7eb2b/TwoKnobsSlider.java/clean/SRC/org/openmicroscopy/shoola/util/ui/slider/TwoKnobsSlider.java |
} else if (knobControl == RIGHT || | } else if (knobControl == RIGHT || | private void handleMouseEvent(MouseEvent me) { if (!model.isEnabled()) return; int oldStart = getStartValue(); int oldEnd = getEndValue(); if (model.getOrientation() == TwoKnobsSlider.HORIZONTAL) { handleMouseEventForHorizSlider((int) me.getPoint().getX()); if (knobControl == LEFT || pushKnobControl == LEFT_KNOB_PUSHED) { firePropertyChange(LEFT_MOVED_PROPERTY, oldStart, getStartValue()); } else if (knobControl == RIGHT || pushKnobControl == RIGHT_KNOB_PUSHED) { firePropertyChange(RIGHT_MOVED_PROPERTY, oldEnd, getEndValue()); } } else { handleMouseEventForVertSlider((int) me.getPoint().getY()); if (knobControl == LEFT || pushKnobControl == LEFT_KNOB_PUSHED) { firePropertyChange(LEFT_MOVED_PROPERTY, oldEnd, getEndValue()); } else if (knobControl == RIGHT || pushKnobControl == RIGHT_KNOB_PUSHED) { firePropertyChange(RIGHT_MOVED_PROPERTY, oldStart, getStartValue()); } } } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/43f8c678f03aa7cac6a19865461c28a00cf7eb2b/TwoKnobsSlider.java/clean/SRC/org/openmicroscopy/shoola/util/ui/slider/TwoKnobsSlider.java |
FontMetrics metrics = getFontMetrics(getFont()); | private void setDefault() { FontMetrics metrics = getFontMetrics(getFont()); insetCache = getInsets(); fontHeight = metrics.getHeight(); knobControl = INITIAL; pushKnobControl = INITIAL; knobWidth = KNOB_WIDTH; knobHeight = KNOB_HEIGHT; calculatePreferredSize(); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/43f8c678f03aa7cac6a19865461c28a00cf7eb2b/TwoKnobsSlider.java/clean/SRC/org/openmicroscopy/shoola/util/ui/slider/TwoKnobsSlider.java |
|
fontHeight = metrics.getHeight(); | fontHeight = getFontMetrics(getFont()).getHeight(); | private void setDefault() { FontMetrics metrics = getFontMetrics(getFont()); insetCache = getInsets(); fontHeight = metrics.getHeight(); knobControl = INITIAL; pushKnobControl = INITIAL; knobWidth = KNOB_WIDTH; knobHeight = KNOB_HEIGHT; calculatePreferredSize(); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/43f8c678f03aa7cac6a19865461c28a00cf7eb2b/TwoKnobsSlider.java/clean/SRC/org/openmicroscopy/shoola/util/ui/slider/TwoKnobsSlider.java |
runtime.getGlobalVariables().defineReadonly("$$", new ValueAccessor(runtime.newFixnum(runtime.hashCode()))); | runtime.getGlobalVariables().defineReadonly("$$", new ValueAccessor(runtime.newFixnum(System.identityHashCode(runtime)))); | private void initializeRuntime(final IRuby runtime, String filename) { IRubyObject argumentArray = runtime.newArray(JavaUtil.convertJavaArrayToRuby(runtime, commandline.getScriptArguments())); runtime.setVerbose(runtime.newBoolean(commandline.isVerbose())); runtime.setDebug(runtime.newBoolean(commandline.isDebug())); defineGlobalVERBOSE(runtime); defineGlobalDEBUG(runtime); runtime.getObject().setConstant("$VERBOSE", commandline.isVerbose() ? runtime.getTrue() : runtime.getNil()); runtime.defineGlobalConstant("ARGV", argumentArray); defineGlobal(runtime, "$-p", commandline.isAssumePrinting()); defineGlobal(runtime, "$-n", commandline.isAssumeLoop()); defineGlobal(runtime, "$-a", commandline.isSplit()); defineGlobal(runtime, "$-l", commandline.isProcessLineEnds()); runtime.getGlobalVariables().defineReadonly("$*", new ValueAccessor(argumentArray)); // TODO this is a fake cause we have no real process number in Java runtime.getGlobalVariables().defineReadonly("$$", new ValueAccessor(runtime.newFixnum(runtime.hashCode()))); runtime.defineVariable(new RubyGlobal.StringGlobalVariable(runtime, "$0", runtime.newString(filename))); runtime.getLoadService().init(commandline.loadPaths()); Iterator iter = commandline.requiredLibraries().iterator(); while (iter.hasNext()) { String scriptName = (String) iter.next(); RubyKernel.require(runtime.getTopSelf(), runtime.newString(scriptName)); } } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d38821551a58969cd2593b463d93df5f32bf3c14/Main.java/buggy/src/org/jruby/Main.java |
commandline = new CommandlineParser(this, args); | commandline = new CommandlineParser(args); commandline.processArguments(true); | public int run(String[] args) { commandline = new CommandlineParser(this, args); if (commandline.isShowVersion()) { showVersion(); } if (! commandline.shouldRunInterpreter()) { return 0; } long now = -1; if (commandline.isBenchmarking()) { now = System.currentTimeMillis(); } int status = runInterpreter(commandline); if (commandline.isBenchmarking()) { out.println("Runtime: " + (System.currentTimeMillis() - now) + " ms"); } return status; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d38821551a58969cd2593b463d93df5f32bf3c14/Main.java/buggy/src/org/jruby/Main.java |
} if (commandline.shouldPrintUsage()) { printUsage(); | public int run(String[] args) { commandline = new CommandlineParser(this, args); if (commandline.isShowVersion()) { showVersion(); } if (! commandline.shouldRunInterpreter()) { return 0; } long now = -1; if (commandline.isBenchmarking()) { now = System.currentTimeMillis(); } int status = runInterpreter(commandline); if (commandline.isBenchmarking()) { out.println("Runtime: " + (System.currentTimeMillis() - now) + " ms"); } return status; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d38821551a58969cd2593b463d93df5f32bf3c14/Main.java/buggy/src/org/jruby/Main.java |
|
Copyright.print(System.out); | Header.print(System.out); | public void execute() throws BuildException { Copyright.print(System.out); getJava().createArg().setValue("-i"); getJava().createArg().setValue(coverageDataFileName); getJava().createArg().setValue("-s"); getJava().createArg().setValue(src.toString()); getJava().createArg().setValue("-o"); getJava().createArg().setValue(destDir.toString()); getJava().createArg().setValue("-f"); getJava().createArg().setValue(format); if (getJava().executeJava() != 0) { throw new BuildException(); } } | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/0e9968867b8060fdd72b4fc9c248fcbdc4e96330/CoverageReportTask.java/buggy/cobertura/src/net/sourceforge/cobertura/ant/CoverageReportTask.java |
public RubyClass defineClassUnder(String name, RubyClass superClass, RubyModule parentModule); | public RubyClass defineClassUnder(String name, RubyClass superClass, SinglyLinkedList parentCRef); | public RubyClass defineClassUnder(String name, RubyClass superClass, RubyModule parentModule); | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a1b8fc1d456e3d5c6e01579b88773383068aa85c/IRuby.java/buggy/src/org/jruby/IRuby.java |
public RubyModule defineModuleUnder(String name, RubyModule parentModule); | public RubyModule defineModuleUnder(String name, SinglyLinkedList parentCRef); | public RubyModule defineModuleUnder(String name, RubyModule parentModule); | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a1b8fc1d456e3d5c6e01579b88773383068aa85c/IRuby.java/buggy/src/org/jruby/IRuby.java |
static public DataObject adaptLoadedPDIHierarchy(Class rootNodeType, Object result) { if (null == result) { return null; } if (null == rootNodeType) { throw new IllegalArgumentException( "Class parameter may not be null."); } if (rootNodeType.equals(Project.class)) { return PojoAdapterUtils.go((Project) result, newCache()); } else if (rootNodeType.equals(Dataset.class)) { return PojoAdapterUtils.go((Dataset) result, newCache()); } else { throw new IllegalArgumentException( "Method only takes Project and Dataset as argument."); } } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/3bd3722f6e7f763bd9c8fc55babb13ca54367f29/PojoAdapterUtils.java/buggy/components/shoola-adapter/src/org/openmicroscopy/omero/shoolaadapter/PojoAdapterUtils.java |
||
floatClass.defineMethod("hash", CallbackFactory.getMethod(RubyFloat.class, "hash")); | public static RubyClass createFloatClass(Ruby ruby) { RubyClass floatClass = ruby.defineClass("Float", ruby.getClasses().getNumericClass()); floatClass.defineSingletonMethod("induced_from", CallbackFactory.getSingletonMethod(RubyFloat.class, "induced_from", RubyObject.class)); floatClass.defineMethod("to_i", CallbackFactory.getMethod(RubyFloat.class, "to_i")); floatClass.defineMethod("to_s", CallbackFactory.getMethod(RubyFloat.class, "to_s")); floatClass.defineMethod("+", CallbackFactory.getMethod(RubyFloat.class, "op_plus", RubyObject.class)); floatClass.defineMethod("-", CallbackFactory.getMethod(RubyFloat.class, "op_minus", RubyObject.class)); floatClass.defineMethod("*", CallbackFactory.getMethod(RubyFloat.class, "op_mul", RubyObject.class)); floatClass.defineMethod("/", CallbackFactory.getMethod(RubyFloat.class, "op_div", RubyObject.class)); floatClass.defineMethod("%", CallbackFactory.getMethod(RubyFloat.class, "op_mod", RubyObject.class)); floatClass.defineMethod("**", CallbackFactory.getMethod(RubyFloat.class, "op_pow", RubyObject.class)); floatClass.defineMethod("==", CallbackFactory.getMethod(RubyFloat.class, "op_equal", RubyObject.class)); floatClass.defineMethod("<=>", CallbackFactory.getMethod(RubyFloat.class, "op_cmp", RubyObject.class)); floatClass.defineMethod(">", CallbackFactory.getMethod(RubyFloat.class, "op_gt", RubyObject.class)); floatClass.defineMethod(">=", CallbackFactory.getMethod(RubyFloat.class, "op_ge", RubyObject.class)); floatClass.defineMethod("<", CallbackFactory.getMethod(RubyFloat.class, "op_lt", RubyObject.class)); floatClass.defineMethod("<=", CallbackFactory.getMethod(RubyFloat.class, "op_le", RubyObject.class)); floatClass.defineMethod("floor", CallbackFactory.getMethod(RubyFloat.class, "floor")); floatClass.defineMethod("ceil", CallbackFactory.getMethod(RubyFloat.class, "ceil")); floatClass.defineMethod("round", CallbackFactory.getMethod(RubyFloat.class, "round")); floatClass.defineMethod("truncate", CallbackFactory.getMethod(RubyFloat.class, "truncate")); return floatClass; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/7f0907240b4b4a4379424377e971ed0ca23f1dcb/RubyFloat.java/clean/org/jruby/RubyFloat.java |
|
public DiffHelper (Diff.change changes) { _changes = new ArrayList(); | public DiffHelper (WikiSystem wiki, WikiPage old, WikiPage current) throws Exception { _currentLines = WikiUtil.delimitedToArray(wiki.getPageRenderer().render(current), "\n"); _oldLines = WikiUtil.delimitedToArray(wiki.getPageRenderer().render(old), "\n"); Diff diff = new Diff (_oldLines, _currentLines); Diff.change changes = diff.diff(Diff.forwardScript); _changeList = new ArrayList(); | public DiffHelper (Diff.change changes) { _changes = new ArrayList(); while (changes != null) { _changes.add (changes); changes = changes.link; } } | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/63e182a593c47d9b882560d480b0bab109616dc8/DiffPageAction.java/buggy/wiki/src/org/tcdi/opensource/wiki/servlet/DiffPageAction.java |
_changes.add (changes); | _changeList.add (changes); | public DiffHelper (Diff.change changes) { _changes = new ArrayList(); while (changes != null) { _changes.add (changes); changes = changes.link; } } | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/63e182a593c47d9b882560d480b0bab109616dc8/DiffPageAction.java/buggy/wiki/src/org/tcdi/opensource/wiki/servlet/DiffPageAction.java |
if (isModified(line_no)) | if (isModifiedRight(line_no)) | public int getDeleteCount(int line_no) { if (isModified(line_no)) return 0; for (Iterator itr = _changes.iterator(); itr.hasNext();) { Diff.change ch = (Diff.change) itr.next(); if (line_no == ch.line1) return ch.deleted; } return 0; } | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/63e182a593c47d9b882560d480b0bab109616dc8/DiffPageAction.java/buggy/wiki/src/org/tcdi/opensource/wiki/servlet/DiffPageAction.java |
for (Iterator itr = _changes.iterator(); itr.hasNext();) { | for (Iterator itr = _changeList.iterator(); itr.hasNext();) { | public int getDeleteCount(int line_no) { if (isModified(line_no)) return 0; for (Iterator itr = _changes.iterator(); itr.hasNext();) { Diff.change ch = (Diff.change) itr.next(); if (line_no == ch.line1) return ch.deleted; } return 0; } | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/63e182a593c47d9b882560d480b0bab109616dc8/DiffPageAction.java/buggy/wiki/src/org/tcdi/opensource/wiki/servlet/DiffPageAction.java |
if (isModified(line_no)) | if (isModifiedRight(line_no)) | public int getInsertCount(int line_no) { if (isModified(line_no)) return 0; for (Iterator itr = _changes.iterator(); itr.hasNext();) { Diff.change ch = (Diff.change) itr.next(); if (line_no == ch.line0) return ch.inserted; } return 0; } | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/63e182a593c47d9b882560d480b0bab109616dc8/DiffPageAction.java/buggy/wiki/src/org/tcdi/opensource/wiki/servlet/DiffPageAction.java |
for (Iterator itr = _changes.iterator(); itr.hasNext();) { | for (Iterator itr = _changeList.iterator(); itr.hasNext();) { | public int getInsertCount(int line_no) { if (isModified(line_no)) return 0; for (Iterator itr = _changes.iterator(); itr.hasNext();) { Diff.change ch = (Diff.change) itr.next(); if (line_no == ch.line0) return ch.inserted; } return 0; } | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/63e182a593c47d9b882560d480b0bab109616dc8/DiffPageAction.java/buggy/wiki/src/org/tcdi/opensource/wiki/servlet/DiffPageAction.java |
if (isModified(line_no)) | if (isModifiedLeft(line_no)) | public boolean isDeleted(int line_no) { if (isModified(line_no)) return false; for (Iterator itr = _changes.iterator(); itr.hasNext();) { Diff.change ch = (Diff.change) itr.next(); if (ch.line0 + ch.deleted > line_no && ch.line0 <= line_no) return true; } return false; } | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/63e182a593c47d9b882560d480b0bab109616dc8/DiffPageAction.java/buggy/wiki/src/org/tcdi/opensource/wiki/servlet/DiffPageAction.java |
for (Iterator itr = _changes.iterator(); itr.hasNext();) { | for (Iterator itr = _changeList.iterator(); itr.hasNext();) { | public boolean isDeleted(int line_no) { if (isModified(line_no)) return false; for (Iterator itr = _changes.iterator(); itr.hasNext();) { Diff.change ch = (Diff.change) itr.next(); if (ch.line0 + ch.deleted > line_no && ch.line0 <= line_no) return true; } return false; } | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/63e182a593c47d9b882560d480b0bab109616dc8/DiffPageAction.java/buggy/wiki/src/org/tcdi/opensource/wiki/servlet/DiffPageAction.java |
if (isModified(line_no)) | if (isModifiedLeft(line_no)) | public boolean isInserted(int line_no) { if (isModified(line_no)) return false; for (Iterator itr = _changes.iterator(); itr.hasNext();) { Diff.change ch = (Diff.change) itr.next(); if (line_no >= ch.line1 && line_no < ch.line1 + ch.inserted) return true; } return false; } | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/63e182a593c47d9b882560d480b0bab109616dc8/DiffPageAction.java/buggy/wiki/src/org/tcdi/opensource/wiki/servlet/DiffPageAction.java |
for (Iterator itr = _changes.iterator(); itr.hasNext();) { | for (Iterator itr = _changeList.iterator(); itr.hasNext();) { | public boolean isInserted(int line_no) { if (isModified(line_no)) return false; for (Iterator itr = _changes.iterator(); itr.hasNext();) { Diff.change ch = (Diff.change) itr.next(); if (line_no >= ch.line1 && line_no < ch.line1 + ch.inserted) return true; } return false; } | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/63e182a593c47d9b882560d480b0bab109616dc8/DiffPageAction.java/buggy/wiki/src/org/tcdi/opensource/wiki/servlet/DiffPageAction.java |
String[] currentPageLines = WikiUtil.delimitedToArray(currentPage.getUnparsedData(), "\n"); String[] oldPageLines = WikiUtil.delimitedToArray(oldPage.getUnparsedData(), "\n"); Diff diff = new Diff(oldPageLines, currentPageLines); Diff.change changes = diff.diff(Diff.forwardScript); | DiffHelper helper = new DiffHelper (wiki, oldPage, currentPage); | public void perform(WikiSystem wiki, WebContext wc, WikiUser user, WikiPage page) throws PageAction.PageActionException { try { String current_version = wc.getForm("V1"); String old_version = wc.getForm("V2"); String page_name = wc.getForm("PAGE"); if (page_name == null) return; WikiPage tmp = wiki.getPage(page_name); WikiPage currentPage = wiki.getPage(current_version == null ? page_name : page_name + "." + current_version); if (currentPage == null) return; WikiPage oldPage = wiki.getPage(old_version == null ? page_name + "." + (currentPage.getVersion()-1) : page_name + "." + old_version); if (oldPage == null) oldPage = currentPage; boolean is_current = tmp.getVersion() == currentPage.getVersion(); String[] currentPageLines = WikiUtil.delimitedToArray(currentPage.getUnparsedData(), "\n"); String[] oldPageLines = WikiUtil.delimitedToArray(oldPage.getUnparsedData(), "\n"); Diff diff = new Diff(oldPageLines, currentPageLines); Diff.change changes = diff.diff(Diff.forwardScript); wc.put ("IsCurrent", is_current); wc.put ("CurrentPage", currentPage); wc.put ("OldPage", oldPage); wc.put ("CurrentPageLines", currentPageLines); wc.put ("OldPageLines", oldPageLines); wc.put ("DiffHelper", new DiffHelper (changes)); } catch (Exception e) { e.printStackTrace(); throw new PageAction.PageActionException(e.toString()); } } | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/63e182a593c47d9b882560d480b0bab109616dc8/DiffPageAction.java/buggy/wiki/src/org/tcdi/opensource/wiki/servlet/DiffPageAction.java |
wc.put ("CurrentPageLines", currentPageLines); wc.put ("OldPageLines", oldPageLines); wc.put ("DiffHelper", new DiffHelper (changes)); | wc.put ("DiffHelper", helper); | public void perform(WikiSystem wiki, WebContext wc, WikiUser user, WikiPage page) throws PageAction.PageActionException { try { String current_version = wc.getForm("V1"); String old_version = wc.getForm("V2"); String page_name = wc.getForm("PAGE"); if (page_name == null) return; WikiPage tmp = wiki.getPage(page_name); WikiPage currentPage = wiki.getPage(current_version == null ? page_name : page_name + "." + current_version); if (currentPage == null) return; WikiPage oldPage = wiki.getPage(old_version == null ? page_name + "." + (currentPage.getVersion()-1) : page_name + "." + old_version); if (oldPage == null) oldPage = currentPage; boolean is_current = tmp.getVersion() == currentPage.getVersion(); String[] currentPageLines = WikiUtil.delimitedToArray(currentPage.getUnparsedData(), "\n"); String[] oldPageLines = WikiUtil.delimitedToArray(oldPage.getUnparsedData(), "\n"); Diff diff = new Diff(oldPageLines, currentPageLines); Diff.change changes = diff.diff(Diff.forwardScript); wc.put ("IsCurrent", is_current); wc.put ("CurrentPage", currentPage); wc.put ("OldPage", oldPage); wc.put ("CurrentPageLines", currentPageLines); wc.put ("OldPageLines", oldPageLines); wc.put ("DiffHelper", new DiffHelper (changes)); } catch (Exception e) { e.printStackTrace(); throw new PageAction.PageActionException(e.toString()); } } | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/63e182a593c47d9b882560d480b0bab109616dc8/DiffPageAction.java/buggy/wiki/src/org/tcdi/opensource/wiki/servlet/DiffPageAction.java |
isOpen = false; | isOpen = false; | public IRubyObject close() { // Make sure any read()s after close fail. isOpen = false; return getRuntime().getNil(); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/5eacb9b98830d47a02fed1be88bea51ae0b56282/RubyDir.java/buggy/src/org/jruby/RubyDir.java |
dirClass.defineAlias("pos=", "seek"); | dirClass.defineMethod("pos=", callbackFactory.getMethod("setPos", RubyFixnum.class)); | public static RubyClass createDirClass(Ruby runtime) { RubyClass dirClass = runtime.defineClass("Dir", runtime.getObject()); dirClass.includeModule(runtime.getModule("Enumerable")); CallbackFactory callbackFactory = runtime.callbackFactory(RubyDir.class); dirClass.defineSingletonMethod("new", callbackFactory.getOptSingletonMethod("newInstance")); dirClass.defineSingletonMethod("glob", callbackFactory.getSingletonMethod("glob", RubyString.class)); dirClass.defineSingletonMethod("entries", callbackFactory.getSingletonMethod("entries", RubyString.class)); dirClass.defineSingletonMethod("[]", callbackFactory.getSingletonMethod("glob", RubyString.class)); // dirClass.defineAlias("[]", "glob"); dirClass.defineSingletonMethod("chdir", callbackFactory.getOptSingletonMethod("chdir")); dirClass.defineSingletonMethod("chroot", callbackFactory.getSingletonMethod("chroot", RubyString.class)); //dirClass.defineSingletonMethod("delete", callbackFactory.getSingletonMethod(RubyDir.class, "delete", RubyString.class)); dirClass.defineSingletonMethod("foreach", callbackFactory.getSingletonMethod("foreach", RubyString.class)); dirClass.defineSingletonMethod("getwd", callbackFactory.getSingletonMethod("getwd")); dirClass.defineSingletonMethod("pwd", callbackFactory.getSingletonMethod("getwd")); // dirClass.defineAlias("pwd", "getwd"); dirClass.defineSingletonMethod("mkdir", callbackFactory.getOptSingletonMethod("mkdir")); dirClass.defineSingletonMethod("open", callbackFactory.getSingletonMethod("open", RubyString.class)); dirClass.defineSingletonMethod("rmdir", callbackFactory.getSingletonMethod("rmdir", RubyString.class)); dirClass.defineSingletonMethod("unlink", callbackFactory.getSingletonMethod("rmdir", RubyString.class)); dirClass.defineSingletonMethod("delete", callbackFactory.getSingletonMethod("rmdir", RubyString.class)); // dirClass.defineAlias("unlink", "rmdir"); // dirClass.defineAlias("delete", "rmdir"); dirClass.defineMethod("close", callbackFactory.getMethod("close")); dirClass.defineMethod("each", callbackFactory.getMethod("each")); dirClass.defineMethod("entries", callbackFactory.getMethod("entries")); dirClass.defineMethod("tell", callbackFactory.getMethod("tell")); dirClass.defineAlias("pos", "tell"); dirClass.defineMethod("seek", callbackFactory.getMethod("seek", RubyFixnum.class)); dirClass.defineAlias("pos=", "seek"); dirClass.defineMethod("read", callbackFactory.getMethod("read")); dirClass.defineMethod("rewind", callbackFactory.getMethod("rewind")); dirClass.defineMethod("initialize", callbackFactory.getMethod("initialize", RubyString.class)); return dirClass; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/5eacb9b98830d47a02fed1be88bea51ae0b56282/RubyDir.java/buggy/src/org/jruby/RubyDir.java |
path = newPath; | public IRubyObject initialize(RubyString newPath) { newPath.checkSafeString();// TODO: Consolidate this absolute file nonsense dir = new File(newPath.getValue()).getAbsoluteFile(); if (!dir.isDirectory()) { dir = null; throw ErrnoError.getErrnoError(getRuntime(), "ENOENT", newPath.getValue() + " is not a directory"); } List snapshotList = new ArrayList(); snapshotList.add("."); snapshotList.add(".."); snapshotList.addAll(getContents(dir)); snapshot = (String[]) snapshotList.toArray(new String[snapshotList.size()]); pos = 0; return this; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/5eacb9b98830d47a02fed1be88bea51ae0b56282/RubyDir.java/buggy/src/org/jruby/RubyDir.java |
|
this.pos = (int) newPos.getLongValue(); | setPos(newPos); | public IRubyObject seek(RubyFixnum newPos) { this.pos = (int) newPos.getLongValue(); return this; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/5eacb9b98830d47a02fed1be88bea51ae0b56282/RubyDir.java/buggy/src/org/jruby/RubyDir.java |
threadClass.defineSingletonMethod("main", callbackFactory.getSingletonMethod(ThreadClass.class, "main")); | public static RubyClass createThreadClass(Ruby ruby) { RubyClass threadClass = ruby.defineClass("Thread", ruby.getClasses().getObjectClass()); CallbackFactory callbackFactory = ruby.callbackFactory(); threadClass.defineMethod("[]", callbackFactory.getMethod(ThreadClass.class, "aref", IRubyObject.class)); threadClass.defineMethod("[]=", callbackFactory.getMethod(ThreadClass.class, "aset", IRubyObject.class, IRubyObject.class)); threadClass.defineMethod("abort_on_exception", callbackFactory.getMethod(ThreadClass.class, "abort_on_exception", IRubyObject.class)); threadClass.defineMethod("abort_on_exception=", callbackFactory.getMethod(ThreadClass.class, "abort_on_exception_set", IRubyObject.class, IRubyObject.class)); threadClass.defineMethod("alive?", callbackFactory.getMethod(ThreadClass.class, "is_alive")); threadClass.defineMethod("group", callbackFactory.getMethod(ThreadClass.class, "group")); threadClass.defineMethod("join", callbackFactory.getMethod(ThreadClass.class, "join")); threadClass.defineMethod("key?", callbackFactory.getMethod(ThreadClass.class, "has_key", IRubyObject.class)); threadClass.defineMethod("priority", callbackFactory.getMethod(ThreadClass.class, "priority")); threadClass.defineMethod("priority=", callbackFactory.getMethod(ThreadClass.class, "priority_set", IRubyObject.class)); threadClass.defineMethod("raise", callbackFactory.getMethod(ThreadClass.class, "raise", IRubyObject.class)); threadClass.defineMethod("run", callbackFactory.getMethod(ThreadClass.class, "run")); threadClass.defineMethod("status", callbackFactory.getMethod(ThreadClass.class, "status")); threadClass.defineSingletonMethod("current", callbackFactory.getSingletonMethod(ThreadClass.class, "current")); threadClass.defineSingletonMethod("fork", callbackFactory.getOptSingletonMethod(ThreadClass.class, "newInstance")); threadClass.defineSingletonMethod("new", callbackFactory.getOptSingletonMethod(ThreadClass.class, "newInstance")); threadClass.defineSingletonMethod("list", callbackFactory.getSingletonMethod(ThreadClass.class, "list")); threadClass.defineSingletonMethod("pass", callbackFactory.getSingletonMethod(ThreadClass.class, "pass")); threadClass.defineSingletonMethod("start", callbackFactory.getOptSingletonMethod(ThreadClass.class, "start")); threadClass.defineSingletonMethod("critical=", callbackFactory.getSingletonMethod(ThreadClass.class, "critical_set", RubyBoolean.class)); ThreadClass currentThread = new ThreadClass(ruby, threadClass); currentThread.jvmThread = Thread.currentThread(); ruby.getThreadService().setMainThread(currentThread); // set to default thread group currentThread.setThreadGroup((RubyThreadGroup)ruby.getClass("ThreadGroup").getConstant("Default")); return threadClass; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/72d61342450d480922aa10bd58cd78ad809eb93b/ThreadClass.java/clean/src/org/jruby/ThreadClass.java |
|
if (isStopped) { synchronized (this) { this.notifyAll(); isStopped = false; } } | public IRubyObject run() { // Abort any sleep()s jvmThread.interrupt(); return this; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/72d61342450d480922aa10bd58cd78ad809eb93b/ThreadClass.java/clean/src/org/jruby/ThreadClass.java |
|
if (isStopped) { return RubyString.newString(getRuntime(), "sleep"); } | public IRubyObject status() { ensureStarted(); if (jvmThread.isAlive()) { return RubyString.newString(getRuntime(), "run"); } else if (exitingException != null) { return getRuntime().getNil(); } else { return RubyBoolean.newBoolean(getRuntime(), false); } } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/72d61342450d480922aa10bd58cd78ad809eb93b/ThreadClass.java/clean/src/org/jruby/ThreadClass.java |
|
FindRegExTitleVisitor(HiViewer viewer, String regEx) | FindRegExTitleVisitor(HiViewer viewer, Pattern pattern) | FindRegExTitleVisitor(HiViewer viewer, String regEx) { super(viewer, regEx); colors = Colors.getInstance(); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0c7517f5d0ece413452f58f3f0a071be2ccbee2e/FindRegExTitleVisitor.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/cmd/FindRegExTitleVisitor.java |
super(viewer, regEx); | super(viewer, pattern); | FindRegExTitleVisitor(HiViewer viewer, String regEx) { super(viewer, regEx); colors = Colors.getInstance(); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0c7517f5d0ece413452f58f3f0a071be2ccbee2e/FindRegExTitleVisitor.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/cmd/FindRegExTitleVisitor.java |
return service.findByQuery(sql, param); | return service.findByQuery(sql, param); | IObject findLink(IObject parent, IObject child) throws DSOutOfServiceException, DSAccessException { try { String table = getTableForLink(parent.getClass()); if (table == null) return null; String sql = "select link from "+table+" as link where " + "link.parent.id = :parentID and link.child.id = :childID"; IQuery service = getIQueryService(); Parameters param = new Parameters(); param.addLong("parentID", parent.getId()); param.addLong("childID", child.getId()); return service.findByQuery(sql, param); } catch (Exception e) { handleException(e, "Cannot retrieve the requested link for "+ "parent ID: "+parent.getId()+" and child ID: "+child.getId()); } return null; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/bbd964029121f2811ba2b7cf47a392087032888c/OMEROGateway.java/buggy/SRC/org/openmicroscopy/shoola/env/data/OMEROGateway.java |
bignumClass.defineMethod("&", CallbackFactory.getMethod(RubyBignum.class, "op_and", RubyObject.class)); | public static RubyClass createBignumClass(Ruby ruby) { RubyClass bignumClass = ruby.defineClass("Bignum", ruby.getClasses().getIntegerClass()); //rb_define_method(rb_cBignum, "-@", rb_big_uminus, 0); //rb_define_method(rb_cBignum, "divmod", rb_big_divmod, 1); //rb_define_method(rb_cBignum, "modulo", rb_big_modulo, 1); //rb_define_method(rb_cBignum, "remainder", rb_big_remainder, 1); //rb_define_method(rb_cBignum, "&", rb_big_and, 1); //rb_define_method(rb_cBignum, "|", rb_big_or, 1); //rb_define_method(rb_cBignum, "^", rb_big_xor, 1); // rb_define_method(rb_cBignum, "~", rb_big_neg, 0); // rb_define_method(rb_cBignum, "[]", rb_big_aref, 1); // //rb_define_method(rb_cBignum, "===", rb_big_eq, 1); // rb_define_method(rb_cBignum, "eql?", rb_big_eq, 1); // rb_define_method(rb_cBignum, "abs", rb_big_abs, 0); // rb_define_method(rb_cBignum, "size", rb_big_size, 0); // rb_define_method(rb_cBignum, "zero?", rb_big_zero_p, 0); bignumClass.defineMethod("-@", CallbackFactory.getMethod(RubyBignum.class, "op_uminus")); bignumClass.defineMethod("modulo", CallbackFactory.getMethod(RubyBignum.class, "op_mod", RubyObject.class)); bignumClass.defineMethod("remainder", CallbackFactory.getMethod(RubyBignum.class, "remainder", RubyObject.class)); bignumClass.defineMethod("to_s", CallbackFactory.getMethod(RubyBignum.class, "to_s")); bignumClass.defineMethod("coerce", CallbackFactory.getMethod(RubyBignum.class, "coerce", RubyObject.class)); bignumClass.defineMethod("hash", CallbackFactory.getMethod(RubyBignum.class, "hash")); bignumClass.defineMethod("to_f", CallbackFactory.getMethod(RubyBignum.class, "to_f")); bignumClass.defineMethod("+", CallbackFactory.getMethod(RubyBignum.class, "op_plus", RubyObject.class)); bignumClass.defineMethod("-", CallbackFactory.getMethod(RubyBignum.class, "op_minus", RubyObject.class)); bignumClass.defineMethod("*", CallbackFactory.getMethod(RubyBignum.class, "op_mul", RubyObject.class)); bignumClass.defineMethod("/", CallbackFactory.getMethod(RubyBignum.class, "op_div", RubyObject.class)); bignumClass.defineMethod("%", CallbackFactory.getMethod(RubyBignum.class, "op_mod", RubyObject.class)); bignumClass.defineMethod("**", CallbackFactory.getMethod(RubyBignum.class, "op_pow", RubyObject.class)); bignumClass.defineMethod("<<", CallbackFactory.getMethod(RubyBignum.class, "op_lshift", RubyObject.class)); bignumClass.defineMethod(">>", CallbackFactory.getMethod(RubyBignum.class, "op_rshift", RubyObject.class)); bignumClass.defineMethod("==", CallbackFactory.getMethod(RubyBignum.class, "op_equal", RubyObject.class)); bignumClass.defineMethod("<=>", CallbackFactory.getMethod(RubyBignum.class, "op_cmp", RubyObject.class)); bignumClass.defineMethod(">", CallbackFactory.getMethod(RubyBignum.class, "op_gt", RubyObject.class)); bignumClass.defineMethod(">=", CallbackFactory.getMethod(RubyBignum.class, "op_ge", RubyObject.class)); bignumClass.defineMethod("<", CallbackFactory.getMethod(RubyBignum.class, "op_lt", RubyObject.class)); bignumClass.defineMethod("<=", CallbackFactory.getMethod(RubyBignum.class, "op_le", RubyObject.class)); return bignumClass; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0d05f52f4b20deb7938755dd220bb81c2c2b208e/RubyBignum.java/buggy/org/jruby/RubyBignum.java |
|
long result = value.longValue(); if (! (BigInteger.valueOf(result).equals(value))) { | long result = getTruncatedLongValue(); if (! BigInteger.valueOf(result).equals(value)) { | public long getLongValue() { long result = value.longValue(); if (! (BigInteger.valueOf(result).equals(value))) { throw new RangeError(ruby, "bignum too big to convert into 'int'"); } return result; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0d05f52f4b20deb7938755dd220bb81c2c2b208e/RubyBignum.java/buggy/org/jruby/RubyBignum.java |
return Collections.EMPTY_LIST; | return EMPTY_LIST; | public List childNodes() { return Collections.EMPTY_LIST; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/b1293eda8454686e846e2a9837b348e2983bb423/NilNode.java/buggy/src/org/jruby/ast/NilNode.java |
fdX = -(eOffset-cEast); | if(wOffset > 0) { fdX = -(eOffset-cEast); } | protected void makeBoundedCameraMotion(PCamera c, double deltaX, double deltaY) { PBounds pBounds = c.getViewBounds(); Rectangle2D rBounds = pBounds.getBounds2D(); double wOffset = activeRegion.getX(); double nOffset = activeRegion.getY(); double eOffset = activeRegion.getX()+activeRegion.getWidth(); double sOffset = activeRegion.getY()+activeRegion.getHeight(); double cWest = rBounds.getX(); double cNorth = rBounds.getY(); double cEast = rBounds.getX()+rBounds.getWidth(); double cSouth = rBounds.getY()+rBounds.getHeight(); double fdX = 0; double fdY = 0; // check horizontal panning bounds if(((-deltaX+cWest < wOffset) || (-deltaX+cEast > eOffset)) && deltaX != 0) { if(-deltaX+cWest < wOffset) { fdX = -wOffset; } else if(-deltaX+cEast > eOffset) { fdX = -(eOffset-cEast); } } else { fdX = deltaX; } // check vertical panning bounds if(((-deltaY+cNorth < nOffset) || (-deltaY+cSouth > sOffset)) && deltaY != 0) { if(-deltaY+cNorth < nOffset) { fdY = nOffset; } else if(-deltaY+cSouth > sOffset) { if(nOffset > 0) { fdY = -(sOffset-cSouth); } } } else { fdY = deltaY; } if(fdX != 0 || fdY != 0) { c.translateView(fdX,fdY); c.repaint(); } } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/28e98417641b00a2e12a791f10f204dc4562dec1/BrowserCamera.java/buggy/SRC/org/openmicroscopy/shoola/agents/browser/ui/BrowserCamera.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.