rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
if (getRubyClass() == other.getRubyClass()) { return new RubyNumeric[] {this, other}; } else { return new RubyNumeric[] {RubyFloat.newFloat(getRuby(), getDoubleValue()), RubyFloat.newFloat(getRuby(), other.getDoubleValue())}; } } | if (getRubyClass() == other.getRubyClass()) { return new RubyNumeric[] {this, other}; } else { return new RubyNumeric[] {RubyFloat.newFloat(getRuby(), getDoubleValue()), RubyFloat.newFloat(getRuby(), other.getDoubleValue())}; } } | public RubyNumeric[] getCoerce(RubyNumeric other) { if (getRubyClass() == other.getRubyClass()) { return new RubyNumeric[] {this, other}; } else { return new RubyNumeric[] {RubyFloat.newFloat(getRuby(), getDoubleValue()), RubyFloat.newFloat(getRuby(), other.getDoubleValue())}; ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/e3f72aab20ef1fc8576d8fa6823d9722ed33c55c/RubyNumeric.java/buggy/org/jruby/RubyNumeric.java |
return getRuby().getFalse(); } | return getRuby().getFalse(); } | public RubyBoolean int_p() { return getRuby().getFalse(); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/e3f72aab20ef1fc8576d8fa6823d9722ed33c55c/RubyNumeric.java/buggy/org/jruby/RubyNumeric.java |
return (RubyNumeric)funcall("%", other); } | return (RubyNumeric)funcall("%", other); } | public RubyNumeric modulo(RubyNumeric other) { return (RubyNumeric)funcall("%", other); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/e3f72aab20ef1fc8576d8fa6823d9722ed33c55c/RubyNumeric.java/buggy/org/jruby/RubyNumeric.java |
if (funcall("zero?").isTrue()) { return getRuby().getNil(); } return this; } | if (funcall("zero?").isTrue()) { return getRuby().getNil(); } return this; } | public RubyObject nonzero_p() { if (funcall("zero?").isTrue()) { return getRuby().getNil(); } return this; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/e3f72aab20ef1fc8576d8fa6823d9722ed33c55c/RubyNumeric.java/buggy/org/jruby/RubyNumeric.java |
if (arg instanceof RubyNumeric) { return ((RubyNumeric)arg).getLongValue(); } throw new TypeError(arg.getRuby(), "argument is not numeric"); } | if (arg instanceof RubyNumeric) { return ((RubyNumeric)arg).getLongValue(); } throw new TypeError(arg.getRuby(), "argument is not numeric"); } | public static long num2long(RubyObject arg) { if (arg instanceof RubyNumeric) { return ((RubyNumeric)arg).getLongValue(); } throw new TypeError(arg.getRuby(), "argument is not numeric"); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/e3f72aab20ef1fc8576d8fa6823d9722ed33c55c/RubyNumeric.java/buggy/org/jruby/RubyNumeric.java |
if (!(arg instanceof RubyNumeric)) { throw new TypeError(arg.getRuby(), "argument not numeric"); } return (RubyNumeric)arg; } | if (!(arg instanceof RubyNumeric)) { throw new TypeError(arg.getRuby(), "argument not numeric"); } return (RubyNumeric)arg; } | public static RubyNumeric numericValue(RubyObject arg) { if (!(arg instanceof RubyNumeric)) { throw new TypeError(arg.getRuby(), "argument not numeric"); } return (RubyNumeric)arg; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/e3f72aab20ef1fc8576d8fa6823d9722ed33c55c/RubyNumeric.java/buggy/org/jruby/RubyNumeric.java |
RubyNumeric[] coerce = getCoerce(RubyFixnum.zero(getRuby())); return (RubyNumeric)coerce[1].funcall("-", coerce[0]); } | RubyNumeric[] coerce = getCoerce(RubyFixnum.zero(getRuby())); return (RubyNumeric)coerce[1].funcall("-", coerce[0]); } | public RubyNumeric op_uminus() { RubyNumeric[] coerce = getCoerce(RubyFixnum.zero(getRuby())); return (RubyNumeric)coerce[1].funcall("-", coerce[0]); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/e3f72aab20ef1fc8576d8fa6823d9722ed33c55c/RubyNumeric.java/buggy/org/jruby/RubyNumeric.java |
return this; } | return this; } | public RubyNumeric op_uplus() { return this; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/e3f72aab20ef1fc8576d8fa6823d9722ed33c55c/RubyNumeric.java/buggy/org/jruby/RubyNumeric.java |
return this; } | return this; } | public RubyObject rbClone() { return this; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/e3f72aab20ef1fc8576d8fa6823d9722ed33c55c/RubyNumeric.java/buggy/org/jruby/RubyNumeric.java |
RubyNumeric mod = (RubyNumeric)funcall("%", other); final RubyNumeric zero = RubyFixnum.zero(getRuby()); if (funcall("<", zero).isTrue() && other.funcall(">", zero).isTrue() || funcall(">", zero).isTrue() && other.funcall("<", zero).isTrue()) { return (RubyNumeric)mod.funcall("-", other); } return mod; } | RubyNumeric mod = (RubyNumeric)funcall("%", other); final RubyNumeric zero = RubyFixnum.zero(getRuby()); if (funcall("<", zero).isTrue() && other.funcall(">", zero).isTrue() || funcall(">", zero).isTrue() && other.funcall("<", zero).isTrue()) { return (RubyNumeric)mod.funcall("-", other); } return mod; } | public RubyNumeric remainder(RubyNumeric other) { RubyNumeric mod = (RubyNumeric)funcall("%", other); final RubyNumeric zero = RubyFixnum.zero(getRuby()); if (funcall("<", zero).isTrue() && other.funcall(">", zero).isTrue() || funcall(">", zero).isTrue() &&... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/e3f72aab20ef1fc8576d8fa6823d9722ed33c55c/RubyNumeric.java/buggy/org/jruby/RubyNumeric.java |
return RubyFloat.newFloat(getRuby(), getDoubleValue()).round(); } | return RubyFloat.newFloat(getRuby(), getDoubleValue()).round(); } | public RubyInteger round() { return RubyFloat.newFloat(getRuby(), getDoubleValue()).round(); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/e3f72aab20ef1fc8576d8fa6823d9722ed33c55c/RubyNumeric.java/buggy/org/jruby/RubyNumeric.java |
String str = arg.getValue().trim(); double d = 0.0; int pos = str.length(); for (int i = 0; i < pos; i++) { if ("0123456789eE+-.".indexOf(str.charAt(i)) == -1) { pos = i + 1; break; } } for (; pos > 0; pos--) { try { d = Double.parseDouble(str.substring(0, pos)); } catch (NumberFormatException ex) { continue; } break; ... | String str = arg.getValue().trim(); double d = 0.0; int pos = str.length(); for (int i = 0; i < pos; i++) { if ("0123456789eE+-.".indexOf(str.charAt(i)) == -1) { pos = i + 1; break; } } for (; pos > 0; pos--) { try { d = Double.parseDouble(str.substring(0, pos)); } catch (NumberFormatException ex) { continue; } break; ... | public static RubyFloat str2fnum(Ruby ruby, RubyString arg) { String str = arg.getValue().trim(); double d = 0.0; int pos = str.length(); for (int i = 0; i < pos; i++) { if ("0123456789eE+-.".indexOf(str.charAt(i)) == -1) { pos = i + 1; break; ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/e3f72aab20ef1fc8576d8fa6823d9722ed33c55c/RubyNumeric.java/buggy/org/jruby/RubyNumeric.java |
StringBuffer sbuf = new StringBuffer(str.getValue().trim()); if (sbuf.length() == 0) { return RubyFixnum.zero(ruby); } int pos = 0; int radix = (base != 0) ? base : 10; boolean digitsFound = false; if (sbuf.charAt(pos) == '-') { pos++; } else if (sbuf.charAt(pos) == '+') { sbuf.deleteCharAt(pos); } if (pos == sbuf.leng... | StringBuffer sbuf = new StringBuffer(str.getValue().trim()); if (sbuf.length() == 0) { return RubyFixnum.zero(ruby); } int pos = 0; int radix = (base != 0) ? base : 10; boolean digitsFound = false; if (sbuf.charAt(pos) == '-') { pos++; } else if (sbuf.charAt(pos) == '+') { sbuf.deleteCharAt(pos); } if (pos == sbuf.leng... | public static RubyInteger str2inum(Ruby ruby, RubyString str, int base) { StringBuffer sbuf = new StringBuffer(str.getValue().trim()); if (sbuf.length() == 0) { return RubyFixnum.zero(ruby); } int pos = 0; int radix = (base != 0) ? base : 10; boolean digitsFound ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/e3f72aab20ef1fc8576d8fa6823d9722ed33c55c/RubyNumeric.java/buggy/org/jruby/RubyNumeric.java |
return RubyFloat.newFloat(getRuby(), getDoubleValue()).truncate(); } | return RubyFloat.newFloat(getRuby(), getDoubleValue()).truncate(); } | public RubyInteger truncate() { return RubyFloat.newFloat(getRuby(), getDoubleValue()).truncate(); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/e3f72aab20ef1fc8576d8fa6823d9722ed33c55c/RubyNumeric.java/buggy/org/jruby/RubyNumeric.java |
return equal(RubyFixnum.zero(getRuby())); } | return equal(RubyFixnum.zero(getRuby())); } | public RubyBoolean zero_p() { return equal(RubyFixnum.zero(getRuby())); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/e3f72aab20ef1fc8576d8fa6823d9722ed33c55c/RubyNumeric.java/buggy/org/jruby/RubyNumeric.java |
currentLoader = new ThumbnailLoader(component, browser.getImages()); | currentLoader = new ThumbnailLoader(component, images); | void fireThumbnailLoading() { state = HiViewer.LOADING_THUMBNAILS; currentLoader = new ThumbnailLoader(component, browser.getImages()); currentLoader.load(); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/e123367d3b024349b8d299ef57fb0e01d9f51942/HiViewerModel.java/clean/SRC/org/openmicroscopy/shoola/agents/hiviewer/view/HiViewerModel.java |
System.err.println(footprint.getWidth()+","+footprint.getWidth()); System.err.println("dim:"+width+","+height); | public void setZoomLevel(double zoomLevel) { // error condition if(zoomLevel <= 0) { return; } if(scaleToShow) return; Dimension dim = getSize(); double width = dim.getWidth(); double height = dim.getHeight(); double scale ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/186ead79c1ec71a6147b8b6e6e37ef46e68e9924/BrowserView.java/buggy/SRC/org/openmicroscopy/shoola/agents/browser/ui/BrowserView.java | |
if((viewCenterY - (scale/zoomLevel)*viewWidth/2) < 0) | if((viewCenterY - (scale/zoomLevel)*viewHeight/2) < 0) | public void setZoomLevel(double zoomLevel) { // error condition if(zoomLevel <= 0) { return; } if(scaleToShow) return; Dimension dim = getSize(); double width = dim.getWidth(); double height = dim.getHeight(); double scale ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/186ead79c1ec71a6147b8b6e6e37ef46e68e9924/BrowserView.java/buggy/SRC/org/openmicroscopy/shoola/agents/browser/ui/BrowserView.java |
public void updateConstraints() { Dimension dimension = getSize(); double width = dimension.getWidth(); double height = dimension.getHeight(); double xRatio = width / footprint.getWidth(); double yRatio = height / footprint.getHeight(); if(Math.mi... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/186ead79c1ec71a6147b8b6e6e37ef46e68e9924/BrowserView.java/buggy/SRC/org/openmicroscopy/shoola/agents/browser/ui/BrowserView.java | ||
System.err.println(footprint); System.err.println("Dim: "+width+","+height); | public void updateConstraints() { Dimension dimension = getSize(); double width = dimension.getWidth(); double height = dimension.getHeight(); double xRatio = width / footprint.getWidth(); double yRatio = height / footprint.getHeight(); if(Math.mi... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/186ead79c1ec71a6147b8b6e6e37ef46e68e9924/BrowserView.java/buggy/SRC/org/openmicroscopy/shoola/agents/browser/ui/BrowserView.java | |
{ super(control.getReferenceFrame(), "Image inspector"); init(control, canvas, magFactor); setJMenuBar(menuBar); buildGUI(); | { super(control.getReferenceFrame(), "Image inspector"); init(control, canvas, magFactor); setJMenuBar(menuBar); buildGUI(); | public ImageInspector(ViewerCtrl control, ImageCanvas canvas, double magFactor) { super(control.getReferenceFrame(), "Image inspector"); init(control, canvas, magFactor); setJMenuBar(menuBar); buildGUI(); pack(); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a2f4cd0a125d188c1e246cd85608e59a51e3d85c/ImageInspector.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/transform/ImageInspector.java |
} | } | public ImageInspector(ViewerCtrl control, ImageCanvas canvas, double magFactor) { super(control.getReferenceFrame(), "Image inspector"); init(control, canvas, magFactor); setJMenuBar(menuBar); buildGUI(); pack(); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a2f4cd0a125d188c1e246cd85608e59a51e3d85c/ImageInspector.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/transform/ImageInspector.java |
{ | { | private void buildGUI() { setResizable(false); getContentPane().add(toolBar, BorderLayout.NORTH); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a2f4cd0a125d188c1e246cd85608e59a51e3d85c/ImageInspector.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/transform/ImageInspector.java |
getContentPane().add(toolBar, BorderLayout.NORTH); } | getContentPane().add(toolBar, BorderLayout.NORTH); } | private void buildGUI() { setResizable(false); getContentPane().add(toolBar, BorderLayout.NORTH); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a2f4cd0a125d188c1e246cd85608e59a51e3d85c/ImageInspector.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/transform/ImageInspector.java |
{ Registry reg = control.getRegistry(); manager = new ImageInspectorManager(this, control, magFactor); | { Registry reg = control.getRegistry(); manager = new ImageInspectorManager(this, control, magFactor); | private void init(ViewerCtrl control, ImageCanvas canvas, double magFactor) { Registry reg = control.getRegistry(); manager = new ImageInspectorManager(this, control, magFactor); BufferedImage img = control.getBufferedImage(); manager.setImageDimension(img.getWidth(), img.getHeight()); manager.setCanv... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a2f4cd0a125d188c1e246cd85608e59a51e3d85c/ImageInspector.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/transform/ImageInspector.java |
manager.setImageDimension(img.getWidth(), img.getHeight()); | manager.setImageDimension(img.getWidth(), img.getHeight()); | private void init(ViewerCtrl control, ImageCanvas canvas, double magFactor) { Registry reg = control.getRegistry(); manager = new ImageInspectorManager(this, control, magFactor); BufferedImage img = control.getBufferedImage(); manager.setImageDimension(img.getWidth(), img.getHeight()); manager.setCanv... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a2f4cd0a125d188c1e246cd85608e59a51e3d85c/ImageInspector.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/transform/ImageInspector.java |
menuBar = new MenuBar(manager, magFactor); toolBar = new ToolBar(reg, manager, magFactor); } | menuBar = new MenuBar(manager, magFactor); toolBar = new ToolBar(reg, manager, magFactor); } | private void init(ViewerCtrl control, ImageCanvas canvas, double magFactor) { Registry reg = control.getRegistry(); manager = new ImageInspectorManager(this, control, magFactor); BufferedImage img = control.getBufferedImage(); manager.setImageDimension(img.getWidth(), img.getHeight()); manager.setCanv... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a2f4cd0a125d188c1e246cd85608e59a51e3d85c/ImageInspector.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/transform/ImageInspector.java |
this.outStream = new BufferedOutputStream(new FileOutputStream(file, append)); | this.outStream = new BufferedOutputStream(new FileOutputStream(file.getAbsolutePath(), append)); | protected void openInternal(String path, String mode) { this.path = path; setMode(mode); File file = new File(path); try { if (isReadable()) { this.inStream = new RubyInputStream(new BufferedInputStream(new FileInputStream(file))); }... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/263d8797aa5be7bc604097d1d483cf474b827c91/RubyFile.java/buggy/org/jruby/RubyFile.java |
test that row is gone. | fail("test that row is gone."); | public void testAndHeresHowWeUnlinkThings() throws Exception { // Method 1: saveImage(); List updated = unlinkImage(); iUpdate.saveCollection( updated ); test that row is gone. // Method 2: saveImage(); updated = unlinkImage(); iPojos... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/219ccffc5a6aec003f33d7752f571d33549cce00/PojosServiceTest.java/clean/components/shoola-adapter/test/ome/adapters/pojos/itests/PojosServiceTest.java |
link.setChild( c ); | link.setChild( d ); | public void testAndHeresHowWeUnlinkThings() throws Exception { // Method 1: saveImage(); List updated = unlinkImage(); iUpdate.saveCollection( updated ); test that row is gone. // Method 2: saveImage(); updated = unlinkImage(); iPojos... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/219ccffc5a6aec003f33d7752f571d33549cce00/PojosServiceTest.java/clean/components/shoola-adapter/test/ome/adapters/pojos/itests/PojosServiceTest.java |
console.setLayout(new BorderLayout()); | console.getContentPane().setLayout(new BorderLayout()); | public static void main(String[] args) { final IRBConsole console = new IRBConsole("JRuby IRB Console"); PipedInputStream pipeIn = new PipedInputStream(); console.setLayout(new BorderLayout()); console.setSize(700, 600); JEditorPane text = new JTextPane(); ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a757121012744f77b135696456ba9a8170135244/IRBConsole.java/buggy/src/org/jruby/demo/IRBConsole.java |
console.add(pane); | console.getContentPane().add(pane); | public static void main(String[] args) { final IRBConsole console = new IRBConsole("JRuby IRB Console"); PipedInputStream pipeIn = new PipedInputStream(); console.setLayout(new BorderLayout()); console.setSize(700, 600); JEditorPane text = new JTextPane(); ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a757121012744f77b135696456ba9a8170135244/IRBConsole.java/buggy/src/org/jruby/demo/IRBConsole.java |
for (int i = 0, len = getLength(); i < len; i++) { if (obj.callMethod(context, "==", entry(i)).isTrue()) { | int len = getLength(); for (int i = 0; i < len; i++) { if (entry(i).callMethod(context, "==", obj).isTrue()) { | public IRubyObject index(IRubyObject obj) { ThreadContext context = getRuntime().getCurrentContext(); for (int i = 0, len = getLength(); i < len; i++) { if (obj.callMethod(context, "==", entry(i)).isTrue()) { return getRuntime().newFixnum(i); } } retu... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1e0d087fdeb07557be3a064979fee7e0534c215f/RubyArray.java/buggy/src/org/jruby/RubyArray.java |
if (obj.callMethod(context, "==", entry(i)).isTrue()) { | if (entry(i).callMethod(context, "==", obj).isTrue()) { | public IRubyObject rindex(IRubyObject obj) { ThreadContext context = getRuntime().getCurrentContext(); for (int i = getLength() - 1; i >= 0; i--) { if (obj.callMethod(context, "==", entry(i)).isTrue()) { return getRuntime().newFixnum(i); } } return ge... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1e0d087fdeb07557be3a064979fee7e0534c215f/RubyArray.java/buggy/src/org/jruby/RubyArray.java |
if (argCount(args, 1, 2) == 2) { int beg = RubyNumeric.fix2int(args[0]); int len = RubyNumeric.fix2int(args[1]); return substr(beg, len); } if (args[0] instanceof RubyFixnum) { int idx = RubyNumeric.fix2int(args[0]); if (idx < 0) { idx += getValue().length(); } if (idx < 0 || idx >= getValue().length()) { return getRun... | try { return arefWithErrors(args); } catch (IndexError e) { } catch (RangeError e) { } return getRuntime().getNil(); | public IRubyObject aref(IRubyObject[] args) { if (argCount(args, 1, 2) == 2) { int beg = RubyNumeric.fix2int(args[0]); int len = RubyNumeric.fix2int(args[1]); return substr(beg, len); } if (args[0] instanceof RubyFixnum) { int idx = RubyNumeric.fix2int(args[0]); if (idx < 0) { idx += getValue().length(... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/4e8afef0dba3b66a390c9ba70b997174b975fc0e/RubyString.java/clean/src/org/jruby/RubyString.java |
/* use Java implementatiom */ return getValue().compareTo(other.getValue()); | int value = getValue().compareTo(other.getValue()); return value < 0 ? -1 : value > 0 ? 1 : 0; | public int cmp(RubyString other) { /* use Java implementatiom */ return getValue().compareTo(other.getValue()); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/4e8afef0dba3b66a390c9ba70b997174b975fc0e/RubyString.java/clean/src/org/jruby/RubyString.java |
IRubyObject result = aref(args); | IRubyObject result = arefWithErrors(args); | public IRubyObject slice_bang(IRubyObject[] args) { int argc = argCount(args, 1, 2); IRubyObject[] newArgs = new IRubyObject[argc + 1]; newArgs[0] = args[0]; if (argc > 1) { newArgs[1] = args[1]; } newArgs[argc] = newString(""); IRubyObject result = aref(args); aset(newArgs); return result; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/4e8afef0dba3b66a390c9ba70b997174b975fc0e/RubyString.java/clean/src/org/jruby/RubyString.java |
RubyString newString = newString(getValue()); return newString.swapcase_bang(); | RubyString newString = newString(getValue()); IRubyObject swappedString = newString.swapcase_bang(); if (swappedString.isNil() == true) { return newString; } return (RubyString) swappedString; | public RubyString swapcase() { RubyString newString = newString(getValue()); return newString.swapcase_bang(); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/4e8afef0dba3b66a390c9ba70b997174b975fc0e/RubyString.java/clean/src/org/jruby/RubyString.java |
public RubyString swapcase_bang() { | public IRubyObject swapcase_bang() { | public RubyString swapcase_bang() { char[] chars = getValue().toCharArray(); StringBuffer sb = new StringBuffer(chars.length); for (int i = 0; i < chars.length; i++) { if (!Character.isLetter(chars[i])) { sb.append(chars[i]); } else if (Character.isLowerCase(chars[i])) { sb.append(Character.toUpperCase(ch... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/4e8afef0dba3b66a390c9ba70b997174b975fc0e/RubyString.java/clean/src/org/jruby/RubyString.java |
setValue(getValue().toLowerCase()); | if (changesMade) { setValue(sb.toString()); return this; } | public RubyString swapcase_bang() { char[] chars = getValue().toCharArray(); StringBuffer sb = new StringBuffer(chars.length); for (int i = 0; i < chars.length; i++) { if (!Character.isLetter(chars[i])) { sb.append(chars[i]); } else if (Character.isLowerCase(chars[i])) { sb.append(Character.toUpperCase(ch... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/4e8afef0dba3b66a390c9ba70b997174b975fc0e/RubyString.java/clean/src/org/jruby/RubyString.java |
return this; | return runtime.getNil(); | public RubyString swapcase_bang() { char[] chars = getValue().toCharArray(); StringBuffer sb = new StringBuffer(chars.length); for (int i = 0; i < chars.length; i++) { if (!Character.isLetter(chars[i])) { sb.append(chars[i]); } else if (Character.isLowerCase(chars[i])) { sb.append(Character.toUpperCase(ch... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/4e8afef0dba3b66a390c9ba70b997174b975fc0e/RubyString.java/clean/src/org/jruby/RubyString.java |
runInterpreter(args[i], "command line " + i); | runInterpreter(args[i], "command line " + i, new String[0]); | public static void main (String args[]) { System.out.println(); System.out.println("----------------------------------------------------"); System.out.println("--- WARNING this is an ALPHA version of JRuby!!! ---"); System.out.println("----------------------------------------------------... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/cf644c556d410c47305ebeba5728efa25f7756dc/Main.java/clean/org/jruby/Main.java |
runInterpreterOnFile(args[i]); | String[] argv = new String[lenArg - i - 1]; System.arraycopy(args, i + 1, argv, 0, argv.length); runInterpreterOnFile(args[i], argv); break; | public static void main (String args[]) { System.out.println(); System.out.println("----------------------------------------------------"); System.out.println("--- WARNING this is an ALPHA version of JRuby!!! ---"); System.out.println("----------------------------------------------------... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/cf644c556d410c47305ebeba5728efa25f7756dc/Main.java/clean/org/jruby/Main.java |
protected static void runInterpreter(String iString2Eval, String iFileName) { | protected static void runInterpreter(String iString2Eval, String iFileName, String[] args) { | protected static void runInterpreter(String iString2Eval, String iFileName) { // Initialize Runtime Ruby ruby = new Ruby(); // Parse and interpret file RubyString rs = RubyString.m_newString(ruby, iString2Eval); // New Version // // ruby.getInterpreter().eva... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/cf644c556d410c47305ebeba5728efa25f7756dc/Main.java/clean/org/jruby/Main.java |
ruby.getInterpreter().eval(ruby.getClasses().getObjectClass(), p.rb_compile_string(iFileName, rs, 0)); | ruby.getInterpreter().eval(ruby.getRubyTopSelf(), p.rb_compile_string(iFileName, rs, 0)); | protected static void runInterpreter(String iString2Eval, String iFileName) { // Initialize Runtime Ruby ruby = new Ruby(); // Parse and interpret file RubyString rs = RubyString.m_newString(ruby, iString2Eval); // New Version // // ruby.getInterpreter().eva... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/cf644c556d410c47305ebeba5728efa25f7756dc/Main.java/clean/org/jruby/Main.java |
protected static void runInterpreterOnFile(String fileName) { | protected static void runInterpreterOnFile(String fileName, String[] args) { | protected static void runInterpreterOnFile(String fileName) { File rubyFile = new File(fileName); if (!rubyFile.canRead()) { System.out.println("Cannot read Rubyfile: \"" + fileName + "\""); } else { try { StringBuffer sb = new StringBuffer((int)rubyFile.len... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/cf644c556d410c47305ebeba5728efa25f7756dc/Main.java/clean/org/jruby/Main.java |
runInterpreter(sb.toString(), fileName); | runInterpreter(sb.toString(), fileName, args); | protected static void runInterpreterOnFile(String fileName) { File rubyFile = new File(fileName); if (!rubyFile.canRead()) { System.out.println("Cannot read Rubyfile: \"" + fileName + "\""); } else { try { StringBuffer sb = new StringBuffer((int)rubyFile.len... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/cf644c556d410c47305ebeba5728efa25f7756dc/Main.java/clean/org/jruby/Main.java |
item.setCacheEnabled(false); | private UIComponent getPreviewPanel() { String ref = ARTICLE_ITEM_BEAN_ID + "."; WFComponentSelector cs = new WFComponentSelector(); cs.setId(COMPONENT_SELECTOR_ID); HtmlPanelGrid p = WFPanelUtil.getPlainFormPanel(1); p.setId(NO_ARTICLE_ID); p.getChildren().add(WFResourceUtil.getResourceUtilArticle().getHeader... | 57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/18f3f17c7d7e21ff910a232da3187e72e9de9847/ArticlePreview.java/clean/src/java/com/idega/block/article/component/ArticlePreview.java | |
String headline = WFUtil.getStringValue(ARTICLE_ITEM_BEAN_ID, "headline"); | ArticleItemBean articleBean = (ArticleItemBean) WFUtil.getBeanInstance(ARTICLE_ITEM_BEAN_ID); String headline = articleBean.getHeadline(); | private void selectComponent() { WFComponentSelector cs = (WFComponentSelector) findComponent(COMPONENT_SELECTOR_ID); String headline = WFUtil.getStringValue(ARTICLE_ITEM_BEAN_ID, "headline"); if (cs != null) { if (headline == null || headline.length() == 0) { cs.setSelectedId(NO_ARTICLE_ID, true); cs.setS... | 57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/18f3f17c7d7e21ff910a232da3187e72e9de9847/ArticlePreview.java/clean/src/java/com/idega/block/article/component/ArticlePreview.java |
fw.reset(out); | if (fw != null) { fw.reset(out); return fw; } | public static FastWriter getInstance(OutputStream out, String encoding) throws UnsupportedEncodingException { FastWriter fw = null; SimpleStack ss = (SimpleStack) _writerCache.get(encoding); if (ss != null) { fw = (FastWriter) ss.pop(); fw.reset(out); } if (fw == null... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/cb054e2b23a228172377a547332c169ee70338d4/FastWriter.java/clean/webmacro/src/org/webmacro/FastWriter.java |
if (fw == null) { fw = new FastWriter(out,encoding); } return fw; | return new FastWriter(out,encoding); | public static FastWriter getInstance(OutputStream out, String encoding) throws UnsupportedEncodingException { FastWriter fw = null; SimpleStack ss = (SimpleStack) _writerCache.get(encoding); if (ss != null) { fw = (FastWriter) ss.pop(); fw.reset(out); } if (fw == null... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/cb054e2b23a228172377a547332c169ee70338d4/FastWriter.java/clean/webmacro/src/org/webmacro/FastWriter.java |
} else if (obj instanceof HashMap) { | } else if (obj instanceof Map) { | Object clean(Object obj) { //TODO push OMEModel down into all calls if (null != obj) { if (obj instanceof OMEModel) { daoUtils.clean((OMEModel) obj); } else if (obj instanceof Set) { daoUtils.clean((Set) obj); } else if (obj instanceof Has... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/5e29e25bb21b2a51d4b44f9fd80b5b876b782887/HierarchyBrowsingImpl.java/clean/components/server/src/org/openmicroscopy/omero/logic/HierarchyBrowsingImpl.java |
return sortDatasetAnnotations(result); | return (Map) clean(sortDatasetAnnotations(result)); | public Map findDatasetAnnotationsForExperimenter(final Set arg0, final int arg1) { // CONTRACT if (null == arg0 || arg0.size() == 0) { return new HashMap(); } List result = annotationDao.findDataListAnnotationForExperimenter(arg0, arg1); return... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/5e29e25bb21b2a51d4b44f9fd80b5b876b782887/HierarchyBrowsingImpl.java/clean/components/server/src/org/openmicroscopy/omero/logic/HierarchyBrowsingImpl.java |
return RubyArray.create(this, new IRubyObject[] { begin(index), end(index)}); | return RubyArray.newArray(getRuntime(), new IRubyObject[] { begin(index), end(index)}); | public IRubyObject offset(RubyFixnum index) { if (outOfBounds(index)) { return getRuntime().getNil(); } return RubyArray.create(this, new IRubyObject[] { begin(index), end(index)}); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/3acff782b00a5f6892fe6bd44e0665cc6194f9aa/RubyMatchData.java/clean/org/jruby/RubyMatchData.java |
assertFalse(none.isGranted(USER, USE)); | public void testCopyConstructor() throws Exception { Permissions p1 = new Permissions(); p1.revoke(GROUP, WRITE); assertFalse(p1.isGranted(GROUP, WRITE)); Permissions p2 = new Permissions(p1); assertFalse(p2.isGranted(GROUP, WRITE)); Permissions none = new Permissions(Permissions.EMPTY); assertFalse(none.isGr... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ef6436b412344c22aec4fc69cd3a0dab5bcd6249/PermissionsTest.java/buggy/components/common/test/ome/model/utests/PermissionsTest.java | |
assertFalse(none.isGranted(GROUP, USE)); | public void testCopyConstructor() throws Exception { Permissions p1 = new Permissions(); p1.revoke(GROUP, WRITE); assertFalse(p1.isGranted(GROUP, WRITE)); Permissions p2 = new Permissions(p1); assertFalse(p2.isGranted(GROUP, WRITE)); Permissions none = new Permissions(Permissions.EMPTY); assertFalse(none.isGr... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ef6436b412344c22aec4fc69cd3a0dab5bcd6249/PermissionsTest.java/buggy/components/common/test/ome/model/utests/PermissionsTest.java | |
assertFalse(none.isGranted(WORLD, USE)); | public void testCopyConstructor() throws Exception { Permissions p1 = new Permissions(); p1.revoke(GROUP, WRITE); assertFalse(p1.isGranted(GROUP, WRITE)); Permissions p2 = new Permissions(p1); assertFalse(p2.isGranted(GROUP, WRITE)); Permissions none = new Permissions(Permissions.EMPTY); assertFalse(none.isGr... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ef6436b412344c22aec4fc69cd3a0dab5bcd6249/PermissionsTest.java/buggy/components/common/test/ome/model/utests/PermissionsTest.java | |
revokeGrantCheck(USER, USE); | public void testGrantAndRevokePermissions() throws Exception { revokeGrantCheck(USER, READ); revokeGrantCheck(USER, WRITE); revokeGrantCheck(USER, USE); revokeGrantCheck(GROUP, READ); revokeGrantCheck(GROUP, WRITE); revokeGrantCheck(GROUP, USE); revokeGrantCheck(WORLD, READ); revokeGrantCheck(WORLD, WRITE); r... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ef6436b412344c22aec4fc69cd3a0dab5bcd6249/PermissionsTest.java/buggy/components/common/test/ome/model/utests/PermissionsTest.java | |
revokeGrantCheck(GROUP, USE); | public void testGrantAndRevokePermissions() throws Exception { revokeGrantCheck(USER, READ); revokeGrantCheck(USER, WRITE); revokeGrantCheck(USER, USE); revokeGrantCheck(GROUP, READ); revokeGrantCheck(GROUP, WRITE); revokeGrantCheck(GROUP, USE); revokeGrantCheck(WORLD, READ); revokeGrantCheck(WORLD, WRITE); r... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ef6436b412344c22aec4fc69cd3a0dab5bcd6249/PermissionsTest.java/buggy/components/common/test/ome/model/utests/PermissionsTest.java | |
revokeGrantCheck(WORLD, USE); | public void testGrantAndRevokePermissions() throws Exception { revokeGrantCheck(USER, READ); revokeGrantCheck(USER, WRITE); revokeGrantCheck(USER, USE); revokeGrantCheck(GROUP, READ); revokeGrantCheck(GROUP, WRITE); revokeGrantCheck(GROUP, USE); revokeGrantCheck(WORLD, READ); revokeGrantCheck(WORLD, WRITE); r... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ef6436b412344c22aec4fc69cd3a0dab5bcd6249/PermissionsTest.java/buggy/components/common/test/ome/model/utests/PermissionsTest.java | |
assertTrue(p.isGranted(USER, USE)); | public void testSimplePermissionsAllowsEverything() throws Exception { assertTrue(p.isGranted(USER, READ)); assertTrue(p.isGranted(USER, WRITE)); assertTrue(p.isGranted(USER, USE)); assertTrue(p.isGranted(GROUP, READ)); assertTrue(p.isGranted(GROUP, WRITE)); assertTrue(p.isGranted(GROUP, USE)); assertTrue(p.isG... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ef6436b412344c22aec4fc69cd3a0dab5bcd6249/PermissionsTest.java/buggy/components/common/test/ome/model/utests/PermissionsTest.java | |
assertTrue(p.isGranted(GROUP, USE)); | public void testSimplePermissionsAllowsEverything() throws Exception { assertTrue(p.isGranted(USER, READ)); assertTrue(p.isGranted(USER, WRITE)); assertTrue(p.isGranted(USER, USE)); assertTrue(p.isGranted(GROUP, READ)); assertTrue(p.isGranted(GROUP, WRITE)); assertTrue(p.isGranted(GROUP, USE)); assertTrue(p.isG... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ef6436b412344c22aec4fc69cd3a0dab5bcd6249/PermissionsTest.java/buggy/components/common/test/ome/model/utests/PermissionsTest.java | |
assertTrue(p.isGranted(WORLD, USE)); | public void testSimplePermissionsAllowsEverything() throws Exception { assertTrue(p.isGranted(USER, READ)); assertTrue(p.isGranted(USER, WRITE)); assertTrue(p.isGranted(USER, USE)); assertTrue(p.isGranted(GROUP, READ)); assertTrue(p.isGranted(GROUP, WRITE)); assertTrue(p.isGranted(GROUP, USE)); assertTrue(p.isG... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ef6436b412344c22aec4fc69cd3a0dab5bcd6249/PermissionsTest.java/buggy/components/common/test/ome/model/utests/PermissionsTest.java | |
bitCompare(USER, USE); | public void testToBits() throws Exception { bitCompare(USER, READ); bitCompare(USER, WRITE); bitCompare(USER, USE); bitCompare(GROUP, READ); bitCompare(GROUP, WRITE); bitCompare(GROUP, USE); bitCompare(WORLD, READ); bitCompare(WORLD, WRITE); bitCompare(WORLD, USE); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ef6436b412344c22aec4fc69cd3a0dab5bcd6249/PermissionsTest.java/buggy/components/common/test/ome/model/utests/PermissionsTest.java | |
bitCompare(GROUP, USE); | public void testToBits() throws Exception { bitCompare(USER, READ); bitCompare(USER, WRITE); bitCompare(USER, USE); bitCompare(GROUP, READ); bitCompare(GROUP, WRITE); bitCompare(GROUP, USE); bitCompare(WORLD, READ); bitCompare(WORLD, WRITE); bitCompare(WORLD, USE); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ef6436b412344c22aec4fc69cd3a0dab5bcd6249/PermissionsTest.java/buggy/components/common/test/ome/model/utests/PermissionsTest.java | |
bitCompare(WORLD, USE); | public void testToBits() throws Exception { bitCompare(USER, READ); bitCompare(USER, WRITE); bitCompare(USER, USE); bitCompare(GROUP, READ); bitCompare(GROUP, WRITE); bitCompare(GROUP, USE); bitCompare(WORLD, READ); bitCompare(WORLD, WRITE); bitCompare(WORLD, USE); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ef6436b412344c22aec4fc69cd3a0dab5bcd6249/PermissionsTest.java/buggy/components/common/test/ome/model/utests/PermissionsTest.java | |
p.revoke(GROUP, USE,READ,WRITE); | p.revoke(GROUP, READ,WRITE); | public void testVarArgs() throws Exception { p.revoke(GROUP, USE,READ,WRITE); assertFalse( p.isGranted(GROUP, READ)); assertFalse( p.isGranted(GROUP, WRITE)); assertFalse( p.isGranted(GROUP, USE)); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ef6436b412344c22aec4fc69cd3a0dab5bcd6249/PermissionsTest.java/buggy/components/common/test/ome/model/utests/PermissionsTest.java |
assertFalse( p.isGranted(GROUP, USE)); | public void testVarArgs() throws Exception { p.revoke(GROUP, USE,READ,WRITE); assertFalse( p.isGranted(GROUP, READ)); assertFalse( p.isGranted(GROUP, WRITE)); assertFalse( p.isGranted(GROUP, USE)); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ef6436b412344c22aec4fc69cd3a0dab5bcd6249/PermissionsTest.java/buggy/components/common/test/ome/model/utests/PermissionsTest.java | |
DataHandler dh = model.annotateDataObjects(nodes); | DataHandler dh = model.annotateDataObjects(view, nodes); | public void annotate(TreeImageDisplay[] nodes) { if (model.getState() == DISCARDED) throw new IllegalStateException("This method cannot be invoked " + "in the DISCARDED state."); if (nodes == null) throw new IllegalArgumentException("No dataObject to annotate"); if (nodes.length == 1... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/464efde90db6bc5095c0a7e5952f51ad0f37ca86/TreeViewerComponent.java/clean/SRC/org/openmicroscopy/shoola/agents/treeviewer/view/TreeViewerComponent.java |
firePropertyChange(THUMBNAIL_LOADED_PROPERTY, null, thumbnail); | model.getEditor().setThumbnail(thumbnail); | public void setThumbnail(BufferedImage thumbnail) { if (model.getState() == LOADING_THUMBNAIL) { model.setState(READY); if (thumbnail != null) firePropertyChange(THUMBNAIL_LOADED_PROPERTY, null, thumbnail); fireStateChange(); } } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/464efde90db6bc5095c0a7e5952f51ad0f37ca86/TreeViewerComponent.java/clean/SRC/org/openmicroscopy/shoola/agents/treeviewer/view/TreeViewerComponent.java |
DataHandler dh = model.classifyImageObjects(images, mode); | DataHandler dh = model.classifyImageObjects(view, images, mode); | public void showClassifier(ImageData[] images, int mode) { switch (model.getState()) { //case READY: case DISCARDED: throw new IllegalStateException("This method should cannot " + "be invoked in the DISCARDED state."); } if (images ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/464efde90db6bc5095c0a7e5952f51ad0f37ca86/TreeViewerComponent.java/clean/SRC/org/openmicroscopy/shoola/agents/treeviewer/view/TreeViewerComponent.java |
defineMethod("binding", Arity.noArguments(), "binding"); | protected void initializeClass() { defineMethod("arity", Arity.noArguments(), "arity"); defineMethod("call", Arity.optional(), "call"); defineAlias("[]", "call"); defineMethod("to_proc", Arity.noArguments(), "to_proc"); defineSingletonMethod("new", Arity.optional(), "newInstance"); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/62395b140d1fb0b5b75ba224eb0f4b564f70979b/ProcMetaClass.java/buggy/src/org/jruby/runtime/builtin/meta/ProcMetaClass.java | |
thumbnails.add(thumb.getImageFor(node)); | thumbnails.add(thumb.getDisplayedImage()); | public void visit(ImageNode node) { Thumbnail thumb = node.getThumbnail(); thumbnails.add(thumb.getImageFor(node)); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/2509d546984c0580d2b4a547fed842ec745b87b2/SaveThumbnailsVisitor.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/cmd/SaveThumbnailsVisitor.java |
public PDILoader(HiViewer viewer, Set images) | public PDILoader(HiViewer viewer, Set images, boolean refresh) | public PDILoader(HiViewer viewer, Set images) { super(viewer); this.images = images; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/fb3743d6f75abbf12f788b3b2925f4a6f4606dd6/PDILoader.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/PDILoader.java |
this.refresh = refresh; | public PDILoader(HiViewer viewer, Set images) { super(viewer); this.images = images; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/fb3743d6f75abbf12f788b3b2925f4a6f4606dd6/PDILoader.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/PDILoader.java | |
viewer.setHierarchyRoots((Set) result, false); | viewer.setHierarchyRoots((Set) result, false, refresh); | public void handleResult(Object result) { if (viewer.getState() == HiViewer.DISCARDED) return; //Async cancel. viewer.setHierarchyRoots((Set) result, false); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/fb3743d6f75abbf12f788b3b2925f4a6f4606dd6/PDILoader.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/PDILoader.java |
scanner = new StringScanner(((RubyString)args[0]).getValue()); | scanner = new StringScanner(args[0].convertToString().getValue()); | public IRubyObject initialize(IRubyObject[] args) { if (checkArgumentCount(args, 0, 2) > 0) { scanner = new StringScanner(((RubyString)args[0]).getValue()); } else { scanner = new StringScanner(); } return this; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/ea4e25f1262c817873877b14c2a82825f1420dd0/RubyStringScanner.java/buggy/src/org/jruby/RubyStringScanner.java |
if (proxy.searchMethod(methodName) == UndefinedMethod.getInstance()) { | if (!methodName.equals("class")) { | private void define_instance_method_for_proxy(final RubyClass proxy, List names, final RubyArray methods) { final RubyModule javaUtilities = getRuntime().getModule("JavaUtilities"); Callback method = new Callback() { public IRubyObject execute(IRubyObject self, IRubyObject[] arg... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/6c72dd872794347590986a952270341cce06e028/JavaClass.java/buggy/src/org/jruby/javasupport/JavaClass.java |
LogSystem.removeInstance(_ls); | public synchronized void stopClient() { if ( --_count == 0 ) { shutdown(); } } | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/eaf4eda3d1dc696e065fa02b661b072950526e26/Broker.java/clean/webmacro/src/org/webmacro/Broker.java | |
_servletContext.log(e, _mf.format(_args)); | _servletContext.log(_mf.format(_args),e); | public void log(Date date, String name, String level, String message, Exception e) { synchronized(_args) { _args[0] = date; _args[1] = name; _args[2] = level; _args[3] = message; if (e == null) _servletContext.log(_mf.format(_args)); else _... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/4603f6cee8b46d51274d6e6b533212c93f0fb160/ServletLog.java/clean/webmacro/src/org/webmacro/servlet/ServletLog.java |
public UIComponent getEditContainer() { IWContext iwc = IWContext.getInstance(); WFResourceUtil localizer = WFResourceUtil.getResourceUtilArticle(); String ref = ARTICLE_ITEM_BEAN_ID + ".";// String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); mainContainer.setId(ARTICLE_E... | 57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/82093f7731a5d1d2d6298791315369b8e96be576/EditArticleView.java/buggy/src/java/com/idega/block/article/component/EditArticleView.java | ||
HtmlInputText sourceArea = WFUtil.getInputText(AUTHOR_ID, ref + "source"); | HtmlInputText sourceArea = WFUtil.getInputText(SOURCE_ID, ref + "source"); | public UIComponent getEditContainer() { IWContext iwc = IWContext.getInstance(); WFResourceUtil localizer = WFResourceUtil.getResourceUtilArticle(); String ref = ARTICLE_ITEM_BEAN_ID + ".";// String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); mainContainer.setId(ARTICLE_E... | 57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/82093f7731a5d1d2d6298791315369b8e96be576/EditArticleView.java/buggy/src/java/com/idega/block/article/component/EditArticleView.java |
emptyMessagePanel.setBounds(0, r.height-h, w, h); | emptyMessagePanel.setBounds(0, r.height-h, 3*w/2, h); | private void buildEmptyPanel() { if (emptyMessagePanel != null) return; emptyMessagePanel = new JPanel(); emptyMessagePanel.setOpaque(true); emptyMessagePanel.setBorder( BorderFactory.createLineBorder(Color.BLACK)); Rectangle r = titlePanel.getBounds(... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/c3e0df27168af6ddebdb1c3476bb00aa3cf2fc92/EditorUI.java/clean/SRC/org/openmicroscopy/shoola/agents/treeviewer/editors/EditorUI.java |
testPlane[i] = 127; | testPlane[i] = 126; | private byte[] getTestPlane() { if (testPlane == null) { Integer planeSize = pixbuf.getPlaneSize(); testPlane = new byte[planeSize.intValue()]; for (int i = 0; i < planeSize; i++) { if (i % 2 == 0) testPlane[i... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ae0b01fad17fcacba3ec0999ca1ad645f389b5f9/PlaneWriteUnitTest.java/clean/components/omeio-nio/test/ome/io/nio/itests/PlaneWriteUnitTest.java |
service = new PixelsService(); | service = new PixelsService(PixelsService.ROOT_DEFAULT); | protected void setUp() throws IOException { // Create set up the base fixture which sets up the database for us baseFixture = new PixbufIOFixture(); pixels = baseFixture.setUp(); // "Our" fixture which creates the planes needed for this test case. service = new PixelsSe... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ae0b01fad17fcacba3ec0999ca1ad645f389b5f9/PlaneWriteUnitTest.java/clean/components/omeio-nio/test/ome/io/nio/itests/PlaneWriteUnitTest.java |
searchContacts(""); | SparkManager.getUserManager().searchContacts("", SparkManager.getWorkspace().getContactList()); | public ContactList() { // Load Local Preferences localPreferences = SettingsManager.getLocalPreferences(); offlineGroup = new ContactGroup("Offline Group"); JToolBar toolbar = new JToolBar(); toolbar.setFloatable(false); addContactMenu = new JMenuItem(Res.getString("menuite... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/37d2c9c1910f8cad82e65ab912959a96c5121978/ContactList.java/buggy/src/java/org/jivesoftware/spark/ui/ContactList.java |
searchContacts(""); | SparkManager.getUserManager().searchContacts("", SparkManager.getWorkspace().getContactList()); | public void actionPerformed(ActionEvent evt) { searchContacts(""); } | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/37d2c9c1910f8cad82e65ab912959a96c5121978/ContactList.java/buggy/src/java/org/jivesoftware/spark/ui/ContactList.java |
activateChat(activeItem.getContactJID(), activeItem.getNickname()); | SparkManager.getChatManager().activateChat(activeItem.getContactJID(), activeItem.getNickname()); | public void actionPerformed(ActionEvent e) { if (e.getSource() == addingGroupButton) { new RosterDialog().showRosterDialog(); } else if (e.getSource() == chatMenu) { if (activeItem != null) { activateChat(activeItem.getContactJID(), activeItem.getNickname())... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/37d2c9c1910f8cad82e65ab912959a96c5121978/ContactList.java/buggy/src/java/org/jivesoftware/spark/ui/ContactList.java |
new RosterDialog().showRosterDialog(); | String groupName = JOptionPane.showInputDialog(getGUI(), Res.getString("message.name.of.group") + ":", Res.getString("title.add.new.group"), JOptionPane.QUESTION_MESSAGE); if (ModelUtil.hasLength(groupName)) { ContactGroup contactGroup = getContactGroup(groupName); if (contactGroup == null) { contactGroup = addContactG... | public void actionPerformed(ActionEvent e) { new RosterDialog().showRosterDialog(); } | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/37d2c9c1910f8cad82e65ab912959a96c5121978/ContactList.java/buggy/src/java/org/jivesoftware/spark/ui/ContactList.java |
String groupName = JOptionPane.showInputDialog(getGUI(), Res.getString("message.name.of.group") + ":", Res.getString("title.add.new.group"), JOptionPane.QUESTION_MESSAGE); if (ModelUtil.hasLength(groupName)) { ContactGroup contactGroup = getContactGroup(groupName); if (contactGroup == null) { contactGroup = addContactG... | showEmptyGroups(showHideMenu.isSelected()); | public void actionPerformed(ActionEvent e) { String groupName = JOptionPane.showInputDialog(getGUI(), Res.getString("message.name.of.group") + ":", Res.getString("title.add.new.group"), JOptionPane.QUESTION_MESSAGE); if (ModelUtil.hasLength(groupName)) { Cont... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/37d2c9c1910f8cad82e65ab912959a96c5121978/ContactList.java/buggy/src/java/org/jivesoftware/spark/ui/ContactList.java |
subscriptionRequest(presence.getFrom()); | Roster roster = SparkManager.getConnection().getRoster(); RosterEntry entry = roster.getEntry(presence.getFrom()); if (entry != null) { try { removeContactItem(presence.getFrom()); roster.removeEntry(entry); } catch (XMPPException e) { Presence unsub = new Presence(Presence.Type.unsubscribed); unsub.setTo(presence.getF... | public void run() { subscriptionRequest(presence.getFrom()); } | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/37d2c9c1910f8cad82e65ab912959a96c5121978/ContactList.java/buggy/src/java/org/jivesoftware/spark/ui/ContactList.java |
Presence unsub = new Presence(Presence.Type.unsubscribed); unsub.setTo(presence.getFrom()); SparkManager.getConnection().sendPacket(unsub); | public void run() { Roster roster = SparkManager.getConnection().getRoster(); RosterEntry entry = roster.getEntry(presence.getFrom()); if (entry != null) { try { ... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/37d2c9c1910f8cad82e65ab912959a96c5121978/ContactList.java/buggy/src/java/org/jivesoftware/spark/ui/ContactList.java | |
String jid = StringUtils.parseBareAddress(presence.getFrom()); removeContactItem(jid); | public void run() { Roster roster = SparkManager.getConnection().getRoster(); RosterEntry entry = roster.getEntry(presence.getFrom()); if (entry != null) { try { ... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/37d2c9c1910f8cad82e65ab912959a96c5121978/ContactList.java/buggy/src/java/org/jivesoftware/spark/ui/ContactList.java | |
Roster roster = SparkManager.getConnection().getRoster(); RosterEntry entry = roster.getEntry(presence.getFrom()); if (entry != null) { try { removeContactItem(presence.getFrom()); roster.removeEntry(entry); | SwingUtilities.invokeLater(new Runnable() { public void run() { final Iterator users = new ArrayList(initialPresences).iterator(); while (users.hasNext()) { Presence userToUpdate = (Presence)users.next(); initialPresences.remove(userToUpdate); updateUserPresence(userToUpdate); } | public void run() { Roster roster = SparkManager.getConnection().getRoster(); RosterEntry entry = roster.getEntry(presence.getFrom()); if (entry != null) { try { ... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/37d2c9c1910f8cad82e65ab912959a96c5121978/ContactList.java/buggy/src/java/org/jivesoftware/spark/ui/ContactList.java |
catch (XMPPException e) { Log.error(e); } } String jid = StringUtils.parseBareAddress(presence.getFrom()); removeContactItem(jid); | }); | public void run() { Roster roster = SparkManager.getConnection().getRoster(); RosterEntry entry = roster.getEntry(presence.getFrom()); if (entry != null) { try { ... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/37d2c9c1910f8cad82e65ab912959a96c5121978/ContactList.java/buggy/src/java/org/jivesoftware/spark/ui/ContactList.java |
SwingUtilities.invokeLater(new Runnable() { public void run() { | public void run() { SwingUtilities.invokeLater(new Runnable() { public void run() { final Iterator users = new ArrayList(initialPresences).iterator(); while (users.hasN... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/37d2c9c1910f8cad82e65ab912959a96c5121978/ContactList.java/buggy/src/java/org/jivesoftware/spark/ui/ContactList.java | |
}); } | public void run() { SwingUtilities.invokeLater(new Runnable() { public void run() { final Iterator users = new ArrayList(initialPresences).iterator(); while (users.hasN... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/37d2c9c1910f8cad82e65ab912959a96c5121978/ContactList.java/buggy/src/java/org/jivesoftware/spark/ui/ContactList.java | |
&& RosterPacket.ItemStatus.SUBSCRIPTION_PENDING == entry.getStatus()) { | && RosterPacket.ItemStatus.SUBSCRIPTION_PENDING == entry.getStatus()) { | private void buildContactList() { XMPPConnection con = SparkManager.getConnection(); final Roster roster = con.getRoster(); roster.addRosterListener(this); for (RosterGroup group : roster.getGroups()) { ContactGroup contactGroup = addContactGroup(group.getName()); f... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/37d2c9c1910f8cad82e65ab912959a96c5121978/ContactList.java/buggy/src/java/org/jivesoftware/spark/ui/ContactList.java |
int ok = JOptionPane.showConfirmDialog(group, Res.getString("message.delete.confirmation", group.getGroupName()), Res.getString("title.confirmation"), JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE); if (ok == JOptionPane.YES_OPTION) { String groupName = group.getGroupName(); Roster roster = SparkManager.getCo... | String newName = JOptionPane.showInputDialog(group, Res.getString("label.rename.to") + ":", Res.getString("title.rename.roster.group"), JOptionPane.QUESTION_MESSAGE); if (!ModelUtil.hasLength(newName)) { return; } String groupName = group.getGroupName(); Roster roster = SparkManager.getConnection().getRoster(); | public void actionPerformed(ActionEvent e) { int ok = JOptionPane.showConfirmDialog(group, Res.getString("message.delete.confirmation", group.getGroupName()), Res.getString("title.confirmation"), JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE); if (ok == JOptionPane.YE... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/37d2c9c1910f8cad82e65ab912959a96c5121978/ContactList.java/buggy/src/java/org/jivesoftware/spark/ui/ContactList.java |
RosterGroup rosterGroup = roster.getGroup(groupName); if (rosterGroup != null) { for (RosterEntry entry : rosterGroup.getEntries()) { try { rosterGroup.removeEntry(entry); } catch (XMPPException e1) { Log.error("Error removing entry", e1); } } } | RosterGroup rosterGroup = roster.getGroup(groupName); if (rosterGroup != null) { | public void actionPerformed(ActionEvent e) { int ok = JOptionPane.showConfirmDialog(group, Res.getString("message.delete.confirmation", group.getGroupName()), Res.getString("title.confirmation"), JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE); if (ok == JOptionPane.YE... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/37d2c9c1910f8cad82e65ab912959a96c5121978/ContactList.java/buggy/src/java/org/jivesoftware/spark/ui/ContactList.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.