rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
Category tmp = (Category) c.next(); Category2 ca = new Category2(tmp); | Classification cla = (Classification) c.next(); | public Set findCGCIHierarchies(final Set arg0) { // CONTRACT if (null == arg0 || arg0.size() == 0) { return new HashSet(); } List result = containerDao.findCGCIHierarchies(arg0); Set imagesAll = new HashSet(result); if (null == imagesAll || imagesAll.size() == 0)... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/HierarchyBrowsingImpl.java/clean/components/server/src/org/openmicroscopy/omero/logic/HierarchyBrowsingImpl.java |
if (!(ca.getImages() instanceof HashSet)) ca.setImages(new HashSet()); ca.getImages().add(img); | cla.setImage(img); | public Set findCGCIHierarchies(final Set arg0) { // CONTRACT if (null == arg0 || arg0.size() == 0) { return new HashSet(); } List result = containerDao.findCGCIHierarchies(arg0); Set imagesAll = new HashSet(result); if (null == imagesAll || imagesAll.size() == 0)... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/HierarchyBrowsingImpl.java/clean/components/server/src/org/openmicroscopy/omero/logic/HierarchyBrowsingImpl.java |
CategoryGroup cg = ca.getCategoryGroup(); if (cg == null) { hierarchies.add(ca); | Category ca = cla.getCategory(); if (null == ca) { hierarchies.add(cla); | public Set findCGCIHierarchies(final Set arg0) { // CONTRACT if (null == arg0 || arg0.size() == 0) { return new HashSet(); } List result = containerDao.findCGCIHierarchies(arg0); Set imagesAll = new HashSet(result); if (null == imagesAll || imagesAll.size() == 0)... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/HierarchyBrowsingImpl.java/clean/components/server/src/org/openmicroscopy/omero/logic/HierarchyBrowsingImpl.java |
if (!(cg.getCategories() instanceof HashSet)) cg.setCategories(new HashSet()); cg.getCategories().add(ca); hierarchies.add(cg); | if (!(ca.getClassifications() instanceof HashSet)) ca.setClassifications(new HashSet()); ca.getClassifications().add(cla); CategoryGroup cg = ca.getCategoryGroup(); if (cg == null) { hierarchies.add(ca); } else { if (!(cg.getCategories() instanceof HashSet)) cg.setCategories(new HashSet()); cg.getCategories().add(ca);... | public Set findCGCIHierarchies(final Set arg0) { // CONTRACT if (null == arg0 || arg0.size() == 0) { return new HashSet(); } List result = containerDao.findCGCIHierarchies(arg0); Set imagesAll = new HashSet(result); if (null == imagesAll || imagesAll.size() == 0)... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/HierarchyBrowsingImpl.java/clean/components/server/src/org/openmicroscopy/omero/logic/HierarchyBrowsingImpl.java |
void hessianClean(Object obj, Set done) { | private void hessianClean(Object obj, Set done) { | void hessianClean(Object obj, Set done) { if (null == obj) return; if (done.contains(obj)) return; done.add(obj); if (obj instanceof Map) { Map map = (Map) obj; for (Iterator i = map.values().iterator(); i.hasNext();) { Object va... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/HierarchyBrowsingImpl.java/clean/components/server/src/org/openmicroscopy/omero/logic/HierarchyBrowsingImpl.java |
Method setter = ReflectionUtils.getSetterForGetter(methods, method); | Method setter = ReflectionUtils.getSetterForGetter(methods, method); | void hessianClean(Object obj, Set done) { if (null == obj) return; if (done.contains(obj)) return; done.add(obj); if (obj instanceof Map) { Map map = (Map) obj; for (Iterator i = map.values().iterator(); i.hasNext();) { Object va... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/HierarchyBrowsingImpl.java/clean/components/server/src/org/openmicroscopy/omero/logic/HierarchyBrowsingImpl.java |
manager.findCGCPaths((Set)arg[0],((Integer)arg[1]).intValue(), (Map)arg[2]); | manager.findCGCPaths((Set)arg[0],(String)arg[1], (Map)arg[2]); | public void testFindCGCPaths() { T t = new T(IllegalArgumentException.class){ @Override public void doTest(Object[] arg) { manager.findCGCPaths((Set)arg[0],((Integer)arg[1]).intValue(), (Map)arg[2]); } }; // param1: not null t.blowup(true,null,1,new HashMap()); t.blowup(false,new HashSet(),1,new HashMa... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0aa4af63b981e511b5fb82621bc6293945ca0d64/PojosConstraintsTest.java/clean/components/server/test/ome/server/utests/PojosConstraintsTest.java |
t.blowup(true,null,1,new HashMap()); t.blowup(false,new HashSet(),1,new HashMap()); | t.blowup(true,null,IPojos.CLASSIFICATION_ME,new HashMap()); t.blowup(false,new HashSet(),IPojos.CLASSIFICATION_NME,new HashMap()); t.blowup(false,new HashSet(),IPojos.DECLASSIFICATION,new HashMap()); | public void testFindCGCPaths() { T t = new T(IllegalArgumentException.class){ @Override public void doTest(Object[] arg) { manager.findCGCPaths((Set)arg[0],((Integer)arg[1]).intValue(), (Map)arg[2]); } }; // param1: not null t.blowup(true,null,1,new HashMap()); t.blowup(false,new HashSet(),1,new HashMa... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0aa4af63b981e511b5fb82621bc6293945ca0d64/PojosConstraintsTest.java/clean/components/server/test/ome/server/utests/PojosConstraintsTest.java |
manager.findCGCPaths((Set)arg[0],((Integer)arg[1]).intValue(), (Map)arg[2]); | manager.findCGCPaths((Set)arg[0],(String)arg[1], (Map)arg[2]); | public void doTest(Object[] arg) { manager.findCGCPaths((Set)arg[0],((Integer)arg[1]).intValue(), (Map)arg[2]); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0aa4af63b981e511b5fb82621bc6293945ca0d64/PojosConstraintsTest.java/clean/components/server/test/ome/server/utests/PojosConstraintsTest.java |
while (enum.hasMoreElements()) | if (enum.hasMoreElements()) | public boolean accept(WikiSystem wiki, WebContext wc, WikiUser user) { Enumeration enum = wc.getRequest().getParameterNames(); // don't accept if we have request parameters while (enum.hasMoreElements()) return false; // and then only accept if this is a get request ... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/a24ecb46046b93185ca4901af358792a86cb2c81/ViewPageAction.java/buggy/wiki/src/org/tcdi/opensource/wiki/servlet/ViewPageAction.java |
String template = props.getProperty (page.getTitle()); return template == null ? props.getProperty ("ViewPageAction.Template") : template; | String template = props.getProperty ("ViewPageAction.Template"); if (page != null) { template = props.getProperty (page.getTitle()); } return template; | public String getTemplateName(WikiSystem wiki, WikiPage page) { Properties props = wiki.getProperties(); String template = props.getProperty (page.getTitle()); return template == null ? props.getProperty ("ViewPageAction.Template") : template; } | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/a24ecb46046b93185ca4901af358792a86cb2c81/ViewPageAction.java/buggy/wiki/src/org/tcdi/opensource/wiki/servlet/ViewPageAction.java |
delegate = (RenderingEngine) applicationContext.getBean("renderService"); | delegate = (RenderingEngine) applicationContext.getBean( RenderingEngine.class.getName()); | public void create() { super.create(); delegate = (RenderingEngine) applicationContext.getBean("renderService"); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/f7d8facc0df80871004c721c1920ba34361d4e05/RenderingBean.java/clean/components/ejb/src/ome/ro/ejb/RenderingBean.java |
delegate = null; | public void destroy() { super.destroy(); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/f7d8facc0df80871004c721c1920ba34361d4e05/RenderingBean.java/clean/components/ejb/src/ome/ro/ejb/RenderingBean.java | |
po.leaves(); | public Set findContainerHierarchy(Class rootNodeType, Set leavesIDs, Class rootLevel, long rootLevelID) throws DSOutOfServiceException, DSAccessException { try { PojoOptions po = new PojoOptions(); setRootOptions(po, rootLevel, rootLevelID);... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ea7509babe2344eb702969105eb77096cc5b6bcf/OmeroDataServiceImpl.java/clean/SRC/org/openmicroscopy/shoola/env/data/OmeroDataServiceImpl.java | |
regexpClass.defineSingletonMethod("union", callbackFactory.getOptSingletonMethod("union")); | public static RubyClass createRegexpClass(IRuby runtime) { RubyClass regexpClass = runtime.defineClass("Regexp", runtime.getObject()); CallbackFactory callbackFactory = runtime.callbackFactory(RubyRegexp.class); regexpClass.defineConstant("IGNORECASE", runtime.newFixnum(RE_OPTION_IGNORE... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/41a9baded6a5a018b3e0e89cbecf7cdfafe6af6b/RubyRegexp.java/buggy/src/org/jruby/RubyRegexp.java | |
if (i == 0 || regex.charAt(i - 1) != '\\') { sb.append("\\"); } | 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/41a9baded6a5a018b3e0e89cbecf7cdfafe6af6b/RubyRegexp.java/buggy/src/org/jruby/RubyRegexp.java | |
buffer.append(pattern.pattern()); | buffer.append(pattern.pattern().replaceAll("^/|([^\\\\])/", "$1\\\\/")); | public String toString() { StringBuffer buffer = new StringBuffer(100); StringBuffer off = new StringBuffer(3); buffer.append("(?"); flagToString(buffer, off, Pattern.DOTALL, 'm'); flagToString(buffer, off, Pattern.CASE_INSENSITIVE, 'i'); flagToString(buffer, off, Pattern.COMMENTS,... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/41a9baded6a5a018b3e0e89cbecf7cdfafe6af6b/RubyRegexp.java/buggy/src/org/jruby/RubyRegexp.java |
else if (op == TreeViewer.REMOVE_OBJECT) view.removeNodes(nodes); else if (op == Editor.CREATE_OBJECT) { | else if (op == TreeViewer.REMOVE_OBJECT) { TreeImageDisplay parentDisplay = getSelectedDisplay().getParentDisplay(); setSelectedDisplay(parentDisplay); view.removeNodes(nodes, parentDisplay); } else if (op == Editor.CREATE_OBJECT) { | public void refreshEdit(DataObject object, int op) { Object o = object; if (op == Editor.CREATE_OBJECT) o = getSelectedDisplay().getUserObject(); EditVisitor visitor = new EditVisitor(this, o); accept(visitor, TreeImageDisplayVisitor.TREEIMAGE_SET_ONLY); Set nodes = ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/3fc76f3da582f7d2ddc56be96259f52fdf92d68e/BrowserComponent.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/browser/BrowserComponent.java |
view.createNodes(nodes, display); | view.createNodes(nodes, display, parentDisplay); | public void refreshEdit(DataObject object, int op) { Object o = object; if (op == Editor.CREATE_OBJECT) o = getSelectedDisplay().getUserObject(); EditVisitor visitor = new EditVisitor(this, o); accept(visitor, TreeImageDisplayVisitor.TREEIMAGE_SET_ONLY); Set nodes = ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/3fc76f3da582f7d2ddc56be96259f52fdf92d68e/BrowserComponent.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/browser/BrowserComponent.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-v2a/src/main/java/org/apache/xbean/spring/context/v2a/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-v2a/src/main/java/org/apache/xbean/spring/context/v2a/XBeanNamespaceHandler.java |
originalName = name; | void setAreas(String name, String description, String title, boolean isWritable) { nameArea.setEnabled(isWritable); nameArea.getDocument().removeDocumentListener(nameAreaListener); nameArea.setText(name); nameArea.getDocument().addDocumentListener(nameAreaListener); ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/39bb6f0c93c9752d3daacd9753b8402e6d393a78/EditorPaneUI.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/clipboard/editor/EditorPaneUI.java | |
return Servlet22Broker.getBroker(s); | b = Servlet22Broker.getBroker(s); | public static Broker getBroker(Servlet s) throws InitException { int minorVersion, majorVersion; ServletContext sc = s.getServletConfig().getServletContext(); try { majorVersion = sc.getMajorVersion(); minorVersion = sc.getMinorVersion(); } catch (NoSuchMethodError e) { ... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/65c210c2e5230f99b78b769799e9e54e3fcce30a/ServletBroker.java/buggy/webmacro/src/org/webmacro/servlet/ServletBroker.java |
return Servlet20Broker.getBroker(s); | b = Servlet20Broker.getBroker(s); b.startClient(); return b; | public static Broker getBroker(Servlet s) throws InitException { int minorVersion, majorVersion; ServletContext sc = s.getServletConfig().getServletContext(); try { majorVersion = sc.getMajorVersion(); minorVersion = sc.getMinorVersion(); } catch (NoSuchMethodError e) { ... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/65c210c2e5230f99b78b769799e9e54e3fcce30a/ServletBroker.java/buggy/webmacro/src/org/webmacro/servlet/ServletBroker.java |
if (ch == '=' || ch == '\'' || ch == '\"' | if (ch == '=' || ch == '\'' || ch == '\"' || ch == ':' | final public boolean directiveOk() { if (size() == 0 || size() == literalMark) return true; else { Object o = elementAt(size() - 1); if (!(o instanceof String)) return true; else { String s = (String) o; char ch = s.charAt(s.length()-1); if (ch == '=' || ch == '\... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/8dac6efc346bb9470d2a26c17204e2f6eb1d5973/ParserBlockBuilder.java/buggy/webmacro/src/org/webmacro/parser/ParserBlockBuilder.java |
return "Dataset"+(datasetId==null ? ":Hash"+this.hashCode() : ":"+datasetId); | return "Dataset"+(datasetId==null ? ":Hash_"+this.hashCode() : ":Id_"+datasetId); | public String toString(){ return "Dataset"+(datasetId==null ? ":Hash"+this.hashCode() : ":"+datasetId); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/51a3c546dfc7a7a98b29771a459df19094fc5b51/Dataset.java/clean/components/common/src/ome/model/Dataset.java |
b.startClient(); | public static Broker getBroker() throws InitException { try { Broker b = findBroker(WEBMACRO_PROPERTIES); if (b == null) { b = new Broker(); register(WEBMACRO_PROPERTIES, b); } return b; } catch (InitException e) { Log log = LogSystem.getSy... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/65c210c2e5230f99b78b769799e9e54e3fcce30a/Broker.java/clean/webmacro/src/org/webmacro/Broker.java | |
_log.info("stopping clock"); Clock.stopClient(); | synchronized public void shutdown() { _log.notice("shutting down"); Enumeration e = _providers.elements(); while (e.hasMoreElements()) { Provider pr = (Provider) e.nextElement(); _log.info("stopping: " + pr); pr.destroy(); } _providers.clear(); _ls.flush(); } | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/65c210c2e5230f99b78b769799e9e54e3fcce30a/Broker.java/clean/webmacro/src/org/webmacro/Broker.java | |
readline = new ConsoleReader(); readline.setUseHistory(false); readline.setUsePagination(true); ((CandidateListCompletionHandler) readline.getCompletionHandler()).setAlwaysIncludeNewline(false); currentCompletor = new RubyFileNameCompletor(); readline.addCompletor(currentCompletor); | history = new History(); currentCompletor = null; | public static void createReadline(IRuby runtime) throws IOException { readline = new ConsoleReader(); readline.setUseHistory(false); readline.setUsePagination(true); ((CandidateListCompletionHandler) readline.getCompletionHandler()).setAlwaysIncludeNewline(false); currentCompletor... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d38821551a58969cd2593b463d93df5f32bf3c14/Readline.java/buggy/src/org/jruby/ext/Readline.java |
for (Iterator i = readline.getHistory().getHistoryList().iterator(); i.hasNext();) { | for (Iterator i = history.getHistoryList().iterator(); i.hasNext();) { | public static IRubyObject s_hist_to_a(IRubyObject recv) throws Exception { RubyArray histList = recv.getRuntime().newArray(); for (Iterator i = readline.getHistory().getHistoryList().iterator(); i.hasNext();) { histList.append(recv.getRuntime().newString((String) i.next())); } return histList; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d38821551a58969cd2593b463d93df5f32bf3c14/Readline.java/buggy/src/org/jruby/ext/Readline.java |
readline.getHistory().addToHistory(line.toString()); | history.addToHistory(line.toString()); | public static IRubyObject s_push(IRubyObject recv, IRubyObject line) throws Exception { readline.getHistory().addToHistory(line.toString()); return recv.getRuntime().getNil(); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d38821551a58969cd2593b463d93df5f32bf3c14/Readline.java/buggy/src/org/jruby/ext/Readline.java |
if (readline == null) initReadline(); | public static IRubyObject s_readline(IRubyObject recv, IRubyObject prompt, IRubyObject add_to_hist) throws IOException { IRubyObject line = recv.getRuntime().getNil(); String v = readline.readLine(prompt.toString()); if(null != v) { if (add_to_hist.isTrue()) readline.g... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d38821551a58969cd2593b463d93df5f32bf3c14/Readline.java/buggy/src/org/jruby/ext/Readline.java | |
readline.removeCompletor(currentCompletor); currentCompletor = new ProcCompletor(proc); readline.addCompletor(currentCompletor); | setCompletor(new ProcCompletor(proc)); | public static IRubyObject s_set_completion_proc(IRubyObject recv, IRubyObject proc) throws Exception { if (!proc.respondsTo("call")) throw recv.getRuntime().newArgumentError("argument must respond to call"); readline.removeCompletor(currentCompletor); currentCompletor = new ProcCompletor(proc); ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d38821551a58969cd2593b463d93df5f32bf3c14/Readline.java/buggy/src/org/jruby/ext/Readline.java |
categories.add(cla.getCategory()); | if (null!=cla.getCategory()){ categories.add(cla.getCategory()); } | public Set findCGCIHierarchies(final Set arg0) { // CONTRACT if (null == arg0 || arg0.size() == 0) { return new HashSet(); } List result = containerDao.findCGCIHierarchies(arg0); Set imagesAll = new HashSet(result); if (null == imagesAll || imagesAll.size() == 0)... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9cc885fa28a62ed7b7bf1dbcf110c443345339d1/HierarchyBrowsingImpl.java/buggy/components/server/src/org/openmicroscopy/omero/logic/HierarchyBrowsingImpl.java |
super(Constants.NODE_ITER, varNode, bodyNode, iterNode); } | super(Constants.NODE_ITER, varNode, bodyNode, iterNode); } | public IterNode(Node varNode, Node bodyNode, Node iterNode) { super(Constants.NODE_ITER, varNode, bodyNode, iterNode); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9a753ba8b7044ff0fda700232a1845d0df24f37b/IterNode.java/clean/org/jruby/nodes/IterNode.java |
iVisitor.visitIterNode(this); } | iVisitor.visitIterNode(this); } | public void accept(NodeVisitor iVisitor) { iVisitor.visitIterNode(this); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9a753ba8b7044ff0fda700232a1845d0df24f37b/IterNode.java/clean/org/jruby/nodes/IterNode.java |
RubyObject result; | RubyObject result; | public RubyObject eval(Ruby ruby, RubyObject self) { RubyObject result; ruby.getBlock().push(getVarNode(), getBodyNode(), self); ruby.getIter().push(RubyIter.ITER_PRE); try { while (true) { try { return getIterNode().eval(ruby, self); ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9a753ba8b7044ff0fda700232a1845d0df24f37b/IterNode.java/clean/org/jruby/nodes/IterNode.java |
ruby.getBlock().push(getVarNode(), getBodyNode(), self); ruby.getIter().push(RubyIter.ITER_PRE); try { while (true) { try { return getIterNode().eval(ruby, self); } catch (RetryException rExcptn) { } } } catch (ReturnException rExcptn) { return rExcptn.getReturnValue(); } catch (BreakJump bExcptn) { return ruby.getNil(... | ruby.getBlock().push(getVarNode(), getBodyNode(), self); ruby.getIter().push(RubyIter.ITER_PRE); try { while (true) { try { return getIterNode().eval(ruby, self); } catch (RetryException rExcptn) { } } } catch (ReturnException rExcptn) { return rExcptn.getReturnValue(); } catch (BreakJump bExcptn) { return ruby.getNil(... | public RubyObject eval(Ruby ruby, RubyObject self) { RubyObject result; ruby.getBlock().push(getVarNode(), getBodyNode(), self); ruby.getIter().push(RubyIter.ITER_PRE); try { while (true) { try { return getIterNode().eval(ruby, self); ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9a753ba8b7044ff0fda700232a1845d0df24f37b/IterNode.java/clean/org/jruby/nodes/IterNode.java |
label.setBounds(BORDER+WIDTH+HSPACE, TOP, 45, 10); | label.setBounds(BORDER+WIDTH+HSPACE, TOP, 55, 10); | private JLabel buildLabel() { JLabel label = new JLabel("Preview"); label.setBounds(BORDER+WIDTH+HSPACE, TOP, 45, 10); return label; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/5bb26faa9c073c259106cdbdd8e0f710624321f0/ColorSelector.java/buggy/SRC/org/openmicroscopy/shoola/agents/rnd/model/ColorSelector.java |
} /*else if (id == k__FILE__) { | } /* TODO: add __FILE__ and __LINE__ support? else if (id == k__FILE__) { | public Node gettable(String id, ISourcePosition position) { if (id.equals("self")) { return new SelfNode(position); } else if (id.equals("nil")) { return new NilNode(position); } else if (id.equals("true")) { return new TrueNode(position); } else if (id.equals(... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/981d76c8b595dfbe131493e89ca5ff7db5834a2e/ParserSupport.java/clean/src/org/jruby/parser/ParserSupport.java |
localNamesStack.push(new LocalNamesElement()); | LocalNamesElement localNames = new LocalNamesElement(); localNamesStack.push(localNames); | public void initTopLocalVariables() { localNamesStack.push(new LocalNamesElement()); String[] names = configuration.getLocalVariables(); if (names != null && names.length > 0) { LocalNamesElement localNames = (LocalNamesElement) localNamesStack.peek(); List namesList = new ArrayLis... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/981d76c8b595dfbe131493e89ca5ff7db5834a2e/ParserSupport.java/clean/src/org/jruby/parser/ParserSupport.java |
LocalNamesElement localNames = (LocalNamesElement) localNamesStack.peek(); List namesList = new ArrayList(names.length); | List namesList = new ArrayList(names.length); | public void initTopLocalVariables() { localNamesStack.push(new LocalNamesElement()); String[] names = configuration.getLocalVariables(); if (names != null && names.length > 0) { LocalNamesElement localNames = (LocalNamesElement) localNamesStack.peek(); List namesList = new ArrayLis... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/981d76c8b595dfbe131493e89ca5ff7db5834a2e/ParserSupport.java/clean/src/org/jruby/parser/ParserSupport.java |
if (configuration.getDynamicVariables() != null) { localNames.changeBlockLevel(1); getBlockNames().push(new BlockNamesElement(configuration.getDynamicVariables())); } | public void initTopLocalVariables() { localNamesStack.push(new LocalNamesElement()); String[] names = configuration.getLocalVariables(); if (names != null && names.length > 0) { LocalNamesElement localNames = (LocalNamesElement) localNamesStack.peek(); List namesList = new ArrayLis... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/981d76c8b595dfbe131493e89ca5ff7db5834a2e/ParserSupport.java/clean/src/org/jruby/parser/ParserSupport.java | |
e1.printStackTrace(); | Log.error(e1); | public void actionPerformed(ActionEvent e) { try { File file = new File(transfer.getFilePath()); transfer = transferManager.createOutgoingFileTransfer(fullJID); transfer.sendFile(file, "Sending"); } catch (... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/e3a7a307a8f9a8e562406bb4e0820d56a5810759/SendMessage.java/clean/src/java/org/jivesoftware/sparkimpl/plugin/filetransfer/transfer/ui/SendMessage.java |
if (!manager.isMoving()) g2D.setColor(manager.getLineColor()); | g2D.setColor(manager.getLineColor()); | private void paintROI(Graphics2D g2D) { if (currentShape != null) { if (!manager.isMoving()) g2D.setColor(manager.getLineColor()); g2D.draw(currentShape); } List l = manager.getListROI(); if (l.size()>0) paintROICollection(g2D, l); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/cfc52b7b8d32ef4ef75453a2e435f5fb84e45290/DrawingCanvas.java/clean/SRC/org/openmicroscopy/shoola/agents/roi/canvas/DrawingCanvas.java |
return (Set) cache.get(); | return this._cache.keySet(); | public Set getCache(){ return (Set) cache.get(); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0b36a8e77f5bacb7e122d76ffce01866205b09d7/GraphRule.java/clean/components/server/src/ome/rules/drools/GraphRule.java |
if (cache.get()==null) newCache(); ( (Set) cache.get()).add(o); | _cache.put(o,dummy); | protected void addSeen(Object o){ if (cache.get()==null) newCache(); ( (Set) cache.get()).add(o); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0b36a8e77f5bacb7e122d76ffce01866205b09d7/ContextFilter.java/buggy/components/common/src/ome/util/ContextFilter.java |
} catch (IllegalAccessException iaExcptn) { } catch (IllegalArgumentException iaExcptn) { } catch (InvocationTargetException itExcptn) { | } catch (IllegalAccessException ex) { throw new RaiseException(ruby, "RuntimeError", ex.getMessage()); } catch (IllegalArgumentException ex) { throw new RaiseException(ruby, "RuntimeError", ex.getMessage()); } catch (InvocationTargetException ex) { throw new RaiseException(ruby, "RuntimeError", ex.getMessage()); | public RubyObject execute(RubyObject recv, RubyObject[] args, Ruby ruby) { LinkedList executeMethods = new LinkedList(Arrays.asList(methods)); int argsLength = args != null ? args.length : 0; // remove mehods with wrong parameter count. Iterator iter = executeMethods.iter... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/JavaMethod.java/clean/org/jruby/javasupport/JavaMethod.java |
return ruby.getNil(); | public RubyObject execute(RubyObject recv, RubyObject[] args, Ruby ruby) { LinkedList executeMethods = new LinkedList(Arrays.asList(methods)); int argsLength = args != null ? args.length : 0; // remove mehods with wrong parameter count. Iterator iter = executeMethods.iter... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/JavaMethod.java/clean/org/jruby/javasupport/JavaMethod.java | |
int comparison = sourceFileData0.getBaseName().compareTo( sourceFileData1.getBaseName()); | int comparison = sourceFileData0.getBaseName().compareTo(sourceFileData1.getBaseName()); | public int compare(Object arg0, Object arg1) { SourceFileData sourceFileData0 = (SourceFileData)arg0; SourceFileData sourceFileData1 = (SourceFileData)arg1; int comparison = sourceFileData0.getBaseName().compareTo( sourceFileData1.getBaseName()); if (comparison != 0) return comparison; return sourceFileData0... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/56b5525edc49962bc040c60be12062884232fcc7/SourceFileDataBaseNameComparator.java/clean/cobertura/src/net/sourceforge/cobertura/reporting/html/SourceFileDataBaseNameComparator.java |
case MOVE_ROI: handleState(ROIAgt.MOVING, true); break; case SIZE_ROI: handleState(ROIAgt.RESIZING, false); break; case DRAW_ON_OFF: handleOnOffDrawing(e); break; | public void actionPerformed(ActionEvent e) { int index = Integer.parseInt(e.getActionCommand()); try { switch (index) { case RECTANGLE: setType(ROIFactory.RECTANGLE, true); break; case ELLIPSE: setType(ROIFactory.ELLIPSE... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/5a24f0694b3b2688b3654418621643358ae3daa4/ControlsManager.java/buggy/SRC/org/openmicroscopy/shoola/agents/roi/pane/ControlsManager.java | |
view.getMoveROI().setBorderPainted(false); view.getSizeROI().setBorderPainted(false); | private void paintedDrawingButtons(boolean b) { view.getRectangle().setBorderPainted(b); view.getEllipse().setBorderPainted(!b); view.getMoveROI().setBorderPainted(false); view.getSizeROI().setBorderPainted(false); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/5a24f0694b3b2688b3654418621643358ae3daa4/ControlsManager.java/buggy/SRC/org/openmicroscopy/shoola/agents/roi/pane/ControlsManager.java | |
control.setState(ROIAgt.CONSTRUCTING); | private void setType(int type, boolean b) { paintedDrawingButtons(b); control.setType(type); control.setState(ROIAgt.CONSTRUCTING); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/5a24f0694b3b2688b3654418621643358ae3daa4/ControlsManager.java/buggy/SRC/org/openmicroscopy/shoola/agents/roi/pane/ControlsManager.java | |
if (display != null) { | if (display != null) { | public void scale(double f) { if (f < MIN_SCALING_FACTOR || f > MAX_SCALING_FACTOR) return; scalingFactor = f; int w = (int) (originalWidth*f), h = (int) (originalHeight*f); if (fullScaleThumb != null) { displayThumb = magnifyImage(f, fullScaleThumb); w = display... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/2509d546984c0580d2b4a547fed842ec745b87b2/ThumbnailProvider.java/clean/SRC/org/openmicroscopy/shoola/agents/hiviewer/ThumbnailProvider.java |
getInternalDesktop().setSize(w, h); | public void setCanvasSize(int w, int h) { canvas.setBounds(0, 0, w, h); getInternalDesktop().setPreferredSize(new Dimension(w, h)); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/363d07413f8105ef4b21acd50ec702152c2667a1/ImageNode.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/browser/ImageNode.java | |
public RubyFixnum aref(IRubyObject other) { RubyNumeric pos = numericValue(other); | public RubyFixnum aref(RubyNumeric pos) { | public RubyFixnum aref(IRubyObject other) { RubyNumeric pos = numericValue(other); boolean isSet = getValue().testBit((int) pos.getLongValue()); return RubyFixnum.newFixnum(getRuntime(), (isSet ? 1 : 0)); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1c602493a83e2050f401fa6925ec7e9269b45e4e/RubyBignum.java/clean/src/org/jruby/RubyBignum.java |
static public BigInteger bigIntValue(RubyNumeric other) { if (other instanceof RubyFloat) { Asserts.notReached("argument must be an integer"); } return (other instanceof RubyBignum) ? ((RubyBignum) other).getValue() : BigInteger.valueOf(other.getLongValue()); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1c602493a83e2050f401fa6925ec7e9269b45e4e/RubyBignum.java/clean/src/org/jruby/RubyBignum.java | ||
protected int compareValue(RubyNumeric other) { if (other instanceof RubyFloat) { double otherVal = other.getDoubleValue(); double thisVal = getDoubleValue(); return thisVal > otherVal ? 1 : thisVal < otherVal ? -1 : 0; } return getValue().compareTo(bigIntValue(... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1c602493a83e2050f401fa6925ec7e9269b45e4e/RubyBignum.java/clean/src/org/jruby/RubyBignum.java | ||
return new BignumDefinition(ruby).getType(); | RubyClass result = ruby.defineClass("Bignum", ruby.getClasses().getIntegerClass()); CallbackFactory callbackFactory = ruby.callbackFactory(); result.defineMethod("~", callbackFactory.getMethod(RubyBignum.class, "op_invert")); result.defineMethod("&", callbackFactory.getMethod(RubyBignum.class, "op_and", RubyNumeric.cl... | public static RubyClass createBignumClass(Ruby ruby) { return new BignumDefinition(ruby).getType(); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1c602493a83e2050f401fa6925ec7e9269b45e4e/RubyBignum.java/clean/src/org/jruby/RubyBignum.java |
public RubyNumeric op_and(IRubyObject other) { RubyNumeric otherNumeric = numericValue(other); if (otherNumeric instanceof RubyBignum) { | public RubyNumeric op_and(RubyNumeric other) { if (other instanceof RubyBignum) { | public RubyNumeric op_and(IRubyObject other) { RubyNumeric otherNumeric = numericValue(other); if (otherNumeric instanceof RubyBignum) { return bigNorm(getRuntime(), value.and(((RubyBignum) other).value)); } else { return bigNorm(getRuntime(), getValue()... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1c602493a83e2050f401fa6925ec7e9269b45e4e/RubyBignum.java/clean/src/org/jruby/RubyBignum.java |
} else { return bigNorm(getRuntime(), getValue().and(newBignum(getRuntime(), otherNumeric.getLongValue()).getValue())); /* return RubyFixnum.newFixnum(getRuntime(), getTruncatedLongValue() & otherNumeric.getLongValue()); */ | public RubyNumeric op_and(IRubyObject other) { RubyNumeric otherNumeric = numericValue(other); if (otherNumeric instanceof RubyBignum) { return bigNorm(getRuntime(), value.and(((RubyBignum) other).value)); } else { return bigNorm(getRuntime(), getValue()... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1c602493a83e2050f401fa6925ec7e9269b45e4e/RubyBignum.java/clean/src/org/jruby/RubyBignum.java | |
return bigNorm(getRuntime(), getValue().and(newBignum(getRuntime(), other.getLongValue()).getValue())); | public RubyNumeric op_and(IRubyObject other) { RubyNumeric otherNumeric = numericValue(other); if (otherNumeric instanceof RubyBignum) { return bigNorm(getRuntime(), value.and(((RubyBignum) other).value)); } else { return bigNorm(getRuntime(), getValue()... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1c602493a83e2050f401fa6925ec7e9269b45e4e/RubyBignum.java/clean/src/org/jruby/RubyBignum.java | |
public RubyNumeric op_div(IRubyObject num) { RubyNumeric other = numericValue(num); | public RubyNumeric op_div(RubyNumeric other) { | public RubyNumeric op_div(IRubyObject num) { RubyNumeric other = numericValue(num); if (other instanceof RubyFloat) { return RubyFloat.newFloat(getRuntime(), getDoubleValue()).op_div(other); } BigInteger results[] = getValue(... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1c602493a83e2050f401fa6925ec7e9269b45e4e/RubyBignum.java/clean/src/org/jruby/RubyBignum.java |
public RubyNumeric op_div(IRubyObject num) { RubyNumeric other = numericValue(num); if (other instanceof RubyFloat) { return RubyFloat.newFloat(getRuntime(), getDoubleValue()).op_div(other); } BigInteger results[] = getValue(... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1c602493a83e2050f401fa6925ec7e9269b45e4e/RubyBignum.java/clean/src/org/jruby/RubyBignum.java | ||
public RubyBignum op_lshift(IRubyObject iNum) { long shift = numericValue(iNum).getLongValue(); | public RubyBignum op_lshift(RubyNumeric other) { long shift = other.getLongValue(); | public RubyBignum op_lshift(IRubyObject iNum) { long shift = numericValue(iNum).getLongValue(); if (shift > Integer.MAX_VALUE || shift < Integer.MIN_VALUE) throw new RangeError(runtime, "bignum too big to convert into `int'"); return new RubyBignum(runtime, value.shiftLeft((int) shif... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1c602493a83e2050f401fa6925ec7e9269b45e4e/RubyBignum.java/clean/src/org/jruby/RubyBignum.java |
public RubyNumeric op_minus(IRubyObject num) { RubyNumeric other = numericValue(num); | public RubyNumeric op_minus(RubyNumeric other) { | public RubyNumeric op_minus(IRubyObject num) { RubyNumeric other = numericValue(num); if (other instanceof RubyFloat) { return RubyFloat.newFloat(getRuntime(), getDoubleValue()).op_minus(other); } return bigNorm(getRuntime(), getValue().subtract(bigIntValue(other))); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1c602493a83e2050f401fa6925ec7e9269b45e4e/RubyBignum.java/clean/src/org/jruby/RubyBignum.java |
public RubyNumeric op_mod(IRubyObject num) { RubyNumeric other = numericValue(num); | public RubyNumeric op_mod(RubyNumeric other) { | public RubyNumeric op_mod(IRubyObject num) { RubyNumeric other = numericValue(num); if (other instanceof RubyFloat) { return RubyFloat.newFloat(getRuntime(), getDoubleValue()).modulo(other); } BigInteger m = bigIntValue(other); BigInteger result = getValue().mod(m.abs()... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1c602493a83e2050f401fa6925ec7e9269b45e4e/RubyBignum.java/clean/src/org/jruby/RubyBignum.java |
public RubyNumeric op_mul(IRubyObject num) { return numericValue(num).multiplyWith(this); | public RubyNumeric op_mul(RubyNumeric other) { return other.multiplyWith(this); | public RubyNumeric op_mul(IRubyObject num) { return numericValue(num).multiplyWith(this); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1c602493a83e2050f401fa6925ec7e9269b45e4e/RubyBignum.java/clean/src/org/jruby/RubyBignum.java |
public RubyInteger op_or(IRubyObject num) { RubyNumeric other = numericValue(num); | public RubyInteger op_or(RubyNumeric other) { | public RubyInteger op_or(IRubyObject num) { RubyNumeric other = numericValue(num); return newBignum(value.or(bigIntValue(other))); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1c602493a83e2050f401fa6925ec7e9269b45e4e/RubyBignum.java/clean/src/org/jruby/RubyBignum.java |
public RubyNumeric op_plus(IRubyObject num) { RubyNumeric other = numericValue(num); | public RubyNumeric op_plus(RubyNumeric other) { | public RubyNumeric op_plus(IRubyObject num) { RubyNumeric other = numericValue(num); if (other instanceof RubyFloat) { return ((RubyFloat)other).op_plus(this); } return bigNorm(getRuntime(), getValue().add(bigIntValue(other))); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1c602493a83e2050f401fa6925ec7e9269b45e4e/RubyBignum.java/clean/src/org/jruby/RubyBignum.java |
public RubyNumeric op_pow(IRubyObject num) { RubyNumeric other = numericValue(num); | public RubyNumeric op_pow(RubyNumeric other) { | public RubyNumeric op_pow(IRubyObject num) { RubyNumeric other = numericValue(num); if (other instanceof RubyFloat) { return RubyFloat.newFloat(getRuntime(), getDoubleValue()).op_pow(other); } else { return bigNorm(getRuntime(), getValue().pow((int) other.getLongValue()));... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1c602493a83e2050f401fa6925ec7e9269b45e4e/RubyBignum.java/clean/src/org/jruby/RubyBignum.java |
} else { return bigNorm(getRuntime(), getValue().pow((int) other.getLongValue())); | public RubyNumeric op_pow(IRubyObject num) { RubyNumeric other = numericValue(num); if (other instanceof RubyFloat) { return RubyFloat.newFloat(getRuntime(), getDoubleValue()).op_pow(other); } else { return bigNorm(getRuntime(), getValue().pow((int) other.getLongValue()));... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1c602493a83e2050f401fa6925ec7e9269b45e4e/RubyBignum.java/clean/src/org/jruby/RubyBignum.java | |
return bigNorm(getRuntime(), getValue().pow((int) other.getLongValue())); | public RubyNumeric op_pow(IRubyObject num) { RubyNumeric other = numericValue(num); if (other instanceof RubyFloat) { return RubyFloat.newFloat(getRuntime(), getDoubleValue()).op_pow(other); } else { return bigNorm(getRuntime(), getValue().pow((int) other.getLongValue()));... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1c602493a83e2050f401fa6925ec7e9269b45e4e/RubyBignum.java/clean/src/org/jruby/RubyBignum.java | |
public RubyBignum op_rshift(IRubyObject iNum) { long shift = numericValue(iNum).getLongValue(); | public RubyBignum op_rshift(RubyNumeric other) { long shift = other.getLongValue(); | public RubyBignum op_rshift(IRubyObject iNum) { long shift = numericValue(iNum).getLongValue(); if (shift > Integer.MAX_VALUE || shift < Integer.MIN_VALUE) throw new RangeError(runtime, "bignum too big to convert into `int'"); return new RubyBignum(runtime, value.shiftRight((int) shi... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1c602493a83e2050f401fa6925ec7e9269b45e4e/RubyBignum.java/clean/src/org/jruby/RubyBignum.java |
public RubyInteger op_xor(IRubyObject num) { RubyNumeric other = numericValue(num); | public RubyInteger op_xor(RubyNumeric other) { | public RubyInteger op_xor(IRubyObject num) { RubyNumeric other = numericValue(num); return newBignum(value.xor(bigIntValue(other))); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1c602493a83e2050f401fa6925ec7e9269b45e4e/RubyBignum.java/clean/src/org/jruby/RubyBignum.java |
public RubyNumeric remainder(IRubyObject num) { RubyNumeric other = numericValue(num); | public RubyNumeric remainder(RubyNumeric other) { | public RubyNumeric remainder(IRubyObject num) { RubyNumeric other = numericValue(num); if (other instanceof RubyFloat) { return RubyFloat.newFloat(getRuntime(), getDoubleValue()).remainder(other); } return bigNorm(getRuntime(), getValue().remainder(bigIntValue(other))); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1c602493a83e2050f401fa6925ec7e9269b45e4e/RubyBignum.java/clean/src/org/jruby/RubyBignum.java |
PixelBuffer (Pixels pixels) | PixelBuffer (String path, Pixels pixels) | PixelBuffer (Pixels pixels) { if (pixels == null) throw new NullPointerException( "Expecting a not-null pixels element."); this.pixels = pixels; path = Helper.getPixelsPath(pixels.getId()); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ae0b01fad17fcacba3ec0999ca1ad645f389b5f9/PixelBuffer.java/clean/components/omeio-nio/src/ome/io/nio/PixelBuffer.java |
path = Helper.getPixelsPath(pixels.getId()); | PixelBuffer (Pixels pixels) { if (pixels == null) throw new NullPointerException( "Expecting a not-null pixels element."); this.pixels = pixels; path = Helper.getPixelsPath(pixels.getId()); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ae0b01fad17fcacba3ec0999ca1ad645f389b5f9/PixelBuffer.java/clean/components/omeio-nio/src/ome/io/nio/PixelBuffer.java | |
RandomAccessFile file = new RandomAccessFile(path, "rw"); | RandomAccessFile file = new RandomAccessFile(getPath(), "rw"); | private FileChannel getFileChannel() throws FileNotFoundException { if (channel == null) { RandomAccessFile file = new RandomAccessFile(path, "rw"); channel = file.getChannel(); } return channel; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ae0b01fad17fcacba3ec0999ca1ad645f389b5f9/PixelBuffer.java/clean/components/omeio-nio/src/ome/io/nio/PixelBuffer.java |
public String getPaneDescription() { return "Data object editor."; } | public String getPaneDescription() { return "Edit the selected object."; } | public String getPaneDescription() { return "Data object editor."; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ea7509babe2344eb702969105eb77096cc5b6bcf/EditorPane.java/clean/SRC/org/openmicroscopy/shoola/agents/hiviewer/clipboard/editor/EditorPane.java |
JOptionPane.showMessageDialog(source, MESSAGE+teamAddress+"."); | String s = MESSAGE_START; if (source.getDialogType() == MessengerDialog.ERROR_TYPE) s += ERROR_MSG; else s += COMMENT_MSG; s += MESSAGE_END; JOptionPane.showMessageDialog(source, s+teamAddress+"."); | private void handleSendMessage(MessengerDialog source, MessengerDetails details) { Registry reg = container.getRegistry(); String url = (String) reg.lookup(LookupNames.DEBUG_URL); String teamAddress = (String) reg.lookup(LookupNames.DEBUG_EMAIL); CommunicatorDescriptor desc = new CommunicatorDescriptor ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/43f8c678f03aa7cac6a19865461c28a00cf7eb2b/UserNotifierManager.java/buggy/SRC/org/openmicroscopy/shoola/env/ui/UserNotifierManager.java |
Event e = new Event(); e.setName("test"); session.save(e); | Event e = (Event) session.createQuery(" from Event e where e.name = 'test' ").uniqueResult(); if (null == e) { e = new Event(); e.setName("test"); session.save(e); } | private void createEvent() { event = (Event) ht.execute(new HibernateCallback() { public Object doInHibernate(org.hibernate.Session session) throws org.hibernate.HibernateException, java.sql.SQLException { Event e = new Event(); e.s... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ae0b01fad17fcacba3ec0999ca1ad645f389b5f9/PixbufIOFixture.java/buggy/components/omeio-nio/test/ome/io/nio/itests/PixbufIOFixture.java |
Event e = new Event(); e.setName("test"); session.save(e); | Event e = (Event) session.createQuery(" from Event e where e.name = 'test' ").uniqueResult(); if (null == e) { e = new Event(); e.setName("test"); session.save(e); } | public Object doInHibernate(org.hibernate.Session session) throws org.hibernate.HibernateException, java.sql.SQLException { Event e = new Event(); e.setName("test"); session.save(e); return e; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ae0b01fad17fcacba3ec0999ca1ad645f389b5f9/PixbufIOFixture.java/buggy/components/omeio-nio/test/ome/io/nio/itests/PixbufIOFixture.java |
Experimenter e = new Experimenter(); e.setOmeName("test"); session.save(e); | Experimenter e = (Experimenter) session.createQuery(" from Experimenter e where e.omeName = 'test' ").uniqueResult(); if (null == e) { e = new Experimenter(); e.setOmeName("test"); session.save(e); } | private void createExperimenter() { experimenter = (Experimenter) ht.execute(new HibernateCallback() { public Object doInHibernate(org.hibernate.Session session) throws org.hibernate.HibernateException, java.sql.SQLException { Experimenter e = new... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ae0b01fad17fcacba3ec0999ca1ad645f389b5f9/PixbufIOFixture.java/buggy/components/omeio-nio/test/ome/io/nio/itests/PixbufIOFixture.java |
Experimenter e = new Experimenter(); e.setOmeName("test"); session.save(e); | Experimenter e = (Experimenter) session.createQuery(" from Experimenter e where e.omeName = 'test' ").uniqueResult(); if (null == e) { e = new Experimenter(); e.setOmeName("test"); session.save(e); } | public Object doInHibernate(org.hibernate.Session session) throws org.hibernate.HibernateException, java.sql.SQLException { Experimenter e = new Experimenter(); e.setOmeName("test"); session.save(e); return... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ae0b01fad17fcacba3ec0999ca1ad645f389b5f9/PixbufIOFixture.java/buggy/components/omeio-nio/test/ome/io/nio/itests/PixbufIOFixture.java |
return null; | return Collections.EMPTY_LIST; | private List fireServiceNotificationError(ServiceMonitor serviceMonitor, ServiceEvent serviceEvent, Throwable throwable) { try { kernelMonitor.serviceNotificationError(serviceMonitor, serviceEvent, throwable); } catch (RuntimeException ignored) { // ignore - we did our best to no... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/4533b377bef2eed92f5cf978dc051fe822360c5a/ServiceMonitorBroadcaster.java/clean/kernel/src/java/org/gbean/kernel/ServiceMonitorBroadcaster.java |
final JContactItemField contactField = new JContactItemField(new ArrayList(contacts)); | final JWindow frame = new JWindow(parent); final JContactItemField contactField = new JContactItemField(new ArrayList(contacts), frame); | public void searchContacts(String contact, JFrame parent) { final Map contactMap = new HashMap(); final Set contacts = new HashSet(); final ContactList contactList = SparkManager.getWorkspace().getContactList(); Iterator groups = contactList.getContactGroups().iterator(); while (g... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/bb9bf59720a1ef585641bebe31110d3b4a034d3c/UserManager.java/clean/src/java/org/jivesoftware/spark/UserManager.java |
final JFrame frame = new JFrame(); frame.setUndecorated(true); | public void searchContacts(String contact, JFrame parent) { final Map contactMap = new HashMap(); final Set contacts = new HashSet(); final ContactList contactList = SparkManager.getWorkspace().getContactList(); Iterator groups = contactList.getContactGroups().iterator(); while (g... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/bb9bf59720a1ef585641bebe31110d3b4a034d3c/UserManager.java/clean/src/java/org/jivesoftware/spark/UserManager.java | |
dup.setFrozen(false); | public IRubyObject dup() { RubyModule dup = (RubyModule) rbClone(); dup.setMetaClass(getMetaClass()); // +++ jpetersen // dup.setSingleton(isSingleton()); // --- jpetersen return dup; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/49aa6e52e2393f8c17a3c126aed59b8fd08b68aa/RubyModule.java/clean/src/org/jruby/RubyModule.java | |
int newWidth = (int)((lens.getWidth()+dw)/lensModel.getImageZoomFactor()); int newHeight = (int)((lens.getHeight()+dh)/lensModel.getImageZoomFactor()); | int newWidth = (int) ((lens.getWidth()+dw)/ lensModel.getImageZoomFactor()); int newHeight = (int) ((lens.getHeight()+dh)/ lensModel.getImageZoomFactor()); | private boolean checkBounds(int dx, int dy, int dw , int dh) { int newX = lens.getX()+dx; int newY = lens.getY()+dy; int newWidth = (int)((lens.getWidth()+dw)/lensModel.getImageZoomFactor()); int newHeight = (int)((lens.getHeight()+dh)/lensModel.getImageZoomFactor()); if( newX > 0 && newY > 0 && newWidth >= Lens... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/54a6dc1cc81e06c2190546075a6c5a04f18d9bb5/LensController.java/buggy/SRC/org/openmicroscopy/shoola/util/ui/lens/LensController.java |
if( newX > 0 && newY > 0 && newWidth >= LensUI.MINIMUM_WIDTH | return (newX > 0 && newY > 0 && newWidth >= LensUI.MINIMUM_WIDTH | private boolean checkBounds(int dx, int dy, int dw , int dh) { int newX = lens.getX()+dx; int newY = lens.getY()+dy; int newWidth = (int)((lens.getWidth()+dw)/lensModel.getImageZoomFactor()); int newHeight = (int)((lens.getHeight()+dh)/lensModel.getImageZoomFactor()); if( newX > 0 && newY > 0 && newWidth >= Lens... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/54a6dc1cc81e06c2190546075a6c5a04f18d9bb5/LensController.java/buggy/SRC/org/openmicroscopy/shoola/util/ui/lens/LensController.java |
newWidth+newX <= lensModel.getImageScaledWidth() ) return true; else return false; | newWidth+newX <= lensModel.getImageScaledWidth()); | private boolean checkBounds(int dx, int dy, int dw , int dh) { int newX = lens.getX()+dx; int newY = lens.getY()+dy; int newWidth = (int)((lens.getWidth()+dw)/lensModel.getImageZoomFactor()); int newHeight = (int)((lens.getHeight()+dh)/lensModel.getImageZoomFactor()); if( newX > 0 && newY > 0 && newWidth >= Lens... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/54a6dc1cc81e06c2190546075a6c5a04f18d9bb5/LensController.java/buggy/SRC/org/openmicroscopy/shoola/util/ui/lens/LensController.java |
if(checkBounds(deltaX, deltaY, deltaW, deltaH)) startY = startY+(y-offsetY); } else { deltaY = (y-offsetY); deltaH = -Math.abs(y-offsetY); if(checkBounds(deltaX, deltaY, deltaW, deltaH)) | if (checkBounds(deltaX, deltaY, deltaW, deltaH)) startY = startY+(y-offsetY); } else { deltaY = (y-offsetY); deltaH = -Math.abs(y-offsetY); if (checkBounds(deltaX, deltaY, deltaW, deltaH)) | void lensMouseDrag(int x, int y, boolean isShiftDown) { if (borderDrag) { int deltaX = 0; int deltaY = 0; int deltaW = 0; int deltaH = 0; switch(resizeDir) { case LensUI.NORTH: if (y-offsetY < 0) { deltaY = (y-offsetY); deltaH = Math.abs(y-offsetY); if(checkBounds(deltaX, del... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/54a6dc1cc81e06c2190546075a6c5a04f18d9bb5/LensController.java/buggy/SRC/org/openmicroscopy/shoola/util/ui/lens/LensController.java |
if(checkBounds(deltaX, deltaY, deltaW, deltaH)) offsetY = y; } else { deltaH = -Math.abs(y-offsetY); if(checkBounds(deltaX, deltaY, deltaW, deltaH)) | if (checkBounds(deltaX, deltaY, deltaW, deltaH)) offsetY = y; } else { deltaH = -Math.abs(y-offsetY); if (checkBounds(deltaX, deltaY, deltaW, deltaH)) | void lensMouseDrag(int x, int y, boolean isShiftDown) { if (borderDrag) { int deltaX = 0; int deltaY = 0; int deltaW = 0; int deltaH = 0; switch(resizeDir) { case LensUI.NORTH: if (y-offsetY < 0) { deltaY = (y-offsetY); deltaH = Math.abs(y-offsetY); if(checkBounds(deltaX, del... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/54a6dc1cc81e06c2190546075a6c5a04f18d9bb5/LensController.java/buggy/SRC/org/openmicroscopy/shoola/util/ui/lens/LensController.java |
if(checkBounds(deltaX, deltaY, deltaW, deltaH)) offsetX = x; } else { deltaW = -Math.abs(x-offsetX); if(checkBounds(deltaX, deltaY, deltaW, deltaH)) | if (checkBounds(deltaX, deltaY, deltaW, deltaH)) offsetX = x; } else { deltaW = -Math.abs(x-offsetX); if (checkBounds(deltaX, deltaY, deltaW, deltaH)) | void lensMouseDrag(int x, int y, boolean isShiftDown) { if (borderDrag) { int deltaX = 0; int deltaY = 0; int deltaW = 0; int deltaH = 0; switch(resizeDir) { case LensUI.NORTH: if (y-offsetY < 0) { deltaY = (y-offsetY); deltaH = Math.abs(y-offsetY); if(checkBounds(deltaX, del... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/54a6dc1cc81e06c2190546075a6c5a04f18d9bb5/LensController.java/buggy/SRC/org/openmicroscopy/shoola/util/ui/lens/LensController.java |
if(checkBounds(deltaX, deltaY, deltaW, deltaH)) | if (checkBounds(deltaX, deltaY, deltaW, deltaH)) | void lensMouseDrag(int x, int y, boolean isShiftDown) { if (borderDrag) { int deltaX = 0; int deltaY = 0; int deltaW = 0; int deltaH = 0; switch(resizeDir) { case LensUI.NORTH: if (y-offsetY < 0) { deltaY = (y-offsetY); deltaH = Math.abs(y-offsetY); if(checkBounds(deltaX, del... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/54a6dc1cc81e06c2190546075a6c5a04f18d9bb5/LensController.java/buggy/SRC/org/openmicroscopy/shoola/util/ui/lens/LensController.java |
if(checkBounds(deltaX, deltaY, deltaW, deltaH)) | if (checkBounds(deltaX, deltaY, deltaW, deltaH)) | void lensMouseDrag(int x, int y, boolean isShiftDown) { if (borderDrag) { int deltaX = 0; int deltaY = 0; int deltaW = 0; int deltaH = 0; switch(resizeDir) { case LensUI.NORTH: if (y-offsetY < 0) { deltaY = (y-offsetY); deltaH = Math.abs(y-offsetY); if(checkBounds(deltaX, del... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/54a6dc1cc81e06c2190546075a6c5a04f18d9bb5/LensController.java/buggy/SRC/org/openmicroscopy/shoola/util/ui/lens/LensController.java |
if(y-offsetY < 0) { deltaY = (y-offsetY); deltaH = Math.abs(y-offsetY); if(checkBounds(deltaX, deltaY, deltaW, deltaH)) startY = startY+(y-offsetY); } else { deltaY = (y-offsetY); deltaH = -Math.abs(y-offsetY); if(checkBounds(deltaX, deltaY, deltaW, deltaH)) startY = startY+(y-offsetY); } if(x-offsetX > 0) { deltaW = M... | if (y-offsetY < 0) { deltaY = (y-offsetY); deltaH = Math.abs(y-offsetY); if (checkBounds(deltaX, deltaY, deltaW, deltaH)) startY = startY+(y-offsetY); } else { deltaY = (y-offsetY); deltaH = -Math.abs(y-offsetY); if (checkBounds(deltaX, deltaY, deltaW, deltaH)) startY = startY+(y-offsetY); } if (x-offsetX > 0) { deltaW... | void lensMouseDrag(int x, int y, boolean isShiftDown) { if (borderDrag) { int deltaX = 0; int deltaY = 0; int deltaW = 0; int deltaH = 0; switch(resizeDir) { case LensUI.NORTH: if (y-offsetY < 0) { deltaY = (y-offsetY); deltaH = Math.abs(y-offsetY); if(checkBounds(deltaX, del... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/54a6dc1cc81e06c2190546075a6c5a04f18d9bb5/LensController.java/buggy/SRC/org/openmicroscopy/shoola/util/ui/lens/LensController.java |
if(y-offsetY < 0) { deltaY = (y-offsetY); deltaH = Math.abs(y-offsetY); if(checkBounds(deltaX, deltaY, deltaW, deltaH)) startY = startY+(y-offsetY); } else { deltaY = (y-offsetY); deltaH = -Math.abs(y-offsetY); if(checkBounds(deltaX, deltaY, deltaW, deltaH)) startY = startY+(y-offsetY); } if(x-offsetX > 0) | if (y-offsetY < 0) { deltaY = (y-offsetY); deltaH = Math.abs(y-offsetY); if (checkBounds(deltaX, deltaY, deltaW, deltaH)) startY = startY+(y-offsetY); } else { deltaY = (y-offsetY); deltaH = -Math.abs(y-offsetY); if (checkBounds(deltaX, deltaY, deltaW, deltaH)) startY = startY+(y-offsetY); } if (x-offsetX > 0) | void lensMouseDrag(int x, int y, boolean isShiftDown) { if (borderDrag) { int deltaX = 0; int deltaY = 0; int deltaW = 0; int deltaH = 0; switch(resizeDir) { case LensUI.NORTH: if (y-offsetY < 0) { deltaY = (y-offsetY); deltaH = Math.abs(y-offsetY); if(checkBounds(deltaX, del... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/54a6dc1cc81e06c2190546075a6c5a04f18d9bb5/LensController.java/buggy/SRC/org/openmicroscopy/shoola/util/ui/lens/LensController.java |
if(checkBounds(deltaX, deltaY, deltaW, deltaH)) | if (checkBounds(deltaX, deltaY, deltaW, deltaH)) | void lensMouseDrag(int x, int y, boolean isShiftDown) { if (borderDrag) { int deltaX = 0; int deltaY = 0; int deltaW = 0; int deltaH = 0; switch(resizeDir) { case LensUI.NORTH: if (y-offsetY < 0) { deltaY = (y-offsetY); deltaH = Math.abs(y-offsetY); if(checkBounds(deltaX, del... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/54a6dc1cc81e06c2190546075a6c5a04f18d9bb5/LensController.java/buggy/SRC/org/openmicroscopy/shoola/util/ui/lens/LensController.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.