rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
{ zoomLevel = value; control.setZoomLevel(zoomLevel); } | { zoomLevel = value; control.setZoomLevel(zoomLevel); } | private void synchZoom(double value) { zoomLevel = value; control.setZoomLevel(zoomLevel); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/c61e383c3ea1df4e7b870a5e40d70e12c9ce01f4/ZoomBarManager.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/transform/zooming/ZoomBarManager.java |
{ boolean valid = false; double val = 0; try { val = percentFormat.parse(zoomField.getText()).doubleValue(); if (ImageInspector.MIN_ZOOM_LEVEL <= val && val <= ImageInspector.MAX_ZOOM_LEVEL) { valid = true; } else if (val < ImageInspector.MIN_ZOOM_LEVEL) { val = ImageInspector.MIN_ZOOM_LEVEL; valid = true; } else if (v... | { boolean valid = false; double val = 0; try { val = percentFormat.parse(zoomField.getText()).doubleValue(); if (ImageInspector.MIN_ZOOM_LEVEL <= val && val <= ImageInspector.MAX_ZOOM_LEVEL) { valid = true; } else if (val < ImageInspector.MIN_ZOOM_LEVEL) { val = ImageInspector.MIN_ZOOM_LEVEL; valid = true; } else if (v... | private void zoomFieldActionHandler() { boolean valid = false; double val = 0; try { val = percentFormat.parse(zoomField.getText()).doubleValue(); if (ImageInspector.MIN_ZOOM_LEVEL <= val && val <= ImageInspector.MAX_ZOOM_LEVEL) { valid = true; } else if (val < ImageInspector.MIN_ZOOM_LEVEL) { val =... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/c61e383c3ea1df4e7b870a5e40d70e12c9ce01f4/ZoomBarManager.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/transform/zooming/ZoomBarManager.java |
{ zoomLevel = ImageInspector.ZOOM_DEFAULT; control.setZoomLevel(zoomLevel); } | { zoomLevel = ImageInspector.ZOOM_DEFAULT; control.setZoomLevel(zoomLevel); } | private void zoomFit() { zoomLevel = ImageInspector.ZOOM_DEFAULT; control.setZoomLevel(zoomLevel); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/c61e383c3ea1df4e7b870a5e40d70e12c9ce01f4/ZoomBarManager.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/transform/zooming/ZoomBarManager.java |
{ if (zoomLevel < ImageInspector.MAX_ZOOM_LEVEL) | { if (zoomLevel < ImageInspector.MAX_ZOOM_LEVEL) | private void zoomIn() { if (zoomLevel < ImageInspector.MAX_ZOOM_LEVEL) zoomLevel += ImageInspector.ZOOM_INCREMENT; control.setZoomLevel(zoomLevel); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/c61e383c3ea1df4e7b870a5e40d70e12c9ce01f4/ZoomBarManager.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/transform/zooming/ZoomBarManager.java |
control.setZoomLevel(zoomLevel); } | control.setZoomLevel(zoomLevel); } | private void zoomIn() { if (zoomLevel < ImageInspector.MAX_ZOOM_LEVEL) zoomLevel += ImageInspector.ZOOM_INCREMENT; control.setZoomLevel(zoomLevel); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/c61e383c3ea1df4e7b870a5e40d70e12c9ce01f4/ZoomBarManager.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/transform/zooming/ZoomBarManager.java |
{ if (zoomLevel > ImageInspector.MIN_ZOOM_LEVEL) zoomLevel -= ImageInspector.ZOOM_INCREMENT; control.setZoomLevel(zoomLevel); } | { if (zoomLevel > ImageInspector.MIN_ZOOM_LEVEL) zoomLevel -= ImageInspector.ZOOM_INCREMENT; control.setZoomLevel(zoomLevel); } | private void zoomOut() { if (zoomLevel > ImageInspector.MIN_ZOOM_LEVEL) zoomLevel -= ImageInspector.ZOOM_INCREMENT; control.setZoomLevel(zoomLevel); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/c61e383c3ea1df4e7b870a5e40d70e12c9ce01f4/ZoomBarManager.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/transform/zooming/ZoomBarManager.java |
ImageDisplay newObject = (ImageDisplay) node.getUserObject(); | Object uo = node.getUserObject(); if (uo instanceof String) return; ImageDisplay newObject = (ImageDisplay) uo; | void setSelectedNode() { DefaultMutableTreeNode node = (DefaultMutableTreeNode) getLastSelectedPathComponent(); if (selectedNode == node) return; ImageDisplay newObject = (ImageDisplay) node.getUserObject(); ImageDisplay oldObject = null; if (selectedNode != null) ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/3feec30057da68977528d8509d07bff5c080fb40/SearchResultsPane.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/clipboard/SearchResultsPane.java |
List list = CollectionSorter.sortImageDisplay(nodes); | ViewerSorter sorter = new ViewerSorter(nodes); List list = sorter.sort(); | void buildTree(Set nodes) { if (nodes.size() == 0) { getTreeModel(); DefaultMutableTreeNode childNode = new DefaultMutableTreeNode("Empty"); DefaultTreeModel tm= (DefaultTreeModel) view.getModel(); tm.insertNodeInto(childNode, root, root.getChild... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b4992016524102ee0a5c7465d4cc7a94e9ffce2d/SearchResultsPaneMng.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/clipboard/SearchResultsPaneMng.java |
protected DataLoader createHierarchyLoader() | protected DataLoader createHierarchyLoader(boolean refresh) | protected DataLoader createHierarchyLoader() { return new ImagesLoader(component, imagesID); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/fb3743d6f75abbf12f788b3b2925f4a6f4606dd6/ImagesModel.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/view/ImagesModel.java |
return new ImagesLoader(component, imagesID); | return new ImagesLoader(component, imagesID, refresh); | protected DataLoader createHierarchyLoader() { return new ImagesLoader(component, imagesID); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/fb3743d6f75abbf12f788b3b2925f4a6f4606dd6/ImagesModel.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/view/ImagesModel.java |
super.paintComponent(g); | public void paintComponent(Graphics g) { Graphics2D g2D = (Graphics2D) g; g2D.setColor(bgColor); g2D.fillRect(0, 0, WIDTH, HEIGHT); Font font = g2D.getFont(); FontMetrics fontMetrics = g2D.getFontMetrics(); int hFont = fontMetrics.getHeight(); Rectangle2D rInput = font.getStringBounds("Input", g2D.getF... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/6a28b54c142c80cf786f76c45b6be256d92fd0bb/ContrastStretchingPanel.java/clean/SRC/org/openmicroscopy/shoola/agents/rnd/pane/ContrastStretchingPanel.java | |
int i, n = Integer.parseInt(args[0]); | public static void main(String args[]) { //@START int i, n = Integer.parseInt(args[0]); int x[] = new int[n]; int y[] = new int[n]; for (i = 0; i < n;) { x[i] = i; ++i; x[i] = i; ++i; x[i] = i; ++i; x[i] = i; ++i; x[i] = i; ++i; x[i] = i; ++i; x[i] = i; ++i; x[i] = i; ++i; x[i] =... | 53330 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53330/eb6c850277407b38bcaefb81155941da0f27b849/ary2.java/buggy/tests/shootout/java-start/ary2.java | |
if (!cMacro && Expression.isTrue(c)) | if (!cMacro && Expression.isTrue(c)) { | public Object build(DirectiveBuilder builder, BuildContext bc) throws BuildException { Object c = builder.getArg(IF_COND, bc); boolean cMacro = (c instanceof Macro); int elseifCount; DirectiveArgs elseArgs; DirectiveArgs[] elseifArgs = null; // If condition is static and true... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/060af610f80a0ac517b7fa651e088807402a5dba/IfDirective.java/buggy/webmacro/src/org/webmacro/directive/IfDirective.java |
nConditions=elseifCount; if (cMacro) ++nConditions; | nConditions=elseifCount + (cMacro? 1 : 0); | public Object build(DirectiveBuilder builder, BuildContext bc) throws BuildException { Object c = builder.getArg(IF_COND, bc); boolean cMacro = (c instanceof Macro); int elseifCount; DirectiveArgs elseArgs; DirectiveArgs[] elseifArgs = null; // If condition is static and true... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/060af610f80a0ac517b7fa651e088807402a5dba/IfDirective.java/buggy/webmacro/src/org/webmacro/directive/IfDirective.java |
private IRubyObject substr(int beg, int len) { | public IRubyObject substr(int beg, int len) { | private IRubyObject substr(int beg, int len) { int length = getValue().length(); if (len < 0 || beg > length) { return getRuntime().getNil(); } if (beg < 0) { beg += length; if (beg < 0) { return getRuntime().getNil(); } } int end = Math.min(length, beg + len); return newString(getMutableValue().subs... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/39c46ceddd2033806c64aede42f0f510136c9575/RubyString.java/clean/src/org/jruby/RubyString.java |
if (limit == 0) { | if (limit == 0 && result.size() > 0) { | private void process() { if (limit == 1) { result.add(splitee); return; } int pos = 0; int beg = 0; int hits = 0; int len = splitee.length(); RubyString rubySplitee = runtime.newString(splitee); while ((beg = pattern.search(rubySplitee, pos)) > -1) { hits++; ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/09d8f30f6aebff1911b6b5fb96b24e45094f8cd7/Split.java/buggy/src/org/jruby/util/Split.java |
state = ServiceState.STARTING; serviceMonitor.serviceStopping(createServiceEvent()); | public void destroy(StopStrategy stopStrategy) throws IllegalServiceStateException, UnsatisfiedConditionsException { // if we are not restartable, we need to stop try { if (!stop(stopStrategy)) { throw new IllegalServiceStateException("Service did not stop", serviceName); ... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/40d54ab7cee698a58def76b8baef5ca243beb305/ServiceManager.java/buggy/kernel/src/java/org/gbean/kernel/standard/ServiceManager.java | |
serviceMonitor.serviceRegistered(createServiceEvent()); if (!serviceFactory.isRestartable()) { serviceMonitor.serviceRunning(createServiceEvent()); } | public void initialize() throws IllegalServiceStateException, UnsatisfiedConditionsException, Exception { // if we are not restartable, we need to start immediately, otherwise we are not going to register this service if (!serviceFactory.isRestartable()) { try { start(false, ... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/40d54ab7cee698a58def76b8baef5ca243beb305/ServiceManager.java/buggy/kernel/src/java/org/gbean/kernel/standard/ServiceManager.java | |
public boolean stop(StopStrategy stopStrategy) throws UnsatisfiedConditionsException { // check that we aren't already stopped before attempting to acquire the lock ServiceState initialState = state; if (initialState == ServiceState.STOPPED) { return true; } lock("stop"... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/40d54ab7cee698a58def76b8baef5ca243beb305/ServiceManager.java/buggy/kernel/src/java/org/gbean/kernel/standard/ServiceManager.java | ||
managerFutures = new ArrayList(); | managerFutures = new ArrayList(serviceManagers.values()); | public void destroy() throws KernelErrorsError { // we gather all errors that occur during shutdown and throw them as on huge exception List errors = new ArrayList(); List managerFutures; synchronized (serviceManagers) { managerFutures = new ArrayList(); serviceMana... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/8ffa6e70ecadf740148645cc7424763fd6c4c8e9/ServiceManagerRegistry.java/buggy/kernel/src/java/org/gbean/kernel/standard/ServiceManagerRegistry.java |
public void destroy() throws KernelErrorsError { // we gather all errors that occur during shutdown and throw them as on huge exception List errors = new ArrayList(); List managerFutures; synchronized (serviceManagers) { managerFutures = new ArrayList(); serviceMana... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/8ffa6e70ecadf740148645cc7424763fd6c4c8e9/ServiceManagerRegistry.java/buggy/kernel/src/java/org/gbean/kernel/standard/ServiceManagerRegistry.java | ||
ent.setMethod(fbody.getBodyNode()); | ent.setMethod(fbody.getHeadNode()); | public GetMethodBodyResult getMethodBody(RubyId id, int noex) { GetMethodBodyResult result = new GetMethodBodyResult(this, id, noex); MethodNode methodNode = searchMethod(id); if (methodNode == null || methodNode.getBodyNode() == null) { System.out.println( "Cant find method \"" + id.toName() + "\" in class " ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/c7f13fd014f31b83985a27d44855459fd7abe0c5/RubyModule.java/buggy/org/jruby/RubyModule.java |
body = fbody.getBodyNode(); | body = fbody.getHeadNode(); | public GetMethodBodyResult getMethodBody(RubyId id, int noex) { GetMethodBodyResult result = new GetMethodBodyResult(this, id, noex); MethodNode methodNode = searchMethod(id); if (methodNode == null || methodNode.getBodyNode() == null) { System.out.println( "Cant find method \"" + id.toName() + "\" in class " ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/c7f13fd014f31b83985a27d44855459fd7abe0c5/RubyModule.java/buggy/org/jruby/RubyModule.java |
this.ctx.applyBeanPropertyValues(this,getName()); | this.ctx.applyBeanPropertyValues(this,getServiceInterface()); | public void selfConfigure() { this.ctx = OmeroContext.getInternalServerContext(); this.ctx.applyBeanPropertyValues(this,getName()); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/dc8dde051a1e2b716514b3964c9222ce006ebea9/AbstractLevel2Service.java/clean/components/server/src/ome/logic/AbstractLevel2Service.java |
public void setQueryFactory(QueryFactory factory){ | public void setQueryFactory(QueryFactory factory) { | public void setQueryFactory(QueryFactory factory){ this.queryFactory = factory; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/dc8dde051a1e2b716514b3964c9222ce006ebea9/AbstractLevel2Service.java/clean/components/server/src/ome/logic/AbstractLevel2Service.java |
InetAddress inetAddress = InetAddress.getByName(name.getValue()); | InetAddress inetAddress = InetAddress.getByName(name.toString()); | public RubyArray gethostbyname(IRubyObject hostname) { try { RubyString name = (RubyString) hostname; InetAddress inetAddress = InetAddress.getByName(name.getValue()); List parts = new ArrayList(); parts.add(new RubyString(getRuntime(), inetAddress.getCanonicalHostName())); parts.add(RubyArray.newArray(g... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9f2efc63a858fa0507245b207025eab027840a04/SocketMetaClass.java/buggy/src/org/jruby/libraries/SocketMetaClass.java |
parts.add(new RubyString(getRuntime(), inetAddress.getCanonicalHostName())); | parts.add(getRuntime().newString(inetAddress.getCanonicalHostName())); | public RubyArray gethostbyname(IRubyObject hostname) { try { RubyString name = (RubyString) hostname; InetAddress inetAddress = InetAddress.getByName(name.getValue()); List parts = new ArrayList(); parts.add(new RubyString(getRuntime(), inetAddress.getCanonicalHostName())); parts.add(RubyArray.newArray(g... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9f2efc63a858fa0507245b207025eab027840a04/SocketMetaClass.java/buggy/src/org/jruby/libraries/SocketMetaClass.java |
parts.add(new RubyString(getRuntime(), RubyString.bytesToString(inetAddress.getAddress()))); | parts.add(getRuntime().newString(RubyString.bytesToString(inetAddress.getAddress()))); | public RubyArray gethostbyname(IRubyObject hostname) { try { RubyString name = (RubyString) hostname; InetAddress inetAddress = InetAddress.getByName(name.getValue()); List parts = new ArrayList(); parts.add(new RubyString(getRuntime(), inetAddress.getCanonicalHostName())); parts.add(RubyArray.newArray(g... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9f2efc63a858fa0507245b207025eab027840a04/SocketMetaClass.java/buggy/src/org/jruby/libraries/SocketMetaClass.java |
return new RubyString(getRuntime(), hostName); | return getRuntime().newString(hostName); | public RubyString gethostname() { try { String hostName = InetAddress.getLocalHost().getHostName(); return new RubyString(getRuntime(), hostName); } catch (UnknownHostException e) { // DSC throw SystemError("gethostname"); return new RubyString(getRuntime(), ""); } } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9f2efc63a858fa0507245b207025eab027840a04/SocketMetaClass.java/buggy/src/org/jruby/libraries/SocketMetaClass.java |
return new RubyString(getRuntime(), ""); | return getRuntime().newString(""); | public RubyString gethostname() { try { String hostName = InetAddress.getLocalHost().getHostName(); return new RubyString(getRuntime(), hostName); } catch (UnknownHostException e) { // DSC throw SystemError("gethostname"); return new RubyString(getRuntime(), ""); } } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9f2efc63a858fa0507245b207025eab027840a04/SocketMetaClass.java/buggy/src/org/jruby/libraries/SocketMetaClass.java |
recursivelyCreateDirectory( new File(path).getParent()); | private void initPixelBuffer(PixelBuffer pixbuf) throws IOException { String path = getPixelsPath(pixbuf.getId()); byte[] padding = new byte[pixbuf.getPlaneSize() - NULL_PLANE_SIZE]; FileOutputStream stream = new FileOutputStream(path); for (int z = 0; z < pixbuf.getSiz... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9c735beaf7566accca575d2206f57f51b950ee15/PixelsService.java/buggy/components/romio/src/ome/io/nio/PixelsService.java | |
lastModule = (ChainModuleData) node.getObject(); moduleCanvas.highlightModule(lastModule); | Object obj = node.getObject(); if (obj != null && obj instanceof ChainModuleData) { lastModule = (ChainModuleData) obj; moduleCanvas.highlightModule(lastModule); } | public void valueChanged(TreeSelectionEvent e) { // If this change is occurring because a if (lockTreeChange == true) return; ModuleTreeNode node = (ModuleTreeNode) tree.getLastSelectedPathComponent(); if (node == null) return; if (lastModule != null) { moduleCanvas.unhighlightModules(lastModule)... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/d73ba24badad0846f53ca0a25a67726733ab6854/ModulePaletteWindow.java/buggy/SRC/org/openmicroscopy/shoola/agents/chainbuilder/ui/ModulePaletteWindow.java |
return null; | return (RubyString)funcall(getRuby().intern("to_s")); | public RubyString m_inspect() { // if (TYPE(obj) == T_OBJECT // && ROBJECT(obj)->iv_tbl // && ROBJECT(obj)->iv_tbl->num_entries > 0) { // VALUE str; // char *c; // // c = rb_class2name(CLASS_OF(obj)); // if (rb_inspecting_p(obj)) { // str... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/12847c6fd28fea4e223d132ced46eb1b4cb9de9a/RubyObject.java/buggy/org/jruby/RubyObject.java |
contactList.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke("Ctrl F6"), "viewNotes"); | contactList.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke("control F6"), "viewNotes"); | public void initialize() { contactList = SparkManager.getWorkspace().getContactList(); contactList.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke("Ctrl F6"), "viewNotes"); contactList.getActionMap().put("viewNotes", new AbstractAction("viewNotes") { public ... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/5e1d8400b514b5787162e272df97866d10408dc2/ScratchPadPlugin.java/buggy/src/java/org/jivesoftware/sparkimpl/plugin/scratchpad/ScratchPadPlugin.java |
contactList.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke("Ctrl F5"), "viewTasks"); | contactList.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke("control F5"), "viewTasks"); | public void initialize() { contactList = SparkManager.getWorkspace().getContactList(); contactList.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).put(KeyStroke.getKeyStroke("Ctrl F6"), "viewNotes"); contactList.getActionMap().put("viewNotes", new AbstractAction("viewNotes") { public ... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/5e1d8400b514b5787162e272df97866d10408dc2/ScratchPadPlugin.java/buggy/src/java/org/jivesoftware/sparkimpl/plugin/scratchpad/ScratchPadPlugin.java |
if(code == Code.NONE) { sb.append('n'); } else if(code == Code.UTF8) { sb.append('u'); } else if(code == Code.SJIS) { sb.append('s'); } | public IRubyObject inspect() { final String regex = pattern.pattern(); final int length = regex.length(); StringBuffer sb = new StringBuffer(length + 2); sb.append('/'); for (int i = 0; i < length; i++) { char c = regex.charAt(i); if (RubyString.isAlnum(c)) { ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a99c8643e2996a04338dcb2ea5ad169c29e5f798/RubyRegexp.java/clean/src/org/jruby/RubyRegexp.java | |
} | } catch (RemoteServerErrorException iae) { connected = false; throw new DSOutOfServiceException("Failed to log in.", iae); } | void login(String userName, String password) throws DSOutOfServiceException { try { RemoteCaller proxy = proxiesFactory.getRemoteCaller(); proxy.login(userName, password); serverVersionCheck(); connected = true; } catch (RemoteConnectionException rce) { connected = false; throw new DSO... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/be05737de1d1d14e7b06c2042110ca9b6f994539/OMEDSGateway.java/clean/SRC/org/openmicroscopy/shoola/env/data/OMEDSGateway.java |
public static Object[] fillICGHierarchy(List classifications, Map mapIS, int userID) | public static Object[] fillICGHierarchy(List classifications, Map mapIS) | public static Object[] fillICGHierarchy(List classifications, Map mapIS, int userID) { Object[] results = new Object[2]; Iterator i = classifications.iterator(); //OME-JAVA object. Classification classification; Category category; ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/01a27ecff15f0a14ff349eccd47a12de073ae838/HierarchyMapper.java/buggy/SRC/org/openmicroscopy/shoola/env/data/map/HierarchyMapper.java |
if (userID != classification.getModuleExecution().getExperimenter().getID()) break; | public static Object[] fillICGHierarchy(List classifications, Map mapIS, int userID) { Object[] results = new Object[2]; Iterator i = classifications.iterator(); //OME-JAVA object. Classification classification; Category category; ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/01a27ecff15f0a14ff349eccd47a12de073ae838/HierarchyMapper.java/buggy/SRC/org/openmicroscopy/shoola/env/data/map/HierarchyMapper.java | |
public static Object[] fillICGHierarchy(List classifications, Map mapIS, int userID) { Object[] results = new Object[2]; Iterator i = classifications.iterator(); //OME-JAVA object. Classification classification; Category category; ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/01a27ecff15f0a14ff349eccd47a12de073ae838/HierarchyMapper.java/buggy/SRC/org/openmicroscopy/shoola/env/data/map/HierarchyMapper.java | ||
this.script = new File(TEST_DIR + File.separator + filename); | public ScriptTest(Ruby ruby, String filename) { super(filename); this.ruby = ruby; this.filename = filename; this.script = new File(TEST_DIR + File.separator + filename); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/68ea79c613972391a1d5009c8c9590b9b87d509a/ScriptTestSuite.java/clean/org/jruby/test/ScriptTestSuite.java | |
StringBuffer scriptString = new StringBuffer((int) script.length()); BufferedReader br = new BufferedReader(new FileReader(script)); String line; while ((line = br.readLine()) != null) { scriptString.append(line).append('\n'); } br.close(); | StringBuffer script = new StringBuffer(); script.append("require 'minirunit'").append('\n'); script.append("test_load('").append(scriptName()).append("')").append('\n'); script.append("test_get_last_failed()").append('\n'); | public void runTest() throws Throwable { StringBuffer scriptString = new StringBuffer((int) script.length()); BufferedReader br = new BufferedReader(new FileReader(script)); String line; while ((line = br.readLine()) != null) { scriptString.append(line)... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/68ea79c613972391a1d5009c8c9590b9b87d509a/ScriptTestSuite.java/clean/org/jruby/test/ScriptTestSuite.java |
scriptString.append("$curtestOK").append('\n'); RubyBoolean isOk = (RubyBoolean) ruby.evalScript(scriptString.toString()); if (isOk.isFalse()) { fail(filename + " failed"); | RubyObject lastFailed = ruby.evalScript(script.toString()); if (! lastFailed.isNil()) { RubyString message = (RubyString) lastFailed.funcall("to_s"); fail(message.getValue()); | public void runTest() throws Throwable { StringBuffer scriptString = new StringBuffer((int) script.length()); BufferedReader br = new BufferedReader(new FileReader(script)); String line; while ((line = br.readLine()) != null) { scriptString.append(line)... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/68ea79c613972391a1d5009c8c9590b9b87d509a/ScriptTestSuite.java/clean/org/jruby/test/ScriptTestSuite.java |
Collection contacts = contactList.getSelectedUsers(); | Collection contacts = contactList.getActiveGroup().getContactItems(); | public void actionPerformed(ActionEvent actionEvent) { Collection contacts = contactList.getSelectedUsers(); startConference(contacts); } | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/64167b93b841bd4a221dd80e076ac2fd148ee24f/Conferences.java/buggy/src/java/org/jivesoftware/spark/ui/conferences/Conferences.java |
public void actionPerformed(ActionEvent actionEvent) { Collection contacts = contactList.getSelectedUsers(); startConference(contacts); } | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/64167b93b841bd4a221dd80e076ac2fd148ee24f/Conferences.java/buggy/src/java/org/jivesoftware/spark/ui/conferences/Conferences.java | ||
PresenceListener presenceListener = new PresenceListener() { public void presenceChanged(Presence presence) { for(ChatRoom room : SparkManager.getChatManager().getChatContainer().getChatRooms()){ if(room instanceof GroupChatRoom){ GroupChatRoom groupChatRoom = (GroupChatRoom)room; String jid = groupChatRoom.getMulti... | public void initialize() { ServiceDiscoveryManager manager = ServiceDiscoveryManager.getInstanceFor(SparkManager.getConnection()); mucSupported = manager.includesFeature("http://jabber.org/protocol/muc"); if (mucSupported) { // Load the conference data from Private Data lo... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/64167b93b841bd4a221dd80e076ac2fd148ee24f/Conferences.java/buggy/src/java/org/jivesoftware/spark/ui/conferences/Conferences.java | |
initComponents(sizeT, t); | initComponents(sizeT-1, t); | TNavigator(NavigationPaletteManager topManager, int sizeT, int t) { manager = new TNavigatorManager(this, topManager, sizeT, t); im = IconManager.getInstance(topManager.getRegistry()); initComponents(sizeT, t); manager.attachListeners(); buildGUI(); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b52b1735c990029c4d2115a33258acf4d3c82ae5/TNavigator.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/controls/TNavigator.java |
initSlider(sizeZ, z); initTextField(sizeZ, z); | initSlider(sizeZ-1, z); initTextField(sizeZ-1, z); | XYZNavigator(NavigationPaletteManager topManager, int sizeX, int sizeY, int sizeZ, int z) { manager = new XYZNavigatorManager(this, topManager, sizeZ, z); im = IconManager.getInstance(topManager.getRegistry()); initSlider(sizeZ, z); initTextField(sizeZ, z); manager.attachListeners(); buildGUI(sizeX, sizeY, s... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b52b1735c990029c4d2115a33258acf4d3c82ae5/XYZNavigator.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/controls/XYZNavigator.java |
return getRuntime().newFixnum(hashCode()); | long baseHash = (isExclusive ? 1 : 0); long beginHash = ((RubyFixnum) begin.callMethod("hash")).getLongValue(); long endHash = ((RubyFixnum) end.callMethod("hash")).getLongValue(); long hash = baseHash; hash = hash ^ (beginHash << 1); hash = hash ^ (endHash << 9); hash = hash ^ (baseHash << 24); return getRuntime().... | public RubyFixnum hash() { return getRuntime().newFixnum(hashCode()); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/4b12521bf34cff2c9841b1dacb1a929f6def5327/RubyRange.java/buggy/src/org/jruby/RubyRange.java |
public static void fillDataset(Dataset dataset, DatasetData empty) { //Fill in the data coming from Project. empty.setID(dataset.getID()); empty.setName(dataset.getName()); empty.setDescription(dataset.getDescription()); //Fill in the data coming from Experimenter. Experimenter owner = dataset.getOwner(); ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a43ad78503af4e7f39a04cb20cfba13e1c78b806/DatasetMapper.java/clean/SRC/org/openmicroscopy/shoola/env/data/map/DatasetMapper.java | ||
public static void fillDataset(Dataset dataset, DatasetData empty) { //Fill in the data coming from Project. empty.setID(dataset.getID()); empty.setName(dataset.getName()); empty.setDescription(dataset.getDescription()); //Fill in the data coming from Experimenter. Experimenter owner = dataset.getOwner(); ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a43ad78503af4e7f39a04cb20cfba13e1c78b806/DatasetMapper.java/clean/SRC/org/openmicroscopy/shoola/env/data/map/DatasetMapper.java | ||
public static void fillDataset(Dataset dataset, DatasetData empty) { //Fill in the data coming from Project. empty.setID(dataset.getID()); empty.setName(dataset.getName()); empty.setDescription(dataset.getDescription()); //Fill in the data coming from Experimenter. Experimenter owner = dataset.getOwner(); ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a43ad78503af4e7f39a04cb20cfba13e1c78b806/DatasetMapper.java/clean/SRC/org/openmicroscopy/shoola/env/data/map/DatasetMapper.java | ||
public static List fillListImages(Dataset dataset) | public static List fillListImages(Dataset dataset, ImageSummary iProto) | public static List fillListImages(Dataset dataset) { List images = new ArrayList(); Iterator i = dataset.getImages().iterator(); Image image; while (i.hasNext()) { image = (Image) i.next(); images.add(new ImageSummary(image.getID(), image.getName(), fillListPixelsID(image), fillDefa... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a43ad78503af4e7f39a04cb20cfba13e1c78b806/DatasetMapper.java/clean/SRC/org/openmicroscopy/shoola/env/data/map/DatasetMapper.java |
images.add(new ImageSummary(image.getID(), image.getName(), fillListPixelsID(image), fillDefaultPixels(image.getDefaultPixels()))); | is = (ImageSummary) iProto.makeNew(); is.setID(image.getID()); is.setName(image.getName()); is.setPixelsIDs(fillListPixelsID(image)); is.setDefaultPixels(fillDefaultPixels(image.getDefaultPixels())); images.add(is); | public static List fillListImages(Dataset dataset) { List images = new ArrayList(); Iterator i = dataset.getImages().iterator(); Image image; while (i.hasNext()) { image = (Image) i.next(); images.add(new ImageSummary(image.getID(), image.getName(), fillListPixelsID(image), fillDefa... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a43ad78503af4e7f39a04cb20cfba13e1c78b806/DatasetMapper.java/clean/SRC/org/openmicroscopy/shoola/env/data/map/DatasetMapper.java |
public static List fillUserDatasets(List datasets, DatasetSummary dProto) { List datasetsList = new ArrayList(); //The returned summary list. Iterator i = datasets.iterator(); DatasetSummary ds; Dataset d; //For each d in datasets... while (i.hasNext()) { d = (Dataset) i.next(); //Make a new DataObject and ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a43ad78503af4e7f39a04cb20cfba13e1c78b806/DatasetMapper.java/clean/SRC/org/openmicroscopy/shoola/env/data/map/DatasetMapper.java | ||
public static List fillUserDatasets(List datasets, DatasetSummary dProto) { List datasetsList = new ArrayList(); //The returned summary list. Iterator i = datasets.iterator(); DatasetSummary ds; Dataset d; //For each d in datasets... while (i.hasNext()) { d = (Dataset) i.next(); //Make a new DataObject and ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a43ad78503af4e7f39a04cb20cfba13e1c78b806/DatasetMapper.java/clean/SRC/org/openmicroscopy/shoola/env/data/map/DatasetMapper.java | ||
context.getCurrentScope().setValue(argsNode.getBlockArgNode().getCount(), runtime.newProc(), 0); | blockArg = runtime.newProc(); blockArg.getBlock().isLambda = context.getCurrentBlock().isLambda; context.getCurrentScope().setValue(argsNode.getBlockArgNode().getCount(), blockArg, 0); | public IRubyObject internalCall(ThreadContext context, IRubyObject receiver, RubyModule lastClass, String name, IRubyObject[] args, boolean noSuper) { assert args != null; IRuby runtime = context.getRuntime(); if (argsNode.getBlockArgNode() != null && context.isBlockGiven()) { // We pas... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/89deff9d4f0069e00009c8b39bbd472b68ef94d9/DefaultMethod.java/buggy/src/org/jruby/internal/runtime/methods/DefaultMethod.java |
gammaSlider.setEnabled((f.equals(RendererModel.POLYNOMIAL) || f.equals(RendererModel.EXPONENTIAL))); | gammaSlider.setEnabled(!(f.equals(RendererModel.LINEAR) || f.equals(RendererModel.LOGARITHMIC))); | void onCurveChange() { String f = model.getFamily(); gammaSlider.setEnabled((f.equals(RendererModel.POLYNOMIAL) || f.equals(RendererModel.EXPONENTIAL))); graphicsPane.onCurveChange(); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/5bd9f9c1b75e7f0835e1ddc6123c4d18df1f2ab9/DomainPane.java/clean/SRC/org/openmicroscopy/shoola/agents/imviewer/rnd/DomainPane.java |
OrCondition(Condition l, Condition r) { _l = l; _r = r; System.out.println("Condition: " + l + " || + " + r); } | OrCondition(Condition l, Condition r) { _l = l; _r = r; } | OrCondition(Condition l, Condition r) { _l = l; _r = r; System.out.println("Condition: " + l + " || + " + r); } | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/fffcc026639af88787a0e227366da3bf91c7fa7a/OrConditionBuilder.java/buggy/webmacro/src/org/webmacro/engine/OrConditionBuilder.java |
args[0] = new RubyFixnum(ruby, new Date().getTime()); | args[0] = RubyFixnum.newFixnum(ruby, new Date().getTime()); | public static RubyTime s_new(Ruby ruby, RubyObject rubyClass) { RubyObject[] args = new RubyObject[1]; args[0] = new RubyFixnum(ruby, new Date().getTime()); return s_at(ruby, rubyClass, args); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/afb67c3765f6466c476317e6bb0c72f6593f05f3/RubyTime.java/buggy/org/jruby/RubyTime.java |
return match.isNil() ? getRuntime().getNil() : ((RubyMatchData) match).group(args[1].convertToInteger().getLongValue()); | long idx = args[1].convertToInteger().getLongValue(); return RubyRegexp.nth_match((int) idx, match); | public IRubyObject aref(IRubyObject[] args) { if (checkArgumentCount(args, 1, 2) == 2) { if (args[0] instanceof RubyRegexp) { IRubyObject match = RubyRegexp.regexpValue(args[0]).match(toString(), 0); return match.isNil() ? getRuntime().getNil() : ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/ccaba8b36154afea86c2482886e84c7df5ddad99/RubyString.java/clean/src/org/jruby/RubyString.java |
Rectangle r = node.getBounds(); | public void visit(ImageNode node) { Rectangle r = node.getBounds(); Thumbnail th = node.getThumbnail(); double sf = th.getScalingFactor(); double factor = ZoomCmd.calculateFactor(sf); if (sf != factor) { th.scale(factor); double ratio = factor/sf; ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/2509d546984c0580d2b4a547fed842ec745b87b2/ZoomVisitor.java/clean/SRC/org/openmicroscopy/shoola/agents/hiviewer/cmd/ZoomVisitor.java | |
if (sf != factor) { th.scale(factor); double ratio = factor/sf; node.setLocation((int) (r.x*ratio), (int) (r.y*ratio)); } | if (sf != factor) th.scale(factor); | public void visit(ImageNode node) { Rectangle r = node.getBounds(); Thumbnail th = node.getThumbnail(); double sf = th.getScalingFactor(); double factor = ZoomCmd.calculateFactor(sf); if (sf != factor) { th.scale(factor); double ratio = factor/sf; ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/2509d546984c0580d2b4a547fed842ec745b87b2/ZoomVisitor.java/clean/SRC/org/openmicroscopy/shoola/agents/hiviewer/cmd/ZoomVisitor.java |
if (datasets == null ||projects.size() == 0) { | if (datasets == null ||datasets.size() == 0) { | public List getDatasets() { if (datasets == null ||projects.size() == 0) { try { DataManagementService dms = registry.getDataManagementService(); datasets = dms.retrieveUserDatasets(new BrowserDatasetSummary()); Collections.sort(datasets); registry.getLogger().info(this,"loaded datasets..."); } ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/e582f2c97fd5180ac03bea1d436b354862c22b28/DataManager.java/buggy/SRC/org/openmicroscopy/shoola/agents/zoombrowser/DataManager.java |
void collectUserCredentials(SplashScreenFuture future) | void collectUserCredentials(SplashScreenFuture future, boolean init) | void collectUserCredentials(SplashScreenFuture future) { userCredentials = future; view.user.setText(""); view.user.setEnabled(true); view.pass.setEnabled(true); view.pass.setText(""); view.login.setEnabled(true); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/84042cbca2e8aeaf65ca18c85ea2224ea4c04d55/SplashScreenManager.java/clean/SRC/org/openmicroscopy/shoola/env/ui/SplashScreenManager.java |
view.user.setText(""); | void collectUserCredentials(SplashScreenFuture future) { userCredentials = future; view.user.setText(""); view.user.setEnabled(true); view.pass.setEnabled(true); view.pass.setText(""); view.login.setEnabled(true); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/84042cbca2e8aeaf65ca18c85ea2224ea4c04d55/SplashScreenManager.java/clean/SRC/org/openmicroscopy/shoola/env/ui/SplashScreenManager.java | |
view.pass.setText(""); | void collectUserCredentials(SplashScreenFuture future) { userCredentials = future; view.user.setText(""); view.user.setEnabled(true); view.pass.setEnabled(true); view.pass.setText(""); view.login.setEnabled(true); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/84042cbca2e8aeaf65ca18c85ea2224ea4c04d55/SplashScreenManager.java/clean/SRC/org/openmicroscopy/shoola/env/ui/SplashScreenManager.java | |
if (!init) { view.user.setText(""); view.pass.setText(""); } | void collectUserCredentials(SplashScreenFuture future) { userCredentials = future; view.user.setText(""); view.user.setEnabled(true); view.pass.setEnabled(true); view.pass.setText(""); view.login.setEnabled(true); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/84042cbca2e8aeaf65ca18c85ea2224ea4c04d55/SplashScreenManager.java/clean/SRC/org/openmicroscopy/shoola/env/ui/SplashScreenManager.java | |
result = (p.x2 == origin.x2); | else result = (p.x2 == origin.x2); | public boolean lies(PlanePoint p) { if (p == null) throw new NullPointerException("No point."); boolean result = false; double k1, k2; if (direction.x1 == 0 && direction.x2 !=0) { k2 = (p.x2-origin.x2)/direction.x2; if (k2 < 0 || k2 > 1) result = false; ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ae7f3de5c106a236bc540570a972b08a551522bb/Segment.java/buggy/SRC/org/openmicroscopy/shoola/util/math/geom2D/Segment.java |
RubyObject[] argsObj = ArgsUtil.setupArgs(ruby, self, getArgsNode()); | RubyPointer args = ArgsUtil.setupArgs(ruby, self, getArgsNode()); | public RubyObject eval(Ruby ruby, RubyObject self) { // TMP_PROTECT; RubyBlock tmpBlock = ArgsUtil.beginCallArgs(ruby); RubyObject[] argsObj = ArgsUtil.setupArgs(ruby, self, getArgsNode()); ArgsUtil.endCallArgs(ruby, tmpBlock); return self.getRubyClass().call(self,... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f629550c5947df9c1dbe414645f3dc76bcb70df4/FCallNode.java/clean/org/jruby/nodes/FCallNode.java |
return self.getRubyClass().call(self, getMId(), argsObj, 1); | return self.getRubyClass().call(self, getMId(), args, 1); | public RubyObject eval(Ruby ruby, RubyObject self) { // TMP_PROTECT; RubyBlock tmpBlock = ArgsUtil.beginCallArgs(ruby); RubyObject[] argsObj = ArgsUtil.setupArgs(ruby, self, getArgsNode()); ArgsUtil.endCallArgs(ruby, tmpBlock); return self.getRubyClass().call(self,... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f629550c5947df9c1dbe414645f3dc76bcb70df4/FCallNode.java/clean/org/jruby/nodes/FCallNode.java |
public static RubyObject[] setupArgs(Ruby ruby, RubyObject self, Node node) { RubyObject[] result = new RubyObject[0]; | public static RubyObject[] setupArgs(Ruby ruby, RubyObject self, ArrayNode node) { String file = ruby.getSourceFile(); int line = ruby.getSourceLine(); | public static RubyObject[] setupArgs(Ruby ruby, RubyObject self, Node node) { RubyObject[] result = new RubyObject[0]; if (node != null) { RubyObject args = node.eval(ruby, self); String file = ruby.getSourceFile(); int line = ruby.getSourceLine(); ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9a05f18f2b6207bf93455d756436fe8f0002b542/ArgsUtil.java/buggy/org/jruby/nodes/util/ArgsUtil.java |
if (node != null) { RubyObject args = node.eval(ruby, self); String file = ruby.getSourceFile(); int line = ruby.getSourceLine(); if (!(args instanceof RubyArray)) { args = RubyArray.m_newArray(ruby, args); } result = ((RubyArray)args).getList().toRubyArray(); ruby.setSourceFile(file); ruby.setSourceLine(line); } | RubyObject[] args = node.getArray(ruby, self); | public static RubyObject[] setupArgs(Ruby ruby, RubyObject self, Node node) { RubyObject[] result = new RubyObject[0]; if (node != null) { RubyObject args = node.eval(ruby, self); String file = ruby.getSourceFile(); int line = ruby.getSourceLine(); ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9a05f18f2b6207bf93455d756436fe8f0002b542/ArgsUtil.java/buggy/org/jruby/nodes/util/ArgsUtil.java |
return result; | ruby.setSourceFile(file); ruby.setSourceLine(line); return args; | public static RubyObject[] setupArgs(Ruby ruby, RubyObject self, Node node) { RubyObject[] result = new RubyObject[0]; if (node != null) { RubyObject args = node.eval(ruby, self); String file = ruby.getSourceFile(); int line = ruby.getSourceLine(); ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9a05f18f2b6207bf93455d756436fe8f0002b542/ArgsUtil.java/buggy/org/jruby/nodes/util/ArgsUtil.java |
switch (args.length) { case 0 : return this; case 1 : return (RubyException) m_new(getRuby(), this, args); default : throw new RubyArgumentException(getRuby(), "Wrong argument count"); } | switch (args.length) { case 0 : return this; case 1 : return (RubyException) m_new(getRuby(), this, args); default : throw new RubyArgumentException(getRuby(), "Wrong argument count"); } | public RubyException m_exception(RubyObject[] args) { switch (args.length) { case 0 : return this; case 1 : return (RubyException) m_new(getRuby(), this, args); default : throw new RubyArgumentException(getRuby(), "Wrong argument count"); } } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyException.java/clean/org/jruby/RubyException.java |
} | } | public RubyException m_exception(RubyObject[] args) { switch (args.length) { case 0 : return this; case 1 : return (RubyException) m_new(getRuby(), this, args); default : throw new RubyArgumentException(getRuby(), "Wrong argument count"); } } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyException.java/clean/org/jruby/RubyException.java |
RubyModule rubyClass = getRubyClass(); | RubyModule rubyClass = getRubyClass(); | public RubyString m_inspect() { RubyModule rubyClass = getRubyClass(); RubyString exception = RubyString.stringValue(this); if (exception.getValue().length() == 0) { return rubyClass.getClassPath(); } else { StringBuffer sb = new StringBuffer(); sb.append("#<"); sb.append(rubyClass.getClassPath().getValue(... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyException.java/clean/org/jruby/RubyException.java |
RubyString exception = RubyString.stringValue(this); | RubyString exception = RubyString.stringValue(this); | public RubyString m_inspect() { RubyModule rubyClass = getRubyClass(); RubyString exception = RubyString.stringValue(this); if (exception.getValue().length() == 0) { return rubyClass.getClassPath(); } else { StringBuffer sb = new StringBuffer(); sb.append("#<"); sb.append(rubyClass.getClassPath().getValue(... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyException.java/clean/org/jruby/RubyException.java |
if (exception.getValue().length() == 0) { return rubyClass.getClassPath(); } else { StringBuffer sb = new StringBuffer(); sb.append("#<"); sb.append(rubyClass.getClassPath().getValue()); sb.append(": "); sb.append(exception.getValue()); sb.append(">"); return RubyString.m_newString(getRuby(), sb.toString()); } } | if (exception.getValue().length() == 0) { return rubyClass.getClassPath(); } else { StringBuffer sb = new StringBuffer(); sb.append("#<"); sb.append(rubyClass.getClassPath().getValue()); sb.append(": "); sb.append(exception.getValue()); sb.append(">"); return RubyString.m_newString(getRuby(), sb.toString()); } } | public RubyString m_inspect() { RubyModule rubyClass = getRubyClass(); RubyString exception = RubyString.stringValue(this); if (exception.getValue().length() == 0) { return rubyClass.getClassPath(); } else { StringBuffer sb = new StringBuffer(); sb.append("#<"); sb.append(rubyClass.getClassPath().getValue(... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyException.java/clean/org/jruby/RubyException.java |
return s_new(ruby, recv.getRubyClass(), args); } | return s_new(ruby, recv.getRubyClass(), args); } | public static RubyException m_new(Ruby ruby, RubyObject recv, RubyObject[] args) { return s_new(ruby, recv.getRubyClass(), args); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyException.java/clean/org/jruby/RubyException.java |
RubyObject message = getInstanceVar("mesg"); | RubyObject message = getInstanceVar("mesg"); | public RubyString m_to_s() { RubyObject message = getInstanceVar("mesg"); if (message.isNil()) { return getRubyClass().getClassPath(); } else { message.setTaint(isTaint()); return (RubyString) message; } } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyException.java/clean/org/jruby/RubyException.java |
if (message.isNil()) { return getRubyClass().getClassPath(); } else { message.setTaint(isTaint()); | if (message.isNil()) { return getRubyClass().getClassPath(); } else { message.setTaint(isTaint()); | public RubyString m_to_s() { RubyObject message = getInstanceVar("mesg"); if (message.isNil()) { return getRubyClass().getClassPath(); } else { message.setTaint(isTaint()); return (RubyString) message; } } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyException.java/clean/org/jruby/RubyException.java |
return (RubyString) message; } } | return (RubyString) message; } } | public RubyString m_to_s() { RubyObject message = getInstanceVar("mesg"); if (message.isNil()) { return getRubyClass().getClassPath(); } else { message.setTaint(isTaint()); return (RubyString) message; } } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyException.java/clean/org/jruby/RubyException.java |
RubyException newException = new RubyException(ruby, (RubyClass)recv); if (args.length == 1) { newException.setInstanceVar("mesg", args[0]); } return newException; } | RubyException newException = new RubyException(ruby, (RubyClass)recv); if (args.length == 1) { newException.setInstanceVar("mesg", args[0]); } return newException; } | public static RubyException s_new(Ruby ruby, RubyObject recv, RubyObject[] args) { RubyException newException = new RubyException(ruby, (RubyClass)recv); if (args.length == 1) { newException.setInstanceVar("mesg", args[0]); } return newException; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RubyException.java/clean/org/jruby/RubyException.java |
controller.setSaved(true); | private void buildGUI() { setTitle("Edit Image Annotation"); Container container = getContentPane(); container.setLayout(new BorderLayout()); JPanel targetPanel = new JPanel(); targetPanel.setLayout(new FlowLayout(FlowLayout.LEFT)); JLabel editingLabel = new JLab... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/66741488882f7adf58b86911a2fcddeb7efa6448/TextAnnotationUIF.java/clean/SRC/org/openmicroscopy/shoola/agents/annotator/TextAnnotationUIF.java | |
public static void flood(String directory, String fileName, String fileExt, int numOfFiles, int linesPerFile) { File dir = new File(directory); if (dir.exists() && dir.isDirectory()) { for (int i = 1; i <= numOfFiles; i++) { try { File file = new File(directory + "/" + fileName + i + "." + fileExt); LOGGER.info("Writin... | public static void flood(String directory, String fileName, String fileExt, int numOfFiles, int linesPerFile) { File dir = new File(directory); if (dir.exists() && dir.isDirectory()) { for (int i = 1; i <= numOfFiles; i++) { FileWriter writer = null; try { File file = new File(directory + "/" + fileName + i + "." + fil... | public static void flood(String directory, String fileName, String fileExt, int numOfFiles, int linesPerFile) { File dir = new File(directory); if (dir.exists() && dir.isDirectory()) { for (int i = 1; i <= numOfFiles; i++) { try { File file = new File(direc... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/56b5525edc49962bc040c60be12062884232fcc7/FileFlooder.java/buggy/cobertura/test/net/sourceforge/cobertura/util/FileFlooder.java |
public static void main(String[] args) { FileFlooder.flood(".", "file", "txt", 100, 1000); System.out.println("done"); } | public static void main(String[] args) { FileFlooder.flood(".", "file", "txt", 100, 1000); System.out.println("done"); } | public static void main(String[] args) { FileFlooder.flood(".", "file", "txt", 100, 1000); System.out.println("done"); } | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/56b5525edc49962bc040c60be12062884232fcc7/FileFlooder.java/buggy/cobertura/test/net/sourceforge/cobertura/util/FileFlooder.java |
case RenderingDef.HSB: | static RenderingStrategy makeNew(int model) { RenderingStrategy strategy = null; switch(model) { case RenderingDef.GS: strategy = new GreyScaleStrategy(); break; case RenderingDef.RGB: strategy = new RGBStrategy(); break; default: throw new IllegalArgumentException( "Wrong Rendering mo... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1af109c95da3a7c178aa582fbdc0a6c825b00e8c/RenderingStrategy.java/clean/SRC/org/openmicroscopy/shoola/env/rnd/RenderingStrategy.java | |
System.err.println ("pageName: " + pageName); | protected WikiPage createNewPage (WikiSystem wiki, WebContext wc, WikiUser user) throws Exception { // get the page elements from the request String editor = user.getIdentifier(); String text = wc.getForm ("TEXT"); boolean moderated = wc.getForm ("MODERATED") != null && wc.getForm("MODER... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/2e6a5e583cccdc19c543caf9a1fb259181c98cb6/SavePageAction.java/buggy/wiki/src/org/tcdi/opensource/wiki/servlet/SavePageAction.java | |
System.err.println ("pageName: " + newPage.getTitle()); | protected WikiPage createNewPage (WikiSystem wiki, WebContext wc, WikiUser user) throws Exception { // get the page elements from the request String editor = user.getIdentifier(); String text = wc.getForm ("TEXT"); boolean moderated = wc.getForm ("MODERATED") != null && wc.getForm("MODER... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/2e6a5e583cccdc19c543caf9a1fb259181c98cb6/SavePageAction.java/buggy/wiki/src/org/tcdi/opensource/wiki/servlet/SavePageAction.java | |
setOpaque(true); | setOpaque(false); | TreeCheckRenderer(boolean leafOnly) { this.leafOnly = leafOnly; restoredSize = null; setLayout(null); setOpaque(true); label = new TreeCheckLabel(); check = new JCheckBox(); check.setBackground(UIManager.getColor("Tree.textBackground")); setBackground(UIMan... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/3b273af3a5320ab0a054540f14a3c299ff01de69/TreeCheckRenderer.java/buggy/SRC/org/openmicroscopy/shoola/util/ui/clsf/TreeCheckRenderer.java |
in = getClass().getClassLoader().getResourceAsStream(uri); | ClassLoader cl = parserContext.getReaderContext().getReader().getBeanClassLoader(); if (cl != null) { in = cl.getResourceAsStream(uri); } | protected InputStream loadResource(String uri) { if (System.getProperty("xbean.dir") != null) { File f = new File(System.getProperty("xbean.dir") + uri); try { return new FileInputStream(f); } catch (FileNotFoundException e) { // Ignore ... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/c60ad9116626de2c6d3638075063ca9ed4876ccd/XBeanNamespaceHandler.java/buggy/xbean-spring-v2b/src/main/java/org/apache/xbean/spring/context/v2b/XBeanNamespaceHandler.java |
log.debug("Could not find resource: " + uri); | in = getClass().getClassLoader().getResourceAsStream(uri); if (in == null) { log.debug("Could not find resource: " + uri); } | protected InputStream loadResource(String uri) { if (System.getProperty("xbean.dir") != null) { File f = new File(System.getProperty("xbean.dir") + uri); try { return new FileInputStream(f); } catch (FileNotFoundException e) { // Ignore ... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/c60ad9116626de2c6d3638075063ca9ed4876ccd/XBeanNamespaceHandler.java/buggy/xbean-spring-v2b/src/main/java/org/apache/xbean/spring/context/v2b/XBeanNamespaceHandler.java |
return "* "; | return _number > 0 ? "" + (++_number) : "* "; | protected String renderListItem() { return "* "; } | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/63e182a593c47d9b882560d480b0bab109616dc8/TextPageRenderer.java/buggy/wiki/src/org/tcdi/opensource/wiki/renderer/TextPageRenderer.java |
IconManager icons = IconManager.getInstance(); putValue(Action.SMALL_ICON, icons.getIcon(IconManager.HIERARCHICAL_LAYOUT)); | public SquaryLayoutAction(HiViewer model) { super(model); setEnabled(true); putValue(Action.NAME, NAME); //String description = // LayoutFactory.getLayoutDescription(LayoutFactory.SQUARY_LAYOUT); putValue(Action.SHORT_DESCRIPTION, ""); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ea7509babe2344eb702969105eb77096cc5b6bcf/SquaryLayoutAction.java/clean/SRC/org/openmicroscopy/shoola/agents/hiviewer/actions/SquaryLayoutAction.java | |
assertNull(c.scriptFileName); | assertNull(c.getScriptFileName()); | public void testParsing() { CommandlineParser c = new CommandlineParser(new String[] { "-e", "hello", "-e", "world" }); assertEquals("hello\nworld\n", c.inlineScript()); assertNull(c.scriptFileName); assertEquals("-e", c.displayedFileName()); c = new CommandlineParser(new String[]... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/7fc9704f263fb0e26619a38cdcd58fae7692e4da/TestCommandlineParser.java/clean/test/org/jruby/test/TestCommandlineParser.java |
assertTrue(c.showVersion); | assertTrue(c.isShowVersion()); | public void testParsing() { CommandlineParser c = new CommandlineParser(new String[] { "-e", "hello", "-e", "world" }); assertEquals("hello\nworld\n", c.inlineScript()); assertNull(c.scriptFileName); assertEquals("-e", c.displayedFileName()); c = new CommandlineParser(new String[]... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/7fc9704f263fb0e26619a38cdcd58fae7692e4da/TestCommandlineParser.java/clean/test/org/jruby/test/TestCommandlineParser.java |
assertTrue(c.assumeLoop); assertEquals("myfile.rb", c.scriptFileName); | assertTrue(c.isAssumeLoop()); assertEquals("myfile.rb", c.getScriptFileName()); | public void testParsing() { CommandlineParser c = new CommandlineParser(new String[] { "-e", "hello", "-e", "world" }); assertEquals("hello\nworld\n", c.inlineScript()); assertNull(c.scriptFileName); assertEquals("-e", c.displayedFileName()); c = new CommandlineParser(new String[]... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/7fc9704f263fb0e26619a38cdcd58fae7692e4da/TestCommandlineParser.java/clean/test/org/jruby/test/TestCommandlineParser.java |
test.TPrx printer = test.TPrxHelper.checkedCast(base); | mono.TPrx printer = mono.TPrxHelper.checkedCast(base); | main(String[] args) { int status = 0; Ice.Communicator ic = null; try { ic = Ice.Util.initialize(args); Ice.ObjectPrx base = ic.stringToProxy( "T:default -p 10000"); test.TPrx printer = test.TPrxHelper.checkedCast(base); ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/d075eea85d4fb93ed40f6b4f476d90a0bccaf12a/Client.java/clean/components/common/test/mono/Client.java |
+ new String(curBuf.buffer, 0, curBuf.curPos + 1); | + new String(curBuf.buffer, 0, curBuf.curPos); | public final String GetImage() { if (tokenBeginBuf == curBuf) return new String(curBuf.buffer, tokenBeginPos, curBuf.curPos - tokenBeginPos + 1); else return new String(otherBuf.buffer, tokenBeginPos, otherBuf.dataLen - tokenBeginPos) ... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/9dce0ae9f6a6e6eacbbac0735ab43aa8a7241478/BackupCharStream.java/buggy/webmacro/src/org/webmacro/parser/BackupCharStream.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.