rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
return this.ruby; } | return this.ruby; } | public Ruby getRuby() { return this.ruby; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyObject.java/buggy/org/jruby/RubyObject.java |
return this.rubyClass; } | return this.rubyClass; } | public RubyModule getRubyClass() { return this.rubyClass; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyObject.java/buggy/org/jruby/RubyObject.java |
if (isSpecialConst()) { if (isNil() || isTrue() || isFalse()) { return getSpecialSingleton(); } throw new RubyBugException("unknown immediate " + toString()); } RubyClass rbClass = null; if (getRubyClass().isSingleton()) { rbClass = (RubyClass) getRubyClass(); } else { rbClass = ((RubyClass) getRubyClass()).newS... | if (isSpecialConst()) { if (isNil() || isTrue() || isFalse()) { return getSpecialSingleton(); } throw new RubyBugException("unknown immediate " + toString()); } RubyClass rbClass = null; if (getRubyClass().isSingleton()) { rbClass = (RubyClass) getRubyClass(); } else { rbClass = ((RubyClass) getRubyClass()).newS... | public RubyClass getSingletonClass() { // if (getType() == Type.FIXNUM || isSymbol()) { // throw new RubyTypeException("can't define singleton"); // } if (isSpecialConst()) { if (isNil() || isTrue() || isFalse()) { return getSpecialSingleton(); } throw new RubyBugException("unknow... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyObject.java/buggy/org/jruby/RubyObject.java |
RubyClass rubyClass = (RubyClass) getRubyClass(); if (!rubyClass.isSingleton()) { rubyClass = rubyClass.newSingletonClass(); rubyClass.attachSingletonClass(this); } return rubyClass; } | RubyClass rubyClass = (RubyClass) getRubyClass(); if (!rubyClass.isSingleton()) { rubyClass = rubyClass.newSingletonClass(); rubyClass.attachSingletonClass(this); } return rubyClass; } | private RubyClass getSpecialSingleton() { RubyClass rubyClass = (RubyClass) getRubyClass(); if (!rubyClass.isSingleton()) { rubyClass = rubyClass.newSingletonClass(); rubyClass.attachSingletonClass(this); } return rubyClass; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyObject.java/buggy/org/jruby/RubyObject.java |
if (obj.isTaint()) { setTaint(true); } } | if (obj.isTaint()) { setTaint(true); } } | protected void infectObject(RubyObject obj) { if (obj.isTaint()) { setTaint(true); } } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyObject.java/buggy/org/jruby/RubyObject.java |
return false; } | return false; } | public boolean isFalse() { return false; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyObject.java/buggy/org/jruby/RubyObject.java |
return this.frozen; } | return this.frozen; } | public boolean isFrozen() { return this.frozen; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyObject.java/buggy/org/jruby/RubyObject.java |
return this.immediate; } | return this.immediate; } | public boolean isImmediate() { return this.immediate; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyObject.java/buggy/org/jruby/RubyObject.java |
if (getInstanceVariables() != null) { if (getInstanceVariables().get(id) != null) { return true; } } return false; } | if (getInstanceVariables() != null) { if (getInstanceVariables().get(id) != null) { return true; } } return false; } | public boolean isInstanceVarDefined(RubyId id) { if (getInstanceVariables() != null) { if (getInstanceVariables().get(id) != null) { return true; } } return false; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyObject.java/buggy/org/jruby/RubyObject.java |
return false; } | return false; } | public boolean isNil() { return false; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyObject.java/buggy/org/jruby/RubyObject.java |
return (isImmediate() || isNil()); } | return (isImmediate() || isNil()); } | public boolean isSpecialConst() { return (isImmediate() || isNil()); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyObject.java/buggy/org/jruby/RubyObject.java |
return this.taint; } | return this.taint; } | public boolean isTaint() { return this.taint; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyObject.java/buggy/org/jruby/RubyObject.java |
return true; } | return true; } | public boolean isTrue() { return true; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyObject.java/buggy/org/jruby/RubyObject.java |
RubyObject clone = new RubyObject(getRuby(), (RubyClass) getRubyClass()); clone.setupClone(this); clone.setInstanceVariables(getInstanceVariables().cloneRubyMap()); return clone; } | RubyObject clone = new RubyObject(getRuby(), (RubyClass) getRubyClass()); clone.setupClone(this); clone.setInstanceVariables(getInstanceVariables().cloneRubyMap()); return clone; } | public RubyObject m_clone() { RubyObject clone = new RubyObject(getRuby(), (RubyClass) getRubyClass()); clone.setupClone(this); clone.setInstanceVariables(getInstanceVariables().cloneRubyMap()); return clone; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyObject.java/buggy/org/jruby/RubyObject.java |
RubyObject dup = funcall(getRuby().intern("clone")); if (!dup.getClass().equals(getClass())) { throw new RubyTypeException(getRuby(), "duplicated object must be same type"); } if (!dup.isSpecialConst()) { dup.setupObject(m_type()); dup.infectObject(this); } return dup; } | RubyObject dup = funcall(getRuby().intern("clone")); if (!dup.getClass().equals(getClass())) { throw new RubyTypeException(getRuby(), "duplicated object must be same type"); } if (!dup.isSpecialConst()) { dup.setupObject(m_type()); dup.infectObject(this); } return dup; } | public RubyObject m_dup() { RubyObject dup = funcall(getRuby().intern("clone")); if (!dup.getClass().equals(getClass())) { throw new RubyTypeException(getRuby(), "duplicated object must be same type"); } if (!dup.isSpecialConst()) { dup.setupObject(m_type()); dup.infectObject(this); } return dup; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyObject.java/buggy/org/jruby/RubyObject.java |
if (this == obj) { return getRuby().getTrue(); } else { return (RubyBoolean) funcall(getRuby().intern("=="), obj); } } | if (this == obj) { return getRuby().getTrue(); } else { return (RubyBoolean) funcall(getRuby().intern("=="), obj); } } | public RubyBoolean m_equal(RubyObject obj) { if (this == obj) { return getRuby().getTrue(); } else { return (RubyBoolean) funcall(getRuby().intern("=="), obj); } } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyObject.java/buggy/org/jruby/RubyObject.java |
if (getRuby().getSecurityLevel() >= 4 && isTaint()) { throw new RubySecurityException(getRuby(), "Insecure: can't freeze object"); } return this; } | if (getRuby().getSecurityLevel() >= 4 && isTaint()) { throw new RubySecurityException(getRuby(), "Insecure: can't freeze object"); } return this; } | public RubyObject m_freeze() { if (getRuby().getSecurityLevel() >= 4 && isTaint()) { throw new RubySecurityException(getRuby(), "Insecure: can't freeze object"); } // ?????????????? return this; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyObject.java/buggy/org/jruby/RubyObject.java |
if (isFrozen()) { return getRuby().getTrue(); } else { return getRuby().getFalse(); } } | if (isFrozen()) { return getRuby().getTrue(); } else { return getRuby().getFalse(); } } | public RubyBoolean m_frozen() { if (isFrozen()) { return getRuby().getTrue(); } else { return getRuby().getFalse(); } } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyObject.java/buggy/org/jruby/RubyObject.java |
return null; } | return null; } | public RubyObject m_id() { //obj.hashCode(); return null; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyObject.java/buggy/org/jruby/RubyObject.java |
return (RubyString) funcall(getRuby().intern("to_s")); } | return (RubyString) funcall(getRuby().intern("to_s")); } | public RubyString m_inspect() { // if (TYPE(obj) == T_OBJECT // && ROBJECT(obj)->iv_tbl // && ROBJECT(obj)->iv_tbl->num_entries > 0) { // VALUE str; // char *c; // // c = rb_class2name(CLASS_OF(obj)); // if (rb_inspecting_p(obj)) { // str = rb_str_new(0, strlen(c)+10+16+1); /* 10:tags 16:addr 1... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyObject.java/buggy/org/jruby/RubyObject.java |
return RubyBoolean.m_newBoolean(getRuby(), m_type() == rbModule); } | return RubyBoolean.m_newBoolean(getRuby(), m_type() == rbModule); } | public RubyBoolean m_instance_of(RubyModule rbModule) { return RubyBoolean.m_newBoolean(getRuby(), m_type() == rbModule); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyObject.java/buggy/org/jruby/RubyObject.java |
RubyModule rbClass = getRubyClass(); while (rbClass != null) { if (rbClass == rbModule || rbClass.getMethods() == rbModule.getMethods()) { return getRuby().getTrue(); } rbClass = rbClass.getSuperClass(); } return getRuby().getFalse(); } | RubyModule rbClass = getRubyClass(); while (rbClass != null) { if (rbClass == rbModule || rbClass.getMethods() == rbModule.getMethods()) { return getRuby().getTrue(); } rbClass = rbClass.getSuperClass(); } return getRuby().getFalse(); } | public RubyBoolean m_kind_of(RubyModule rbModule) { RubyModule rbClass = getRubyClass(); while (rbClass != null) { if (rbClass == rbModule || rbClass.getMethods() == rbModule.getMethods()) { return getRuby().getTrue(); } rbClass = rbClass.getSuperClass(); } return getRuby().getFalse(); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyObject.java/buggy/org/jruby/RubyObject.java |
return getRubyClass().newMethod( this, symbol.toId(), getRuby().getClasses().getMethodClass()); } | return getRubyClass().newMethod( this, symbol.toId(), getRuby().getClasses().getMethodClass()); } | public RubyObject m_method(RubyObject symbol) { return getRubyClass().newMethod( this, symbol.toId(), getRuby().getClasses().getMethodClass()); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyObject.java/buggy/org/jruby/RubyObject.java |
return null; } | return null; } | public RubyArray m_methods() { // return getRubyClass().m_instance_methods(getRuby().getTrue()); return null; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyObject.java/buggy/org/jruby/RubyObject.java |
return null; } | return null; } | public RubyArray m_private_methods() { // return getRubyClass().m_private_instance_methods(getRuby().getTrue()); return null; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyObject.java/buggy/org/jruby/RubyObject.java |
return null; } | return null; } | public RubyArray m_protected_methods() { // return getRubyClass().m_protected_instance_methods(getRuby().getTrue()); return null; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyObject.java/buggy/org/jruby/RubyObject.java |
RubyArray ary = RubyArray.m_newArray(getRuby()); RubyModule rbClass = getRubyClass(); while (rbClass != null && rbClass.isSingleton()) { rbClass.getMethods().foreach(new RubyMapMethod() { public int execute(Object key, Object value, Object arg) { return CONTINUE; } }, ary); rbClass = rbClass.getSuperClass(); } ary.m_c... | RubyArray ary = RubyArray.m_newArray(getRuby()); RubyModule rbClass = getRubyClass(); while (rbClass != null && rbClass.isSingleton()) { rbClass.getMethods().foreach(new RubyMapMethod() { public int execute(Object key, Object value, Object arg) { return CONTINUE; } }, ary); rbClass = rbClass.getSuperClass(); } ary.m_c... | public RubyArray m_singleton_methods() { RubyArray ary = RubyArray.m_newArray(getRuby()); RubyModule rbClass = getRubyClass(); while (rbClass != null && rbClass.isSingleton()) { rbClass.getMethods().foreach(new RubyMapMethod() { public int execute(Object key, Object value, Object arg) { return CONTINUE; ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyObject.java/buggy/org/jruby/RubyObject.java |
return CONTINUE; } | return CONTINUE; } | public int execute(Object key, Object value, Object arg) { return CONTINUE; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyObject.java/buggy/org/jruby/RubyObject.java |
getRuby().secure(4); if (!isTaint()) { if (isFrozen()) { throw new RubyFrozenException(getRuby(), "object"); } setTaint(true); } return this; } | getRuby().secure(4); if (!isTaint()) { if (isFrozen()) { throw new RubyFrozenException(getRuby(), "object"); } setTaint(true); } return this; } | public RubyObject m_taint() { getRuby().secure(4); if (!isTaint()) { if (isFrozen()) { throw new RubyFrozenException(getRuby(), "object"); } setTaint(true); } return this; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyObject.java/buggy/org/jruby/RubyObject.java |
if (isTaint()) { return getRuby().getTrue(); } else { return getRuby().getFalse(); } } | if (isTaint()) { return getRuby().getTrue(); } else { return getRuby().getFalse(); } } | public RubyBoolean m_tainted() { if (isTaint()) { return getRuby().getTrue(); } else { return getRuby().getFalse(); } } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyObject.java/buggy/org/jruby/RubyObject.java |
String cname = getRubyClass().toName(); RubyString str = RubyString.m_newString(getRuby(), ""); /* 6:tags 16:addr 1:eos */ str.setValue("#<" + cname + ":0x" + Integer.toHexString(hashCode()) + ">"); if (isTaint()) { str.setTaint(true); } return str; } | String cname = getRubyClass().toName(); RubyString str = RubyString.m_newString(getRuby(), ""); /* 6:tags 16:addr 1:eos */ str.setValue("#<" + cname + ":0x" + Integer.toHexString(hashCode()) + ">"); if (isTaint()) { str.setTaint(true); } return str; } | public RubyString m_to_s() { String cname = getRubyClass().toName(); RubyString str = RubyString.m_newString(getRuby(), ""); /* 6:tags 16:addr 1:eos */ str.setValue("#<" + cname + ":0x" + Integer.toHexString(hashCode()) + ">"); if (isTaint()) { str.setTaint(true); } return str; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyObject.java/buggy/org/jruby/RubyObject.java |
RubyModule rbClass = getRubyClass(); while (rbClass.isSingleton() || rbClass.isIncluded()) { rbClass = rbClass.getSuperClass(); } return rbClass; } | RubyModule rbClass = getRubyClass(); while (rbClass.isSingleton() || rbClass.isIncluded()) { rbClass = rbClass.getSuperClass(); } return rbClass; } | public RubyModule m_type() { RubyModule rbClass = getRubyClass(); while (rbClass.isSingleton() || rbClass.isIncluded()) { rbClass = rbClass.getSuperClass(); } return rbClass; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyObject.java/buggy/org/jruby/RubyObject.java |
getRuby().secure(3); if (isTaint()) { if (isFrozen()) { throw new RubyFrozenException(getRuby(), "object"); } setTaint(false); } return this; } | getRuby().secure(3); if (isTaint()) { if (isFrozen()) { throw new RubyFrozenException(getRuby(), "object"); } setTaint(false); } return this; } | public RubyObject m_untaint() { getRuby().secure(3); if (isTaint()) { if (isFrozen()) { throw new RubyFrozenException(getRuby(), "object"); } setTaint(false); } return this; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyObject.java/buggy/org/jruby/RubyObject.java |
this.frozen = frozen; } | this.frozen = frozen; } | public void setFrozen(boolean frozen) { this.frozen = frozen; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyObject.java/buggy/org/jruby/RubyObject.java |
this.immediate = immediate; } | this.immediate = immediate; } | public void setImmediate(boolean immediate) { this.immediate = immediate; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyObject.java/buggy/org/jruby/RubyObject.java |
setInstanceVar(getRuby().intern(name), value); } | setInstanceVar(getRuby().intern(name), value); } | public void setInstanceVar(String name, RubyObject value) { setInstanceVar(getRuby().intern(name), value); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyObject.java/buggy/org/jruby/RubyObject.java |
this.instanceVariables = instanceVariables; } | this.instanceVariables = instanceVariables; } | public void setInstanceVariables(RubyMap instanceVariables) { this.instanceVariables = instanceVariables; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyObject.java/buggy/org/jruby/RubyObject.java |
this.rubyClass = rubyClass; } | this.rubyClass = rubyClass; } | public void setRubyClass(RubyModule rubyClass) { this.rubyClass = rubyClass; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyObject.java/buggy/org/jruby/RubyObject.java |
this.taint = taint; } | this.taint = taint; } | public void setTaint(boolean taint) { this.taint = taint; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyObject.java/buggy/org/jruby/RubyObject.java |
setupObject(obj.getRubyClass().getSingletonClassClone()); getRubyClass().attachSingletonClass(this); } | setupObject(obj.getRubyClass().getSingletonClassClone()); getRubyClass().attachSingletonClass(this); } | protected void setupClone(RubyObject obj) { setupObject(obj.getRubyClass().getSingletonClassClone()); getRubyClass().attachSingletonClass(this); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyObject.java/buggy/org/jruby/RubyObject.java |
setRubyClass(rubyClass); } | setRubyClass(rubyClass); } | protected void setupObject(RubyModule rubyClass) { setRubyClass(rubyClass); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyObject.java/buggy/org/jruby/RubyObject.java |
throw new RubyTypeException( getRuby(), m_inspect().getValue() + " is not a symbol"); } | throw new RubyTypeException( getRuby(), m_inspect().getValue() + " is not a symbol"); } | public RubyId toId() { throw new RubyTypeException( getRuby(), m_inspect().getValue() + " is not a symbol"); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyObject.java/buggy/org/jruby/RubyObject.java |
onSelectedDisplay(); | onSelectedDisplay(); if (saverDialog != null) { saverDialog.close(); saverDialog = null; } | public void onDataObjectSave(DataObject data, int operation) { int state = model.getState(); if (operation == REMOVE_OBJECT && state != SAVE) throw new IllegalStateException("This method can only be " + "invoked in the SAVE state"); switch (state) { c... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9794ffbd035a4de717ee211573b4844dd0eb3371/TreeViewerComponent.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/view/TreeViewerComponent.java |
*/ | public void removeEditor() { switch (model.getState()) { case DISCARDED: //case SAVE: throw new IllegalStateException("This method cannot be " + "invoked in the DISCARDED, SAVE state."); } Editor editor = model.getEditor(); ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9794ffbd035a4de717ee211573b4844dd0eb3371/TreeViewerComponent.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/view/TreeViewerComponent.java | |
onSelectedDisplay(); | public void saveInEditor(boolean b) { if (model.getState() == DISCARDED) throw new IllegalStateException( "This method cannot be invoked in the DISCARDED state."); if (b) { model.getEditor().saveData(); model.setEditor(null); onSelectedDisplay(... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9794ffbd035a4de717ee211573b4844dd0eb3371/TreeViewerComponent.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/view/TreeViewerComponent.java | |
if (saverDialog != null) { saverDialog.close(); saverDialog = null; } | public void saveInEditor(boolean b) { if (model.getState() == DISCARDED) throw new IllegalStateException( "This method cannot be invoked in the DISCARDED state."); if (b) { model.getEditor().saveData(); model.setEditor(null); onSelectedDisplay(... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9794ffbd035a4de717ee211573b4844dd0eb3371/TreeViewerComponent.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/view/TreeViewerComponent.java | |
System.out.println("state: "+model.getState()); | public void setHierarchyRoot(int rootLevel, long rootID) { int oldLevel = model.getRootLevel(); model.setHierarchyRoot(rootLevel, rootID); System.out.println("state: "+model.getState()); if (model.getState() == READY) firePropertyChange(HIERARCHY_ROOT_PROPERTY, new Integer(... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9794ffbd035a4de717ee211573b4844dd0eb3371/TreeViewerComponent.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/view/TreeViewerComponent.java | |
editorDialog.setSize(600, 350); | public void showProperties(DataObject object, int editorType) { switch (model.getState()) { case DISCARDED: case SAVE: throw new IllegalStateException( "This method cannot be invoked in the DISCARDED or SAVE " + "state."); }... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9794ffbd035a4de717ee211573b4844dd0eb3371/TreeViewerComponent.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/view/TreeViewerComponent.java | |
DataHandler annotateDataObjects(TreeImageDisplay[] nodes) | DataHandler annotateDataObjects(JFrame owner, TreeImageDisplay[] nodes) | DataHandler annotateDataObjects(TreeImageDisplay[] nodes) { Object uo; Set toAnnotate = new HashSet(); for (int i = 0; i < nodes.length; i++) { uo = nodes[i].getUserObject(); if (uo instanceof DataObject) toAnnotate.add(uo); } dataHandler = AnnotatorFactory.getAnnotator(toAnnotate, TreeViewerAgen... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/464efde90db6bc5095c0a7e5952f51ad0f37ca86/TreeViewerModel.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/view/TreeViewerModel.java |
dataHandler = AnnotatorFactory.getAnnotator(toAnnotate, | dataHandler = AnnotatorFactory.getAnnotator(owner, toAnnotate, | DataHandler annotateDataObjects(TreeImageDisplay[] nodes) { Object uo; Set toAnnotate = new HashSet(); for (int i = 0; i < nodes.length; i++) { uo = nodes[i].getUserObject(); if (uo instanceof DataObject) toAnnotate.add(uo); } dataHandler = AnnotatorFactory.getAnnotator(toAnnotate, TreeViewerAgen... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/464efde90db6bc5095c0a7e5952f51ad0f37ca86/TreeViewerModel.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/view/TreeViewerModel.java |
super(owner, "Save Edited data", MESSAGE, icon); | super(owner, "Save Edited data", true); createComponents(); attachListeners(); buildGUI(MESSAGE, icon); | public EditorSaverDialog(JFrame owner, Icon icon) { super(owner, "Save Edited data", MESSAGE, icon); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9794ffbd035a4de717ee211573b4844dd0eb3371/EditorSaverDialog.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/editors/EditorSaverDialog.java |
DataHandler classifyImageObjects(ImageData[] nodes, int mode) | DataHandler classifyImageObjects(JFrame owner, ImageData[] nodes, int mode) | DataHandler classifyImageObjects(ImageData[] nodes, int mode) { Set images = new HashSet(nodes.length); for (int i = 0; i < nodes.length; i++) images.add(nodes[i]); dataHandler = ClassifierFactory.getClassifier(images, getRootType(), getRootGroupID(), mode, TreeViewerAgent.getRegistry()); ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/464efde90db6bc5095c0a7e5952f51ad0f37ca86/TreeViewerModel.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/view/TreeViewerModel.java |
dataHandler = ClassifierFactory.getClassifier(images, getRootType(), getRootGroupID(), mode, | dataHandler = ClassifierFactory.getClassifier(owner, images, getRootType(), getRootGroupID(), mode, | DataHandler classifyImageObjects(ImageData[] nodes, int mode) { Set images = new HashSet(nodes.length); for (int i = 0; i < nodes.length; i++) images.add(nodes[i]); dataHandler = ClassifierFactory.getClassifier(images, getRootType(), getRootGroupID(), mode, TreeViewerAgent.getRegistry()); ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/464efde90db6bc5095c0a7e5952f51ad0f37ca86/TreeViewerModel.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/view/TreeViewerModel.java |
return getRuntime().newFixnum(hashCode()); | return getRuntime().newFixnum(list.hashCode()); | public RubyFixnum hash() { return getRuntime().newFixnum(hashCode()); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/4b12521bf34cff2c9841b1dacb1a929f6def5327/RubyArray.java/buggy/src/org/jruby/RubyArray.java |
newArgs[1] = RubyModule.class; | newArgs[1] = RubyObject.class; | protected Method getMethod() { if (method == null) { try { Class[] newArgs = args; if (staticMethod) { newArgs = new Class[args.length + 2]; System.arraycopy(args, 0, newArgs, 2, args.length); newArgs[0] = Ruby.... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a9420f23379e292698ea011ab08fb480b4decbcc/ReflectionCallbackMethod.java/clean/org/jruby/core/ReflectionCallbackMethod.java |
System.out.println(klass.getName()); System.out.println(methodName); System.out.println(recv.getClass().getName()); | protected RubyObject invokeMethod(RubyObject recv, Object[] methodArgs, Ruby ruby) { if (restArgs) { RubyObject[] restArray = new RubyObject[methodArgs.length - (args.length - 1)]; Object[] newMethodArgs = new Object[args.length]; try { System.arraycopy(methodA... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a9420f23379e292698ea011ab08fb480b4decbcc/ReflectionCallbackMethod.java/clean/org/jruby/core/ReflectionCallbackMethod.java | |
if (ratio < 1) ratio += EPSILON; | public void visit(ImageNode node) { Rectangle r = node.getBounds(); Thumbnail th = node.getThumbnail(); double sf = th.getScalingFactor(); double factor = ZoomCmd.calculateFactor(sf); if (sf != factor) { th.scale(factor); double ratio = factor/sf; ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/7a8e3ab291f958036f1839046f37dbdab1ea19a9/ZoomVisitor.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/cmd/ZoomVisitor.java | |
qd.getCdEnd().intValue(), | qd.getCdEnd().intValue(), | public Renderer(Pixels pixelsObj, RenderingDef renderingDefObj, PixelBuffer bufferObj) { metadata = pixelsObj; rndDef = renderingDefObj; buffer = bufferObj; if (metadata == null) throw new NullPointerException("Expecting not null metadata"); ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b2d1563defffc9fa654271400d754843f42e2810/Renderer.java/buggy/components/rendering/src/omeis/providers/re/Renderer.java |
int m = RenderingDefConstants.convertType(rndDef.getModel()); renderingStrategy = RenderingStrategy.makeNew(m); | renderingStrategy = RenderingStrategy.makeNew(rndDef.getModel()); | public Renderer(Pixels pixelsObj, RenderingDef renderingDefObj, PixelBuffer bufferObj) { metadata = pixelsObj; rndDef = renderingDefObj; buffer = bufferObj; if (metadata == null) throw new NullPointerException("Expecting not null metadata"); ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b2d1563defffc9fa654271400d754843f42e2810/Renderer.java/buggy/components/rendering/src/omeis/providers/re/Renderer.java |
public void computeLocationStats(PlaneDef pd) { if (pd == null) throw new NullPointerException("No plane definition."); ChannelBinding[] cb = getChannelBindings(); StatsFactory sf = new StatsFactory(); int w = 0; for (Iterator i = getMetadata().getChannels().iterator();... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b2d1563defffc9fa654271400d754843f42e2810/Renderer.java/buggy/components/rendering/src/omeis/providers/re/Renderer.java | ||
cb[w].setInputEnd(new Float(sf.getInputEnd())); | cb[w].setInputEnd(new Float(sf.getInputEnd())); | public void computeLocationStats(PlaneDef pd) { if (pd == null) throw new NullPointerException("No plane definition."); ChannelBinding[] cb = getChannelBindings(); StatsFactory sf = new StatsFactory(); int w = 0; for (Iterator i = getMetadata().getChannels().iterator();... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b2d1563defffc9fa654271400d754843f42e2810/Renderer.java/buggy/components/rendering/src/omeis/providers/re/Renderer.java |
public String getPixelsType() | public PixelsType getPixelsType() | public String getPixelsType() { return metadata.getPixelsType().getValue(); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b2d1563defffc9fa654271400d754843f42e2810/Renderer.java/buggy/components/rendering/src/omeis/providers/re/Renderer.java |
return metadata.getPixelsType().getValue(); | return metadata.getPixelsType(); | public String getPixelsType() { return metadata.getPixelsType().getValue(); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b2d1563defffc9fa654271400d754843f42e2810/Renderer.java/buggy/components/rendering/src/omeis/providers/re/Renderer.java |
public RGBBuffer render(PlaneDef pd) throws IOException, QuantizationException { if (pd == null) throw new NullPointerException("No plane definition."); stats = new RenderingStats(this, pd); log.info("Using: '" + renderingStrategy.getClass().getName() + "' rendering strategy."); ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b2d1563defffc9fa654271400d754843f42e2810/Renderer.java/buggy/components/rendering/src/omeis/providers/re/Renderer.java | ||
int model = RenderingDefConstants.GS; | RenderingModel model = PlaneFactory.getRenderingModel(MODEL_GREYSCALE); | public void resetDefaults() { // Reset the bit resolution. setQuantumStrategy(QuantumFactory.DEPTH_8BIT); // NB: Java locks are setCodomainInterval(0, QuantumFactory.DEPTH_8BIT); // re-entrant. // Set the each channel's window to the channel's [min, max]. // Make active only th... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b2d1563defffc9fa654271400d754843f42e2810/Renderer.java/buggy/components/rendering/src/omeis/providers/re/Renderer.java |
if (channel.getPixels().getAcquisitionContext().getPhotometricInterpretation().getValue() == "RGB") | if (channel.getPixels().getAcquisitionContext(). getPhotometricInterpretation().getValue() == PHOTOMETRIC_RGB) | public void resetDefaults() { // Reset the bit resolution. setQuantumStrategy(QuantumFactory.DEPTH_8BIT); // NB: Java locks are setCodomainInterval(0, QuantumFactory.DEPTH_8BIT); // re-entrant. // Set the each channel's window to the channel's [min, max]. // Make active only th... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b2d1563defffc9fa654271400d754843f42e2810/Renderer.java/buggy/components/rendering/src/omeis/providers/re/Renderer.java |
model = RenderingDefConstants.RGB; | model = PlaneFactory.getRenderingModel(MODEL_RGB); | public void resetDefaults() { // Reset the bit resolution. setQuantumStrategy(QuantumFactory.DEPTH_8BIT); // NB: Java locks are setCodomainInterval(0, QuantumFactory.DEPTH_8BIT); // re-entrant. // Set the each channel's window to the channel's [min, max]. // Make active only th... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b2d1563defffc9fa654271400d754843f42e2810/Renderer.java/buggy/components/rendering/src/omeis/providers/re/Renderer.java |
int c[] = ColorsFactory.getColor(w, channel); setRGBA(w, c[ColorsFactory.RED], c[ColorsFactory.GREEN], c[ColorsFactory.BLUE], c[ColorsFactory.ALPHA]); | Color c = ColorsFactory.getColor(w, channel); setRGBA(w, c.getRed(), c.getGreen(), c.getBlue(), c.getAlpha()); | public void resetDefaults() { // Reset the bit resolution. setQuantumStrategy(QuantumFactory.DEPTH_8BIT); // NB: Java locks are setCodomainInterval(0, QuantumFactory.DEPTH_8BIT); // re-entrant. // Set the each channel's window to the channel's [min, max]. // Make active only th... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b2d1563defffc9fa654271400d754843f42e2810/Renderer.java/buggy/components/rendering/src/omeis/providers/re/Renderer.java |
public void setModel(int model) | public void setModel(RenderingModel model) | public void setModel(int model) { rndDef.setModel(RenderingDefConstants.convertToType(model)); renderingStrategy = RenderingStrategy.makeNew(model); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b2d1563defffc9fa654271400d754843f42e2810/Renderer.java/buggy/components/rendering/src/omeis/providers/re/Renderer.java |
rndDef.setModel(RenderingDefConstants.convertToType(model)); | rndDef.setModel(model); | public void setModel(int model) { rndDef.setModel(RenderingDefConstants.convertToType(model)); renderingStrategy = RenderingStrategy.makeNew(model); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b2d1563defffc9fa654271400d754843f42e2810/Renderer.java/buggy/components/rendering/src/omeis/providers/re/Renderer.java |
public void setQuantizationMap(int w, int family, | public void setQuantizationMap(int w, Family family, | public void setQuantizationMap(int w, int family, double coefficient, boolean noiseReduction) { QuantumStrategy qs = getQuantumManager().getStrategyFor(w); qs.setQuantizationMap(family, coefficient, noiseReduction); ChannelBinding[] cb = getChannelBindings(); // FIXME cb[w]... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b2d1563defffc9fa654271400d754843f42e2810/Renderer.java/buggy/components/rendering/src/omeis/providers/re/Renderer.java |
cb[w].setFamily(family); cb[w].setCoefficient(coefficient); cb[w].setNoiseReduction(noiseReduction); | public void setQuantizationMap(int w, int family, double coefficient, boolean noiseReduction) { QuantumStrategy qs = getQuantumManager().getStrategyFor(w); qs.setQuantizationMap(family, coefficient, noiseReduction); ChannelBinding[] cb = getChannelBindings(); // FIXME cb[w]... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b2d1563defffc9fa654271400d754843f42e2810/Renderer.java/buggy/components/rendering/src/omeis/providers/re/Renderer.java | |
public void setRGBA(int w, int red, int green, int blue, int alpha) { ChannelBinding[] cb = getChannelBindings(); // TODO cb[w].setRGBA(red, green, blue, alpha); Color c = cb[w].getColor(); c.setRed(Integer.valueOf(red)); c.setGreen(Integer.valueOf(green)); c.setBlue(Int... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b2d1563defffc9fa654271400d754843f42e2810/Renderer.java/buggy/components/rendering/src/omeis/providers/re/Renderer.java | ||
QuantumManager(Pixels metadata) | QuantumManager(Pixels metadata, IPixels iPixels) | QuantumManager(Pixels metadata) { this.metadata = metadata; wavesStg = new QuantumStrategy[metadata.getSizeC().intValue()]; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/64e6d912272b039f986c1a36d1ca930cc5578578/QuantumManager.java/buggy/components/rendering/src/omeis/providers/re/QuantumManager.java |
this.iPixels = iPixels; | QuantumManager(Pixels metadata) { this.metadata = metadata; wavesStg = new QuantumStrategy[metadata.getSizeC().intValue()]; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/64e6d912272b039f986c1a36d1ca930cc5578578/QuantumManager.java/buggy/components/rendering/src/omeis/providers/re/QuantumManager.java | |
stg = QuantumFactory.getStrategy(qd,type); | stg = QuantumFactory.getStrategy(qd,type, iPixels); | void initStrategies(QuantumDef qd, PixelsType type, ChannelBinding[] waves) { QuantumStrategy stg; double gMin, gMax; List channels = this.metadata.getChannels(); int w = 0; Channel channel; for (Iterator i = channels.iterator(); i.hasNext();) { channel = (Channel) i.next(); stg = QuantumFactory.getStr... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/64e6d912272b039f986c1a36d1ca930cc5578578/QuantumManager.java/buggy/components/rendering/src/omeis/providers/re/QuantumManager.java |
Plane2D plane2D = Helper.createPlane(pd, index, metadata, pixelsData); | Plane2D plane2D = PlaneFactory.createPlane(pd, index, metadata, pixelsData); | public void computeLocationStats(Pixels metadata, PixelBuffer pixelsData, PlaneDef pd, int index) { int sizeX = metadata.getSizeX().intValue(); int sizeY = metadata.getSizeY().intValue(); Channel channel = (Channel) metadata.getChannels().get(index); StatsInfo... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b2d1563defffc9fa654271400d754843f42e2810/StatsFactory.java/buggy/components/rendering/src/omeis/providers/re/metadata/StatsFactory.java |
public String getStats() | public String getStats() | public String getStats() // j.m { //j.mLogMessage msg = new LogMessage(); //BELOW msg.print-->StringBuilder(); StringBuilder sb = new StringBuilder(2048); String n = "\n"; sb.append(n);//TODO sb.append(RENDERING_STATS); sb.append(n); sb.append(CONTEXT); sb.ap... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b2d1563defffc9fa654271400d754843f42e2810/RenderingStats.java/buggy/components/rendering/src/omeis/providers/re/RenderingStats.java |
public String getStats() // j.m { //j.mLogMessage msg = new LogMessage(); //BELOW msg.print-->StringBuilder(); StringBuilder sb = new StringBuilder(2048); String n = "\n"; sb.append(n);//TODO sb.append(RENDERING_STATS); sb.append(n); sb.append(CONTEXT); sb.ap... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b2d1563defffc9fa654271400d754843f42e2810/RenderingStats.java/buggy/components/rendering/src/omeis/providers/re/RenderingStats.java | ||
sb.append(n); | sb.append(n); | public String getStats() // j.m { //j.mLogMessage msg = new LogMessage(); //BELOW msg.print-->StringBuilder(); StringBuilder sb = new StringBuilder(2048); String n = "\n"; sb.append(n);//TODO sb.append(RENDERING_STATS); sb.append(n); sb.append(CONTEXT); sb.ap... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b2d1563defffc9fa654271400d754843f42e2810/RenderingStats.java/buggy/components/rendering/src/omeis/providers/re/RenderingStats.java |
sb.append(context.getRenderingDef().getModel()); | sb.append(context.getRenderingDef().getModel().getValue()); | public String getStats() // j.m { //j.mLogMessage msg = new LogMessage(); //BELOW msg.print-->StringBuilder(); StringBuilder sb = new StringBuilder(2048); String n = "\n"; sb.append(n);//TODO sb.append(RENDERING_STATS); sb.append(n); sb.append(CONTEXT); sb.ap... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b2d1563defffc9fa654271400d754843f42e2810/RenderingStats.java/buggy/components/rendering/src/omeis/providers/re/RenderingStats.java |
return sb.toString(); | return sb.toString(); | public String getStats() // j.m { //j.mLogMessage msg = new LogMessage(); //BELOW msg.print-->StringBuilder(); StringBuilder sb = new StringBuilder(2048); String n = "\n"; sb.append(n);//TODO sb.append(RENDERING_STATS); sb.append(n); sb.append(CONTEXT); sb.ap... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b2d1563defffc9fa654271400d754843f42e2810/RenderingStats.java/buggy/components/rendering/src/omeis/providers/re/RenderingStats.java |
public RubyObject call(Ruby ruby, RubyObject recv, RubyId id, RubyObject[] args, boolean noSuper); | public RubyObject call(Ruby ruby, RubyObject recv, RubyId id, RubyPointer args, boolean noSuper); | public RubyObject call(Ruby ruby, RubyObject recv, RubyId id, RubyObject[] args, boolean noSuper); | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f629550c5947df9c1dbe414645f3dc76bcb70df4/CallableNode.java/clean/org/jruby/nodes/types/CallableNode.java |
ProfileEvent[] buf = _eventBuffer; final int numEvents = _qPtr / 2; if (buf.length < numEvents) { buf = new ProfileEvent[numEvents]; System.arraycopy(_eventBuffer,0,buf,0,buf.length); _eventBuffer = buf; } final int last = _qPtr; int next = -1; int lastOpen = -1; int depth = 0; | public Iterator getEvents() throws IllegalStateException { try { ProfileEvent[] buf = _eventBuffer; final int numEvents = _qPtr / 2; if (buf.length < numEvents) { buf = new ProfileEvent[numEvents]; System.arraycopy(_eventBuffer,0,buf,0,buf.length); _ev... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/02e5136e77685a9dbfce8f66547a8f88a728a7ff/Profile.java/buggy/webmacro/src/org/webmacro/profile/Profile.java | |
throw new Exception(); | throw new Exception("Invalid stack state"); | public Iterator getEvents() throws IllegalStateException { try { ProfileEvent[] buf = _eventBuffer; final int numEvents = _qPtr / 2; if (buf.length < numEvents) { buf = new ProfileEvent[numEvents]; System.arraycopy(_eventBuffer,0,buf,0,buf.length); _ev... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/02e5136e77685a9dbfce8f66547a8f88a728a7ff/Profile.java/buggy/webmacro/src/org/webmacro/profile/Profile.java |
int depth = 0; | int mdepth = 0; | public Iterator getEvents() throws IllegalStateException { try { ProfileEvent[] buf = _eventBuffer; final int numEvents = _qPtr / 2; if (buf.length < numEvents) { buf = new ProfileEvent[numEvents]; System.arraycopy(_eventBuffer,0,buf,0,buf.length); _ev... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/02e5136e77685a9dbfce8f66547a8f88a728a7ff/Profile.java/buggy/webmacro/src/org/webmacro/profile/Profile.java |
sb.append(indent,0,depth); | sb.append(indent,0,mdepth); | public Iterator getEvents() throws IllegalStateException { try { ProfileEvent[] buf = _eventBuffer; final int numEvents = _qPtr / 2; if (buf.length < numEvents) { buf = new ProfileEvent[numEvents]; System.arraycopy(_eventBuffer,0,buf,0,buf.length); _ev... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/02e5136e77685a9dbfce8f66547a8f88a728a7ff/Profile.java/buggy/webmacro/src/org/webmacro/profile/Profile.java |
depth += 2; | mdepth += 2; | public Iterator getEvents() throws IllegalStateException { try { ProfileEvent[] buf = _eventBuffer; final int numEvents = _qPtr / 2; if (buf.length < numEvents) { buf = new ProfileEvent[numEvents]; System.arraycopy(_eventBuffer,0,buf,0,buf.length); _ev... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/02e5136e77685a9dbfce8f66547a8f88a728a7ff/Profile.java/buggy/webmacro/src/org/webmacro/profile/Profile.java |
depth -= 2; | mdepth -= 2; | public Iterator getEvents() throws IllegalStateException { try { ProfileEvent[] buf = _eventBuffer; final int numEvents = _qPtr / 2; if (buf.length < numEvents) { buf = new ProfileEvent[numEvents]; System.arraycopy(_eventBuffer,0,buf,0,buf.length); _ev... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/02e5136e77685a9dbfce8f66547a8f88a728a7ff/Profile.java/buggy/webmacro/src/org/webmacro/profile/Profile.java |
if (depth > _qPtr/2) { | if (mdepth > _qPtr/2) { | public Iterator getEvents() throws IllegalStateException { try { ProfileEvent[] buf = _eventBuffer; final int numEvents = _qPtr / 2; if (buf.length < numEvents) { buf = new ProfileEvent[numEvents]; System.arraycopy(_eventBuffer,0,buf,0,buf.length); _ev... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/02e5136e77685a9dbfce8f66547a8f88a728a7ff/Profile.java/buggy/webmacro/src/org/webmacro/profile/Profile.java |
if (depth < 0) { | if (mdepth < 0) { | public Iterator getEvents() throws IllegalStateException { try { ProfileEvent[] buf = _eventBuffer; final int numEvents = _qPtr / 2; if (buf.length < numEvents) { buf = new ProfileEvent[numEvents]; System.arraycopy(_eventBuffer,0,buf,0,buf.length); _ev... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/02e5136e77685a9dbfce8f66547a8f88a728a7ff/Profile.java/buggy/webmacro/src/org/webmacro/profile/Profile.java |
depth = 0; | mdepth = 0; | public Iterator getEvents() throws IllegalStateException { try { ProfileEvent[] buf = _eventBuffer; final int numEvents = _qPtr / 2; if (buf.length < numEvents) { buf = new ProfileEvent[numEvents]; System.arraycopy(_eventBuffer,0,buf,0,buf.length); _ev... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/02e5136e77685a9dbfce8f66547a8f88a728a7ff/Profile.java/buggy/webmacro/src/org/webmacro/profile/Profile.java |
sb.append("NUMBER OF START TIMINGS NOT EQUAL NUMBER OF STOPS\n"); | sb.append("NUMBER OF START TIMINGS NOT EQUAL NUMBER OF STOPS:" + "depth=" + depth + " " + "lastOpen=" + lastOpen + " " + "next=" + next + " " + "last=" + last + " " + "buf.length=" + buf.length); e.printStackTrace(); | public Iterator getEvents() throws IllegalStateException { try { ProfileEvent[] buf = _eventBuffer; final int numEvents = _qPtr / 2; if (buf.length < numEvents) { buf = new ProfileEvent[numEvents]; System.arraycopy(_eventBuffer,0,buf,0,buf.length); _ev... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/02e5136e77685a9dbfce8f66547a8f88a728a7ff/Profile.java/buggy/webmacro/src/org/webmacro/profile/Profile.java |
return newArray(ruby, Arrays.asList(args)); | RubyArray array = newArray(ruby, Arrays.asList(args)); array.setRubyClass((RubyClass) recv); return array; | public static RubyArray create(Ruby ruby, RubyObject recv, RubyObject[] args) { return newArray(ruby, Arrays.asList(args)); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/RubyArray.java/clean/org/jruby/RubyArray.java |
arrayClass.defineSingletonMethod("new", CallbackFactory.getOptSingletonMethod(RubyArray.class, "create")); | arrayClass.defineSingletonMethod("new", CallbackFactory.getOptSingletonMethod(RubyArray.class, "newInstance")); | public static RubyClass createArrayClass(Ruby ruby) { RubyClass arrayClass = ruby.defineClass("Array", ruby.getClasses().getObjectClass()); arrayClass.includeModule(ruby.getRubyModule("Enumerable")); arrayClass.defineSingletonMethod("new", CallbackFactory.getOptSingletonMethod(RubyArray.class, ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/RubyArray.java/clean/org/jruby/RubyArray.java |
ary.infectObject(this); | ary.setupClone(this); | public RubyObject rbClone() { RubyArray ary = newArray(getRuby(), list); ary.infectObject(this); return ary; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/RubyArray.java/clean/org/jruby/RubyArray.java |
List<Experimenter> l = iQuery.findAllByQuery("from Experimenter",null); | List<Experimenter> l = iQuery.findAllByQuery( "select e from Experimenter e",null); | public void testExperimenterShouldAlwaysExist() throws Exception { Experimenter root = (Experimenter) iQuery.findByQuery(Experimenter.class.getName(), new Parameters().addId(0L)); assertNotNull("Root has to be defined.",root); // FIXME assertNotNull... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0039ef3c66932163f0ec9bfa2b7f37eaa70abe47/InvariantsTest.java/clean/components/server/test/ome/server/itests/query/InvariantsTest.java |
throw new PropertyException("No method to set \"" + _vname + | throw new PropertyException("No method to set \"" + getVariableName() + | public final void setValue (Context context, Object newValue) throws PropertyException { if (!context.setProperty(_names, newValue)) { throw new PropertyException("No method to set \"" + _vname + "\" to type " + ((newValue == null) ? "null... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/976cc762ab65b58fbb5a81d83d913780b9d31fd4/PropertyVariable.java/buggy/webmacro/src/org/webmacro/engine/PropertyVariable.java |
return "property:" + _vname; | return "property:" + getVariableName(); | public final String toString () { return "property:" + _vname; } | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/976cc762ab65b58fbb5a81d83d913780b9d31fd4/PropertyVariable.java/buggy/webmacro/src/org/webmacro/engine/PropertyVariable.java |
WFTabbedPane tab = getWFTabbedPane(); | WFTabbedPane tab = getTabbedPane(); | protected EditArticleView getEditArticleView(){ WFTabbedPane tab = getWFTabbedPane(); if(tab!=null){ return (EditArticleView) tab.getPerspective(TASK_ID_EDIT); } return null; } | 57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/5db26355cf68616cbd8859fa37cd6aa73d783808/ArticleAdminBlock.java/clean/src/java/com/idega/block/article/component/ArticleAdminBlock.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.