rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
double gMin = channel.getStatsInfo().getGlobalMin(); double gMax = channel.getStatsInfo().getGlobalMax(); | private static void computeLocationStats(Pixels pixels, List<ChannelBinding> cbs, PlaneDef planeDef, PixelBuffer buf) { if (planeDef == null) throw new NullPointerException("No plane definition."); Stats... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ceec9c92013d03d7fbe03409fa65e37949152a57/Renderer.java/buggy/components/rendering/src/omeis/providers/re/Renderer.java | |
float start = cb.getInputStart(); float end = cb.getInputEnd(); if (gMax == end && gMin == start) cb.setInputStart(new Float(sf.getInputStart())); | cb.setInputStart(new Float(sf.getInputStart())); | private static void computeLocationStats(Pixels pixels, List<ChannelBinding> cbs, PlaneDef planeDef, PixelBuffer buf) { if (planeDef == null) throw new NullPointerException("No plane definition."); Stats... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ceec9c92013d03d7fbe03409fa65e37949152a57/Renderer.java/buggy/components/rendering/src/omeis/providers/re/Renderer.java |
listener.modelChanged(treeModel); | listener.modelChanged(this); | private void updateTreeModel() { if(source == null) { treeModel = new SemanticTypeTree("(empty)"); return; } List typesList = source.getRelevantTypes(); SemanticType[] types = new SemanticType[typesList.size()]; typesList.toArray(types); tree... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/4eb7129fd009b6f34f1eda2cdfe74bc4a184ee93/HeatMapModel.java/clean/SRC/org/openmicroscopy/shoola/agents/browser/heatmap/HeatMapModel.java |
addInputEventListener(new PBasicInputEventHandler() { public void mouseClicked(PInputEvent e) { PPickPath pickPath = e.getPath(); PNode node; while((node = pickPath.getPickedNode()) != null && !e.isHandled()) { if(node instanceof MouseDownSensitive) { ((MouseDownSensitive)node).respondMouseClick(e); e.setHandled(true);... | addInputEventListener(BrowserViewEventDispatcher.getDefaultMouseHandler()); addInputEventListener(BrowserViewEventDispatcher.getDefaultDragHandler()); | private void init(BrowserTopModel topModel) { env = BrowserEnvironment.getInstance(); setBackground(new Color(192,192,192)); backgroundNode = new BackgroundNode(); getLayer().addChild(backgroundNode); layoutMap = new HashMap(); footprint = new Rectangle2D... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/90683ded676656b27eef88c8c5096a007442c06c/BrowserView.java/clean/SRC/org/openmicroscopy/shoola/agents/browser/BrowserView.java |
public org.jruby.runtime.RubyRuntime getRuntime() { | public RubyRuntime getRuntime() { Asserts.assertTrue(this.runtime != null, "runtime shouldn't be null"); | public org.jruby.runtime.RubyRuntime getRuntime() { return this.runtime; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/5d81c9b241cfde36fd62602eb41786ab5a0cd134/Ruby.java/buggy/org/jruby/Ruby.java |
Object o = this.testFindCGCIHierarchies(); | Object o = this.testFindDatasetAnnotationsSetForExperimenter(); | public void testHessian(){ OMEData data = new OMEPerformanceData(); OMEData old = getData(); Set imgs = new HashSet(); imgs.add(new Integer(101)); imgs.add(new Integer(12)); imgs.add(new Integer(5393)); imgs.add(new Integer(4954)); imgs.add(new Integer(3919));... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/5e29e25bb21b2a51d4b44f9fd80b5b876b782887/OmeroServiceTest.java/clean/components/server/test/org/openmicroscopy/omero/server/itests/OmeroServiceTest.java |
setStatus(null, -1); | public void setHierarchyRoots(Set roots) { if (model.getState() != LOADING_HIERARCHY) throw new IllegalStateException( "This method can only be invoked in the LOADING_HIERARCHY "+ "state."); model.createBrowser(roots); model.fireThumbnailLoadi... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/e123367d3b024349b8d299ef57fb0e01d9f51942/HiViewerComponent.java/clean/SRC/org/openmicroscopy/shoola/agents/hiviewer/view/HiViewerComponent.java | |
protected void onContext(OmeroContext ctx) { IQuery q = (IQuery) ctx.getBean("queryService"); Advised aop = (Advised) q; System.out.println(Arrays.asList(aop.getAdvisors())); | protected void onContext(OmeroContext ctx) { ServiceFactory sf = new ServiceFactory( ctx ); IQuery q = sf.getQueryService(); assertTrue( Advised.class.isAssignableFrom( q.getClass() )); | protected void onContext(OmeroContext ctx) { IQuery q = (IQuery) ctx.getBean("queryService"); Advised aop = (Advised) q; System.out.println(Arrays.asList(aop.getAdvisors())); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/dc8dde051a1e2b716514b3964c9222ce006ebea9/ContextTest.java/clean/components/server/test/ome/server/itests/ContextTest.java |
ctx.applyBeanPropertyValues(re,"omeis.providers.re.RenderingEngine"); | ctx.applyBeanPropertyValues(re,RenderingEngine.class); | public void testConfigureBean() throws Exception { OmeroContext ctx = OmeroContext.getInternalServerContext(); ctx.applyBeanPropertyValues(re,"omeis.providers.re.RenderingEngine"); assertTrue(re.pdCalled); assertTrue(re.pmCalled); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/dc8dde051a1e2b716514b3964c9222ce006ebea9/ContextTest.java/clean/components/server/test/ome/server/itests/ContextTest.java |
System.out.println(Arrays.asList( | assertTrue(0 < Arrays.asList( | public void testListBeans() throws Exception { System.out.println(Arrays.asList( BeanFactoryUtils.beanNamesForTypeIncludingAncestors( OmeroContext.getManagedServerContext().getBeanFactory(), Object.class, true, true))); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/dc8dde051a1e2b716514b3964c9222ce006ebea9/ContextTest.java/clean/components/server/test/ome/server/itests/ContextTest.java |
Object.class, true, true))); | Object.class, true, true)).size()); | public void testListBeans() throws Exception { System.out.println(Arrays.asList( BeanFactoryUtils.beanNamesForTypeIncludingAncestors( OmeroContext.getManagedServerContext().getBeanFactory(), Object.class, true, true))); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/dc8dde051a1e2b716514b3964c9222ce006ebea9/ContextTest.java/clean/components/server/test/ome/server/itests/ContextTest.java |
long userID = model.getUserID(); long groupID = model.getRootGroupID(); TreeImageDisplay d; | public void refreshClassification(ImageData[] images, Set categories, int m) { switch (model.getState()) { case NEW: case READY: break; default: new IllegalStateException("This method can only be invoked " + "in the N... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/825a134e9202523cfddb0eda4cc2bf69f7aef3a0/BrowserComponent.java/clean/SRC/org/openmicroscopy/shoola/agents/treeviewer/browser/BrowserComponent.java | |
createNodes(nodes, d, getLastSelectedDisplay().getParentDisplay()); | last = getLastSelectedDisplay(); if (last == null) createNodes(nodes, d, null); else createNodes(nodes, d, last.getParentDisplay()); | public void refreshClassification(ImageData[] images, Set categories, int m) { switch (model.getState()) { case NEW: case READY: break; default: new IllegalStateException("This method can only be invoked " + "in the N... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/825a134e9202523cfddb0eda4cc2bf69f7aef3a0/BrowserComponent.java/clean/SRC/org/openmicroscopy/shoola/agents/treeviewer/browser/BrowserComponent.java |
view.updateNodes(nodes, img); | */ view.updateNodes(nodes, img); | public void refreshClassification(ImageData[] images, Set categories, int m) { switch (model.getState()) { case NEW: case READY: break; default: new IllegalStateException("This method can only be invoked " + "in the N... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/825a134e9202523cfddb0eda4cc2bf69f7aef3a0/BrowserComponent.java/clean/SRC/org/openmicroscopy/shoola/agents/treeviewer/browser/BrowserComponent.java |
throw new ReturnJump(runtime.getNil()); | result = runtime.getNil(); | public void visitForNode(ForNode iVisited) { threadContext.getBlockStack().push(iVisited.getVarNode(), new EvaluateMethod(iVisited.getBodyNode()), self); threadContext.getIterStack().push(Iter.ITER_PRE); try { while (true) { try { ISourcePosition pos... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/2498daa752f173b4b6559c0df4a40f716bdc23d7/EvaluateVisitor.java/clean/org/jruby/evaluator/EvaluateVisitor.java |
throw new ReturnJump(runtime.getNil()); | result = runtime.getNil(); | public void visitIterNode(IterNode iVisited) { threadContext.getBlockStack().push(iVisited.getVarNode(), new EvaluateMethod(iVisited.getBodyNode()), self); threadContext.getIterStack().push(Iter.ITER_PRE); try { while (true) { try { result = eval(iVi... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/2498daa752f173b4b6559c0df4a40f716bdc23d7/EvaluateVisitor.java/clean/org/jruby/evaluator/EvaluateVisitor.java |
} catch (ReturnJump rExcptn) { return rExcptn.getReturnValue(); | } catch (BreakJump rExcptn) { throw new ReturnJump(ruby.getNil()); | public IRubyObject yield(IRubyObject value, IRubyObject self, RubyModule klass, boolean checkArguments) { if (! ruby.isBlockGiven()) { throw new RaiseException(ruby, ruby.getExceptions().getLocalJumpError(), "yield called out of block"); } pushDynamicVars(); Block currentBlock... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/7677ca971349ae5011a3a094c25cc087b47cfaa4/ThreadContext.java/buggy/org/jruby/runtime/ThreadContext.java |
if(sticky && activated) { g2.setPaint(new Color(102,102,102)); g2.fill(getBounds().getBounds2D()); } | public void paint(PPaintContext context) { Graphics2D g2 = context.getGraphics(); g2.setColor(new Color(153,153,153)); g2.draw(getBounds().getBounds2D()); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a74dcf148f6dd7ae6d4c17a9e0406afba262a755/BIcon.java/buggy/SRC/org/openmicroscopy/shoola/agents/browser/ui/BIcon.java | |
context.put ("OWNM", new ObjectWithNullMethod()); | public void stuffContext (Context context) throws Exception { context.setEvaluationExceptionHandler ( new DefaultEvaluationExceptionHandler ()); context.put ("TestObject", new TestObject()); context.put ("NullTestObject", new NullTestObject()); context.put ("NullObject", null); } | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/ff709ec8523aa5b42a000462169b11be88cd46de/TestDefaultEEH.java/buggy/webmacro/test/unit/org/webmacro/template/TestDefaultEEH.java | |
if (!(oldValue.getClass().equals(newValue.getClass()))) { if (oldValue instanceof TreeImageDisplay) { TreeImageDisplay d = (TreeImageDisplay) oldValue; if (d != null && (d.getUserObject() instanceof ImageData)) { int index = EditorFactory.getEditorSelectedPane(); if (index == Editor.INFO_INDEX) EditorFactory.setEditorS... | public void propertyChange(PropertyChangeEvent pce) { String name = pce.getPropertyName(); if (name == null) return; if (name.equals(TreeViewer.CANCEL_LOADING_PROPERTY)) { Browser browser = model.getSelectedBrowser(); if (browser != null) browser.cancel(); } else... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/fb3743d6f75abbf12f788b3b2925f4a6f4606dd6/TreeViewerControl.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/view/TreeViewerControl.java | |
if (br != null) { try { br.close(); } catch (IOException e2) { } } | private String generateHtmlizedJavaSource(SourceFileData sourceFileData) { File sourceFile = null; try { sourceFile = finder.getFileForSource(sourceFileData.getName()); } catch (IOException e) { return "<p>Unable to locate " + sourceFileData.getName() + ". Have you specified the source directory?</p>"; ... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/56b5525edc49962bc040c60be12062884232fcc7/HTMLReport.java/clean/cobertura/src/net/sourceforge/cobertura/reporting/html/HTMLReport.java | |
protected DataLoader createHierarchyLoader() | protected DataLoader createHierarchyLoader(boolean refresh) | protected DataLoader createHierarchyLoader() { return new ProjectLoader(component, projectsID); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/fb3743d6f75abbf12f788b3b2925f4a6f4606dd6/ProjectModel.java/clean/SRC/org/openmicroscopy/shoola/agents/hiviewer/view/ProjectModel.java |
return new ProjectLoader(component, projectsID); | return new ProjectLoader(component, projectsID, refresh); | protected DataLoader createHierarchyLoader() { return new ProjectLoader(component, projectsID); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/fb3743d6f75abbf12f788b3b2925f4a6f4606dd6/ProjectModel.java/clean/SRC/org/openmicroscopy/shoola/agents/hiviewer/view/ProjectModel.java |
backgroundColor = new Color(153,153,153,128); | backgroundColor = new Color(153,153,153,192); | public IconBar(int maxWidth) { this.maxWidth = maxWidth; backgroundColor = new Color(153,153,153,128); setBounds(getX(),getY(),maxWidth,currentHeight); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/dfa9ae97d8f563906ba2ca4ea00d949bd0915064/BPalette.java/clean/SRC/org/openmicroscopy/shoola/agents/browser/ui/BPalette.java |
backgroundColor = new Color(0,51,153,128); | backgroundColor = new Color(0,51,153); | TitleBar(String name) { setBounds(bounds); titleName = name; backgroundColor = new Color(0,51,153,128); titleNode = new PText(name); titleNode.setPaint(Color.white); titleNode.setFont(titleFont); actionSe... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/dfa9ae97d8f563906ba2ca4ea00d949bd0915064/BPalette.java/clean/SRC/org/openmicroscopy/shoola/agents/browser/ui/BPalette.java |
if ((jjbitVec0[i2] & l2) != 0L && kind > 32) | if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 32) | private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 48; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << cu... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/591c0c88ca32c1535f16a242f65211219e452659/WikiParserTokenManager.java/clean/wiki/src/org/tcdi/opensource/wiki/parser/WikiParserTokenManager.java |
if ((jjbitVec0[i2] & l2) != 0L) | if (jjCanMove_0(hiByte, i1, i2, l1, l2)) | private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 48; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << cu... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/591c0c88ca32c1535f16a242f65211219e452659/WikiParserTokenManager.java/clean/wiki/src/org/tcdi/opensource/wiki/parser/WikiParserTokenManager.java |
if ((jjbitVec0[i2] & l2) != 0L) | if (jjCanMove_0(hiByte, i1, i2, l1, l2)) | private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 48; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << cu... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/591c0c88ca32c1535f16a242f65211219e452659/WikiParserTokenManager.java/clean/wiki/src/org/tcdi/opensource/wiki/parser/WikiParserTokenManager.java |
if ((jjbitVec0[i2] & l2) != 0L) | if (jjCanMove_0(hiByte, i1, i2, l1, l2)) | private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 48; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << cu... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/591c0c88ca32c1535f16a242f65211219e452659/WikiParserTokenManager.java/clean/wiki/src/org/tcdi/opensource/wiki/parser/WikiParserTokenManager.java |
if ((jjbitVec0[i2] & l2) != 0L) | if (jjCanMove_0(hiByte, i1, i2, l1, l2)) | private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 48; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << cu... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/591c0c88ca32c1535f16a242f65211219e452659/WikiParserTokenManager.java/clean/wiki/src/org/tcdi/opensource/wiki/parser/WikiParserTokenManager.java |
if ((jjbitVec0[i2] & l2) != 0L) | if (jjCanMove_0(hiByte, i1, i2, l1, l2)) | private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 48; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << cu... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/591c0c88ca32c1535f16a242f65211219e452659/WikiParserTokenManager.java/clean/wiki/src/org/tcdi/opensource/wiki/parser/WikiParserTokenManager.java |
this.iterationCount = _wm.getBroker().getIntegerSetting("TestSyntheticTemplate.IterationCount", this.threadCount); | this.iterationCount = _wm.getBroker().getIntegerSetting("TestSyntheticTemplate.IterationCount", this.IterationCount); | public static Test suite() { TestSuite suite= new TestSuite(); suite.addTest(new TestSyntheticTemplate("load") { protected WebMacro createWebMacro() throws Exception { return new WM("org/webmacro/template/TST.properties"); } protected void runTest() throws Exception { ... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/e42588994a22f1f332ab8e3fae9f46ed86c27270/TestSyntheticTemplate.java/buggy/webmacro/test/unit/org/webmacro/template/TestSyntheticTemplate.java |
this.iterationCount = _wm.getBroker().getIntegerSetting("TestSyntheticTemplate.IterationCount", this.threadCount); | this.iterationCount = _wm.getBroker().getIntegerSetting("TestSyntheticTemplate.IterationCount", this.IterationCount); | protected void runTest() throws Exception { this.threadCount = _wm.getBroker().getIntegerSetting("TestSyntheticTemplate.ThreadCount", this.threadCount); this.iterationCount = _wm.getBroker().getIntegerSetting("TestSyntheticTemplate.IterationCount", this.threadCount); this.testLoadAndT... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/e42588994a22f1f332ab8e3fae9f46ed86c27270/TestSyntheticTemplate.java/buggy/webmacro/test/unit/org/webmacro/template/TestSyntheticTemplate.java |
ruby.getCurrentFrame().getSelf().toRubyObject(), | ruby.getCurrentFrame().getSelf(), | public IRubyObject callSuper(IRubyObject[] args) { if (ruby.getCurrentFrame().getLastClass() == null) { throw new NameError(ruby, "superclass method '" + ruby.getCurrentFrame().getLastFunc() + "' must be enabled by enableSuper()."); } ruby.getIterStack().push(ruby.getCurrentIter().isNot() ? Iter.ITER_NOT : Iter.I... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f235ab756f32ea9496f8f880066b46ad95ebb692/RubyRuntime.java/clean/org/jruby/runtime/RubyRuntime.java |
self.toRubyObject(), | self, | public synchronized void callTraceFunction(String event, String file, int line, IRubyObject self, String name, ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f235ab756f32ea9496f8f880066b46ad95ebb692/RubyRuntime.java/clean/org/jruby/runtime/RubyRuntime.java |
type.toRubyObject() }); | type }); | public synchronized void callTraceFunction(String event, String file, int line, IRubyObject self, String name, ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f235ab756f32ea9496f8f880066b46ad95ebb692/RubyRuntime.java/clean/org/jruby/runtime/RubyRuntime.java |
return "ChannelComponent"+(attributeId==null ? ":Hash"+this.hashCode() : ":"+attributeId); | return "ChannelComponent"+(attributeId==null ? ":Hash_"+this.hashCode() : ":Id_"+attributeId); | public String toString(){ return "ChannelComponent"+(attributeId==null ? ":Hash"+this.hashCode() : ":"+attributeId); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/51a3c546dfc7a7a98b29771a459df19094fc5b51/ChannelComponent.java/clean/components/common/src/ome/model/ChannelComponent.java |
public RubyClass newSubClass(String name, RubyModule parent) { return new SymbolMetaClass(name, this, parent); | public RubyClass newSubClass(String name, SinglyLinkedList parentCRef) { return new SymbolMetaClass(name, this, parentCRef); | public RubyClass newSubClass(String name, RubyModule parent) { return new SymbolMetaClass(name, this, parent); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a1b8fc1d456e3d5c6e01579b88773383068aa85c/SymbolMetaClass.java/buggy/src/org/jruby/runtime/builtin/meta/SymbolMetaClass.java |
module.definePublicModuleFunction("remove_instance_variable", objectCallbackFactory.getMethod("remove_instance_variable", IRubyObject.class)); | public static RubyModule createKernelModule(IRuby runtime) { RubyModule module = runtime.defineModule("Kernel"); CallbackFactory callbackFactory = runtime.callbackFactory(RubyKernel.class); CallbackFactory objectCallbackFactory = runtime.callbackFactory(RubyObject.class); module.defineMo... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/79e935db5c7a68676c9c113d21a3544014842401/RubyKernel.java/clean/src/org/jruby/RubyKernel.java | |
klass = ruby.getInterpreter().getRubyClass(); | klass = ruby.getRubyClass(); frame.setFile(ruby.getSourceFile()); frame.setLine(ruby.getSourceLine()); | 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/a2024bddc1b8e83f4e8075d2080935c221a833fe/RubyBlock.java/clean/org/jruby/interpreter/RubyBlock.java |
dynamicVars = ruby.getInterpreter().getDynamicVars(); | dynamicVars = ruby.getDynamicVars(); | 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/a2024bddc1b8e83f4e8075d2080935c221a833fe/RubyBlock.java/clean/org/jruby/interpreter/RubyBlock.java |
SelectList sl = new SelectList(fruits, 3); context.put("sl-fruits", sl); | public static void main(String arg[]) { Log.traceExceptions(true); Log.setLevel(Log.ALL); Log.setTarget(System.err); if (arg.length != 0) { System.out.println("Enabling log types"); Log.enableTypes(arg); } // Build a context WebMacro wm = null; Hashtable con... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/4e82bcbfa0293596ccebd7abff0c093e9937d6ba/StreamTemplate.java/buggy/webmacro/src/org/webmacro/engine/StreamTemplate.java | |
private void initComponents() { IconManager icons = IconManager.getInstance(); //movie controls play = new JButton(icons.getIcon(IconManager.PLAY)); play.setToolTipText(UIUtilities.formatToolTipText("Play movie.")); pause = new JButton(icons.getIcon(IconManager.PAUSE)); ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/3b273af3a5320ab0a054540f14a3c299ff01de69/MoviePlayerUI.java/clean/SRC/org/openmicroscopy/shoola/agents/imviewer/util/player/MoviePlayerUI.java | ||
{ presentation = new ViewerUIF(control, registry, pxsDims, getDefaultT(), getDefaultZ()); control.setPresentation(presentation); control.attachListener(); } | { presentation = new ViewerUIF(control, registry, pxsDims, getDefaultT(), getDefaultZ()); control.setPresentation(presentation); control.attachListener(); } | private void buildPresentation(PixelsDimensions pxsDims) { presentation = new ViewerUIF(control, registry, pxsDims, getDefaultT(), getDefaultZ()); control.setPresentation(presentation); control.attachListener(); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a81a5a58f8e54d006d057455465766c8d3d72998/Viewer.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/Viewer.java |
{ if (e instanceof ImageLoaded) handleImageLoaded((ImageLoaded) e); else if (e instanceof ImageRendered) handleImageRendered((ImageRendered) e); else if (e instanceof LoadImage) handleLoadImage((LoadImage) e); } | { if (e instanceof ImageLoaded) handleImageLoaded((ImageLoaded) e); else if (e instanceof ImageRendered) handleImageRendered((ImageRendered) e); else if (e instanceof LoadImage) handleLoadImage((LoadImage) e); else if (e instanceof AddROICanvas) handleAddROI((AddROICanvas) e); } | public void eventFired(AgentEvent e) { if (e instanceof ImageLoaded) handleImageLoaded((ImageLoaded) e); else if (e instanceof ImageRendered) handleImageRendered((ImageRendered) e); else if (e instanceof LoadImage) handleLoadImage((LoadImage) e); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a81a5a58f8e54d006d057455465766c8d3d72998/Viewer.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/Viewer.java |
{ return renderingControl.getPixelsDims(); } | { return renderingControl.getPixelsDims(); } | PixelsDimensions getPixelsDims() { return renderingControl.getPixelsDims(); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a81a5a58f8e54d006d057455465766c8d3d72998/Viewer.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/Viewer.java |
{ LoadImage request = (LoadImage) response.getACT(); renderingControl = response.getProxy(); PixelsDimensions pxsDims = renderingControl.getPixelsDims(); if (curImageID != request.getImageID()) { if (presentation == null) buildPresentation(pxsDims); initPresentation(request.getImageName(), pxsDims, false); curImageID... | { LoadImage request = (LoadImage) response.getACT(); renderingControl = response.getProxy(); PixelsDimensions pxsDims = renderingControl.getPixelsDims(); if (curImageID != request.getImageID()) { if (presentation == null) buildPresentation(pxsDims); initPresentation(request.getImageName(), pxsDims, false); curImageID... | private void handleImageLoaded(ImageLoaded response) { LoadImage request = (LoadImage) response.getACT(); renderingControl = response.getProxy(); PixelsDimensions pxsDims = renderingControl.getPixelsDims(); //TODO: REMOVE COMMENTS //control.removeProgressNotifier(); if (curImageID != request.getImageID()) { if... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a81a5a58f8e54d006d057455465766c8d3d72998/Viewer.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/Viewer.java |
{ curImage = null; curImage = response.getRenderedImage(); presentation.setImage(curImage); } | { curImage = null; curImage = response.getRenderedImage(); presentation.setImage(curImage); } | private void handleImageRendered(ImageRendered response) { curImage = null; curImage = response.getRenderedImage(); presentation.setImage(curImage); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a81a5a58f8e54d006d057455465766c8d3d72998/Viewer.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/Viewer.java |
{ } | { } | private void handleLoadImage(LoadImage request) { //TODO: REMOVE COMMENTS //control.showProgressNotifier(request.getImageName()); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a81a5a58f8e54d006d057455465766c8d3d72998/Viewer.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/Viewer.java |
boolean active) { curImageName = imageName; presentation.setDefaultZT(getDefaultT(), getDefaultZ(), pxsDims.sizeT, pxsDims.sizeZ); presentation.setImageName(imageName); presentation.setActive(active); | boolean active) { curImageName = imageName; presentation.setDefaultZT(getDefaultT(), getDefaultZ(), pxsDims.sizeT, pxsDims.sizeZ); presentation.setImageName(imageName); presentation.setActive(active); | private void initPresentation(String imageName, PixelsDimensions pxsDims, boolean active) { curImageName = imageName; presentation.setDefaultZT(getDefaultT(), getDefaultZ(), pxsDims.sizeT, pxsDims.sizeZ); presentation.setImageName(imageName); presentation.setActive(active); presentation.rese... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a81a5a58f8e54d006d057455465766c8d3d72998/Viewer.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/Viewer.java |
showPresentation(); } | } | private void initPresentation(String imageName, PixelsDimensions pxsDims, boolean active) { curImageName = imageName; presentation.setDefaultZT(getDefaultT(), getDefaultZ(), pxsDims.sizeT, pxsDims.sizeZ); presentation.setImageName(imageName); presentation.setActive(active); presentation.rese... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a81a5a58f8e54d006d057455465766c8d3d72998/Viewer.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/Viewer.java |
{ PlaneDef def = new PlaneDef(PlaneDef.XY, t); def.setZ(z); RenderImage renderImage = new RenderImage(curPixelsID, def); registry.getEventBus().post(renderImage); } | { PlaneDef def = new PlaneDef(PlaneDef.XY, t); def.setZ(z); renderingControl.setDefaultZ(z); renderingControl.setDefaultT(t); RenderImage renderImage = new RenderImage(curPixelsID, def); registry.getEventBus().post(renderImage); } | void onPlaneSelected(int z, int t) { PlaneDef def = new PlaneDef(PlaneDef.XY, t); def.setZ(z); RenderImage renderImage = new RenderImage(curPixelsID, def); registry.getEventBus().post(renderImage); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a81a5a58f8e54d006d057455465766c8d3d72998/Viewer.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/Viewer.java |
{ registry = ctx; EventBus bus = registry.getEventBus(); bus.register(this, LoadImage.class); bus.register(this, ImageLoaded.class); bus.register(this, ImageRendered.class); control = new ViewerCtrl(this); } | { registry = ctx; EventBus bus = registry.getEventBus(); bus.register(this, LoadImage.class); bus.register(this, ImageLoaded.class); bus.register(this, ImageRendered.class); bus.register(this, AddROICanvas.class); control = new ViewerCtrl(this); } | public void setContext(Registry ctx) { registry = ctx; EventBus bus = registry.getEventBus(); bus.register(this, LoadImage.class); bus.register(this, ImageLoaded.class); bus.register(this, ImageRendered.class); control = new ViewerCtrl(this); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a81a5a58f8e54d006d057455465766c8d3d72998/Viewer.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/Viewer.java |
{ if (presentation.getExtendedState() == Frame.ICONIFIED) presentation.setExtendedState(Frame.NORMAL); presentation.setVisible(true); } | { if (presentation.getExtendedState() == Frame.ICONIFIED) presentation.setExtendedState(Frame.NORMAL); presentation.setVisible(true); } | private void showPresentation() { if (presentation.getExtendedState() == Frame.ICONIFIED) presentation.setExtendedState(Frame.NORMAL); presentation.setVisible(true); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a81a5a58f8e54d006d057455465766c8d3d72998/Viewer.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/Viewer.java |
{ registry.getEventBus().post(new DisplayRendering()); } | { registry.getEventBus().post(new DisplayRendering()); } | void showRendering() { registry.getEventBus().post(new DisplayRendering()); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a81a5a58f8e54d006d057455465766c8d3d72998/Viewer.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/Viewer.java |
else { | else if (!selected && boldWhenActive) { textLabel.setFont(defaultFont); } else if(selected){ textLabel.setFont(defaultFont); | public void setSelected(boolean selected) { super.setSelected(selected); this.selected = selected; if (boldWhenActive && selected) { textLabel.setFont(textLabel.getFont().deriveFont(Font.BOLD)); } else { // textLabel.setFont(defaultFont); } inval... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/f025bf59efca040bc8b47fac943f829129bf5e5e/SparkTab.java/clean/src/java/org/jivesoftware/spark/component/tabbedPane/SparkTab.java |
t.blowup(true,Project.class,new HashSet(),new HashSet(), new HashMap()); | t.blowup(true,Project.class,null,new HashSet(), new HashMap()); | public void testFindAnnotations() throws Exception { T t = new T(ApiUsageException.class){ @Override public void doTest(Object[] arg) { manager.findAnnotations((Class) arg[0], (Set) arg[1], (Set) arg[2], (Map) arg[3]); } }; // param1: not null or wrong type t.blowup(true,null,new HashSet(),new HashSet()... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/6d331e574e46de5764580559f877bbc4be131b20/PojosConstraintsTest.java/clean/components/server/test/ome/server/utests/PojosConstraintsTest.java |
t.blowup(false,Project.class,new HashSet(), new HashMap()); t.blowup(false,CategoryGroup.class,new HashSet(), new HashMap()); | public void testFindContainerHierarchies() throws Exception { T t = new T(ApiUsageException.class){ @Override public void doTest(Object[] arg) { manager.findContainerHierarchies((Class)arg[0],(Set)arg[1],(Map)arg[2]); } }; // param1: not null or wrong type t.blowup(true,null,new HashSet(), new HashMap()... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/6d331e574e46de5764580559f877bbc4be131b20/PojosConstraintsTest.java/clean/components/server/test/ome/server/utests/PojosConstraintsTest.java | |
t.blowup(false,Project.class,new HashSet(),new HashMap()); | public void testFindContainerHierarchies() throws Exception { T t = new T(ApiUsageException.class){ @Override public void doTest(Object[] arg) { manager.findContainerHierarchies((Class)arg[0],(Set)arg[1],(Map)arg[2]); } }; // param1: not null or wrong type t.blowup(true,null,new HashSet(), new HashMap()... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/6d331e574e46de5764580559f877bbc4be131b20/PojosConstraintsTest.java/clean/components/server/test/ome/server/utests/PojosConstraintsTest.java | |
super(JumpType.RaiseJump); setException(actException, false); | this(actException, false); | public RaiseException(RubyException actException) { super(JumpType.RaiseJump); setException(actException, false); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1278c5bb3507a052d150d814f15453542ae41aed/RaiseException.java/clean/src/org/jruby/exceptions/RaiseException.java |
return new XBeanNamespaceHandlerResolver(getBeanClassLoader()); | ClassLoader classLoader = getBeanClassLoader(); if (classLoader == null) { classLoader = Thread.currentThread().getContextClassLoader(); } return new XBeanNamespaceHandlerResolver(classLoader); | protected NamespaceHandlerResolver createDefaultNamespaceHandlerResolver() { return new XBeanNamespaceHandlerResolver(getBeanClassLoader()); } | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/043275a3e5677af7c7dd4ef4f2c6b93367601a01/XBeanXmlBeanDefinitionReader.java/clean/xbean-spring-v2/src/main/java/org/apache/xbean/spring/context/v2/XBeanXmlBeanDefinitionReader.java |
if (y == 0) { throw getRuntime().newZeroDivisionError(); } | public IRubyObject op_div(IRubyObject other) { if (other instanceof RubyFloat) { return RubyFloat.newFloat(getRuntime(), getDoubleValue()).op_div(other); } else if (other instanceof RubyBignum) { return RubyBignum.newBignum(getRuntime(), getLongValue()).op_div(other); } el... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1a99d1af5cf0ec0affd4f78b7cf07aa50ed18d98/RubyFixnum.java/clean/src/org/jruby/RubyFixnum.java | |
catch (IOException e) | catch (IOException e) | private final boolean exists(URL url) { InputStream _is = null; try { _is = url.openStream(); System.out.println(url +" exists"); return true; } catch (IOException e) { System.out.println(url +" does not exist"); retur... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/c2d009387a686003be3c3f30bc84f3a302311279/URLTemplateProvider.java/buggy/webmacro/src/org/webmacro/resource/URLTemplateProvider.java |
if (_is != null) | if (_is != null) | private final boolean exists(URL url) { InputStream _is = null; try { _is = url.openStream(); System.out.println(url +" exists"); return true; } catch (IOException e) { System.out.println(url +" does not exist"); retur... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/c2d009387a686003be3c3f30bc84f3a302311279/URLTemplateProvider.java/buggy/webmacro/src/org/webmacro/resource/URLTemplateProvider.java |
URL url = _broker.getResource(resource); | URL url = null; ClassLoader cl = this.getClass().getClassLoader(); if (cl != null) { url = cl.getResource(resource); } else { url = ClassLoader.getSystemResource(resource); } | private final URL searchClasspath(String resource) { _log.debug("Searching classpath for "+resource); URL url = _broker.getResource(resource); if (url != null) { return url; } /* * look for locale specific resources AAAA{_xxxx_yyyyy_....}BBBBB ... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/c2d009387a686003be3c3f30bc84f3a302311279/URLTemplateProvider.java/buggy/webmacro/src/org/webmacro/resource/URLTemplateProvider.java |
if (ids.size() == 0) return null; | if (ids!= null && ids.size() == 0) return null; | private List getDatasetAnnotations(List ids, int uID) throws DSOutOfServiceException, DSAccessException { if (ids.size() == 0) return null; Criteria c = AnnotationMapper.buildDatasetAnnotationCriteria(ids, uID); return (List) gateway.retrieveListSTSData("DatasetAnnotation", c); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/fed0ed05f048d5a474a1999222d3c25066f2c644/DMSAdapter.java/clean/SRC/org/openmicroscopy/shoola/env/data/DMSAdapter.java |
manager.setDaoUtils((DaoUtils) daoUtils.proxy()); | protected void setUp() throws Exception { super.setUp(); annotationDao = new Mock(AnnotationDao.class); containerDao = new Mock(ContainerDao.class); manager.setAnnotationDao((AnnotationDao) annotationDao.proxy()); manager.setContainerDao((ContainerDao) containerDao.proxy() ); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/HierarchyBrowsingUnitTest.java/clean/components/server/test/org/openmicroscopy/omero/server/utests/HierarchyBrowsingUnitTest.java | |
daoUtils = null; | protected void tearDown() throws Exception { manager = null; annotationDao = null; containerDao = null; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/HierarchyBrowsingUnitTest.java/clean/components/server/test/org/openmicroscopy/omero/server/utests/HierarchyBrowsingUnitTest.java | |
daoUtils.verify(); daoUtils.reset(); | public void testAnnotationsWithVariousIdSets(){ /* * Image Anns; No Experimenter */ // Arguments Integer id = new Integer(1); Set ids = new HashSet(); ids.add(id); // Return value ImageAnnotation an = new ImageAnnotation(); Ima... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/HierarchyBrowsingUnitTest.java/clean/components/server/test/org/openmicroscopy/omero/server/utests/HierarchyBrowsingUnitTest.java | |
daoUtils.verify(); daoUtils.reset(); | public void testfindCGCIHiearchies(){ /* * CGCI Hierachies */ // Arguments Integer id = new Integer(1); Set ids = new HashSet(); ids.add(id); // Result Image img = new Image(); img.setImageId(id); img.setClassifications(... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/HierarchyBrowsingUnitTest.java/clean/components/server/test/org/openmicroscopy/omero/server/utests/HierarchyBrowsingUnitTest.java | |
daoUtils.verify(); daoUtils.reset(); | public void testfindPDIHierarchies(){ /* * PDI Hierachies */ // Arguments Integer id = new Integer(1); Set ids = new HashSet(); ids.add(id); // Result Image img = new Image(); img.setImageId(id); img.setDatasets(... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/HierarchyBrowsingUnitTest.java/clean/components/server/test/org/openmicroscopy/omero/server/utests/HierarchyBrowsingUnitTest.java | |
if (!isEmpty(uri) || !reservedElementNames.contains(localName)) { | if (uri == null || uri.equals(SPRING_SCHEMA)) { if (BEAN_ELEMENT.equals(localName)) { return parseBeanDefinitionElement(childElement, true); } } else { | protected Object parseChildExtensionBean(Element element) { NodeList nl = element.getChildNodes(); for (int i = 0; i < nl.getLength(); i++) { Node node = nl.item(i); if (node instanceof Element) { Element childElement = (Element) node; String uri = c... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/e3e77e34324a35b4e0ceb96616c120691c6abf3a/XBeanXmlBeanDefinitionParser.java/buggy/spring/src/java/org/xbean/spring/context/impl/XBeanXmlBeanDefinitionParser.java |
} } else if (isEmpty(uri)) { if (BEAN_ELEMENT.equals(localName)) { return parseBeanDefinitionElement(childElement, true); | protected Object parseChildExtensionBean(Element element) { NodeList nl = element.getChildNodes(); for (int i = 0; i < nl.getLength(); i++) { Node node = nl.item(i); if (node instanceof Element) { Element childElement = (Element) node; String uri = c... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/e3e77e34324a35b4e0ceb96616c120691c6abf3a/XBeanXmlBeanDefinitionParser.java/buggy/spring/src/java/org/xbean/spring/context/impl/XBeanXmlBeanDefinitionParser.java | |
text = "#"+index; | label = "#"+index; annotation = null; | public ROIShape(Shape shape, int index, Color lineColor, int shapeType, int channelIndex, ImageAffineTransform affineTransform) { this.shape = shape; this.index = index; this.lineColor = lineColor; this.channelIndex = channelIndex; this.shapeType = shapeType;... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/62cb46f2999ce5e4031e9c21084b050b114692a8/ROIShape.java/clean/SRC/org/openmicroscopy/shoola/agents/roi/defs/ROIShape.java |
System.out.println(((RubyString)args[i].funcall(ruby.intern("inspect"))).getValue()); | ruby.getRuntime().getOutputStream().println(((RubyString)args[i].funcall(ruby.intern("inspect"))).getValue()); | public static RubyObject m_p(Ruby ruby, RubyObject recv, RubyObject args[]) { for (int i = 0; i < args.length; i++) { if (args[i] != null) { System.out.println(((RubyString)args[i].funcall(ruby.intern("inspect"))).getValue()); } } return ruby.getNil(); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/2c6d31ae5651a0a0c68c2bb382ab68cea34c67d7/RbKernel.java/clean/org/jruby/core/RbKernel.java |
System.out.print(ofs); | ruby.getRuntime().getOutputStream().print(ofs); | public static RubyObject m_print(Ruby ruby, RubyObject recv, RubyObject args[]) { RubyObject ofsObj = ruby.getGlobalVar("$,"); RubyObject orsObj = ruby.getGlobalVar("$\\"); String ofs = ofsObj.isNil() ? "" : RubyString.stringValue(ofsObj).getValue(); for (int i = 0; i < args.length; i++)... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/2c6d31ae5651a0a0c68c2bb382ab68cea34c67d7/RbKernel.java/clean/org/jruby/core/RbKernel.java |
System.out.print(args[i].isNil() ? "nil" : | ruby.getRuntime().getOutputStream().print(args[i].isNil() ? "nil" : | public static RubyObject m_print(Ruby ruby, RubyObject recv, RubyObject args[]) { RubyObject ofsObj = ruby.getGlobalVar("$,"); RubyObject orsObj = ruby.getGlobalVar("$\\"); String ofs = ofsObj.isNil() ? "" : RubyString.stringValue(ofsObj).getValue(); for (int i = 0; i < args.length; i++)... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/2c6d31ae5651a0a0c68c2bb382ab68cea34c67d7/RbKernel.java/clean/org/jruby/core/RbKernel.java |
System.out.print(orsObj.isNil() ? "" : RubyString.stringValue(orsObj).getValue()); | ruby.getRuntime().getOutputStream().print(orsObj.isNil() ? "" : RubyString.stringValue(orsObj).getValue()); | public static RubyObject m_print(Ruby ruby, RubyObject recv, RubyObject args[]) { RubyObject ofsObj = ruby.getGlobalVar("$,"); RubyObject orsObj = ruby.getGlobalVar("$\\"); String ofs = ofsObj.isNil() ? "" : RubyString.stringValue(ofsObj).getValue(); for (int i = 0; i < args.length; i++)... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/2c6d31ae5651a0a0c68c2bb382ab68cea34c67d7/RbKernel.java/clean/org/jruby/core/RbKernel.java |
System.out.print(((RubyString)m_sprintf(ruby, recv, args)).getValue()); | ruby.getRuntime().getOutputStream().print(((RubyString)m_sprintf(ruby, recv, args)).getValue()); | public static RubyObject m_printf(Ruby ruby, RubyObject recv, RubyObject args[]) { System.out.print(((RubyString)m_sprintf(ruby, recv, args)).getValue()); return ruby.getNil(); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/2c6d31ae5651a0a0c68c2bb382ab68cea34c67d7/RbKernel.java/clean/org/jruby/core/RbKernel.java |
System.out.println(); | ruby.getRuntime().getOutputStream().println(); | public static RubyObject m_puts(Ruby ruby, RubyObject recv, RubyObject args[]) { if (args.length == 0) { System.out.println(); return ruby.getNil(); } for (int i = 0; i < args.length; i++) { if (args[i] != null) { if (args[i] instanceof RubyArray)... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/2c6d31ae5651a0a0c68c2bb382ab68cea34c67d7/RbKernel.java/clean/org/jruby/core/RbKernel.java |
System.out.println(args[i].isNil() ? "nil" : | ruby.getRuntime().getOutputStream().println(args[i].isNil() ? "nil" : | public static RubyObject m_puts(Ruby ruby, RubyObject recv, RubyObject args[]) { if (args.length == 0) { System.out.println(); return ruby.getNil(); } for (int i = 0; i < args.length; i++) { if (args[i] != null) { if (args[i] instanceof RubyArray)... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/2c6d31ae5651a0a0c68c2bb382ab68cea34c67d7/RbKernel.java/clean/org/jruby/core/RbKernel.java |
System.err.println("[Error] Jarfile + \"" + jarFile.getAbsolutePath() + "\"not found."); | ruby.getRuntime().getErrorStream().println("[Error] Jarfile + \"" + jarFile.getAbsolutePath() + "\"not found."); | public static RubyObject m_require(Ruby ruby, RubyObject recv, RubyString arg1) { if (arg1.getValue().endsWith(".jar")) { File jarFile = new File(arg1.getValue()); if (!jarFile.exists()) { jarFile = new File(new File(ruby.getSourceFile()).getParentFile(), arg1.getValue())... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/2c6d31ae5651a0a0c68c2bb382ab68cea34c67d7/RbKernel.java/clean/org/jruby/core/RbKernel.java |
new Object[] { self.getRuntime(), self }); | new Object[] { runtime, self }); | public static IRubyObject loadAndCall(IRubyObject self, String name, byte[] javaClass, String methodName) throws Throwable { Loader loader = new Loader(); Class c = loader.loadClass(name, javaClass); Method method = c.getMethod(methodName, new Class[] { Ruby.class, IRubyObject.cla... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/319a529cc1666e267b662b895d6c0d0409a6a838/TestHelper.java/buggy/src/org/jruby/util/TestHelper.java |
} finally { runtime.getCurrentContext().popClass(); | public static IRubyObject loadAndCall(IRubyObject self, String name, byte[] javaClass, String methodName) throws Throwable { Loader loader = new Loader(); Class c = loader.loadClass(name, javaClass); Method method = c.getMethod(methodName, new Class[] { Ruby.class, IRubyObject.cla... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/319a529cc1666e267b662b895d6c0d0409a6a838/TestHelper.java/buggy/src/org/jruby/util/TestHelper.java | |
throw runtime.newNameError("undefined method '" + methodName + "' for class '" + javaClass.getName() + "'"); | throw runtime.newNameError("undefined method '" + methodName + "' for class '" + javaClass.getName() + "'", methodName); | public static JavaMethod createDeclared(IRuby runtime, Class javaClass, String methodName, Class[] argumentTypes) { try { Method method = javaClass.getDeclaredMethod(methodName, argumentTypes); return create(runtime, method); } catch (NoSuchMethodException e) { throw r... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1278c5bb3507a052d150d814f15453542ae41aed/JavaMethod.java/buggy/src/org/jruby/javasupport/JavaMethod.java |
experimenter = imgA.getExperimenter(); | experimenter = mex.getExperimenter(); | public static Map fillImageAnnotations(List l, TreeMap map) { Iterator i = l.iterator(); ImageAnnotation imgA; AnnotationData data; int ownerID; List list; Timestamp time = null; Experimenter experimenter; ModuleExecution mex; while (i.hasNext()) { ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/46ee0e7f23268dcd5696292cc729c65f5a3a2bd2/AnnotationMapper.java/clean/SRC/org/openmicroscopy/shoola/env/data/map/AnnotationMapper.java |
JPanel p = new JPanel(); p.setLayout(new GridBagLayout()); | legendPanel = new JPanel(); legendPanel.setLayout(new GridBagLayout()); | private JPanel buildLegendPanel() { JPanel p = new JPanel(); p.setLayout(new GridBagLayout()); GridBagConstraints c = new GridBagConstraints(); // griddy constraints c.anchor = GridBagConstraints.NORTHWEST; c.fill = GridBagConstraints.NONE; // one ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/f8f7dcdd74bccad5e7a9d969c7ab47c1cfee6015/CBSearchTabView.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/clipboard/CBSearchTabView.java |
p.add(buildLegend(colors.getColor(Colors.TITLE_BAR_HIGHLIGHT), | legendPanel.add(buildLegend(colors.getColor(Colors.TITLE_BAR_HIGHLIGHT), | private JPanel buildLegendPanel() { JPanel p = new JPanel(); p.setLayout(new GridBagLayout()); GridBagConstraints c = new GridBagConstraints(); // griddy constraints c.anchor = GridBagConstraints.NORTHWEST; c.fill = GridBagConstraints.NONE; // one ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/f8f7dcdd74bccad5e7a9d969c7ab47c1cfee6015/CBSearchTabView.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/clipboard/CBSearchTabView.java |
c.gridy = 0; p.add(buildLegend(colors.getColor(Colors.REGEX_ANNOTATION), | legendPanel.add(buildLegend(colors.getColor(Colors.REGEX_ANNOTATION), | private JPanel buildLegendPanel() { JPanel p = new JPanel(); p.setLayout(new GridBagLayout()); GridBagConstraints c = new GridBagConstraints(); // griddy constraints c.anchor = GridBagConstraints.NORTHWEST; c.fill = GridBagConstraints.NONE; // one ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/f8f7dcdd74bccad5e7a9d969c7ab47c1cfee6015/CBSearchTabView.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/clipboard/CBSearchTabView.java |
p.add(buildLegend(colors.getColor(Colors.REGEX_TITLE), | legendPanel.add(buildLegend(colors.getColor(Colors.REGEX_TITLE), | private JPanel buildLegendPanel() { JPanel p = new JPanel(); p.setLayout(new GridBagLayout()); GridBagConstraints c = new GridBagConstraints(); // griddy constraints c.anchor = GridBagConstraints.NORTHWEST; c.fill = GridBagConstraints.NONE; // one ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/f8f7dcdd74bccad5e7a9d969c7ab47c1cfee6015/CBSearchTabView.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/clipboard/CBSearchTabView.java |
p.add(buildLegend(colors.getColor(Colors.REGEX_TITLE_AND_ANNOTATION), | legendPanel.add(buildLegend( colors.getColor(Colors.REGEX_TITLE_AND_ANNOTATION), | private JPanel buildLegendPanel() { JPanel p = new JPanel(); p.setLayout(new GridBagLayout()); GridBagConstraints c = new GridBagConstraints(); // griddy constraints c.anchor = GridBagConstraints.NORTHWEST; c.fill = GridBagConstraints.NONE; // one ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/f8f7dcdd74bccad5e7a9d969c7ab47c1cfee6015/CBSearchTabView.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/clipboard/CBSearchTabView.java |
p.add(buildLegend(colors.getColor(Colors.ANNOTATED), | legendPanel.add(buildLegend(colors.getColor(Colors.ANNOTATED), | private JPanel buildLegendPanel() { JPanel p = new JPanel(); p.setLayout(new GridBagLayout()); GridBagConstraints c = new GridBagConstraints(); // griddy constraints c.anchor = GridBagConstraints.NORTHWEST; c.fill = GridBagConstraints.NONE; // one ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/f8f7dcdd74bccad5e7a9d969c7ab47c1cfee6015/CBSearchTabView.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/clipboard/CBSearchTabView.java |
return p; | return legendPanel; | private JPanel buildLegendPanel() { JPanel p = new JPanel(); p.setLayout(new GridBagLayout()); GridBagConstraints c = new GridBagConstraints(); // griddy constraints c.anchor = GridBagConstraints.NORTHWEST; c.fill = GridBagConstraints.NONE; // one ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/f8f7dcdd74bccad5e7a9d969c7ab47c1cfee6015/CBSearchTabView.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/clipboard/CBSearchTabView.java |
return StringEvaluate.eval(ruby, self, this); | if (simple) { return getLiteral().to_s(); } else { return StringEvaluate.eval(ruby, self, this); } | public RubyObject eval(Ruby ruby, RubyObject self) { return StringEvaluate.eval(ruby, self, this); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/58f05ce53c167c336c9619e751471924f79325f3/DStrNode.java/buggy/org/jruby/nodes/DStrNode.java |
setScrollPaneSize(); | private void buildGUI() { setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); setBorder(BorderFactory.createEmptyBorder(10, 10, 10, 10)); scrollPane = new JScrollPane(table); scrollPane.setBackground(GraphicCanvas.BACKGROUND); addComponents(scrollPane); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/3db37517e6873d11567ee5822e769ab058e1abed/StatsResultsPane.java/clean/SRC/org/openmicroscopy/shoola/agents/roi/results/stats/StatsResultsPane.java | |
int index = model.getSelectedTabbedIndex(); if (index == EditorUI.PROPERTIES_INDEX) { int subIndex = model.getSelectedSubPane(); if (model.isAnnotatable() && subIndex == EditorUI.ANNOTATION_SUB_INDEX) { retrieveAnnotations(); } else if (model.isClassified() && subIndex == EditorUI.CLASSIFICATION_SUB_INDEX) loadClassifi... | switch (model.getSelectedTabbedIndex()) { case EditorUI.PROPERTIES_INDEX: int subIndex = model.getSelectedSubPane(); if (model.isAnnotatable() && subIndex == EditorUI.ANNOTATION_SUB_INDEX) { retrieveAnnotations(); } else if (model.isClassified() && subIndex == EditorUI.CLASSIFICATION_SUB_INDEX) loadClassifications(); b... | public void activate() { switch (model.getState()) { case NEW: if (model.getEditorType() == PROPERTIES_EDITOR) { int index = model.getSelectedTabbedIndex(); if (index == EditorUI.PROPERTIES_INDEX) { int subIndex = model.getSelected... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/464efde90db6bc5095c0a7e5952f51ad0f37ca86/EditorComponent.java/clean/SRC/org/openmicroscopy/shoola/agents/treeviewer/editors/EditorComponent.java |
model.getParentModel().addPropertyChangeListener( TreeViewer.THUMBNAIL_LOADED_PROPERTY, controller); | void initialize() { controller.initialize(view); view.initialize(controller, model); model.getParentModel().addPropertyChangeListener( TreeViewer.THUMBNAIL_LOADED_PROPERTY, controller); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/464efde90db6bc5095c0a7e5952f51ad0f37ca86/EditorComponent.java/clean/SRC/org/openmicroscopy/shoola/agents/treeviewer/editors/EditorComponent.java | |
if (model.isClassificationLoaded()) return; | public void loadClassifications() { switch (model.getState()) { case DISCARDED: case LOADING_ANNOTATION: //return; } if (!(model.isClassified())) return; //model.setClassifications(null); model.fireClassificationLoading(); model.getPare... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/464efde90db6bc5095c0a7e5952f51ad0f37ca86/EditorComponent.java/clean/SRC/org/openmicroscopy/shoola/agents/treeviewer/editors/EditorComponent.java | |
if (model.hasThumbnail()) firePropertyChange(TreeViewer.THUMBNAIL_LOADING_PROPERTY, null, model.getHierarchyObject()); | retrieveThumbnail(); | public void setAnnotations(Map map) { if (model.getState() == LOADING_ANNOTATION) { if (map != null) { model.setAnnotations(map); view.showAnnotations(); if (model.hasThumbnail()) firePropertyChange(TreeViewer.THUMBNAIL_LOADING_PRO... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/464efde90db6bc5095c0a7e5952f51ad0f37ca86/EditorComponent.java/clean/SRC/org/openmicroscopy/shoola/agents/treeviewer/editors/EditorComponent.java |
retrieveThumbnail(); | public void setChannelsData(List emissionWaves) { if (model.getState() != LOADING_CHANNEL_DATA) return; model.setChannelsData(emissionWaves); fireStateChange(); view.setChannelsData(); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/464efde90db6bc5095c0a7e5952f51ad0f37ca86/EditorComponent.java/clean/SRC/org/openmicroscopy/shoola/agents/treeviewer/editors/EditorComponent.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.