rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
startStop(StartStrategies.ASYNCHRONOUS); startStop(StartStrategies.SYNCHRONOUS); startStop(StartStrategies.UNREGISTER); startStop(StartStrategies.BLOCK);
startStop(StartStrategies.ASYNCHRONOUS, false); startStop(StartStrategies.SYNCHRONOUS, false); startStop(StartStrategies.UNREGISTER, false); startStop(StartStrategies.BLOCK, false);
public void testStartStop() throws Exception { startStop(StartStrategies.ASYNCHRONOUS); startStop(StartStrategies.SYNCHRONOUS); startStop(StartStrategies.UNREGISTER); startStop(StartStrategies.BLOCK); startStop(StartStrategies.ASYNCHRONOUS); startStop(StartStrategies.SYNCHR...
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/40d54ab7cee698a58def76b8baef5ca243beb305/ServiceManagerTest.java/clean/kernel/src/test/org/gbean/kernel/standard/ServiceManagerTest.java
startCondition.satisfied = false; start(false, StartStrategies.ASYNCHRONOUS); stop(StopStrategies.ASYNCHRONOUS);
startWaiting(StartStrategies.ASYNCHRONOUS, false); startWaiting(StartStrategies.SYNCHRONOUS, false); startWaiting(StartStrategies.UNREGISTER, false);
public void testStartWaiting() throws Exception { startCondition.satisfied = false; start(false, StartStrategies.ASYNCHRONOUS); stop(StopStrategies.ASYNCHRONOUS); start(false, StartStrategies.ASYNCHRONOUS); stop(StopStrategies.ASYNCHRONOUS); }
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/40d54ab7cee698a58def76b8baef5ca243beb305/ServiceManagerTest.java/clean/kernel/src/test/org/gbean/kernel/standard/ServiceManagerTest.java
start(false, StartStrategies.ASYNCHRONOUS); stop(StopStrategies.ASYNCHRONOUS);
startWaiting(StartStrategies.ASYNCHRONOUS, false); startWaiting(StartStrategies.SYNCHRONOUS, false); startWaiting(StartStrategies.UNREGISTER, false);
public void testStartWaiting() throws Exception { startCondition.satisfied = false; start(false, StartStrategies.ASYNCHRONOUS); stop(StopStrategies.ASYNCHRONOUS); start(false, StartStrategies.ASYNCHRONOUS); stop(StopStrategies.ASYNCHRONOUS); }
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/40d54ab7cee698a58def76b8baef5ca243beb305/ServiceManagerTest.java/clean/kernel/src/test/org/gbean/kernel/standard/ServiceManagerTest.java
startCondition.satisfied = false; start(false, StartStrategies.ASYNCHRONOUS); start(false, StartStrategies.ASYNCHRONOUS); startCondition.satisfied = true; start(false, StartStrategies.ASYNCHRONOUS); start(false, StartStrategies.ASYNCHRONOUS); stop(StopStrategies.ASYNCHRONOUS);
startWaitingStart(StartStrategies.ASYNCHRONOUS, false); startWaitingStart(StartStrategies.SYNCHRONOUS, false); startWaitingStart(StartStrategies.UNREGISTER, false);
public void testStartWaitingStart() throws Exception { startCondition.satisfied = false; start(false, StartStrategies.ASYNCHRONOUS); start(false, StartStrategies.ASYNCHRONOUS); startCondition.satisfied = true; start(false, StartStrategies.ASYNCHRONOUS); start(false, StartSt...
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/40d54ab7cee698a58def76b8baef5ca243beb305/ServiceManagerTest.java/clean/kernel/src/test/org/gbean/kernel/standard/ServiceManagerTest.java
startCondition.satisfied = false; start(false, StartStrategies.ASYNCHRONOUS); start(false, StartStrategies.ASYNCHRONOUS); startCondition.satisfied = true; start(false, StartStrategies.ASYNCHRONOUS); start(false, StartStrategies.ASYNCHRONOUS); stop(StopStrategies.ASYNCHRONOUS);
startWaitingStart(StartStrategies.ASYNCHRONOUS, false); startWaitingStart(StartStrategies.SYNCHRONOUS, false); startWaitingStart(StartStrategies.UNREGISTER, false);
public void testStartWaitingStart() throws Exception { startCondition.satisfied = false; start(false, StartStrategies.ASYNCHRONOUS); start(false, StartStrategies.ASYNCHRONOUS); startCondition.satisfied = true; start(false, StartStrategies.ASYNCHRONOUS); start(false, StartSt...
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/40d54ab7cee698a58def76b8baef5ca243beb305/ServiceManagerTest.java/clean/kernel/src/test/org/gbean/kernel/standard/ServiceManagerTest.java
start(false, StartStrategies.ASYNCHRONOUS); stopCondition.satisfied = false; stop(StopStrategies.ASYNCHRONOUS); stop(StopStrategies.ASYNCHRONOUS); stopCondition.satisfied = true; stop(StopStrategies.ASYNCHRONOUS); start(false, StartStrategies.ASYNCHRONOUS); stopCondition.satisfied = false; stop(StopStrategies.ASYNCHRO...
waitingStop(StopStrategies.ASYNCHRONOUS); waitingStop(StopStrategies.SYNCHRONOUS); waitingStop(StopStrategies.FORCE);
public void testWaitingStop() throws Exception { start(false, StartStrategies.ASYNCHRONOUS); stopCondition.satisfied = false; stop(StopStrategies.ASYNCHRONOUS); stop(StopStrategies.ASYNCHRONOUS); stopCondition.satisfied = true; stop(StopStrategies.ASYNCHRONOUS); star...
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/40d54ab7cee698a58def76b8baef5ca243beb305/ServiceManagerTest.java/clean/kernel/src/test/org/gbean/kernel/standard/ServiceManagerTest.java
historyState = -1;
void initialize(HiViewer model, HiViewerWin view) { if (model == null) throw new NullPointerException("No model."); if (view == null) throw new NullPointerException("No view."); this.model = model; this.view = view; actionsMap = new HashMap(); createActions(); mod...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/e123367d3b024349b8d299ef57fb0e01d9f51942/HiViewerControl.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/view/HiViewerControl.java
Browser browser = model.getBrowser(); browser.addPropertyChangeListener(Browser.POPUP_POINT_PROPERTY, this); browser.addPropertyChangeListener( Browser.THUMB_SELECTED_PROPERTY, this); view.setBrowserView(browser.getUI()); view.setViewTitle();
setBrowserView(); break; case HiViewer.READY: if (historyState == HiViewer.LOADING_HIERARCHY) setBrowserView();
public void stateChanged(ChangeEvent ce) { int state = model.getState(); switch (state) { case HiViewer.LOADING_THUMBNAILS: Browser browser = model.getBrowser(); browser.addPropertyChangeListener(Browser.POPUP_POINT_PROPERTY, ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/e123367d3b024349b8d299ef57fb0e01d9f51942/HiViewerControl.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/view/HiViewerControl.java
historyState = state;
public void stateChanged(ChangeEvent ce) { int state = model.getState(); switch (state) { case HiViewer.LOADING_THUMBNAILS: Browser browser = model.getBrowser(); browser.addPropertyChangeListener(Browser.POPUP_POINT_PROPERTY, ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/e123367d3b024349b8d299ef57fb0e01d9f51942/HiViewerControl.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/view/HiViewerControl.java
public final RubyFixnum hash() { return RubyFixnum.newFixnum(getRuby(), hashCode());
public RubyFixnum hash() { return RubyFixnum.newFixnum(ruby, System.identityHashCode(this));
public final RubyFixnum hash() { return RubyFixnum.newFixnum(getRuby(), hashCode()); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/7f0907240b4b4a4379424377e971ed0ca23f1dcb/RubyObject.java/clean/org/jruby/RubyObject.java
ResourceUtils.resButton(logoutWithStatus, "Log out with status");
ResourceUtils.resButton(logoutWithStatus, "Log Out with &status");
private void configureMenu() { // setup file menu JMenuItem exitMenuItem = new JMenuItem("Exit"); // Setup ResourceUtils ResourceUtils.resButton(connectMenu, "&" + Default.getString(Default.APPLICATION_NAME)); ResourceUtils.resButton(contactsMenu, "Con&tacts"); ResourceUtil...
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/3cd0ed9b6c479c5b8eb9b0520080d37af1e34676/MainWindow.java/clean/src/java/org/jivesoftware/MainWindow.java
this.mainUpdateURL = "http:
this.mainUpdateURL = "http:
public CheckUpdates() { // Set the Jabber IQ Provider for Jabber:iq:spark ProviderManager.addIQProvider("query", "jabber:iq:spark", new SparkVersion.Provider()); // For simplicity, use an alias for the root xml tag xstream.alias("Version", SparkVersion.class); // Specify the main ...
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/028cde13fc23ea5cbdaa0191963cf1624ef656d0/CheckUpdates.java/buggy/src/java/org/jivesoftware/sparkimpl/updater/CheckUpdates.java
public String getInput(String title, String description, Icon icon, Component parent) { textArea = new JTextArea(); subjectField = new JTextField(); textArea.setLineWrap(true);
public String getInput(String title, String description, Icon icon, int width, int height) { this.width = width; this.height = height;
public String getInput(String title, String description, Icon icon, Component parent) { textArea = new JTextArea(); subjectField = new JTextField(); textArea.setLineWrap(true); TitlePanel titlePanel = new TitlePanel(title, description, icon, true); // Construct main panel w/ layou...
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/ede843505c046d47bba853e049191aedc32bd2fe/InputTextAreaDialog.java/buggy/src/java/org/jivesoftware/sparkimpl/plugin/alerts/InputTextAreaDialog.java
TitlePanel titlePanel = new TitlePanel(title, description, icon, true); final JPanel mainPanel = new JPanel(); mainPanel.setLayout(new BorderLayout()); mainPanel.add(titlePanel, BorderLayout.NORTH); final JPanel centerPanel = new JPanel(new GridBagLayout()); final Object[] options = {"Ok", "Cancel"}; optionPane =...
return getInput(title, description, icon, SparkManager.getMainWindow());
public String getInput(String title, String description, Icon icon, Component parent) { textArea = new JTextArea(); subjectField = new JTextField(); textArea.setLineWrap(true); TitlePanel titlePanel = new TitlePanel(title, description, icon, true); // Construct main panel w/ layou...
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/ede843505c046d47bba853e049191aedc32bd2fe/InputTextAreaDialog.java/buggy/src/java/org/jivesoftware/sparkimpl/plugin/alerts/InputTextAreaDialog.java
frame = ruby.getInterpreter().getRubyFrame();
frame = ruby.getRubyFrame();
public void push(NODE v, NODE b, RubyObject newSelf) { RubyBlock oldBlock = new RubyBlock(var, body, self, frame, scope, klass, iter, vmode, flags, dynamicVars, origThread, prev, ruby); var = v; body = b...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/cf644c556d410c47305ebeba5728efa25f7756dc/RubyBlock.java/buggy/org/jruby/interpreter/RubyBlock.java
Reader in = getReader();
source = getReader();
public final void parse() throws IOException, TemplateException { // thread policy: // // unsynchronized code elsewhere will access _content. We must // ensure that any data copied into _content is ready for public // use--which means dealing with two subtle issues. First, the Block ...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/4202e09536e7166f9105ed97558b6c1e5f63d8f6/WMTemplate.java/clean/webmacro/src/org/webmacro/engine/WMTemplate.java
editArticleBlock.setEditView(editMode);
editArticleBlock.setEditMode(editMode);
public void initializeContent(){ //TODO Remove this and use newer localization system: FacesContext context = FacesContext.getCurrentInstance(); WFPage.loadResourceBundles(context); super.initializeContent(); String bref = WFPage.CONTENT_BUNDLE + "."; WFTabbedPane tb = new WFTabbedPane(); //tb.setMainAreaStyl...
57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/7493a23b4d95bba0468c9c8438a4f930b908ebf1/ArticleAdminBlock.java/clean/src/java/com/idega/block/article/component/ArticleAdminBlock.java
errors.add(fireServiceNotificationError(serviceMonitor, serviceEvent, e));
errors.addAll(fireServiceNotificationError(serviceMonitor, serviceEvent, e));
public void serviceRegistered(ServiceEvent serviceEvent) { List errors = new ArrayList(); Set serviceMonitors = getServiceMonitors(serviceEvent.getServiceName()); for (Iterator iterator = serviceMonitors.iterator(); iterator.hasNext();) { ServiceMonitor serviceMonitor = (ServiceMonit...
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/4533b377bef2eed92f5cf978dc051fe822360c5a/ServiceMonitorBroadcaster.java/buggy/kernel/src/java/org/gbean/kernel/ServiceMonitorBroadcaster.java
} catch (Exception e) { errors.add(fireServiceNotificationError(serviceMonitor, serviceEvent, e));
} catch (Throwable e) { errors.addAll(fireServiceNotificationError(serviceMonitor, serviceEvent, e));
public void serviceStarting(ServiceEvent serviceEvent) { List errors = new ArrayList(); Set serviceMonitors = getServiceMonitors(serviceEvent.getServiceName()); for (Iterator iterator = serviceMonitors.iterator(); iterator.hasNext();) { ServiceMonitor serviceMonitor = (ServiceMonitor...
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/4533b377bef2eed92f5cf978dc051fe822360c5a/ServiceMonitorBroadcaster.java/buggy/kernel/src/java/org/gbean/kernel/ServiceMonitorBroadcaster.java
} catch (Exception e) { errors.add(fireServiceNotificationError(serviceMonitor, serviceEvent, e));
} catch (Throwable e) { errors.addAll(fireServiceNotificationError(serviceMonitor, serviceEvent, e));
public void serviceWaitingToStart(ServiceEvent serviceEvent) { List errors = new ArrayList(); Set serviceMonitors = getServiceMonitors(serviceEvent.getServiceName()); for (Iterator iterator = serviceMonitors.iterator(); iterator.hasNext();) { ServiceMonitor serviceMonitor = (ServiceM...
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/4533b377bef2eed92f5cf978dc051fe822360c5a/ServiceMonitorBroadcaster.java/buggy/kernel/src/java/org/gbean/kernel/ServiceMonitorBroadcaster.java
} catch (Exception e) { errors.add(fireServiceNotificationError(serviceMonitor, serviceEvent, e));
} catch (Throwable e) { errors.addAll(fireServiceNotificationError(serviceMonitor, serviceEvent, e));
public void serviceStartError(ServiceEvent serviceEvent) { List errors = new ArrayList(); Set serviceMonitors = getServiceMonitors(serviceEvent.getServiceName()); for (Iterator iterator = serviceMonitors.iterator(); iterator.hasNext();) { ServiceMonitor serviceMonitor = (ServiceMonit...
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/4533b377bef2eed92f5cf978dc051fe822360c5a/ServiceMonitorBroadcaster.java/buggy/kernel/src/java/org/gbean/kernel/ServiceMonitorBroadcaster.java
} catch (Exception e) { errors.add(fireServiceNotificationError(serviceMonitor, serviceEvent, e));
} catch (Throwable e) { errors.addAll(fireServiceNotificationError(serviceMonitor, serviceEvent, e));
public void serviceRunning(ServiceEvent serviceEvent) { List errors = new ArrayList(); Set serviceMonitors = getServiceMonitors(serviceEvent.getServiceName()); for (Iterator iterator = serviceMonitors.iterator(); iterator.hasNext();) { ServiceMonitor serviceMonitor = (ServiceMonitor)...
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/4533b377bef2eed92f5cf978dc051fe822360c5a/ServiceMonitorBroadcaster.java/buggy/kernel/src/java/org/gbean/kernel/ServiceMonitorBroadcaster.java
} catch (Exception e) { errors.add(fireServiceNotificationError(serviceMonitor, serviceEvent, e));
} catch (Throwable e) { errors.addAll(fireServiceNotificationError(serviceMonitor, serviceEvent, e));
public void serviceStopping(ServiceEvent serviceEvent) { List errors = new ArrayList(); Set serviceMonitors = getServiceMonitors(serviceEvent.getServiceName()); for (Iterator iterator = serviceMonitors.iterator(); iterator.hasNext();) { ServiceMonitor serviceMonitor = (ServiceMonitor...
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/4533b377bef2eed92f5cf978dc051fe822360c5a/ServiceMonitorBroadcaster.java/buggy/kernel/src/java/org/gbean/kernel/ServiceMonitorBroadcaster.java
} catch (Exception e) { errors.add(fireServiceNotificationError(serviceMonitor, serviceEvent, e));
} catch (Throwable e) { errors.addAll(fireServiceNotificationError(serviceMonitor, serviceEvent, e));
public void serviceWaitingToStop(ServiceEvent serviceEvent) { List errors = new ArrayList(); Set serviceMonitors = getServiceMonitors(serviceEvent.getServiceName()); for (Iterator iterator = serviceMonitors.iterator(); iterator.hasNext();) { ServiceMonitor serviceMonitor = (ServiceMo...
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/4533b377bef2eed92f5cf978dc051fe822360c5a/ServiceMonitorBroadcaster.java/buggy/kernel/src/java/org/gbean/kernel/ServiceMonitorBroadcaster.java
} catch (Exception e) { errors.add(fireServiceNotificationError(serviceMonitor, serviceEvent, e));
} catch (Throwable e) { errors.addAll(fireServiceNotificationError(serviceMonitor, serviceEvent, e));
public void serviceStopError(ServiceEvent serviceEvent) { List errors = new ArrayList(); Set serviceMonitors = getServiceMonitors(serviceEvent.getServiceName()); for (Iterator iterator = serviceMonitors.iterator(); iterator.hasNext();) { ServiceMonitor serviceMonitor = (ServiceMonito...
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/4533b377bef2eed92f5cf978dc051fe822360c5a/ServiceMonitorBroadcaster.java/buggy/kernel/src/java/org/gbean/kernel/ServiceMonitorBroadcaster.java
} catch (Exception e) { errors.add(fireServiceNotificationError(serviceMonitor, serviceEvent, e));
} catch (Throwable e) { errors.addAll(fireServiceNotificationError(serviceMonitor, serviceEvent, e));
public void serviceStopped(ServiceEvent serviceEvent) { List errors = new ArrayList(); Set serviceMonitors = getServiceMonitors(serviceEvent.getServiceName()); for (Iterator iterator = serviceMonitors.iterator(); iterator.hasNext();) { ServiceMonitor serviceMonitor = (ServiceMonitor)...
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/4533b377bef2eed92f5cf978dc051fe822360c5a/ServiceMonitorBroadcaster.java/buggy/kernel/src/java/org/gbean/kernel/ServiceMonitorBroadcaster.java
} catch (Exception e) {
} catch (Throwable e) {
public void serviceUnregistered(ServiceEvent serviceEvent) { List errors = new ArrayList(); Set serviceMonitors = getServiceMonitors(serviceEvent.getServiceName()); for (Iterator iterator = serviceMonitors.iterator(); iterator.hasNext();) { ServiceMonitor serviceMonitor = (ServiceMon...
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/4533b377bef2eed92f5cf978dc051fe822360c5a/ServiceMonitorBroadcaster.java/buggy/kernel/src/java/org/gbean/kernel/ServiceMonitorBroadcaster.java
serviceMonitors.put(serviceName, serviceMonitor);
serviceMonitors.put(serviceName, monitors);
public void addServiceMonitor(ServiceMonitor serviceMonitor, ServiceName serviceName) { synchronized (serviceMonitors) { Set monitors = (Set) serviceMonitors.get(serviceName); if (monitors == null) { monitors = new LinkedHashSet(); serviceMonitors.put(servi...
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/4533b377bef2eed92f5cf978dc051fe822360c5a/ServiceMonitorBroadcaster.java/buggy/kernel/src/java/org/gbean/kernel/ServiceMonitorBroadcaster.java
DataHandler annotateDataObjects(Set nodes)
DataHandler annotateDataObjects(JFrame owner, Set nodes)
DataHandler annotateDataObjects(Set nodes) { Object uo; Set toAnnotate = new HashSet(); Iterator i = nodes.iterator(); while (i.hasNext()) { uo = ((ImageDisplay) i.next()).getHierarchyObject(); if (uo instanceof DataObject) toAnnotate.add(uo); } dataHandler = AnnotatorFactory.getAnnotator(toAnnotate, Hi...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/464efde90db6bc5095c0a7e5952f51ad0f37ca86/HiViewerModel.java/clean/SRC/org/openmicroscopy/shoola/agents/hiviewer/view/HiViewerModel.java
dataHandler = AnnotatorFactory.getAnnotator(toAnnotate, HiViewerAgent.getRegistry());
dataHandler = AnnotatorFactory.getAnnotator(owner, toAnnotate, HiViewerAgent.getRegistry());
DataHandler annotateDataObjects(Set nodes) { Object uo; Set toAnnotate = new HashSet(); Iterator i = nodes.iterator(); while (i.hasNext()) { uo = ((ImageDisplay) i.next()).getHierarchyObject(); if (uo instanceof DataObject) toAnnotate.add(uo); } dataHandler = AnnotatorFactory.getAnnotator(toAnnotate, Hi...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/464efde90db6bc5095c0a7e5952f51ad0f37ca86/HiViewerModel.java/clean/SRC/org/openmicroscopy/shoola/agents/hiviewer/view/HiViewerModel.java
DataHandler classifyImageObjects(ImageData[] nodes, int mode)
DataHandler classifyImageObjects(JFrame owner, ImageData[] nodes, int mode)
DataHandler classifyImageObjects(ImageData[] nodes, int mode) { Set images = new HashSet(nodes.length); for (int i = 0; i < nodes.length; i++) images.add(nodes[i]); dataHandler = ClassifierFactory.getClassifier(images, getRootLevel(), getRootID(), mode, HiViewerAgent.getRegistry()); return dataHandler; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/464efde90db6bc5095c0a7e5952f51ad0f37ca86/HiViewerModel.java/clean/SRC/org/openmicroscopy/shoola/agents/hiviewer/view/HiViewerModel.java
dataHandler = ClassifierFactory.getClassifier(images, getRootLevel(), getRootID(), mode, HiViewerAgent.getRegistry());
dataHandler = ClassifierFactory.getClassifier(owner, images, getRootLevel(), getRootID(), mode, HiViewerAgent.getRegistry());
DataHandler classifyImageObjects(ImageData[] nodes, int mode) { Set images = new HashSet(nodes.length); for (int i = 0; i < nodes.length; i++) images.add(nodes[i]); dataHandler = ClassifierFactory.getClassifier(images, getRootLevel(), getRootID(), mode, HiViewerAgent.getRegistry()); return dataHandler; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/464efde90db6bc5095c0a7e5952f51ad0f37ca86/HiViewerModel.java/clean/SRC/org/openmicroscopy/shoola/agents/hiviewer/view/HiViewerModel.java
public static RubyString m_new(Ruby ruby, RubyObject[] args) {
public static RubyString m_new(Ruby ruby, RubyObject recv, RubyObject[] args) {
public static RubyString m_new(Ruby ruby, RubyObject[] args) { RubyString newString = m_newString(ruby, ""); newString.callInit(args); return newString; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a9420f23379e292698ea011ab08fb480b4decbcc/RubyString.java/buggy/org/jruby/RubyString.java
newString.setRubyClass((RubyModule)recv);
public static RubyString m_new(Ruby ruby, RubyObject[] args) { RubyString newString = m_newString(ruby, ""); newString.callInit(args); return newString; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a9420f23379e292698ea011ab08fb480b4decbcc/RubyString.java/buggy/org/jruby/RubyString.java
zoomName.setGreekThreshold(0);
private void buildMagnifiedLabel() { // set up the magnified version of the module name zoomName = new PText(getName()); //zoomName.setGreekThreshold(0); zoomName.setFont(Constants.NAME_FONT); zoomName.setPickable(false); zoomName.setConstrainWidthToTextWidth(false); double zwidth; double zheight; //float ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/3f3ea64e35c2723f37a33a464e512fe8808d3775/ModuleView.java/buggy/SRC/org/openmicroscopy/shoola/agents/chainbuilder/piccolo/ModuleView.java
ruby.getRuntime().getOutputStream().println( args[i].isNil() ? "nil" : ((RubyString) args[i].funcall("to_s")).getValue());
String line = args[i].isNil() ? "nil" : args[i].toString(); if (line.endsWith("\n")) { ruby.getRuntime().getOutputStream().print(line); } else { ruby.getRuntime().getOutputStream().println(line); }
public static RubyObject puts(Ruby ruby, RubyObject recv, RubyObject args[]) { if (args.length == 0) { ruby.getRuntime().getOutputStream().println(); return ruby.getNil(); } for (int i = 0; i < args.length; i++) { if (args[i] != null) { if (args[i...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/56a7977143634286f5c14d96df0538899b2fcb1f/RubyKernel.java/buggy/org/jruby/RubyKernel.java
this.model = model; actionsMap = new HashMap();
this.model = model; actionsMap = new HashMap();
AnnotatorControl(Annotator model) { if (model == null) throw new NullPointerException("No model."); this.model = model; actionsMap = new HashMap(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/464efde90db6bc5095c0a7e5952f51ad0f37ca86/AnnotatorControl.java/buggy/SRC/org/openmicroscopy/shoola/agents/util/annotator/view/AnnotatorControl.java
{ super(); setProperties(); }
{ super(AnnotatorFactory.getOwner()); setProperties(); }
AnnotatorView() { super(); setProperties(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/464efde90db6bc5095c0a7e5952f51ad0f37ca86/AnnotatorView.java/buggy/SRC/org/openmicroscopy/shoola/agents/util/annotator/view/AnnotatorView.java
state = Annotator.DISCARDED; }
state = Annotator.DISCARDED; }
void discard() { cancel(); state = Annotator.DISCARDED; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/464efde90db6bc5095c0a7e5952f51ad0f37ca86/AnnotatorModel.java/buggy/SRC/org/openmicroscopy/shoola/agents/util/annotator/view/AnnotatorModel.java
AnnotationData getAnnotationType() { if (type.equals(DatasetData.class)) return new AnnotationData(AnnotationData.DATASET_ANNOTATION); return new AnnotationData(AnnotationData.IMAGE_ANNOTATION); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/464efde90db6bc5095c0a7e5952f51ad0f37ca86/AnnotatorModel.java/buggy/SRC/org/openmicroscopy/shoola/agents/util/annotator/view/AnnotatorModel.java
{ if (view == null) throw new NullPointerException("No view."); this.view = view; createActions(); attachListeners(); }
{ if (view == null) throw new NullPointerException("No view."); this.view = view; createActions(); attachListeners(); }
void initialize(AnnotatorView view) { if (view == null) throw new NullPointerException("No view."); this.view = view; createActions(); attachListeners(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/464efde90db6bc5095c0a7e5952f51ad0f37ca86/AnnotatorControl.java/buggy/SRC/org/openmicroscopy/shoola/agents/util/annotator/view/AnnotatorControl.java
statusBar = new StatusBar(); annotatorUI = new AnnotatorUI(model, controller); buildGUI();
statusBar = new StatusBar(); annotatorUI = new AnnotatorUI(model, controller); buildGUI();
void initialize(AnnotatorModel model, AnnotatorControl controller) { if (model == null) throw new IllegalArgumentException("No model."); if (controller == null) throw new IllegalArgumentException("No control."); this.controller = controller; statusBar = new StatusBar(); annotatorUI = new AnnotatorUI(mo...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/464efde90db6bc5095c0a7e5952f51ad0f37ca86/AnnotatorView.java/buggy/SRC/org/openmicroscopy/shoola/agents/util/annotator/view/AnnotatorView.java
ViewerSorter sorter = new ViewerSorter(); sorter.setAscending(false); HashMap sortedAnnotations = new HashMap(); Set set; Long index; Iterator i = map.keySet().iterator(), l; Iterator j; AnnotationData data; HashMap m; List timestamps, results, list; while (i.hasNext()) { index = (Long) i.next(); set = (Set) map.get(in...
ViewerSorter sorter = new ViewerSorter(); sorter.setAscending(false); HashMap sortedAnnotations = new HashMap(); Set set; Long index; Iterator i = map.keySet().iterator(), l; Iterator j; AnnotationData data; HashMap m; List timestamps, results, list; while (i.hasNext()) { index = (Long) i.next(); set = (Set) map.get(in...
void setAnnotations(Map map) { ViewerSorter sorter = new ViewerSorter(); sorter.setAscending(false); HashMap sortedAnnotations = new HashMap(); Set set; Long index; Iterator i = map.keySet().iterator(), l; Iterator j; AnnotationData data; HashMap m; List timestamps, re...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/464efde90db6bc5095c0a7e5952f51ad0f37ca86/AnnotatorModel.java/buggy/SRC/org/openmicroscopy/shoola/agents/util/annotator/view/AnnotatorModel.java
if (this.javaClass.isAssignableFrom(otherClass.javaClass)) {
if (otherClass.javaClass.isAssignableFrom(this.javaClass)) {
public RubyFixnum op_cmp(IRubyObject other) { if (! (other instanceof JavaClassClass)) { throw new TypeError(getRuntime(), "<=> requires JavaClass (" + other.getType() + " given)"); } JavaClassClass otherClass = (JavaClassClass) other; if (this.javaClass == otherClass.javaClas...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/8867170878d292dac835c96ea217060b505375f6/JavaClassClass.java/buggy/org/jruby/javasupport/JavaClassClass.java
{ initComponents(); buildUI(); }
{ initComponents(); buildUI(); }
StatusBar() { initComponents(); buildUI(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/464efde90db6bc5095c0a7e5952f51ad0f37ca86/StatusBar.java/clean/SRC/org/openmicroscopy/shoola/agents/util/annotator/view/StatusBar.java
{ setLayout(new BoxLayout(this, BoxLayout.X_AXIS)); setBorder(BorderFactory.createEtchedBorder()); JPanel p = new JPanel(); p.setLayout(new BoxLayout(p, BoxLayout.X_AXIS)); p.add(statusButton); p.add(status); add(UIUtilities.buildComponentPanel(p)); JPanel progress = new JPanel(); progress.setLayout(new BoxLayout(progr...
{ setLayout(new BoxLayout(this, BoxLayout.X_AXIS)); setBorder(BorderFactory.createEtchedBorder()); JPanel p = new JPanel(); p.setLayout(new BoxLayout(p, BoxLayout.X_AXIS)); p.add(statusButton); p.add(status); add(UIUtilities.buildComponentPanel(p)); JPanel progress = new JPanel(); progress.setLayout(new BoxLayout(progr...
private void buildUI() { setLayout(new BoxLayout(this, BoxLayout.X_AXIS)); setBorder(BorderFactory.createEtchedBorder()); JPanel p = new JPanel(); p.setLayout(new BoxLayout(p, BoxLayout.X_AXIS)); p.add(statusButton); p.add(status); add(UIUtilities.buildComponentPanel(p)); JPan...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/464efde90db6bc5095c0a7e5952f51ad0f37ca86/StatusBar.java/clean/SRC/org/openmicroscopy/shoola/agents/util/annotator/view/StatusBar.java
{ IconManager icons = IconManager.getInstance(); progressBar = new JProgressBar(); progressBar.setIndeterminate(true); progressBar.setVisible(false); status = new JLabel(); statusButton = new JButton(icons.getIcon(IconManager.INFO)); statusButton.setBorder(null); statusButton.setBorderPainted(false); statusButton.setFo...
{ IconManager icons = IconManager.getInstance(); progressBar = new JProgressBar(); progressBar.setIndeterminate(true); progressBar.setVisible(false); status = new JLabel(); statusButton = new JButton(icons.getIcon(IconManager.INFO)); statusButton.setBorder(null); statusButton.setBorderPainted(false); statusButton.setFo...
private void initComponents() { IconManager icons = IconManager.getInstance(); progressBar = new JProgressBar(); progressBar.setIndeterminate(true); progressBar.setVisible(false); status = new JLabel(); statusButton = new JButton(icons.getIcon(IconManager.INFO)); statusButton.setBorder(n...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/464efde90db6bc5095c0a7e5952f51ad0f37ca86/StatusBar.java/clean/SRC/org/openmicroscopy/shoola/agents/util/annotator/view/StatusBar.java
{ progressBar.setVisible(!hide); }
{ progressBar.setVisible(!hide); }
void setProgress(boolean hide) { progressBar.setVisible(!hide); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/464efde90db6bc5095c0a7e5952f51ad0f37ca86/StatusBar.java/clean/SRC/org/openmicroscopy/shoola/agents/util/annotator/view/StatusBar.java
SoftwareUpdateDialog d = new SoftwareUpdateDialog(view);
String message = loadAbout(container.resolveConfigFile(ABOUT_FILE)); SoftwareUpdateDialog d = new SoftwareUpdateDialog(view, message);
private void softWareUpdates() { SoftwareUpdateDialog d = new SoftwareUpdateDialog(view); UIUtilities.centerAndShow(d); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/bbd964029121f2811ba2b7cf47a392087032888c/TaskBarManager.java/clean/SRC/org/openmicroscopy/shoola/env/ui/TaskBarManager.java
Iterator i = chain.iterator();
private void buildLUT() { LUT = new int[intervalEnd-intervalStart+1]; CodomainMap map; CodomainMapContext ctx; int v; Iterator i = chain.iterator(); for (int x = intervalStart; x <= intervalEnd; ++x) { v = x; while (i.hasNext()) { ctx = (CodomainMapContext) i.next(); map = ctx.getCodomainMap(); map....
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1af109c95da3a7c178aa582fbdc0a6c825b00e8c/CodomainChain.java/buggy/SRC/org/openmicroscopy/shoola/env/rnd/codomain/CodomainChain.java
Iterator i = chain.iterator();
private void buildLUT() { LUT = new int[intervalEnd-intervalStart+1]; CodomainMap map; CodomainMapContext ctx; int v; Iterator i = chain.iterator(); for (int x = intervalStart; x <= intervalEnd; ++x) { v = x; while (i.hasNext()) { ctx = (CodomainMapContext) i.next(); map = ctx.getCodomainMap(); map....
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1af109c95da3a7c178aa582fbdc0a6c825b00e8c/CodomainChain.java/buggy/SRC/org/openmicroscopy/shoola/env/rnd/codomain/CodomainChain.java
verifyInput(x); return LUT[x-intervalStart];
int y = verifyInput(x); return LUT[y-intervalStart];
public int transform(int x) { verifyInput(x); return LUT[x-intervalStart]; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1af109c95da3a7c178aa582fbdc0a6c825b00e8c/CodomainChain.java/buggy/SRC/org/openmicroscopy/shoola/env/rnd/codomain/CodomainChain.java
private void verifyInput(int x)
private int verifyInput(int x)
private void verifyInput(int x) { if (x < intervalStart || x > intervalEnd) throw new IllegalArgumentException( "Value not in the codomain interval: "+x); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1af109c95da3a7c178aa582fbdc0a6c825b00e8c/CodomainChain.java/buggy/SRC/org/openmicroscopy/shoola/env/rnd/codomain/CodomainChain.java
if (x < intervalStart || x > intervalEnd) throw new IllegalArgumentException( "Value not in the codomain interval: "+x);
if (x < intervalStart) x = intervalStart; else if (x > intervalEnd) x = intervalEnd; return x;
private void verifyInput(int x) { if (x < intervalStart || x > intervalEnd) throw new IllegalArgumentException( "Value not in the codomain interval: "+x); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1af109c95da3a7c178aa582fbdc0a6c825b00e8c/CodomainChain.java/buggy/SRC/org/openmicroscopy/shoola/env/rnd/codomain/CodomainChain.java
list.ensureCapacity(length + repList.size());
list.ensureCapacity(getLength() + repList.size());
public void replace(long beg, long len, RubyObject repl) { int length = getLength(); if (len < 0) { throw new RubyIndexException(getRuby(), "Negative array length: " + len); } if (beg < 0) { beg += length; } if (beg < 0) { throw new RubyInde...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/660b7879d081027cb03812f6959ce8a44648c316/RubyArray.java/clean/org/jruby/RubyArray.java
abstraction.showPresentation();
showPresentation();
public void actionPerformed(ActionEvent e) { String s = (String) e.getActionCommand(); try { int index = Integer.parseInt(s); switch (index) { case R_VISIBLE: abstraction.showPresentation(); break; case SAVE: saveDisplayOptions(); break; case GREY: case RGB: case HSB: acti...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/e717f628b707987e5b693ea9d57b6ef34b300679/RenderingAgtCtrl.java/clean/SRC/org/openmicroscopy/shoola/agents/rnd/RenderingAgtCtrl.java
cd.clear();
clearEventContext();
private Principal clearAndCheckPrincipal() { // clear even if this fails. (make SecuritySystem unusable) cd.clear(); final Principal p = principalHolder.get(); if (p == null) throw new SecurityViolation( "Principal is null. Not logged in to SecuritySystem."); if (p.getName() == null) throw new Interna...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/abb75611ecbe8038586bfc5b8903fe7fb0b36a3e/BasicSecuritySystem.java/buggy/components/server/src/ome/security/basic/BasicSecuritySystem.java
if ( log.isDebugEnabled() ) log.debug("Clearing EventContext.");
public void clearEventContext() { cd.clear(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/abb75611ecbe8038586bfc5b8903fe7fb0b36a3e/BasicSecuritySystem.java/buggy/components/server/src/ome/security/basic/BasicSecuritySystem.java
if ( log.isDebugEnabled() ) log.debug("Clearing EventLogs.");
public void clearLogs( ) { cd.clearLogs(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/abb75611ecbe8038586bfc5b8903fe7fb0b36a3e/BasicSecuritySystem.java/buggy/components/server/src/ome/security/basic/BasicSecuritySystem.java
private static Vector getListOfFiles(File file, boolean recursive) {
private static Vector getListOfFiles(File file, boolean recursive) {
private static Vector getListOfFiles(File file, boolean recursive) { Vector ret = new Vector(); if (file.isFile()) { ret.add(file.getAbsolutePath()); } else if (file.isDirectory()) { File[] files = file.listFiles(new FileFilter() { public boolean accept(File pathname) { return pathname.isDirector...
50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/12464e2c222b85c4fe40070c50e015403ce5acfe/Util.java/buggy/cobertura/src/net/sourceforge/cobertura/reporting/Util.java
if (file.isFile()) {
if (file.isFile()) {
private static Vector getListOfFiles(File file, boolean recursive) { Vector ret = new Vector(); if (file.isFile()) { ret.add(file.getAbsolutePath()); } else if (file.isDirectory()) { File[] files = file.listFiles(new FileFilter() { public boolean accept(File pathname) { return pathname.isDirector...
50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/12464e2c222b85c4fe40070c50e015403ce5acfe/Util.java/buggy/cobertura/src/net/sourceforge/cobertura/reporting/Util.java
} else if (file.isDirectory()) { File[] files = file.listFiles(new FileFilter() { public boolean accept(File pathname) {
} else if (file.isDirectory()) { File[] files = file.listFiles(new FileFilter() { public boolean accept(File pathname) {
private static Vector getListOfFiles(File file, boolean recursive) { Vector ret = new Vector(); if (file.isFile()) { ret.add(file.getAbsolutePath()); } else if (file.isDirectory()) { File[] files = file.listFiles(new FileFilter() { public boolean accept(File pathname) { return pathname.isDirector...
50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/12464e2c222b85c4fe40070c50e015403ce5acfe/Util.java/buggy/cobertura/src/net/sourceforge/cobertura/reporting/Util.java
for (int i = 0; i < files.length; i++) { if (recursive) {
for (int i = 0; i < files.length; i++) { if (recursive) {
private static Vector getListOfFiles(File file, boolean recursive) { Vector ret = new Vector(); if (file.isFile()) { ret.add(file.getAbsolutePath()); } else if (file.isDirectory()) { File[] files = file.listFiles(new FileFilter() { public boolean accept(File pathname) { return pathname.isDirector...
50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/12464e2c222b85c4fe40070c50e015403ce5acfe/Util.java/buggy/cobertura/src/net/sourceforge/cobertura/reporting/Util.java
} else { if (files[i].isFile()) {
} else { if (files[i].isFile()) {
private static Vector getListOfFiles(File file, boolean recursive) { Vector ret = new Vector(); if (file.isFile()) { ret.add(file.getAbsolutePath()); } else if (file.isDirectory()) { File[] files = file.listFiles(new FileFilter() { public boolean accept(File pathname) { return pathname.isDirector...
50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/12464e2c222b85c4fe40070c50e015403ce5acfe/Util.java/buggy/cobertura/src/net/sourceforge/cobertura/reporting/Util.java
public boolean accept(File pathname) {
public boolean accept(File pathname) {
public boolean accept(File pathname) { return pathname.isDirectory() || pathname.getAbsolutePath().endsWith(".java"); }
50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/12464e2c222b85c4fe40070c50e015403ce5acfe/Util.java/buggy/cobertura/src/net/sourceforge/cobertura/reporting/Util.java
Details d = newEnum.getDetails(); d.setOwner( new Experimenter( 0L, false ) ); d.setGroup( new ExperimenterGroup( 0L, false ) ); d.setPermissions( Permissions.DEFAULT ); d.setCreationEvent( getSecuritySystem().currentEvent() );
public <T extends IEnum> T createEnumeration( T newEnum ) { final LocalUpdate up = iUpdate; return getSecuritySystem().doAction(newEnum, new SecureAction(){ public IObject updateObject(IObject iObject) { return up.saveAndReturnObject(iObject); } }); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/e6b7ac4062ce844e31078de77a00a7ab77e5e5d5/TypesImpl.java/clean/components/server/src/ome/logic/TypesImpl.java
recv.callMethod("write", fs.toRubyObject());
recv.callMethod("write", fs);
public static IRubyObject print(IRubyObject recv, IRubyObject args[]) { if (args.length == 0) { args = new IRubyObject[] { recv.getRuntime().getLastline()}; } IRubyObject fs = recv.getRuntime().getGlobalVar("$,"); IRubyObject rs = recv.getRuntime().getGlobalVar("$\\"); ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f235ab756f32ea9496f8f880066b46ad95ebb692/RubyIO.java/buggy/org/jruby/RubyIO.java
recv.callMethod("write", rs.toRubyObject());
recv.callMethod("write", rs);
public static IRubyObject print(IRubyObject recv, IRubyObject args[]) { if (args.length == 0) { args = new IRubyObject[] { recv.getRuntime().getLastline()}; } IRubyObject fs = recv.getRuntime().getGlobalVar("$,"); IRubyObject rs = recv.getRuntime().getGlobalVar("$\\"); ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f235ab756f32ea9496f8f880066b46ad95ebb692/RubyIO.java/buggy/org/jruby/RubyIO.java
public void setHierarchyRoots(Set roots, boolean flat);
public void setHierarchyRoots(Set roots, boolean flat, boolean refresh);
public void setHierarchyRoots(Set roots, boolean flat);
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/fb3743d6f75abbf12f788b3b2925f4a6f4606dd6/HiViewer.java/clean/SRC/org/openmicroscopy/shoola/agents/hiviewer/view/HiViewer.java
classClass.defineSingletonMethod("inherited", CallbackFactory.getNilMethod());
classClass.defineSingletonMethod("inherited", CallbackFactory.getNilMethod(1));
public static void createClassClass(RubyClass classClass) { classClass.defineSingletonMethod("new", CallbackFactory.getOptSingletonMethod(RubyClass.class, "newInstance")); classClass.defineMethod("new", CallbackFactory.getOptMethod(RubyClass.class, "newInstance")); classClass.defineMethod("supe...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/6076c5ab87d25a488469aa1a32f1d2c9c9e470b2/RubyClass.java/clean/org/jruby/RubyClass.java
try { ruby.getRubyTopSelf().eval(ruby.getRubyParser().compileString(iFileName, rs, 0)); } catch (RaiseException rExcptn) { System.out.println(rExcptn.getActException().m_to_s().getValue()); }
try { ruby.getRubyTopSelf().eval(ruby.getRubyParser().compileString(iFileName, rs, 0)); } catch (RaiseException rExcptn) { System.out.println(rExcptn.getActException().m_to_s().getValue()); }
protected static void runInterpreter(String iString2Eval, String iFileName, String[] args) { // Initialize Runtime Ruby ruby = new Ruby(); if (sRegexpAdapter == null) { try { sRegexpAdapter = Class.forName("org.jruby.regexp.GNURegexpAdapter"); } catch (Excep...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/Main.java/clean/org/jruby/Main.java
public void load(File file) throws XmlException, IOException{
public void load(String path) throws XmlException, IOException{ IWUserContext iwuc = IWContext.getInstance(); IWApplicationContext iwac = iwuc.getApplicationContext(); IWSlideSession session = (IWSlideSession)IBOLookup.getSessionInstance(iwuc,IWSlideSession.class); IWSlideService service = (IWSlideService)IBOLookup.ge...
public void load(File file) throws XmlException, IOException{ ArticleDocument articleDoc; articleDoc = ArticleDocument.Factory.parse(file); ArticleDocument.Article article = articleDoc.getArticle();// ArticleItemBean articleBean = new ArticleItemBean(); setHeadline(article.getHeadline()); setBod...
57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/72fe15183822be99f6dfa9d697bce89864c5f7d8/ArticleItemBean.java/clean/src/java/com/idega/block/article/bean/ArticleItemBean.java
articleDoc = ArticleDocument.Factory.parse(file);
articleDoc = ArticleDocument.Factory.parse(webdavResource.getMethodDataAsString());
public void load(File file) throws XmlException, IOException{ ArticleDocument articleDoc; articleDoc = ArticleDocument.Factory.parse(file); ArticleDocument.Article article = articleDoc.getArticle();// ArticleItemBean articleBean = new ArticleItemBean(); setHeadline(article.getHeadline()); setBod...
57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/72fe15183822be99f6dfa9d697bce89864c5f7d8/ArticleItemBean.java/clean/src/java/com/idega/block/article/bean/ArticleItemBean.java
String category = ""; int lastSlash = path.lastIndexOf('/'); if(lastSlash>0) { category = path.substring(0,lastSlash); } setMainCategory(category);
public void load(File file) throws XmlException, IOException{ ArticleDocument articleDoc; articleDoc = ArticleDocument.Factory.parse(file); ArticleDocument.Article article = articleDoc.getArticle();// ArticleItemBean articleBean = new ArticleItemBean(); setHeadline(article.getHeadline()); setBod...
57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/72fe15183822be99f6dfa9d697bce89864c5f7d8/ArticleItemBean.java/clean/src/java/com/idega/block/article/bean/ArticleItemBean.java
article.setHeadline(getHeadline()); article.setBody(getBody()); article.setTeaser(getTeaser()); article.setAuthor(getAuthor()); article.setSource(getSource()); article.setComment(getComment());
article.setHeadline(getHeadline()); article.setBody(getBody()); article.setTeaser(getTeaser()); article.setAuthor(getAuthor()); article.setSource(getSource()); article.setComment(getComment());
public Boolean store() { boolean storeOk = true; clearErrorKeys(); ArticleDocument articleDoc = ArticleDocument.Factory.newInstance(); ArticleDocument.Article article = articleDoc.addNewArticle(); if (getHeadline().trim().equals("")) { addErrorKey(KEY_ERROR_HEADLINE_EMPTY); storeOk = false; ...
57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/72fe15183822be99f6dfa9d697bce89864c5f7d8/ArticleItemBean.java/clean/src/java/com/idega/block/article/bean/ArticleItemBean.java
String filename = getHeadline(); if(null==filename || filename.length()==0) { filename = "empty";
String filename = getHeadline(); if(null==filename || filename.length()==0) { filename = "empty"; } /* File path = new File(getMainCategory()); if(!path.exists()) { path.mkdirs();
public Boolean store() { boolean storeOk = true; clearErrorKeys(); ArticleDocument articleDoc = ArticleDocument.Factory.newInstance(); ArticleDocument.Article article = articleDoc.addNewArticle(); if (getHeadline().trim().equals("")) { addErrorKey(KEY_ERROR_HEADLINE_EMPTY); storeOk = false; ...
57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/72fe15183822be99f6dfa9d697bce89864c5f7d8/ArticleItemBean.java/clean/src/java/com/idega/block/article/bean/ArticleItemBean.java
try { articleDoc.save(new File("/Test/article/"+filename+".xml"));
*/ try { IWUserContext iwuc = IWContext.getInstance(); IWApplicationContext iwac = iwuc.getApplicationContext(); IWSlideSession session = (IWSlideSession)IBOLookup.getSessionInstance(iwuc,IWSlideSession.class); IWSlideService service = (IWSlideService)IBOLookup.getServiceInstance(iwac,IWSlideService.class); System.ou...
public Boolean store() { boolean storeOk = true; clearErrorKeys(); ArticleDocument articleDoc = ArticleDocument.Factory.newInstance(); ArticleDocument.Article article = articleDoc.addNewArticle(); if (getHeadline().trim().equals("")) { addErrorKey(KEY_ERROR_HEADLINE_EMPTY); storeOk = false; ...
57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/72fe15183822be99f6dfa9d697bce89864c5f7d8/ArticleItemBean.java/clean/src/java/com/idega/block/article/bean/ArticleItemBean.java
public static final String createToolTip(String text) {
public static final String createToolTip(String text, int width) {
public static final String createToolTip(String text) { final String htmlColor = toHTMLColor(TOOLTIP_COLOR); final String toolTip = "<html><table bgColor=" + htmlColor + "><tr><td>" + text + "</td></tr></table></table>"; return toolTip; }
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/89fd2815c162e5d302583d26afbc300dc5aec22f/GraphicUtils.java/clean/src/java/org/jivesoftware/spark/util/GraphicUtils.java
final String toolTip = "<html><table bgColor=" + htmlColor + "><tr><td>" + text + "</td></tr></table></table>";
final String toolTip = "<html><table width=" + width + " bgColor=" + htmlColor + "><tr><td>" + text + "</td></tr></table></table>";
public static final String createToolTip(String text) { final String htmlColor = toHTMLColor(TOOLTIP_COLOR); final String toolTip = "<html><table bgColor=" + htmlColor + "><tr><td>" + text + "</td></tr></table></table>"; return toolTip; }
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/89fd2815c162e5d302583d26afbc300dc5aec22f/GraphicUtils.java/clean/src/java/org/jivesoftware/spark/util/GraphicUtils.java
short[] t = new short[t1.length + t2.length]; System.arraycopy(t1, 0, t, 0, t1.length); System.arraycopy(t2, 0, t, t1.length, t2.length); return t; }
short[] t = new short[t1.length + t2.length]; System.arraycopy(t1, 0, t, 0, t1.length); System.arraycopy(t2, 0, t, t1.length, t2.length); return t; }
private static short[] combine(short[] t1, short[] t2) { short[] t = new short[t1.length + t2.length]; System.arraycopy(t1, 0, t, 0, t1.length); System.arraycopy(t2, 0, t, t1.length, t2.length); return t; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/YyTables.java/buggy/org/jruby/parser/YyTables.java
return combine(yyCheck1(), yyCheck2()); }
return combine(yyCheck1(), yyCheck2()); }
public static final short[] yyCheck() { return combine(yyCheck1(), yyCheck2()); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/YyTables.java/buggy/org/jruby/parser/YyTables.java
return new short[] { 2, 3, 215, 19, 20, 184, 8, 9, 10, 11, 6, 7, 14, 330, 6, 84, 27, 19, 20, 7, 11, 301, 341, 123, 26, 46, 10, 21, 10, 53, 346, 27, 46, 57, 53, 54, 10, 221, 55, 27, 333, 592, 46, 10, 10, 10, 594, 10, 124, 236, 52, 53, ...
return new short[] { 2, 3, 27, 216, 46, 21, 8, 9, 10, 11, 342, 7, 14, 184, 6, 46, 347, 19, 20, 334, 11, 302, 10, 10, 26, 222, 124, 594, 9, 10, 11, 27, 52, 6, 7, 46, 53, 55, 300, 301, 57, 10, 10, 10, 10, 26, 308, 309, 46, 91, 52, 53...
private static final short[] yyCheck1() { return new short[] { 2, 3, 215, 19, 20, 184, 8, 9, 10, 11, 6, 7, 14, 330, 6, 84, 27, 19, 20, 7, 11, 301, 341, 123, 26, 46, 10, 21, 10, 53, 346, 27, 46, 57, 53, 54, 10, ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/YyTables.java/buggy/org/jruby/parser/YyTables.java
return new short[] { -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, 93, 94, -1, -1, -1, -1, -1, -1, 281, 282, -1, -1, -1, -1, -1, -1, -1, 290, 291, ...
return new short[] { 326, 327, 328, 329, 330, 331, 332, 333, 334, -1, -1, 337, 338, 37, 38, -1, 342, 41, 42, 43, 44, 45, -1, 47, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 58, 59, 60, -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -...
private static final short[] yyCheck2() { return new short[] { -1, 62, 63, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 262, 263, 264, -1, -1, 267, 268, 269, -1, 271, -1, 93, 94, -1, -1, -1, ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/YyTables.java/buggy/org/jruby/parser/YyTables.java
return combine(yyTable1(), yyTable2()); }
return combine(yyTable1(), yyTable2()); }
public static final short[] yyTable() { return combine(yyTable1(), yyTable2()); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/YyTables.java/buggy/org/jruby/parser/YyTables.java
return new short[] { 67, 67, 365, 211, 211, 340, 67, 67, 67, 67, 166, 166, 197, 488, 165, 318, 227, 210, 210, 178, 190, 447, 504, 305, 67, 308, 228, 222, 218, 241, 512, 166, 328, 260, 244, 248, 415, 371, 252, 178, 498, 657, 300, 185, 415, 312, 659, 219, 569, 384, 67, 2...
return new short[] { 67, 67, 228, 365, 301, 223, 67, 67, 67, 67, 504, 178, 197, 341, 165, 350, 512, 210, 210, 498, 190, 447, 229, 229, 67, 371, 569, 659, 181, 184, 187, 178, 239, 166, 166, 309, 242, 253, 439, 445, 261, 219, 415, 415, 390, 226, 453, 454, 359, 302, 67, ...
private static final short[] yyTable1() { return new short[] { 67, 67, 365, 211, 211, 340, 67, 67, 67, 67, 166, 166, 197, 488, 165, 318, 227, 210, 210, 178, 190, 447, 504, 305, 67, 308, 228, 222, 218, 241, 512, 166, 328, 260, 244, 248, 415, 3...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/YyTables.java/buggy/org/jruby/parser/YyTables.java
return new short[] { 161, 161, 161, 161, 161, 0, 161, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 161, 161, 161, 0, 161, 161, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 181, 181, 181, 0, 0, 181, 181, 181, 0, 181, 0, ...
return new short[] { 162, 162, 162, 162, 162, 162, 162, 162, 162, 0, 0, 162, 162, 163, 163, 0, 162, 163, 163, 163, 163, 163, 0, 163, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 163, 163, 163, 0, 163, 163, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
private static final short[] yyTable2() { return new short[] { 161, 161, 161, 161, 161, 0, 161, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 161, 161, 161, 0, 161, 161, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/YyTables.java/buggy/org/jruby/parser/YyTables.java
return "Feature"+(featureId==null ? ":Hash"+this.hashCode() : ":"+featureId);
return "Feature"+(featureId==null ? ":Hash_"+this.hashCode() : ":Id_"+featureId);
public String toString(){ return "Feature"+(featureId==null ? ":Hash"+this.hashCode() : ":"+featureId); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/51a3c546dfc7a7a98b29771a459df19094fc5b51/Feature.java/clean/components/common/src/ome/model/Feature.java
super(parameters);
super( defs, parameters );
public PojosFindAnnotationsQueryDefinition(QueryParameter... parameters) { super(parameters); // TODO set local fields here. }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/f990a7d35ce265e182121d562725175896db41f4/PojosFindAnnotationsQueryDefinition.java/clean/components/server/src/ome/services/query/PojosFindAnnotationsQueryDefinition.java
super.paintComponent(g);
public void paintComponent(Graphics g) { Graphics2D g2D = (Graphics2D) g; g2D.setColor(getBackground()); g2D.fillRect(0, 0, width, height); //FONT settings. Font font = g2D.getFont(); FontMetrics fontMetrics = g2D.getFontMetrics(); int hFont = fontMetrics.getHeight(); Rectangle2D rStart = font.getStringBounds(...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/6a28b54c142c80cf786f76c45b6be256d92fd0bb/GraphicsRepresentation.java/buggy/SRC/org/openmicroscopy/shoola/agents/rnd/pane/GraphicsRepresentation.java
super.repaint();
repaint();
private void repaintCurve() { quad.setCurve(startPt, controlPt, endPt); super.repaint(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/6a28b54c142c80cf786f76c45b6be256d92fd0bb/GraphicsRepresentation.java/buggy/SRC/org/openmicroscopy/shoola/agents/rnd/pane/GraphicsRepresentation.java
byte[] bs = new byte[len];
public IRubyObject sysread(IRubyObject[] args) throws Exception { // System.err.println("WARNING: unimplemented method called: SSLSocket#sysread"); checkArgumentCount(args,1,2); int len = RubyNumeric.fix2int(args[0]); byte[] bs = new byte[len]; IRubyObject str = args.length...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/fe628a940467ceda783730ea34173dec3d365fa4/SSLSocket.java/buggy/src/org/jruby/ext/openssl/SSLSocket.java
interpreter.PUSH_ITER(0);
interpreter.getRubyIter().push(Iter.ITER_NOT);
public RubyObject call0(RubyObject recv, RubyId id, RubyObject[] args, NODE body, boolean noSuper) { // ... RubyInterpreter interpreter = getRuby().getInterpreter(); interpreter.getRubyFrame().push(); interpreter.PUSH_ITER(0); interpreter.getRubyFrame().set...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f1e2c45b99e6f9a2be3f15f5fd7ad91c7e086a2c/RubyModule.java/buggy/org/jruby/RubyModule.java
interpreter.POP_ITER();
interpreter.getRubyIter().pop();
public RubyObject call0(RubyObject recv, RubyId id, RubyObject[] args, NODE body, boolean noSuper) { // ... RubyInterpreter interpreter = getRuby().getInterpreter(); interpreter.getRubyFrame().push(); interpreter.PUSH_ITER(0); interpreter.getRubyFrame().set...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f1e2c45b99e6f9a2be3f15f5fd7ad91c7e086a2c/RubyModule.java/buggy/org/jruby/RubyModule.java
instanceVariables = new HashMap();
instanceVariables = Collections.synchronizedMap(new HashMap());
public Map getInstanceVariables() { // TODO: double checking may or may not be safe enough here if (instanceVariables == null) { synchronized (this) { if (instanceVariables == null) { instanceVariables = new HashMap(); } } } return instanceVariables; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/8ba215b45e1c5d4c7c521b253d9715a3cfdd6a34/RubyObject.java/clean/src/org/jruby/RubyObject.java
if(getInstanceVariables().size() > 0) { StringBuffer part = new StringBuffer(); String cname = getMetaClass().getRealClass().getName(); part.append("#<").append(cname).append(":0x"); part.append(Integer.toHexString(System.identityHashCode(this))); part.append(" "); if(!getRuntime().registerInspecting(this)) { /* 6:tags...
public IRubyObject inspect() {// if(getInstanceVariables().size() > 0) {// StringBuffer part = new StringBuffer();// String cname = getMetaClass().getRealClass().getName();// part.append("#<").append(cname).append(":0x");// part.append(Integer.toHexString(System.id...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/8ba215b45e1c5d4c7c521b253d9715a3cfdd6a34/RubyObject.java/clean/src/org/jruby/RubyObject.java
Iterator iter = instanceVariableNames(); while (iter.hasNext()) { String name = (String) iter.next(); names.add(getRuntime().newString(name));
for(Iterator iter = getInstanceVariablesSnapshot().keySet().iterator();iter.hasNext();) { names.add(getRuntime().newString((String)iter.next()));
public RubyArray instance_variables() { ArrayList names = new ArrayList(); Iterator iter = instanceVariableNames(); while (iter.hasNext()) { String name = (String) iter.next(); names.add(getRuntime().newString(name)); } return getRuntime().newArray(names); ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/8ba215b45e1c5d4c7c521b253d9715a3cfdd6a34/RubyObject.java/clean/src/org/jruby/RubyObject.java
output.dumpInt(getInstanceVariables().size()); for (Iterator iter = instanceVariableNames(); iter.hasNext();) {
Map iVars = getInstanceVariablesSnapshot(); output.dumpInt(iVars.size()); for (Iterator iter = iVars.keySet().iterator(); iter.hasNext();) {
public void marshalTo(MarshalStream output) throws java.io.IOException { output.write('o'); RubySymbol classname = RubySymbol.newSymbol(getRuntime(), getMetaClass().getName()); output.dumpObject(classname); output.dumpInt(getInstanceVariables().size()); for (Iterator iter ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/8ba215b45e1c5d4c7c521b253d9715a3cfdd6a34/RubyObject.java/clean/src/org/jruby/RubyObject.java
IRubyObject value = getInstanceVariable(name); if (value != null) { output.dumpObject(RubySymbol.newSymbol(getRuntime(), name)); output.dumpObject(value); }
IRubyObject value = (IRubyObject)iVars.get(name); output.dumpObject(RubySymbol.newSymbol(getRuntime(), name)); output.dumpObject(value);
public void marshalTo(MarshalStream output) throws java.io.IOException { output.write('o'); RubySymbol classname = RubySymbol.newSymbol(getRuntime(), getMetaClass().getName()); output.dumpObject(classname); output.dumpInt(getInstanceVariables().size()); for (Iterator iter ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/8ba215b45e1c5d4c7c521b253d9715a3cfdd6a34/RubyObject.java/clean/src/org/jruby/RubyObject.java
this.instanceVariables = instanceVariables;
this.instanceVariables = Collections.synchronizedMap(instanceVariables);
public void setInstanceVariables(Map instanceVariables) { this.instanceVariables = instanceVariables; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/8ba215b45e1c5d4c7c521b253d9715a3cfdd6a34/RubyObject.java/clean/src/org/jruby/RubyObject.java
dataBuf.setElem(0, sizeX1*x2+x1, (int) (v*alpha/255));
dataBuf.setElem(0, sizeX1*x2+x1, (int) (v*alpha));
private void renderWave(DataBufferByte dataBuf, Plane2D plane, QuantumStrategy qs, int[] rgba) throws DataSourceException { CodomainChain cc = renderer.getCodomainChain(); int x1, x2, discreteValue, v; float alpha = ((float) rgba[3])/255; for (x2 = 0; x2 < sizeX2; ++x2) for (x1 = 0; x1 < sizeX1; ++x1) { d...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/4c94af7f055ed3d82a3ce0f1158a59b7e905262f/GreyScaleStrategy.java/buggy/SRC/org/openmicroscopy/shoola/env/rnd/GreyScaleStrategy.java