rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
public void store(long idx, RubyObject value) { modify(); if (idx < 0) { idx += list.size(); if (idx < 0) { throw new RubyIndexException("index " + (idx - list.size()) + " out of array"); } } else if (idx > list.size()) { // list.ensure... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/59743974f1f8d5a50153b05647dac2d75d510976/RubyArray.java/clean/org/jruby/RubyArray.java | ||
height = data.length*getRowHeight(); | StatsTableModel(Number[][] data) { this.data = data; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/3db37517e6873d11567ee5822e769ab058e1abed/StatsTable.java/clean/SRC/org/openmicroscopy/shoola/agents/roi/results/stats/StatsTable.java | |
if (e instanceof PropertyException) throw e; | if (e instanceof PropertyException) throw (PropertyException)e; | public void write(org.webmacro.FastWriter out, org.webmacro.Context context) throws org.webmacro.PropertyException, java.io.IOException { try { String s = null; Context c = null; Macro macro = (Macro)_evalTarget.getValue(context); if (_mapExpr... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/2b6d66377d80cd788de0607d558628f2442c527c/EvalDirective.java/clean/webmacro/src/org/webmacro/directive/EvalDirective.java |
_log.warning (error,e); try { Template errorTemplate = error (c, "WebMacro encountered an error while executing a template:\n" + ((tmpl != null) ? (tmpl + ": ") : ("The template failed to load; double check the " + "TemplatePath in your webmacro.properties file.")) + "\n<pre>" + e + "</pre>\n"); fw.reset (fw.getOutpu... | _log.error (error,e); try { Template errorTemplate = error (c, "WebMacro encountered an error while executing a template:\n" + ((tmpl != null) ? (tmpl + ": ") : ("The template failed to load; double check the " + "TemplatePath in your webmacro.properties file.")) + "\n<pre>" + e + "</pre>\n"); if (fw == null) fw = F... | final protected void execute (Template tmpl, WebContext c) { FastWriter fw = null; boolean timing = Flags.PROFILE && c.isTiming (); try { if (timing) c.startTiming ("Template.write", tmpl); try { HttpServletResponse resp= c.getResponse (); ... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/a93c6ecece18003e7f79bb1177047ca2eb36cf54/WMServlet.java/buggy/webmacro/src/org/webmacro/servlet/WMServlet.java |
public Quantization_8_16_bit(QuantumDef qd, PixelsType type) { super(qd,type); } | public Quantization_8_16_bit(QuantumDef qd, PixelsType type) { super(qd, type); } | public Quantization_8_16_bit(QuantumDef qd, PixelsType type) { super(qd,type); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/bb6d636d2ab9e2cc7aa62d242570146969ef0e30/Quantization_8_16_bit.java/clean/components/rendering/src/omeis/providers/re/quantum/Quantization_8_16_bit.java |
if (LUT == null) initLUT(); double dStart = getWindowStart(), dEnd = getWindowEnd(); double k = getCurveCoefficient(); double a1 = (qDef.getCdEnd().intValue()-qDef.getCdStart().intValue())/ qDef.getBitResolution().intValue(); int x = min; QuantumMap normalize = new PolynomialMap(); double ysNorm = valueMapper.trans... | private void buildLUT() { if (LUT == null) initLUT(); // Comparable assumed to be Integer //domain double dStart = getWindowStart(), dEnd = getWindowEnd(); double k = getCurveCoefficient(); double a1 = (qDef.getCdEnd().intValue()-qDef.getCdStart().intValue())/ qDef.getBitResolu... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/bb6d636d2ab9e2cc7aa62d242570146969ef0e30/Quantization_8_16_bit.java/clean/components/rendering/src/omeis/providers/re/quantum/Quantization_8_16_bit.java | |
double a1 = (qDef.getCdEnd().intValue()-qDef.getCdStart().intValue())/qDef.getBitResolution().doubleValue(); | double a1 = (qDef.getCdEnd().intValue()-qDef.getCdStart().intValue())/ qDef.getBitResolution().doubleValue(); | private void buildLUT() { if (LUT == null) initLUT(); // Comparable assumed to be Integer //domain double dStart = getWindowStart(), dEnd = getWindowEnd(); double k = getCurveCoefficient(); double a1 = (qDef.getCdEnd().intValue()-qDef.getCdStart().intValue())/ qDef.getBitResolu... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/bb6d636d2ab9e2cc7aa62d242570146969ef0e30/Quantization_8_16_bit.java/clean/components/rendering/src/omeis/providers/re/quantum/Quantization_8_16_bit.java |
initDecileMap(dStart, dEnd); | double v = initDecileMap(dStart, dEnd); | private void buildLUT() { if (LUT == null) initLUT(); // Comparable assumed to be Integer //domain double dStart = getWindowStart(), dEnd = getWindowEnd(); double k = getCurveCoefficient(); double a1 = (qDef.getCdEnd().intValue()-qDef.getCdStart().intValue())/ qDef.getBitResolu... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/bb6d636d2ab9e2cc7aa62d242570146969ef0e30/Quantization_8_16_bit.java/clean/components/rendering/src/omeis/providers/re/quantum/Quantization_8_16_bit.java |
double v; | private void buildLUT() { if (LUT == null) initLUT(); // Comparable assumed to be Integer //domain double dStart = getWindowStart(), dEnd = getWindowEnd(); double k = getCurveCoefficient(); double a1 = (qDef.getCdEnd().intValue()-qDef.getCdStart().intValue())/ qDef.getBitResolu... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/bb6d636d2ab9e2cc7aa62d242570146969ef0e30/Quantization_8_16_bit.java/clean/components/rendering/src/omeis/providers/re/quantum/Quantization_8_16_bit.java | |
for(; x < dStart; ++x) LUT[x-min] = (byte) qDef.getCdStart().intValue(); | for(; x < dStart; ++x) LUT[x-min] = (byte) cdStart; | private void buildLUT() { if (LUT == null) initLUT(); // Comparable assumed to be Integer //domain double dStart = getWindowStart(), dEnd = getWindowEnd(); double k = getCurveCoefficient(); double a1 = (qDef.getCdEnd().intValue()-qDef.getCdStart().intValue())/ qDef.getBitResolu... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/bb6d636d2ab9e2cc7aa62d242570146969ef0e30/Quantization_8_16_bit.java/clean/components/rendering/src/omeis/providers/re/quantum/Quantization_8_16_bit.java |
if (x <= Q9) { v = aDecile*(normalize.transform(x, 1)-bDecile); v = aNormalized*(valueMapper.transform(v, k)-ysNormalized); v = Approximation.nearestInteger(v); v = Approximation.nearestInteger(a1*v+qDef.getCdStart().intValue()); } else v = qDef.getCdEnd().intValue(); } else v = qDef.getCdStart().intValue(); | if (x <= Q9) v = aDecile*normalize.transform(x, 1)-bDecile; else v = cdEnd; } else v = cdStart; v = aNormalized*(valueMapper.transform(v, k)-ysNormalized); v = Approximation.nearestInteger(v); v = Approximation.nearestInteger(a1*v+cdStart); | private void buildLUT() { if (LUT == null) initLUT(); // Comparable assumed to be Integer //domain double dStart = getWindowStart(), dEnd = getWindowEnd(); double k = getCurveCoefficient(); double a1 = (qDef.getCdEnd().intValue()-qDef.getCdStart().intValue())/ qDef.getBitResolu... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/bb6d636d2ab9e2cc7aa62d242570146969ef0e30/Quantization_8_16_bit.java/clean/components/rendering/src/omeis/providers/re/quantum/Quantization_8_16_bit.java |
for(; x <= max; ++x) LUT[x-min] = (byte) qDef.getCdEnd().intValue(); for (int i = 0; i < LUT.length; i++) { log.info(i + " maps to " + LUT[i]); } */ | for(; x <= max; ++x) LUT[x-min] = (byte) cdEnd; | private void buildLUT() { if (LUT == null) initLUT(); // Comparable assumed to be Integer //domain double dStart = getWindowStart(), dEnd = getWindowEnd(); double k = getCurveCoefficient(); double a1 = (qDef.getCdEnd().intValue()-qDef.getCdStart().intValue())/ qDef.getBitResolu... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/bb6d636d2ab9e2cc7aa62d242570146969ef0e30/Quantization_8_16_bit.java/clean/components/rendering/src/omeis/providers/re/quantum/Quantization_8_16_bit.java |
private void initDecileMap(double dStart, double dEnd) | private double initDecileMap(double dStart, double dEnd) | private void initDecileMap(double dStart, double dEnd) { double denum = (dEnd-dStart), num = MAX; double decile = ((double) (max-min))/DECILE; Q1 = min; Q9 = max; bDecile = dStart; if (getNoiseReduction()) { Q1 = min+decile; Q9 = max-decile; ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/bb6d636d2ab9e2cc7aa62d242570146969ef0e30/Quantization_8_16_bit.java/clean/components/rendering/src/omeis/providers/re/quantum/Quantization_8_16_bit.java |
bDecile = dStart; | private void initDecileMap(double dStart, double dEnd) { double denum = (dEnd-dStart), num = MAX; double decile = ((double) (max-min))/DECILE; Q1 = min; Q9 = max; bDecile = dStart; if (getNoiseReduction()) { Q1 = min+decile; Q9 = max-decile; ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/bb6d636d2ab9e2cc7aa62d242570146969ef0e30/Quantization_8_16_bit.java/clean/components/rendering/src/omeis/providers/re/quantum/Quantization_8_16_bit.java | |
bDecile = dStart; | b = dStart; | private void initDecileMap(double dStart, double dEnd) { double denum = (dEnd-dStart), num = MAX; double decile = ((double) (max-min))/DECILE; Q1 = min; Q9 = max; bDecile = dStart; if (getNoiseReduction()) { Q1 = min+decile; Q9 = max-decile; ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/bb6d636d2ab9e2cc7aa62d242570146969ef0e30/Quantization_8_16_bit.java/clean/components/rendering/src/omeis/providers/re/quantum/Quantization_8_16_bit.java |
bDecile = dStart; | b = dStart; | private void initDecileMap(double dStart, double dEnd) { double denum = (dEnd-dStart), num = MAX; double decile = ((double) (max-min))/DECILE; Q1 = min; Q9 = max; bDecile = dStart; if (getNoiseReduction()) { Q1 = min+decile; Q9 = max-decile; ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/bb6d636d2ab9e2cc7aa62d242570146969ef0e30/Quantization_8_16_bit.java/clean/components/rendering/src/omeis/providers/re/quantum/Quantization_8_16_bit.java |
bDecile = Q1; | private void initDecileMap(double dStart, double dEnd) { double denum = (dEnd-dStart), num = MAX; double decile = ((double) (max-min))/DECILE; Q1 = min; Q9 = max; bDecile = dStart; if (getNoiseReduction()) { Q1 = min+decile; Q9 = max-decile; ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/bb6d636d2ab9e2cc7aa62d242570146969ef0e30/Quantization_8_16_bit.java/clean/components/rendering/src/omeis/providers/re/quantum/Quantization_8_16_bit.java | |
bDecile = aDecile*b-e; return v; | private void initDecileMap(double dStart, double dEnd) { double denum = (dEnd-dStart), num = MAX; double decile = ((double) (max-min))/DECILE; Q1 = min; Q9 = max; bDecile = dStart; if (getNoiseReduction()) { Q1 = min+decile; Q9 = max-decile; ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/bb6d636d2ab9e2cc7aa62d242570146969ef0e30/Quantization_8_16_bit.java/clean/components/rendering/src/omeis/providers/re/quantum/Quantization_8_16_bit.java | |
aNormalized = qDef.getBitResolution().floatValue()/(yeNormalized-ysNormalized); | aNormalized = qDef.getBitResolution().intValue()/ (yeNormalized-ysNormalized); | private void initNormalizedMap(double k) { ysNormalized = valueMapper.transform(MIN, k); yeNormalized = valueMapper.transform(MAX, k); aNormalized = qDef.getBitResolution().floatValue()/(yeNormalized-ysNormalized); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/bb6d636d2ab9e2cc7aa62d242570146969ef0e30/Quantization_8_16_bit.java/clean/components/rendering/src/omeis/providers/re/quantum/Quantization_8_16_bit.java |
rb_define_method(rb_cString, "capitalize", rb_str_capitalize, 0); rb_define_method(rb_cString, "swapcase", rb_str_swapcase, 0); | */ stringClass.defineMethod("capitalize", getMethod("m_capitalize", false)); /*rb_define_method(rb_cString, "swapcase", rb_str_swapcase, 0); | public static RubyClass createStringClass(Ruby ruby) { RubyClass stringClass = ruby.defineClass("String", ruby.getObjectClass()); stringClass.includeModule(ruby.getRubyClass("Comparable")); // stringClass.includeModule(ruby.getModules().getEnumerable()); stringClass.defin... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/8e00ad1c7ae96f50ae0bd521483380788f891b7b/RbString.java/buggy/org/jruby/core/RbString.java |
rb_define_method(rb_cString, "capitalize!", rb_str_capitalize_bang, 0); rb_define_method(rb_cString, "swapcase!", rb_str_swapcase_bang, 0); | */ stringClass.defineMethod("capitalize!", getMethod("m_capitalize_bang", false)); /*rb_define_method(rb_cString, "swapcase!", rb_str_swapcase_bang, 0); | public static RubyClass createStringClass(Ruby ruby) { RubyClass stringClass = ruby.defineClass("String", ruby.getObjectClass()); stringClass.includeModule(ruby.getRubyClass("Comparable")); // stringClass.includeModule(ruby.getModules().getEnumerable()); stringClass.defin... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/8e00ad1c7ae96f50ae0bd521483380788f891b7b/RbString.java/buggy/org/jruby/core/RbString.java |
public MetaClass(IRuby runtime, RubyClass superClass, RubyModule parentModule) { super(runtime, runtime.getClass("Class"), superClass, parentModule, null); | public MetaClass(IRuby runtime, RubyClass superClass, SinglyLinkedList parentCRef) { super(runtime, runtime.getClass("Class"), superClass, parentCRef, null); | public MetaClass(IRuby runtime, RubyClass superClass, RubyModule parentModule) { super(runtime, runtime.getClass("Class"), superClass, parentModule, null); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a1b8fc1d456e3d5c6e01579b88773383068aa85c/MetaClass.java/buggy/src/org/jruby/MetaClass.java |
if ((list[i].getAbsolutePath()).equals(fileName)) exist = true; | if ((list[i].getAbsolutePath()).equals(name)) exist = true; | private void setSelection(String format, String fileName, String message, File[] list) { boolean exist = false; for (int i = 0; i < list.length; i++) if ((list[i].getAbsolutePath()).equals(fileName)) exist = true; if (!exist) { dis... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0f84715d97fb9bad35cd75d5c742a1473fe1f109/FileFormatChooser.java/buggy/SRC/org/openmicroscopy/shoola/agents/roi/util/FileFormatChooser.java |
Set types = new HashSet(); | Set<SemanticType> types = new HashSet<SemanticType>(); DSLHandler handler = new DSLHandler(); | execute() throws BuildException { if(_fileSets.isEmpty()) { throw new BuildException("No fileset specified"); } Set types = new HashSet(); java.util.Iterator p = _fileSets.iterator(); while(p.hasNext()) { FileSet filese... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/6d9e84b0d2f71da76eba45bc713472ad607c544a/DSLTask.java/buggy/components/dsl/src/ome/dsl/DSLTask.java |
SaxReader sr = new SaxReader(file); types.addAll(sr.parse()); | SaxReader sr = new SaxReader(file,handler); sr.parse(); | execute() throws BuildException { if(_fileSets.isEmpty()) { throw new BuildException("No fileset specified"); } Set types = new HashSet(); java.util.Iterator p = _fileSets.iterator(); while(p.hasNext()) { FileSet filese... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/6d9e84b0d2f71da76eba45bc713472ad607c544a/DSLTask.java/buggy/components/dsl/src/ome/dsl/DSLTask.java |
types.addAll(handler.process()); | execute() throws BuildException { if(_fileSets.isEmpty()) { throw new BuildException("No fileset specified"); } Set types = new HashSet(); java.util.Iterator p = _fileSets.iterator(); while(p.hasNext()) { FileSet filese... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/6d9e84b0d2f71da76eba45bc713472ad607c544a/DSLTask.java/buggy/components/dsl/src/ome/dsl/DSLTask.java | |
public static RubyClass createThreadClass(Ruby runtime) { RubyClass threadClass = new ThreadDefinition(runtime).getType(); | public static RubyClass createThreadClass(Ruby ruby) { RubyClass threadClass = ruby.defineClass("Thread", ruby.getClasses().getObjectClass()); CallbackFactory callbackFactory = ruby.callbackFactory(); | public static RubyClass createThreadClass(Ruby runtime) { RubyClass threadClass = new ThreadDefinition(runtime).getType(); ThreadClass currentThread = new ThreadClass(runtime, threadClass); currentThread.jvmThread = Thread.currentThread(); runtime.getThreadService().setMainThread(current... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1c602493a83e2050f401fa6925ec7e9269b45e4e/ThreadClass.java/clean/src/org/jruby/ThreadClass.java |
ThreadClass currentThread = new ThreadClass(runtime, threadClass); | threadClass.defineMethod("[]", callbackFactory.getMethod(ThreadClass.class, "aref", IRubyObject.class)); threadClass.defineMethod("[]=", callbackFactory.getMethod(ThreadClass.class, "aset", IRubyObject.class, IRubyObject.class)); threadClass.defineMethod("abort_on_exception", callbackFactory.getMethod(ThreadClass.class... | public static RubyClass createThreadClass(Ruby runtime) { RubyClass threadClass = new ThreadDefinition(runtime).getType(); ThreadClass currentThread = new ThreadClass(runtime, threadClass); currentThread.jvmThread = Thread.currentThread(); runtime.getThreadService().setMainThread(current... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1c602493a83e2050f401fa6925ec7e9269b45e4e/ThreadClass.java/clean/src/org/jruby/ThreadClass.java |
runtime.getThreadService().setMainThread(currentThread); | ruby.getThreadService().setMainThread(currentThread); | public static RubyClass createThreadClass(Ruby runtime) { RubyClass threadClass = new ThreadDefinition(runtime).getType(); ThreadClass currentThread = new ThreadClass(runtime, threadClass); currentThread.jvmThread = Thread.currentThread(); runtime.getThreadService().setMainThread(current... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1c602493a83e2050f401fa6925ec7e9269b45e4e/ThreadClass.java/clean/src/org/jruby/ThreadClass.java |
Set<String> s = disabledSubsystemsHolder.get( ); | Set<String> s = data.get().disabledSubsystems; | public static boolean addDisabled(String id) { Set<String> s = disabledSubsystemsHolder.get( ); if ( s == null ) { s = new HashSet<String>(); disabledSubsystemsHolder.set( s ); return s.add(id); } return false; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/e6b7ac4062ce844e31078de77a00a7ab77e5e5d5/CurrentDetails.java/clean/components/server/src/ome/security/CurrentDetails.java |
disabledSubsystemsHolder.set( s ); | data.get().disabledSubsystems = s; | public static boolean addDisabled(String id) { Set<String> s = disabledSubsystemsHolder.get( ); if ( s == null ) { s = new HashSet<String>(); disabledSubsystemsHolder.set( s ); return s.add(id); } return false; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/e6b7ac4062ce844e31078de77a00a7ab77e5e5d5/CurrentDetails.java/clean/components/server/src/ome/security/CurrentDetails.java |
getCreationEvent().clearLogs(); | data.get().logs = null; | public static void clearLogs() { getCreationEvent().clearLogs(); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/e6b7ac4062ce844e31078de77a00a7ab77e5e5d5/CurrentDetails.java/clean/components/server/src/ome/security/CurrentDetails.java |
Details details = detailsHolder.get(); | Details details = data.get().details; | protected static Details getDetails() { Details details = detailsHolder.get(); if (details == null) { details = new Details(); setDetails(details); } return details; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/e6b7ac4062ce844e31078de77a00a7ab77e5e5d5/CurrentDetails.java/clean/components/server/src/ome/security/CurrentDetails.java |
Permissions umask = umaskHolder.get(); | Permissions umask = data.get().umask; | public static Permissions getUmask() { Permissions umask = umaskHolder.get(); if (umask == null) { umask = new Permissions(); setUmask(umask); } return umask; /* FIXME * should be configurable * see https://trac.openmicroscopy.org.u... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/e6b7ac4062ce844e31078de77a00a7ab77e5e5d5/CurrentDetails.java/clean/components/server/src/ome/security/CurrentDetails.java |
Set<String> s = disabledSubsystemsHolder.get( ); | Set<String> s = data.get().disabledSubsystems; | public static boolean removeDisabled(String id) { Set<String> s = disabledSubsystemsHolder.get( ); if ( s != null && id != null ) { return s.remove(id); } return false; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/e6b7ac4062ce844e31078de77a00a7ab77e5e5d5/CurrentDetails.java/clean/components/server/src/ome/security/CurrentDetails.java |
detailsHolder.set(details); | data.get().details = details; | protected static void setDetails(Details details) { detailsHolder.set(details); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/e6b7ac4062ce844e31078de77a00a7ab77e5e5d5/CurrentDetails.java/clean/components/server/src/ome/security/CurrentDetails.java |
umaskHolder.set(umask); | data.get().umask = umask; | public static void setUmask(Permissions umask) { umaskHolder.set(umask); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/e6b7ac4062ce844e31078de77a00a7ab77e5e5d5/CurrentDetails.java/clean/components/server/src/ome/security/CurrentDetails.java |
public static RubyClass createRegexpClass(Ruby runtime) { RubyClass regexpClass = new RegexpDefinition(runtime).getType(); | public static RubyClass createRegexpClass(Ruby ruby) { RubyClass regexpClass = ruby.defineClass("Regexp", ruby.getClasses().getObjectClass()); CallbackFactory callbackFactory = ruby.callbackFactory(); regexpClass.defineConstant("IGNORECASE", RubyFixnum.newFixnum(ruby, RE_OPTION_IGNORECASE)); regexpClass.defineConstant... | public static RubyClass createRegexpClass(Ruby runtime) { RubyClass regexpClass = new RegexpDefinition(runtime).getType(); regexpClass.defineConstant("IGNORECASE", RubyFixnum.newFixnum(runtime, RE_OPTION_IGNORECASE)); regexpClass.defineConstant("EXTENDED", RubyFixnum.newFixnum(runtime, RE_OPTIO... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1c602493a83e2050f401fa6925ec7e9269b45e4e/RubyRegexp.java/clean/src/org/jruby/RubyRegexp.java |
regexpClass.defineConstant("IGNORECASE", RubyFixnum.newFixnum(runtime, RE_OPTION_IGNORECASE)); regexpClass.defineConstant("EXTENDED", RubyFixnum.newFixnum(runtime, RE_OPTION_EXTENDED)); regexpClass.defineConstant("MULTILINE", RubyFixnum.newFixnum(runtime, RE_OPTION_MULTILINE)); | regexpClass.defineMethod("initialize", callbackFactory.getOptMethod(RubyRegexp.class, "initialize")); regexpClass.defineMethod("clone", callbackFactory.getMethod(RubyRegexp.class, "rbClone")); regexpClass.defineMethod("==", callbackFactory.getMethod(RubyRegexp.class, "equal", IRubyObject.class)); regexpClass.defineMeth... | public static RubyClass createRegexpClass(Ruby runtime) { RubyClass regexpClass = new RegexpDefinition(runtime).getType(); regexpClass.defineConstant("IGNORECASE", RubyFixnum.newFixnum(runtime, RE_OPTION_IGNORECASE)); regexpClass.defineConstant("EXTENDED", RubyFixnum.newFixnum(runtime, RE_OPTIO... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1c602493a83e2050f401fa6925ec7e9269b45e4e/RubyRegexp.java/clean/src/org/jruby/RubyRegexp.java |
ChatRoom chatRoom = (ChatRoom)getComponentInTab(tab); if (chatRoom != null) { for (ChatRoom cRoom : getChatRooms()) { if (chatRoom != cRoom) { closeTab(cRoom); } } } | ChatRoom chatRoom = (ChatRoom)getComponentInTab(tab); if (chatRoom != null) { closeTab(chatRoom); | public void actionPerformed(ActionEvent e) { ChatRoom chatRoom = (ChatRoom)getComponentInTab(tab); if (chatRoom != null) { for (ChatRoom cRoom : getChatRooms()) { if (chatRoom != cRoom) { ... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/679c55c119e5807b621b021ce6ce8ef36ef890f3/ChatContainer.java/buggy/src/java/org/jivesoftware/spark/ui/ChatContainer.java |
} | public void actionPerformed(ActionEvent e) { ChatRoom chatRoom = (ChatRoom)getComponentInTab(tab); if (chatRoom != null) { for (ChatRoom cRoom : getChatRooms()) { if (chatRoom != cRoom) { ... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/679c55c119e5807b621b021ce6ce8ef36ef890f3/ChatContainer.java/buggy/src/java/org/jivesoftware/spark/ui/ChatContainer.java | |
for (ChatRoom rooms : getStaleChatRooms()) { closeTab(rooms); | ChatRoom chatRoom = (ChatRoom)getComponentInTab(tab); if (chatRoom != null) { for (ChatRoom cRoom : getChatRooms()) { if (chatRoom != cRoom) { closeTab(cRoom); } } | public void actionPerformed(ActionEvent e) { for (ChatRoom rooms : getStaleChatRooms()) { closeTab(rooms); } } | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/679c55c119e5807b621b021ce6ce8ef36ef890f3/ChatContainer.java/buggy/src/java/org/jivesoftware/spark/ui/ChatContainer.java |
ChatRoom activeChatRoom = null; try { activeChatRoom = getActiveChatRoom(); } catch (ChatRoomNotFoundException e1) { Log.error(e1); } if (chatFrame.isVisible() && (chatFrame.getState() == Frame.ICONIFIED || chatFrame.getInactiveTime() > 20000)) { int tabLocation = indexOfComponent(chatRoom); setSelectedIndex(tabLocati... | SwingUtilities.invokeLater(new Runnable() { public void run() { handleMessageNotification(chatRoom); | public void fireNotifyOnMessage(final ChatRoom chatRoom) { ChatRoom activeChatRoom = null; try { activeChatRoom = getActiveChatRoom(); } catch (ChatRoomNotFoundException e1) { Log.error(e1); } if (chatFrame.isVisible() && (chatFrame.getState() == Frame... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/679c55c119e5807b621b021ce6ce8ef36ef890f3/ChatContainer.java/buggy/src/java/org/jivesoftware/spark/ui/ChatContainer.java |
chatFrame.setVisible(true); int tabLocation = indexOfComponent(chatRoom); setSelectedIndex(tabLocation); if (!SparkManager.getMainWindow().isVisible()) { startFlashing(chatRoom); } else if (chatFrame.getState() == Frame.ICONIFIED) { startFlashing(chatRoom); } } else if (chatRoom != activeChatRoom) { startFlashing... | }); | public void fireNotifyOnMessage(final ChatRoom chatRoom) { ChatRoom activeChatRoom = null; try { activeChatRoom = getActiveChatRoom(); } catch (ChatRoomNotFoundException e1) { Log.error(e1); } if (chatFrame.isVisible() && (chatFrame.getState() == Frame... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/679c55c119e5807b621b021ce6ce8ef36ef890f3/ChatContainer.java/buggy/src/java/org/jivesoftware/spark/ui/ChatContainer.java |
final Iterator iter = new HashSet(chatRoomListeners).iterator(); while (iter.hasNext()) { ((ChatRoomListener)iter.next()).userHasJoined(room, userid); } | handleMessageNotification(chatRoom); | public void run() { final Iterator iter = new HashSet(chatRoomListeners).iterator(); while (iter.hasNext()) { ((ChatRoomListener)iter.next()).userHasJoined(room, userid); } } | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/679c55c119e5807b621b021ce6ce8ef36ef890f3/ChatContainer.java/buggy/src/java/org/jivesoftware/spark/ui/ChatContainer.java |
((ChatRoomListener)iter.next()).userHasLeft(room, userid); | ((ChatRoomListener)iter.next()).userHasJoined(room, userid); | public void run() { final Iterator iter = new HashSet(chatRoomListeners).iterator(); while (iter.hasNext()) { ((ChatRoomListener)iter.next()).userHasLeft(room, userid); } } | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/679c55c119e5807b621b021ce6ce8ef36ef890f3/ChatContainer.java/buggy/src/java/org/jivesoftware/spark/ui/ChatContainer.java |
final int index = indexOfComponent(room); if (index != -1) { room.increaseUnreadMessageCount(); int unreadMessageCount = room.getUnreadMessageCount(); String appendedMessage = ""; if (unreadMessageCount > 1) { appendedMessage = " (" + unreadMessageCount + ")"; } SparkTab tab = getTabAt(index); tab.getTitleLabel().setT... | public void run() { try { boolean invokeFlash = SettingsManager.getLocalPreferences().isChatRoomNotificationsOn() || !(room instanceof GroupChatRoom); if (!chatFrame.isFocused() && invokeFlash) { SparkManager.getAlertManager().flash... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/679c55c119e5807b621b021ce6ce8ef36ef890f3/ChatContainer.java/buggy/src/java/org/jivesoftware/spark/ui/ChatContainer.java | |
try { final int index = indexOfComponent(room); if (index != -1) { room.increaseUnreadMessageCount(); int unreadMessageCount = room.getUnreadMessageCount(); String appendedMessage = ""; if (unreadMessageCount > 1) { appendedMessage = " (" + unreadMessageCount + ")"; } SparkTab tab = getTabAt(index); tab.getTitleLabel(... | final Iterator iter = new HashSet(chatRoomListeners).iterator(); while (iter.hasNext()) { ((ChatRoomListener)iter.next()).userHasLeft(room, userid); | public void run() { try { final int index = indexOfComponent(room); if (index != -1) { room.increaseUnreadMessageCount(); int unreadMessageCount = room.getUnreadMessageCount(); String ap... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/679c55c119e5807b621b021ce6ce8ef36ef890f3/ChatContainer.java/buggy/src/java/org/jivesoftware/spark/ui/ChatContainer.java |
int index = indexOfComponent(room); if (index != -1) { SparkTab tab = getTabAt(index); useTabDefault(room); tab.getTitleLabel().setText(room.getTabTitle()); room.clearUnreadMessageCount(); | boolean invokeFlash = SettingsManager.getLocalPreferences().isChatRoomNotificationsOn() || !(room instanceof GroupChatRoom); if (!chatFrame.isFocused() && invokeFlash) { SparkManager.getAlertManager().flashWindow(chatFrame); | public void run() { try { int index = indexOfComponent(room); if (index != -1) { SparkTab tab = getTabAt(index); useTabDefault(room); tab.getTitleLabel().setText(room.getTabTitle()); ... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/679c55c119e5807b621b021ce6ce8ef36ef890f3/ChatContainer.java/buggy/src/java/org/jivesoftware/spark/ui/ChatContainer.java |
Log.error("Could not stop flashing for " + room + " because " + ex.getMessage(), ex); | Log.error("Issue in ChatRooms with tab location.", ex); | public void run() { try { int index = indexOfComponent(room); if (index != -1) { SparkTab tab = getTabAt(index); useTabDefault(room); tab.getTitleLabel().setText(room.getTabTitle()); ... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/679c55c119e5807b621b021ce6ce8ef36ef890f3/ChatContainer.java/buggy/src/java/org/jivesoftware/spark/ui/ChatContainer.java |
SparkManager.getAlertManager().stopFlashing(chatFrame); | public void run() { try { int index = indexOfComponent(room); if (index != -1) { SparkTab tab = getTabAt(index); useTabDefault(room); tab.getTitleLabel().setText(room.getTabTitle()); ... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/679c55c119e5807b621b021ce6ce8ef36ef890f3/ChatContainer.java/buggy/src/java/org/jivesoftware/spark/ui/ChatContainer.java | |
+ " join fetch p.details.owner " + " where p.id = ? ", | + " join fetch p.details.owner " + " where p.id = :id ", | public void test_experimenter_shouldnt_increment_on_update() throws Exception { expName = eContext.getPrincipal().getName(); Experimenter e = getExperimenter(expName); expId = e.getId(); expVersion = e.getVersion(); p.setName(name); id = iUpdate.saveAn... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/59b11883b95c926d6706e6d30b4cdb898088683c/EventStateChangeTest.java/buggy/components/server/test/ome/server/itests/EventStateChangeTest.java |
classes.initCoreClasses(); | public Ruby() { initOperatorTable(); originalMethods = new RubyOriginalMethods(this); globalMap = new RubyHashMap(); nilObject = new RubyNil(this); trueObject = new RubyBoolean(this, true); falseObject = new RubyBoolean(this, false); c... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/03950522a75c28f406bd4cb011cb1916a662366d/Ruby.java/buggy/org/jruby/Ruby.java | |
array = RubyArray.newArray(ruby, Arrays.asList(args).subList(i, args.length)); | ArrayList list = new ArrayList(args.length - i); for (int j = i; j < args.length; j++) { list.add(args[j]); } array = RubyArray.newArray(ruby, list); | final public RubyObject execute(final Ruby ruby, final RubyObject receiver, final String name, RubyObject[] args, final boolean noSuper) { if (args == null) { args = new RubyObject[0]; } RubyProc optionalBlockArg = null; if (argsNode.getBlockArgNode() != null && ruby.isBlockGi... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a42a5780d9d19f5b3f27bdc079684319c5596e54/DefaultMethod.java/buggy/org/jruby/internal/runtime/methods/DefaultMethod.java |
if(w < 0 || dims.sizeW <= w) | if (w < 0 || dims.sizeW <= w) | private Integer linearize(int z, int w, int t) { if (z < 0 || dims.sizeZ <= z) throw new IllegalArgumentException( "z out of range [0, "+dims.sizeZ+"): "+z+"."); if(w < 0 || dims.sizeW <= w) throw new IllegalArgumentException( "w out of ran... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/83adfc51b46811002b63a5e63336b8585ab9d4b4/ROIStats.java/buggy/SRC/org/openmicroscopy/shoola/env/rnd/roi/ROIStats.java |
if(t < 0 || dims.sizeT <= t) | if (t < 0 || dims.sizeT <= t) | private Integer linearize(int z, int w, int t) { if (z < 0 || dims.sizeZ <= z) throw new IllegalArgumentException( "z out of range [0, "+dims.sizeZ+"): "+z+"."); if(w < 0 || dims.sizeW <= w) throw new IllegalArgumentException( "w out of ran... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/83adfc51b46811002b63a5e63336b8585ab9d4b4/ROIStats.java/buggy/SRC/org/openmicroscopy/shoola/env/rnd/roi/ROIStats.java |
result = ((RubyCallbackMethod)body.nd_cfnc()).execute(recv, args, getRuby()); | try { result = ((RubyCallbackMethod)body.nd_cfnc()).execute(recv, args, getRuby()); } catch (RubyArgumentException raExcptn) { System.out.print("Cannot call method \"" + id.toName() + "\". "); System.out.println(raExcptn.getMessage()); } | public RubyObject call0(RubyObject recv, RubyId id, RubyObject[] args, NODE body, boolean noSuper) { // ... RubyInterpreter interpreter = getRuby().getInterpreter(); interpreter.getRubyFrame().push(); // HACK +++ interpreter.getRubyIter().push(Iter.ITER_NOT... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/09d14a481cf7e28332c61c038c7d4b468854d38d/RubyModule.java/buggy/org/jruby/RubyModule.java |
suite.addTest(new TestSuite(TestVariableCreation.class)); | public static Test suite() throws Throwable { TestSuite suite = new TestSuite(); suite.addTest(new TestSuite(TestLoadService.class)); suite.addTest(new TestSuite(TestRubyObject.class)); suite.addTest(new TestSuite(TestRubyNil.class)); suite.addTest(new TestSuite(TestRubyHash.class... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/eae2033cf7fa8ef53b6779f340ded9966ebc2c2d/MainTestSuite.java/clean/test/org/jruby/test/MainTestSuite.java | |
public void testAPITask() { final File currentDir = new File(System.getProperty("user.dir")); final File commonDir = new File(currentDir.getParentFile().getPath() + File.separator + "common"); final class T extends APITask { public T() { DefaultLogger logger = new DefaultLogger(); logger.setMessageOutputLevel(Proj... | public void testAPITask() {} | public void testAPITask() { final File currentDir = new File(System.getProperty("user.dir")); final File commonDir = new File(currentDir.getParentFile().getPath() + File.separator + "common"); final class T extends APITask { public T() { ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/c6b52b27590d0bcabcafbf7e427daa5dea8d72f4/AntTasksTest.java/clean/components/dsl/test/ome/dsl/utests/AntTasksTest.java |
RubyClass rubyClass = (RubyClass)getRecvNode().eval(ruby, self); if (rubyClass.isSpecialConst()) { throw new TypeError(ruby, "no virtual class for " + rubyClass.getRubyClass().toName()); | RubyClass type = (RubyClass)getRecvNode().eval(ruby, self); if (type.isSpecialConst()) { throw new TypeError(ruby, "no virtual class for " + type.getRubyClass().toName()); | public RubyObject eval(Ruby ruby, RubyObject self) { RubyClass rubyClass = (RubyClass)getRecvNode().eval(ruby, self); if (rubyClass.isSpecialConst()) { throw new TypeError(ruby, "no virtual class for " + rubyClass.getRubyClass().toName()); } if (ruby.getSafeLevel() >= 4 && !ru... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/SClassNode.java/clean/org/jruby/nodes/SClassNode.java |
if (ruby.getSafeLevel() >= 4 && !rubyClass.isTaint()) { | if (ruby.getSafeLevel() >= 4 && !type.isTaint()) { | public RubyObject eval(Ruby ruby, RubyObject self) { RubyClass rubyClass = (RubyClass)getRecvNode().eval(ruby, self); if (rubyClass.isSpecialConst()) { throw new TypeError(ruby, "no virtual class for " + rubyClass.getRubyClass().toName()); } if (ruby.getSafeLevel() >= 4 && !ru... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/SClassNode.java/clean/org/jruby/nodes/SClassNode.java |
if (rubyClass.getRubyClass().isSingleton()) { | if (type.getRubyClass().isSingleton()) { | public RubyObject eval(Ruby ruby, RubyObject self) { RubyClass rubyClass = (RubyClass)getRecvNode().eval(ruby, self); if (rubyClass.isSpecialConst()) { throw new TypeError(ruby, "no virtual class for " + rubyClass.getRubyClass().toName()); } if (ruby.getSafeLevel() >= 4 && !ru... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/SClassNode.java/clean/org/jruby/nodes/SClassNode.java |
ruby.setRubyClass(rubyClass.getSingletonClass()); | type = type.getSingletonClass(); | public RubyObject eval(Ruby ruby, RubyObject self) { RubyClass rubyClass = (RubyClass)getRecvNode().eval(ruby, self); if (rubyClass.isSpecialConst()) { throw new TypeError(ruby, "no virtual class for " + rubyClass.getRubyClass().toName()); } if (ruby.getSafeLevel() >= 4 && !ru... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/SClassNode.java/clean/org/jruby/nodes/SClassNode.java |
rubyClass.getSingletonClass().includeModule(ruby.getWrapper()); rubyClass.includeModule(ruby.getWrapper()); | type.extendObject(ruby.getWrapper()); type.includeModule(ruby.getWrapper()); | public RubyObject eval(Ruby ruby, RubyObject self) { RubyClass rubyClass = (RubyClass)getRecvNode().eval(ruby, self); if (rubyClass.isSpecialConst()) { throw new TypeError(ruby, "no virtual class for " + rubyClass.getRubyClass().toName()); } if (ruby.getSafeLevel() >= 4 && !ru... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/SClassNode.java/clean/org/jruby/nodes/SClassNode.java |
return ((ScopeNode)getBodyNode()).setupModule(ruby, rubyClass); | return ((ScopeNode)getBodyNode()).setupModule(ruby, type); | public RubyObject eval(Ruby ruby, RubyObject self) { RubyClass rubyClass = (RubyClass)getRecvNode().eval(ruby, self); if (rubyClass.isSpecialConst()) { throw new TypeError(ruby, "no virtual class for " + rubyClass.getRubyClass().toName()); } if (ruby.getSafeLevel() >= 4 && !ru... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/SClassNode.java/clean/org/jruby/nodes/SClassNode.java |
private void dumpClasses(PackageData packageData) | private void dumpClasses(SourceFileData sourceFileData) | private void dumpClasses(PackageData packageData) { println("<classes>"); increaseIndentation(); Iterator it = packageData.getChildren().iterator(); while (it.hasNext()) { dumpClass((ClassData)it.next()); } decreaseIndentation(); println("</classes>"); } | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/2d04adc2554406c41824d5b965907076ecdceb80/XMLReport.java/buggy/cobertura/src/net/sourceforge/cobertura/reporting/xml/XMLReport.java |
println("<classes>"); increaseIndentation(); Iterator it = packageData.getChildren().iterator(); | Iterator it = sourceFileData.getChildren().iterator(); | private void dumpClasses(PackageData packageData) { println("<classes>"); increaseIndentation(); Iterator it = packageData.getChildren().iterator(); while (it.hasNext()) { dumpClass((ClassData)it.next()); } decreaseIndentation(); println("</classes>"); } | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/2d04adc2554406c41824d5b965907076ecdceb80/XMLReport.java/buggy/cobertura/src/net/sourceforge/cobertura/reporting/xml/XMLReport.java |
decreaseIndentation(); println("</classes>"); | private void dumpClasses(PackageData packageData) { println("<classes>"); increaseIndentation(); Iterator it = packageData.getChildren().iterator(); while (it.hasNext()) { dumpClass((ClassData)it.next()); } decreaseIndentation(); println("</classes>"); } | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/2d04adc2554406c41824d5b965907076ecdceb80/XMLReport.java/buggy/cobertura/src/net/sourceforge/cobertura/reporting/xml/XMLReport.java | |
dumpClasses(packageData); | dumpSourceFiles(packageData); | private void dumpPackage(PackageData packageData) { logger.debug("Dumping package " + packageData.getName()); double ccn = Util.getCCN(new File(sourceDirectory, packageData .getSourceFileName()), false); println("<package name=\"" + packageData.getName() + "\" line-rate=\"" + packageData.getLineCoverageRate()... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/2d04adc2554406c41824d5b965907076ecdceb80/XMLReport.java/buggy/cobertura/src/net/sourceforge/cobertura/reporting/xml/XMLReport.java |
if (component instanceof EditorUI) ((EditorUI) component) .setComponentsSize(workingPane.getBounds().width); | void addComponent(JComponent component) { if (component instanceof EditorUI) ((EditorUI) component) .setComponentsSize(workingPane.getBounds().width); JViewport viewPort = workingPane.getViewport(); viewPort.removeAll(); viewPort.add(component); vi... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/bbf37bc5e7bfdcd4fb5d2a4ffa6f315d6563694f/TreeViewerWin.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/view/TreeViewerWin.java | |
/* if (b) { JSplitPane pane = new JSplitPane(); pane.setOrientation(JSplitPane.VERTICAL_SPLIT); pane.setResizeWeight(1); pane.setOneTouchExpandable(true); pane.setContinuousLayout(true); pane.setTopComponent(workingPane); pane.setBottomComponent(model.getFinder()); splitPane.setRightComponent(pane); } else { splitPane.... | void showFinder(boolean b) { /* if (b) { //finder visible. JSplitPane pane = new JSplitPane(); pane.setOrientation(JSplitPane.VERTICAL_SPLIT); pane.setResizeWeight(1); pane.setOneTouchExpandable(true); pane.setContinuousLayout(true); ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/bbf37bc5e7bfdcd4fb5d2a4ffa6f315d6563694f/TreeViewerWin.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/view/TreeViewerWin.java | |
return Collections.EMPTY_LIST; | return EMPTY_LIST; | public List childNodes() { return Collections.EMPTY_LIST; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/b1293eda8454686e846e2a9837b348e2983bb423/FalseNode.java/clean/src/org/jruby/ast/FalseNode.java |
WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "clear"); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setLocaleId", "sv"); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setHeadline", "headline"); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setBody", id); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setAuthor", "author"); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "set... | ArticleItemBean articleItem = new ArticleItemBean(); try { articleItem.load(id); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "clear"); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setLocaleId", "en"); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setHeadline", notNull(articleItem.getHeadline())); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setTeas... | public void processAction(ActionEvent event) { UIComponent link = event.getComponent(); ArticleBlock ab = null; String id = WFUtil.getParameter(link, "id"); UIComponent component = link.getParent().getParent().getParent().findComponent(MAIN_TASKBAR_ID); if(component instanceof WFTabbedPane){ WFTabbedPane tb =... | 57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/72fe15183822be99f6dfa9d697bce89864c5f7d8/CMSPage.java/clean/src/java/com/idega/block/article/CMSPage.java |
WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setMainCategoryId", new Integer(3)); | catch (XmlException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } | public void processAction(ActionEvent event) { UIComponent link = event.getComponent(); ArticleBlock ab = null; String id = WFUtil.getParameter(link, "id"); UIComponent component = link.getParent().getParent().getParent().findComponent(MAIN_TASKBAR_ID); if(component instanceof WFTabbedPane){ WFTabbedPane tb =... | 57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/72fe15183822be99f6dfa9d697bce89864c5f7d8/CMSPage.java/clean/src/java/com/idega/block/article/CMSPage.java |
fixnumClass.defineMethod("to_str", getMethod("m_to_s")); | public static RubyClass createFixnum(Ruby ruby) { RubyClass fixnumClass = ruby.defineClass("Fixnum", ruby.getClasses().getIntegerClass()); fixnumClass.defineMethod("to_i", getMethod("m_to_i")); fixnumClass.defineMethod("to_s", getMethod("m_to_s")); fixnumClass.defineMetho... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f629550c5947df9c1dbe414645f3dc76bcb70df4/RbFixnum.java/clean/org/jruby/core/RbFixnum.java | |
return ((JRubyConstructor)ctor).runtime.newTime(((Date)SafeConstructorImpl.constructYamlTimestamp(ctor,node)).getTime()); | return ((JRubyConstructor)ctor).runtime.newTime(((Date)SafeConstructorImpl.constructYamlTimestamp(ctor,node)).getTime()).callMethod(((JRubyConstructor)ctor).runtime.getCurrentContext(),"utc"); | public static Object constructYamlTimestamp(final Constructor ctor, final Node node) { return ((JRubyConstructor)ctor).runtime.newTime(((Date)SafeConstructorImpl.constructYamlTimestamp(ctor,node)).getTime()); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a7496d30c994b238998690eb28c237de52e1a3b6/JRubyConstructor.java/buggy/src/org/jruby/yaml/JRubyConstructor.java |
ILink[] retVal = (ILink[])iUpdate.saveAndReturnArray(arg0); collectCounts( retVal, new PojoOptions(arg1) ); return retVal; | IObject[] retVal = iUpdate.saveAndReturnArray(arg0); ILink[] links = new ILink[retVal.length]; System.arraycopy(retVal, 0, links, 0, retVal.length); collectCounts( links, new PojoOptions(arg1) ); return links; | public ILink[] link(ILink[] arg0, Map arg1) { ILink[] retVal = (ILink[])iUpdate.saveAndReturnArray(arg0); collectCounts( retVal, new PojoOptions(arg1) ); return retVal; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/e1b76ed719977cee99d8f5cc8eb06bcf7b7eee4c/PojosImpl.java/clean/components/server/src/ome/logic/PojosImpl.java |
return super.resolveEntity(publicId, systemId); | InputSource source = null; try { super.resolveEntity(publicId, systemId); } catch (Exception exception) { throw new SAXException(exception); } return source; | public InputSource resolveEntity(String publicId, String systemId) throws SAXException { // If the requested entity is our cobertura DTD, then use the local // version instead of the remote version try { if (systemId.equals(coverageDTD)) return new InputSource(new FileInputStream(localDTD)); } catch (File... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/aa28e2370adfa8f4e4ecc6102e67283dbce474d8/JUnitXMLParserEntityResolver.java/clean/cobertura/test/net/sourceforge/cobertura/reporting/xml/JUnitXMLParserEntityResolver.java |
if (startFieldValid()) | if (endFieldValid()) | private void endSelectionHandler() { double s = model.getWindowStart(); double val = Double.parseDouble(endField.getText()); if (val == model.getWindowEnd()) return; if (startFieldValid()) { controller.setInputInterval(s, val, true); onCurveChange(); } else { sta... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/014315640235a4a52d00b660672441a07dfa10ea/GraphicsPane.java/buggy/SRC/org/openmicroscopy/shoola/agents/imviewer/rnd/GraphicsPane.java |
startField.selectAll(); | endField.selectAll(); | private void endSelectionHandler() { double s = model.getWindowStart(); double val = Double.parseDouble(endField.getText()); if (val == model.getWindowEnd()) return; if (startFieldValid()) { controller.setInputInterval(s, val, true); onCurveChange(); } else { sta... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/014315640235a4a52d00b660672441a07dfa10ea/GraphicsPane.java/buggy/SRC/org/openmicroscopy/shoola/agents/imviewer/rnd/GraphicsPane.java |
"["+val+","+s+"]"); | "["+s+","+val+"]"); | private void endSelectionHandler() { double s = model.getWindowStart(); double val = Double.parseDouble(endField.getText()); if (val == model.getWindowEnd()) return; if (startFieldValid()) { controller.setInputInterval(s, val, true); onCurveChange(); } else { sta... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/014315640235a4a52d00b660672441a07dfa10ea/GraphicsPane.java/buggy/SRC/org/openmicroscopy/shoola/agents/imviewer/rnd/GraphicsPane.java |
UserNotifier un = ImViewerAgent.getRegistry().getUserNotifier(); un.notifyInfo("Invalid pixels intensity interval", "["+startField.getText()+","+model.getWindowEnd()+"]"); | public void focusLost(FocusEvent fe) { if (fe.getSource() == startField) if (startFieldValid()) startSelectionHandler(); else { UserNotifier un = ImViewerAgent.getRegistry().getUserNotifier(); un.notifyInfo("Invalid pixels intensity interval", "["+startFi... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/014315640235a4a52d00b660672441a07dfa10ea/GraphicsPane.java/buggy/SRC/org/openmicroscopy/shoola/agents/imviewer/rnd/GraphicsPane.java | |
UserNotifier un = ImViewerAgent.getRegistry().getUserNotifier(); un.notifyInfo("Invalid pixels intensity interval", "["+model.getWindowStart()+","+endField.getText()+"]"); | public void focusLost(FocusEvent fe) { if (fe.getSource() == startField) if (startFieldValid()) startSelectionHandler(); else { UserNotifier un = ImViewerAgent.getRegistry().getUserNotifier(); un.notifyInfo("Invalid pixels intensity interval", "["+startFi... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/014315640235a4a52d00b660672441a07dfa10ea/GraphicsPane.java/buggy/SRC/org/openmicroscopy/shoola/agents/imviewer/rnd/GraphicsPane.java | |
public void focusLost(FocusEvent fe) { if (fe.getSource() == startField) if (startFieldValid()) startSelectionHandler(); else { UserNotifier un = ImViewerAgent.getRegistry().getUserNotifier(); un.notifyInfo("Invalid pixels intensity interval", "["+startFi... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/014315640235a4a52d00b660672441a07dfa10ea/GraphicsPane.java/buggy/SRC/org/openmicroscopy/shoola/agents/imviewer/rnd/GraphicsPane.java | ||
TransportManager.unregister(con, item.getTransport().getServiceName()); | TransportUtils.unregister(con, item.getTransport().getServiceName()); | public Transports(final XMPPConnection con) { setLayout(new GridBagLayout()); list = new JList(model); // Use JPanel Renderer list.setCellRenderer(new JPanelRenderer()); TitlePanel titlePanel = new TitlePanel(Res.getString("title.available.transports"), Res.getString("message.regi... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/d039de56513c7dd0e3c5c2762f184ca886fb4900/Transports.java/clean/src/java/org/jivesoftware/sparkimpl/plugin/gateways/Transports.java |
for (Transport transport : TransportManager.getTransports()) { final TransportItem transportItem = new TransportItem(transport, TransportManager.isRegistered(con, transport), transport.getServiceName()); | for (Transport transport : TransportUtils.getTransports()) { final TransportItem transportItem = new TransportItem(transport, TransportUtils.isRegistered(con, transport), transport.getServiceName()); | public Transports(final XMPPConnection con) { setLayout(new GridBagLayout()); list = new JList(model); // Use JPanel Renderer list.setCellRenderer(new JPanelRenderer()); TitlePanel titlePanel = new TitlePanel(Res.getString("title.available.transports"), Res.getString("message.regi... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/d039de56513c7dd0e3c5c2762f184ca886fb4900/Transports.java/clean/src/java/org/jivesoftware/sparkimpl/plugin/gateways/Transports.java |
TransportManager.unregister(con, item.getTransport().getServiceName()); | TransportUtils.unregister(con, item.getTransport().getServiceName()); | public void mouseClicked(MouseEvent e) { if (e.getClickCount() == 2) { TransportItem item = (TransportItem)list.getSelectedValue(); Presence presence = con.getRoster().getPresence(item.getTransport().getServiceName()); boolean registere... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/d039de56513c7dd0e3c5c2762f184ca886fb4900/Transports.java/clean/src/java/org/jivesoftware/sparkimpl/plugin/gateways/Transports.java |
return "ImageAnnotation"+(attributeId==null ? ":Hash"+this.hashCode() : ":"+attributeId); | return "ImageAnnotation"+(attributeId==null ? ":Hash_"+this.hashCode() : ":Id_"+attributeId); | public String toString(){ return "ImageAnnotation"+(attributeId==null ? ":Hash"+this.hashCode() : ":"+attributeId); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/51a3c546dfc7a7a98b29771a459df19094fc5b51/ImageAnnotation.java/buggy/components/common/src/ome/model/ImageAnnotation.java |
this(fileSettings(WEBMACRO_PROPERTIES,null), WEBMACRO_PROPERTIES, null); | this(fileSettings(WEBMACRO_PROPERTIES), WEBMACRO_PROPERTIES); | public Broker() throws InitException { this(fileSettings(WEBMACRO_PROPERTIES,null), WEBMACRO_PROPERTIES, null); } | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/c2d009387a686003be3c3f30bc84f3a302311279/Broker.java/buggy/webmacro/src/org/webmacro/Broker.java |
static private Settings fileSettings(String name, ClassLoader cl) throws InitException | static private Settings fileSettings(String name) throws InitException | static private Settings fileSettings(String name, ClassLoader cl) throws InitException { try { Settings s = initSettings(cl); s.load(name,cl); return s; } catch (IOException e) { throw new InitException("Error reading from " + name, e); } } | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/c2d009387a686003be3c3f30bc84f3a302311279/Broker.java/buggy/webmacro/src/org/webmacro/Broker.java |
Settings s = initSettings(cl); s.load(name,cl); | Settings s = initSettings(); s.load(name); | static private Settings fileSettings(String name, ClassLoader cl) throws InitException { try { Settings s = initSettings(cl); s.load(name,cl); return s; } catch (IOException e) { throw new InitException("Error reading from " + name, e); } } | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/c2d009387a686003be3c3f30bc84f3a302311279/Broker.java/buggy/webmacro/src/org/webmacro/Broker.java |
static private Settings initSettings(ClassLoader cl) throws InitException | static private Settings initSettings() throws InitException | static private Settings initSettings(ClassLoader cl) throws InitException { Settings defaults = new Settings(); try { defaults.load(WEBMACRO_DEFAULTS,cl); } catch (java.io.IOException e) { throw new InitException("IO Error reading " + WEBMACRO_DEFAULTS, e); } return new Set... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/c2d009387a686003be3c3f30bc84f3a302311279/Broker.java/buggy/webmacro/src/org/webmacro/Broker.java |
defaults.load(WEBMACRO_DEFAULTS,cl); | defaults.load(WEBMACRO_DEFAULTS); | static private Settings initSettings(ClassLoader cl) throws InitException { Settings defaults = new Settings(); try { defaults.load(WEBMACRO_DEFAULTS,cl); } catch (java.io.IOException e) { throw new InitException("IO Error reading " + WEBMACRO_DEFAULTS, e); } return new Set... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/c2d009387a686003be3c3f30bc84f3a302311279/Broker.java/buggy/webmacro/src/org/webmacro/Broker.java |
static private Settings urlSettings(URL u, ClassLoader cl) throws InitException | static private Settings urlSettings(URL u) throws InitException | static private Settings urlSettings(URL u, ClassLoader cl) throws InitException { try { Settings s = initSettings(cl); s.load(u); return s; } catch (IOException e) { throw new InitException("Error reading from " + u.toString(), e); } } | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/c2d009387a686003be3c3f30bc84f3a302311279/Broker.java/buggy/webmacro/src/org/webmacro/Broker.java |
Settings s = initSettings(cl); | Settings s = initSettings(); | static private Settings urlSettings(URL u, ClassLoader cl) throws InitException { try { Settings s = initSettings(cl); s.load(u); return s; } catch (IOException e) { throw new InitException("Error reading from " + u.toString(), e); } } | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/c2d009387a686003be3c3f30bc84f3a302311279/Broker.java/buggy/webmacro/src/org/webmacro/Broker.java |
Class cl = Class.forName("org.springframework.beans.factory.xml.BeanDefinitionParserDelegate"); | private static String getVersion() { if (version == null) { try { Class cl = Class.forName("org.springframework.beans.factory.xml.BeanDefinitionParserDelegate"); try { cl.getMethod("parsePropertyElements", new Class[] { Element.class, BeanDefinition... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/229fabc3f6789bc24d41b0cf252788ec82e9d725/XBeanV2Helper.java/buggy/xbean-spring-v2/src/main/java/org/apache/xbean/spring/context/v2/XBeanV2Helper.java | |
cl.getMethod("parsePropertyElements", new Class[] { Element.class, BeanDefinition.class }); version = "v2b"; } catch (NoSuchMethodException e) { version = "v2a"; | Class.forName("org.springframework.beans.factory.parsing.BeanComponentDefinition"); version = "v2c"; } catch (ClassNotFoundException e) { Class cl = Class.forName("org.springframework.beans.factory.xml.BeanDefinitionParserDelegate"); try { cl.getMethod("parsePropertyElements", new Class[] { Element.class, BeanDefinitio... | private static String getVersion() { if (version == null) { try { Class cl = Class.forName("org.springframework.beans.factory.xml.BeanDefinitionParserDelegate"); try { cl.getMethod("parsePropertyElements", new Class[] { Element.class, BeanDefinition... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/229fabc3f6789bc24d41b0cf252788ec82e9d725/XBeanV2Helper.java/buggy/xbean-spring-v2/src/main/java/org/apache/xbean/spring/context/v2/XBeanV2Helper.java |
UIUtilities.centerAndShow(this); | public ROIStatsSaver(ROIStatsMng mng, ROIAgtCtrl control) { super(control.getReferenceFrame(), "Save ROI results", true); manager = new ROIStatsSaverMng(this, mng, control); buildGUI(IconManager.getInstance(control.getRegistry())); pack(); UIUtilities.centerAndShow(this); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0f84715d97fb9bad35cd75d5c742a1473fe1f109/ROIStatsSaver.java/clean/SRC/org/openmicroscopy/shoola/agents/roi/util/ROIStatsSaver.java | |
throw new RaiseException(ruby, "RuntimeError", iaExcptn.getMessage()); | throw new RaiseException(ruby, "RuntimeError", iaExcptn.getMessage()); | 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/0a7181933af700ea8025a4197f3a5ebcc08333c3/ReflectionCallbackMethod.java/clean/org/jruby/core/ReflectionCallbackMethod.java |
throw new RaiseException(ruby, "RuntimeError", iaExcptn.getMessage()); | throw new RaiseException(ruby, "RuntimeError", iaExcptn.getMessage()); | 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/0a7181933af700ea8025a4197f3a5ebcc08333c3/ReflectionCallbackMethod.java/clean/org/jruby/core/ReflectionCallbackMethod.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.