rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
if (jj_3R_24()) return true;
if (jj_3R_28()) return true;
final private boolean jj_3_11() { Token xsp; xsp = jj_scanpos; if (jj_3R_20()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_21()) { jj_scanpos = xsp; if (jj_3R_22()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) retu...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/c9a4de4264062f93d661ef3eb940e728297306c8/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
if (jj_3R_25()) jj_scanpos = xsp;
if (jj_3R_29()) jj_scanpos = xsp;
final private boolean jj_3_12() { Token xsp; xsp = jj_scanpos; if (jj_3R_25()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_26()) { jj_scanpos = xsp; if (jj_3R_27()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) retu...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/c9a4de4264062f93d661ef3eb940e728297306c8/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
if (jj_3R_26()) { jj_scanpos = xsp; if (jj_3R_27()) 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_28()) jj_scanpos = xsp;
if (jj_3R_31()) jj_scanpos = xsp;
final private boolean jj_3_12() { Token xsp; xsp = jj_scanpos; if (jj_3R_25()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_26()) { jj_scanpos = xsp; if (jj_3R_27()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) retu...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/c9a4de4264062f93d661ef3eb940e728297306c8/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
if (jj_3R_29()) return true;
if (jj_3R_32()) return true;
final private boolean jj_3_12() { Token xsp; xsp = jj_scanpos; if (jj_3R_25()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_26()) { jj_scanpos = xsp; if (jj_3R_27()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) retu...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/c9a4de4264062f93d661ef3eb940e728297306c8/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
if (jj_3R_30()) jj_scanpos = xsp;
if (jj_3R_33()) jj_scanpos = xsp;
final private boolean jj_3_13() { Token xsp; xsp = jj_scanpos; if (jj_3R_30()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_31()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_32()) jj_scanpos = ...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/c9a4de4264062f93d661ef3eb940e728297306c8/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
if (jj_3R_31()) return true;
if (jj_scan_token(OP_AND)) return true;
final private boolean jj_3_13() { Token xsp; xsp = jj_scanpos; if (jj_3R_30()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_31()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_32()) jj_scanpos = ...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/c9a4de4264062f93d661ef3eb940e728297306c8/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_13() { Token xsp; xsp = jj_scanpos; if (jj_3R_30()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_31()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_32()) jj_scanpos = ...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/c9a4de4264062f93d661ef3eb940e728297306c8/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_13() { Token xsp; xsp = jj_scanpos; if (jj_3R_30()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_3R_31()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_32()) jj_scanpos = ...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/c9a4de4264062f93d661ef3eb940e728297306c8/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_14() { 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_AND)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_35()) jj...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/c9a4de4264062f93d661ef3eb940e728297306c8/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
if (jj_scan_token(OP_AND)) return true;
if (jj_scan_token(OP_OR)) return true;
final private boolean jj_3_14() { 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_AND)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_35()) jj...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/c9a4de4264062f93d661ef3eb940e728297306c8/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_14() { 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_AND)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_35()) jj...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/c9a4de4264062f93d661ef3eb940e728297306c8/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_14() { 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_AND)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_35()) jj...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/c9a4de4264062f93d661ef3eb940e728297306c8/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
Token xsp; xsp = jj_scanpos; if (jj_3R_37()) 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_38()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastp...
if (jj_scan_token(WORD)) return true;
final private boolean jj_3_15() { Token xsp; xsp = jj_scanpos; if (jj_3R_37()) 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_38()) jj_...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/c9a4de4264062f93d661ef3eb940e728297306c8/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
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_39()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_40()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_last...
final private boolean jj_3_16() { 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/c9a4de4264062f93d661ef3eb940e728297306c8/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
Token xsp; xsp = jj_scanpos; if (jj_3R_40()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_41()) 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_lastpo...
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_40()) jj_scanpos = xsp; else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; xsp = jj_scanpos; if (jj_3R_41()) jj...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/c9a4de4264062f93d661ef3eb940e728297306c8/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
if (jj_scan_token(DOLLAR)) return true;
if (jj_scan_token(LBRACE)) return true;
final private boolean jj_3_19() { 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/c9a4de4264062f93d661ef3eb940e728297306c8/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
if (jj_scan_token(LBRACE)) return true;
Token xsp; xsp = jj_scanpos; if (jj_3R_41()) { jj_scanpos = xsp; if (jj_3R_42()) { jj_scanpos = xsp; lookingAhead = true; jj_semLA = lookahead_not_breaking_subd(); lookingAhead = false; if (!jj_semLA || jj_3R_43()) return true;
final private boolean jj_3_20() { if (jj_scan_token(LBRACE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/c9a4de4264062f93d661ef3eb940e728297306c8/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
} else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
final private boolean jj_3_20() { if (jj_scan_token(LBRACE)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; return false; }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/c9a4de4264062f93d661ef3eb940e728297306c8/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
Token xsp; xsp = jj_scanpos; if (jj_3R_42()) { jj_scanpos = xsp; if (jj_3R_43()) { jj_scanpos = xsp; lookingAhead = true; jj_semLA = lookahead_not_breaking_subd(); lookingAhead = false; if (!jj_semLA || jj_3R_44()) return true;
if (jj_scan_token(POUND)) return true;
final private boolean jj_3_21() { Token xsp; xsp = jj_scanpos; if (jj_3R_42()) { jj_scanpos = xsp; if (jj_3R_43()) { jj_scanpos = xsp; lookingAhead = true; jj_semLA = lookahead_not_breaking_subd(); lookingAhead = false; if (!jj_semLA || jj_3R_44()) return true; if (jj_la == 0 && jj_sc...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/c9a4de4264062f93d661ef3eb940e728297306c8/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
} else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } else if (jj_la == 0 && jj_scanpos == jj_lastpos) return false;
final private boolean jj_3_21() { Token xsp; xsp = jj_scanpos; if (jj_3R_42()) { jj_scanpos = xsp; if (jj_3R_43()) { jj_scanpos = xsp; lookingAhead = true; jj_semLA = lookahead_not_breaking_subd(); lookingAhead = false; if (!jj_semLA || jj_3R_44()) return true; if (jj_la == 0 && jj_sc...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/c9a4de4264062f93d661ef3eb940e728297306c8/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
if (jj_scan_token(POUND)) return true;
if (jj_scan_token(LBRACE)) return true;
final private boolean jj_3_22() { 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/c9a4de4264062f93d661ef3eb940e728297306c8/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
Token xsp; if (jj_3R_19()) return true;
if (jj_scan_token(DOT)) return true;
final private boolean jj_3_6() { Token xsp; if (jj_3R_19()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; while (true) { xsp = jj_scanpos; if (jj_3R_19()) { jj_scanpos = xsp; break; } if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } return false; }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/c9a4de4264062f93d661ef3eb940e728297306c8/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
while (true) { xsp = jj_scanpos; if (jj_3R_19()) { jj_scanpos = xsp; break; } 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;
final private boolean jj_3_6() { Token xsp; if (jj_3R_19()) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; while (true) { xsp = jj_scanpos; if (jj_3R_19()) { jj_scanpos = xsp; break; } if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; } return false; }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/c9a4de4264062f93d661ef3eb940e728297306c8/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
if (jj_scan_token(DOT)) return true;
if (jj_scan_token(WORD)) return true;
final private boolean jj_3_7() { if (jj_scan_token(DOT)) return true; 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/c9a4de4264062f93d661ef3eb940e728297306c8/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
if (jj_scan_token(WORD)) return true;
if (jj_scan_token(SEMI)) return true;
final private boolean jj_3_7() { if (jj_scan_token(DOT)) return true; 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/c9a4de4264062f93d661ef3eb940e728297306c8/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
if (jj_scan_token(WORD)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(SEMI)) return true;
if (jj_scan_token(DOLLAR)) return true;
final private boolean jj_3_8() { if (jj_scan_token(WORD)) return true; if (jj_la == 0 && jj_scanpos == jj_lastpos) return false; if (jj_scan_token(SEMI)) 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/c9a4de4264062f93d661ef3eb940e728297306c8/WMParser_impl.java/clean/webmacro/src/org/webmacro/parser/WMParser_impl.java
try { l = (_l instanceof Macro) ? ((Macro) _l).evaluate(context) : _l; } catch (Exception e) { l = null; }
l = (_l instanceof Macro) ? ((Macro) _l).evaluate(context) : _l;
public Object evaluate(Context context) throws PropertyException { Object l, r; try { l = (_l instanceof Macro) ? ((Macro) _l).evaluate(context) : _l; } catch (Exception e) { l = null; } if (!isTrue(l)) return FALSE; ...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/2a732af6347caef331bbf5ad7353790dce990292/Expression.java/buggy/webmacro/src/org/webmacro/engine/Expression.java
try { r = (_r instanceof Macro) ? ((Macro) _r).evaluate(context) : _r; } catch (Exception e) { r = null; }
r = (_r instanceof Macro) ? ((Macro) _r).evaluate(context) : _r;
public Object evaluate(Context context) throws PropertyException { Object l, r; try { l = (_l instanceof Macro) ? ((Macro) _l).evaluate(context) : _l; } catch (Exception e) { l = null; } if (!isTrue(l)) return FALSE; ...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/2a732af6347caef331bbf5ad7353790dce990292/Expression.java/buggy/webmacro/src/org/webmacro/engine/Expression.java
try { l = (_l instanceof Macro) ? ((Macro) _l).evaluate(context) : _l; } catch (Exception e) { l = null; } try { r = (_r instanceof Macro) ? ((Macro) _r).evaluate(context) : _r; } catch (Exception e) { r = null; }
l = (_l instanceof Macro) ? ((Macro) _l).evaluate(context) : _l; r = (_r instanceof Macro) ? ((Macro) _r).evaluate(context) : _r;
public Object evaluate(Context context) throws PropertyException { Object l, r; try { l = (_l instanceof Macro) ? ((Macro) _l).evaluate(context) : _l; } catch (Exception e) { l = null; } try { r = (_r instanceof Macro) ? (...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/2a732af6347caef331bbf5ad7353790dce990292/Expression.java/buggy/webmacro/src/org/webmacro/engine/Expression.java
try { l = (_l instanceof Macro) ? ((Macro) _l).evaluate(context) : _l; } catch (Exception e) { l = null; }
l = (_l instanceof Macro) ? ((Macro) _l).evaluate(context) : _l;
public Object evaluate(Context context) throws PropertyException { Object l, r; try { l = (_l instanceof Macro) ? ((Macro) _l).evaluate(context) : _l; } catch (Exception e) { l = null; } if (isTrue(l)) return TRUE; ...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/2a732af6347caef331bbf5ad7353790dce990292/Expression.java/buggy/webmacro/src/org/webmacro/engine/Expression.java
try { r = (_r instanceof Macro) ? ((Macro) _r).evaluate(context) : _r; } catch (Exception e) { r = null; }
r = (_r instanceof Macro) ? ((Macro) _r).evaluate(context) : _r;
public Object evaluate(Context context) throws PropertyException { Object l, r; try { l = (_l instanceof Macro) ? ((Macro) _l).evaluate(context) : _l; } catch (Exception e) { l = null; } if (isTrue(l)) return TRUE; ...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/2a732af6347caef331bbf5ad7353790dce990292/Expression.java/buggy/webmacro/src/org/webmacro/engine/Expression.java
_bwriter = new BufferedWriter(new OutputStreamWriter(_bstream, encoding));
_bwriter = new OutputStreamWriter(_bstream, encoding);
public FastWriter(OutputStream out, String encoding) throws java.io.UnsupportedEncodingException { _encoding = encoding; _bstream = new ByteBufferOutputStream(4096); _bwriter = new BufferedWriter(new OutputStreamWriter(_bstream, encoding)); _cache = EncodingCache.getInstance(encoding); ...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/84fef1ba20715e29ebecf0e390cbce1c2ef3b8f3/FastWriter.java/clean/webmacro/src/org/webmacro/FastWriter.java
return _bstream.toByteArray();
return _bstream.getBytes();
public byte[] toByteArray() { bflush(); return _bstream.toByteArray(); }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/84fef1ba20715e29ebecf0e390cbce1c2ef3b8f3/FastWriter.java/clean/webmacro/src/org/webmacro/FastWriter.java
try { if (_encodeProperly) { bflush(); _bstream.write(_cache.getEncoding(s)); } else { write(s,0,s.length()); } } catch (IOException e) { e.printStackTrace();
if (_encodeProperly) { bflush(); _bstream.write(_cache.getEncoding(s)); } else { write(s,0,s.length());
public void writeStatic(String s) { try { if (_encodeProperly) { bflush(); _bstream.write(_cache.getEncoding(s)); } else { write(s,0,s.length()); } } catch (IOException e) { e.printStackTrace(); // never happens } }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/84fef1ba20715e29ebecf0e390cbce1c2ef3b8f3/FastWriter.java/clean/webmacro/src/org/webmacro/FastWriter.java
Ice.Object object = new test.TI();
Ice.Object object = new mono.TI();
main(String[] args) { int status = 0; Ice.Communicator ic = null; try { // Server implementation here... ic = Ice.Util.initialize(args); Ice.ObjectAdapter adapter = ic.createObjectAdapterWithEndpoints( "TAdapter", "default -p 10000"); Ice.Object object = new test.TI()...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/d075eea85d4fb93ed40f6b4f476d90a0bccaf12a/Server.java/buggy/components/common/test/mono/Server.java
e.printStackTrace();
main(String[] args) { int status = 0; Ice.Communicator ic = null; try { // Server implementation here... ic = Ice.Util.initialize(args); Ice.ObjectAdapter adapter = ic.createObjectAdapterWithEndpoints( "TAdapter", "default -p 10000"); Ice.Object object = new test.TI()...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/d075eea85d4fb93ed40f6b4f476d90a0bccaf12a/Server.java/buggy/components/common/test/mono/Server.java
data[i][0] = (DatasetData) datasets[i];
data[i][0] = ((DatasetData) datasets[i]).getName();
private DatasetsTableModel() { for (int i = 0; i < datasets.length; i++) { data[i][0] = (DatasetData) datasets[i]; data[i][1] = new Boolean(false); } }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1ed79437fda6d8f6b2566c6fe677bfaaf3352055/ProjectDatasetsDiffPane.java/buggy/SRC/org/openmicroscopy/shoola/agents/datamng/editors/project/ProjectDatasetsDiffPane.java
0, 0, 0, 255, false);
255, 0, 0, 255, false);
private RenderingDef createDefaultRenderingDef(PixelsDimensions dims, PixelsStats stats, int pixelType) { QuantumDef qDef = new QuantumDef(QuantumFactory.LINEAR, pixelType, 1, 0, QuantumFactory.DEPTH_8BIT, QuantumFactory.DEPTH_8BIT); ChannelBindings[] waves = new ChannelBindings[dims.s...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1af109c95da3a7c178aa582fbdc0a6c825b00e8c/Renderer.java/clean/SRC/org/openmicroscopy/shoola/env/rnd/Renderer.java
System.err.println("xxx"); for (String id : types.keySet()) { System.err.println(id); }
public Set<SemanticType> process(){ for (String id : types.keySet()) { // "ome...Pixels" SemanticType t = types.get(id); // Pixels for (Property p : t.getProperties()) { // thumbnails String rev = p.getType(); // "ome...Thumbnail" String inv = p.getInverse(); // "pixels" if...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/3a956977ffa0572625f43255a57d6d52664bd7e7/SaxReader.java/clean/components/dsl/src/ome/dsl/SaxReader.java
for (String nick : invitees.keySet()) { String jid = SparkManager.getUserManager().getJIDFromNickname(nick); Occupant occ = chat.getOccupant(participantJID); if (occ != null) { String actualJID = occ.getJid(); if (actualJID.equals(jid)) { int index = getIndex(nick); if (index != -1) { model.removeElementAt(index); }...
private void addParticipant(String participantJID, Presence presence) { String nickname = StringUtils.parseResource(participantJID); Occupant occupant = SparkManager.getUserManager().getOccupant(groupChatRoom, nickname); boolean isOwnerOrAdmin = SparkManager.getUserManager().isOwnerOrAdmin(occu...
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/d039de56513c7dd0e3c5c2762f184ca886fb4900/ConferenceRoomInfo.java/clean/src/java/org/jivesoftware/spark/ui/conferences/ConferenceRoomInfo.java
boolean isMe = groupJIDNickname.equals(nickname);
boolean isMe = nickname.equals(groupJIDNickname);
private void checkPopup(MouseEvent evt) { final int index = list.locationToIndex(evt.getPoint()); list.setSelectedIndex(index); final String selectedUser = getSelectedUser(); final String groupJID = (String)userMap.get(selectedUser); String groupJIDNickname = StringUtils.parseReso...
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/d039de56513c7dd0e3c5c2762f184ca886fb4900/ConferenceRoomInfo.java/clean/src/java/org/jivesoftware/spark/ui/conferences/ConferenceRoomInfo.java
if (groupJIDNickname == null) { Action inviteAgainAction = new AbstractAction() { public void actionPerformed(ActionEvent actionEvent) { String message = invitees.get(selectedUser); String jid = userManager.getJIDFromNickname(selectedUser); chat.invite(jid, message); } }; inviteAgainAction.putValue(Action.NAME, "Inv...
private void checkPopup(MouseEvent evt) { final int index = list.locationToIndex(evt.getPoint()); list.setSelectedIndex(index); final String selectedUser = getSelectedUser(); final String groupJID = (String)userMap.get(selectedUser); String groupJIDNickname = StringUtils.parseReso...
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/d039de56513c7dd0e3c5c2762f184ca886fb4900/ConferenceRoomInfo.java/clean/src/java/org/jivesoftware/spark/ui/conferences/ConferenceRoomInfo.java
public void actionPerformed(ActionEvent actionEvent) { banUser(selectedUser);
public void actionPerformed(ActionEvent e) { ImageIcon icon = (ImageIcon)list.getSelectedValue(); String description = icon.getDescription(); if (groupChatRoom.isBlocked(groupJID)) { groupChatRoom.removeBlockedUser(groupJID); icon = getImageIcon(groupJID); model.setElementAt(icon, index); } else { groupChatRoom.addBloc...
public void actionPerformed(ActionEvent actionEvent) { banUser(selectedUser); }
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/d039de56513c7dd0e3c5c2762f184ca886fb4900/ConferenceRoomInfo.java/clean/src/java/org/jivesoftware/spark/ui/conferences/ConferenceRoomInfo.java
if (!userIsModerator) { grantModerator(selectedUser); } else { revokeModerator(selectedUser); }
kickUser(selectedUser);
public void actionPerformed(ActionEvent actionEvent) { if (!userIsModerator) { grantModerator(selectedUser); } else { revokeModerator(selectedUser); } }
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/d039de56513c7dd0e3c5c2762f184ca886fb4900/ConferenceRoomInfo.java/clean/src/java/org/jivesoftware/spark/ui/conferences/ConferenceRoomInfo.java
String jid = ((JMenuItem)actionEvent.getSource()).getText(); unbanUser(jid);
if (userManager.hasVoice(groupChatRoom, selectedUser)) { revokeVoice(selectedUser); } else { grantVoice(selectedUser); }
public void actionPerformed(ActionEvent actionEvent) { String jid = ((JMenuItem)actionEvent.getSource()).getText(); unbanUser(jid); }
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/d039de56513c7dd0e3c5c2762f184ca886fb4900/ConferenceRoomInfo.java/clean/src/java/org/jivesoftware/spark/ui/conferences/ConferenceRoomInfo.java
ConferenceUtils.inviteUsersToRoom(groupChatRoom.getConferenceService(), groupChatRoom.getRoomname(), null);
banUser(selectedUser);
public void actionPerformed(ActionEvent actionEvent) { ConferenceUtils.inviteUsersToRoom(groupChatRoom.getConferenceService(), groupChatRoom.getRoomname(), null); }
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/d039de56513c7dd0e3c5c2762f184ca886fb4900/ConferenceRoomInfo.java/clean/src/java/org/jivesoftware/spark/ui/conferences/ConferenceRoomInfo.java
String selectedUser = getSelectedUser(); startChat(groupChatRoom, (String)userMap.get(selectedUser)); }
String message = invitees.get(selectedUser); String jid = userManager.getJIDFromNickname(selectedUser); chat.invite(jid, message); }
public void actionPerformed(ActionEvent actionEvent) { String selectedUser = getSelectedUser(); startChat(groupChatRoom, (String)userMap.get(selectedUser)); }
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/d039de56513c7dd0e3c5c2762f184ca886fb4900/ConferenceRoomInfo.java/clean/src/java/org/jivesoftware/spark/ui/conferences/ConferenceRoomInfo.java
public void actionPerformed(ActionEvent e) { ImageIcon icon = (ImageIcon)list.getSelectedValue(); String description = icon.getDescription(); if (groupChatRoom.isBlocked(groupJID)) { groupChatRoom.removeBlockedUser(groupJID); icon = getImageIcon(groupJID); model.setElementAt(icon, index);
public void actionPerformed(ActionEvent actionEvent) { int index = getIndex(selectedUser); if (index != -1) { model.removeElementAt(index); }
public void actionPerformed(ActionEvent e) { ImageIcon icon = (ImageIcon)list.getSelectedValue(); String description = icon.getDescription(); if (groupChatRoom.isBlocked(groupJID)) { groupChatRoom.removeBlockedUser(groupJID); ...
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/d039de56513c7dd0e3c5c2762f184ca886fb4900/ConferenceRoomInfo.java/clean/src/java/org/jivesoftware/spark/ui/conferences/ConferenceRoomInfo.java
else { groupChatRoom.addBlockedUser(groupJID); icon = SparkRes.getImageIcon(SparkRes.BRICKWALL_IMAGE); icon.setDescription(description); model.setElementAt(icon, index); } }
public void actionPerformed(ActionEvent e) { ImageIcon icon = (ImageIcon)list.getSelectedValue(); String description = icon.getDescription(); if (groupChatRoom.isBlocked(groupJID)) { groupChatRoom.removeBlockedUser(groupJID); ...
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/d039de56513c7dd0e3c5c2762f184ca886fb4900/ConferenceRoomInfo.java/clean/src/java/org/jivesoftware/spark/ui/conferences/ConferenceRoomInfo.java
kickUser(selectedUser); }
String newNickname = JOptionPane.showInputDialog(groupChatRoom, Res.getString("label.new.nickname") + ":", Res.getString("title.change.nickname"), JOptionPane.QUESTION_MESSAGE); if (ModelUtil.hasLength(newNickname)) { while (true) { newNickname = newNickname.trim(); try { chat.changeNickname(newNickname); break; } catc...
public void actionPerformed(ActionEvent actionEvent) { kickUser(selectedUser); }
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/d039de56513c7dd0e3c5c2762f184ca886fb4900/ConferenceRoomInfo.java/clean/src/java/org/jivesoftware/spark/ui/conferences/ConferenceRoomInfo.java
if (userManager.hasVoice(groupChatRoom, selectedUser)) { revokeVoice(selectedUser); } else { grantVoice(selectedUser); }
String selectedUser = getSelectedUser(); startChat(groupChatRoom, (String)userMap.get(selectedUser));
public void actionPerformed(ActionEvent actionEvent) { if (userManager.hasVoice(groupChatRoom, selectedUser)) { revokeVoice(selectedUser); } else { grantVoice(selectedUser); } }
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/d039de56513c7dd0e3c5c2762f184ca886fb4900/ConferenceRoomInfo.java/clean/src/java/org/jivesoftware/spark/ui/conferences/ConferenceRoomInfo.java
ServiceDiscoveryManager disco = ServiceDiscoveryManager.getInstanceFor(SparkManager.getConnection()); try { roomInformation = disco.discoverInfo(chat.getRoom()); } catch (XMPPException e) { Log.debug("Unable to retrieve room informatino for " + chat.getRoom()); }
public void setChatRoom(final ChatRoom chatRoom) { this.groupChatRoom = (GroupChatRoom)chatRoom; chatManager.addChatRoomListener(this); chat = groupChatRoom.getMultiUserChat(); listener = new PacketListener() { public void processPacket(final Packet packet) { Sw...
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/d039de56513c7dd0e3c5c2762f184ca886fb4900/ConferenceRoomInfo.java/clean/src/java/org/jivesoftware/spark/ui/conferences/ConferenceRoomInfo.java
userMap.remove(userid);
public void userHasLeft(ChatRoom room, String userid) { if (room != groupChatRoom) { return; } int index = getIndex(userid); if (index != -1) { model.removeElementAt(index); } }
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/d039de56513c7dd0e3c5c2762f184ca886fb4900/ConferenceRoomInfo.java/clean/src/java/org/jivesoftware/spark/ui/conferences/ConferenceRoomInfo.java
if ( RootException.class.isAssignableFrom( t.getClass() ) )
if ( RootException.class.isAssignableFrom( t.getClass() ) )
protected Throwable getAndLogException(Throwable t){ if (null == t) { log.error("Exception thrown. (null)"); return new InternalException("Exception thrown with null message"); } else { String msg = " Wrapped Exception: (" + t.getClass().g...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/6426050670456648cb4588aee083d5fefb30d71b/ServiceHandler.java/buggy/components/server/src/ome/services/util/ServiceHandler.java
InternalException re = new InternalException(msg); re.setStackTrace(t.getStackTrace()); return re;
else if ( IllegalArgumentException.class.isAssignableFrom( t.getClass() )) { ApiUsageException aue = new ApiUsageException( t.getMessage() ); aue.setStackTrace( t.getStackTrace() ); log.warn("IllegalArgumentException thrown:\n"+aue.getStackTrace()); return aue; } else { InternalException re = new InternalException(ms...
protected Throwable getAndLogException(Throwable t){ if (null == t) { log.error("Exception thrown. (null)"); return new InternalException("Exception thrown with null message"); } else { String msg = " Wrapped Exception: (" + t.getClass().g...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/6426050670456648cb4588aee083d5fefb30d71b/ServiceHandler.java/buggy/components/server/src/ome/services/util/ServiceHandler.java
wc.put ("PageName", wc.getForm ("edit"));
String pageName = wc.getForm("edit"); pageName = WikiUtil.formatAsWikiTitle(pageName); wc.put ("PageName", pageName);
public void perform(WikiSystem wiki, WebContext wc, WikiUser user, WikiPage page) throws PageAction.PageActionException { if (page != null && page.getIsModerated() && !user.getIsModerator()) throw new PageAction.PageActionException ("This page can only be edited by moderators"); wc....
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/63e182a593c47d9b882560d480b0bab109616dc8/EditPageAction.java/buggy/wiki/src/org/tcdi/opensource/wiki/servlet/EditPageAction.java
if (modes.isReadable()) {
if (modes.isReadable() && input != System.in) {
public void close() throws IOException, BadDescriptorException { if (!isOpen()) { throw new BadDescriptorException(); } isOpen = false; if (modes.isReadable()) { input.close(); } if (modes.isWriteable()) { output.close(); ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/24fc00ac9f647542a77f440ea686cea2d209f347/IOHandlerUnseekable.java/buggy/src/org/jruby/util/IOHandlerUnseekable.java
if (modes.isWriteable()) {
if (modes.isWriteable() && output != System.out && output != System.err) {
public void close() throws IOException, BadDescriptorException { if (!isOpen()) { throw new BadDescriptorException(); } isOpen = false; if (modes.isReadable()) { input.close(); } if (modes.isWriteable()) { output.close(); ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/24fc00ac9f647542a77f440ea686cea2d209f347/IOHandlerUnseekable.java/buggy/src/org/jruby/util/IOHandlerUnseekable.java
lStream = (RubyIO) ruby.getGlobalVariables().get("$stderr"); lStream.reopen(new RubyIO(ruby, out), null);
ruby.getGlobalVariables().set("$stderr", lStream);
protected String eval(String script) throws Exception { ByteArrayOutputStream result = new ByteArrayOutputStream(); out = new PrintStream(result); RubyIO lStream = new RubyIO(ruby, out); ruby.getGlobalVariables().set("$stdout", lStream); ruby.getGlobalVariables().set("$>", lStrea...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/8e861cae108c2a87229f94b4f781699719c6ced9/TestRubyBase.java/clean/test/org/jruby/test/TestRubyBase.java
protected String eval(String script) throws Exception { ByteArrayOutputStream result = new ByteArrayOutputStream(); out = new PrintStream(result); RubyIO lStream = new RubyIO(ruby, out); ruby.getGlobalVariables().set("$stdout", lStream); ruby.getGlobalVariables().set("$>", lStrea...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/8e861cae108c2a87229f94b4f781699719c6ced9/TestRubyBase.java/clean/test/org/jruby/test/TestRubyBase.java
objectClass.defineMethod("method_missing", CallbackFactory.getOptMethod(RubyObject.class, "method_missing", IRubyObject.class));
objectClass.defineMethod("method_missing", CallbackFactory.getOptMethod(RubyObject.class, "method_missing"));
public static void createObjectClass(RubyModule objectClass) { objectClass.defineMethod("==", CallbackFactory.getMethod(RubyObject.class, "equal", IRubyObject.class)); objectClass.defineMethod("=~", CallbackFactory.getFalseMethod(1)); objectClass.defineMethod("clone", CallbackFactory.getMethod(...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/cfb1b4132c30e5186c41e9dbf0b92acca72fcf81/RubyObject.java/buggy/org/jruby/RubyObject.java
public IRubyObject method_missing(IRubyObject symbol, IRubyObject[] args) { throw new NameError(getRuntime(), "Undefined local variable or method '" + symbol.toId() + "' for " + inspect().getValue());
public IRubyObject method_missing(IRubyObject[] args) { if (args.length == 0) { throw new ArgumentError(getRuntime(), "no id given"); } String name = args[0].toId(); String description = callMethod("inspect").toString(); boolean noClass = description.charAt(0) == '#'; if (isNil()) { noClass = true; description = "nil...
public IRubyObject method_missing(IRubyObject symbol, IRubyObject[] args) { throw new NameError(getRuntime(), "Undefined local variable or method '" + symbol.toId() + "' for " + inspect().getValue()); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/cfb1b4132c30e5186c41e9dbf0b92acca72fcf81/RubyObject.java/buggy/org/jruby/RubyObject.java
JAnnotation annotation = property.getAnnotation("org.xbean.Alias");
JAnnotation annotation = property.getAnnotation(PROPERTY_ANNOTATION);
protected void generatePropertiesFilePropertyAlias(PrintWriter out, String namespace, SchemaElement element, JProperty property) { JAnnotation annotation = property.getAnnotation("org.xbean.Alias"); if (annotation != null) { String text = getStringValue(annotation, "value"); if (...
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/b05052e52d5df78c860e248c9008c7e71be70d95/SchemaGenerator.java/clean/spring/src/java/org/xbean/spring/task/SchemaGenerator.java
String text = getStringValue(annotation, "value");
String text = getStringValue(annotation, "alias");
protected void generatePropertiesFilePropertyAlias(PrintWriter out, String namespace, SchemaElement element, JProperty property) { JAnnotation annotation = property.getAnnotation("org.xbean.Alias"); if (annotation != null) { String text = getStringValue(annotation, "value"); if (...
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/b05052e52d5df78c860e248c9008c7e71be70d95/SchemaGenerator.java/clean/spring/src/java/org/xbean/spring/task/SchemaGenerator.java
checkReadable(); checkBuffered(); ByteBuffer buffer = ByteBuffer.allocate(length); if (((ReadableByteChannel) channel).read(buffer) < 0) { throw new EOFException(); } byte[] ret; if (buffer.hasRemaining()) { buffer.flip(); ret = new byte[buffer.remaining()]; buffer.get(ret); } else { ret = buffer.array(); } return Rub...
return sysread(length);
public String recv(int length) throws EOFException, BadDescriptorException, IOException { checkReadable(); checkBuffered(); ByteBuffer buffer = ByteBuffer.allocate(length); if (((ReadableByteChannel) channel).read(buffer) < 0) { throw new EOFException(); } byte[...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/404fdac0a79f1b57c3fb97914fbafb91618ca119/IOHandlerNio.java/clean/src/org/jruby/util/IOHandlerNio.java
boolean eof = false; while (buffer.hasRemaining()) { int bytesRead = ((ReadableByteChannel) channel).read(buffer); if (bytesRead < 0) { eof = true; break;
int bytes_read = 0; do { bytes_read = ((ReadableByteChannel) channel).read(buffer); if (bytes_read < 0) { throw new EOFException();
public String sysread(int length) throws EOFException, BadDescriptorException, IOException { checkReadable(); checkBuffered(); ByteBuffer buffer = ByteBuffer.allocate(length); boolean eof = false; while (buffer.hasRemaining()) { int bytesRead = ((ReadableByteChannel) chan...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/404fdac0a79f1b57c3fb97914fbafb91618ca119/IOHandlerNio.java/clean/src/org/jruby/util/IOHandlerNio.java
if (bytesRead == 0) { break; } } if (buffer.position() == 0 && eof == true) { throw new EOFException(); }
} while (blocking && (bytes_read == 0));
public String sysread(int length) throws EOFException, BadDescriptorException, IOException { checkReadable(); checkBuffered(); ByteBuffer buffer = ByteBuffer.allocate(length); boolean eof = false; while (buffer.hasRemaining()) { int bytesRead = ((ReadableByteChannel) chan...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/404fdac0a79f1b57c3fb97914fbafb91618ca119/IOHandlerNio.java/clean/src/org/jruby/util/IOHandlerNio.java
Form (final HttpServletRequest r)
Form(final HttpServletRequest r)
Form (final HttpServletRequest r) { _request = r; }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/bc35d8a9d0ae8b2a47b1c1a5cfd579791e53fc98/Form.java/buggy/webmacro/src/org/webmacro/servlet/Form.java
final public Object get (String field)
final public Object get(String field)
final public Object get (String field) { try { return _request.getParameterValues(field)[0]; } catch (NullPointerException ne) { return null; } }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/bc35d8a9d0ae8b2a47b1c1a5cfd579791e53fc98/Form.java/buggy/webmacro/src/org/webmacro/servlet/Form.java
return _request.getParameterValues(field)[0];
return values[0];
final public Object get (String field) { try { return _request.getParameterValues(field)[0]; } catch (NullPointerException ne) { return null; } }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/bc35d8a9d0ae8b2a47b1c1a5cfd579791e53fc98/Form.java/buggy/webmacro/src/org/webmacro/servlet/Form.java
catch (ArrayIndexOutOfBoundsException e) { return null; }
final public Object get (String field) { try { return _request.getParameterValues(field)[0]; } catch (NullPointerException ne) { return null; } }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/bc35d8a9d0ae8b2a47b1c1a5cfd579791e53fc98/Form.java/buggy/webmacro/src/org/webmacro/servlet/Form.java
final public Object[] getList (String field)
final public Object[] getList(String field)
final public Object[] getList (String field) { try { return _request.getParameterValues(field); } catch (NullPointerException ne) { return null; } }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/bc35d8a9d0ae8b2a47b1c1a5cfd579791e53fc98/Form.java/buggy/webmacro/src/org/webmacro/servlet/Form.java
final public Object getPossibleForm (String strKey)
final public Object getPossibleForm(String strKey)
final public Object getPossibleForm (String strKey) { String strElement; Object obValue; Enumeration obEnumeration; //--- end of var's declaration ---// obValue = get(strKey); if (obValue == null) { obEnumeration = _request.getParameterNames(); ...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/bc35d8a9d0ae8b2a47b1c1a5cfd579791e53fc98/Form.java/buggy/webmacro/src/org/webmacro/servlet/Form.java
final public void put (String key, Object value)
final public void put(String key, Object value)
final public void put (String key, Object value) throws UnsettableException { throw new UnsettableException("Cannot set a form property"); }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/bc35d8a9d0ae8b2a47b1c1a5cfd579791e53fc98/Form.java/buggy/webmacro/src/org/webmacro/servlet/Form.java
}
}
void reverse(boolean b) { double yStart, yEnd; double xStaticStart, xStart; reverseIntensity = b; yEnd = endPt.getY(); yStart = startPt.getY(); setCursorOutputStart((int) yStart); setCursorOutputEnd((int) yEnd); manager.setOutputRectangles((int) yStart, (int) yEnd); xStaticStart = staticStartPt.getX(); xStar...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/de5f198f3677f9aa6bbdd6719a3abfc6406f1479/GraphicsRepresentation.java/clean/SRC/org/openmicroscopy/shoola/agents/rnd/pane/GraphicsRepresentation.java
range = lS2;
range = square/2;
void setControlsPoints(int t) { type = t; double xStaticEnd, xStaticStart, xEnd, xStart; xStaticEnd = 0; xStaticStart = 0; xEnd = 0; xStart = 0; if (type == QuantumFactory.EXPONENTIAL) { xControl = lS2; range = lS2; binMin = (int) ((square-40)/(2*rangeMinExpo)); binMax = (int) ((square-40)/(2*rangeMaxE...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/de5f198f3677f9aa6bbdd6719a3abfc6406f1479/GraphicsRepresentation.java/clean/SRC/org/openmicroscopy/shoola/agents/rnd/pane/GraphicsRepresentation.java
range = lS;
range = square;
void setControlsPoints(int t) { type = t; double xStaticEnd, xStaticStart, xEnd, xStart; xStaticEnd = 0; xStaticStart = 0; xEnd = 0; xStart = 0; if (type == QuantumFactory.EXPONENTIAL) { xControl = lS2; range = lS2; binMin = (int) ((square-40)/(2*rangeMinExpo)); binMax = (int) ((square-40)/(2*rangeMaxE...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/de5f198f3677f9aa6bbdd6719a3abfc6406f1479/GraphicsRepresentation.java/clean/SRC/org/openmicroscopy/shoola/agents/rnd/pane/GraphicsRepresentation.java
if (b) super.repaint();
if (b) repaint(0, tS+bottomBorder, width, bottomBorderSupp);
void updateInputEnd(int x, int xReal) { curEnd = "end: "+xReal; /* limit control b/c the method can be called via the histogram Dialog widget */ boolean b = true; /* control to synchronize the display of real value using the Histogram widget the user can still size the inputWindow but for graphics reason...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/de5f198f3677f9aa6bbdd6719a3abfc6406f1479/GraphicsRepresentation.java/clean/SRC/org/openmicroscopy/shoola/agents/rnd/pane/GraphicsRepresentation.java
if (b) super.repaint();
if (b) repaint(0, tS+bottomBorder, width, bottomBorderSupp);
void updateInputStart(int x, int xReal) { curStart = "start: "+xReal; /* limit control b/c the method can be called via the histogram Dialog widget */ boolean b = true; /* control to synchronize the display of real value using the Histogram widget the user can still size the inputWindow but for graphics ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/de5f198f3677f9aa6bbdd6719a3abfc6406f1479/GraphicsRepresentation.java/clean/SRC/org/openmicroscopy/shoola/agents/rnd/pane/GraphicsRepresentation.java
runtime.getGlobalVariables().set("$!", runtime.getNil());
if (!anotherExceptionRaised) runtime.getGlobalVariables().set("$!", globalExceptionState);
private static IRubyObject evalInternal(ThreadContext context, Node node, IRubyObject self) { IRuby runtime = context.getRuntime(); bigloop: do { if (node == null) return runtime.getNil(); switch (node.nodeId) { case NodeTypes.ALIASNODE: { AliasN...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/c020e7590a91dff92205546b4efb598482585345/EvaluationState.java/buggy/src/org/jruby/evaluator/EvaluationState.java
ConferenceUtils.autoJoinConferenceRoom(conferenceJID, conferenceJID, null);
Iterator iter = bookmarks.iterator(); while (iter.hasNext()) { Bookmark bookmark = (Bookmark)iter.next(); if (bookmark.getRoomJID().equals(conferenceJID)) { ConferenceUtils.autoJoinConferenceRoom(bookmark.getRoomName(), conferenceJID, null); } }
private void joinTaggedRooms(Collection autoJoins) { Iterator joins = autoJoins.iterator(); while (joins.hasNext()) { Element autoJoin = (Element)joins.next(); String conferenceJID = autoJoin.getText(); autoJoinRooms.add(conferenceJID); ConferenceUtils.autoJ...
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/028cde13fc23ea5cbdaa0191963cf1624ef656d0/BookmarkedConferences.java/buggy/src/java/org/jivesoftware/spark/ui/conferences/BookmarkedConferences.java
private void setComponentsEnabled(boolean b)
void setComponentsEnabled(boolean b)
private void setComponentsEnabled(boolean b) { saveButton.setEnabled(b); deleteBox.setEnabled(b); annotationArea.setEditable(b); if (b) { annotationArea.requestFocus(); annotationArea.selectAll(); } }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/fa3d7c2352dfbc9f73f26510e5aed556f4c86872/AnnotationPaneUI.java/clean/SRC/org/openmicroscopy/shoola/agents/hiviewer/clipboard/annotator/AnnotationPaneUI.java
deleteBox.setSelected(false);
void showAnnotations() { ExperimenterData userDetails = model.getUserDetails(); if (userDetails == null) return; Map annotations = model.getAnnotations(); String[] owners = new String[annotations.size()]; Iterator i = annotations.keySet().iterator(); Long id; int ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/fa3d7c2352dfbc9f73f26510e5aed556f4c86872/AnnotationPaneUI.java/clean/SRC/org/openmicroscopy/shoola/agents/hiviewer/clipboard/annotator/AnnotationPaneUI.java
kernelModule.defineMethod("puts", new ReflectionCallbackMethod(RBKernel.class, "m_puts", RubyObject[].class, true, true)); kernelModule.defineMethod("print", new ReflectionCallbackMethod(RBKernel.class, "m_print", RubyObject[].class, true, true)); kernelModule.defineMethod("to_s", getMethodToS());
kernelModule.defineMethod("puts", getKernelMethod("m_puts")); kernelModule.defineMethod("print", getKernelMethod("m_print")); kernelModule.defineMethod("to_s", getObjectMethod("m_to_s")); kernelModule.defineModuleFunction("singleton_method_added", getDummyMethod());
public static RubyModule createKernelModule(Ruby ruby) { RubyModule kernelModule = ruby.defineModule("Kernel"); kernelModule.defineMethod("puts", new ReflectionCallbackMethod(RBKernel.class, "m_puts", RubyObject[].class, true, true)); kernelModule.defineMethod("print", new ReflectionCal...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/12847c6fd28fea4e223d132ced46eb1b4cb9de9a/RBKernel.java/buggy/org/jruby/core/RBKernel.java
public RubyObject execute(RubyObject recv, RubyObject args[], Ruby ruby) { return recv.m_to_s(); }
public RubyObject execute(RubyObject recv, RubyObject[] args, Ruby ruby) { return ruby.getNil(); }
public RubyObject execute(RubyObject recv, RubyObject args[], Ruby ruby) { return recv.m_to_s(); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/12847c6fd28fea4e223d132ced46eb1b4cb9de9a/RBKernel.java/buggy/org/jruby/core/RBKernel.java
} for (int i = 0; i < args.length; i++) { if (args[i] != null) { System.out.println(((RubyString)args[i].funcall(ruby.intern("to_s"))).getString());
} else { for (int i = 0; i < args.length; i++) { if (args[i] != null) { System.out.println(((RubyString)args[i].funcall(ruby.intern("to_s"))).getString()); }
public static RubyObject m_puts(Ruby ruby, RubyObject args[]) { if (args.length == 0) { System.out.println(); } for (int i = 0; i < args.length; i++) { if (args[i] != null) { System.out.println(((RubyString)args[i].funcall(ruby.intern("to_s"))).getString());...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/12847c6fd28fea4e223d132ced46eb1b4cb9de9a/RBKernel.java/buggy/org/jruby/core/RBKernel.java
}
}
public Set findCGCIHierarchies(final Set arg0) { // CONTRACT if (null == arg0 || arg0.size() == 0) { return new HashSet(); } List result = containerDao.findCGCIHierarchies(arg0); Set imagesAll = new HashSet(result); if (null == imagesAll || imagesAll.size() == 0)...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0dcf955580c9394058b7f3452a6050bc8c49e5a0/HierarchyBrowsingImpl.java/clean/components/server/src/org/openmicroscopy/omero/logic/HierarchyBrowsingImpl.java
pw = new PrintWriter(new FileWriter(new File(destinationDir, "coverage.xml")));
File file = new File(destinationDir, "coverage.xml"); pw = new PrintWriter(new PrintStream(new FileOutputStream(file), false, "UTF-8"));
public XMLReport(ProjectData projectData, File destinationDir, FileFinder finder, ComplexityCalculator complexity) throws IOException { this.complexity = complexity; this.finder = finder; pw = new PrintWriter(new FileWriter(new File(destinationDir, "coverage.xml"))); try { println("<?xml version=\"1.0\"?>"...
50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/84e7aec08b6ae2534d7a85ebb3c07a0ec1dec0c8/XMLReport.java/clean/cobertura/src/net/sourceforge/cobertura/reporting/xml/XMLReport.java
public IRubyObject at(IRubyObject obj) { return entry(RubyNumeric.numericValue(obj).getLongValue());
public IRubyObject at(RubyNumeric pos) { return entry(pos.getLongValue());
public IRubyObject at(IRubyObject obj) { return entry(RubyNumeric.numericValue(obj).getLongValue()); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1c602493a83e2050f401fa6925ec7e9269b45e4e/RubyArray.java/clean/src/org/jruby/RubyArray.java
arrayClass.defineMethod("at", callbackFactory.getMethod(RubyArray.class, "at", IRubyObject.class));
arrayClass.defineMethod("at", callbackFactory.getMethod(RubyArray.class, "at", RubyNumeric.class));
public static RubyClass createArrayClass(Ruby ruby) { RubyClass arrayClass = ruby.defineClass("Array", ruby.getClasses().getObjectClass()); arrayClass.includeModule(ruby.getModule("Enumerable")); CallbackFactory callbackFactory = ruby.callbackFactory(); arrayClass.defineSingletonMethod("...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1c602493a83e2050f401fa6925ec7e9269b45e4e/RubyArray.java/clean/src/org/jruby/RubyArray.java
TI() { s1.add(r4); s1.add(r4_); r5.setRoi4ds(s1); s2.add(r3); s3.add(r3); r4.setRoi3ds(s2); r4_.setRoi3ds(s3); }
public TI(){ Roi5D h5 = new Roi5D(); Roi4D h4 = new Roi4D(); Roi4D h4_ = new Roi4D(); Roi3D h3 = new Roi3D(); Roi3D h3_ = new Roi3D(); Event ev = new Event(); s1.add(h4); s1.add(h4_); h5.setRoi4ds(s1); h5.setCreationEvent(ev); s2.add(h3); s3.add(r3); h4.setRoi3ds(s2); h4_.setRoi3ds(s3); r5 = (Roi5DRemote) new Model2Ice...
TI() { s1.add(r4); s1.add(r4_); r5.setRoi4ds(s1); s2.add(r3); s3.add(r3); r4.setRoi3ds(s2); r4_.setRoi3ds(s3); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/d075eea85d4fb93ed40f6b4f476d90a0bccaf12a/TI.java/clean/components/common/test/mono/TI.java
ccManager = new ColorChooserManager(this, hsbManager, rgba, v, index);
ccManager = new ColorChooserManager(this, hsbManager, rgba, index);
public ColorChooser(HSBPaneManager hsbManager, int[] rgba, int index) { super(hsbManager.getReferenceFrame(), "ColorChooser", true); int v = (int) (rgba[ALPHA]*100/255); Color c = new Color(rgba[RED], rgba[GREEN], rgba[BLUE], rgba[ALPHA]); ccManager = new ColorChooserManager(this, hsbManager, rgba, v, index); cp ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/5bb26faa9c073c259106cdbdd8e0f710624321f0/ColorChooser.java/clean/SRC/org/openmicroscopy/shoola/agents/rnd/model/ColorChooser.java
label.setBounds(2*BORDER+ColorPalette.WIDTH_PANEL+HSPACE, 15, 45, 10);
label.setBounds(2*BORDER+ColorPalette.WIDTH_PANEL+HSPACE, 15, 55, 10);
private JLabel buildLabel() { JLabel label = new JLabel("Preview"); label.setBounds(2*BORDER+ColorPalette.WIDTH_PANEL+HSPACE, 15, 45, 10); return label; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/5bb26faa9c073c259106cdbdd8e0f710624321f0/ColorChooser.java/clean/SRC/org/openmicroscopy/shoola/agents/rnd/model/ColorChooser.java
ColorChooserManager(ColorChooser view, int[] rgba, int alpha)
ColorChooserManager(ColorChooser view, HSBPaneManager hsbManager, int[] rgba, int alpha)
ColorChooserManager(ColorChooser view, int[] rgba, int alpha) { this.view = view; this.alpha = alpha; this.rgba = rgba; buildColor(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0c2418384f5c30e274953927e006a71647a24f1b/ColorChooserManager.java/buggy/SRC/org/openmicroscopy/shoola/agents/rnd/model/ColorChooserManager.java
this.hsbManager = hsbManager;
ColorChooserManager(ColorChooser view, int[] rgba, int alpha) { this.view = view; this.alpha = alpha; this.rgba = rgba; buildColor(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0c2418384f5c30e274953927e006a71647a24f1b/ColorChooserManager.java/buggy/SRC/org/openmicroscopy/shoola/agents/rnd/model/ColorChooserManager.java
return newRegexp(str.getRuntime(), str.getValue(), options, lang);
return newRegexp(str.getRuntime(), str.toString(), options, lang);
public static RubyRegexp newRegexp(RubyString str, int options, String lang) { return newRegexp(str.getRuntime(), str.getValue(), options, lang); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9f2efc63a858fa0507245b207025eab027840a04/RubyRegexp.java/clean/src/org/jruby/RubyRegexp.java
String repl = RubyString.stringValue(str).getValue();
String repl = RubyString.stringValue(str).toString();
public IRubyObject regsub(IRubyObject str, RubyMatchData match) { String repl = RubyString.stringValue(str).getValue(); StringBuffer sb = new StringBuffer(""); int pos = 0; int end = repl.length(); char c; IRubyObject ins; while (pos < end) { c = repl.char...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9f2efc63a858fa0507245b207025eab027840a04/RubyRegexp.java/clean/src/org/jruby/RubyRegexp.java
String str = RubyString.stringValue(target).getValue();
String str = RubyString.stringValue(target).toString();
public int search(IRubyObject target, int pos) { String str = RubyString.stringValue(target).getValue(); if (pos > str.length()) { return -1; } recompileIfNeeded(); // If nothing match then nil will be returned IRubyObject result = match(str, pos); getRunt...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9f2efc63a858fa0507245b207025eab027840a04/RubyRegexp.java/clean/src/org/jruby/RubyRegexp.java
return new RubyString(getRuntime(), toString());
return getRuntime().newString(toString());
public RubyString to_s() { return new RubyString(getRuntime(), toString()); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9f2efc63a858fa0507245b207025eab027840a04/RubyRegexp.java/clean/src/org/jruby/RubyRegexp.java
cl.show(mainPanel, tab.getActualText());
Component comp = getComponentInTab(tab); cl.show(mainPanel, Integer.toString(comp.hashCode()));
public void setSelectedTab(SparkTab tab) { CardLayout cl = (CardLayout)mainPanel.getLayout(); cl.show(mainPanel, tab.getActualText()); tab.setBoldWhenActive(isActiveButtonBold()); deselectAllTabsExcept(tab); tab.setSelected(true); fireTabSelected(tab, getSelectedComponent()...
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/47bff7fdd91c90a93378d233575b70142cdc05d5/SparkTabbedPane.java/buggy/src/java/org/jivesoftware/spark/component/tabbedPane/SparkTabbedPane.java