rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
LOGGER.debug("addClassData: " + classData.getName()); String parentClassName = getClassNameIgnoreInner(classData.getName()); LOGGER.debug("\tparentClassName = " + parentClassName); String keyName = new ClassData(parentClassName).getBaseName(); LOGGER.debug("\tkeyName = " + keyName); ClassData parent = getClassData(c... | String sourceFileName = classData.getSourceFileName(); SourceFileData sourceFileData = (SourceFileData)children.get(sourceFileName); if (sourceFileData == null) { sourceFileData = new SourceFileData(sourceFileName); this.children.put(sourceFileName, sourceFileData); } sourceFileData.addClassData(classData); | public void addClassData(ClassData classData) { // this method aggregates data if classData is an inner class // with the data from the top level class that it is contained in LOGGER.debug("addClassData: " + classData.getName()); String parentClassName = getClassNameIgnoreInner(classData.getName()); ... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/2d04adc2554406c41824d5b965907076ecdceb80/PackageData.java/buggy/cobertura/src/net/sourceforge/cobertura/coveragedata/PackageData.java |
delegate = (IPojos) applicationContext.getBean( IPojos.class.getName()); | delegate = serviceFactory.getPojosService(); | public void create() { super.create(); delegate = (IPojos) applicationContext.getBean( IPojos.class.getName()); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/dc8dde051a1e2b716514b3964c9222ce006ebea9/PojosBean.java/buggy/components/ejb/src/ome/ro/ejb/PojosBean.java |
return wrap( context, "&pojosService" ); | return wrap( context, IPojos.class ); | public Object invoke( InvocationContext context ) throws Exception { return wrap( context, "&pojosService" ); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/dc8dde051a1e2b716514b3964c9222ce006ebea9/PojosBean.java/buggy/components/ejb/src/ome/ro/ejb/PojosBean.java |
while (iter.hasNext()) { | IRubyObject obj = null; while ((obj = (IRubyObject)iter.next()) != null) { | public static IRubyObject each_object(IRubyObject recv, IRubyObject[] args) { RubyModule rubyClass; if (args.length == 0) { rubyClass = recv.getRuntime().getObject(); } else { rubyClass = (RubyModule) args[0]; } int count = 0; Iterator iter = recv.getR... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/448643c70dc9b78a7d89a851b9202699d07cfbb3/RubyObjectSpace.java/clean/src/org/jruby/RubyObjectSpace.java |
recv.getRuntime().getCurrentContext().yield(((IRubyObject) iter.next())); | recv.getRuntime().getCurrentContext().yield(obj); | public static IRubyObject each_object(IRubyObject recv, IRubyObject[] args) { RubyModule rubyClass; if (args.length == 0) { rubyClass = recv.getRuntime().getObject(); } else { rubyClass = (RubyModule) args[0]; } int count = 0; Iterator iter = recv.getR... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/448643c70dc9b78a7d89a851b9202699d07cfbb3/RubyObjectSpace.java/clean/src/org/jruby/RubyObjectSpace.java |
if (ChainBuilderAgent.DEBUG) | if (ChainBuilderAgent.DEBUG_TIMING) | public void layoutContents() { // the current chain LayoutChainData chain; PaletteChainView view; Collection chains = dataManager.getChains(); long start; long end; if (ChainBuilderAgent.DEBUG) start= System.currentTimeMillis(); ArrayList views = buildChainViews(chains); if (ChainBuilderAgent.DEBUG) {... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/630a53d68f5d29c53d2485557b18599785befb83/ChainPaletteCanvas.java/clean/SRC/org/openmicroscopy/shoola/agents/chainbuilder/piccolo/ChainPaletteCanvas.java |
if (ChainBuilderAgent.DEBUG) { | if (ChainBuilderAgent.DEBUG_TIMING) { | public void layoutContents() { // the current chain LayoutChainData chain; PaletteChainView view; Collection chains = dataManager.getChains(); long start; long end; if (ChainBuilderAgent.DEBUG) start= System.currentTimeMillis(); ArrayList views = buildChainViews(chains); if (ChainBuilderAgent.DEBUG) {... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/630a53d68f5d29c53d2485557b18599785befb83/ChainPaletteCanvas.java/clean/SRC/org/openmicroscopy/shoola/agents/chainbuilder/piccolo/ChainPaletteCanvas.java |
if (ChainBuilderAgent.DEBUG) | if (ChainBuilderAgent.DEBUG_TIMING) | public void layoutContents() { // the current chain LayoutChainData chain; PaletteChainView view; Collection chains = dataManager.getChains(); long start; long end; if (ChainBuilderAgent.DEBUG) start= System.currentTimeMillis(); ArrayList views = buildChainViews(chains); if (ChainBuilderAgent.DEBUG) {... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/630a53d68f5d29c53d2485557b18599785befb83/ChainPaletteCanvas.java/clean/SRC/org/openmicroscopy/shoola/agents/chainbuilder/piccolo/ChainPaletteCanvas.java |
if (ChainBuilderAgent.DEBUG) { | if (ChainBuilderAgent.DEBUG_TIMING) { | public void layoutContents() { // the current chain LayoutChainData chain; PaletteChainView view; Collection chains = dataManager.getChains(); long start; long end; if (ChainBuilderAgent.DEBUG) start= System.currentTimeMillis(); ArrayList views = buildChainViews(chains); if (ChainBuilderAgent.DEBUG) {... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/630a53d68f5d29c53d2485557b18599785befb83/ChainPaletteCanvas.java/clean/SRC/org/openmicroscopy/shoola/agents/chainbuilder/piccolo/ChainPaletteCanvas.java |
if (ChainBuilderAgent.DEBUG) { | if (ChainBuilderAgent.DEBUG_TIMING) { | public void layoutContents() { // the current chain LayoutChainData chain; PaletteChainView view; Collection chains = dataManager.getChains(); long start; long end; if (ChainBuilderAgent.DEBUG) start= System.currentTimeMillis(); ArrayList views = buildChainViews(chains); if (ChainBuilderAgent.DEBUG) {... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/630a53d68f5d29c53d2485557b18599785befb83/ChainPaletteCanvas.java/clean/SRC/org/openmicroscopy/shoola/agents/chainbuilder/piccolo/ChainPaletteCanvas.java |
if (ChainBuilderAgent.DEBUG) { | if (ChainBuilderAgent.DEBUG >3) { | private void scaleAreas(ArrayList views) { PaletteChainView view; Collections.sort(views); /* // get smallest area PaletteChainView smallest= (PaletteChainView) views.get(0); double logSmallestArea = Math.log(smallest.getArea()); double logArea; double ratio; double newArea; double scale; Iterator iter = ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/630a53d68f5d29c53d2485557b18599785befb83/ChainPaletteCanvas.java/clean/SRC/org/openmicroscopy/shoola/agents/chainbuilder/piccolo/ChainPaletteCanvas.java |
if (ChainBuilderAgent.DEBUG) { | if (ChainBuilderAgent.DEBUG>4) { | private void scaleAreas(ArrayList views) { PaletteChainView view; Collections.sort(views); /* // get smallest area PaletteChainView smallest= (PaletteChainView) views.get(0); double logSmallestArea = Math.log(smallest.getArea()); double logArea; double ratio; double newArea; double scale; Iterator iter = ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/630a53d68f5d29c53d2485557b18599785befb83/ChainPaletteCanvas.java/clean/SRC/org/openmicroscopy/shoola/agents/chainbuilder/piccolo/ChainPaletteCanvas.java |
if (ChainBuilderAgent.DEBUG) { | if (ChainBuilderAgent.DEBUG>4) { | private void scaleAreas(ArrayList views) { PaletteChainView view; Collections.sort(views); /* // get smallest area PaletteChainView smallest= (PaletteChainView) views.get(0); double logSmallestArea = Math.log(smallest.getArea()); double logArea; double ratio; double newArea; double scale; Iterator iter = ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/630a53d68f5d29c53d2485557b18599785befb83/ChainPaletteCanvas.java/clean/SRC/org/openmicroscopy/shoola/agents/chainbuilder/piccolo/ChainPaletteCanvas.java |
System.err.println("palette chain.."+chain.getName()+"...executions.." +executions.size()); | if (ChainBuilderAgent.DEBUG) System.err.println("palette chain.."+chain.getName()+"...executions.." +executions.size()); | public PaletteChainView(LayoutChainData chain,ChainDataManager dataManager) { super(chain); this.registry = dataManager.getRegistry(); this.executions = dataManager.getChainExecutionsByChainID(chain.getID()); if (executions != null) { System.err.println("palette chain.."+chain.getName()+"...executions.." +e... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a806bf744289bb0eed666b235887c8680d549d94/PaletteChainView.java/buggy/SRC/org/openmicroscopy/shoola/agents/chainbuilder/piccolo/PaletteChainView.java |
serviceNotificationErrorCalled = false; | notificationCalled = false; | private void rest() { serviceNotificationErrorCalled = false; } | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/4533b377bef2eed92f5cf978dc051fe822360c5a/KernelMonitorBroadcasterTest.java/buggy/kernel/src/test/org/gbean/kernel/KernelMonitorBroadcasterTest.java |
assertFalse(serviceNotificationErrorCalled); serviceNotificationErrorCalled = true; | assertFalse(notificationCalled); notificationCalled = true; | public void serviceNotificationError(ServiceMonitor serviceMonitor, ServiceEvent serviceEvent, Throwable throwable) { assertFalse(serviceNotificationErrorCalled); serviceNotificationErrorCalled = true; assertSame(SERVICE_MONITOR, serviceMonitor); assertSame(SERVICE_EV... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/4533b377bef2eed92f5cf978dc051fe822360c5a/KernelMonitorBroadcasterTest.java/buggy/kernel/src/test/org/gbean/kernel/KernelMonitorBroadcasterTest.java |
kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor1); kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor1); kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor1); | kernelMonitorBroadcaster.addKernelMonitor(kernelMonitors[1]); kernelMonitorBroadcaster.addKernelMonitor(kernelMonitors[1]); kernelMonitorBroadcaster.addKernelMonitor(kernelMonitors[1]); | public void testDoubleAdd() { kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor1); kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor1); kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor1); kernelMonitorBroadcaster.serviceNotificationError(SERVICE_MONITOR, SERVICE_EVENT,... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/4533b377bef2eed92f5cf978dc051fe822360c5a/KernelMonitorBroadcasterTest.java/buggy/kernel/src/test/org/gbean/kernel/KernelMonitorBroadcasterTest.java |
assertTrue(kernelMonitor1.wasServiceNotificationErrorCalled()); | assertNotificationCorrect(); | public void testDoubleAdd() { kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor1); kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor1); kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor1); kernelMonitorBroadcaster.serviceNotificationError(SERVICE_MONITOR, SERVICE_EVENT,... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/4533b377bef2eed92f5cf978dc051fe822360c5a/KernelMonitorBroadcasterTest.java/buggy/kernel/src/test/org/gbean/kernel/KernelMonitorBroadcasterTest.java |
kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor1); kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor2); kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor3); kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor4); | public void testFireEvent() { kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor1); kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor2); kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor3); kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor4); kernelMonitorBr... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/4533b377bef2eed92f5cf978dc051fe822360c5a/KernelMonitorBroadcasterTest.java/buggy/kernel/src/test/org/gbean/kernel/KernelMonitorBroadcasterTest.java | |
assertTrue(kernelMonitor1.wasServiceNotificationErrorCalled()); assertTrue(kernelMonitor2.wasServiceNotificationErrorCalled()); assertTrue(kernelMonitor3.wasServiceNotificationErrorCalled()); assertTrue(kernelMonitor4.wasServiceNotificationErrorCalled()); | assertNotificationCorrect(); | public void testFireEvent() { kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor1); kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor2); kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor3); kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor4); kernelMonitorBr... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/4533b377bef2eed92f5cf978dc051fe822360c5a/KernelMonitorBroadcasterTest.java/buggy/kernel/src/test/org/gbean/kernel/KernelMonitorBroadcasterTest.java |
kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor1); kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor2); kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor3); kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor4); | kernelMonitorBroadcaster.serviceNotificationError(SERVICE_MONITOR, SERVICE_EVENT, THROWABLE); assertNotificationCorrect(); for (int i = 0; i < kernelMonitors.length; i++) { MockKernelMonitor kernelMonitor = kernelMonitors[i]; kernelMonitor.rest(); } kernelMonitorBroadcaster.removeKernelMonitor(kernelMonitors[1]); | public void testRemove() { kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor1); kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor2); kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor3); kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor4); kernelMonitorBroad... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/4533b377bef2eed92f5cf978dc051fe822360c5a/KernelMonitorBroadcasterTest.java/buggy/kernel/src/test/org/gbean/kernel/KernelMonitorBroadcasterTest.java |
assertTrue(kernelMonitor1.wasServiceNotificationErrorCalled()); assertTrue(kernelMonitor2.wasServiceNotificationErrorCalled()); assertTrue(kernelMonitor3.wasServiceNotificationErrorCalled()); assertTrue(kernelMonitor4.wasServiceNotificationErrorCalled()); kernelMonitor1.rest(); kernelMonitor2.rest(); kernelMonitor3.re... | for (int i = 0; i < kernelMonitors.length; i++) { MockKernelMonitor kernelMonitor = kernelMonitors[i]; if (i == 1) { assertFalse(kernelMonitor.wasNotificationCalled()); } else { assertTrue(kernelMonitor.wasNotificationCalled()); } } | public void testRemove() { kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor1); kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor2); kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor3); kernelMonitorBroadcaster.addKernelMonitor(kernelMonitor4); kernelMonitorBroad... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/4533b377bef2eed92f5cf978dc051fe822360c5a/KernelMonitorBroadcasterTest.java/buggy/kernel/src/test/org/gbean/kernel/KernelMonitorBroadcasterTest.java |
kernelMonitorBroadcaster.removeKernelMonitor(kernelMonitor1); | kernelMonitorBroadcaster.removeKernelMonitor(new MockKernelMonitor("unassociated monitor")); | public void testRemoveUnassociated() { kernelMonitorBroadcaster.removeKernelMonitor(kernelMonitor1); } | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/4533b377bef2eed92f5cf978dc051fe822360c5a/KernelMonitorBroadcasterTest.java/buggy/kernel/src/test/org/gbean/kernel/KernelMonitorBroadcasterTest.java |
kernelMonitors.add(kernelMonitor); | kernelMonitors.addIfAbsent(kernelMonitor); | public void addKernelMonitor(KernelMonitor kernelMonitor) { kernelMonitors.add(kernelMonitor); } | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/2ea7b1ef6a6941dce6f02e1ac520e7e82d2bc346/KernelMonitorBroadcaster.java/buggy/kernel/src/java/org/gbean/kernel/KernelMonitorBroadcaster.java |
if (ChainBuilderAgent.DEBUG) System.err.println("cancel up module target link NOT_LINKING"); | private void cancelModuleTargetLink() { moduleLink.remove(); moduleLink =null; cleanUpModuleTargetLink(); linkState = NOT_LINKING; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/869da38edf32c7e711340685a28d8c8e84694f92/ChainCreationEventHandler.java/buggy/SRC/org/openmicroscopy/shoola/agents/chainbuilder/piccolo/ChainCreationEventHandler.java | |
camera.animateViewToCenterBounds(b,true,Constants.ANIMATION_DELAY); setModulesDisplayMode(); | if (ChainBuilderAgent.DEBUG) System.err.println("zooming to canvas bounds.."); PActivity act = camera.animateViewToCenterBounds(b,true,Constants.ANIMATION_DELAY); PActivityDelegate delegate = new PActivityDelegate() { public void activityStarted(PActivity activity) { } public void activityStepped(PActivity activity) { ... | private void evaluatePopup(PInputEvent e) { postPopup=true; PNode n = e.getPickedNode(); PNode p = n.getParent(); if (ChainBuilderAgent.DEBUG) System.err.println("popup. zooming out of "+n); if (n instanceof BufferedObject && (p == canvas.getLayer() || p instanceof ChainView)) { // if I'm on a module that... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/869da38edf32c7e711340685a28d8c8e84694f92/ChainCreationEventHandler.java/buggy/SRC/org/openmicroscopy/shoola/agents/chainbuilder/piccolo/ChainCreationEventHandler.java |
if (ChainBuilderAgent.DEBUG) System.err.println("ending finsihModuleTargetLink ModuleLinkTarget. NOT_LINKING"); | private void finishModuleTargetLink(ModuleLinkTarget n) { //first, if input and output are the same, barf. if (n.getModuleView() == moduleLinkOriginTarget.getModuleView()) { showSelfLinkError(); cancelModuleTargetLink(); return; } else if (n.isInputLinkTarget() && moduleLinkOriginTarget.isInputLinkTarge... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/869da38edf32c7e711340685a28d8c8e84694f92/ChainCreationEventHandler.java/buggy/SRC/org/openmicroscopy/shoola/agents/chainbuilder/piccolo/ChainCreationEventHandler.java | |
if (ChainBuilderAgent.DEBUG) { | /*if (ChainBuilderAgent.DEBUG) { | public void mouseDragged(PInputEvent e) { if (ChainBuilderAgent.DEBUG) { System.err.println("CHAIN HANDLER:got a drag event in chain canvas"); System.err.println("mouse dragged..."+e.getPickedNode()); } mouseMoved(e); super.mouseDragged(e); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/869da38edf32c7e711340685a28d8c8e84694f92/ChainCreationEventHandler.java/buggy/SRC/org/openmicroscopy/shoola/agents/chainbuilder/piccolo/ChainCreationEventHandler.java |
} | }*/ | public void mouseDragged(PInputEvent e) { if (ChainBuilderAgent.DEBUG) { System.err.println("CHAIN HANDLER:got a drag event in chain canvas"); System.err.println("mouse dragged..."+e.getPickedNode()); } mouseMoved(e); super.mouseDragged(e); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/869da38edf32c7e711340685a28d8c8e84694f92/ChainCreationEventHandler.java/buggy/SRC/org/openmicroscopy/shoola/agents/chainbuilder/piccolo/ChainCreationEventHandler.java |
if (ChainBuilderAgent.DEBUG) System.err.println("mouse pressed on a link when not changing. link state is NOT_LINKING"); | private void mousePressedLink(PNode node) { if (linkState != LINK_CHANGING_POINT) { selectedLink = (Link) node; selectedLink.setSelected(true); linkState = NOT_LINKING; } } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/869da38edf32c7e711340685a28d8c8e84694f92/ChainCreationEventHandler.java/buggy/SRC/org/openmicroscopy/shoola/agents/chainbuilder/piccolo/ChainCreationEventHandler.java | |
else cancelModuleLinks(); | private void mousePressedLinkingModules(PNode node,PInputEvent e) { int count = e.getClickCount(); if (ChainBuilderAgent.DEBUG) { System.err.println("node is..."+node); if (node instanceof ParamLink) System.err.println("param link"); if (node instanceof ModuleLink) System.err.println("module link"); Sy... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/869da38edf32c7e711340685a28d8c8e84694f92/ChainCreationEventHandler.java/buggy/SRC/org/openmicroscopy/shoola/agents/chainbuilder/piccolo/ChainCreationEventHandler.java | |
if (showingOverview == true) canvas.showModuleLinks(); else canvas.showParamLinks(); | public void setModulesDisplayMode() { Collection mods = canvas.findModules(); Iterator iter = mods.iterator(); ModuleView mod; PCamera camera=canvas.getCamera(); double curScale = camera.getViewScale(); boolean showingOverview = false; if (curScale< Constants.SCALE_THRESHOLD) { showingOverview = true; } i... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/869da38edf32c7e711340685a28d8c8e84694f92/ChainCreationEventHandler.java/buggy/SRC/org/openmicroscopy/shoola/agents/chainbuilder/piccolo/ChainCreationEventHandler.java | |
System.err.println("starting mmodule target link..."+modLink); | System.err.println("starting mmodule target link..."+modLink+", link state is LINKING_MODULE_TARGETS"); | private void startModuleTargetLink(ModuleLinkTarget modLink) { moduleLinkOriginTarget = modLink; if (ChainBuilderAgent.DEBUG) System.err.println("starting mmodule target link..."+modLink); moduleLink = new ModuleLink(linkLayer,moduleLinkOriginTarget); moduleLink.setPickable(false); linkState = LINKING_MODULE_... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/869da38edf32c7e711340685a28d8c8e84694f92/ChainCreationEventHandler.java/buggy/SRC/org/openmicroscopy/shoola/agents/chainbuilder/piccolo/ChainCreationEventHandler.java |
return labelNodes.getVisible(); | return detail.getVisible(); | public boolean isLinkable() { return labelNodes.getVisible(); } | 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 |
private ModuleLink findModuleLink(ModuleView start,ModuleView end) { | public ModuleLink findModuleLink(ModuleView start,ModuleView end) { | private ModuleLink findModuleLink(ModuleView start,ModuleView end) { ModuleLink lnk = null; Iterator iter = modules.getChildrenIterator(); while (iter.hasNext()) { Object obj = iter.next(); if (obj instanceof ModuleLink) { lnk = (ModuleLink) obj; ModuleView s = lnk.getStart(); ModuleView e = lnk.getE... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/eb2be5991bbd43d8f22c2408263446bd459f68b0/LinkLayer.java/buggy/SRC/org/openmicroscopy/shoola/agents/chainbuilder/piccolo/LinkLayer.java |
if (start == s && end == e) | if (start == s && end == e || start == e && end == s ) | private ModuleLink findModuleLink(ModuleView start,ModuleView end) { ModuleLink lnk = null; Iterator iter = modules.getChildrenIterator(); while (iter.hasNext()) { Object obj = iter.next(); if (obj instanceof ModuleLink) { lnk = (ModuleLink) obj; ModuleView s = lnk.getStart(); ModuleView e = lnk.getE... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/eb2be5991bbd43d8f22c2408263446bd459f68b0/LinkLayer.java/buggy/SRC/org/openmicroscopy/shoola/agents/chainbuilder/piccolo/LinkLayer.java |
else if (end != null) | else if (end != null && end instanceof FormalOutput) | public FormalOutput getOutput() { if (start instanceof FormalOutput) return (FormalOutput) start; else if (end != null) return (FormalOutput) end; return null; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/6dad47fbaa74e36fa3a3799bf802e22d4902205c/ParamLink.java/buggy/SRC/org/openmicroscopy/shoola/agents/chainbuilder/piccolo/ParamLink.java |
setHighlighted(v); | public void setAllHighlights(boolean v) { super.setAllHighlights(v); setModulesHighlighted(v); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/37a66697a1807a3994554bb85c5bce72e31f706d/SingleModuleView.java/buggy/SRC/org/openmicroscopy/shoola/agents/chainbuilder/piccolo/SingleModuleView.java | |
if (!overview.getVisible()) { overview.setVisible(true); overview.setChildrenPickable(true); setBounds(overview.getBounds()); | if (detail.getParent() == this && detail.getVisible() == true) { detail.setVisible(false); detail.setChildrenPickable(false); | public void showOverview() { if (!overview.getVisible()) { overview.setVisible(true); overview.setChildrenPickable(true); setBounds(overview.getBounds()); } overview.setVisible(true); if (detail.getParent() == this && detail.getVisible() == true) detail.setVisible(false); } | 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 |
if (detail.getParent() == this && detail.getVisible() == true) detail.setVisible(false); | overview.setChildrenPickable(true); setBounds(overview.getBounds()); | public void showOverview() { if (!overview.getVisible()) { overview.setVisible(true); overview.setChildrenPickable(true); setBounds(overview.getBounds()); } overview.setVisible(true); if (detail.getParent() == this && detail.getVisible() == true) detail.setVisible(false); } | 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 |
int row = treeDisplay.getRowForLocation(p.x, p.y); | JTree tree = getSelectedTree(); int row = tree.getRowForLocation(p.x, p.y); | private void onClick(MouseEvent me, boolean released) { Point p = me.getPoint(); int row = treeDisplay.getRowForLocation(p.x, p.y); if (row != -1) { //treeDisplay.setSelectionRow(row); model.setClickPoint(p); if (me.getClickCount() == 1) { if (... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/44eb56c2a9d55ab644f5ffcf1a859c1d041e3e4d/BrowserUI.java/clean/SRC/org/openmicroscopy/shoola/agents/treeviewer/browser/BrowserUI.java |
model.setClickPoint(p); | private void onClick(MouseEvent me, boolean released) { Point p = me.getPoint(); int row = treeDisplay.getRowForLocation(p.x, p.y); if (row != -1) { //treeDisplay.setSelectionRow(row); model.setClickPoint(p); if (me.getClickCount() == 1) { if (... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/44eb56c2a9d55ab644f5ffcf1a859c1d041e3e4d/BrowserUI.java/clean/SRC/org/openmicroscopy/shoola/agents/treeviewer/browser/BrowserUI.java | |
int[] rows = tree.getSelectionRows(); boolean mask = me.isShiftDown(); if (!mask) mask = me.isControlDown(); if (rows != null) { if (mask) { int[] newRows = new int[rows.length+1]; for (int i = 0; i < rows.length; i++) { newRows[i] = rows[i]; } newRows[rows.length] = row; tree.setSelectionRows(newRows); } else tree.set... | private void onClick(MouseEvent me, boolean released) { Point p = me.getPoint(); int row = treeDisplay.getRowForLocation(p.x, p.y); if (row != -1) { //treeDisplay.setSelectionRow(row); model.setClickPoint(p); if (me.getClickCount() == 1) { if (... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/44eb56c2a9d55ab644f5ffcf1a859c1d041e3e4d/BrowserUI.java/clean/SRC/org/openmicroscopy/shoola/agents/treeviewer/browser/BrowserUI.java | |
public TreeCellRenderer() { this(true); } | public TreeCellRenderer(boolean b) { numberChildrenVisible = b; icons = IconManager.getInstance(); } | public TreeCellRenderer() { this(true); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/146920a8791fff71320ced0f240b9d8f3d319a13/TreeCellRenderer.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/util/TreeCellRenderer.java |
if (node.getUserObject() instanceof ImageData) { int w = getIcon().getIconWidth(); w += getIconTextGap(); FontMetrics fm = getFontMetrics(getFont()); w += fm.stringWidth(node.getNodeName()); setPreferredSize(new Dimension(w, fm.getHeight())); } | public Component getTreeCellRendererComponent(JTree tree, Object value, boolean sel, boolean expanded, boolean leaf, int row, boolean hasFocus) { super.getTreeCellRendererComponent(tree, value, sel, expanded, leaf, ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/146920a8791fff71320ced0f240b9d8f3d319a13/TreeCellRenderer.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/util/TreeCellRenderer.java | |
rubyThreadList.add(Thread.currentThread()); | mainThread = Thread.currentThread(); rubyThreadList.add(mainThread); | public ThreadService(IRuby runtime) { this.runtime = runtime; this.mainContext = new ThreadContext(runtime); this.localContext = new ThreadContextLocal(mainContext); this.rubyThreadGroup = new ThreadGroup("Ruby Threads#" + runtime.hashCode()); this.rubyThreadList = Collections.syn... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/12a07cbe05d028e2ab4b0fddf61ae5467fb24e70/ThreadService.java/buggy/src/org/jruby/internal/runtime/ThreadService.java |
return (ThreadContext) localContext.get(); | ThreadContext tc = (ThreadContext) localContext.get(); if (tc == mainContext && Thread.currentThread() != mainThread) { tc = adoptCurrentThread(); } return tc; | public ThreadContext getCurrentContext() { return (ThreadContext) localContext.get(); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/12a07cbe05d028e2ab4b0fddf61ae5467fb24e70/ThreadService.java/buggy/src/org/jruby/internal/runtime/ThreadService.java |
button = new JButton( controller.getAction(BrowserControl.FORWARD_NAV)); menuBar.add(button); | private void createMenuBar() { menuBar = new JToolBar(); menuBar.setBorder(null); menuBar.setRollover(true); menuBar.setFloatable(false); JButton button = new JButton( controller.getAction(BrowserControl.BACKWARD_NAV)); button.setBorderPainted(false); ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/275dac348ef9abda7c33482582699efea0d0ed19/BrowserUI.java/clean/SRC/org/openmicroscopy/shoola/agents/treeviewer/browser/BrowserUI.java | |
button = new JButton(controller.getAction(BrowserControl.CLOSE)); button.setBorderPainted(false); menuBar.add(button); | private void createMenuBar() { menuBar = new JToolBar(); menuBar.setBorder(null); menuBar.setRollover(true); menuBar.setFloatable(false); JButton button = new JButton( controller.getAction(BrowserControl.BACKWARD_NAV)); button.setBorderPainted(false); ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/275dac348ef9abda7c33482582699efea0d0ed19/BrowserUI.java/clean/SRC/org/openmicroscopy/shoola/agents/treeviewer/browser/BrowserUI.java | |
public void execute() throws BuildException { | public void execute() throws BuildException { | public void execute() throws BuildException { CommandLineBuilder builder = null; try { builder = new CommandLineBuilder(); if (dataFile != null) builder.addArg("--datafile", dataFile); if (toDir != null) builder.addArg("--destination", toDir.getAbsolutePath()); // ignoreRegex.setRegex() is never called... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/f21d7d6c791a9d50e30e19d77af0c8b3f2897c6c/InstrumentTask.java/clean/cobertura/src/net/sourceforge/cobertura/ant/InstrumentTask.java |
public void execute() throws BuildException { CommandLineBuilder builder = null; try { builder = new CommandLineBuilder(); if (dataFile != null) builder.addArg("--datafile", dataFile); if (toDir != null) builder.addArg("--destination", toDir.getAbsolutePath()); // ignoreRegex.setRegex() is never called... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/f21d7d6c791a9d50e30e19d77af0c8b3f2897c6c/InstrumentTask.java/clean/cobertura/src/net/sourceforge/cobertura/ant/InstrumentTask.java | ||
if (forkedJVMDebugPort != null && forkedJVMDebugPort.intValue() > 0) { getJava().createJvmarg().setValue("-Xdebug"); getJava().createJvmarg().setValue("-Xrunjdwp:transport=dt_socket,address=" + forkedJVMDebugPort + ",server=y,suspend=y"); } | public void execute() throws BuildException { CommandLineBuilder builder = null; try { builder = new CommandLineBuilder(); if (dataFile != null) builder.addArg("--datafile", dataFile); if (toDir != null) builder.addArg("--destination", toDir.getAbsolutePath()); // ignoreRegex.setRegex() is never called... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/f21d7d6c791a9d50e30e19d77af0c8b3f2897c6c/InstrumentTask.java/clean/cobertura/src/net/sourceforge/cobertura/ant/InstrumentTask.java | |
public CategoryGroup(Integer attributeId, String name, String description, org.openmicroscopy.omero.model.ModuleExecution moduleExecution, Set categories) { this.attributeId = attributeId; this.name = name; this.description = description; this.moduleExecution = moduleExecution; this.categories = categories; | public CategoryGroup() { | public CategoryGroup(Integer attributeId, String name, String description, org.openmicroscopy.omero.model.ModuleExecution moduleExecution, Set categories) { this.attributeId = attributeId; this.name = name; this.description = description; this.moduleExecution = moduleExecution; th... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/CategoryGroup.java/clean/components/common/src/org/openmicroscopy/omero/model/CategoryGroup.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/CategoryGroup.java/clean/components/common/src/org/openmicroscopy/omero/model/CategoryGroup.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/CategoryGroup.java/clean/components/common/src/org/openmicroscopy/omero/model/CategoryGroup.java |
if(width < SemanticZoomNode.getStandardWidth() && height < SemanticZoomNode.getStandardHeight()) | Point2D centerPoint = new Point2D.Double(t.getOffset().getX()+ t.getBounds().getCenter2D().getX(), t.getOffset().getY()+ t.getBounds().getCenter2D().getY()); Point2D viewPoint = e.getCamera().viewToLocal(centerPoint); nameNode.setOffset(viewPoint.getX(),viewPoint.getY()); double offRight = nameNode.getOffset().getX(... | public void execute(PInputEvent e) { Thumbnail t = (Thumbnail)e.getPickedNode(); double width = t.getWidth()*e.getCamera().getViewScale(); double height = t.getHeight()*e.getCamera().getViewScale(); if(width < SemanticZoo... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a74dcf148f6dd7ae6d4c17a9e0406afba262a755/PiccoloActionFactory.java/clean/SRC/org/openmicroscopy/shoola/agents/browser/events/PiccoloActionFactory.java |
Image image = t.getImage(); SemanticZoomNode semanticNode = new SemanticZoomNode(t); Point2D point = new Point2D.Double(t.getOffset().getX()+ t.getBounds().getCenter2D().getX(), t.getOffset().getY()+ t.getBounds().getCenter2D().getY()); Point2D dummyPoint = new Point2D.Double(point.getX(),point.getY()); Dimension2D si... | offLeft = offLeft-offRight-4; nameNode.setOffset(offLeft,offTop); | public void execute(PInputEvent e) { Thumbnail t = (Thumbnail)e.getPickedNode(); double width = t.getWidth()*e.getCamera().getViewScale(); double height = t.getHeight()*e.getCamera().getViewScale(); if(width < SemanticZoo... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a74dcf148f6dd7ae6d4c17a9e0406afba262a755/PiccoloActionFactory.java/clean/SRC/org/openmicroscopy/shoola/agents/browser/events/PiccoloActionFactory.java |
if(offBottom > 0) { offTop = offBottom-offTop-4; nameNode.setOffset(offLeft,offTop); } if(offLeft < 4) { offLeft = 4; nameNode.setOffset(offLeft,offTop); } if(offTop < 4) { offTop = 4; nameNode.setOffset(offLeft,offTop); } layer.nodeExited(); layer.nodeEntered(e.getCamera(),nameNode,200); | public void execute(PInputEvent e) { Thumbnail t = (Thumbnail)e.getPickedNode(); double width = t.getWidth()*e.getCamera().getViewScale(); double height = t.getHeight()*e.getCamera().getViewScale(); if(width < SemanticZoo... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a74dcf148f6dd7ae6d4c17a9e0406afba262a755/PiccoloActionFactory.java/clean/SRC/org/openmicroscopy/shoola/agents/browser/events/PiccoloActionFactory.java | |
public static PiccoloAction getSemanticEnterAction(final SemanticLayer layer) | public static PiccoloAction getSemanticEnterAction(final HoverManager layer) | public static PiccoloAction getSemanticEnterAction(final SemanticLayer layer) { PiccoloAction action = new PiccoloAction() { public void execute(PInputEvent e) { Thumbnail t = (Thumbnail)e.getPickedNode(); double width = t.getWidth... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a74dcf148f6dd7ae6d4c17a9e0406afba262a755/PiccoloActionFactory.java/clean/SRC/org/openmicroscopy/shoola/agents/browser/events/PiccoloActionFactory.java |
layer.hideSemanticNode(e.getCamera()); layer.nodeEntered(e.getCamera(),semanticNode); | layer.nodeEntered(e.getCamera(),semanticNode,200); | public static PiccoloAction getSemanticEnterAction(final SemanticLayer layer) { PiccoloAction action = new PiccoloAction() { public void execute(PInputEvent e) { Thumbnail t = (Thumbnail)e.getPickedNode(); double width = t.getWidth... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a74dcf148f6dd7ae6d4c17a9e0406afba262a755/PiccoloActionFactory.java/clean/SRC/org/openmicroscopy/shoola/agents/browser/events/PiccoloActionFactory.java |
layer.nodeExited(); | Thumbnail t = (Thumbnail)e.getPickedNode(); double width = t.getWidth()*e.getCamera().getViewScale(); double height = t.getHeight()*e.getCamera().getViewScale(); if(width < SemanticZoomNode.getStandardWidth() && height < SemanticZoomNode.getStandardHeight()) { Image image = t.getImage(); SemanticZoomNode semanticNode ... | public void execute(PInputEvent e) { layer.nodeExited(); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a74dcf148f6dd7ae6d4c17a9e0406afba262a755/PiccoloActionFactory.java/clean/SRC/org/openmicroscopy/shoola/agents/browser/events/PiccoloActionFactory.java |
System.err.println(node.getOffset()); | public void nodeEntered(final PCamera target, final PNode node, int delayInMillis) { if(awaitingDisplay) { pendingTask.cancel(); } if(displayingNode) { hideSemanticNode(target); } ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/28e98417641b00a2e12a791f10f204dc4562dec1/HoverManager.java/buggy/SRC/org/openmicroscopy/shoola/agents/browser/ui/HoverManager.java | |
public SemanticZoomNode(Thumbnail parent) | public SemanticZoomNode(Thumbnail parent, BrowserModel parentInfo) | public SemanticZoomNode(Thumbnail parent) { super(); if(!loadedCompositeInfo) { loadSizeInfo(); } if(parent == null) { throw new IllegalArgumentException("null parent to" + "SemanticZoomNode"); } multiple... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0e4e3c4b5f21d2217fc02b1e6846dac6de60570f/SemanticZoomNode.java/buggy/SRC/org/openmicroscopy/shoola/agents/browser/ui/SemanticZoomNode.java |
backingModel = parentInfo; | public SemanticZoomNode(Thumbnail parent) { super(); if(!loadedCompositeInfo) { loadSizeInfo(); } if(parent == null) { throw new IllegalArgumentException("null parent to" + "SemanticZoomNode"); } multiple... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0e4e3c4b5f21d2217fc02b1e6846dac6de60570f/SemanticZoomNode.java/buggy/SRC/org/openmicroscopy/shoola/agents/browser/ui/SemanticZoomNode.java | |
p.add(addButton); p.add(Box.createRigidArea(DataManagerUIF.HBOX)); | private JPanel buildButtonPanel() { JPanel p = new JPanel(); p.setLayout(new BoxLayout(p, BoxLayout.X_AXIS)); p.add(viewButton); p.add(Box.createRigidArea(DataManagerUIF.HBOX)); p.add(saveButton); p.add(Box.createRigidArea(DataManagerUIF.HBOX)); p.add(addButton); p.add(Box.createRigidArea(DataManag... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1ed79437fda6d8f6b2566c6fe677bfaaf3352055/DatasetEditorBar.java/buggy/SRC/org/openmicroscopy/shoola/agents/datamng/editors/dataset/DatasetEditorBar.java | |
add(UIUtilities.buildComponentPanel(addButton)); | private void buildGUI() { add(UIUtilities.buildComponentPanelRight(buildButtonPanel())); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1ed79437fda6d8f6b2566c6fe677bfaaf3352055/DatasetEditorBar.java/buggy/SRC/org/openmicroscopy/shoola/agents/datamng/editors/dataset/DatasetEditorBar.java | |
addButton = new JButton("Add images"); | addButton = new JButton("Add images..."); | private void initButtons() { saveButton = new JButton("Save"); saveButton.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)); saveButton.setToolTipText( UIUtilities.formatToolTipText("Save data in the DB.")); saveButton.setEnabled(false); addButton = new JButton("Add images"); addButton.setCursor(Curso... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1ed79437fda6d8f6b2566c6fe677bfaaf3352055/DatasetEditorBar.java/buggy/SRC/org/openmicroscopy/shoola/agents/datamng/editors/dataset/DatasetEditorBar.java |
newProc.block.scope = ruby.getScope(); | newProc.block.scope = (Scope)ruby.getScope().getTop(); | public static RubyProc newProc(Ruby ruby, RubyClass rubyClass) { if (!ruby.isBlockGiven() && !ruby.isFBlockGiven()) { throw new RubyArgumentException(ruby, "tried to create Proc object without a block"); } RubyProc newProc = new RubyProc(ruby, rubyClass); newProc.block = ruby.... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/e774974ded4f5d3e83d7f3e7d5f152a6de3fffee/RubyProc.java/buggy/org/jruby/RubyProc.java |
if (selectedDisplay == null) { | if (selectedDisplay == null) { | protected void onDisplayChange(ImageDisplay selectedDisplay) { if (selectedDisplay == null) { setEnabled(false); return; } if (selectedDisplay.getParentDisplay() == null) { setEnabled(false); return; } if (!(selectedDisplay.getHierarchyObje... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/8df0e21913b16d22e51803e352e307bb06fd0a0f/DeclassifyAction.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/actions/DeclassifyAction.java |
if (!(selectedDisplay.getHierarchyObject() instanceof ImageData)) { setEnabled(false); return; } if (model.getBrowser() == null) { setEnabled(false); return; } int n = model.getBrowser().getSelectedDisplays().size(); setEnabled(!(n > 1)); | setEnabled(selectedDisplay.getHierarchyObject() instanceof ImageData); | protected void onDisplayChange(ImageDisplay selectedDisplay) { if (selectedDisplay == null) { setEnabled(false); return; } if (selectedDisplay.getParentDisplay() == null) { setEnabled(false); return; } if (!(selectedDisplay.getHierarchyObje... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/8df0e21913b16d22e51803e352e307bb06fd0a0f/DeclassifyAction.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/actions/DeclassifyAction.java |
for (Iterator it = source.iterator(); it.hasNext();) { Object o = it.next(); target.add(this.findTarget(o)); | if (source!=null && target != null){ for (Iterator it = source.iterator(); it.hasNext();) { Object o = it.next(); target.add(this.findTarget(o)); } | private void fillCollection(Collection source, Collection target){ for (Iterator it = source.iterator(); it.hasNext();) { Object o = it.next(); target.add(this.findTarget(o)); } } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/076efdec8a596c650212852d030e1d2bd0ff6021/ModelMapper.java/buggy/components/common/src/ome/util/ModelMapper.java |
for (Iterator it = source.keySet().iterator(); it.hasNext();) { Object o = it.next(); target.put(findTarget(o),findTarget(source.get(o))); | if (source!=null && target != null){ for (Iterator it = source.keySet().iterator(); it.hasNext();) { Object o = it.next(); target.put(findTarget(o),findTarget(source.get(o))); } | private void fillMap(Map source, Map target){ for (Iterator it = source.keySet().iterator(); it.hasNext();) { Object o = it.next(); target.put(findTarget(o),findTarget(source.get(o))); } } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/076efdec8a596c650212852d030e1d2bd0ff6021/ModelMapper.java/buggy/components/common/src/ome/util/ModelMapper.java |
target.copy(((OMEModel)source),this); | if (source!=null && target != null){ target.copy(((OMEModel)source),this); } | private void fillTarget(Filterable source, ModelBased target){ target.copy(((OMEModel)source),this); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/076efdec8a596c650212852d030e1d2bd0ff6021/ModelMapper.java/buggy/components/common/src/ome/util/ModelMapper.java |
Filterable o = super.filter("MAPPING...",source); ModelBased target = (ModelBased) findTarget(source); fillTarget(source,target); | Filterable o = this.filter("MAPPING...",source); | public ModelBased map (Filterable source){ // TODO take any object. just like filter() Filterable o = super.filter("MAPPING...",source); ModelBased target = (ModelBased) findTarget(source); fillTarget(source,target); return (ModelBased) model2target.get(o); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/076efdec8a596c650212852d030e1d2bd0ff6021/ModelMapper.java/buggy/components/common/src/ome/util/ModelMapper.java |
if (context.get() == null) return null; LinkedList ll = (LinkedList) context.get(); return ll.size()>0 ? ll.getLast() : null; | return _context.size()>0 ? _context.getLast() : null; | public Object currentContext(){ if (context.get() == null) return null; LinkedList ll = (LinkedList) context.get(); return ll.size()>0 ? ll.getLast() : null; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0b36a8e77f5bacb7e122d76ffce01866205b09d7/ContextFilter.java/buggy/components/common/src/ome/util/ContextFilter.java |
public Filterable filter(String fieldId, Filterable f) { //log.info("Filtering Model "+f); if (hasntSeen(f)){ //log.info("Haven't seen. Stepping into "+f); enter(f); addSeen(f); f.acceptFilter(this); exit(f); } return f;// null; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0b36a8e77f5bacb7e122d76ffce01866205b09d7/ContextFilter.java/buggy/components/common/src/ome/util/ContextFilter.java | ||
if (hasntSeen(f)){ | if (f != null && hasntSeen(f)){ | public Filterable filter(String fieldId, Filterable f) { //log.info("Filtering Model "+f); if (hasntSeen(f)){ //log.info("Haven't seen. Stepping into "+f); enter(f); addSeen(f); f.acceptFilter(this); exit(f); } return f;// null; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0b36a8e77f5bacb7e122d76ffce01866205b09d7/ContextFilter.java/buggy/components/common/src/ome/util/ContextFilter.java |
System.out.println(article); rootResource.putMethod(session.getURI(filePath),article); | if(session.getExistence(filePath)){ rootResource.putMethod(filePath,article); } else { rootResource.putMethod(session.getURI(filePath),article); } | public void store() throws IDOStoreException{ boolean storeOk = true; clearErrorKeys(); if (getHeadline().trim().equals("")) { addErrorKey(KEY_ERROR_HEADLINE_EMPTY); storeOk = false; } if (getBody().trim().equals("")) { addErrorKey(KEY_ERROR_BODY_EMPTY); storeOk = false; } // if (getRequestedStatus() !... | 57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/7f7db69d96cfa6849bc682ad1b61250cd8119b99/ArticleItemBean.java/clean/src/java/com/idega/block/article/bean/ArticleItemBean.java |
public static String getArticleYearMonthPath() { | public static String getArticleYearMonthPath(String basePath) { | public static String getArticleYearMonthPath() { IWTimestamp now = new IWTimestamp(); String folderString = ArticleUtil.getArticleRootPath()+"/"+now.getYear()+"/"+now.getDateString("MM"); return folderString; } | 57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/9dd8a7f9883fa3785baebfbed97ebf38eba1add9/ArticleUtil.java/buggy/src/java/com/idega/block/article/business/ArticleUtil.java |
String folderString = ArticleUtil.getArticleRootPath()+"/"+now.getYear()+"/"+now.getDateString("MM"); | String folderString = basePath+"/"+now.getYear()+"/"+now.getDateString("MM"); | public static String getArticleYearMonthPath() { IWTimestamp now = new IWTimestamp(); String folderString = ArticleUtil.getArticleRootPath()+"/"+now.getYear()+"/"+now.getDateString("MM"); return folderString; } | 57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/9dd8a7f9883fa3785baebfbed97ebf38eba1add9/ArticleUtil.java/buggy/src/java/com/idega/block/article/business/ArticleUtil.java |
return arg0.proceed(); | Object retVal = arg0.proceed(); ht.flush(); return retVal; | public Object invoke(MethodInvocation arg0) throws Throwable { CurrentDetails.clear(); setDetails(); try { return arg0.proceed(); } finally { CurrentDetails.clear(); } } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0b36a8e77f5bacb7e122d76ffce01866205b09d7/EventHandler.java/clean/components/server/src/ome/tools/hibernate/EventHandler.java |
detailsHolder.remove(); isAdminHolder.remove(); umaskHolder.remove(); leaderOfGroupsHolder.remove(); memberOfGroupsHolder.remove(); disabledSubsystemsHolder.remove(); lockCandidatesHolder.remove(); | data.remove(); | public static void clear(){ detailsHolder.remove(); isAdminHolder.remove(); umaskHolder.remove(); leaderOfGroupsHolder.remove(); memberOfGroupsHolder.remove(); disabledSubsystemsHolder.remove(); lockCandidatesHolder.remove(); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/e6b7ac4062ce844e31078de77a00a7ab77e5e5d5/CurrentDetails.java/buggy/components/server/src/ome/security/CurrentDetails.java |
e.getDetails().setPermissions( Permissions.IMMUTABLE ); | e.getDetails().setPermissions( Permissions.READ_ONLY ); | public static void newEvent(EventType type, Token token) // TODO keep up with stack here? { Event e = new Event(); e.setType(type); e.setTime(new Timestamp(System.currentTimeMillis())); e.getGraphHolder().setToken(token, token); e.getDetails().setPermissions( Permissions.IMMUTA... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/e6b7ac4062ce844e31078de77a00a7ab77e5e5d5/CurrentDetails.java/buggy/components/server/src/ome/security/CurrentDetails.java |
tab.getTitleLabel().setForeground(Color.red); | final JLabel titleLabel = tab.getTitleLabel(); | public void makeTabRed(final ChatRoom room) { final int index = indexOfComponent(room); if (index != -1) { SparkTab tab = getTabAt(index); Font font = tab.getTitleLabel().getFont(); tab.getTitleLabel().setForeground(Color.red); Font newFont = font.deriveFont... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/e1f493f11485c260430310508fb38758b3f04300/ChatContainer.java/buggy/src/java/org/jivesoftware/spark/ui/ChatContainer.java |
tab.getTitleLabel().setFont(newFont); | titleLabel.setFont(newFont); titleLabel.setForeground(Color.red); | public void makeTabRed(final ChatRoom room) { final int index = indexOfComponent(room); if (index != -1) { SparkTab tab = getTabAt(index); Font font = tab.getTitleLabel().getFont(); tab.getTitleLabel().setForeground(Color.red); Font newFont = font.deriveFont... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/e1f493f11485c260430310508fb38758b3f04300/ChatContainer.java/buggy/src/java/org/jivesoftware/spark/ui/ChatContainer.java |
Iterator statusItemIterator = dndList.iterator(); | Iterator statusItemIterator = statusList.iterator(); | public StatusItem getItemFromPresence(Presence presence) { // Handle offline presence if (presence == null) { return null; } Iterator statusItemIterator = dndList.iterator(); while (statusItemIterator.hasNext()) { StatusItem item = (StatusItem)statusItemItera... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/91bb3d356ac7e36b1815118359b4af3a4c14abed/StatusBar.java/buggy/src/java/org/jivesoftware/spark/ui/status/StatusBar.java |
statusItemIterator = dndList.iterator(); | statusItemIterator = statusList.iterator(); | public StatusItem getItemFromPresence(Presence presence) { // Handle offline presence if (presence == null) { return null; } Iterator statusItemIterator = dndList.iterator(); while (statusItemIterator.hasNext()) { StatusItem item = (StatusItem)statusItemItera... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/91bb3d356ac7e36b1815118359b4af3a4c14abed/StatusBar.java/buggy/src/java/org/jivesoftware/spark/ui/status/StatusBar.java |
public NotFoundException(String reason) { super(reason); | public NotFoundException(String reason, Exception e) { super(reason,e); | public NotFoundException(String reason) { super(reason); } | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/4f312fd00a74365a2671f796aeebcfbe9888b8cc/NotFoundException.java/clean/webmacro/src/org/webmacro/NotFoundException.java |
public ImageInfo(Integer attributeId, org.openmicroscopy.omero.model.Image image, org.openmicroscopy.omero.model.Group group, org.openmicroscopy.omero.model.ModuleExecution moduleExecution) { this.attributeId = attributeId; this.image = image; this.group = group; this.moduleExecution = moduleExecution; | public ImageInfo() { | public ImageInfo(Integer attributeId, org.openmicroscopy.omero.model.Image image, org.openmicroscopy.omero.model.Group group, org.openmicroscopy.omero.model.ModuleExecution moduleExecution) { this.attributeId = attributeId; this.image = image; this.group = group; this.moduleExecution = m... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/ImageInfo.java/clean/components/common/src/org/openmicroscopy/omero/model/ImageInfo.java |
public org.openmicroscopy.omero.model.Group getGroup() { | public Group getGroup() { | public org.openmicroscopy.omero.model.Group getGroup() { return this.group; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/ImageInfo.java/clean/components/common/src/org/openmicroscopy/omero/model/ImageInfo.java |
public org.openmicroscopy.omero.model.Image getImage() { | public Image getImage() { | public org.openmicroscopy.omero.model.Image getImage() { return this.image; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/ImageInfo.java/clean/components/common/src/org/openmicroscopy/omero/model/ImageInfo.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/ImageInfo.java/clean/components/common/src/org/openmicroscopy/omero/model/ImageInfo.java |
public void setGroup(org.openmicroscopy.omero.model.Group group) { | public void setGroup(Group group) { | public void setGroup(org.openmicroscopy.omero.model.Group group) { this.group = group; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/ImageInfo.java/clean/components/common/src/org/openmicroscopy/omero/model/ImageInfo.java |
public void setImage(org.openmicroscopy.omero.model.Image image) { | public void setImage(Image image) { | public void setImage(org.openmicroscopy.omero.model.Image image) { this.image = image; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/ImageInfo.java/clean/components/common/src/org/openmicroscopy/omero/model/ImageInfo.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/ImageInfo.java/clean/components/common/src/org/openmicroscopy/omero/model/ImageInfo.java |
return RubyFixnum.m_newFixnum(ruby, ((Number)object).longValue()); | return RubyFixnum.m_newFixnum(ruby, ((Number)object).longValue()); | public static RubyObject convertJavaToRuby(Ruby ruby, Object object, Class javaClass) { if (object == null) { return ruby.getNil(); } if (javaClass.isPrimitive()) { String cName = javaClass.getName(); if (cName == "boolean") { return RubyBoolean.m... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/JavaUtil.java/clean/org/jruby/javasupport/JavaUtil.java |
public RubyFloat(Ruby ruby, double value) { super(ruby, ruby.getFloatClass()); this.value = value; | public RubyFloat(Ruby ruby) { this(ruby, 0.0); | public RubyFloat(Ruby ruby, double value) { super(ruby, ruby.getFloatClass()); this.value = value; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/086abcd7e5107a6e6813ecb64810deff5780af95/RubyFloat.java/buggy/org/jruby/RubyFloat.java |
public RubyBignum(Ruby ruby, BigInteger value) { super(ruby, ruby.getClasses().getBignumClass()); this.value = value; | public RubyBignum(Ruby ruby) { this(ruby, BigInteger.ZERO); | public RubyBignum(Ruby ruby, BigInteger value) { super(ruby, ruby.getClasses().getBignumClass()); this.value = value; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/071973606d94103b2d5cb6c793aa1e8809fc7b2a/RubyBignum.java/buggy/org/jruby/RubyBignum.java |
int length = getLength(); | if(!getRuntime().registerInspecting(this)) { return getRuntime().newString("[...]"); } try { int length = getLength(); | public IRubyObject inspect() { int length = getLength(); if (length == 0) { return getRuntime().newString("[]"); } RubyString result = getRuntime().newString("["); RubyString separator = getRuntime().newString(", "); ThreadContext context = getRuntime().getCurren... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/c41f74da90a0fae6fd661222d04c6b602b3bc6ec/RubyArray.java/buggy/src/org/jruby/RubyArray.java |
if (length == 0) { return getRuntime().newString("[]"); | if (length == 0) { return getRuntime().newString("[]"); } RubyString result = getRuntime().newString("["); RubyString separator = getRuntime().newString(", "); ThreadContext context = getRuntime().getCurrentContext(); for (int i = 0; i < length; i++) { if (i > 0) { result.append(separator); } result.append(entry(i).cal... | public IRubyObject inspect() { int length = getLength(); if (length == 0) { return getRuntime().newString("[]"); } RubyString result = getRuntime().newString("["); RubyString separator = getRuntime().newString(", "); ThreadContext context = getRuntime().getCurren... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/c41f74da90a0fae6fd661222d04c6b602b3bc6ec/RubyArray.java/buggy/src/org/jruby/RubyArray.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.