rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
return (EditArticleView) tab.getPerspective(TASK_ID_EDIT); | return (EditArticleView) tab.getTabView(TASK_ID_EDIT); | protected EditArticleView getEditArticleView(){ WFTabbedPane tab = getWFTabbedPane(); if(tab!=null){ return (EditArticleView) tab.getPerspective(TASK_ID_EDIT); } return null; } | 57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/5db26355cf68616cbd8859fa37cd6aa73d783808/ArticleAdminBlock.java/clean/src/java/com/idega/block/article/component/ArticleAdminBlock.java |
public void initializeComponent(FacesContext context){ //TODO Remove this and use newer localization system: WFPage.loadResourceBundles(context); super.initializeComponent(context); String bref = WFPage.CONTENT_BUNDLE + "."; WFTabbedPane tb = new WFTabbedPane(); //tb.setMainAreaStyleClass(WFContainer.DEFAULT_S... | 57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/5db26355cf68616cbd8859fa37cd6aa73d783808/ArticleAdminBlock.java/clean/src/java/com/idega/block/article/component/ArticleAdminBlock.java | ||
super.initializeComponent(context); | UISaveState beanSaveState = new UISaveState(); ValueBinding binding = WFUtil.createValueBinding("#{"+ARTICLE_ITEM_BEAN_ID+"}"); beanSaveState.setId("articleItemBeanSaveState"); beanSaveState.setValueBinding("value",binding); add(beanSaveState); | public void initializeComponent(FacesContext context){ //TODO Remove this and use newer localization system: WFPage.loadResourceBundles(context); super.initializeComponent(context); String bref = WFPage.CONTENT_BUNDLE + "."; WFTabbedPane tb = new WFTabbedPane(); //tb.setMainAreaStyleClass(WFContainer.DEFAULT_S... | 57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/5db26355cf68616cbd8859fa37cd6aa73d783808/ArticleAdminBlock.java/clean/src/java/com/idega/block/article/component/ArticleAdminBlock.java |
String bref = WFPage.CONTENT_BUNDLE + "."; WFTabbedPane tb = new WFTabbedPane(); tb.setId(TASKBAR_ID); add(tb); EditArticleView editArticleBlock = new EditArticleView(); tb.addTabVB(TASK_ID_EDIT, bref + "edit", editArticleBlock); tb.addTabVB(TASK_ID_DETAILS, bref + "details", new ArticleDetailView()); tb.addTabVB(TAS... | public void initializeComponent(FacesContext context){ //TODO Remove this and use newer localization system: WFPage.loadResourceBundles(context); super.initializeComponent(context); String bref = WFPage.CONTENT_BUNDLE + "."; WFTabbedPane tb = new WFTabbedPane(); //tb.setMainAreaStyleClass(WFContainer.DEFAULT_S... | 57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/5db26355cf68616cbd8859fa37cd6aa73d783808/ArticleAdminBlock.java/clean/src/java/com/idega/block/article/component/ArticleAdminBlock.java | |
{ int b = control.getGlobalMinimum(); int c = control.getGlobalMaximum(); double a = (double) rangeGraphics/(b-c); return (int) (a*(x-c)+tW); } | { int b = control.getGlobalMinimum(); int c = control.getGlobalMaximum(); double a = (double) rangeGraphics/(b-c); return (int) (a*(x-c)+tW); } | int convertRealIntoGraphics(int x) { int b = control.getGlobalMinimum(); int c = control.getGlobalMaximum(); double a = (double) rangeGraphics/(b-c); return (int) (a*(x-c)+tW); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1722ebf9ac60fc8e45cdc8d0049e85db5b86715c/HistogramDialogManager.java/buggy/SRC/org/openmicroscopy/shoola/agents/rnd/pane/HistogramDialogManager.java |
if (presentation != null) { topFrame.addToDesktop(presentation, TopFrame.PALETTE_LAYER); presentation.setVisible(true); } | topFrame.addToDesktop(presentation, TopFrame.PALETTE_LAYER); presentation.setVisible(true); | void showPresentation() { //TODO: add control. if (presentation != null) { topFrame.addToDesktop(presentation, TopFrame.PALETTE_LAYER); presentation.setVisible(true); } } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/e717f628b707987e5b693ea9d57b6ef34b300679/RenderingAgt.java/clean/SRC/org/openmicroscopy/shoola/agents/rnd/RenderingAgt.java |
_log.debug("Looking for template: " + fileName); for (int i=0; i < _templateDirectory.length; i++) { Template t; String dir = _templateDirectory[i]; File tFile = new File(dir,fileName); if (tFile.canRead()) { _log.debug("TemplateProvider: Found " + fileName + " in " + dir); return tFile; } | _log.debug("Looking for template: " + fileName); for (int i=0; i <_templateDirectory.length; i++) { Template t; String dir = _templateDirectory[i]; File tFile = new File(dir,fileName); if (tFile.canRead()) { _log.debug("TemplateProvider: Found " + fileName + " in " + dir); return tFile; } | final private File findTemplate (String fileName) { _log.debug("Looking for template: " + fileName); for (int i=0; i < _templateDirectory.length; i++) { Template t; String dir = _templateDirectory[i]; File tFile = new File(dir,fileName); if (tFile.canRead()) { _log.debug("TemplateP... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/48ee8713236f326ad466e62ec2396568a03a90bc/TemplateProvider.java/clean/webmacro/src/org/webmacro/resource/TemplateProvider.java |
return null; | return null; | final private File findTemplate (String fileName) { _log.debug("Looking for template: " + fileName); for (int i=0; i < _templateDirectory.length; i++) { Template t; String dir = _templateDirectory[i]; File tFile = new File(dir,fileName); if (tFile.canRead()) { _log.debug("TemplateP... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/48ee8713236f326ad466e62ec2396568a03a90bc/TemplateProvider.java/clean/webmacro/src/org/webmacro/resource/TemplateProvider.java |
final public Template getTemplate(String fileName) { File tFile = findTemplate (fileName); Template t = null; | final public Template getTemplate(String fileName) { File tFile = findTemplate (fileName); Template t = null; | final public Template getTemplate(String fileName) { File tFile = findTemplate (fileName); Template t = null; try { t = new FileTemplate (_broker, tFile); t.parse (); _lastModifiedCache.put (fileName, new Long (tFile.lastModified())); } catch (NullPointerException npe) { _log.warning ("TemplateProv... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/48ee8713236f326ad466e62ec2396568a03a90bc/TemplateProvider.java/clean/webmacro/src/org/webmacro/resource/TemplateProvider.java |
try { t = new FileTemplate (_broker, tFile); t.parse (); _lastModifiedCache.put (fileName, new Long (tFile.lastModified())); } catch (NullPointerException npe) { _log.warning ("TemplateProvider: Template not found: " + fileName, npe); } catch (Exception e) { _log.warning ("TemplateProvider: Error occured while getting... | try { t = new FileTemplate (_broker, tFile); t.parse (); _lastModifiedCache.put (fileName, new Long (tFile.lastModified())); } catch (NullPointerException npe) { _log.warning ("TemplateProvider: Template not found: " + fileName, npe); } catch (Exception e) { _log.warning ("TemplateProvider: Error occured while gettin... | final public Template getTemplate(String fileName) { File tFile = findTemplate (fileName); Template t = null; try { t = new FileTemplate (_broker, tFile); t.parse (); _lastModifiedCache.put (fileName, new Long (tFile.lastModified())); } catch (NullPointerException npe) { _log.warning ("TemplateProv... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/48ee8713236f326ad466e62ec2396568a03a90bc/TemplateProvider.java/clean/webmacro/src/org/webmacro/resource/TemplateProvider.java |
final public boolean shouldReload (String fileName) { File tFile = findTemplate (fileName); Long lm = (Long) _lastModifiedCache.get (fileName); return (lm == null || lm.longValue() != tFile.lastModified()); } | final public boolean shouldReload (String fileName) { File tFile = findTemplate (fileName); Long lm = (Long) _lastModifiedCache.get (fileName); return (lm == null || lm.longValue() != tFile.lastModified()); } | final public boolean shouldReload (String fileName) { File tFile = findTemplate (fileName); Long lm = (Long) _lastModifiedCache.get (fileName); return (lm == null || lm.longValue() != tFile.lastModified()); } | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/48ee8713236f326ad466e62ec2396568a03a90bc/TemplateProvider.java/clean/webmacro/src/org/webmacro/resource/TemplateProvider.java |
private Editor getDOEditor(TreeViewer model, DataObject hierarchyObject, | private Editor getDOEditor(TreeViewer model, DataObject ho, | private Editor getDOEditor(TreeViewer model, DataObject hierarchyObject, int editorType) { model.addPropertyChangeListener(this); if (editor != null) return editor; EditorModel m = new EditorModel(model, editorType, hierarchyObject); EditorComponent com... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/d5c797990d356c4ac91ebfe686270c29f4586bd6/EditorFactory.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/editors/EditorFactory.java |
EditorModel m = new EditorModel(model, editorType, hierarchyObject); | EditorModel m = new EditorModel(model, editorType, ho); | private Editor getDOEditor(TreeViewer model, DataObject hierarchyObject, int editorType) { model.addPropertyChangeListener(this); if (editor != null) return editor; EditorModel m = new EditorModel(model, editorType, hierarchyObject); EditorComponent com... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/d5c797990d356c4ac91ebfe686270c29f4586bd6/EditorFactory.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/editors/EditorFactory.java |
long modstart = System.currentTimeMillis(); if (ChainBuilderAgent.DEBUG) modstart = System.currentTimeMillis(); | public Object getContents() { ChainDataManager chainDataManager = (ChainDataManager) dataManager; if (modData == null) { modData = new ModulesData(); Collection mods = chainDataManager.getModules(); Collection cats = chainDataManager.getModuleCategories(); // find uncategorized modules Iterator ite... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a806bf744289bb0eed666b235887c8680d549d94/ModuleLoader.java/clean/SRC/org/openmicroscopy/shoola/agents/chainbuilder/data/ModuleLoader.java | |
long loadEnd; if (ChainBuilderAgent.DEBUG) { loadEnd= System.currentTimeMillis()-loadStart; System.err.println("time for get modules and get categories.."+loadEnd); } | public Object getContents() { ChainDataManager chainDataManager = (ChainDataManager) dataManager; if (modData == null) { modData = new ModulesData(); Collection mods = chainDataManager.getModules(); Collection cats = chainDataManager.getModuleCategories(); // find uncategorized modules Iterator ite... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a806bf744289bb0eed666b235887c8680d549d94/ModuleLoader.java/clean/SRC/org/openmicroscopy/shoola/agents/chainbuilder/data/ModuleLoader.java | |
if (ChainBuilderAgent.DEBUG) { long modend = System.currentTimeMillis()-modstart; if (modend > 0) System.err.println("total time spent in module get contents.."+modend); } | public Object getContents() { ChainDataManager chainDataManager = (ChainDataManager) dataManager; if (modData == null) { modData = new ModulesData(); Collection mods = chainDataManager.getModules(); Collection cats = chainDataManager.getModuleCategories(); // find uncategorized modules Iterator ite... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a806bf744289bb0eed666b235887c8680d549d94/ModuleLoader.java/clean/SRC/org/openmicroscopy/shoola/agents/chainbuilder/data/ModuleLoader.java | |
defineSingletonMethod("pipe", Arity.noArguments()); | protected void initializeClass() { includeModule(getRuntime().getModule("Enumerable")); // TODO: Implement tty? and isatty. We have no real capability to // determine this from java, but if we could set tty status, then // we could invoke jruby differently to allow stdin to retur... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/ebb36c83a55d3d046354e5aea24d7b0285ac2c54/IOMetaClass.java/clean/src/org/jruby/runtime/builtin/meta/IOMetaClass.java | |
throw runtime.newNameError(name() + " is a read-only variable"); | throw runtime.newNameError(name() + " is a read-only variable", name()); | public IRubyObject set(IRubyObject value) { throw runtime.newNameError(name() + " is a read-only variable"); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1278c5bb3507a052d150d814f15453542ae41aed/ReadonlyGlobalVariable.java/clean/src/org/jruby/runtime/ReadonlyGlobalVariable.java |
pushCRef(runtime.getObject()); | public void preAdoptThread() { pushIter(Iter.ITER_NOT); pushFrame(); getCurrentFrame().newScope(null); pushRubyClass(runtime.getObject()); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/408ba0b04448fd6ff645ed5c2c99654ac80634bf/ThreadContext.java/clean/src/org/jruby/runtime/ThreadContext.java | |
private LensMenu(LensComponent lensComponent) | LensMenu(LensComponent lensComponent) | private LensMenu(LensComponent lensComponent) { this.lensComponent = lensComponent; createPopupMenu(); createMenubarMenu(); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/29b0b8d77292efe37e6130bac1e4416901230654/LensMenu.java/clean/SRC/org/openmicroscopy/shoola/util/ui/lens/LensMenu.java |
JMenuItem setLensDefaultSize; | private void createMenubarMenu() { JMenu lensOptions; JMenu zoomOptions; JMenu displayOptions; JMenuItem setLensDefaultSize; JMenuItem setLens40x40; JMenuItem setLens60x60; JMenuItem setLens80x80; JMenuItem setLens100x100; JMenuItem setLens150x150; JMenuItem setZoomx3; JMenu... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/29b0b8d77292efe37e6130bac1e4416901230654/LensMenu.java/clean/SRC/org/openmicroscopy/shoola/util/ui/lens/LensMenu.java | |
setLensDefaultSize = new JMenuItem(new LensAction(lensComponent, LensAction.LENSDEFAULTSIZE)); | private void createMenubarMenu() { JMenu lensOptions; JMenu zoomOptions; JMenu displayOptions; JMenuItem setLensDefaultSize; JMenuItem setLens40x40; JMenuItem setLens60x60; JMenuItem setLens80x80; JMenuItem setLens100x100; JMenuItem setLens150x150; JMenuItem setZoomx3; JMenu... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/29b0b8d77292efe37e6130bac1e4416901230654/LensMenu.java/clean/SRC/org/openmicroscopy/shoola/util/ui/lens/LensMenu.java | |
LensAction.LENS40x40)); | LensAction.LENS40x40)); setLens50x50 = new JMenuItem(new LensAction(lensComponent, LensAction.LENS50x50)); | private void createMenubarMenu() { JMenu lensOptions; JMenu zoomOptions; JMenu displayOptions; JMenuItem setLensDefaultSize; JMenuItem setLens40x40; JMenuItem setLens60x60; JMenuItem setLens80x80; JMenuItem setLens100x100; JMenuItem setLens150x150; JMenuItem setZoomx3; JMenu... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/29b0b8d77292efe37e6130bac1e4416901230654/LensMenu.java/clean/SRC/org/openmicroscopy/shoola/util/ui/lens/LensMenu.java |
lensOptions.add(setLensDefaultSize); | private void createMenubarMenu() { JMenu lensOptions; JMenu zoomOptions; JMenu displayOptions; JMenuItem setLensDefaultSize; JMenuItem setLens40x40; JMenuItem setLens60x60; JMenuItem setLens80x80; JMenuItem setLens100x100; JMenuItem setLens150x150; JMenuItem setZoomx3; JMenu... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/29b0b8d77292efe37e6130bac1e4416901230654/LensMenu.java/clean/SRC/org/openmicroscopy/shoola/util/ui/lens/LensMenu.java | |
zoomOptions.add(setZoomx2); | private void createMenubarMenu() { JMenu lensOptions; JMenu zoomOptions; JMenu displayOptions; JMenuItem setLensDefaultSize; JMenuItem setLens40x40; JMenuItem setLens60x60; JMenuItem setLens80x80; JMenuItem setLens100x100; JMenuItem setLens150x150; JMenuItem setZoomx3; JMenu... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/29b0b8d77292efe37e6130bac1e4416901230654/LensMenu.java/clean/SRC/org/openmicroscopy/shoola/util/ui/lens/LensMenu.java | |
JMenuItem setLensDefaultSize; | private void createPopupMenu() { JMenu lensOptions; JMenu zoomOptions; JMenuItem topOption; JMenu displayOptions; JMenuItem setLensDefaultSize; JMenuItem setLens40x40; JMenuItem setLens60x60; JMenuItem setLens80x80; JMenuItem setLens100x100; JMenuItem setLens150x150; JMenuI... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/29b0b8d77292efe37e6130bac1e4416901230654/LensMenu.java/clean/SRC/org/openmicroscopy/shoola/util/ui/lens/LensMenu.java | |
setLensDefaultSize = new JMenuItem(new LensAction(lensComponent, LensAction.LENSDEFAULTSIZE)); | private void createPopupMenu() { JMenu lensOptions; JMenu zoomOptions; JMenuItem topOption; JMenu displayOptions; JMenuItem setLensDefaultSize; JMenuItem setLens40x40; JMenuItem setLens60x60; JMenuItem setLens80x80; JMenuItem setLens100x100; JMenuItem setLens150x150; JMenuI... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/29b0b8d77292efe37e6130bac1e4416901230654/LensMenu.java/clean/SRC/org/openmicroscopy/shoola/util/ui/lens/LensMenu.java | |
ZoomAction.ZOOMx3)); | ZoomAction.ZOOMx3)); | private void createPopupMenu() { JMenu lensOptions; JMenu zoomOptions; JMenuItem topOption; JMenu displayOptions; JMenuItem setLensDefaultSize; JMenuItem setLens40x40; JMenuItem setLens60x60; JMenuItem setLens80x80; JMenuItem setLens100x100; JMenuItem setLens150x150; JMenuI... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/29b0b8d77292efe37e6130bac1e4416901230654/LensMenu.java/clean/SRC/org/openmicroscopy/shoola/util/ui/lens/LensMenu.java |
lensOptions.add(setLensDefaultSize); | private void createPopupMenu() { JMenu lensOptions; JMenu zoomOptions; JMenuItem topOption; JMenu displayOptions; JMenuItem setLensDefaultSize; JMenuItem setLens40x40; JMenuItem setLens60x60; JMenuItem setLens80x80; JMenuItem setLens100x100; JMenuItem setLens150x150; JMenuI... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/29b0b8d77292efe37e6130bac1e4416901230654/LensMenu.java/clean/SRC/org/openmicroscopy/shoola/util/ui/lens/LensMenu.java | |
zoomOptions.add(setZoomx2); | private void createPopupMenu() { JMenu lensOptions; JMenu zoomOptions; JMenuItem topOption; JMenu displayOptions; JMenuItem setLensDefaultSize; JMenuItem setLens40x40; JMenuItem setLens60x60; JMenuItem setLens80x80; JMenuItem setLens100x100; JMenuItem setLens150x150; JMenuI... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/29b0b8d77292efe37e6130bac1e4416901230654/LensMenu.java/clean/SRC/org/openmicroscopy/shoola/util/ui/lens/LensMenu.java | |
return ref.menubar; | return menubar; | JMenuBar getMenubar() { return ref.menubar; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/29b0b8d77292efe37e6130bac1e4416901230654/LensMenu.java/clean/SRC/org/openmicroscopy/shoola/util/ui/lens/LensMenu.java |
return ref.popupMenu; | return popupMenu; | JPopupMenu getPopupMenu() { return ref.popupMenu; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/29b0b8d77292efe37e6130bac1e4416901230654/LensMenu.java/clean/SRC/org/openmicroscopy/shoola/util/ui/lens/LensMenu.java |
double y = (double) x; verifyInput(y); return Math.log(y); | return Math.log(verifyInput((double) x)); | public double transform(int x, double k) { double y = (double) x; verifyInput(y); return Math.log(y); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/003d5b181ea715c02dffec4523e09bc34e884765/LogarithmicMap.java/buggy/SRC/org/openmicroscopy/shoola/env/rnd/quantum/LogarithmicMap.java |
private void verifyInput(double x) | private double verifyInput(double x) | private void verifyInput(double x) { if (x <= 0) throw new IllegalArgumentException("Value not consistent. " + "The value must be > 0."); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/003d5b181ea715c02dffec4523e09bc34e884765/LogarithmicMap.java/buggy/SRC/org/openmicroscopy/shoola/env/rnd/quantum/LogarithmicMap.java |
if (x <= 0) throw new IllegalArgumentException("Value not consistent. " + "The value must be > 0."); | if (x <= 0) x = 1.0; return x; | private void verifyInput(double x) { if (x <= 0) throw new IllegalArgumentException("Value not consistent. " + "The value must be > 0."); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/003d5b181ea715c02dffec4523e09bc34e884765/LogarithmicMap.java/buggy/SRC/org/openmicroscopy/shoola/env/rnd/quantum/LogarithmicMap.java |
public RubyScope() { | public RubyScope(Ruby ruby) { this.ruby = ruby; | public RubyScope() { } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d69d4a4ad55400b629f71574f9f1c20c617cc2ca/RubyScope.java/buggy/org/jruby/runtime/RubyScope.java |
ruby.setActMethodScope(oldActMethodScope); | public void pop() { this.superObject = old.superObject; this.localTbl = old.localTbl; this.localVars = old.localVars; this.flags = old.flags; this.old = old.old; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d69d4a4ad55400b629f71574f9f1c20c617cc2ca/RubyScope.java/buggy/org/jruby/runtime/RubyScope.java | |
old = new RubyScope(this); | oldActMethodScope = ruby.getActMethodScope(); ruby.setActMethodScope(Constants.NOEX_PUBLIC); old = new RubyScope(this, ruby); | public void push() { old = new RubyScope(this); localTbl = null; localVars = null; flags = 0; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d69d4a4ad55400b629f71574f9f1c20c617cc2ca/RubyScope.java/buggy/org/jruby/runtime/RubyScope.java |
final JDialog optionsDialog = new JDialog(SparkManager.getMainWindow(), Res.getString("title.set.status.message "), true); | final JDialog optionsDialog = new JDialog(SparkManager.getMainWindow(), Res.getString("title.set.status.message"), true); | public void invoke(String selectedType) { final StatusBar statusBar = SparkManager.getWorkspace().getStatusBar(); // Construct main panel w/ layout. final JPanel mainPanel = new JPanel(); mainPanel.setLayout(new BorderLayout()); // The user should only be a... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/19e17d68c2c9589c1eea9caba87ba9f18813b1c4/CustomMessages.java/buggy/src/java/org/jivesoftware/spark/ui/status/CustomMessages.java |
bar.add(Box.createRigidArea(VBOX)); bar.add(colorPickerButton); | private JToolBar buildToolBar() { JToolBar bar = new JToolBar(JToolBar.VERTICAL); bar.setFloatable(false); bar.setRollover(true); bar.setBorder(null); bar.add(colorModelButton); bar.add(Box.createRigidArea(VBOX)); bar.add(channelMovieButton); return bar; ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/bbd964029121f2811ba2b7cf47a392087032888c/ControlPane.java/buggy/SRC/org/openmicroscopy/shoola/agents/imviewer/view/ControlPane.java | |
button.setPreferredSize(new Dimension(30, 30)); | button.setPreferredSize(ChannelButton.DEFAULT_MIN_SIZE); | private JPanel createChannelsPane() { JPanel p = new JPanel(); p.setLayout(new BoxLayout(p, BoxLayout.Y_AXIS)); ChannelMetadata[] data = model.getChannelData(); ChannelButton button; ChannelMetadata d; p.add(Box.createRigidArea(VBOX)); boolean gs = model.getColorM... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/bbd964029121f2811ba2b7cf47a392087032888c/ControlPane.java/buggy/SRC/org/openmicroscopy/shoola/agents/imviewer/view/ControlPane.java |
ViewerAction a = controller.getAction(ImViewerControl.COLOR_PICKER); colorPickerButton = new JButton(a); colorPickerButton.addMouseListener((ColorPickerAction) a); UIUtilities.unifiedButtonLookAndFeel(colorPickerButton); | private void initComponents() { ViewerAction[] zoomingActions = new ViewerAction[12]; zoomingActions[0] = controller.getAction(ImViewerControl.ZOOM_25); zoomingActions[1] = controller.getAction(ImViewerControl.ZOOM_50); zoomingActions[2] = controller.getAction(ImViewerControl.ZOOM_75)... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/bbd964029121f2811ba2b7cf47a392087032888c/ControlPane.java/buggy/SRC/org/openmicroscopy/shoola/agents/imviewer/view/ControlPane.java | |
} catch (Exception excptn) { excptn.printStackTrace(getErrorStream()); | /*} catch (Exception excptn) { excptn.printStackTrace(getErrorStream());*/ | public void loadScript(RubyString scriptName, RubyString source, boolean wrap) { RubyObject self = ruby.getRubyTopSelf(); CRefNode savedCRef = ruby.getCRef(); // TMP_PROTECT; if (wrap && ruby.getSafeLevel() >= 4) { // Check_Type(fname, T_STRING); } else { // ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/774c5d3d592dfd020e3a8f961b73f629c4c55cf0/RubyRuntime.java/buggy/org/jruby/runtime/RubyRuntime.java |
List names = new ArrayList(); | ArrayList names = new ArrayList(); | public RubyArray instance_variables() { List names = new ArrayList(); Iterator iter = instanceVariables.keySet().iterator(); while (iter.hasNext()) { String name = (String) iter.next(); names.add(RubyString.newString(getRuby(), name)); } return RubyArray.newA... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a42a5780d9d19f5b3f27bdc079684319c5596e54/RubyObject.java/buggy/org/jruby/RubyObject.java |
rootResource.putMethod(getWebdavServletURL(iwuc)+getFolderLocation()+"/"+filename+".xml",articleDoc.toString()); | rootResource.putMethod(getWebdavServletURL(iwuc)+getFolderLocation()+"/"+filename+ARTICLE_SUFFIX,articleDoc.toString()); | public void store() throws IDOStoreException{// public Boolean store() { boolean storeOk = true; clearErrorKeys(); ArticleDocument articleDoc = ArticleDocument.Factory.newInstance(); ArticleDocument.Article article = articleDoc.addNewArticle(); if (getHeadline().trim().equals("")) { addErrorKey(KE... | 57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/e75e5a35d9b917c44d8a58d117a43ccf5ad660b4/ArticleItemBean.java/buggy/src/java/com/idega/block/article/bean/ArticleItemBean.java |
public void store() throws IDOStoreException{// public Boolean store() { boolean storeOk = true; clearErrorKeys(); ArticleDocument articleDoc = ArticleDocument.Factory.newInstance(); ArticleDocument.Article article = articleDoc.addNewArticle(); if (getHeadline().trim().equals("")) { addErrorKey(KE... | 57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/e75e5a35d9b917c44d8a58d117a43ccf5ad660b4/ArticleItemBean.java/buggy/src/java/com/idega/block/article/bean/ArticleItemBean.java | ||
public void store() throws IDOStoreException{// public Boolean store() { boolean storeOk = true; clearErrorKeys(); ArticleDocument articleDoc = ArticleDocument.Factory.newInstance(); ArticleDocument.Article article = articleDoc.addNewArticle(); if (getHeadline().trim().equals("")) { addErrorKey(KE... | 57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/e75e5a35d9b917c44d8a58d117a43ccf5ad660b4/ArticleItemBean.java/buggy/src/java/com/idega/block/article/bean/ArticleItemBean.java | ||
public void store() throws IDOStoreException{// public Boolean store() { boolean storeOk = true; clearErrorKeys(); ArticleDocument articleDoc = ArticleDocument.Factory.newInstance(); ArticleDocument.Article article = articleDoc.addNewArticle(); if (getHeadline().trim().equals("")) { addErrorKey(KE... | 57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/e75e5a35d9b917c44d8a58d117a43ccf5ad660b4/ArticleItemBean.java/buggy/src/java/com/idega/block/article/bean/ArticleItemBean.java | ||
HttpURL root = new HttpURL("http: | HttpURL root = new HttpURL("http: | public void store() throws IDOStoreException{// public Boolean store() { boolean storeOk = true; clearErrorKeys(); ArticleDocument articleDoc = ArticleDocument.Factory.newInstance(); ArticleDocument.Article article = articleDoc.addNewArticle(); if (getHeadline().trim().equals("")) { addErrorKey(KE... | 57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/e75e5a35d9b917c44d8a58d117a43ccf5ad660b4/ArticleItemBean.java/buggy/src/java/com/idega/block/article/bean/ArticleItemBean.java |
public void store() throws IDOStoreException{// public Boolean store() { boolean storeOk = true; clearErrorKeys(); ArticleDocument articleDoc = ArticleDocument.Factory.newInstance(); ArticleDocument.Article article = articleDoc.addNewArticle(); if (getHeadline().trim().equals("")) { addErrorKey(KE... | 57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/e75e5a35d9b917c44d8a58d117a43ccf5ad660b4/ArticleItemBean.java/buggy/src/java/com/idega/block/article/bean/ArticleItemBean.java | ||
public void store() throws IDOStoreException{// public Boolean store() { boolean storeOk = true; clearErrorKeys(); ArticleDocument articleDoc = ArticleDocument.Factory.newInstance(); ArticleDocument.Article article = articleDoc.addNewArticle(); if (getHeadline().trim().equals("")) { addErrorKey(KE... | 57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/e75e5a35d9b917c44d8a58d117a43ccf5ad660b4/ArticleItemBean.java/buggy/src/java/com/idega/block/article/bean/ArticleItemBean.java | ||
public void store() throws IDOStoreException{// public Boolean store() { boolean storeOk = true; clearErrorKeys(); ArticleDocument articleDoc = ArticleDocument.Factory.newInstance(); ArticleDocument.Article article = articleDoc.addNewArticle(); if (getHeadline().trim().equals("")) { addErrorKey(KE... | 57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/e75e5a35d9b917c44d8a58d117a43ccf5ad660b4/ArticleItemBean.java/buggy/src/java/com/idega/block/article/bean/ArticleItemBean.java | ||
long secs = ((RubyFixnum) args[0]).getValue(); | long secs = RubyNumeric.num2long(args[0]); | public static RubyTime s_at(Ruby ruby, RubyObject rubyClass, RubyObject[] args) { long secs = ((RubyFixnum) args[0]).getValue(); RubyTime time = new RubyTime(ruby, (RubyClass) rubyClass.getRubyClass()); GregorianCalendar cal = new GregorianCalendar(); cal.setTime(new Date(secs)); ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/786cea08c1dd2092a02d1254b49fbee371ace5f9/RubyTime.java/clean/org/jruby/RubyTime.java |
partialName = true; | protected TreeImageDisplay(Object hierarchyObject) { super(); if (hierarchyObject == null) throw new NullPointerException("No hierarchy object."); setUserObject(hierarchyObject); childrenDisplay = new HashSet(); numberItems = -1; fontStyle = FONT_PLAIN; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/146920a8791fff71320ced0f240b9d8f3d319a13/TreeImageDisplay.java/clean/SRC/org/openmicroscopy/shoola/agents/treeviewer/browser/TreeImageDisplay.java | |
if (getUserObject() instanceof ImageData) return getPartialName(name); | if (getUserObject() instanceof ImageData) { if (partialName) return getPartialName(name); return name; } | public String getNodeText() { String name = getNodeName(); if (getUserObject() instanceof ImageData) return getPartialName(name); if (numberItems == -1) return (name+SPACE+"[...]"); return (name+SPACE+"["+numberItems+"]"); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/146920a8791fff71320ced0f240b9d8f3d319a13/TreeImageDisplay.java/clean/SRC/org/openmicroscopy/shoola/agents/treeviewer/browser/TreeImageDisplay.java |
if (getUserObject() instanceof ImageData) return getPartialName(getNodeName()); | public String toString() { if (getUserObject() instanceof ImageData) return getPartialName(getNodeName()); return getNodeName(); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/146920a8791fff71320ced0f240b9d8f3d319a13/TreeImageDisplay.java/clean/SRC/org/openmicroscopy/shoola/agents/treeviewer/browser/TreeImageDisplay.java | |
offTop = offBottom-offTop-4; | offTop = offTop-offBottom-4; | public static PiccoloAction getSemanticEnterAction(final BrowserView view, final HoverManager layer) { PiccoloAction enterAction = getImageEnterAction(view); PiccoloAction action = new CompositePiccoloAction(enterAction) { publ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/f82d914fe97ef0c74bef944bf12ae4961776c814/PiccoloActionFactory.java/clean/SRC/org/openmicroscopy/shoola/agents/browser/events/PiccoloActionFactory.java |
layer.nodeEntered(e.getCamera(),semanticNode,200); | layer.nodeEntered(e.getCamera(),semanticNode,500); | public static PiccoloAction getSemanticEnterAction(final BrowserView view, final HoverManager layer) { PiccoloAction enterAction = getImageEnterAction(view); PiccoloAction action = new CompositePiccoloAction(enterAction) { publ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/f82d914fe97ef0c74bef944bf12ae4961776c814/PiccoloActionFactory.java/clean/SRC/org/openmicroscopy/shoola/agents/browser/events/PiccoloActionFactory.java |
offTop = offBottom-offTop-4; | offTop = offTop-offBottom-4; | public void execute(PInputEvent e) { super.execute(e); Thumbnail t = (Thumbnail)e.getPickedNode(); double width = t.getWidth()*e.getCamera().getViewScale(); double height = t.getHeight()*e.getCamera().getViewScale(); ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/f82d914fe97ef0c74bef944bf12ae4961776c814/PiccoloActionFactory.java/clean/SRC/org/openmicroscopy/shoola/agents/browser/events/PiccoloActionFactory.java |
layer.nodeEntered(e.getCamera(),semanticNode,200); | layer.nodeEntered(e.getCamera(),semanticNode,500); | public void execute(PInputEvent e) { super.execute(e); Thumbnail t = (Thumbnail)e.getPickedNode(); double width = t.getWidth()*e.getCamera().getViewScale(); double height = t.getHeight()*e.getCamera().getViewScale(); ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/f82d914fe97ef0c74bef944bf12ae4961776c814/PiccoloActionFactory.java/clean/SRC/org/openmicroscopy/shoola/agents/browser/events/PiccoloActionFactory.java |
public Category(Integer attributeId, String name, String description, org.openmicroscopy.omero.model.CategoryGroup categoryGroup, org.openmicroscopy.omero.model.ModuleExecution moduleExecution, Set classifications) { this.attributeId = attributeId; this.name = name; this.description = description; this.categoryGroup = ... | public Category() { | public Category(Integer attributeId, String name, String description, org.openmicroscopy.omero.model.CategoryGroup categoryGroup, org.openmicroscopy.omero.model.ModuleExecution moduleExecution, Set classifications) { this.attributeId = attributeId; this.name = name; this.description = descripti... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/Category.java/buggy/components/common/src/org/openmicroscopy/omero/model/Category.java |
public org.openmicroscopy.omero.model.CategoryGroup getCategoryGroup() { | public CategoryGroup getCategoryGroup() { | public org.openmicroscopy.omero.model.CategoryGroup getCategoryGroup() { return this.categoryGroup; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/Category.java/buggy/components/common/src/org/openmicroscopy/omero/model/Category.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/Category.java/buggy/components/common/src/org/openmicroscopy/omero/model/Category.java |
public void setCategoryGroup(org.openmicroscopy.omero.model.CategoryGroup categoryGroup) { | public void setCategoryGroup(CategoryGroup categoryGroup) { | public void setCategoryGroup(org.openmicroscopy.omero.model.CategoryGroup categoryGroup) { this.categoryGroup = categoryGroup; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/Category.java/buggy/components/common/src/org/openmicroscopy/omero/model/Category.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/Category.java/buggy/components/common/src/org/openmicroscopy/omero/model/Category.java |
private Block( | public Block( | private Block( Node var, ICallable method, IRubyObject self, Frame frame, Scope scope, RubyModule klass, Iter iter, DynamicVariableSet dynamicVars) { assert method != null; this.var = var; this.method = method; this.self = self... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a1b8fc1d456e3d5c6e01579b88773383068aa85c/Block.java/clean/src/org/jruby/runtime/Block.java |
assert method != null; | private Block( Node var, ICallable method, IRubyObject self, Frame frame, Scope scope, RubyModule klass, Iter iter, DynamicVariableSet dynamicVars) { assert method != null; this.var = var; this.method = method; this.self = self... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a1b8fc1d456e3d5c6e01579b88773383068aa85c/Block.java/clean/src/org/jruby/runtime/Block.java | |
this.cref = cref; | private Block( Node var, ICallable method, IRubyObject self, Frame frame, Scope scope, RubyModule klass, Iter iter, DynamicVariableSet dynamicVars) { assert method != null; this.var = var; this.method = method; this.self = self... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a1b8fc1d456e3d5c6e01579b88773383068aa85c/Block.java/clean/src/org/jruby/runtime/Block.java | |
Block newBlock = new Block(var, method, self, frame, scope, klass, iter, new DynamicVariableSet(dynamicVariables)); | Block newBlock = new Block(var, method, self, frame, cref, scope, klass, iter, new DynamicVariableSet(dynamicVariables)); | public Block cloneBlock() { Block newBlock = new Block(var, method, self, frame, scope, klass, iter, new DynamicVariableSet(dynamicVariables)); newBlock.isLambda = isLambda; if (getNext() != null) { newBlock.setNext(getNext()); } return newBlock; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a1b8fc1d456e3d5c6e01579b88773383068aa85c/Block.java/clean/src/org/jruby/runtime/Block.java |
context.peekCRef(), | public static Block createBlock(Node var, ICallable method, IRubyObject self) { ThreadContext context = self.getRuntime().getCurrentContext(); return new Block(var, method, self, context.getCurrentFrame(), ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a1b8fc1d456e3d5c6e01579b88773383068aa85c/Block.java/clean/src/org/jruby/runtime/Block.java | |
public HTMLReport(Map coverageData, File outputDir, File sourceDir) | public HTMLReport(Coverage coverage, File outputDir, File sourceDir) | public HTMLReport(Map coverageData, File outputDir, File sourceDir) throws Exception { this.outputDir = outputDir; this.sourceDir = sourceDir; this.coverage = CoverageUnmarshaller.parse(coverageData); removeNonexistantClasses(); CopyFiles.copy(outputDir); generatePackageList(); generateClassLists(); generate... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/1fc76069b3c268690aea68cfb654d632b23e3b49/HTMLReport.java/buggy/cobertura/src/net/sourceforge/cobertura/reporting/html/HTMLReport.java |
this.coverage = CoverageUnmarshaller.parse(coverageData); | this.coverage = coverage; | public HTMLReport(Map coverageData, File outputDir, File sourceDir) throws Exception { this.outputDir = outputDir; this.sourceDir = sourceDir; this.coverage = CoverageUnmarshaller.parse(coverageData); removeNonexistantClasses(); CopyFiles.copy(outputDir); generatePackageList(); generateClassLists(); generate... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/1fc76069b3c268690aea68cfb654d632b23e3b49/HTMLReport.java/buggy/cobertura/src/net/sourceforge/cobertura/reporting/html/HTMLReport.java |
protected HashMap buildChainHash(Collection chains) { HashMap map = new HashMap(); | protected LinkedHashMap buildChainHash(Collection chains) { LinkedHashMap map = new LinkedHashMap(); | protected HashMap buildChainHash(Collection chains) { HashMap map = new HashMap(); Iterator iter = chains.iterator(); while (iter.hasNext()) { LayoutChainData p = (LayoutChainData) iter.next(); Integer id = new Integer(p.getID()); map.put(id,p); } return map; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/426d81c49168655739bbc20b40625063012871e0/ChainDataManager.java/clean/SRC/org/openmicroscopy/shoola/agents/chainbuilder/ChainDataManager.java |
chainExecutionHashesByID = new HashMap(); executionsByDatasetID = new HashMap(); executionsByChainID = new HashMap(); | chainExecutionHashesByID = new LinkedHashMap(); executionsByDatasetID = new LinkedHashMap(); executionsByChainID = new LinkedHashMap(); | protected void buildExecutionHashes(Collection executions) { chainExecutionHashesByID = new HashMap(); executionsByDatasetID = new HashMap(); executionsByChainID = new HashMap(); Iterator iter = executions.iterator(); while (iter.hasNext()) { // hash by execution id ChainExecutionData p = (ChainExecutionDa... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/426d81c49168655739bbc20b40625063012871e0/ChainDataManager.java/clean/SRC/org/openmicroscopy/shoola/agents/chainbuilder/ChainDataManager.java |
public void setAnalysisNodes(HashMap analysisNodes) { | public void setAnalysisNodes(LinkedHashMap analysisNodes) { | public void setAnalysisNodes(HashMap analysisNodes) { this.analysisNodes = analysisNodes; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/426d81c49168655739bbc20b40625063012871e0/ChainDataManager.java/clean/SRC/org/openmicroscopy/shoola/agents/chainbuilder/ChainDataManager.java |
private void updateExecutionHash(HashMap map, Integer id,ChainExecutionData p) { | private void updateExecutionHash(LinkedHashMap map, Integer id,ChainExecutionData p) { | private void updateExecutionHash(HashMap map, Integer id,ChainExecutionData p) { ArrayList execs = null; Object obj = map.get(id); if (obj == null) execs = new ArrayList(); else execs = (ArrayList) obj; execs.add(p); map.put(id,execs); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/426d81c49168655739bbc20b40625063012871e0/ChainDataManager.java/clean/SRC/org/openmicroscopy/shoola/agents/chainbuilder/ChainDataManager.java |
public ChainExecutionsLoadedEvent(HashMap executionsByDataset, HashMap executionsByChain,HashMap executionsByID) { | public ChainExecutionsLoadedEvent(LinkedHashMap executionsByDataset, LinkedHashMap executionsByChain,LinkedHashMap executionsByID) { | public ChainExecutionsLoadedEvent(HashMap executionsByDataset, HashMap executionsByChain,HashMap executionsByID) { super(); setSource(executionsByDataset); this.executionsByChain = executionsByChain; this.executionsByID = executionsByID; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/426d81c49168655739bbc20b40625063012871e0/ChainExecutionsLoadedEvent.java/buggy/SRC/org/openmicroscopy/shoola/agents/events/ChainExecutionsLoadedEvent.java |
RubyGlobal.createGlobals(this); | private void init() { ThreadContext tc = getCurrentContext(); nilObject = new RubyNil(this); trueObject = new RubyBoolean(this, true); falseObject = new RubyBoolean(this, false); verbose = falseObject; debug = falseObject; javaSupport = new JavaSupport(this);... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/af07dd9e2d788cd1a5151ea8833909422495f7c4/Ruby.java/buggy/src/org/jruby/Ruby.java | |
RubyGlobal.createGlobals(this); | private void init() { ThreadContext tc = getCurrentContext(); nilObject = new RubyNil(this); trueObject = new RubyBoolean(this, true); falseObject = new RubyBoolean(this, false); verbose = falseObject; debug = falseObject; javaSupport = new JavaSupport(this);... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/af07dd9e2d788cd1a5151ea8833909422495f7c4/Ruby.java/buggy/src/org/jruby/Ruby.java | |
wData = Helper.createPlane(planeDef, w, metadata, pixels); | wData = PlaneFactory.createPlane(planeDef, w, metadata, pixels); | private RenderRGBWaveTask[] makeRndTasks(PlaneDef planeDef, RGBBuffer renderedDataBuf) { ArrayList tasks = new ArrayList(3); //Get all objects we need to create the tasks. Plane2D wData; QuantumManager qManager = renderer.getQuantum... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b2d1563defffc9fa654271400d754843f42e2810/RGBStrategy.java/buggy/components/rendering/src/omeis/providers/re/RGBStrategy.java |
RGBBuffer render(Renderer ctx, PlaneDef planeDef) throws IOException, QuantizationException { //Set the rendering context for the current invocation. renderer = ctx; RenderingStats performanceStats = renderer.getStats(); //Initialize sizeX1 and sizeX2 according to the plane definition and //create t... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b2d1563defffc9fa654271400d754843f42e2810/RGBStrategy.java/buggy/components/rendering/src/omeis/providers/re/RGBStrategy.java | ||
rndTskFutures[n] = processor.submit(tasks[n]); | rndTskFutures[n] = processor.submit(tasks[n]); | RGBBuffer render(Renderer ctx, PlaneDef planeDef) throws IOException, QuantizationException { //Set the rendering context for the current invocation. renderer = ctx; RenderingStats performanceStats = renderer.getStats(); //Initialize sizeX1 and sizeX2 according to the plane definition and //create t... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b2d1563defffc9fa654271400d754843f42e2810/RGBStrategy.java/buggy/components/rendering/src/omeis/providers/re/RGBStrategy.java |
processor.shutdown(); | processor.shutdown(); | RGBBuffer render(Renderer ctx, PlaneDef planeDef) throws IOException, QuantizationException { //Set the rendering context for the current invocation. renderer = ctx; RenderingStats performanceStats = renderer.getStats(); //Initialize sizeX1 and sizeX2 according to the plane definition and //create t... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b2d1563defffc9fa654271400d754843f42e2810/RGBStrategy.java/buggy/components/rendering/src/omeis/providers/re/RGBStrategy.java |
rndTskFutures[n].get(); | rndTskFutures[n].get(); | RGBBuffer render(Renderer ctx, PlaneDef planeDef) throws IOException, QuantizationException { //Set the rendering context for the current invocation. renderer = ctx; RenderingStats performanceStats = renderer.getStats(); //Initialize sizeX1 and sizeX2 according to the plane definition and //create t... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b2d1563defffc9fa654271400d754843f42e2810/RGBStrategy.java/buggy/components/rendering/src/omeis/providers/re/RGBStrategy.java |
xsdType = "xsd:string"; | xsdType = "xs:string"; | public static String getXsdType(Type type) { String name = type.getName(); String xsdType = (String) XSD_TYPES.get(name); if (xsdType == null) { xsdType = "xsd:string"; } return xsdType; } | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/b133db955fc4dea0a80c6c4807180c1a17a4bf13/Utils.java/buggy/xbean-spring-common/src/main/java/org/apache/xbean/spring/generator/Utils.java |
public static void createReadline(IRuby runtime) { try { Class readline = Class.forName("org.gnu.readline.Readline"); Class readlineLib = Class.forName("org.gnu.readline.ReadlineLibrary"); readline.getMethod("load",new Class[]{readlineLib}).invoke(null,new Object[]{readlineLib.getMethod("byName",new Class[]{String.clas... | public static void createReadline(IRuby runtime) throws IOException { readline = new ConsoleReader(); readline.setUseHistory(false); ((CandidateListCompletionHandler) readline.getCompletionHandler()).setAlwaysIncludeNewline(false); currentCompletor = new RubyFileNameCompletor(); readline.addCompletor(currentCompletor);... | public static void createReadline(IRuby runtime) { try { Class readline = Class.forName("org.gnu.readline.Readline"); Class readlineLib = Class.forName("org.gnu.readline.ReadlineLibrary"); readline.getMethod("load",new Class[]{readlineLib}).invoke(null,new Object[]{readlineLi... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/070b77f707d6fe6c85ec1c02b29ea35cd84e9dfc/Readline.java/clean/src/org/jruby/ext/Readline.java |
addToHistMeth.invoke(null,new Object[]{line.toString()}); | readline.getHistory().addToHistory(line.toString()); | public static IRubyObject s_push(IRubyObject recv, IRubyObject line) throws Exception { addToHistMeth.invoke(null,new Object[]{line.toString()}); return recv.getRuntime().getNil(); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/070b77f707d6fe6c85ec1c02b29ea35cd84e9dfc/Readline.java/clean/src/org/jruby/ext/Readline.java |
public static IRubyObject s_readline(IRubyObject recv, IRubyObject prompt, IRubyObject add_to_hist) { | public static IRubyObject s_readline(IRubyObject recv, IRubyObject prompt, IRubyObject add_to_hist) throws IOException { | public static IRubyObject s_readline(IRubyObject recv, IRubyObject prompt, IRubyObject add_to_hist) { IRubyObject line = recv.getRuntime().getNil(); try { String v = (String)readlineMeth.invoke(null,new Object[]{prompt.toString(),new Boolean(add_to_hist.isTrue())}); if(null != v)... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/070b77f707d6fe6c85ec1c02b29ea35cd84e9dfc/Readline.java/clean/src/org/jruby/ext/Readline.java |
try { String v = (String)readlineMeth.invoke(null,new Object[]{prompt.toString(),new Boolean(add_to_hist.isTrue())}); if(null != v) { line = recv.getRuntime().newString(v); } } catch(Exception ioe) { return recv.getRuntime().getNil(); | String v = readline.readLine(prompt.toString()); if(null != v) { if (add_to_hist.isTrue()) readline.getHistory().addToHistory(v); line = recv.getRuntime().newString(v); | public static IRubyObject s_readline(IRubyObject recv, IRubyObject prompt, IRubyObject add_to_hist) { IRubyObject line = recv.getRuntime().getNil(); try { String v = (String)readlineMeth.invoke(null,new Object[]{prompt.toString(),new Boolean(add_to_hist.isTrue())}); if(null != v)... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/070b77f707d6fe6c85ec1c02b29ea35cd84e9dfc/Readline.java/clean/src/org/jruby/ext/Readline.java |
return ((RubyArray) rExcptn.getReturnValue()).pop(); | return rExcptn.getReturnValue(); | public RubyObject call(Ruby ruby, RubyObject recv, String id, RubyPointer args, boolean noSuper) { if (args == null) { args = new RubyPointer(); } CRefNode savedCref = null; // +++ = null; List valueList = null; ruby.getScope().push(); CRefNode lRefValue = getRefValue(); if (lRefValue != null) { saved... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/fe5b7835d80b52a0683d503660a7f722b7af69b1/ScopeNode.java/clean/org/jruby/nodes/ScopeNode.java |
case ARGUMENT_TYPES : return argument_types(); | public IRubyObject callIndexed(int index, IRubyObject[] args) { switch (index) { case NAME : return name(); case ARITY : return arity(); case PUBLIC_P : return public_p(); case FINAL_P : return final_p(); ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/89272e383891a75366988c82cce7c8626dcf5e2d/JavaMethodClass.java/buggy/org/jruby/javasupport/JavaMethodClass.java | |
javaMethodClass.defineMethod("argument_types", IndexedCallback.create(ARGUMENT_TYPES, 0)); | public static RubyClass createJavaMethodClass(Ruby runtime, RubyModule javaModule) { RubyClass javaMethodClass = javaModule.defineClassUnder("JavaMethod", runtime.getClasses().getObjectClass()); javaMethodClass.defineMethod("name", IndexedCallback.create(NAME, 0)); javaMethodClas... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/89272e383891a75366988c82cce7c8626dcf5e2d/JavaMethodClass.java/buggy/org/jruby/javasupport/JavaMethodClass.java | |
} catch (IllegalArgumentException iae) { throw new TypeError(getRuntime(), "expected " + argument_types().inspect()); | public IRubyObject invoke(IRubyObject[] args) { if (args.length != getArity() + 1) { throw new ArgumentError(getRuntime(), args.length, getArity() + 1); } IRubyObject invokee = args[0]; if (! (invokee instanceof RubyJavaObject)) { throw new TypeError(getRuntime(), "... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/89272e383891a75366988c82cce7c8626dcf5e2d/JavaMethodClass.java/buggy/org/jruby/javasupport/JavaMethodClass.java | |
public void handleNativeException(Exception excptn) { Class excptnClass = excptn.getClass(); | public void handleNativeException(Exception exception) { Class excptnClass = exception.getClass(); | public void handleNativeException(Exception excptn) { Class excptnClass = excptn.getClass(); RubyProc handler = (RubyProc)exceptionHandlers.get(excptnClass.getName()); while (handler == null && excptnClass != Exception.class) { excptnClass = excptnClass.getSuperclass();... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/12474ae3e4d78d19edc11ac6e29bd9d6e4c50405/JavaSupport.java/buggy/org/jruby/javasupport/JavaSupport.java |
handler.call(new IRubyObject[]{JavaUtil.convertJavaToRuby(ruby, excptn)}); | handler.call(new IRubyObject[]{JavaUtil.convertJavaToRuby(ruby, exception)}); | public void handleNativeException(Exception excptn) { Class excptnClass = excptn.getClass(); RubyProc handler = (RubyProc)exceptionHandlers.get(excptnClass.getName()); while (handler == null && excptnClass != Exception.class) { excptnClass = excptnClass.getSuperclass();... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/12474ae3e4d78d19edc11ac6e29bd9d6e4c50405/JavaSupport.java/buggy/org/jruby/javasupport/JavaSupport.java |
excptn.printStackTrace(new PrintWriter(stackTrace)); | exception.printStackTrace(new PrintWriter(stackTrace)); | public void handleNativeException(Exception excptn) { Class excptnClass = excptn.getClass(); RubyProc handler = (RubyProc)exceptionHandlers.get(excptnClass.getName()); while (handler == null && excptnClass != Exception.class) { excptnClass = excptnClass.getSuperclass();... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/12474ae3e4d78d19edc11ac6e29bd9d6e4c50405/JavaSupport.java/buggy/org/jruby/javasupport/JavaSupport.java |
sb.append(excptn.getClass()).append("\'; Message: "); sb.append(excptn.getMessage()); | sb.append(exception.getClass()).append("\'; Message: "); sb.append(exception.getMessage()); | public void handleNativeException(Exception excptn) { Class excptnClass = excptn.getClass(); RubyProc handler = (RubyProc)exceptionHandlers.get(excptnClass.getName()); while (handler == null && excptnClass != Exception.class) { excptnClass = excptnClass.getSuperclass();... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/12474ae3e4d78d19edc11ac6e29bd9d6e4c50405/JavaSupport.java/buggy/org/jruby/javasupport/JavaSupport.java |
return RubySymbol.newSymbol(input.getRuby(), input.unmarshalString()); | return RubySymbol.newSymbol(input.getRuntime(), input.unmarshalString()); | public static RubySymbol unmarshalFrom(UnmarshalStream input) throws java.io.IOException { return RubySymbol.newSymbol(input.getRuby(), input.unmarshalString()); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f235ab756f32ea9496f8f880066b46ad95ebb692/RubySymbol.java/clean/org/jruby/RubySymbol.java |
Experimenter o = (Experimenter) ht.load(Experimenter.class,0); ExperimenterGroup g = (ExperimenterGroup) ht.load(ExperimenterGroup.class,0); CurrentDetails.setOwner(o); CurrentDetails.setGroup(g); | if (CurrentDetails.getOwner() == null ) throw new RuntimeException("Current owner must be set."); if (CurrentDetails.getGroup() == null ) throw new RuntimeException("Current group must be set."); if (CurrentDetails.getCreationEvent() == null ) throw new RuntimeException("Current event must be set."); | public Object invoke(MethodInvocation arg0) throws Throwable { Experimenter o = (Experimenter) ht.load(Experimenter.class,0); ExperimenterGroup g = (ExperimenterGroup) ht.load(ExperimenterGroup.class,0); CurrentDetails.setOwner(o); Curre... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/38b37dbcde43de05438b02c9f2be0b9c16614519/EventHandler.java/clean/components/server/src/ome/tools/hibernate/EventHandler.java |
EventType test = (EventType) ht.execute(new HibernateCallback(){ public Object doInHibernate(Session session) throws HibernateException, SQLException { Query q = session.createQuery( "from EventType where value = 'Test'"); return q.uniqueResult(); } }); CurrentDetails.newEvent(test); return arg0.proceed(); | return arg0.proceed(); | public Object invoke(MethodInvocation arg0) throws Throwable { Experimenter o = (Experimenter) ht.load(Experimenter.class,0); ExperimenterGroup g = (ExperimenterGroup) ht.load(ExperimenterGroup.class,0); CurrentDetails.setOwner(o); Curre... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/38b37dbcde43de05438b02c9f2be0b9c16614519/EventHandler.java/clean/components/server/src/ome/tools/hibernate/EventHandler.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.