rem
stringlengths 0
477k
| add
stringlengths 0
313k
| context
stringlengths 6
599k
| meta
stringlengths 141
403
|
---|---|---|---|
} catch (IllegalAccessException iaExcptn) { | } catch (IllegalAccessException iaExcptn) { | protected RubyObject invokeMethod(RubyObject recv, Object[] methodArgs, Ruby ruby) { if (restArgs) { RubyObject[] restArray = new RubyObject[methodArgs.length - (args.length - 1)]; Object[] newMethodArgs = new Object[args.length]; try { System.arraycopy(methodArgs, args.length - 1, restArray, 0, methodArgs.length - (args.length - 1)); } catch (ArrayIndexOutOfBoundsException aioobExcptn) { throw new RuntimeException("Cannot call \"" + methodName + "\" in class \"" + klass.getName() + "\". " + getExceptedArgsString((RubyObject[])methodArgs)); } System.arraycopy(methodArgs, 0, newMethodArgs, 0, args.length - 1); newMethodArgs[args.length - 1] = restArray; methodArgs = newMethodArgs; } if (staticMethod) { Object[] newMethodArgs = new Object[methodArgs.length + 2]; System.arraycopy(methodArgs, 0, newMethodArgs, 2, methodArgs.length); newMethodArgs[0] = ruby; newMethodArgs[1] = recv; methodArgs = newMethodArgs; } try { return (RubyObject)getMethod().invoke(staticMethod ? null : recv, methodArgs); } catch (InvocationTargetException itExcptn) { if (itExcptn.getTargetException() instanceof RaiseException) { throw (RaiseException)itExcptn.getTargetException(); } else if (itExcptn.getTargetException() instanceof RuntimeException) { throw (RuntimeException)itExcptn.getTargetException(); } else { System.err.println("[ERROR] ReflectionCallback:"); itExcptn.getTargetException().printStackTrace(); return ruby.getNil(); } } catch (IllegalAccessException iaExcptn) { throw new RaiseException(ruby, "RuntimeError", iaExcptn.getMessage()); } catch (IllegalArgumentException iaExcptn) { throw new RaiseException(ruby, "RuntimeError", iaExcptn.getMessage()); } } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/7f0711e7cbb2b441d095c8d8c0838be2b630638c/ReflectionCallbackMethod.java/clean/org/jruby/runtime/ReflectionCallbackMethod.java |
} catch (IllegalArgumentException iaExcptn) { | } catch (IllegalArgumentException iaExcptn) { | protected RubyObject invokeMethod(RubyObject recv, Object[] methodArgs, Ruby ruby) { if (restArgs) { RubyObject[] restArray = new RubyObject[methodArgs.length - (args.length - 1)]; Object[] newMethodArgs = new Object[args.length]; try { System.arraycopy(methodArgs, args.length - 1, restArray, 0, methodArgs.length - (args.length - 1)); } catch (ArrayIndexOutOfBoundsException aioobExcptn) { throw new RuntimeException("Cannot call \"" + methodName + "\" in class \"" + klass.getName() + "\". " + getExceptedArgsString((RubyObject[])methodArgs)); } System.arraycopy(methodArgs, 0, newMethodArgs, 0, args.length - 1); newMethodArgs[args.length - 1] = restArray; methodArgs = newMethodArgs; } if (staticMethod) { Object[] newMethodArgs = new Object[methodArgs.length + 2]; System.arraycopy(methodArgs, 0, newMethodArgs, 2, methodArgs.length); newMethodArgs[0] = ruby; newMethodArgs[1] = recv; methodArgs = newMethodArgs; } try { return (RubyObject)getMethod().invoke(staticMethod ? null : recv, methodArgs); } catch (InvocationTargetException itExcptn) { if (itExcptn.getTargetException() instanceof RaiseException) { throw (RaiseException)itExcptn.getTargetException(); } else if (itExcptn.getTargetException() instanceof RuntimeException) { throw (RuntimeException)itExcptn.getTargetException(); } else { System.err.println("[ERROR] ReflectionCallback:"); itExcptn.getTargetException().printStackTrace(); return ruby.getNil(); } } catch (IllegalAccessException iaExcptn) { throw new RaiseException(ruby, "RuntimeError", iaExcptn.getMessage()); } catch (IllegalArgumentException iaExcptn) { throw new RaiseException(ruby, "RuntimeError", iaExcptn.getMessage()); } } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/7f0711e7cbb2b441d095c8d8c0838be2b630638c/ReflectionCallbackMethod.java/clean/org/jruby/runtime/ReflectionCallbackMethod.java |
if (methodArgs.length < (args.length -1)) { | if (methodArgs.length < (args.length - 1)) { | protected void testArgsCount(Ruby ruby, RubyObject[] methodArgs) { if (restArgs) { if (methodArgs.length < (args.length -1)) { throw new RubyArgumentException(ruby, getExceptedArgsString(methodArgs)); } } else { if (methodArgs.length != args.length) { throw new RubyArgumentException(ruby, getExceptedArgsString(methodArgs)); } } } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/7f0711e7cbb2b441d095c8d8c0838be2b630638c/ReflectionCallbackMethod.java/clean/org/jruby/runtime/ReflectionCallbackMethod.java |
throw new RubyArgumentException(ruby, getExceptedArgsString(methodArgs)); | throw new RubyArgumentException(ruby, getExceptedArgsString(methodArgs)); | protected void testArgsCount(Ruby ruby, RubyObject[] methodArgs) { if (restArgs) { if (methodArgs.length < (args.length -1)) { throw new RubyArgumentException(ruby, getExceptedArgsString(methodArgs)); } } else { if (methodArgs.length != args.length) { throw new RubyArgumentException(ruby, getExceptedArgsString(methodArgs)); } } } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/7f0711e7cbb2b441d095c8d8c0838be2b630638c/ReflectionCallbackMethod.java/clean/org/jruby/runtime/ReflectionCallbackMethod.java |
HtmlSelectOneMenu searchCategoryMenu = WFUtil.getSelectOneMenu(SEARCH_CATEGORY_ID, ref + "categories", ref + "searchCategoryId"); searchCategoryMenu.setConverter(new IntegerConverter()); p.getChildren().add(searchCategoryMenu); | private UIComponent getSearchPanel() { String ref = LIST_ARTICLES_BEAN_ID + "."; String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); WFErrorMessages em = new WFErrorMessages(); em.addErrorMessage(SEARCH_PUBLISHED_FROM_ID); em.addErrorMessage(SEARCH_PUBLISHED_TO_ID); mainContainer.add(em); HtmlPanelGrid p = WFPanelUtil.getFormPanel(3); p.getChildren().add(WFUtil.group(WFUtil.getTextVB(bref + "published_from"), WFUtil.getText(":"))); p.getChildren().add(WFUtil.group(WFUtil.getTextVB(bref + "published_to"), WFUtil.getText(":"))); p.getChildren().add(WFUtil.group(WFUtil.getTextVB(bref + "category"), WFUtil.getText(":"))); HtmlInputText searchPublishedFromInput = WFUtil.getInputText(SEARCH_PUBLISHED_FROM_ID, ref + "searchPublishedFrom"); searchPublishedFromInput.setSize(20); searchPublishedFromInput.setConverter(new WFDateConverter()); p.getChildren().add(searchPublishedFromInput); HtmlInputText searchPublishedToInput = WFUtil.getInputText(SEARCH_PUBLISHED_TO_ID, ref + "searchPublishedTo"); searchPublishedToInput.setSize(20); searchPublishedToInput.setConverter(new WFDateConverter()); p.getChildren().add(searchPublishedToInput); HtmlSelectOneMenu searchCategoryMenu = WFUtil.getSelectOneMenu(SEARCH_CATEGORY_ID, ref + "categories", ref + "searchCategoryId"); searchCategoryMenu.setConverter(new IntegerConverter()); p.getChildren().add(searchCategoryMenu); mainContainer.add(p); mainContainer.add(WFUtil.getText(" ")); p = WFPanelUtil.getPlainFormPanel(1); p.getChildren().add(WFUtil.getButtonVB(LIST_BUTTON_ID, bref + "list", this)); mainContainer.add(p); return mainContainer; } | 57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/2cd921b37179b60f73b08e496f3539f6703ee5c0/ListArticlesBlock.java/buggy/src/java/com/idega/block/article/component/ListArticlesBlock.java |
|
HtmlSelectOneMenu localeMenu = WFUtil.getSelectOneMenu(LOCALE_ID, ref + "allLocales", ref + "localeId"); localeMenu.setOnchange("document.forms[0].submit();"); c.add(localeMenu); | private UIComponent getViewArticlePanel() { String ref = ARTICLE_ITEM_BEAN_ID + "."; String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer c = new WFContainer(); c.setStyleAttribute("padding", "10px"); c.setId(VIEW_ARTICLE_PANEL_ID); c.add(WFUtil.getTextVB(ref + "case.publishedFromDate")); c.add(new WFPlainOutputText(" ")); HtmlSelectOneMenu localeMenu = WFUtil.getSelectOneMenu(LOCALE_ID, ref + "allLocales", ref + "localeId"); localeMenu.setOnchange("document.forms[0].submit();"); c.add(localeMenu); c.add(WFUtil.getBreak(2)); c.add(WFUtil.getLinkVB("", ref + "headline", null)); c.add(WFUtil.getBreak(2)); WFPlainOutputText t = new WFPlainOutputText(); WFUtil.setValueBinding(t, "value", ref + "body"); c.add(t); c.add(WFUtil.getBreak(2)); c.add(WFUtil.getButtonVB(VIEW_ARTICLE_BACK_BUTTON_ID, bref + "back", this)); return c; } | 57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/2cd921b37179b60f73b08e496f3539f6703ee5c0/ListArticlesBlock.java/buggy/src/java/com/idega/block/article/component/ListArticlesBlock.java |
|
public void processAction(ActionEvent event) { if (event.getComponent().getId().equals(LIST_BUTTON_ID)) { WFUtil.invoke(LIST_ARTICLES_BEAN_ID, "list"); return; } else if (event.getComponent().getId().equals(VIEW_ARTICLE_BACK_BUTTON_ID)) { WFComponentSelector cs = (WFComponentSelector) event.getComponent().findComponent(DISPLAY_SELECTOR_ID); cs.setSelectedId(LIST_PANEL_ID, true); cs.setSelectedId(VIEW_ARTICLE_PANEL_ID, false); return; } UIComponent link = event.getComponent(); String id = WFUtil.getParameter(link, "id"); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "clear"); ContentItemCase caze = new ContentItemCaseBean(); caze.setPublishedFromDate(new Date()); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setCase", caze); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setLocaleId", "en"); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setHeadline", "Electronic Reykjavik Up-And-Running (id = " + id + ")"); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setTeaser", "Teaser"); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setBody", "The first 24/7 service offered by Reykjavik Municipality as part of the Electronic Reykjavik " + "concept, was launched on May 25th., as planned. Now all applications and administration " + "processes regarding Music school applications and internal student registration are " + "implemented in the IdegaWeb eGOV solution.<br/><br/>" + "All applications are submitted through the Citizen Account to the Music schools. "+ "The schools use the system to process the applications. "+ "In the Citizen Account users can see the status of cases and applications, " + "view messages and communicate with the Music school administrators.<br/><br/>" + "For more information, you can access the website of Reykjavik <a href=\"#\">here</a>. " + "Click on the icon for Electronic Reykjavik (Rafrn Reykjavik) or go directly to the portal " + "<a href=\"#\">here</a>."); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setAuthor", "Author"); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setComment", "Comment"); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setDescription", "Description"); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setStatus", ContentItemCase.STATUS_PUBLISHED); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setMainCategoryId", new Integer(3)); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setLocaleId", "sv"); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setHeadline", "Electronic Rykjavik klar"); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setBody", "Den frsta 24-timmarsmyndigheten fr Reykjaviks kommun igng."); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setLocaleId", "en"); WFComponentSelector cs = (WFComponentSelector) event.getComponent().getParent().getParent().getParent().findComponent(DISPLAY_SELECTOR_ID); cs.setSelectedId(LIST_PANEL_ID, false); cs.setSelectedId(VIEW_ARTICLE_PANEL_ID, true); } | 57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/2cd921b37179b60f73b08e496f3539f6703ee5c0/ListArticlesBlock.java/buggy/src/java/com/idega/block/article/component/ListArticlesBlock.java |
||
WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "clear"); ContentItemCase caze = new ContentItemCaseBean(); caze.setPublishedFromDate(new Date()); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setCase", caze); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setLocaleId", "en"); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setHeadline", "Electronic Reykjavik Up-And-Running (id = " + id + ")"); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setTeaser", "Teaser"); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setBody", "The first 24/7 service offered by Reykjavik Municipality as part of the Electronic Reykjavik " + "concept, was launched on May 25th., as planned. Now all applications and administration " + "processes regarding Music school applications and internal student registration are " + "implemented in the IdegaWeb eGOV solution.<br/><br/>" + "All applications are submitted through the Citizen Account to the Music schools. "+ "The schools use the system to process the applications. "+ "In the Citizen Account users can see the status of cases and applications, " + "view messages and communicate with the Music school administrators.<br/><br/>" + "For more information, you can access the website of Reykjavik <a href=\"#\">here</a>. " + "Click on the icon for Electronic Reykjavik (Rafrn Reykjavik) or go directly to the portal " + "<a href=\"#\">here</a>."); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setAuthor", "Author"); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setComment", "Comment"); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setDescription", "Description"); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setStatus", ContentItemCase.STATUS_PUBLISHED); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setMainCategoryId", new Integer(3)); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setLocaleId", "sv"); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setHeadline", "Electronic Rykjavik klar"); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setBody", "Den frsta 24-timmarsmyndigheten fr Reykjaviks kommun igng."); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setLocaleId", "en"); | ArticleItemBean articleItem = new ArticleItemBean(); try { articleItem.load(new File("/Test/article/"+id+".xml")); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "clear"); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setLocaleId", "en"); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setHeadline", notNull(articleItem.getHeadline())+" (id = " + id + ")"); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setTeaser", notNull(articleItem.getTeaser())); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setBody", notNull(articleItem.getBody())); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setAuthor", notNull(articleItem.getAuthor())); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setComment", notNull(articleItem.getComment())); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setDescription", notNull(articleItem.getDescription())); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setStatus", ContentItemCase.STATUS_PUBLISHED ); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setMainCategoryId", new Integer(3)); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setLocaleId", "sv"); | public void processAction(ActionEvent event) { if (event.getComponent().getId().equals(LIST_BUTTON_ID)) { WFUtil.invoke(LIST_ARTICLES_BEAN_ID, "list"); return; } else if (event.getComponent().getId().equals(VIEW_ARTICLE_BACK_BUTTON_ID)) { WFComponentSelector cs = (WFComponentSelector) event.getComponent().findComponent(DISPLAY_SELECTOR_ID); cs.setSelectedId(LIST_PANEL_ID, true); cs.setSelectedId(VIEW_ARTICLE_PANEL_ID, false); return; } UIComponent link = event.getComponent(); String id = WFUtil.getParameter(link, "id"); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "clear"); ContentItemCase caze = new ContentItemCaseBean(); caze.setPublishedFromDate(new Date()); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setCase", caze); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setLocaleId", "en"); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setHeadline", "Electronic Reykjavik Up-And-Running (id = " + id + ")"); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setTeaser", "Teaser"); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setBody", "The first 24/7 service offered by Reykjavik Municipality as part of the Electronic Reykjavik " + "concept, was launched on May 25th., as planned. Now all applications and administration " + "processes regarding Music school applications and internal student registration are " + "implemented in the IdegaWeb eGOV solution.<br/><br/>" + "All applications are submitted through the Citizen Account to the Music schools. "+ "The schools use the system to process the applications. "+ "In the Citizen Account users can see the status of cases and applications, " + "view messages and communicate with the Music school administrators.<br/><br/>" + "For more information, you can access the website of Reykjavik <a href=\"#\">here</a>. " + "Click on the icon for Electronic Reykjavik (Rafrn Reykjavik) or go directly to the portal " + "<a href=\"#\">here</a>."); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setAuthor", "Author"); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setComment", "Comment"); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setDescription", "Description"); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setStatus", ContentItemCase.STATUS_PUBLISHED); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setMainCategoryId", new Integer(3)); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setLocaleId", "sv"); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setHeadline", "Electronic Rykjavik klar"); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setBody", "Den frsta 24-timmarsmyndigheten fr Reykjaviks kommun igng."); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setLocaleId", "en"); WFComponentSelector cs = (WFComponentSelector) event.getComponent().getParent().getParent().getParent().findComponent(DISPLAY_SELECTOR_ID); cs.setSelectedId(LIST_PANEL_ID, false); cs.setSelectedId(VIEW_ARTICLE_PANEL_ID, true); } | 57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/2cd921b37179b60f73b08e496f3539f6703ee5c0/ListArticlesBlock.java/buggy/src/java/com/idega/block/article/component/ListArticlesBlock.java |
WFComponentSelector cs = (WFComponentSelector) event.getComponent().getParent().getParent().getParent().findComponent(DISPLAY_SELECTOR_ID); cs.setSelectedId(LIST_PANEL_ID, false); cs.setSelectedId(VIEW_ARTICLE_PANEL_ID, true); | WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setHeadline", notNull(articleItem.getHeadline())+" (id = " + id + ")"); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setTeaser", notNull(articleItem.getTeaser())); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setBody", notNull(articleItem.getBody())); WFComponentSelector cs = (WFComponentSelector) event.getComponent().getParent().getParent().getParent().findComponent(DISPLAY_SELECTOR_ID); cs.setSelectedId(LIST_PANEL_ID, false); cs.setSelectedId(VIEW_ARTICLE_PANEL_ID, true); } catch (XmlException e) { e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } | public void processAction(ActionEvent event) { if (event.getComponent().getId().equals(LIST_BUTTON_ID)) { WFUtil.invoke(LIST_ARTICLES_BEAN_ID, "list"); return; } else if (event.getComponent().getId().equals(VIEW_ARTICLE_BACK_BUTTON_ID)) { WFComponentSelector cs = (WFComponentSelector) event.getComponent().findComponent(DISPLAY_SELECTOR_ID); cs.setSelectedId(LIST_PANEL_ID, true); cs.setSelectedId(VIEW_ARTICLE_PANEL_ID, false); return; } UIComponent link = event.getComponent(); String id = WFUtil.getParameter(link, "id"); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "clear"); ContentItemCase caze = new ContentItemCaseBean(); caze.setPublishedFromDate(new Date()); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setCase", caze); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setLocaleId", "en"); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setHeadline", "Electronic Reykjavik Up-And-Running (id = " + id + ")"); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setTeaser", "Teaser"); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setBody", "The first 24/7 service offered by Reykjavik Municipality as part of the Electronic Reykjavik " + "concept, was launched on May 25th., as planned. Now all applications and administration " + "processes regarding Music school applications and internal student registration are " + "implemented in the IdegaWeb eGOV solution.<br/><br/>" + "All applications are submitted through the Citizen Account to the Music schools. "+ "The schools use the system to process the applications. "+ "In the Citizen Account users can see the status of cases and applications, " + "view messages and communicate with the Music school administrators.<br/><br/>" + "For more information, you can access the website of Reykjavik <a href=\"#\">here</a>. " + "Click on the icon for Electronic Reykjavik (Rafrn Reykjavik) or go directly to the portal " + "<a href=\"#\">here</a>."); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setAuthor", "Author"); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setComment", "Comment"); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setDescription", "Description"); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setStatus", ContentItemCase.STATUS_PUBLISHED); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setMainCategoryId", new Integer(3)); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setLocaleId", "sv"); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setHeadline", "Electronic Rykjavik klar"); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setBody", "Den frsta 24-timmarsmyndigheten fr Reykjaviks kommun igng."); WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "setLocaleId", "en"); WFComponentSelector cs = (WFComponentSelector) event.getComponent().getParent().getParent().getParent().findComponent(DISPLAY_SELECTOR_ID); cs.setSelectedId(LIST_PANEL_ID, false); cs.setSelectedId(VIEW_ARTICLE_PANEL_ID, true); } | 57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/2cd921b37179b60f73b08e496f3539f6703ee5c0/ListArticlesBlock.java/buggy/src/java/com/idega/block/article/component/ListArticlesBlock.java |
if (restoredSize == null) restoredSize = check.getPreferredSize(); | if (restoredSize == null) { restoredSize = new Dimension(check.getPreferredSize().width, DEFAULT_HEIGHT); } | public Component getTreeCellRendererComponent(JTree tree, Object value, boolean selected, boolean expanded, boolean leaf, int row, boolean hasFocus) { setEnabled(tree.isEnabled()); if (restoredSize == null) restoredSize = check.getPreferredSize(); TreeCheckNode node = (TreeCheckNode) value; check.setSelected(node.isSelected()); label.setFont(tree.getFont()); label.setText(node.toString()); label.setSelected(selected); label.setFocus(hasFocus); Icon nodeIcon = node.getNodeIcon(); if (node.isLeafNode()) { if (nodeIcon == null) nodeIcon = UIManager.getIcon("Tree.leafIcon"); check.setPreferredSize(restoredSize); add(check); add(label); } else { if (nodeIcon == null) { if (expanded) nodeIcon = UIManager.getIcon("Tree.openIcon"); else nodeIcon = UIManager.getIcon("Tree.closedIcon"); } if (leafOnly) check.setPreferredSize(NULL_SIZE); else { check.setPreferredSize(restoredSize); add(check); } add(label); } label.setIcon(nodeIcon); return this; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/464efde90db6bc5095c0a7e5952f51ad0f37ca86/TreeCheckRenderer.java/clean/SRC/org/openmicroscopy/shoola/util/ui/clsf/TreeCheckRenderer.java |
{ QuantumDef qDef = eventManager.getQuantumDef(); manager = new QuantumPaneManager(eventManager, this); eventManager.setQPManager(manager); int mini = (int) eventManager.getGlobalChannelWindowStart(INDEX); int maxi = (int) eventManager.getGlobalChannelWindowEnd(INDEX); int s = (int) eventManager.getChannelWindowStart(INDEX); int e = (int) eventManager.getChannelWindowEnd(INDEX); codomainPane = new CodomainPane(eventManager.getRegistry(), manager); domainPane = new DomainPane(eventManager.getRegistry(), manager, eventManager.getChannelData(), qDef, INDEX); gRepresentation = new GraphicsRepresentation(manager, qDef.family, qDef.curveCoefficient, qDef.cdStart, qDef.cdEnd, mini, maxi); if (qDef.family == QuantumFactory.EXPONENTIAL) gRepresentation.setDefaultExponential(s, e); else gRepresentation.setDefaultLinear(s, e); buildGRPane(); } | { QuantumDef qDef = eventManager.getQuantumDef(); manager = new QuantumPaneManager(eventManager, this); eventManager.setQPManager(manager); int mini = (int) eventManager.getGlobalChannelWindowStart(INDEX); int maxi = (int) eventManager.getGlobalChannelWindowEnd(INDEX); int s = (int) eventManager.getChannelWindowStart(INDEX); int e = (int) eventManager.getChannelWindowEnd(INDEX); int family = eventManager.getChannelFamily(INDEX); double cc = eventManager.getChannelCurveCoefficient(INDEX); double[] cbStats = eventManager.getChannelBindingStats(INDEX); codomainPane = new CodomainPane(eventManager.getRegistry(), manager); domainPane = new DomainPane(eventManager.getRegistry(), manager, family, cc, eventManager.getChannelData(), qDef, INDEX); gRepresentation = new GraphicsRepresentation(manager, family, cc, qDef.cdStart, qDef.cdEnd, mini, maxi, cbStats); if (family == QuantumFactory.EXPONENTIAL) gRepresentation.setDefaultExponential(s, e); else gRepresentation.setDefaultLinear(s, e); buildGRPane(); } | public QuantumPane(RenderingAgtCtrl eventManager) { QuantumDef qDef = eventManager.getQuantumDef(); manager = new QuantumPaneManager(eventManager, this); eventManager.setQPManager(manager); int mini = (int) eventManager.getGlobalChannelWindowStart(INDEX); int maxi = (int) eventManager.getGlobalChannelWindowEnd(INDEX); int s = (int) eventManager.getChannelWindowStart(INDEX); int e = (int) eventManager.getChannelWindowEnd(INDEX); codomainPane = new CodomainPane(eventManager.getRegistry(), manager); domainPane = new DomainPane(eventManager.getRegistry(), manager, eventManager.getChannelData(), qDef, INDEX); gRepresentation = new GraphicsRepresentation(manager, qDef.family, qDef.curveCoefficient, qDef.cdStart, qDef.cdEnd, mini, maxi); if (qDef.family == QuantumFactory.EXPONENTIAL) gRepresentation.setDefaultExponential(s, e); else gRepresentation.setDefaultLinear(s, e); buildGRPane(); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1722ebf9ac60fc8e45cdc8d0049e85db5b86715c/QuantumPane.java/buggy/SRC/org/openmicroscopy/shoola/agents/rnd/pane/QuantumPane.java |
{ grPane = new JPanel(); gRepresentation.setPreferredSize(GR_DIM); gRepresentation.setSize(GR_DIM); gRepresentation.setBackground(BACKGROUND); grPane.add(gRepresentation); } | { grPane = new JPanel(); gRepresentation.setPreferredSize(GR_DIM); gRepresentation.setSize(GR_DIM); gRepresentation.setBackground(BACKGROUND); grPane.add(gRepresentation); } | void buildGRPane() { grPane = new JPanel(); gRepresentation.setPreferredSize(GR_DIM); gRepresentation.setSize(GR_DIM); gRepresentation.setBackground(BACKGROUND); grPane.add(gRepresentation); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1722ebf9ac60fc8e45cdc8d0049e85db5b86715c/QuantumPane.java/buggy/SRC/org/openmicroscopy/shoola/agents/rnd/pane/QuantumPane.java |
{ gRepresentation = null; gRepresentation = gr; } | { gRepresentation = null; gRepresentation = gr; } | void setGRepresentation(GraphicsRepresentation gr) { gRepresentation = null; gRepresentation = gr; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1722ebf9ac60fc8e45cdc8d0049e85db5b86715c/QuantumPane.java/buggy/SRC/org/openmicroscopy/shoola/agents/rnd/pane/QuantumPane.java |
{ domainPane.getWavelengths().setSelectedIndex(index); } | { domainPane.getWavelengths().setSelectedIndex(index); } | public void setSelectedWavelength(int index) { domainPane.getWavelengths().setSelectedIndex(index); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1722ebf9ac60fc8e45cdc8d0049e85db5b86715c/QuantumPane.java/buggy/SRC/org/openmicroscopy/shoola/agents/rnd/pane/QuantumPane.java |
{ domainPane.getWavelengths().setEnabled(b); } | { domainPane.getWavelengths().setEnabled(b); } | public void setSelectionWavelengthsEnable(boolean b) { domainPane.getWavelengths().setEnabled(b); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1722ebf9ac60fc8e45cdc8d0049e85db5b86715c/QuantumPane.java/buggy/SRC/org/openmicroscopy/shoola/agents/rnd/pane/QuantumPane.java |
{ this.eventManager = eventManager; this.view = view; } | { this.eventManager = eventManager; this.view = view; } | public QuantumPaneManager(RenderingAgtCtrl eventManager, QuantumPane view) { this.eventManager = eventManager; this.view = view; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1722ebf9ac60fc8e45cdc8d0049e85db5b86715c/QuantumPaneManager.java/buggy/SRC/org/openmicroscopy/shoola/agents/rnd/pane/QuantumPaneManager.java |
{ this.qpManager = qpManager; } | { this.qpManager = qpManager; } | public void setQPManager(QuantumPaneManager qpManager) { this.qpManager = qpManager; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1722ebf9ac60fc8e45cdc8d0049e85db5b86715c/RenderingAgtCtrl.java/buggy/SRC/org/openmicroscopy/shoola/agents/rnd/RenderingAgtCtrl.java |
{ return abstraction.getGlobalChannelWindowStart(w); } | { return abstraction.getGlobalChannelWindowStart(w); } | public double getGlobalChannelWindowStart(int w) { return abstraction.getGlobalChannelWindowStart(w); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1722ebf9ac60fc8e45cdc8d0049e85db5b86715c/RenderingAgtCtrl.java/buggy/SRC/org/openmicroscopy/shoola/agents/rnd/RenderingAgtCtrl.java |
{ return abstraction.getGlobalChannelWindowEnd(w); } | { return abstraction.getGlobalChannelWindowEnd(w); } | public double getGlobalChannelWindowEnd(int w) { return abstraction.getGlobalChannelWindowEnd(w); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1722ebf9ac60fc8e45cdc8d0049e85db5b86715c/RenderingAgtCtrl.java/buggy/SRC/org/openmicroscopy/shoola/agents/rnd/RenderingAgtCtrl.java |
{ return abstraction.getChannelWindowStart(w); } | { return abstraction.getChannelWindowStart(w); } | public double getChannelWindowStart(int w) { return abstraction.getChannelWindowStart(w); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1722ebf9ac60fc8e45cdc8d0049e85db5b86715c/RenderingAgtCtrl.java/buggy/SRC/org/openmicroscopy/shoola/agents/rnd/RenderingAgtCtrl.java |
{ return abstraction.getChannelWindowEnd(w); } | { return abstraction.getChannelWindowEnd(w); } | public double getChannelWindowEnd(int w) { return abstraction.getChannelWindowEnd(w); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1722ebf9ac60fc8e45cdc8d0049e85db5b86715c/RenderingAgtCtrl.java/buggy/SRC/org/openmicroscopy/shoola/agents/rnd/RenderingAgtCtrl.java |
{ return abstraction.getChannelData(); } | { return abstraction.getChannelData(); } | public ChannelData[] getChannelData() { return abstraction.getChannelData(); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1722ebf9ac60fc8e45cdc8d0049e85db5b86715c/RenderingAgtCtrl.java/buggy/SRC/org/openmicroscopy/shoola/agents/rnd/RenderingAgtCtrl.java |
DomainPane(Registry registry, QuantumPaneManager control, ChannelData[] data, QuantumDef qDef, int index) { this.qDef = qDef; manager = new DomainPaneManager(this, control); initComboBoxes(data, index); initSliders(); initLabel(); initButton(registry); manager.attachListeners(); buildGUI(); } | DomainPane(Registry registry, QuantumPaneManager control, int family, double curveCoefficient, ChannelData[] data, QuantumDef qDef, int index) { this.qDef = qDef; manager = new DomainPaneManager(this, control); initBoxes(family, data, index); initSliders(family, curveCoefficient); initLabel(curveCoefficient); initButton(registry); manager.attachListeners(); buildGUI(); } | DomainPane(Registry registry, QuantumPaneManager control, ChannelData[] data, QuantumDef qDef, int index) { this.qDef = qDef; manager = new DomainPaneManager(this, control); initComboBoxes(data, index); initSliders(); initLabel(); initButton(registry); manager.attachListeners(); buildGUI(); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1722ebf9ac60fc8e45cdc8d0049e85db5b86715c/DomainPane.java/buggy/SRC/org/openmicroscopy/shoola/agents/rnd/pane/DomainPane.java |
else k = (int) qDef.curveCoefficient; | else k = (int) (qDef.curveCoefficient*10); | void setDefaultLinear(int inputStart, int inputEnd) { setCurrentInputs(inputStart, inputEnd); xControl = lS; range = square; binMin = (int) (square/rangeMin); binMax = (int) (square/rangeMax); double yStart, yEnd, xStart, xEnd; yStart = setOuputGraphics(qDef.cdStart); yEnd = setOuputGraphics(qDef.cdEnd); xStart = setInputGraphics(inputStart, square); xEnd = setInputGraphics(inputEnd, square); //Size the rectangles used to control knobs. //Input knob. setKnobStart((int) xStart); setKnobEnd((int) xEnd); manager.setInputRectangles((int) xStart, (int) xEnd); //Output knob. setKnobOutputStart(leftBorder-10, (int) yStart); setKnobOutputEnd(leftBorder-10, (int) topBorder); manager.setOutputRectangles((int) yStart, (int) yEnd); //Control points location. if (reverseIntensity) { staticStartPt.setLocation((double) lS, yStart); staticEndPt.setLocation((double) leftBorder, yEnd); startPt.setLocation(xEnd, yStart); endPt.setLocation(xStart, yEnd); } else { staticStartPt.setLocation((double) leftBorder, yStart); startPt.setLocation(xStart, yStart); staticEndPt.setLocation((double) lS, yEnd); endPt.setLocation(xEnd, yEnd); } //draw curve int k; if (qDef.family == QuantumFactory.LINEAR) k = INIT; else if (qDef.family == QuantumFactory.LOGARITHMIC) k = MIN; else k = (int) qDef.curveCoefficient; setControlLocation(k); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0d11369f0a5b6dfb7fa578d73d2a39cc14fdb812/GraphicsRepresentation.java/buggy/SRC/org/openmicroscopy/shoola/agents/rnd/pane/GraphicsRepresentation.java |
suite.addTest(new ScriptTest(ruby, "testHash")); suite.addTest(new ScriptTest(ruby, "testSymbol")); suite.addTest(new ScriptTest(ruby, "testRandom")); | public static Test suite() { TestSuite suite = new TestSuite(); Ruby ruby = Ruby.getDefaultInstance(null); ruby.initLoad(new ArrayList()); suite.addTest(new ScriptTest(ruby, "testRegexp")); suite.addTest(new ScriptTest(ruby, "testStringEval")); suite.addTest(new ScriptTest(ruby, "testHereDocument")); suite.addTest(new ScriptTest(ruby, "testClass"));// suite.addTest(new ScriptTest(ruby, "testArray")); suite.addTest(new ScriptTest(ruby, "testVariableAndMethod")); suite.addTest(new ScriptTest(ruby, "testIf")); suite.addTest(new ScriptTest(ruby, "testLoops")); suite.addTest(new ScriptTest(ruby, "testMethods")); suite.addTest(new ScriptTest(ruby, "testGlobalVars")); suite.addTest(new ScriptTest(ruby, "testClasses")); suite.addTest(new ScriptTest(ruby, "testNumber")); suite.addTest(new ScriptTest(ruby, "testFloat")); suite.addTest(new ScriptTest(ruby, "testBlock")); suite.addTest(new ScriptTest(ruby, "testRange")); suite.addTest(new ScriptTest(ruby, "testString"));// suite.addTest(new ScriptTest(ruby, "testException"));// suite.addTest(new ScriptTest(ruby, "testSpecialVar")); suite.addTest(new ScriptTest(ruby, "testFile")); suite.addTest(new ScriptTest(ruby, "testMarshal")); return suite; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/c5505ec7f148e23ccef642f45d2ff27f7d7483c6/ScriptTestSuite.java/buggy/org/jruby/test/ScriptTestSuite.java |
|
if (data instanceof ImageSummary) { | if (data instanceof ImageData) { | private void addRow(GridBagLayout gridbag, GridBagConstraints c, JPanel main, int index, DataObject data) { //The image has not been classified. if (data instanceof ImageSummary) { main.add(new JLabel(UNCLASSIFIED_TEXT)); return; } JCheckBox box = new JCheckBox(); box.setSelected(true); String name = ""; if (data instanceof CategoryGroupData) { CategoryGroupData cg = (CategoryGroupData) data; name += cg.getName()+">"; Set set = cg.getCategories(); if (set.size() == 1) { final CategoryData category = (CategoryData) (set.toArray()[0]); name += category.getName(); box.addItemListener(new ItemListener() { public void itemStateChanged(ItemEvent e) { setSelectedCategory(category); } }); } } else if (data instanceof CategoryData) { //i.e. the Category is orphan, shouldn't happen final CategoryData category = (CategoryData) data; name += category.getName(); box.addItemListener(new ItemListener() { public void itemStateChanged(ItemEvent e) { setSelectedCategory(category); } }); } //init JLabel JLabel label = new JLabel(name); c.gridx = 0; c.gridy = index; gridbag.setConstraints(box, c); main.add(box); c.gridx = 1; gridbag.setConstraints(label, c); main.add(label); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/189adc203245e4e155c926260cf702123e4f0c85/RemoveWin.java/clean/SRC/org/openmicroscopy/shoola/agents/hiviewer/clsf/RemoveWin.java |
boolean noiseReduction, int index) | boolean noiseReduction, int index, boolean active) | DomainPane(Registry registry, QuantumPaneManager control, int family, double curveCoefficient, ChannelData[] data, QuantumDef qDef, boolean noiseReduction, int index) { this.qDef = qDef; manager = new DomainPaneManager(this, control); initBoxes(family, data, index, noiseReduction); initSliders(family, curveCoefficient); initLabel(curveCoefficient); initButton(registry); manager.attachListeners(); buildGUI(); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/5662acc2ad6131c4c3a574c528beedc3e62c79c4/DomainPane.java/clean/SRC/org/openmicroscopy/shoola/agents/rnd/pane/DomainPane.java |
initBoxes(family, data, index, noiseReduction); | initBoxes(family, data, index, noiseReduction, active); | DomainPane(Registry registry, QuantumPaneManager control, int family, double curveCoefficient, ChannelData[] data, QuantumDef qDef, boolean noiseReduction, int index) { this.qDef = qDef; manager = new DomainPaneManager(this, control); initBoxes(family, data, index, noiseReduction); initSliders(family, curveCoefficient); initLabel(curveCoefficient); initButton(registry); manager.attachListeners(); buildGUI(); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/5662acc2ad6131c4c3a574c528beedc3e62c79c4/DomainPane.java/clean/SRC/org/openmicroscopy/shoola/agents/rnd/pane/DomainPane.java |
boolean noiseReduction) | boolean noiseReduction, boolean active) | private void initBoxes(int family, ChannelData[] data, int index, boolean noiseReduction) { transformations = new JComboBox(algorithms); transformations.setSelectedIndex(family); String[] waves = new String[data.length]; for (int i = 0; i < data.length; i++) waves[i] = ""+data[i].getNanometer(); wavelengths = new JComboBox(waves); wavelengths.setSelectedIndex(index); //When the color model is gray, the user cannot select the wavelength. wavelengths.setEnabled(false); noise = new JCheckBox(); noise.setSelected(noiseReduction); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/5662acc2ad6131c4c3a574c528beedc3e62c79c4/DomainPane.java/clean/SRC/org/openmicroscopy/shoola/agents/rnd/pane/DomainPane.java |
wavelengths.setEnabled(false); | wavelengths.setEnabled(active); | private void initBoxes(int family, ChannelData[] data, int index, boolean noiseReduction) { transformations = new JComboBox(algorithms); transformations.setSelectedIndex(family); String[] waves = new String[data.length]; for (int i = 0; i < data.length; i++) waves[i] = ""+data[i].getNanometer(); wavelengths = new JComboBox(waves); wavelengths.setSelectedIndex(index); //When the color model is gray, the user cannot select the wavelength. wavelengths.setEnabled(false); noise = new JCheckBox(); noise.setSelected(noiseReduction); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/5662acc2ad6131c4c3a574c528beedc3e62c79c4/DomainPane.java/clean/SRC/org/openmicroscopy/shoola/agents/rnd/pane/DomainPane.java |
{ this.control = control; this.view = view; } | { this.control = control; this.view = view; } | DomainPaneManager(DomainPane view, QuantumPaneManager control) { this.control = control; this.view = view; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1722ebf9ac60fc8e45cdc8d0049e85db5b86715c/DomainPaneManager.java/buggy/SRC/org/openmicroscopy/shoola/agents/rnd/pane/DomainPaneManager.java |
{ view.getGamma().addChangeListener(this); view.getBitResolution().addChangeListener(this); JComboBox transformations = view.getTransformations(), wavelengths = view.getWavelengths(); wavelengths.addActionListener(this); wavelengths.setActionCommand(""+WAVELENGTH); transformations.addActionListener(this); transformations.setActionCommand(""+FAMILY); JButton button = view.getHistogram(); button.addActionListener(this); button.setActionCommand(""+HISTOGRAM); } | { view.getGamma().addChangeListener(this); view.getBitResolution().addChangeListener(this); JComboBox transformations = view.getTransformations(), wavelengths = view.getWavelengths(); wavelengths.addActionListener(this); wavelengths.setActionCommand(""+WAVELENGTH); transformations.addActionListener(this); transformations.setActionCommand(""+FAMILY); JButton button = view.getHistogram(); button.addActionListener(this); button.setActionCommand(""+HISTOGRAM); box = view.getNoise(); box.addActionListener(this); box.setActionCommand(""+NOISE); } | void attachListeners() { //sliders view.getGamma().addChangeListener(this); view.getBitResolution().addChangeListener(this); //comboboxes JComboBox transformations = view.getTransformations(), wavelengths = view.getWavelengths(); wavelengths.addActionListener(this); wavelengths.setActionCommand(""+WAVELENGTH); transformations.addActionListener(this); transformations.setActionCommand(""+FAMILY); //button JButton button = view.getHistogram(); button.addActionListener(this); button.setActionCommand(""+HISTOGRAM); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1722ebf9ac60fc8e45cdc8d0049e85db5b86715c/DomainPaneManager.java/buggy/SRC/org/openmicroscopy/shoola/agents/rnd/pane/DomainPaneManager.java |
MenuManager menuBar = new MenuManager(); MenuManager treeContextMenu = new MenuManager(); | public DisplayedDocument(Shell shell, Dispatcher dispatcher) { // Shell this.shell = shell; shell.setText("Koala Notes"); shell.setLayout(new FillLayout(SWT.VERTICAL)); // Document document = new Document(); Note root = new Note("root", document, ""); // SashForm SashForm sashForm = new SashForm(shell, SWT.HORIZONTAL); // Tree and DisplayedNotes this.displayedNotes = new LinkedList<DisplayedNote>(); tree = new NoteTree(sashForm, dispatcher); new DisplayedNote(this, tree, root); // TabFolder tabFolder = new NoteTabFolder(sashForm); // Finish SashForm sashForm.setWeights(new int[] {20, 80}); // Action Groups actionGroups = new LinkedList<ActionGroup>(); actionGroups.add(new FileActionGroup(dispatcher, document)); actionGroups.add(new NoteActionGroup(dispatcher, tree)); // Menu Bar and Tree Context Menu MenuManager menuBar = new MenuManager(); MenuManager treeContextMenu = new MenuManager(); for (ActionGroup ag : actionGroups) { ag.populateMenuBar(menuBar); ag.populateTreeContextMenu(treeContextMenu); } tree.setContextMenu(treeContextMenu); shell.setMenuBar(menuBar.createMenuBar((Decorations) shell)); // Controllers new FileMenuController(dispatcher, this); new NoteMenuController(dispatcher, this); new MainController(dispatcher, this); new TreeController(dispatcher, tree); } | 57508 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57508/070b419b009cdaec26992a4f38fa244f53d78efc/DisplayedDocument.java/clean/trunk/src/de/berlios/koalanotes/display/DisplayedDocument.java |
|
tree.setContextMenu(treeContextMenu); shell.setMenuBar(menuBar.createMenuBar((Decorations) shell)); | public DisplayedDocument(Shell shell, Dispatcher dispatcher) { // Shell this.shell = shell; shell.setText("Koala Notes"); shell.setLayout(new FillLayout(SWT.VERTICAL)); // Document document = new Document(); Note root = new Note("root", document, ""); // SashForm SashForm sashForm = new SashForm(shell, SWT.HORIZONTAL); // Tree and DisplayedNotes this.displayedNotes = new LinkedList<DisplayedNote>(); tree = new NoteTree(sashForm, dispatcher); new DisplayedNote(this, tree, root); // TabFolder tabFolder = new NoteTabFolder(sashForm); // Finish SashForm sashForm.setWeights(new int[] {20, 80}); // Action Groups actionGroups = new LinkedList<ActionGroup>(); actionGroups.add(new FileActionGroup(dispatcher, document)); actionGroups.add(new NoteActionGroup(dispatcher, tree)); // Menu Bar and Tree Context Menu MenuManager menuBar = new MenuManager(); MenuManager treeContextMenu = new MenuManager(); for (ActionGroup ag : actionGroups) { ag.populateMenuBar(menuBar); ag.populateTreeContextMenu(treeContextMenu); } tree.setContextMenu(treeContextMenu); shell.setMenuBar(menuBar.createMenuBar((Decorations) shell)); // Controllers new FileMenuController(dispatcher, this); new NoteMenuController(dispatcher, this); new MainController(dispatcher, this); new TreeController(dispatcher, tree); } | 57508 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57508/070b419b009cdaec26992a4f38fa244f53d78efc/DisplayedDocument.java/clean/trunk/src/de/berlios/koalanotes/display/DisplayedDocument.java |
|
public NoteTree(Composite parent, Dispatcher d) { // Tree and context menu. tree = new Tree(parent, SWT.MULTI); // Text editor for renaming tree nodes. treeEditor = new TreeEditor(tree); treeEditor.grabHorizontal = true; treeEditor.minimumWidth = 50; // Events. tree.addListener(SWT.MouseDoubleClick, new Listener(d, MainController.DISPLAY_TAB)); Listener contextChangedListener = new Listener(d, MainController.CONTEXT_CHANGED); tree.addListener(SWT.FocusIn, contextChangedListener); tree.addListener(SWT.Selection, contextChangedListener); } | 57508 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57508/070b419b009cdaec26992a4f38fa244f53d78efc/NoteTree.java/buggy/trunk/src/de/berlios/koalanotes/display/NoteTree.java |
||
Listener contextChangedListener = new Listener(d, MainController.CONTEXT_CHANGED); | public NoteTree(Composite parent, Dispatcher d) { // Tree and context menu. tree = new Tree(parent, SWT.MULTI); // Text editor for renaming tree nodes. treeEditor = new TreeEditor(tree); treeEditor.grabHorizontal = true; treeEditor.minimumWidth = 50; // Events. tree.addListener(SWT.MouseDoubleClick, new Listener(d, MainController.DISPLAY_TAB)); Listener contextChangedListener = new Listener(d, MainController.CONTEXT_CHANGED); tree.addListener(SWT.FocusIn, contextChangedListener); tree.addListener(SWT.Selection, contextChangedListener); } | 57508 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57508/070b419b009cdaec26992a4f38fa244f53d78efc/NoteTree.java/buggy/trunk/src/de/berlios/koalanotes/display/NoteTree.java |
|
tree.addListener(SWT.DefaultSelection, contextChangedListener); | public NoteTree(Composite parent, Dispatcher d) { // Tree and context menu. tree = new Tree(parent, SWT.MULTI); // Text editor for renaming tree nodes. treeEditor = new TreeEditor(tree); treeEditor.grabHorizontal = true; treeEditor.minimumWidth = 50; // Events. tree.addListener(SWT.MouseDoubleClick, new Listener(d, MainController.DISPLAY_TAB)); Listener contextChangedListener = new Listener(d, MainController.CONTEXT_CHANGED); tree.addListener(SWT.FocusIn, contextChangedListener); tree.addListener(SWT.Selection, contextChangedListener); } | 57508 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57508/070b419b009cdaec26992a4f38fa244f53d78efc/NoteTree.java/buggy/trunk/src/de/berlios/koalanotes/display/NoteTree.java |
|
allSubmenusAndActions = new ActionGroupHelper(); addNoteSubmenuAndActions = new ActionGroupHelper(); moveNoteSubmenuAndActions = new ActionGroupHelper(); ungroupedActions = new ActionGroupHelper(); allSubmenusAndActions.add(addNoteSubmenuAndActions); allSubmenusAndActions.add(moveNoteSubmenuAndActions); allSubmenusAndActions.add(ungroupedActions); addNoteSubmenuAndActions.add(addNoteAfter); addNoteSubmenuAndActions.add(addNoteUnder); moveNoteSubmenuAndActions.add(moveNoteLeft); moveNoteSubmenuAndActions.add(moveNoteRight); moveNoteSubmenuAndActions.add(moveNoteUp); moveNoteSubmenuAndActions.add(moveNoteDown); ungroupedActions.add(removeNotes); ungroupedActions.add(renameNote); | public NoteActionGroup(Dispatcher d, NoteTree tree) { this.tree = tree; addNoteAfter = new Action(d, NoteMenuController.ADD_NOTE_AFTER, "&After"); addNoteUnder = new Action(d, NoteMenuController.ADD_NOTE_UNDER, "&Under"); moveNoteLeft = new Action(d, NoteMenuController.MOVE_NOTE_LEFT, "&Left"); moveNoteRight = new Action(d, NoteMenuController.MOVE_NOTE_RIGHT, "&Right"); moveNoteUp = new Action(d, NoteMenuController.MOVE_NOTE_UP, "&Up"); moveNoteDown = new Action(d, NoteMenuController.MOVE_NOTE_DOWN, "&Down"); removeNotes = new Action(d, NoteMenuController.REMOVE_NOTES, "&Remove Notes"); removeNotes.setAccelerator(SWT.DEL); renameNote = new Action(d, NoteMenuController.RENAME_NOTE, "Re&name Note"); } | 57508 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57508/070b419b009cdaec26992a4f38fa244f53d78efc/NoteActionGroup.java/buggy/trunk/src/de/berlios/koalanotes/display/menus/NoteActionGroup.java |
|
public TreeController(DisplayedDocument displayedDocument) { super(displayedDocument); | public TreeController(NoteTree tree, Dispatcher dispatcher) { this.tree = tree; this.dispatcher = dispatcher; | public TreeController(DisplayedDocument displayedDocument) { super(displayedDocument); } | 57508 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57508/57d4036eb7167d2d27117abe1f0280376377dbaa/TreeController.java/buggy/trunk/src/de/berlios/koalanotes/controllers/TreeController.java |
public static RubyObject m_print(Ruby ruby, RubyModule rubyClass, RubyObject args[]) { | public static RubyObject m_print(Ruby ruby, RubyObject recv, RubyObject args[]) { | public static RubyObject m_print(Ruby ruby, RubyModule rubyClass, RubyObject args[]) { for (int i = 0; i < args.length; i++) { if (args[i] != null) { System.out.print(((RubyString)args[i].funcall(ruby.intern("to_s"))).getString()); } } return ruby.getNil(); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a9420f23379e292698ea011ab08fb480b4decbcc/RBKernel.java/buggy/org/jruby/core/RBKernel.java |
public static RubyObject m_puts(Ruby ruby, RubyModule rubyClass, RubyObject args[]) { | public static RubyObject m_puts(Ruby ruby, RubyObject recv, RubyObject args[]) { | public static RubyObject m_puts(Ruby ruby, RubyModule rubyClass, RubyObject args[]) { if (args.length == 0) { System.out.println(); } else { for (int i = 0; i < args.length; i++) { if (args[i] != null) { System.out.println(((RubyString)args[i].funcall(ruby.intern("to_s"))).getString()); } } } return ruby.getNil(); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a9420f23379e292698ea011ab08fb480b4decbcc/RBKernel.java/buggy/org/jruby/core/RBKernel.java |
if (canvas instanceof ThumbnailCanvas) canvas.addMouseListener(controller); | public void attachMouseListener(MouseListener controller) { titleBar.addMouseListener(controller); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/3b273af3a5320ab0a054540f14a3c299ff01de69/TinyDialogUI.java/clean/SRC/org/openmicroscopy/shoola/env/ui/tdialog/TinyDialogUI.java |
|
pos++; | public RubyString read() { pos++; if (pos >= snapshot.length) { return RubyString.nilString(runtime); } return new RubyString(getRuntime(), snapshot[pos]); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f80571b8c740590cc4b6416313ec40037810d872/RubyDir.java/clean/org/jruby/RubyDir.java |
|
return new RubyString(getRuntime(), snapshot[pos]); | RubyString result = new RubyString(getRuntime(), snapshot[pos]); pos++; return result; | public RubyString read() { pos++; if (pos >= snapshot.length) { return RubyString.nilString(runtime); } return new RubyString(getRuntime(), snapshot[pos]); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f80571b8c740590cc4b6416313ec40037810d872/RubyDir.java/clean/org/jruby/RubyDir.java |
public static IRubyObject[] convertJavaArrayToRuby( Ruby ruby, Object[] objects) { | public static IRubyObject[] convertJavaArrayToRuby(Ruby ruby, Object[] objects) { | public static IRubyObject[] convertJavaArrayToRuby( Ruby ruby, Object[] objects) { IRubyObject[] rubyObjects = new IRubyObject[objects.length]; for (int i = 0; i < objects.length; i++) { rubyObjects[i] = convertJavaToRuby(ruby, objects[i]); } return rubyObjects; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/05c7de156620b4e1926ea77f476287db1b42b4cc/JavaUtil.java/buggy/src/org/jruby/javasupport/JavaUtil.java |
source = source.substring(lastIndex); | source = source.substring(0, lastIndex); | public static long getUrlLastModified(URL u) { String protocol = u.getProtocol(); if (protocol.equals("file")) { // We're going to use the File mechanism instead File f = new File(u.getFile()); return f.lastModified(); } else if (protocol.equals("jar")) { // We'll extract the jar source and recurse String source = u.getFile(); int lastIndex = source.lastIndexOf("!"); if (lastIndex > 0) source = source.substring(lastIndex); try { return getUrlLastModified(new URL(source)); } catch (MalformedURLException e) { return 0; } } else { // Ask the URL, maybe it knows try { URLConnection uc = u.openConnection(); uc.connect(); return uc.getLastModified(); } catch (IOException e) { return 0; } } } | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/461535b4998d93fc2e14ba7ac5a73b0c645aa111/UrlProvider.java/buggy/webmacro/src/org/webmacro/resource/UrlProvider.java |
firePropertyChange(CHANNEL_COLOR_CHANGE_PROPERTY, index-1, index); | firePropertyChange(CHANNEL_COLOR_CHANGE_PROPERTY, new Integer(index-1), new Integer(index)); | public void setChannelColor(int index, Color c) { switch (model.getState()) { case NEW: case LOADING_RENDERING_CONTROL: case DISCARDED: throw new IllegalStateException( "This method can't be invoked in the DISCARDED, NEW or" + "LOADING_RENDERING_CONTROL state."); } model.setChannelColor(index, c); view.setChannelColor(index, c); firePropertyChange(CHANNEL_COLOR_CHANGE_PROPERTY, index-1, index); if (model.isChannelActive(index)) renderXYPlane(); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/dd15f7b19e5474f29179e2f8140a5d082bd2ba55/ImViewerComponent.java/clean/SRC/org/openmicroscopy/shoola/agents/imviewer/view/ImViewerComponent.java |
public void setUnitBarSize(boolean increase) | public void setUnitBarSize(double size) | public void setUnitBarSize(boolean increase) { model.getBrowser().setUnitBarSize(increase); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/dd15f7b19e5474f29179e2f8140a5d082bd2ba55/ImViewerComponent.java/clean/SRC/org/openmicroscopy/shoola/agents/imviewer/view/ImViewerComponent.java |
model.getBrowser().setUnitBarSize(increase); | model.getBrowser().setUnitBarSize(size); | public void setUnitBarSize(boolean increase) { model.getBrowser().setUnitBarSize(increase); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/dd15f7b19e5474f29179e2f8140a5d082bd2ba55/ImViewerComponent.java/clean/SRC/org/openmicroscopy/shoola/agents/imviewer/view/ImViewerComponent.java |
ChannelMetadata getChannelData(int index) | ChannelMetadata[] getChannelData() | ChannelMetadata getChannelData(int index) { return rndControl.getChannelData(index); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0f6ffcdbfbd9b495562c34a5dd9a6afd70961ffc/ImViewerModel.java/buggy/SRC/org/openmicroscopy/shoola/agents/imviewer/view/ImViewerModel.java |
return rndControl.getChannelData(index); | return rndControl.getChannelData(); | ChannelMetadata getChannelData(int index) { return rndControl.getChannelData(index); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0f6ffcdbfbd9b495562c34a5dd9a6afd70961ffc/ImViewerModel.java/buggy/SRC/org/openmicroscopy/shoola/agents/imviewer/view/ImViewerModel.java |
OmeroImageService rs = ImViewerAgent.getRegistry().getImageService(); | BufferedImage getRenderedImage() { PlaneDef pDef = new PlaneDef(PlaneDef.XY, getDefaultT()); pDef.setZ(getDefaultZ()); state = ImViewer.LOADING_IMAGE; OmeroImageService rs = ImViewerAgent.getRegistry().getImageService(); try { return rs.renderImage(pixelsID, pDef); } catch (Exception e) { // TODO: handle exception } return null; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0f6ffcdbfbd9b495562c34a5dd9a6afd70961ffc/ImViewerModel.java/buggy/SRC/org/openmicroscopy/shoola/agents/imviewer/view/ImViewerModel.java |
|
return rs.renderImage(pixelsID, pDef); | return rndControl.renderCopy(pDef); | BufferedImage getRenderedImage() { PlaneDef pDef = new PlaneDef(PlaneDef.XY, getDefaultT()); pDef.setZ(getDefaultZ()); state = ImViewer.LOADING_IMAGE; OmeroImageService rs = ImViewerAgent.getRegistry().getImageService(); try { return rs.renderImage(pixelsID, pDef); } catch (Exception e) { // TODO: handle exception } return null; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0f6ffcdbfbd9b495562c34a5dd9a6afd70961ffc/ImViewerModel.java/buggy/SRC/org/openmicroscopy/shoola/agents/imviewer/view/ImViewerModel.java |
createTimer(); | void initialize(ImViewer model, ImViewerUI view) { if (model == null) throw new NullPointerException("No model."); if (view == null) throw new NullPointerException("No view."); this.model = model; this.view = view; historyState = -1; colorPickerIndex = -1; actionsMap = new HashMap(); createActions(); model.addChangeListener(this); model.addPropertyChangeListener(this); //if (!(ImViewerFactory.isWindowMenuAttachedToTaskBar())) { attachWindowListeners(); ImViewerFactory.attachWindowMenuToTaskBar(); //} createTimer(); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/43f8c678f03aa7cac6a19865461c28a00cf7eb2b/ImViewerControl.java/buggy/SRC/org/openmicroscopy/shoola/agents/imviewer/view/ImViewerControl.java |
|
void fireImageRetrieval() { if (currentLoader != null) currentLoader.cancel(); PlaneDef pDef = new PlaneDef(PlaneDef.XY, getDefaultT()); pDef.setZ(getDefaultZ()); state = ImViewer.LOADING_IMAGE; OmeroImageService rs = ImViewerAgent.getRegistry().getImageService(); try { component.setImage(rs.renderImage(pixelsID, pDef)); } catch (Exception e) { // TODO: handle exception } //currentLoader = new ImageLoader(component, pixelsID, pDef); //currentLoader.load(); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0f6ffcdbfbd9b495562c34a5dd9a6afd70961ffc/ImViewerModel.java/buggy/SRC/org/openmicroscopy/shoola/agents/imviewer/view/ImViewerModel.java |
||
*/ currentLoader = new ImageLoader(component, pixelsID, pDef); currentLoader.load(); | void fireImageRetrieval() { if (currentLoader != null) currentLoader.cancel(); PlaneDef pDef = new PlaneDef(PlaneDef.XY, getDefaultT()); pDef.setZ(getDefaultZ()); state = ImViewer.LOADING_IMAGE; OmeroImageService rs = ImViewerAgent.getRegistry().getImageService(); try { component.setImage(rs.renderImage(pixelsID, pDef)); } catch (Exception e) { // TODO: handle exception } //currentLoader = new ImageLoader(component, pixelsID, pDef); //currentLoader.load(); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0f6ffcdbfbd9b495562c34a5dd9a6afd70961ffc/ImViewerModel.java/buggy/SRC/org/openmicroscopy/shoola/agents/imviewer/view/ImViewerModel.java |
|
if (otherValue == 0) { return RubyFixnum.zero(getRuntime()); } | public RubyNumeric multiplyWith(RubyFixnum other) { long otherValue = other.getLongValue(); long result = value * otherValue; if (result > MAX || result < MIN || result / otherValue != value) { return RubyBignum.newBignum(getRuntime(), getLongValue()).op_mul(other); } else { return newFixnum(result); } } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/8ae8f38ab1546a14304108515ca0d070412cc6c2/RubyFixnum.java/clean/src/org/jruby/RubyFixnum.java |
|
throw new RubyBugException("argument must be an integer"); | Asserts.assertNotReached("argument must be an integer"); | static public BigInteger bigIntValue(RubyNumeric other) { if (other instanceof RubyFloat) { throw new RubyBugException("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/071973606d94103b2d5cb6c793aa1e8809fc7b2a/RubyBignum.java/buggy/org/jruby/RubyBignum.java |
lexer.yaccValue = buffer.toString(); | lexer.yaccValue = new Token(buffer.toString(), lexer.getPosition(null, false)); | public int parseString(RubyYaccLexer lexer, LexerSource src) { char c; boolean indent = (func & RubyYaccLexer.STR_FUNC_INDENT) != 0; StringBuffer str = new StringBuffer(); if ((c = src.read()) == RubyYaccLexer.EOF) { throw new SyntaxException(src.getPosition(), "can't find string \"" + eos + "\" anywhere before EOF"); } if (src.wasBeginOfLine() && src.matchString(eos + '\n', indent)) { src.unreadMany(lastLine); return Tokens.tSTRING_END; } if ((func & RubyYaccLexer.STR_FUNC_EXPAND) == 0) { /* * if (c == '\n') { support.unread(c); } */ // Something missing here... /* * int lastLineLength = here.getLastLineLength(); * * if (lastLineLength > 0) { // It looks like I needed to append * last line as well... * support.unreadMany(here.getLastLineLength()); * str.append(support.readLine()); str.append("\n"); } */ /* * c was read above and should be unread before we start * to fill the str buffer */ src.unread(c); do { str.append(src.readLine()); str.append("\n"); if (src.peek('\0')) { throw new SyntaxException(src.getPosition(), "can't find string \"" + eos + "\" anywhere before EOF"); } } while (!src.matchString(eos + '\n', indent)); } else { StringBuffer buffer = new StringBuffer(100); if (c == '#') { switch (c = src.read()) { case '$': case '@': src.unread(c); return Tokens.tSTRING_DVAR; case '{': return Tokens.tSTRING_DBEG; } buffer.append('#'); } src.unread(c); do { if ((c = new StringTerm(func, '\n', '\0').parseStringIntoBuffer(src, buffer)) == RubyYaccLexer.EOF) { throw new SyntaxException(src.getPosition(), "can't find string \"" + eos + "\" anywhere before EOF"); } if (c != '\n') { lexer.yaccValue = buffer.toString(); return Tokens.tSTRING_CONTENT; } buffer.append(src.read()); if ((c = src.read()) == RubyYaccLexer.EOF) { throw new SyntaxException(src.getPosition(), "can't find string \"" + eos + "\" anywhere before EOF"); } // We need to pushback so when whole match looks it did not // lose a char during last EOF src.unread(c); } while (!src.matchString(eos + '\n', indent)); str = new StringBuffer(buffer.toString()); } src.unreadMany(lastLine); lexer.setStrTerm(new StringTerm(-1, '\0', '\0')); lexer.yaccValue = str.toString(); return Tokens.tSTRING_CONTENT; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/b1293eda8454686e846e2a9837b348e2983bb423/HeredocTerm.java/buggy/src/org/jruby/lexer/yacc/HeredocTerm.java |
lexer.yaccValue = str.toString(); | lexer.yaccValue = new Token(str.toString(), lexer.getPosition(null, false)); | public int parseString(RubyYaccLexer lexer, LexerSource src) { char c; boolean indent = (func & RubyYaccLexer.STR_FUNC_INDENT) != 0; StringBuffer str = new StringBuffer(); if ((c = src.read()) == RubyYaccLexer.EOF) { throw new SyntaxException(src.getPosition(), "can't find string \"" + eos + "\" anywhere before EOF"); } if (src.wasBeginOfLine() && src.matchString(eos + '\n', indent)) { src.unreadMany(lastLine); return Tokens.tSTRING_END; } if ((func & RubyYaccLexer.STR_FUNC_EXPAND) == 0) { /* * if (c == '\n') { support.unread(c); } */ // Something missing here... /* * int lastLineLength = here.getLastLineLength(); * * if (lastLineLength > 0) { // It looks like I needed to append * last line as well... * support.unreadMany(here.getLastLineLength()); * str.append(support.readLine()); str.append("\n"); } */ /* * c was read above and should be unread before we start * to fill the str buffer */ src.unread(c); do { str.append(src.readLine()); str.append("\n"); if (src.peek('\0')) { throw new SyntaxException(src.getPosition(), "can't find string \"" + eos + "\" anywhere before EOF"); } } while (!src.matchString(eos + '\n', indent)); } else { StringBuffer buffer = new StringBuffer(100); if (c == '#') { switch (c = src.read()) { case '$': case '@': src.unread(c); return Tokens.tSTRING_DVAR; case '{': return Tokens.tSTRING_DBEG; } buffer.append('#'); } src.unread(c); do { if ((c = new StringTerm(func, '\n', '\0').parseStringIntoBuffer(src, buffer)) == RubyYaccLexer.EOF) { throw new SyntaxException(src.getPosition(), "can't find string \"" + eos + "\" anywhere before EOF"); } if (c != '\n') { lexer.yaccValue = buffer.toString(); return Tokens.tSTRING_CONTENT; } buffer.append(src.read()); if ((c = src.read()) == RubyYaccLexer.EOF) { throw new SyntaxException(src.getPosition(), "can't find string \"" + eos + "\" anywhere before EOF"); } // We need to pushback so when whole match looks it did not // lose a char during last EOF src.unread(c); } while (!src.matchString(eos + '\n', indent)); str = new StringBuffer(buffer.toString()); } src.unreadMany(lastLine); lexer.setStrTerm(new StringTerm(-1, '\0', '\0')); lexer.yaccValue = str.toString(); return Tokens.tSTRING_CONTENT; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/b1293eda8454686e846e2a9837b348e2983bb423/HeredocTerm.java/buggy/src/org/jruby/lexer/yacc/HeredocTerm.java |
public char read() { int length = buf.length(); char c; if (length > 0) { c = buf.charAt(length - 1); buf.deleteCharAt(length - 1); } else { c = wrappedRead(); // EOF...Do not advance (offset/column)...Go straight to jail if (c == 0) { return c; } } // Reset column back to zero on first read of a line (note it will be- // come '1' by the time it leaves read(). if (nextCharIsOnANewLine) { nextCharIsOnANewLine = false; column = 0; } offset++; column++; if (c == '\n') { line++; // Since we are not reading off of unread buffer we must at the // end of a new line for the first time. Add it. if (length < 1) { lineWidths.add(new Integer(column)); } nextCharIsOnANewLine = true; } return c; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/b1293eda8454686e846e2a9837b348e2983bb423/LexerSource.java/buggy/src/org/jruby/lexer/yacc/LexerSource.java |
||
offset++; | public char read() { int length = buf.length(); char c; if (length > 0) { c = buf.charAt(length - 1); buf.deleteCharAt(length - 1); } else { c = wrappedRead(); // EOF...Do not advance (offset/column)...Go straight to jail if (c == 0) { return c; } } // Reset column back to zero on first read of a line (note it will be- // come '1' by the time it leaves read(). if (nextCharIsOnANewLine) { nextCharIsOnANewLine = false; column = 0; } offset++; column++; if (c == '\n') { line++; // Since we are not reading off of unread buffer we must at the // end of a new line for the first time. Add it. if (length < 1) { lineWidths.add(new Integer(column)); } nextCharIsOnANewLine = true; } return c; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/b1293eda8454686e846e2a9837b348e2983bb423/LexerSource.java/buggy/src/org/jruby/lexer/yacc/LexerSource.java |
|
public ISourcePosition getPosition() { return positionFactory.getPosition(this, null); | public ISourcePosition getPosition(ISourcePosition startPosition, boolean inclusive) { return positionFactory.getPosition(startPosition, inclusive); | public ISourcePosition getPosition() { return positionFactory.getPosition(this, null); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/b1293eda8454686e846e2a9837b348e2983bb423/LexerSource.java/buggy/src/org/jruby/lexer/yacc/LexerSource.java |
Query<List> q = queryFactory.lookup( | Query<List<IObject>> q = queryFactory.lookup( | public Map findAnnotations(Class rootNodeType, @NotNull @Validate(Long.class) Set rootNodeIds, @Validate(Long.class) Set annotatorIds, Map options) { if (rootNodeIds.size()==0) return new HashMap(); PojoOptions po = new PojoOptions(options); Query<List> q = queryFactory.lookup( PojosFindAnnotationsQueryDefinition.class.getName(), new Parameters() .addIds(rootNodeIds) .addClass(rootNodeType) .addSet("annotatorIds",annotatorIds) .addOptions(po.map())); List l = iQuery.execute(q); // no count collection // // Destructive changes below this point. // for (Object object : l) { iQuery.evict(object); } // TODO these here or in Query Definition? Does it belong to API or to query? if (Dataset.class.equals(rootNodeType)){ return AnnotationTransformations.sortDatasetAnnotatiosn(new HashSet(l)); } else if (Image.class.equals(rootNodeType)){ return AnnotationTransformations.sortImageAnnotatiosn(new HashSet(l)); } else { throw new IllegalArgumentException( "Class parameter for findAnnotation() must be in " + "{Dataset,Image}, not "+ rootNodeType); } } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/fd4ebf312d4496f33d02000802e6f781368d1dac/PojosImpl.java/clean/components/server/src/ome/logic/PojosImpl.java |
List l = iQuery.execute(q); | List<IObject> l = iQuery.execute(q); | public Map findAnnotations(Class rootNodeType, @NotNull @Validate(Long.class) Set rootNodeIds, @Validate(Long.class) Set annotatorIds, Map options) { if (rootNodeIds.size()==0) return new HashMap(); PojoOptions po = new PojoOptions(options); Query<List> q = queryFactory.lookup( PojosFindAnnotationsQueryDefinition.class.getName(), new Parameters() .addIds(rootNodeIds) .addClass(rootNodeType) .addSet("annotatorIds",annotatorIds) .addOptions(po.map())); List l = iQuery.execute(q); // no count collection // // Destructive changes below this point. // for (Object object : l) { iQuery.evict(object); } // TODO these here or in Query Definition? Does it belong to API or to query? if (Dataset.class.equals(rootNodeType)){ return AnnotationTransformations.sortDatasetAnnotatiosn(new HashSet(l)); } else if (Image.class.equals(rootNodeType)){ return AnnotationTransformations.sortImageAnnotatiosn(new HashSet(l)); } else { throw new IllegalArgumentException( "Class parameter for findAnnotation() must be in " + "{Dataset,Image}, not "+ rootNodeType); } } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/fd4ebf312d4496f33d02000802e6f781368d1dac/PojosImpl.java/clean/components/server/src/ome/logic/PojosImpl.java |
public Map findAnnotations(Class rootNodeType, @NotNull @Validate(Long.class) Set rootNodeIds, @Validate(Long.class) Set annotatorIds, Map options) { if (rootNodeIds.size()==0) return new HashMap(); PojoOptions po = new PojoOptions(options); Query<List> q = queryFactory.lookup( PojosFindAnnotationsQueryDefinition.class.getName(), new Parameters() .addIds(rootNodeIds) .addClass(rootNodeType) .addSet("annotatorIds",annotatorIds) .addOptions(po.map())); List l = iQuery.execute(q); // no count collection // // Destructive changes below this point. // for (Object object : l) { iQuery.evict(object); } // TODO these here or in Query Definition? Does it belong to API or to query? if (Dataset.class.equals(rootNodeType)){ return AnnotationTransformations.sortDatasetAnnotatiosn(new HashSet(l)); } else if (Image.class.equals(rootNodeType)){ return AnnotationTransformations.sortImageAnnotatiosn(new HashSet(l)); } else { throw new IllegalArgumentException( "Class parameter for findAnnotation() must be in " + "{Dataset,Image}, not "+ rootNodeType); } } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/fd4ebf312d4496f33d02000802e6f781368d1dac/PojosImpl.java/clean/components/server/src/ome/logic/PojosImpl.java |
||
return AnnotationTransformations.sortDatasetAnnotatiosn(new HashSet(l)); | return AnnotationTransformations.sortDatasetAnnotatiosn( new HashSet<IObject>(l)); | public Map findAnnotations(Class rootNodeType, @NotNull @Validate(Long.class) Set rootNodeIds, @Validate(Long.class) Set annotatorIds, Map options) { if (rootNodeIds.size()==0) return new HashMap(); PojoOptions po = new PojoOptions(options); Query<List> q = queryFactory.lookup( PojosFindAnnotationsQueryDefinition.class.getName(), new Parameters() .addIds(rootNodeIds) .addClass(rootNodeType) .addSet("annotatorIds",annotatorIds) .addOptions(po.map())); List l = iQuery.execute(q); // no count collection // // Destructive changes below this point. // for (Object object : l) { iQuery.evict(object); } // TODO these here or in Query Definition? Does it belong to API or to query? if (Dataset.class.equals(rootNodeType)){ return AnnotationTransformations.sortDatasetAnnotatiosn(new HashSet(l)); } else if (Image.class.equals(rootNodeType)){ return AnnotationTransformations.sortImageAnnotatiosn(new HashSet(l)); } else { throw new IllegalArgumentException( "Class parameter for findAnnotation() must be in " + "{Dataset,Image}, not "+ rootNodeType); } } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/fd4ebf312d4496f33d02000802e6f781368d1dac/PojosImpl.java/clean/components/server/src/ome/logic/PojosImpl.java |
return AnnotationTransformations.sortImageAnnotatiosn(new HashSet(l)); | return AnnotationTransformations.sortImageAnnotatiosn( new HashSet<IObject>(l)); | public Map findAnnotations(Class rootNodeType, @NotNull @Validate(Long.class) Set rootNodeIds, @Validate(Long.class) Set annotatorIds, Map options) { if (rootNodeIds.size()==0) return new HashMap(); PojoOptions po = new PojoOptions(options); Query<List> q = queryFactory.lookup( PojosFindAnnotationsQueryDefinition.class.getName(), new Parameters() .addIds(rootNodeIds) .addClass(rootNodeType) .addSet("annotatorIds",annotatorIds) .addOptions(po.map())); List l = iQuery.execute(q); // no count collection // // Destructive changes below this point. // for (Object object : l) { iQuery.evict(object); } // TODO these here or in Query Definition? Does it belong to API or to query? if (Dataset.class.equals(rootNodeType)){ return AnnotationTransformations.sortDatasetAnnotatiosn(new HashSet(l)); } else if (Image.class.equals(rootNodeType)){ return AnnotationTransformations.sortImageAnnotatiosn(new HashSet(l)); } else { throw new IllegalArgumentException( "Class parameter for findAnnotation() must be in " + "{Dataset,Image}, not "+ rootNodeType); } } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/fd4ebf312d4496f33d02000802e6f781368d1dac/PojosImpl.java/clean/components/server/src/ome/logic/PojosImpl.java |
Query q = queryFactory.lookup( | Query<List<Map<String,IObject>>> q = queryFactory.lookup( | public Set findCGCPaths(@NotNull @Validate(Long.class) Set imgIds, String algorithm, Map options) { if (imgIds.size()==0){ return new HashSet(); } if (! IPojos.ALGORITHMS.contains(algorithm)) { throw new IllegalArgumentException( "No such algorithm known:"+algorithm); } PojoOptions po = new PojoOptions(options); Query q = queryFactory.lookup( PojosCGCPathsQueryDefinition.class.getName(), new Parameters() .addIds(imgIds) .addAlgorithm(algorithm) .addOptions(po.map())); List<Map<String,Object>> result_set = (List) iQuery.execute(q); Map<CategoryGroup,Set<Category>> map = new HashMap<CategoryGroup,Set<Category>>(); Set<CategoryGroup> returnValues = new HashSet<CategoryGroup>(); // Parse for (Map<String,Object> entry : result_set){ CategoryGroup cg = (CategoryGroup) entry.get(CategoryGroup.class.getName()); Category c = (Category) entry.get(Category.class.getName()); if (!map.containsKey(cg)) map.put(cg,new HashSet<Category>()); if (c != null) map.get(cg).add(c); } // // Destructive changes below this point. // for (CategoryGroup cg : map.keySet()) { iQuery.evict(cg); // Overriding various checks. cg.putAt(CategoryGroup.CATEGORYLINKS,null); for (Category c : map.get(cg)) { iQuery.evict(c); // Overriding various checks. c.putAt(Category.CATEGORYGROUPLINKS,null); cg.linkCategory(c); } returnValues.add(cg); } collectCounts(returnValues,po); return returnValues; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/fd4ebf312d4496f33d02000802e6f781368d1dac/PojosImpl.java/clean/components/server/src/ome/logic/PojosImpl.java |
List<Map<String,Object>> result_set = (List) iQuery.execute(q); | List<Map<String,IObject>> result_set = iQuery.execute(q); | public Set findCGCPaths(@NotNull @Validate(Long.class) Set imgIds, String algorithm, Map options) { if (imgIds.size()==0){ return new HashSet(); } if (! IPojos.ALGORITHMS.contains(algorithm)) { throw new IllegalArgumentException( "No such algorithm known:"+algorithm); } PojoOptions po = new PojoOptions(options); Query q = queryFactory.lookup( PojosCGCPathsQueryDefinition.class.getName(), new Parameters() .addIds(imgIds) .addAlgorithm(algorithm) .addOptions(po.map())); List<Map<String,Object>> result_set = (List) iQuery.execute(q); Map<CategoryGroup,Set<Category>> map = new HashMap<CategoryGroup,Set<Category>>(); Set<CategoryGroup> returnValues = new HashSet<CategoryGroup>(); // Parse for (Map<String,Object> entry : result_set){ CategoryGroup cg = (CategoryGroup) entry.get(CategoryGroup.class.getName()); Category c = (Category) entry.get(Category.class.getName()); if (!map.containsKey(cg)) map.put(cg,new HashSet<Category>()); if (c != null) map.get(cg).add(c); } // // Destructive changes below this point. // for (CategoryGroup cg : map.keySet()) { iQuery.evict(cg); // Overriding various checks. cg.putAt(CategoryGroup.CATEGORYLINKS,null); for (Category c : map.get(cg)) { iQuery.evict(c); // Overriding various checks. c.putAt(Category.CATEGORYGROUPLINKS,null); cg.linkCategory(c); } returnValues.add(cg); } collectCounts(returnValues,po); return returnValues; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/fd4ebf312d4496f33d02000802e6f781368d1dac/PojosImpl.java/clean/components/server/src/ome/logic/PojosImpl.java |
for (Map<String,Object> entry : result_set){ | for (Map<String,IObject> entry : result_set){ | public Set findCGCPaths(@NotNull @Validate(Long.class) Set imgIds, String algorithm, Map options) { if (imgIds.size()==0){ return new HashSet(); } if (! IPojos.ALGORITHMS.contains(algorithm)) { throw new IllegalArgumentException( "No such algorithm known:"+algorithm); } PojoOptions po = new PojoOptions(options); Query q = queryFactory.lookup( PojosCGCPathsQueryDefinition.class.getName(), new Parameters() .addIds(imgIds) .addAlgorithm(algorithm) .addOptions(po.map())); List<Map<String,Object>> result_set = (List) iQuery.execute(q); Map<CategoryGroup,Set<Category>> map = new HashMap<CategoryGroup,Set<Category>>(); Set<CategoryGroup> returnValues = new HashSet<CategoryGroup>(); // Parse for (Map<String,Object> entry : result_set){ CategoryGroup cg = (CategoryGroup) entry.get(CategoryGroup.class.getName()); Category c = (Category) entry.get(Category.class.getName()); if (!map.containsKey(cg)) map.put(cg,new HashSet<Category>()); if (c != null) map.get(cg).add(c); } // // Destructive changes below this point. // for (CategoryGroup cg : map.keySet()) { iQuery.evict(cg); // Overriding various checks. cg.putAt(CategoryGroup.CATEGORYLINKS,null); for (Category c : map.get(cg)) { iQuery.evict(c); // Overriding various checks. c.putAt(Category.CATEGORYGROUPLINKS,null); cg.linkCategory(c); } returnValues.add(cg); } collectCounts(returnValues,po); return returnValues; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/fd4ebf312d4496f33d02000802e6f781368d1dac/PojosImpl.java/clean/components/server/src/ome/logic/PojosImpl.java |
cg.putAt(CategoryGroup.CATEGORYLINKS,null); | cg.putAt(CategoryGroup.CATEGORYLINKS, new HashSet() ); | public Set findCGCPaths(@NotNull @Validate(Long.class) Set imgIds, String algorithm, Map options) { if (imgIds.size()==0){ return new HashSet(); } if (! IPojos.ALGORITHMS.contains(algorithm)) { throw new IllegalArgumentException( "No such algorithm known:"+algorithm); } PojoOptions po = new PojoOptions(options); Query q = queryFactory.lookup( PojosCGCPathsQueryDefinition.class.getName(), new Parameters() .addIds(imgIds) .addAlgorithm(algorithm) .addOptions(po.map())); List<Map<String,Object>> result_set = (List) iQuery.execute(q); Map<CategoryGroup,Set<Category>> map = new HashMap<CategoryGroup,Set<Category>>(); Set<CategoryGroup> returnValues = new HashSet<CategoryGroup>(); // Parse for (Map<String,Object> entry : result_set){ CategoryGroup cg = (CategoryGroup) entry.get(CategoryGroup.class.getName()); Category c = (Category) entry.get(Category.class.getName()); if (!map.containsKey(cg)) map.put(cg,new HashSet<Category>()); if (c != null) map.get(cg).add(c); } // // Destructive changes below this point. // for (CategoryGroup cg : map.keySet()) { iQuery.evict(cg); // Overriding various checks. cg.putAt(CategoryGroup.CATEGORYLINKS,null); for (Category c : map.get(cg)) { iQuery.evict(c); // Overriding various checks. c.putAt(Category.CATEGORYGROUPLINKS,null); cg.linkCategory(c); } returnValues.add(cg); } collectCounts(returnValues,po); return returnValues; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/fd4ebf312d4496f33d02000802e6f781368d1dac/PojosImpl.java/clean/components/server/src/ome/logic/PojosImpl.java |
c.putAt(Category.CATEGORYGROUPLINKS,null); | c.putAt(Category.CATEGORYGROUPLINKS, new HashSet() ); | public Set findCGCPaths(@NotNull @Validate(Long.class) Set imgIds, String algorithm, Map options) { if (imgIds.size()==0){ return new HashSet(); } if (! IPojos.ALGORITHMS.contains(algorithm)) { throw new IllegalArgumentException( "No such algorithm known:"+algorithm); } PojoOptions po = new PojoOptions(options); Query q = queryFactory.lookup( PojosCGCPathsQueryDefinition.class.getName(), new Parameters() .addIds(imgIds) .addAlgorithm(algorithm) .addOptions(po.map())); List<Map<String,Object>> result_set = (List) iQuery.execute(q); Map<CategoryGroup,Set<Category>> map = new HashMap<CategoryGroup,Set<Category>>(); Set<CategoryGroup> returnValues = new HashSet<CategoryGroup>(); // Parse for (Map<String,Object> entry : result_set){ CategoryGroup cg = (CategoryGroup) entry.get(CategoryGroup.class.getName()); Category c = (Category) entry.get(Category.class.getName()); if (!map.containsKey(cg)) map.put(cg,new HashSet<Category>()); if (c != null) map.get(cg).add(c); } // // Destructive changes below this point. // for (CategoryGroup cg : map.keySet()) { iQuery.evict(cg); // Overriding various checks. cg.putAt(CategoryGroup.CATEGORYLINKS,null); for (Category c : map.get(cg)) { iQuery.evict(c); // Overriding various checks. c.putAt(Category.CATEGORYGROUPLINKS,null); cg.linkCategory(c); } returnValues.add(cg); } collectCounts(returnValues,po); return returnValues; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/fd4ebf312d4496f33d02000802e6f781368d1dac/PojosImpl.java/clean/components/server/src/ome/logic/PojosImpl.java |
Query q = queryFactory.lookup( | Query<List<IObject>> q = queryFactory.lookup( | public Set findContainerHierarchies(@NotNull Class rootNodeType, @NotNull @Validate(Long.class) Set imageIds, Map options) { PojoOptions po = new PojoOptions(options); Query q = queryFactory.lookup( PojosFindHierarchiesQueryDefinition.class.getName(), new Parameters() .addClass(rootNodeType) .addIds(imageIds) .addOptions(po.map())); List l = (List) iQuery.execute(q); collectCounts(l,po); // // Destructive changes below this point. // for (Object object : l) { iQuery.evict(object); } // TODO; this if-else statement could be removed if Transformations // did their own dispatching // TODO: logging, null checking. daos should never return null // TODO then size! if (Project.class.equals(rootNodeType)) { if (imageIds.size()==0){ return new HashSet(); } return HierarchyTransformations.invertPDI(new HashSet(l)); } else if (CategoryGroup.class.equals(rootNodeType)){ if (imageIds.size()==0){ return new HashSet(); } return HierarchyTransformations.invertCGCI(new HashSet(l)); } else {throw new IllegalArgumentException( // TODO refactor. move this up. "Class parameter for findContainerHierarchies() must be" + " in {Project,CategoryGroup}, not " + rootNodeType); } } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/fd4ebf312d4496f33d02000802e6f781368d1dac/PojosImpl.java/clean/components/server/src/ome/logic/PojosImpl.java |
List l = (List) iQuery.execute(q); | List<IObject> l = iQuery.execute(q); | public Set findContainerHierarchies(@NotNull Class rootNodeType, @NotNull @Validate(Long.class) Set imageIds, Map options) { PojoOptions po = new PojoOptions(options); Query q = queryFactory.lookup( PojosFindHierarchiesQueryDefinition.class.getName(), new Parameters() .addClass(rootNodeType) .addIds(imageIds) .addOptions(po.map())); List l = (List) iQuery.execute(q); collectCounts(l,po); // // Destructive changes below this point. // for (Object object : l) { iQuery.evict(object); } // TODO; this if-else statement could be removed if Transformations // did their own dispatching // TODO: logging, null checking. daos should never return null // TODO then size! if (Project.class.equals(rootNodeType)) { if (imageIds.size()==0){ return new HashSet(); } return HierarchyTransformations.invertPDI(new HashSet(l)); } else if (CategoryGroup.class.equals(rootNodeType)){ if (imageIds.size()==0){ return new HashSet(); } return HierarchyTransformations.invertCGCI(new HashSet(l)); } else {throw new IllegalArgumentException( // TODO refactor. move this up. "Class parameter for findContainerHierarchies() must be" + " in {Project,CategoryGroup}, not " + rootNodeType); } } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/fd4ebf312d4496f33d02000802e6f781368d1dac/PojosImpl.java/clean/components/server/src/ome/logic/PojosImpl.java |
for (Object object : l) | for (IObject object : l) | public Set findContainerHierarchies(@NotNull Class rootNodeType, @NotNull @Validate(Long.class) Set imageIds, Map options) { PojoOptions po = new PojoOptions(options); Query q = queryFactory.lookup( PojosFindHierarchiesQueryDefinition.class.getName(), new Parameters() .addClass(rootNodeType) .addIds(imageIds) .addOptions(po.map())); List l = (List) iQuery.execute(q); collectCounts(l,po); // // Destructive changes below this point. // for (Object object : l) { iQuery.evict(object); } // TODO; this if-else statement could be removed if Transformations // did their own dispatching // TODO: logging, null checking. daos should never return null // TODO then size! if (Project.class.equals(rootNodeType)) { if (imageIds.size()==0){ return new HashSet(); } return HierarchyTransformations.invertPDI(new HashSet(l)); } else if (CategoryGroup.class.equals(rootNodeType)){ if (imageIds.size()==0){ return new HashSet(); } return HierarchyTransformations.invertCGCI(new HashSet(l)); } else {throw new IllegalArgumentException( // TODO refactor. move this up. "Class parameter for findContainerHierarchies() must be" + " in {Project,CategoryGroup}, not " + rootNodeType); } } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/fd4ebf312d4496f33d02000802e6f781368d1dac/PojosImpl.java/clean/components/server/src/ome/logic/PojosImpl.java |
return HierarchyTransformations.invertPDI(new HashSet(l)); | return HierarchyTransformations.invertPDI(new HashSet<IObject>(l)); | public Set findContainerHierarchies(@NotNull Class rootNodeType, @NotNull @Validate(Long.class) Set imageIds, Map options) { PojoOptions po = new PojoOptions(options); Query q = queryFactory.lookup( PojosFindHierarchiesQueryDefinition.class.getName(), new Parameters() .addClass(rootNodeType) .addIds(imageIds) .addOptions(po.map())); List l = (List) iQuery.execute(q); collectCounts(l,po); // // Destructive changes below this point. // for (Object object : l) { iQuery.evict(object); } // TODO; this if-else statement could be removed if Transformations // did their own dispatching // TODO: logging, null checking. daos should never return null // TODO then size! if (Project.class.equals(rootNodeType)) { if (imageIds.size()==0){ return new HashSet(); } return HierarchyTransformations.invertPDI(new HashSet(l)); } else if (CategoryGroup.class.equals(rootNodeType)){ if (imageIds.size()==0){ return new HashSet(); } return HierarchyTransformations.invertCGCI(new HashSet(l)); } else {throw new IllegalArgumentException( // TODO refactor. move this up. "Class parameter for findContainerHierarchies() must be" + " in {Project,CategoryGroup}, not " + rootNodeType); } } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/fd4ebf312d4496f33d02000802e6f781368d1dac/PojosImpl.java/clean/components/server/src/ome/logic/PojosImpl.java |
return HierarchyTransformations.invertCGCI(new HashSet(l)); | return HierarchyTransformations.invertCGCI(new HashSet<IObject>(l)); | public Set findContainerHierarchies(@NotNull Class rootNodeType, @NotNull @Validate(Long.class) Set imageIds, Map options) { PojoOptions po = new PojoOptions(options); Query q = queryFactory.lookup( PojosFindHierarchiesQueryDefinition.class.getName(), new Parameters() .addClass(rootNodeType) .addIds(imageIds) .addOptions(po.map())); List l = (List) iQuery.execute(q); collectCounts(l,po); // // Destructive changes below this point. // for (Object object : l) { iQuery.evict(object); } // TODO; this if-else statement could be removed if Transformations // did their own dispatching // TODO: logging, null checking. daos should never return null // TODO then size! if (Project.class.equals(rootNodeType)) { if (imageIds.size()==0){ return new HashSet(); } return HierarchyTransformations.invertPDI(new HashSet(l)); } else if (CategoryGroup.class.equals(rootNodeType)){ if (imageIds.size()==0){ return new HashSet(); } return HierarchyTransformations.invertCGCI(new HashSet(l)); } else {throw new IllegalArgumentException( // TODO refactor. move this up. "Class parameter for findContainerHierarchies() must be" + " in {Project,CategoryGroup}, not " + rootNodeType); } } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/fd4ebf312d4496f33d02000802e6f781368d1dac/PojosImpl.java/clean/components/server/src/ome/logic/PojosImpl.java |
Query q = queryFactory.lookup( | Query<List<IObject>> q = queryFactory.lookup( | public Set getImages(@NotNull Class rootNodeType, @NotNull @Validate(Long.class) Set rootNodeIds, Map options) { if (rootNodeIds.size()==0){ return new HashSet(); } PojoOptions po = new PojoOptions(options); Query q = queryFactory.lookup( PojosGetImagesQueryDefinition.class.getName(), new Parameters() .addIds(rootNodeIds) .addClass(rootNodeType) .addOptions(po.map())); List l = (List) iQuery.execute(q); collectCounts(l,po); return new HashSet(l); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/fd4ebf312d4496f33d02000802e6f781368d1dac/PojosImpl.java/clean/components/server/src/ome/logic/PojosImpl.java |
List l = (List) iQuery.execute(q); | List<IObject> l = iQuery.execute(q); | public Set getImages(@NotNull Class rootNodeType, @NotNull @Validate(Long.class) Set rootNodeIds, Map options) { if (rootNodeIds.size()==0){ return new HashSet(); } PojoOptions po = new PojoOptions(options); Query q = queryFactory.lookup( PojosGetImagesQueryDefinition.class.getName(), new Parameters() .addIds(rootNodeIds) .addClass(rootNodeType) .addOptions(po.map())); List l = (List) iQuery.execute(q); collectCounts(l,po); return new HashSet(l); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/fd4ebf312d4496f33d02000802e6f781368d1dac/PojosImpl.java/clean/components/server/src/ome/logic/PojosImpl.java |
return new HashSet(l); | return new HashSet<IObject>(l); | public Set getImages(@NotNull Class rootNodeType, @NotNull @Validate(Long.class) Set rootNodeIds, Map options) { if (rootNodeIds.size()==0){ return new HashSet(); } PojoOptions po = new PojoOptions(options); Query q = queryFactory.lookup( PojosGetImagesQueryDefinition.class.getName(), new Parameters() .addIds(rootNodeIds) .addClass(rootNodeType) .addOptions(po.map())); List l = (List) iQuery.execute(q); collectCounts(l,po); return new HashSet(l); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/fd4ebf312d4496f33d02000802e6f781368d1dac/PojosImpl.java/clean/components/server/src/ome/logic/PojosImpl.java |
Query q = queryFactory.lookup(" select i from Image i " + | Query<List<Image>> q = queryFactory.lookup(" select i from Image i " + | public Set getUserImages(Map options) { PojoOptions po = new PojoOptions(options); if (!po.isExperimenter() ) { // FIXME && !po.isGroup()){ throw new IllegalArgumentException( "experimenter or group option " + "is required for getUserImages()."); } Query q = queryFactory.lookup(" select i from Image i " + "where i.details.owner.id = :id ", new Parameters() .addId( po.getExperimenter())); List l = (List) iQuery.execute(q); collectCounts(l,po); return new HashSet(l); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/fd4ebf312d4496f33d02000802e6f781368d1dac/PojosImpl.java/clean/components/server/src/ome/logic/PojosImpl.java |
List l = (List) iQuery.execute(q); | List<Image> l = iQuery.execute(q); | public Set getUserImages(Map options) { PojoOptions po = new PojoOptions(options); if (!po.isExperimenter() ) { // FIXME && !po.isGroup()){ throw new IllegalArgumentException( "experimenter or group option " + "is required for getUserImages()."); } Query q = queryFactory.lookup(" select i from Image i " + "where i.details.owner.id = :id ", new Parameters() .addId( po.getExperimenter())); List l = (List) iQuery.execute(q); collectCounts(l,po); return new HashSet(l); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/fd4ebf312d4496f33d02000802e6f781368d1dac/PojosImpl.java/clean/components/server/src/ome/logic/PojosImpl.java |
return new HashSet(l); | return new HashSet<Image>(l); | public Set getUserImages(Map options) { PojoOptions po = new PojoOptions(options); if (!po.isExperimenter() ) { // FIXME && !po.isGroup()){ throw new IllegalArgumentException( "experimenter or group option " + "is required for getUserImages()."); } Query q = queryFactory.lookup(" select i from Image i " + "where i.details.owner.id = :id ", new Parameters() .addId( po.getExperimenter())); List l = (List) iQuery.execute(q); collectCounts(l,po); return new HashSet(l); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/fd4ebf312d4496f33d02000802e6f781368d1dac/PojosImpl.java/clean/components/server/src/ome/logic/PojosImpl.java |
Query q = queryFactory.lookup( | Query<List<IObject>> q = queryFactory.lookup( | public Set loadContainerHierarchy(Class rootNodeType, @Validate(Long.class) Set rootNodeIds, Map options) { PojoOptions po = new PojoOptions(options); if (null==rootNodeIds && !po.isExperimenter()) throw new IllegalArgumentException( "Set of ids for loadContainerHierarchy() may not be null " + "if experimenter and group options are null."); if (! Project.class.equals(rootNodeType) && ! Dataset.class.equals(rootNodeType) && ! CategoryGroup.class.equals(rootNodeType) && ! Category.class.equals(rootNodeType)) throw new IllegalArgumentException( "Class parameter for loadContainerIHierarchy() must be in " + "{Project,Dataset,Category,CategoryGroup}, not " + rootNodeType); Query q = queryFactory.lookup( PojosLoadHierarchyQueryDefinition.class.getName(), new Parameters() .addClass(rootNodeType) .addIds(rootNodeIds) .addOptions(po.map())); //TODO no more "options" just QPs. List l = (List) iQuery.execute(q); collectCounts(l, po); return new HashSet(l); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/fd4ebf312d4496f33d02000802e6f781368d1dac/PojosImpl.java/clean/components/server/src/ome/logic/PojosImpl.java |
List l = (List) iQuery.execute(q); | List<IObject> l = iQuery.execute(q); | public Set loadContainerHierarchy(Class rootNodeType, @Validate(Long.class) Set rootNodeIds, Map options) { PojoOptions po = new PojoOptions(options); if (null==rootNodeIds && !po.isExperimenter()) throw new IllegalArgumentException( "Set of ids for loadContainerHierarchy() may not be null " + "if experimenter and group options are null."); if (! Project.class.equals(rootNodeType) && ! Dataset.class.equals(rootNodeType) && ! CategoryGroup.class.equals(rootNodeType) && ! Category.class.equals(rootNodeType)) throw new IllegalArgumentException( "Class parameter for loadContainerIHierarchy() must be in " + "{Project,Dataset,Category,CategoryGroup}, not " + rootNodeType); Query q = queryFactory.lookup( PojosLoadHierarchyQueryDefinition.class.getName(), new Parameters() .addClass(rootNodeType) .addIds(rootNodeIds) .addOptions(po.map())); //TODO no more "options" just QPs. List l = (List) iQuery.execute(q); collectCounts(l, po); return new HashSet(l); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/fd4ebf312d4496f33d02000802e6f781368d1dac/PojosImpl.java/clean/components/server/src/ome/logic/PojosImpl.java |
return new HashSet(l); | return new HashSet<IObject>(l); | public Set loadContainerHierarchy(Class rootNodeType, @Validate(Long.class) Set rootNodeIds, Map options) { PojoOptions po = new PojoOptions(options); if (null==rootNodeIds && !po.isExperimenter()) throw new IllegalArgumentException( "Set of ids for loadContainerHierarchy() may not be null " + "if experimenter and group options are null."); if (! Project.class.equals(rootNodeType) && ! Dataset.class.equals(rootNodeType) && ! CategoryGroup.class.equals(rootNodeType) && ! Category.class.equals(rootNodeType)) throw new IllegalArgumentException( "Class parameter for loadContainerIHierarchy() must be in " + "{Project,Dataset,Category,CategoryGroup}, not " + rootNodeType); Query q = queryFactory.lookup( PojosLoadHierarchyQueryDefinition.class.getName(), new Parameters() .addClass(rootNodeType) .addIds(rootNodeIds) .addOptions(po.map())); //TODO no more "options" just QPs. List l = (List) iQuery.execute(q); collectCounts(l, po); return new HashSet(l); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/fd4ebf312d4496f33d02000802e6f781368d1dac/PojosImpl.java/clean/components/server/src/ome/logic/PojosImpl.java |
if (q != null ) break; | public Query lookup(String queryID, QueryParameter...qps) { Query q = null; for (QuerySource source : sources) { q = source.lookup(queryID, qps); } if (q == null) throw new QueryException("No query found for queryID="+queryID); return q; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0b36a8e77f5bacb7e122d76ffce01866205b09d7/QueryFactory.java/buggy/components/server/src/ome/services/query/QueryFactory.java |
|
public Integer getExperimenter(){ return (Integer) options.get(EXPERIMENTER); | public Long getExperimenter(){ return (Long) options.get(EXPERIMENTER); | public Integer getExperimenter(){ return (Integer) options.get(EXPERIMENTER); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0b36a8e77f5bacb7e122d76ffce01866205b09d7/PojoOptions.java/buggy/components/common/src/ome/util/builders/PojoOptions.java |
copyResourceFromJar("percentagesorttype.js", jsOutputDir); | copyResourceFromJar("customsorttypes.js", jsOutputDir); | public static void copy(File destinationDir) throws IOException { File cssOutputDir = new File(destinationDir, "css"); File imagesOutputDir = new File(destinationDir, "images"); File jsOutputDir = new File(destinationDir, "js"); destinationDir.mkdirs(); cssOutputDir.mkdir(); imagesOutputDir.mkdir(); jsOutputDir.mkdir(); copyResourceFromJar("help.css", cssOutputDir); copyResourceFromJar("main.css", cssOutputDir); copyResourceFromJar("sortabletable.css", cssOutputDir); copyResourceFromJar("source-viewer.css", cssOutputDir); copyResourceFromJar("tooltip.css", cssOutputDir); copyResourceFromJar("blank.png", imagesOutputDir); copyResourceFromJar("downsimple.png", imagesOutputDir); copyResourceFromJar("upsimple.png", imagesOutputDir); //copyResourceFromJar("numberksorttype.js", jsOutputDir); copyResourceFromJar("percentagesorttype.js", jsOutputDir); copyResourceFromJar("popup.js", jsOutputDir); copyResourceFromJar("sortabletable.js", jsOutputDir); copyResourceFromJar("stringbuilder.js", jsOutputDir); //copyResourceFromJar("uscurrencysorttype.js", jsOutputDir); copyResourceFromJar("help.html", destinationDir); copyResourceFromJar("index.html", destinationDir); } | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/8aa2b024b47f24f410d25e5d8eb53673520a571e/CopyFiles.java/buggy/cobertura/src/net/sourceforge/cobertura/reporting/html/files/CopyFiles.java |
public static void copy(File destinationDir) throws IOException { File cssOutputDir = new File(destinationDir, "css"); File imagesOutputDir = new File(destinationDir, "images"); File jsOutputDir = new File(destinationDir, "js"); destinationDir.mkdirs(); cssOutputDir.mkdir(); imagesOutputDir.mkdir(); jsOutputDir.mkdir(); copyResourceFromJar("help.css", cssOutputDir); copyResourceFromJar("main.css", cssOutputDir); copyResourceFromJar("sortabletable.css", cssOutputDir); copyResourceFromJar("source-viewer.css", cssOutputDir); copyResourceFromJar("tooltip.css", cssOutputDir); copyResourceFromJar("blank.png", imagesOutputDir); copyResourceFromJar("downsimple.png", imagesOutputDir); copyResourceFromJar("upsimple.png", imagesOutputDir); //copyResourceFromJar("numberksorttype.js", jsOutputDir); copyResourceFromJar("percentagesorttype.js", jsOutputDir); copyResourceFromJar("popup.js", jsOutputDir); copyResourceFromJar("sortabletable.js", jsOutputDir); copyResourceFromJar("stringbuilder.js", jsOutputDir); //copyResourceFromJar("uscurrencysorttype.js", jsOutputDir); copyResourceFromJar("help.html", destinationDir); copyResourceFromJar("index.html", destinationDir); } | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/8aa2b024b47f24f410d25e5d8eb53673520a571e/CopyFiles.java/buggy/cobertura/src/net/sourceforge/cobertura/reporting/html/files/CopyFiles.java |
||
protected DataLoader createHierarchyLoader() | protected DataLoader createHierarchyLoader(boolean refresh) | protected DataLoader createHierarchyLoader() { return new CategoryLoader(component, categoriesID); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/fb3743d6f75abbf12f788b3b2925f4a6f4606dd6/CategoryModel.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/view/CategoryModel.java |
return new CategoryLoader(component, categoriesID); | return new CategoryLoader(component, categoriesID, refresh); | protected DataLoader createHierarchyLoader() { return new CategoryLoader(component, categoriesID); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/fb3743d6f75abbf12f788b3b2925f4a6f4606dd6/CategoryModel.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/view/CategoryModel.java |
if (files.isEmpty()) { logger.warn("Cannot find files to compute CCN, file=" + file.getAbsolutePath() + ", recursive=" + recursive); return 0; } | public static double getCCN(File file, boolean recursive) { int ccnAccumulator = 0; Vector files = getListOfFiles(file, recursive); Javancss javancss = new Javancss(files); List functionMetrics = javancss.getFunctionMetrics(); if (functionMetrics.size() <= 0) return 0; Iterator iter = functionMetrics.iterator(); while (iter.hasNext()) { Vector functionMetric = (Vector)iter.next(); ccnAccumulator += ((Integer)functionMetric .elementAt(JavancssConstants.FCT_CCN)).intValue(); } return (double)ccnAccumulator / functionMetrics.size(); } | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/b835deaf32c5d0bfc7d71c944e10db775b72525e/Util.java/clean/cobertura/src/net/sourceforge/cobertura/reporting/Util.java |
|
File[] files = file.listFiles(new FileFilter() { public boolean accept(File pathname) { return pathname.getAbsolutePath().endsWith(".java"); } | File[] files = file.listFiles(new FileFilter() { public boolean accept(File pathname) { return pathname.isDirectory() || pathname.getAbsolutePath().endsWith(".java"); } | private static Vector getListOfFiles(File file, boolean recursive) { Vector ret = new Vector(); if (file.isFile()) { ret.add(file.getAbsolutePath()); } else if (file.isDirectory()) { File[] files = file.listFiles(new FileFilter() { public boolean accept(File pathname) { return pathname.getAbsolutePath().endsWith(".java"); } }); for (int i = 0; i < files.length; i++) { if (recursive) { ret.addAll(getListOfFiles(files[i], true)); } else { if (files[i].isFile()) { ret.add(files[i].getAbsolutePath()); } } } } return ret; } | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/b835deaf32c5d0bfc7d71c944e10db775b72525e/Util.java/clean/cobertura/src/net/sourceforge/cobertura/reporting/Util.java |
private static Vector getListOfFiles(File file, boolean recursive) { Vector ret = new Vector(); if (file.isFile()) { ret.add(file.getAbsolutePath()); } else if (file.isDirectory()) { File[] files = file.listFiles(new FileFilter() { public boolean accept(File pathname) { return pathname.getAbsolutePath().endsWith(".java"); } }); for (int i = 0; i < files.length; i++) { if (recursive) { ret.addAll(getListOfFiles(files[i], true)); } else { if (files[i].isFile()) { ret.add(files[i].getAbsolutePath()); } } } } return ret; } | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/b835deaf32c5d0bfc7d71c944e10db775b72525e/Util.java/clean/cobertura/src/net/sourceforge/cobertura/reporting/Util.java |
||
public boolean accept(File pathname) { return pathname.getAbsolutePath().endsWith(".java"); } | public boolean accept(File pathname) { return pathname.isDirectory() || pathname.getAbsolutePath().endsWith(".java"); } | public boolean accept(File pathname) { return pathname.getAbsolutePath().endsWith(".java"); } | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/b835deaf32c5d0bfc7d71c944e10db775b72525e/Util.java/clean/cobertura/src/net/sourceforge/cobertura/reporting/Util.java |
protected void clearHighlights() { if (lastEntered != null) { lastEntered.setParamsHighlighted(false); ChainModuleData mod = lastEntered.getModule(); if (mod != null) mod.setModulesHighlighted(false); } } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/af6851e1ac523a9ca1356742c9cd4a2dd8fe6497/ModuleNodeEventHandler.java/buggy/SRC/org/openmicroscopy/shoola/agents/chainbuilder/piccolo/ModuleNodeEventHandler.java |
||
throw new UnsatisfiedConditionsException("Unsatisfied start conditions", serviceName, conditions); | throw new UnsatisfiedConditionsException("Unsatisfied stop conditions", serviceName, conditions); | public boolean waitForUnsatisfiedConditions(ServiceName serviceName, Set conditions) throws UnsatisfiedConditionsException { throw new UnsatisfiedConditionsException("Unsatisfied start conditions", serviceName, conditions); } | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/ef30cf835921549233baff678c6b1324c148c927/StopStrategies.java/clean/kernel/src/java/org/gbean/kernel/StopStrategies.java |
this.unsatisfiedConditions = unsatisfiedConditions; | this.unsatisfiedConditions = Collections.unmodifiableSet(unsatisfiedConditions); | public ForcedStopException(ServiceName serviceName, Set unsatisfiedConditions) { super("Forced stop and ignored unsatisfied conditons:" + " serviceName=" + serviceName + ", unsatisfiedConditions=" + unsatisfiedConditions); this.serviceName = serviceName; this.unsatisfiedConditions = unsatisfiedConditions; } | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/e4a9cb81c5b1bfeb724fd5cb9f7325ab7867ae4b/ForcedStopException.java/buggy/kernel/src/java/org/gbean/kernel/ForcedStopException.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.