rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
{ List pSummaries = agentCtrl.getUserProjects(); DefaultTreeModel treeModel = (DefaultTreeModel) view.tree.getModel(); root.removeAllChildren(); if (pSummaries != null) { Iterator i = pSummaries.iterator(); ProjectSummary ps; DefaultMutableTreeNode pNode; while (i.hasNext()) { ps = (ProjectSummary) i.next(); pNode = ne...
{ List pSummaries = agentCtrl.getUserProjects(); DefaultTreeModel treeModel = (DefaultTreeModel) view.tree.getModel(); root.removeAllChildren(); if (pSummaries != null && pSummaries.size() !=0 ) { Iterator i = pSummaries.iterator(); ProjectSummary ps; DefaultMutableTreeNode pNode; while (i.hasNext()) { ps = (ProjectSu...
void rebuildTree() { List pSummaries = agentCtrl.getUserProjects(); DefaultTreeModel treeModel = (DefaultTreeModel) view.tree.getModel(); root.removeAllChildren(); if (pSummaries != null) { Iterator i = pSummaries.iterator(); ProjectSummary ps; DefaultMutableTreeNode pNode; while (i.hasNext()) { ps = (P...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0f6adad8d8ff39bdd3e4f95c09c34b2489329435/ExplorerPaneManager.java/clean/SRC/org/openmicroscopy/shoola/agents/datamng/ExplorerPaneManager.java
if (cDNodes == null) return;
if (cDNodes.size() == 0) return;
void refreshDatasetInTree(DatasetSummary ds) { if (cDNodes == null) return; List nodes = (List) cDNodes.get(new Integer(ds.getID())); if (nodes == null) return; Iterator i = nodes.iterator(); DefaultTreeModel treeModel = (DefaultTreeModel) view.tree.getModel(); DefaultMu...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0f6adad8d8ff39bdd3e4f95c09c34b2489329435/ExplorerPaneManager.java/clean/SRC/org/openmicroscopy/shoola/agents/datamng/ExplorerPaneManager.java
void refreshDatasetInTree(DatasetSummary ds) { if (cDNodes == null) return; List nodes = (List) cDNodes.get(new Integer(ds.getID())); if (nodes == null) return; Iterator i = nodes.iterator(); DefaultTreeModel treeModel = (DefaultTreeModel) view.tree.getModel(); DefaultMu...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0f6adad8d8ff39bdd3e4f95c09c34b2489329435/ExplorerPaneManager.java/clean/SRC/org/openmicroscopy/shoola/agents/datamng/ExplorerPaneManager.java
DefaultMutableTreeNode parent) { view.tree.expandPath(new TreePath(parent.getPath())); view.tree.scrollPathToVisible(new TreePath(child.getPath())); }
DefaultMutableTreeNode parent) { view.tree.expandPath(new TreePath(parent.getPath())); view.tree.scrollPathToVisible(new TreePath(child.getPath())); }
private void setNodeVisible(DefaultMutableTreeNode child, DefaultMutableTreeNode parent) { view.tree.expandPath(new TreePath(parent.getPath())); view.tree.scrollPathToVisible(new TreePath(child.getPath())); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0f6adad8d8ff39bdd3e4f95c09c34b2489329435/ExplorerPaneManager.java/clean/SRC/org/openmicroscopy/shoola/agents/datamng/ExplorerPaneManager.java
{ DefaultTreeModel treeModel = (DefaultTreeModel) view.tree.getModel(); DefaultMutableTreeNode pNode; List pSummaries = agentCtrl.getUserProjects(); if (pSummaries != null) { Iterator j = pSummaries.iterator(); ProjectSummary ps; while (j.hasNext()) { ps = (ProjectSummary) j.next(); pNode = (DefaultMutableTreeNode)
{ DefaultTreeModel treeModel = (DefaultTreeModel) view.tree.getModel(); DefaultMutableTreeNode pNode; List pSummaries = agentCtrl.getUserProjects(); if (pSummaries != null) { Iterator j = pSummaries.iterator(); ProjectSummary ps; while (j.hasNext()) { ps = (ProjectSummary) j.next(); pNode = (DefaultMutableTreeNode)
void updateDatasetInTree() { DefaultTreeModel treeModel = (DefaultTreeModel) view.tree.getModel(); DefaultMutableTreeNode pNode; List pSummaries = agentCtrl.getUserProjects(); if (pSummaries != null) { Iterator j = pSummaries.iterator(); ProjectSummary ps; while (j.hasNext()) { ps = (ProjectSum...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0f6adad8d8ff39bdd3e4f95c09c34b2489329435/ExplorerPaneManager.java/clean/SRC/org/openmicroscopy/shoola/agents/datamng/ExplorerPaneManager.java
pNode.removeAllChildren(); addDatasets(ps.getDatasets(), pNode, false); treeModel.reload(pNode); } } }
pNode.removeAllChildren(); addDatasets(ps.getDatasets(), pNode, false); treeModel.reload(pNode); } } }
void updateDatasetInTree() { DefaultTreeModel treeModel = (DefaultTreeModel) view.tree.getModel(); DefaultMutableTreeNode pNode; List pSummaries = agentCtrl.getUserProjects(); if (pSummaries != null) { Iterator j = pSummaries.iterator(); ProjectSummary ps; while (j.hasNext()) { ps = (ProjectSum...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0f6adad8d8ff39bdd3e4f95c09c34b2489329435/ExplorerPaneManager.java/clean/SRC/org/openmicroscopy/shoola/agents/datamng/ExplorerPaneManager.java
if (cDNodes != null) { Iterator i = cDNodes.keySet().iterator(); Iterator j; DefaultMutableTreeNode dNode; List dNodes, images; Integer datasetID; updateImagesInDataset(is); while (i.hasNext()) { datasetID = (Integer) i.next(); images = (List) imagesInDataset.get(datasetID); dNodes = (List) cDNodes.get(datasetID); j ...
if (cDNodes.size() == 0) return; Iterator i = cDNodes.keySet().iterator(); Iterator j; DefaultMutableTreeNode dNode; List dNodes, images; Integer datasetID; updateImagesInDataset(is); while (i.hasNext()) { datasetID = (Integer) i.next(); images = (List) imagesInDataset.get(datasetID); dNodes = (List) cDNodes.get(data...
void updateImageInTree(ImageSummary is) { DefaultTreeModel treeModel = (DefaultTreeModel) view.tree.getModel(); if (cDNodes != null) { Iterator i = cDNodes.keySet().iterator(); Iterator j; DefaultMutableTreeNode dNode; List dNodes, images; Inte...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0f6adad8d8ff39bdd3e4f95c09c34b2489329435/ExplorerPaneManager.java/clean/SRC/org/openmicroscopy/shoola/agents/datamng/ExplorerPaneManager.java
{ Iterator i = imagesInDataset.keySet().iterator(); Iterator j; List images; ImageSummary is; while (i.hasNext()) { images = (List) imagesInDataset.get(i.next()); j = images.iterator(); while (j.hasNext()) { is = (ImageSummary) j.next(); if (is.getID() == retVal.getID()) { is.setName(retVal.getName()); break; } } } }
{ Iterator i = imagesInDataset.keySet().iterator(); Iterator j; List images; ImageSummary is; while (i.hasNext()) { images = (List) imagesInDataset.get(i.next()); j = images.iterator(); while (j.hasNext()) { is = (ImageSummary) j.next(); if (is.getID() == retVal.getID()) { is.setName(retVal.getName()); break; } } } }
private void updateImagesInDataset(ImageSummary retVal) { Iterator i = imagesInDataset.keySet().iterator(); Iterator j; List images; ImageSummary is; while (i.hasNext()) { images = (List) imagesInDataset.get(i.next()); j = images.iterator(); while (j.hasNext()) { is = (ImageSummary) j.next(); if (is.g...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0f6adad8d8ff39bdd3e4f95c09c34b2489329435/ExplorerPaneManager.java/clean/SRC/org/openmicroscopy/shoola/agents/datamng/ExplorerPaneManager.java
{ DefaultTreeModel treeModel = (DefaultTreeModel) view.tree.getModel(); DefaultMutableTreeNode pNode; List pSummaries = agentCtrl.getUserProjects(); if (pSummaries != null) { Iterator j = pSummaries.iterator(); ProjectSummary ps; Integer projectID; while (j.hasNext()) { ps = (ProjectSummary) j.next(); projectID = new I...
{ DefaultTreeModel treeModel = (DefaultTreeModel) view.tree.getModel(); DefaultMutableTreeNode pNode; List pSummaries = agentCtrl.getUserProjects(); if (pSummaries != null) { Iterator j = pSummaries.iterator(); ProjectSummary ps; Integer projectID; while (j.hasNext()) { ps = (ProjectSummary) j.next(); projectID = new I...
void updateProjectInTree() { DefaultTreeModel treeModel = (DefaultTreeModel) view.tree.getModel(); DefaultMutableTreeNode pNode; List pSummaries = agentCtrl.getUserProjects(); if (pSummaries != null) { Iterator j = pSummaries.iterator(); ProjectSummary ps; Integer projectID; while (j.hasNext()) {...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0f6adad8d8ff39bdd3e4f95c09c34b2489329435/ExplorerPaneManager.java/clean/SRC/org/openmicroscopy/shoola/agents/datamng/ExplorerPaneManager.java
if( usrObj instanceof ProjectSummary || usrObj instanceof DatasetSummary || usrObj instanceof ImageSummary )
if (usrObj instanceof ProjectSummary || usrObj instanceof DatasetSummary || usrObj instanceof ImageSummary)
DataObject getCurrentOMEObject() { DataObject target = null; DefaultMutableTreeNode node = (DefaultMutableTreeNode) tree.getLastSelectedPathComponent(); if (node != null) { Object usrObj = node.getUserObject(); if( usrObj instanceof ProjectSummary || usrObj instanceof DatasetSummary || usrOb...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/6ec05530173229b43c3f21f0021b71fd776dd63c/ExplorerPane.java/buggy/SRC/org/openmicroscopy/shoola/agents/datamng/ExplorerPane.java
TinyWindowUI(TinyWindow window, BufferedImage image)
public TinyWindowUI(TinyWindow window, BufferedImage image)
TinyWindowUI(TinyWindow window, BufferedImage image) { if (window == null) throw new NullPointerException("No window."); this.window = window; titleBar = new TitleBar(window.getTitle()); canvas = new ThumbnailCanvas(image); makeBorders(); makeComponentsSize(image); ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/11fc11c4e769e382f5279d4e21088d468940d1b6/TinyWindowUI.java/clean/SRC/org/openmicroscopy/shoola/agents/hiviewer/twindow/TinyWindowUI.java
void attachMouseListener(MouseListener controller)
public void attachMouseListener(MouseListener controller)
void attachMouseListener(MouseListener controller) { titleBar.addMouseListener(controller); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/11fc11c4e769e382f5279d4e21088d468940d1b6/TinyWindowUI.java/clean/SRC/org/openmicroscopy/shoola/agents/hiviewer/twindow/TinyWindowUI.java
public Experimenter(Integer attributeId, String omeName, String email, String firstname, String password, String dataDir, String lastname, String institution, org.openmicroscopy.omero.model.Group group, org.openmicroscopy.omero.model.ModuleExecution moduleExecution, Set datasets, Set groupsByLeader, Set groupsByContact...
public Experimenter() {
public Experimenter(Integer attributeId, String omeName, String email, String firstname, String password, String dataDir, String lastname, String institution, org.openmicroscopy.omero.model.Group group, org.openmicroscopy.omero.model.ModuleExecution moduleExecution, Set datasets, Set groupsByLeader, Set groupsByCon...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/Experimenter.java/clean/components/common/src/org/openmicroscopy/omero/model/Experimenter.java
public org.openmicroscopy.omero.model.Group getGroup() {
public Group getGroup() {
public org.openmicroscopy.omero.model.Group getGroup() { return this.group; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/Experimenter.java/clean/components/common/src/org/openmicroscopy/omero/model/Experimenter.java
public org.openmicroscopy.omero.model.ModuleExecution getModuleExecution() {
public ModuleExecution getModuleExecution() {
public org.openmicroscopy.omero.model.ModuleExecution getModuleExecution() { return this.moduleExecution; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/Experimenter.java/clean/components/common/src/org/openmicroscopy/omero/model/Experimenter.java
public void setGroup(org.openmicroscopy.omero.model.Group group) {
public void setGroup(Group group) {
public void setGroup(org.openmicroscopy.omero.model.Group group) { this.group = group; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/Experimenter.java/clean/components/common/src/org/openmicroscopy/omero/model/Experimenter.java
public void setModuleExecution(org.openmicroscopy.omero.model.ModuleExecution moduleExecution) {
public void setModuleExecution(ModuleExecution moduleExecution) {
public void setModuleExecution(org.openmicroscopy.omero.model.ModuleExecution moduleExecution) { this.moduleExecution = moduleExecution; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/Experimenter.java/clean/components/common/src/org/openmicroscopy/omero/model/Experimenter.java
if (blockVar != null) { if (blockVar instanceof ZeroArgNode) { if (yieldProc && arrayLength(value) != 0) { throw runtime.newArgumentError("wrong # of arguments(" + ((RubyArray)value).getLength() + "for 0)");
if(blockVar == null) { return new IRubyObject[]{value}; } if (blockVar instanceof ZeroArgNode) { if (yieldProc && arrayLength(value) != 0) { throw runtime.newArgumentError("wrong # of arguments(" + ((RubyArray)value).getLength() + "for 0)"); } } else if (blockVar instanceof MultipleAsgnNode) { if (!aValue) { value =...
private IRubyObject[] getBlockArgs(IRubyObject value, IRubyObject self, boolean yieldProc, boolean aValue, Block currentBlock) { Node blockVar = currentBlock.getVar(); if (blockVar != null) { if (blockVar instanceof ZeroArgNode) { // Better not have arguments for a no-arg blo...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/b87fee1b90fc7a4ff567235e2fc1387d035bbf31/ThreadContext.java/clean/src/org/jruby/runtime/ThreadContext.java
} else if (blockVar instanceof MultipleAsgnNode) { if (!aValue) { value = sValueToMRHS(value, ((MultipleAsgnNode)blockVar).getHeadNode()); }
} else if (value == null) { runtime.getWarnings().warn("multiple values for a block parameter (0 for 1)"); }
private IRubyObject[] getBlockArgs(IRubyObject value, IRubyObject self, boolean yieldProc, boolean aValue, Block currentBlock) { Node blockVar = currentBlock.getVar(); if (blockVar != null) { if (blockVar instanceof ZeroArgNode) { // Better not have arguments for a no-arg blo...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/b87fee1b90fc7a4ff567235e2fc1387d035bbf31/ThreadContext.java/clean/src/org/jruby/runtime/ThreadContext.java
value = mAssign(self, (MultipleAsgnNode)blockVar, (RubyArray)value, yieldProc); } else { if (aValue) { int length = arrayLength(value); if (length == 0) { value = runtime.getNil(); } else if (length == 1) { value = ((RubyArray)value).first(IRubyObject.NULL_ARRAY); } else { } } else if (value == null) { } Assignm...
AssignmentVisitor.assign(this, getFrameSelf(), blockVar, value, yieldProc);
private IRubyObject[] getBlockArgs(IRubyObject value, IRubyObject self, boolean yieldProc, boolean aValue, Block currentBlock) { Node blockVar = currentBlock.getVar(); if (blockVar != null) { if (blockVar instanceof ZeroArgNode) { // Better not have arguments for a no-arg blo...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/b87fee1b90fc7a4ff567235e2fc1387d035bbf31/ThreadContext.java/clean/src/org/jruby/runtime/ThreadContext.java
IRubyObject[] args = ArgsUtil.arrayify(value); return args;
return ArgsUtil.arrayify(value);
private IRubyObject[] getBlockArgs(IRubyObject value, IRubyObject self, boolean yieldProc, boolean aValue, Block currentBlock) { Node blockVar = currentBlock.getVar(); if (blockVar != null) { if (blockVar instanceof ZeroArgNode) { // Better not have arguments for a no-arg blo...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/b87fee1b90fc7a4ff567235e2fc1387d035bbf31/ThreadContext.java/clean/src/org/jruby/runtime/ThreadContext.java
public SourcePositionFactory() { }
public SourcePositionFactory(LexerSource source) { this.source = source; }
public SourcePositionFactory() { }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/b1293eda8454686e846e2a9837b348e2983bb423/SourcePositionFactory.java/buggy/src/org/jruby/lexer/yacc/SourcePositionFactory.java
return new SourcePosition("", -1, -1, 0, 0);
return new SourcePosition("", -1, -1, 0, 0);
public ISourcePosition getDummyPosition() { return new SourcePosition("", -1, -1, 0, 0); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/b1293eda8454686e846e2a9837b348e2983bb423/SourcePositionFactory.java/buggy/src/org/jruby/lexer/yacc/SourcePositionFactory.java
public RaiseException newNameError(String message);
public RaiseException newNameError(String message, String name);
public RaiseException newNameError(String message);
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1278c5bb3507a052d150d814f15453542ae41aed/IRuby.java/buggy/src/org/jruby/IRuby.java
public CreateDatasetEditorManager(CreateDatasetEditor view, DataManagerCtrl control,
CreateDatasetEditorManager(CreateDatasetEditor view, DataManagerCtrl agentCtrl,
public CreateDatasetEditorManager(CreateDatasetEditor view, DataManagerCtrl control, DatasetData model, List projects) { this.control = control; this.view = view; this.model = model; selectionIndex = -1; this.projects = projects; imagesToAdd = new ArrayList(); projectsToAdd = new Arra...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a82d641ae8b6aae180291dcfe5e2b1c45e55ea11/CreateDatasetEditorManager.java/buggy/SRC/org/openmicroscopy/shoola/agents/datamng/editors/dataset/CreateDatasetEditorManager.java
this.control = control;
this.agentCtrl = agentCtrl;
public CreateDatasetEditorManager(CreateDatasetEditor view, DataManagerCtrl control, DatasetData model, List projects) { this.control = control; this.view = view; this.model = model; selectionIndex = -1; this.projects = projects; imagesToAdd = new ArrayList(); projectsToAdd = new Arra...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a82d641ae8b6aae180291dcfe5e2b1c45e55ea11/CreateDatasetEditorManager.java/buggy/SRC/org/openmicroscopy/shoola/agents/datamng/editors/dataset/CreateDatasetEditorManager.java
showImages();
showImages(); break; case IMAGES_SELECTION: bringSelector(e); break;
public void actionPerformed(ActionEvent e) { int index = -1; try { index = Integer.parseInt(e.getActionCommand()); switch (index) { case SAVE: save(); break; case CANCEL: cancel(); break; case SELECT_PROJECT: selectProject(); break; case RESET_SELECTION_PROJECT: resetSelecti...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a82d641ae8b6aae180291dcfe5e2b1c45e55ea11/CreateDatasetEditorManager.java/buggy/SRC/org/openmicroscopy/shoola/agents/datamng/editors/dataset/CreateDatasetEditorManager.java
attachBoxListeners(view.getImagesSelections(), IMAGES_SELECTION);
void initListeners() { attachButtonListener(view.getSaveButton(), SAVE); attachButtonListener(view.getCancelButton(), CANCEL); attachButtonListener(view.getSelectButton(), SELECT_PROJECT); attachButtonListener(view.getResetProjectButton(), RESET_SELECTION_PROJECT...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a82d641ae8b6aae180291dcfe5e2b1c45e55ea11/CreateDatasetEditorManager.java/buggy/SRC/org/openmicroscopy/shoola/agents/datamng/editors/dataset/CreateDatasetEditorManager.java
UserNotifier un = control.getRegistry().getUserNotifier();
UserNotifier un = agentCtrl.getRegistry().getUserNotifier();
private void save() { if (projectsToAdd.size() == 0) { UserNotifier un = control.getRegistry().getUserNotifier(); un.notifyInfo("Create dataset", "The dataset you wish to create must " + "be added to an existing project."); return; }...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a82d641ae8b6aae180291dcfe5e2b1c45e55ea11/CreateDatasetEditorManager.java/buggy/SRC/org/openmicroscopy/shoola/agents/datamng/editors/dataset/CreateDatasetEditorManager.java
"The dataset you wish to create must " +
"The dataset you want to create must " +
private void save() { if (projectsToAdd.size() == 0) { UserNotifier un = control.getRegistry().getUserNotifier(); un.notifyInfo("Create dataset", "The dataset you wish to create must " + "be added to an existing project."); return; }...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a82d641ae8b6aae180291dcfe5e2b1c45e55ea11/CreateDatasetEditorManager.java/buggy/SRC/org/openmicroscopy/shoola/agents/datamng/editors/dataset/CreateDatasetEditorManager.java
control.addDataset(projectsToAdd, imagesToAdd, model);
agentCtrl.addDataset(projectsToAdd, imagesToAdd, model);
private void save() { if (projectsToAdd.size() == 0) { UserNotifier un = control.getRegistry().getUserNotifier(); un.notifyInfo("Create dataset", "The dataset you wish to create must " + "be added to an existing project."); return; }...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a82d641ae8b6aae180291dcfe5e2b1c45e55ea11/CreateDatasetEditorManager.java/buggy/SRC/org/openmicroscopy/shoola/agents/datamng/editors/dataset/CreateDatasetEditorManager.java
images = control.getImportedImages(); break; case CreateDatasetImagesPane.IMAGES_USED: images = control.getUsedImages(); break;
images = agentCtrl.getImportedImages(); break;
private void showImages() { int selectedIndex = view.getImagesSelections().getSelectedIndex(); if (selectedIndex != selectionIndex) { selectionIndex = selectedIndex; List images = null; switch (selectedIndex) { case CreateDatasetImagesPane.IMAGES_IMPO...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a82d641ae8b6aae180291dcfe5e2b1c45e55ea11/CreateDatasetEditorManager.java/buggy/SRC/org/openmicroscopy/shoola/agents/datamng/editors/dataset/CreateDatasetEditorManager.java
images = control.getGroupImages(); break;
images = agentCtrl.getGroupImages(); break;
private void showImages() { int selectedIndex = view.getImagesSelections().getSelectedIndex(); if (selectedIndex != selectionIndex) { selectionIndex = selectedIndex; List images = null; switch (selectedIndex) { case CreateDatasetImagesPane.IMAGES_IMPO...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a82d641ae8b6aae180291dcfe5e2b1c45e55ea11/CreateDatasetEditorManager.java/buggy/SRC/org/openmicroscopy/shoola/agents/datamng/editors/dataset/CreateDatasetEditorManager.java
images = control.getSystemImages(); break;
images = agentCtrl.getSystemImages(); break;
private void showImages() { int selectedIndex = view.getImagesSelections().getSelectedIndex(); if (selectedIndex != selectionIndex) { selectionIndex = selectedIndex; List images = null; switch (selectedIndex) { case CreateDatasetImagesPane.IMAGES_IMPO...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a82d641ae8b6aae180291dcfe5e2b1c45e55ea11/CreateDatasetEditorManager.java/buggy/SRC/org/openmicroscopy/shoola/agents/datamng/editors/dataset/CreateDatasetEditorManager.java
if (images == null || images.size() == 0) return; view.showImages(images);
displayListImages(images);
private void showImages() { int selectedIndex = view.getImagesSelections().getSelectedIndex(); if (selectedIndex != selectionIndex) { selectionIndex = selectedIndex; List images = null; switch (selectedIndex) { case CreateDatasetImagesPane.IMAGES_IMPO...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a82d641ae8b6aae180291dcfe5e2b1c45e55ea11/CreateDatasetEditorManager.java/buggy/SRC/org/openmicroscopy/shoola/agents/datamng/editors/dataset/CreateDatasetEditorManager.java
.exp(new Integer(3))
.exp(new Long(3))
public void testAllMethods(){ log.info( ob.allCounts() .countsFor(new Integer(1)) .noCounts() .exp(new Integer(3)) .allExps() .noLeaves() .map() ); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0b36a8e77f5bacb7e122d76ffce01866205b09d7/PojoOptionsTest.java/clean/components/common/test/ome/util/utests/PojoOptionsTest.java
public PojoOptions exp(Integer i){
public PojoOptions exp(Long i){
public PojoOptions exp(Integer i){ options.put(EXPERIMENTER,i); return this; }
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
CRefNode savedCref = null;
CRefNode savedCref = ruby.getCRef();
public RubyObject call(Ruby ruby, RubyObject recv, RubyId id, RubyObject[] args, boolean noSuper) { CRefNode savedCref = null; // VALUE[] localVars = null; RubyPointer argsList = new RubyPointer(args); RubyPointer localVarsList = null; ruby.getRubyScope().push(); ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9a05f18f2b6207bf93455d756436fe8f0002b542/ScopeNode.java/clean/org/jruby/nodes/ScopeNode.java
savedCref = ruby.getCRef();
public RubyObject call(Ruby ruby, RubyObject recv, RubyId id, RubyObject[] args, boolean noSuper) { CRefNode savedCref = null; // VALUE[] localVars = null; RubyPointer argsList = new RubyPointer(args); RubyPointer localVarsList = null; ruby.getRubyScope().push(); ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9a05f18f2b6207bf93455d756436fe8f0002b542/ScopeNode.java/clean/org/jruby/nodes/ScopeNode.java
ruby.getCRef().push(module);
ruby.getCRef().push(module);
public RubyObject setupModule(Ruby ruby, RubyModule module) { // Node node = n; String file = ruby.getSourceFile(); int line = ruby.getSourceLine(); // TMP_PROTECT; RubyFrame frame = ruby.getRubyFrame(); frame.setTmp(ruby.getRubyFrame()); ruby...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9a05f18f2b6207bf93455d756436fe8f0002b542/ScopeNode.java/clean/org/jruby/nodes/ScopeNode.java
if (regEx == null || regEx.length() == 0) { UserNotifier un = HiViewerAgent.getRegistry().getUserNotifier(); un.notifyInfo("Search", "No phrase to find."); return; }
private void performSearch() { try { int index = view.getSearchType(); String regEx = view.getSearchValue(); Pattern p = RegExFactory.createCaseInsensitivePattern(regEx); FindRegExCmd cmd = new FindRegExCmd(view.model.getParentModel(), ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/3feec30057da68977528d8509d07bff5c080fb40/CBSearchTabViewMng.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/clipboard/CBSearchTabViewMng.java
public FindRegExCmd(HiViewer model, String regEx, int index)
public FindRegExCmd(HiViewer model, Pattern pattern, int index)
public FindRegExCmd(HiViewer model, String regEx, int index) { if (model == null) throw new IllegalArgumentException("No model."); if (regEx == null) throw new IllegalArgumentException("No regular expression."); if (!checkIndex(index)) throw new IllegalArgume...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0c7517f5d0ece413452f58f3f0a071be2ccbee2e/FindRegExCmd.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/cmd/FindRegExCmd.java
if (regEx == null) throw new IllegalArgumentException("No regular expression.");
if (pattern == null) throw new IllegalArgumentException("No pattern.");
public FindRegExCmd(HiViewer model, String regEx, int index) { if (model == null) throw new IllegalArgumentException("No model."); if (regEx == null) throw new IllegalArgumentException("No regular expression."); if (!checkIndex(index)) throw new IllegalArgume...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0c7517f5d0ece413452f58f3f0a071be2ccbee2e/FindRegExCmd.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/cmd/FindRegExCmd.java
this.regEx = regEx;
this.pattern = pattern;
public FindRegExCmd(HiViewer model, String regEx, int index) { if (model == null) throw new IllegalArgumentException("No model."); if (regEx == null) throw new IllegalArgumentException("No regular expression."); if (!checkIndex(index)) throw new IllegalArgume...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0c7517f5d0ece413452f58f3f0a071be2ccbee2e/FindRegExCmd.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/cmd/FindRegExCmd.java
visitor = new FindRegExTitleVisitor(model, regEx);
visitor = new FindRegExTitleVisitor(model, pattern);
public void execute() { FindRegExVisitor visitor = null; switch (index) { case IN_TITLE: visitor = new FindRegExTitleVisitor(model, regEx); break; case IN_ANNOTATION: visitor = new FindRegExAnnotationVisitor(model, regEx); ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0c7517f5d0ece413452f58f3f0a071be2ccbee2e/FindRegExCmd.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/cmd/FindRegExCmd.java
visitor = new FindRegExAnnotationVisitor(model, regEx);
visitor = new FindRegExAnnotationVisitor(model, pattern);
public void execute() { FindRegExVisitor visitor = null; switch (index) { case IN_TITLE: visitor = new FindRegExTitleVisitor(model, regEx); break; case IN_ANNOTATION: visitor = new FindRegExAnnotationVisitor(model, regEx); ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0c7517f5d0ece413452f58f3f0a071be2ccbee2e/FindRegExCmd.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/cmd/FindRegExCmd.java
visitor = new FindRegExTitleAndAnnotationVisitor(model, regEx);
visitor = new FindRegExTitleAndAnnotationVisitor(model, pattern);
public void execute() { FindRegExVisitor visitor = null; switch (index) { case IN_TITLE: visitor = new FindRegExTitleVisitor(model, regEx); break; case IN_ANNOTATION: visitor = new FindRegExAnnotationVisitor(model, regEx); ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0c7517f5d0ece413452f58f3f0a071be2ccbee2e/FindRegExCmd.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/cmd/FindRegExCmd.java
if (type == ruby.getExceptions().getRuntimeError() && info.length() == 0) {
if (type == ruby.getExceptions().getRuntimeError() && (info == null || info.length() == 0)) {
public void printError(RubyException excp) { if (excp == null || excp.isNil()) { return; } RubyArray backtrace = (RubyArray) excp.funcall("backtrace"); if (backtrace.isNil()) { if (ruby.getSourceFile() != null) { getErrorStream().print(ruby.getSourceFile() + ':' + ruby.getSourceLine()); } else { getErr...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f7702d0afbe9410b0033881bbc09af818b54c112/RubyRuntime.java/buggy/org/jruby/runtime/RubyRuntime.java
public Namespace(RubyModule namespaceModule, Namespace parent) { this.namespaceModule = namespaceModule; this.parent = parent;
public Namespace(RubyModule namespaceModule) { this(namespaceModule, null);
public Namespace(RubyModule namespaceModule, Namespace parent) { this.namespaceModule = namespaceModule; this.parent = parent; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/095520dd469b76e5c1b4ca012804294c66855e55/Namespace.java/buggy/org/jruby/runtime/Namespace.java
if (model == null)
if(model != null)
public void setModel(ThumbnailDataModel model) { if (model == null) { this.model = model; } }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/25bc1b3f47fa8b5a4b979f064e45af877edcc175/Thumbnail.java/buggy/SRC/org/openmicroscopy/shoola/agents/browser/images/Thumbnail.java
return new ProxyCleanupFilter().filter(null, arg0.proceed());
Object result = arg0.proceed(); if (!StatefulServiceInterface.class .isAssignableFrom( arg0.getThis().getClass())) { result = new ProxyCleanupFilter().filter(null, result); } return result;
public Object invoke(MethodInvocation arg0) throws Throwable { return new ProxyCleanupFilter().filter(null, arg0.proceed()); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/d5f70f979d40e800343124ec8c28a1f184e2acc8/ProxyCleanupFilter.java/clean/components/server/src/ome/tools/hibernate/ProxyCleanupFilter.java
DataObject hierarchyObject)
DataObject hierarchyObject)
protected EditorModel(TreeViewer parentModel, int editorType, DataObject hierarchyObject) { if (parentModel == null) throw new NullPointerException("No parent model."); if (editorType != Editor.CREATE_EDITOR && editorType != Editor.PROPERTIES_EDITO...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/d5c797990d356c4ac91ebfe686270c29f4586bd6/EditorModel.java/clean/SRC/org/openmicroscopy/shoola/agents/treeviewer/editors/EditorModel.java
public ViewCmd(TreeViewer model, DataObject hierarchyObject)
public ViewCmd(TreeViewer model)
public ViewCmd(TreeViewer model, DataObject hierarchyObject) { if (model == null) throw new IllegalArgumentException("No model."); this.model = model; if (hierarchyObject == null) throw new IllegalArgumentException("No hierarchyObject."); this.hierarchyObject = hierarchyOb...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1c15bffbe5079ea04feee6747b2b93a8c8078270/ViewCmd.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/cmd/ViewCmd.java
if (hierarchyObject == null) throw new IllegalArgumentException("No hierarchyObject."); this.hierarchyObject = hierarchyObject;
public ViewCmd(TreeViewer model, DataObject hierarchyObject) { if (model == null) throw new IllegalArgumentException("No model."); this.model = model; if (hierarchyObject == null) throw new IllegalArgumentException("No hierarchyObject."); this.hierarchyObject = hierarchyOb...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1c15bffbe5079ea04feee6747b2b93a8c8078270/ViewCmd.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/cmd/ViewCmd.java
bus.post(new LoadImage(data.getId(), data.getDefaultPixels().getId(), data.getName()));
bus.post(new ViewImage(data.getId(), 166, data.getName()));
public void execute() { Browser browser = model.getSelectedBrowser(); if (browser == null) return; Object ho; if (hierarchyObject != null) ho = hierarchyObject; else { TreeImageDisplay display = browser.getSelectedDisplay(); if (display == null) return; ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1c15bffbe5079ea04feee6747b2b93a8c8078270/ViewCmd.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/cmd/ViewCmd.java
root, browser.getRootID()));
root, browser.getRootID()));
public void execute() { Browser browser = model.getSelectedBrowser(); if (browser == null) return; Object ho; if (hierarchyObject != null) ho = hierarchyObject; else { TreeImageDisplay display = browser.getSelectedDisplay(); if (display == null) return; ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1c15bffbe5079ea04feee6747b2b93a8c8078270/ViewCmd.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/cmd/ViewCmd.java
if (parent == null) throw new IllegalArgumentException("No parent.");
public DataObjectCreator(Editor viewer, DataObject userObject, Object parent) { super(viewer); if (userObject == null) throw new IllegalArgumentException("No object to create."); if (parent == null) throw new IllegalArgumentException("No parent."); ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/64ee7ec527da3cc538fcd8d0a21183719f854676/DataObjectCreator.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/DataObjectCreator.java
return Collections.EMPTY_LIST;
return EMPTY_LIST;
public List childNodes() { return Collections.EMPTY_LIST; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/b1293eda8454686e846e2a9837b348e2983bb423/FixnumNode.java/clean/src/org/jruby/ast/FixnumNode.java
family = QuantumFactory.LINEAR;
family = QuantumFactory.getFamily(QuantumFactory.LINEAR);
protected QuantumStrategy(QuantumDef qd, PixelsType pt) { windowStart = globalMin = 0.0; windowEnd = globalMax = 1.0; family = QuantumFactory.LINEAR; curveCoefficient = 1.0; if (qd == null) throw new NullPointerException("No quantum definition"); this.qDef = qd; if (pt == null) ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b2d1563defffc9fa654271400d754843f42e2810/QuantumStrategy.java/buggy/components/rendering/src/omeis/providers/re/quantum/QuantumStrategy.java
private void defineMapper(int family)
private void defineMapper(Family family)
private void defineMapper(int family) { verifyFamily(family); switch (family) { case QuantumFactory.LINEAR: case QuantumFactory.POLYNOMIAL: valueMapper = new PolynomialMap(); break; case QuantumFactory.LOGARITHMIC: valueM...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b2d1563defffc9fa654271400d754843f42e2810/QuantumStrategy.java/buggy/components/rendering/src/omeis/providers/re/quantum/QuantumStrategy.java
verifyFamily(family); switch (family) { case QuantumFactory.LINEAR: case QuantumFactory.POLYNOMIAL:
String value = family.getValue(); verifyFamily(value); if (value.equals(QuantumFactory.LINEAR) || value.equals(QuantumFactory.POLYNOMIAL))
private void defineMapper(int family) { verifyFamily(family); switch (family) { case QuantumFactory.LINEAR: case QuantumFactory.POLYNOMIAL: valueMapper = new PolynomialMap(); break; case QuantumFactory.LOGARITHMIC: valueM...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b2d1563defffc9fa654271400d754843f42e2810/QuantumStrategy.java/buggy/components/rendering/src/omeis/providers/re/quantum/QuantumStrategy.java
break; case QuantumFactory.LOGARITHMIC: valueMapper = new LogarithmicMap(); break; case QuantumFactory.EXPONENTIAL: valueMapper = new ExponentialMap(); break; default: }
else if (value.equals(QuantumFactory.LOGARITHMIC)) valueMapper = new LogarithmicMap(); else if (value.equals(QuantumFactory.EXPONENTIAL)) valueMapper = new ExponentialMap();
private void defineMapper(int family) { verifyFamily(family); switch (family) { case QuantumFactory.LINEAR: case QuantumFactory.POLYNOMIAL: valueMapper = new PolynomialMap(); break; case QuantumFactory.LOGARITHMIC: valueM...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b2d1563defffc9fa654271400d754843f42e2810/QuantumStrategy.java/buggy/components/rendering/src/omeis/providers/re/quantum/QuantumStrategy.java
int getFamily() { return family; }
Family getFamily() { return family; }
int getFamily() { return family; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b2d1563defffc9fa654271400d754843f42e2810/QuantumStrategy.java/buggy/components/rendering/src/omeis/providers/re/quantum/QuantumStrategy.java
public void setMapping(int family, double k, boolean noiseReduction)
public void setMapping(Family family, double k, boolean noiseReduction)
public void setMapping(int family, double k, boolean noiseReduction) { defineMapper(family); this.family = family; curveCoefficient = k; this.noiseReduction = noiseReduction; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b2d1563defffc9fa654271400d754843f42e2810/QuantumStrategy.java/buggy/components/rendering/src/omeis/providers/re/quantum/QuantumStrategy.java
public void setQuantizationMap(int family, double k, boolean noiseReduction)
public void setQuantizationMap(Family family, double k, boolean noiseReduction)
public void setQuantizationMap(int family, double k, boolean noiseReduction) { setMapping(family, k, noiseReduction); onWindowChange(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b2d1563defffc9fa654271400d754843f42e2810/QuantumStrategy.java/buggy/components/rendering/src/omeis/providers/re/quantum/QuantumStrategy.java
private static void verifyFamily(int family)
private static void verifyFamily(String value)
private static void verifyFamily(int family) { switch (family) { case QuantumFactory.LINEAR: case QuantumFactory.LOGARITHMIC: case QuantumFactory.EXPONENTIAL: case QuantumFactory.POLYNOMIAL: return; default: throw new Ill...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b2d1563defffc9fa654271400d754843f42e2810/QuantumStrategy.java/buggy/components/rendering/src/omeis/providers/re/quantum/QuantumStrategy.java
switch (family) { case QuantumFactory.LINEAR: case QuantumFactory.LOGARITHMIC: case QuantumFactory.EXPONENTIAL: case QuantumFactory.POLYNOMIAL: return; default: throw new IllegalArgumentException("Unsupported family type"); }
if (!value.equals(QuantumFactory.LINEAR) && !value.equals(QuantumFactory.LOGARITHMIC) && !value.equals(QuantumFactory.EXPONENTIAL) && !value.equals(QuantumFactory.POLYNOMIAL)) throw new IllegalArgumentException( "Unsupported family type: '" + value + "'");
private static void verifyFamily(int family) { switch (family) { case QuantumFactory.LINEAR: case QuantumFactory.LOGARITHMIC: case QuantumFactory.EXPONENTIAL: case QuantumFactory.POLYNOMIAL: return; default: throw new Ill...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b2d1563defffc9fa654271400d754843f42e2810/QuantumStrategy.java/buggy/components/rendering/src/omeis/providers/re/quantum/QuantumStrategy.java
if (PixelTypeHelper.in(type, new String[] { "int8", "uint8" })) {
if (PlaneFactory.in(type, new String[] { "int8", "uint8" })) {
private void verifyInterval(double min, double max) { boolean b = false; if (min <= max) { double range = max-min; if (PixelTypeHelper.in(type, new String[] { "int8", "uint8" })) { if (range < 0x100) b = true; } else if (PixelTypeHelper.in(type, ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b2d1563defffc9fa654271400d754843f42e2810/QuantumStrategy.java/buggy/components/rendering/src/omeis/providers/re/quantum/QuantumStrategy.java
} else if (PixelTypeHelper.in(type,
} else if (PlaneFactory.in(type,
private void verifyInterval(double min, double max) { boolean b = false; if (min <= max) { double range = max-min; if (PixelTypeHelper.in(type, new String[] { "int8", "uint8" })) { if (range < 0x100) b = true; } else if (PixelTypeHelper.in(type, ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b2d1563defffc9fa654271400d754843f42e2810/QuantumStrategy.java/buggy/components/rendering/src/omeis/providers/re/quantum/QuantumStrategy.java
} else if (PixelTypeHelper.in(type,
} else if (PlaneFactory.in(type,
private void verifyInterval(double min, double max) { boolean b = false; if (min <= max) { double range = max-min; if (PixelTypeHelper.in(type, new String[] { "int8", "uint8" })) { if (range < 0x100) b = true; } else if (PixelTypeHelper.in(type, ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b2d1563defffc9fa654271400d754843f42e2810/QuantumStrategy.java/buggy/components/rendering/src/omeis/providers/re/quantum/QuantumStrategy.java
} else if (PixelTypeHelper.in(type,
} else if (PlaneFactory.in(type,
private void verifyInterval(double min, double max) { boolean b = false; if (min <= max) { double range = max-min; if (PixelTypeHelper.in(type, new String[] { "int8", "uint8" })) { if (range < 0x100) b = true; } else if (PixelTypeHelper.in(type, ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b2d1563defffc9fa654271400d754843f42e2810/QuantumStrategy.java/buggy/components/rendering/src/omeis/providers/re/quantum/QuantumStrategy.java
cacheEnabled=((Boolean)values[2]).booleanValue();
public void restoreState(FacesContext ctx, Object state) { Object values[] = (Object[]) state; super.restoreState(ctx, values[0]); headlineAsLink=((Boolean)values[1]).booleanValue(); }
57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/18f3f17c7d7e21ff910a232da3187e72e9de9847/ArticleItemViewer.java/clean/src/java/com/idega/block/article/component/ArticleItemViewer.java
Object values[] = new Object[2];
Object values[] = new Object[3];
public Object saveState(FacesContext ctx) { Object values[] = new Object[2]; values[0] = super.saveState(ctx); values[1] = Boolean.valueOf(headlineAsLink); return values; }
57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/18f3f17c7d7e21ff910a232da3187e72e9de9847/ArticleItemViewer.java/clean/src/java/com/idega/block/article/component/ArticleItemViewer.java
values[2] = Boolean.valueOf(cacheEnabled);
public Object saveState(FacesContext ctx) { Object values[] = new Object[2]; values[0] = super.saveState(ctx); values[1] = Boolean.valueOf(headlineAsLink); return values; }
57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/18f3f17c7d7e21ff910a232da3187e72e9de9847/ArticleItemViewer.java/clean/src/java/com/idega/block/article/component/ArticleItemViewer.java
protected DataLoader createHierarchyLoader()
protected DataLoader createHierarchyLoader(boolean refresh)
protected DataLoader createHierarchyLoader() { return new DatasetLoader(component, datasetsID); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/fb3743d6f75abbf12f788b3b2925f4a6f4606dd6/DatasetModel.java/clean/SRC/org/openmicroscopy/shoola/agents/hiviewer/view/DatasetModel.java
return new DatasetLoader(component, datasetsID);
return new DatasetLoader(component, datasetsID, refresh);
protected DataLoader createHierarchyLoader() { return new DatasetLoader(component, datasetsID); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/fb3743d6f75abbf12f788b3b2925f4a6f4606dd6/DatasetModel.java/clean/SRC/org/openmicroscopy/shoola/agents/hiviewer/view/DatasetModel.java
throws ServletException, IOException {
throws IOException {
final private void doRequest( HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { WebContext context = null; if (_problem != null) { init(); if (_problem != null) { try { resp.setContentType("text/html"); ...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/289617da402a00c35bb091baf41ccd5f8d4042c2/WMServlet.java/buggy/webmacro/src/org/webmacro/servlet/WMServlet.java
public void write(String s) throws IOException
public void write(int b) throws IOException
public void write(String s) throws IOException { this.write(s,0,s.length()); }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/1ea887f7b197431dd85ca8259382755c7915dc7c/FastWriter.java/buggy/webmacro/src/org/webmacro/FastWriter.java
this.write(s,0,s.length());
if ((_cpos + 1) > CSIZE) cflush(); _cbuf[_cpos] = (char) b; _cpos++;
public void write(String s) throws IOException { this.write(s,0,s.length()); }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/1ea887f7b197431dd85ca8259382755c7915dc7c/FastWriter.java/buggy/webmacro/src/org/webmacro/FastWriter.java
System.out.println("WebContext.getResponse() called!");
public final HttpServletResponse getResponse() { return _response; }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/278b4a35f5c73b37a3381dc75821bfaa4d3aa3d0/WebContext.java/buggy/webmacro/src/org/webmacro/servlet/WebContext.java
return self.getRuntime().newString("tag:yaml.org,2002:map");
String className = self.getType().getName(); if("Hash".equals(className)) { return self.getRuntime().newString("tag:yaml.org,2002:map"); } else { return self.getRuntime().newString("tag:yaml.org,2002:map:" + className); }
public IRubyObject method1(ThreadContext context, IRubyObject self, IRubyObject[] args) { return self.getRuntime().newString("tag:yaml.org,2002:map"); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/121d8287e0a8d27aa18bbefd10a9ebf08fe51d8d/RubyYAML.java/buggy/src/org/jruby/RubyYAML.java
return self.getRuntime().newString("tag:yaml.org,2002:seq");
String className = self.getType().getName(); if("Array".equals(className)) { return self.getRuntime().newString("tag:yaml.org,2002:seq"); } else { return self.getRuntime().newString("tag:yaml.org,2002:seq:" + className); }
public IRubyObject method9(ThreadContext context, IRubyObject self, IRubyObject[] args) { return self.getRuntime().newString("tag:yaml.org,2002:seq"); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/121d8287e0a8d27aa18bbefd10a9ebf08fe51d8d/RubyYAML.java/buggy/src/org/jruby/RubyYAML.java
IRubyObject io = self.getRuntime().getClass("File").callMethod(context,"open", args[0]); self.callMethod(context,"load", io);
IRubyObject io = self.getRuntime().getClass("File").callMethod(context,"open", new IRubyObject[]{args[0],self.getRuntime().newString("r")}); IRubyObject val = self.callMethod(context,"load", io);
public IRubyObject method2(ThreadContext context, IRubyObject self, IRubyObject[] args) { //yaml_load_file IRubyObject io = self.getRuntime().getClass("File").callMethod(context,"open", args[0]); self.callMethod(context,"load", io); io.callMethod(context, "close"); ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/121d8287e0a8d27aa18bbefd10a9ebf08fe51d8d/RubyYAML.java/buggy/src/org/jruby/RubyYAML.java
return io;
return val;
public IRubyObject method2(ThreadContext context, IRubyObject self, IRubyObject[] args) { //yaml_load_file IRubyObject io = self.getRuntime().getClass("File").callMethod(context,"open", args[0]); self.callMethod(context,"load", io); io.callMethod(context, "close"); ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/121d8287e0a8d27aa18bbefd10a9ebf08fe51d8d/RubyYAML.java/buggy/src/org/jruby/RubyYAML.java
w++;
void initStrategies(QuantumDef qd, PixelsType type, ChannelBinding[] waves) { QuantumStrategy stg; double gMin, gMax; List channels = this.metadata.getChannels(); int w = 0; Channel channel; for (Iterator i = channels.iterator(); i.hasNext();) { channel = (Channel) i.next(); stg = QuantumFactory.getStr...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/79a840e814598e78717947e317f85f49fa7de784/QuantumManager.java/clean/components/rendering/src/omeis/providers/re/QuantumManager.java
public static QuantumStrategy getStrategy(QuantumDef qd, PixelsType type)
public static QuantumStrategy getStrategy(QuantumDef qd, PixelsType type, IPixels iPixels)
public static QuantumStrategy getStrategy(QuantumDef qd, PixelsType type) { verifyDef(qd, type); QuantumStrategy strg = null; strg = getQuantization(qd,type); if (strg == null) throw new IllegalArgumentException("Unsupported strategy"); return strg; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/64e6d912272b039f986c1a36d1ca930cc5578578/QuantumFactory.java/buggy/components/rendering/src/omeis/providers/re/quantum/QuantumFactory.java
strg = getQuantization(qd,type);
strg = getQuantization(qd,type, iPixels);
public static QuantumStrategy getStrategy(QuantumDef qd, PixelsType type) { verifyDef(qd, type); QuantumStrategy strg = null; strg = getQuantization(qd,type); if (strg == null) throw new IllegalArgumentException("Unsupported strategy"); return strg; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/64e6d912272b039f986c1a36d1ca930cc5578578/QuantumFactory.java/buggy/components/rendering/src/omeis/providers/re/quantum/QuantumFactory.java
this(klass, methodName, (Class[])null, false, false);
this(klass, methodName, (Class[]) null, false, false);
public ReflectionCallbackMethod(Class klass, String methodName) { this(klass, methodName, (Class[])null, false, false); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/7f0711e7cbb2b441d095c8d8c0838be2b630638c/ReflectionCallbackMethod.java/clean/org/jruby/runtime/ReflectionCallbackMethod.java
protected String getExceptedArgsString(RubyObject[] methodArgs) { StringBuffer sb = new StringBuffer(); sb.append("Wrong arguments:"); if (methodArgs.length == 0) { sb.append(" No args"); } else { sb.append(" ("); for (int i = 0; i < methodArgs.le...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/7f0711e7cbb2b441d095c8d8c0838be2b630638c/ReflectionCallbackMethod.java/clean/org/jruby/runtime/ReflectionCallbackMethod.java
if (className.charAt(0) == 'A' || className.charAt(0) == 'E' || className.charAt(0) == 'I' || className.charAt(0) == 'O' || className.charAt(0) == 'U') {
if (className.charAt(0) == 'A' || className.charAt(0) == 'E' || className.charAt(0) == 'I' || className.charAt(0) == 'O' || className.charAt(0) == 'U') {
protected String getExceptedArgsString(RubyObject[] methodArgs) { StringBuffer sb = new StringBuffer(); sb.append("Wrong arguments:"); if (methodArgs.length == 0) { sb.append(" No args"); } else { sb.append(" ("); for (int i = 0; i < methodArgs.le...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/7f0711e7cbb2b441d095c8d8c0838be2b630638c/ReflectionCallbackMethod.java/clean/org/jruby/runtime/ReflectionCallbackMethod.java
protected String getExceptedArgsString(RubyObject[] methodArgs) { StringBuffer sb = new StringBuffer(); sb.append("Wrong arguments:"); if (methodArgs.length == 0) { sb.append(" No args"); } else { sb.append(" ("); for (int i = 0; i < methodArgs.le...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/7f0711e7cbb2b441d095c8d8c0838be2b630638c/ReflectionCallbackMethod.java/clean/org/jruby/runtime/ReflectionCallbackMethod.java
protected String getExceptedArgsString(RubyObject[] methodArgs) { StringBuffer sb = new StringBuffer(); sb.append("Wrong arguments:"); if (methodArgs.length == 0) { sb.append(" No args"); } else { sb.append(" ("); for (int i = 0; i < methodArgs.le...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/7f0711e7cbb2b441d095c8d8c0838be2b630638c/ReflectionCallbackMethod.java/clean/org/jruby/runtime/ReflectionCallbackMethod.java
throw new RuntimeException("NoSuchMethodException: Cannot get method \"" + methodName + "\" in class \"" + klass.getName() + "\" by Reflection.");
throw new RuntimeException( "NoSuchMethodException: Cannot get method \"" + methodName + "\" in class \"" + klass.getName() + "\" by Reflection.");
protected Method getMethod() { if (method == null) { try { Class[] newArgs = args; if (staticMethod) { newArgs = new Class[args.length + 2]; System.arraycopy(args, 0, newArgs, 2, args.length); newArgs[0] = Ruby....
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/7f0711e7cbb2b441d095c8d8c0838be2b630638c/ReflectionCallbackMethod.java/clean/org/jruby/runtime/ReflectionCallbackMethod.java
throw new RuntimeException("SecurityException: Cannot get method \"" + methodName + "\" in class \"" + klass.getName() + "\" by Reflection.");
throw new RuntimeException( "SecurityException: Cannot get method \"" + methodName + "\" in class \"" + klass.getName() + "\" by Reflection.");
protected Method getMethod() { if (method == null) { try { Class[] newArgs = args; if (staticMethod) { newArgs = new Class[args.length + 2]; System.arraycopy(args, 0, newArgs, 2, args.length); newArgs[0] = Ruby....
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/7f0711e7cbb2b441d095c8d8c0838be2b630638c/ReflectionCallbackMethod.java/clean/org/jruby/runtime/ReflectionCallbackMethod.java
System.arraycopy(methodArgs, args.length - 1, restArray, 0, methodArgs.length - (args.length - 1));
System.arraycopy(methodArgs, args.length - 1, restArray, 0, methodArgs.length - (args.length - 1));
protected RubyObject invokeMethod(RubyObject recv, Object[] methodArgs, Ruby ruby) { if (restArgs) { RubyObject[] restArray = new RubyObject[methodArgs.length - (args.length - 1)]; Object[] newMethodArgs = new Object[args.length]; try { System.arraycopy(methodA...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/7f0711e7cbb2b441d095c8d8c0838be2b630638c/ReflectionCallbackMethod.java/clean/org/jruby/runtime/ReflectionCallbackMethod.java
throw new RuntimeException("Cannot call \"" + methodName + "\" in class \"" + klass.getName() + "\". " + getExceptedArgsString((RubyObject[])methodArgs));
throw new RuntimeException( "Cannot call \"" + methodName + "\" in class \"" + klass.getName() + "\". " + getExceptedArgsString((RubyObject[]) methodArgs));
protected RubyObject invokeMethod(RubyObject recv, Object[] methodArgs, Ruby ruby) { if (restArgs) { RubyObject[] restArray = new RubyObject[methodArgs.length - (args.length - 1)]; Object[] newMethodArgs = new Object[args.length]; try { System.arraycopy(methodA...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/7f0711e7cbb2b441d095c8d8c0838be2b630638c/ReflectionCallbackMethod.java/clean/org/jruby/runtime/ReflectionCallbackMethod.java
return (RubyObject)getMethod().invoke(staticMethod ? null : recv, methodArgs);
return (RubyObject) getMethod().invoke(staticMethod ? null : recv, methodArgs);
protected RubyObject invokeMethod(RubyObject recv, Object[] methodArgs, Ruby ruby) { if (restArgs) { RubyObject[] restArray = new RubyObject[methodArgs.length - (args.length - 1)]; Object[] newMethodArgs = new Object[args.length]; try { System.arraycopy(methodA...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/7f0711e7cbb2b441d095c8d8c0838be2b630638c/ReflectionCallbackMethod.java/clean/org/jruby/runtime/ReflectionCallbackMethod.java
throw (RaiseException)itExcptn.getTargetException();
throw (RaiseException) itExcptn.getTargetException();
protected RubyObject invokeMethod(RubyObject recv, Object[] methodArgs, Ruby ruby) { if (restArgs) { RubyObject[] restArray = new RubyObject[methodArgs.length - (args.length - 1)]; Object[] newMethodArgs = new Object[args.length]; try { System.arraycopy(methodA...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/7f0711e7cbb2b441d095c8d8c0838be2b630638c/ReflectionCallbackMethod.java/clean/org/jruby/runtime/ReflectionCallbackMethod.java
throw (RuntimeException)itExcptn.getTargetException();
throw (RuntimeException) itExcptn.getTargetException();
protected RubyObject invokeMethod(RubyObject recv, Object[] methodArgs, Ruby ruby) { if (restArgs) { RubyObject[] restArray = new RubyObject[methodArgs.length - (args.length - 1)]; Object[] newMethodArgs = new Object[args.length]; try { System.arraycopy(methodA...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/7f0711e7cbb2b441d095c8d8c0838be2b630638c/ReflectionCallbackMethod.java/clean/org/jruby/runtime/ReflectionCallbackMethod.java
itExcptn.getTargetException().printStackTrace(); return ruby.getNil();
itExcptn.getTargetException().printStackTrace(); return ruby.getNil();
protected RubyObject invokeMethod(RubyObject recv, Object[] methodArgs, Ruby ruby) { if (restArgs) { RubyObject[] restArray = new RubyObject[methodArgs.length - (args.length - 1)]; Object[] newMethodArgs = new Object[args.length]; try { System.arraycopy(methodA...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/7f0711e7cbb2b441d095c8d8c0838be2b630638c/ReflectionCallbackMethod.java/clean/org/jruby/runtime/ReflectionCallbackMethod.java