bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
private void initComponents(int sizeT, int t) { //Slider tSlider = new JSlider(JSlider.HORIZONTAL, 0, sizeT, t); tSlider.setToolTipText("Move the slider to navigate across time"); tSlider.setMinorTickSpacing(1); tSlider.setMajorTickSpacing(10); tSlider.setPaintTicks(true); Hashtable labelTable = new Hashtable(...
private void initComponents(int sizeT, int t) { //Slider tSlider = new JSlider(JSlider.HORIZONTAL, 0, sizeT, t); tSlider.setToolTipText("Move the slider to navigate across time"); tSlider.setMinorTickSpacing(1); tSlider.setMajorTickSpacing(10); tSlider.setPaintTicks(true); Hashtable labelTable = new Hashtable(...
3,238,539
private void initComponents(int sizeT, int t) { //Slider tSlider = new JSlider(JSlider.HORIZONTAL, 0, sizeT, t); tSlider.setToolTipText("Move the slider to navigate across time"); tSlider.setMinorTickSpacing(1); tSlider.setMajorTickSpacing(10); tSlider.setPaintTicks(true); Hashtable labelTable = new Hashtable(...
private void initComponents(int sizeT, int t) { //Slider tSlider = new JSlider(JSlider.HORIZONTAL, 0, sizeT, t); tSlider.setToolTipText("Move the slider to navigate across time"); tSlider.setMinorTickSpacing(1); tSlider.setMajorTickSpacing(10); tSlider.setPaintTicks(true); Hashtable labelTable = new Hashtable(...
3,238,540
private void initComponents(int sizeT, int t) { //Slider tSlider = new JSlider(JSlider.HORIZONTAL, 0, sizeT, t); tSlider.setToolTipText("Move the slider to navigate across time"); tSlider.setMinorTickSpacing(1); tSlider.setMajorTickSpacing(10); tSlider.setPaintTicks(true); Hashtable labelTable = new Hashtable(...
private void initComponents(int sizeT, int t) { //Slider tSlider = new JSlider(JSlider.HORIZONTAL, 0, sizeT, t); tSlider.setToolTipText("Move the slider to navigate across time"); tSlider.setMinorTickSpacing(1); tSlider.setMajorTickSpacing(10); tSlider.setPaintTicks(true); Hashtable labelTable = new Hashtable(...
3,238,541
private boolean isBrowserVisible(Browser browser) { Component[] comps = tabs.getComponents(); for (int i = 0; i < comps.length; i++) return (comps[i].equals(browser.getUI())); return false; }
private boolean isBrowserVisible(Browser browser) { Component[] comps = tabs.getComponents(); for (int i = 0; i < comps.length; i++) return (comps[i].equals(browser.getUI())); return false; }
3,238,542
public void erase() { erase = true; if (eraseAll) listROIErase.removeAll(listROIErase); eraseAll = false; listROIErase.add(currentROI); int index = currentROI.getIndex(); listROI.remove(currentROI); Iterator i = listROI.iterator(); ROIShape roi; int ...
public void erase() { erase = true; if (eraseAll) listROIErase.removeAll(listROIErase); eraseAll = false; listROIErase.add(currentROI); int index = currentROI.getIndex(); listROI.remove(currentROI); Iterator i = listROI.iterator(); ROIShape roi; int ...
3,238,543
public void erase() { erase = true; if (eraseAll) listROIErase.removeAll(listROIErase); eraseAll = false; listROIErase.add(currentROI); int index = currentROI.getIndex(); listROI.remove(currentROI); Iterator i = listROI.iterator(); ROIShape roi; int ...
publicvoiderase(){erase=true;if(eraseAll)listROIErase.removeAll(listROIErase);eraseAll=false;listROIErase.add(currentROI);intindex=currentROI.getIndex();listROI.remove(currentROI);Iteratori=listROI.iterator();ROIShaperoi;intj;while(i.hasNext()){roi=(ROIShape)i.next();j=roi.getIndex();if(j>index){j--;roi.setIndex(j);roi...
3,238,544
private void handleMousePressed(Point p) { Iterator i = listROI.iterator(); ROIShape roi; Shape s; while (i.hasNext()) { roi = (ROIShape) (i.next()); s = roi.getShape(); if (s.contains(p)) { currentROI = roi; currentShape ...
private void handleMousePressed(Point p, int clickCount) { Iterator i = listROI.iterator(); ROIShape roi; Shape s; while (i.hasNext()) { roi = (ROIShape) (i.next()); s = roi.getShape(); if (s.contains(p)) { currentROI = roi; ...
3,238,545
public void mouseMoved(MouseEvent e) {}
public void mouseMoved(MouseEvent e) {}
3,238,547
public void mousePressed(MouseEvent e) { Point p = new Point(e.getPoint()); if (!dragging && drawingArea.contains(p)) { pressed = true; dragging = true; currentROI = null; currentShape = null; anchor = p; handleMousePressed(p); ...
public void mousePressed(MouseEvent e) { Point p = new Point(e.getPoint()); if (!dragging && drawingArea.contains(p)) { pressed = true; dragging = true; currentROI = null; currentShape = null; anchor = p; handleMousePressed(p); ...
3,238,548
private void move(Point p) { int diffX = p.x-anchor.x, diffY = p.y-anchor.y; Rectangle r = currentShape.getBounds(); int x = xControl+diffX, y = yControl+diffY, w = r.width, h = r.height; if (areaValid(x, y, w, h)) { ROIFactory.setShapeBounds(currentShap...
private void move(Point p) { int diffX = p.x-anchor.x, diffY = p.y-anchor.y; Rectangle r = currentShape.getBounds(); int x = xControl+diffX, y = yControl+diffY, w = r.width, h = r.height; if (areaValid(x, y, w, h)) { ROIFactory.setShapeBounds(currentShap...
3,238,549
private void undoEraseAll(ROIShape roi) { int n = listROIErase.size(); Iterator i = listROI.iterator(); ROIShape r; while (i.hasNext()) { r = (ROIShape) i.next(); r.setIndex(n); r.setText("#"+n); n++; } listROI.addAll(listROIEr...
private void undoEraseAll(ROIShape roi) { int n = listROIErase.size(); Iterator i = listROI.iterator(); ROIShape r; while (i.hasNext()) { r = (ROIShape) i.next(); r.setIndex(n); r.setLabel("#"+n); n++; } listROI.addAll(listROIE...
3,238,550
private void undoEraseOne(ROIShape roi) { int index = roi.getIndex(); Iterator i = listROI.iterator(); ROIShape r; int j; while (i.hasNext()) { r = (ROIShape) i.next(); j = r.getIndex(); if (j >= index) { j++; r.set...
private void undoEraseOne(ROIShape roi) { int index = roi.getIndex(); Iterator i = listROI.iterator(); ROIShape r; int j; while (i.hasNext()) { r = (ROIShape) i.next(); j = r.getIndex(); if (j >= index) { j++; r.set...
3,238,551
public static boolean onlyLockChanged( SessionImplementor session, EntityPersister persister, IObject entity, Object[] state, String[] names ) { Object[] current = persister.getPropertyValues(entity, EntityMode.POJO); int[] dirty = persister.findDirty( state, current, entity, session); if ( di...
public static boolean onlyLockChanged( SessionImplementor session, EntityPersister persister, IObject entity, Object[] state, String[] names ) { Object[] current = persister.getPropertyValues(entity, EntityMode.POJO); int[] dirty = persister.findDirty( state, current, entity, session); if ( di...
3,238,552
public static boolean onlyLockChanged( SessionImplementor session, EntityPersister persister, IObject entity, Object[] state, String[] names ) { Object[] current = persister.getPropertyValues(entity, EntityMode.POJO); int[] dirty = persister.findDirty( state, current, entity, session); if ( di...
public static boolean onlyLockChanged( SessionImplementor session, EntityPersister persister, IObject entity, Object[] state, String[] names ) { Object[] current = persister.getPropertyValues(entity, EntityMode.POJO); int[] dirty = persister.findDirty( state, current, entity, session); if ( di...
3,238,553
public static boolean onlyLockChanged( SessionImplementor session, EntityPersister persister, IObject entity, Object[] state, String[] names ) { Object[] current = persister.getPropertyValues(entity, EntityMode.POJO); int[] dirty = persister.findDirty( state, current, entity, session); if ( di...
public static boolean onlyLockChanged( SessionImplementor session, EntityPersister persister, IObject entity, Object[] state, String[] names ) { Object[] current = persister.getPropertyValues(entity, EntityMode.POJO); int[] dirty = persister.findDirty( state, current, entity, session); if ( di...
3,238,554
public static boolean onlyLockChanged( SessionImplementor session, EntityPersister persister, IObject entity, Object[] state, String[] names ) { Object[] current = persister.getPropertyValues(entity, EntityMode.POJO); int[] dirty = persister.findDirty( state, current, entity, session); if ( di...
public static boolean onlyLockChanged( SessionImplementor session, EntityPersister persister, IObject entity, Object[] state, String[] names ) { Object[] current = persister.getPropertyValues(entity, EntityMode.POJO); int[] dirty = persister.findDirty( state, current, entity, session); if ( di...
3,238,555
public static boolean onlyLockChanged( SessionImplementor session, EntityPersister persister, IObject entity, Object[] state, String[] names ) { Object[] current = persister.getPropertyValues(entity, EntityMode.POJO); int[] dirty = persister.findDirty( state, current, entity, session); if ( di...
public static boolean onlyLockChanged( SessionImplementor session, EntityPersister persister, IObject entity, Object[] state, String[] names ) { Object[] current = persister.getPropertyValues(entity, EntityMode.POJO); int[] dirty = persister.findDirty( state, current, entity, session); if ( di...
3,238,556
public void layoutContents() { // the current chain LayoutChainData chain; PaletteChainView view; Collection chains = dataManager.getChains(); ArrayList views = buildChainViews(chains); int num = views.size(); // The display should be roughly square, // in terms of the number of rows vs. # of columns ...
publicif (ChainBuilderAgent.DEBUG) { end = System.currentTimeMillis()-start; System.err.println("in chain layout contents. time for chain view "+end); } voidif (ChainBuilderAgent.DEBUG) { end = System.currentTimeMillis()-start; System.err.println("in chain layout contents. time for chain view "+end); } layoutContents(...
3,238,558
public void layoutContents() { // the current chain LayoutChainData chain; PaletteChainView view; Collection chains = dataManager.getChains(); ArrayList views = buildChainViews(chains); int num = views.size(); // The display should be roughly square, // in terms of the number of rows vs. # of columns ...
public void layoutContents() { // the current chain LayoutChainData chain; PaletteChainView view; Collection chains = dataManager.getChains(); ArrayList views = buildChainViews(chains); int num = views.size(); // The display should be roughly square, // in terms of the number of rows vs. # of columns ...
3,238,559
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 = ...
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 = ...
3,238,561
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 = ...
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 = ...
3,238,562
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 = ...
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 = ...
3,238,563
public static RubyString newInstance(IRubyObject recv, IRubyObject[] args) { RubyString newString = newString(recv.getRuntime(), ""); newString.setRubyClass((RubyClass) recv); newString.callInit(args); return newString; }
public static RubyString newInstance(IRubyObject recv, IRubyObject[] args) { RubyString newString = newString(recv.getRuntime(), ""); newString.setRubyClass((RubyClass) recv); newString.callInit(args); return newString; }
3,238,564
public static RubyString stringValue(IRubyObject anObject) { if (anObject instanceof RubyString) { return (RubyString) anObject; } else { return (RubyString) anObject.toRubyObject().convertType(RubyString.class, "String", "to_str"); } }
public static RubyString stringValue(IRubyObject anObject) { if (anObject instanceof RubyString) { return (RubyString) anObject; } else { return (RubyString) anObject.toRubyObject().convertType(RubyString.class, "String", "to_str"); } }
3,238,565
public static RubyString unmarshalFrom(UnmarshalStream input) throws java.io.IOException { return RubyString.newString(input.getRuby(), input.unmarshalString()); }
public static RubyString unmarshalFrom(UnmarshalStream input) throws java.io.IOException { return RubyString.newString(input.getRuby(), input.unmarshalString()); }
3,238,566
public void loadScript( RubyString scriptName, RubyString source, boolean wrap) { RubyObject self = ruby.getRubyTopSelf(); CRefNode savedCRef = ruby.getCRef(); // TMP_PROTECT; if (wrap && ruby.getSecurityLevel() >= 4) { // Check_Type(fname, T_STRING); ...
public void loadScript( RubyString scriptName, RubyString source, boolean wrap) { RubyObject self = ruby.getRubyTopSelf(); CRefNode savedCRef = ruby.getCRef(); // TMP_PROTECT; if (wrap && ruby.getSecurityLevel() >= 4) { // Check_Type(fname, T_STRING); ...
3,238,567
public static RubyModule createKernelModule(Ruby ruby) { RubyModule kernelModule = ruby.defineModule("Kernel"); kernelModule.defineMethod("open", CallbackFactory.getOptSingletonMethod(RubyKernel.class, "open")); kernelModule.defineMethod("format", CallbackFactory.getOptSingletonMethod(RubyKerne...
public static RubyModule createKernelModule(Ruby ruby) { RubyModule kernelModule = ruby.defineModule("Kernel"); kernelModule.defineMethod("open", CallbackFactory.getOptSingletonMethod(RubyKernel.class, "open")); kernelModule.defineMethod("format", CallbackFactory.getOptSingletonMethod(RubyKerne...
3,238,568
private void createUI() { createToolbar(); createActionbar(); createPanels(); JPanel container = new JPanel(); container.setLayout(new BoxLayout(container, BoxLayout.X_AXIS)); container.add(toolbar , BorderLayout.WEST); container.add(Box.createHori...
private void createUI() { createToolbar(); createActionbar(); createPanels(); JPanel container = new JPanel(); container.setLayout(new BoxLayout(container, BoxLayout.X_AXIS)); container.add(toolbar , BorderLayout.WEST); container.add(Box.createHori...
3,238,569
private void createUI() { createToolbar(); createActionbar(); createPanels(); JPanel container = new JPanel(); container.setLayout(new BoxLayout(container, BoxLayout.X_AXIS)); container.add(toolbar , BorderLayout.WEST); container.add(Box.createHori...
private void createUI() { createToolbar(); createActionbar(); createPanels(); JPanel container = new JPanel(); container.setLayout(new BoxLayout(container, BoxLayout.X_AXIS)); container.add(toolbar , BorderLayout.WEST); container.add(Box.createHori...
3,238,570
private void createUI() { createToolbar(); createActionbar(); createPanels(); JPanel container = new JPanel(); container.setLayout(new BoxLayout(container, BoxLayout.X_AXIS)); container.add(toolbar , BorderLayout.WEST); container.add(Box.createHori...
private void createUI() { createToolbar(); createActionbar(); createPanels(); JPanel container = new JPanel(); container.setLayout(new BoxLayout(container, BoxLayout.X_AXIS)); container.add(toolbar , BorderLayout.WEST); container.add(Box.createHori...
3,238,571
public void init() { tree.getTopItem().setExpanded(true); }
public void init() { tree.getTopItem().setExpanded(true); }
3,238,572
public Instruction visitOpAsgnOrNode(OpAsgnOrNode iVisited) { return orNodeVisitor; }
public Instruction visitOpAsgnOrNode(OpAsgnOrNode iVisited) { return opAsgnOrNodeVisitor; }
3,238,573
public void testContainedImages(){ // Something Set result = (Set) testFindPDIHierarchies(); assertTrue(nonNull, result != null && result.size() != 0); // Not to much Set test = new HashSet(); Iterator i = result.iterator(); while (i.hasNext()){ Object o =...
public void testContainedImages(){ // Something Set result = (Set) testFindPDIHierarchies(); assertTrue(nonNull, result != null && result.size() != 0); // Not to much Set test = new HashSet(); Iterator i = result.iterator(); while (i.hasNext()){ Object o =...
3,238,575
public void testContainedImages(){ // Something Set result = (Set) testFindPDIHierarchies(); assertTrue(nonNull, result != null && result.size() != 0); // Not to much Set test = new HashSet(); Iterator i = result.iterator(); while (i.hasNext()){ Object o =...
publicvoidtestContainedImages(){//SomethingSetresult=(Set)testFindPDIHierarchies();assertTrue(nonNull,result!=null&&result.size()!=0);//NottomuchSettest=newHashSet();Iteratori=result.iterator();while(i.hasNext()){Objecto=i.next();if(oinstanceofImage){test.add(o);}elseif(oinstanceofDataset){Datasetdd=(Dataset)o;test.add...
3,238,576
public void testFindCGCIHierarchiesNoReturn() { Object obj = testFindCGCIHierarchies(); }
public void testFindCGCIHierarchiesNoReturn() throws Exception { super.setUp(); Object obj = testFindCGCIHierarchies(); }
3,238,577
public void testFindDatasetAnnotationsSetForExperimenterNoReturn() { Object obj = testFindDatasetAnnotationsSetForExperimenter(); }
public void testFindDatasetAnnotationsSetForExperimenterNoReturn() throws Exception { super.setUp(); Object obj = testFindDatasetAnnotationsSetForExperimenter(); }
3,238,578
public void testFindDatasetAnnotationsSetNoReturn() { Object obj = testFindDatasetAnnotationsSet(); }
public void testFindDatasetAnnotationsSetNoReturn() throws Exception { super.setUp(); Object obj = testFindDatasetAnnotationsSet(); }
3,238,579
public void testFindImageAnnotationsSetForExperimenterNoReturn() { Object obj = testFindImageAnnotationsSetForExperimenter(); }
public void testFindImageAnnotationsSetForExperimenterNoReturn() throws Exception { super.setUp(); Object obj = testFindImageAnnotationsSetForExperimenter(); }
3,238,580
public void testFindImageAnnotationsSetNoReturn() { Object obj = testFindImageAnnotationsSet(); }
public void testFindImageAnnotationsSetNoReturn() throws Exception { super.setUp(); Object obj = testFindImageAnnotationsSet(); }
3,238,581
public void testFindPDIHierarchiesNoReturn() { Object obj = testFindPDIHierarchies(); }
public void testFindPDIHierarchiesNoReturn() throws Exception { super.setUp(); Object obj = testFindPDIHierarchies(); }
3,238,582
public void testLoadCGCIHierarchyCategoryGroupNoReturn() { Object obj = testLoadCGCIHierarchyCategoryGroup(); }
public void testLoadCGCIHierarchyCategoryGroupNoReturn() throws Exception { super.setUp(); Object obj = testLoadCGCIHierarchyCategoryGroup(); }
3,238,583
public void testLoadCGCIHierarchyCategoryNoReturn() { Object obj = testLoadCGCIHierarchyCategory(); }
public void testLoadCGCIHierarchyCategoryNoReturn() throws Exception { super.setUp(); Object obj = testLoadCGCIHierarchyCategory(); }
3,238,584
public void testLoadPDIHierarchyDatasetNoReturn() { Object obj = testLoadPDIHierarchyDataset(); }
public void testLoadPDIHierarchyDatasetNoReturn() throws Exception { super.setUp(); Object obj = testLoadPDIHierarchyDataset(); }
3,238,585
public void testLoadPDIHierarchyProjectNoReturn() { Object obj = testLoadPDIHierarchyProject(); }
public void testLoadPDIHierarchyProjectNoReturn() throws Exception { super.setUp(); Object obj = testLoadPDIHierarchyProject(); }
3,238,586
public void testNulls(){ // Each method should return a null or an empty set as appropriate //TODO getHb().findCGCIHierarchies( ); //TODO generate OMENullData(); and use it here. //TODO OMEData toString(); Set test = new HashSet(); test.add(new Integer(0)); // Non-e...
public void testNulls(){ // Each method should return a null or an empty set as appropriate //TODO getHb().findCGCIHierarchies( ); //TODO generate OMENullData(); and use it here. //TODO OMEData toString(); Set test = new HashSet(); test.add(new Integer(0)); // Non-existence set of ids int nonExp = 0; //...
3,238,587
public void testNulls(){ // Each method should return a null or an empty set as appropriate //TODO getHb().findCGCIHierarchies( ); //TODO generate OMENullData(); and use it here. //TODO OMEData toString(); Set test = new HashSet(); test.add(new Integer(0)); // Non-e...
public void testNulls(){ // Each method should return a null or an empty set as appropriate //TODO getHb().findCGCIHierarchies( ); //TODO generate OMENullData(); and use it here. //TODO OMEData toString(); Set test = new HashSet(); test.add(new Integer(0)); // Non-e...
3,238,588
public void testIterating() throws Exception { assertEquals("[\"foo\", \"bar\"]", eval("$h.each {|pair| p pair}")); assertEquals("{\"foo\"=>\"bar\"}", eval("p $h.each {|pair| }")); assertEquals("[\"foo\", \"bar\"]", eval("$h.each_pair {|pair| p pair}")); assertEquals("{\"foo\"=>\"bar\"}"...
public void testIterating() throws Exception { assertEquals("[\"foo\", \"bar\"]", eval("$h.each {|pair| p pair}")); assertEquals("{\"foo\"=>\"bar\"}", eval("p $h.each {|pair| }")); assertEquals("[\"foo\", \"bar\"]", eval("$h.each_pair {|pair| p pair}")); assertEquals("{\"foo\"=>\"bar\"}"...
3,238,590
public void setValue (Context c, Object v) throws PropertyException { throw new PropertyException("Cannot set the value of a function: " + _vname); }
public void setValue (Context c, Object v) throws PropertyException { throw new PropertyException("Cannot set the value of a function: " + getVariableName()); }
3,238,591
public String toString () { return "function:" + _vname; }
public String toString () { return "function:" + getVariableName(); }
3,238,592
public DefaultMethod(ScopeNode body, ArgsNode argsNode, Visibility visibility, RubyModule module) { super(visibility); this.body = body; this.argsNode = argsNode; this.module = module; }
public DefaultMethod(ScopeNode body, ArgsNode argsNode, Visibility visibility, ArrayStack moduleStack) { super(visibility); this.body = body; this.argsNode = argsNode; this.module = module; }
3,238,593
public DefaultMethod(ScopeNode body, ArgsNode argsNode, Visibility visibility, RubyModule module) { super(visibility); this.body = body; this.argsNode = argsNode; this.module = module; }
public DefaultMethod(ScopeNode body, ArgsNode argsNode, Visibility visibility, RubyModule module) { super(visibility); this.body = body; this.argsNode = argsNode; this.moduleStack = moduleStack; }
3,238,594
public IRubyObject call(Ruby runtime, IRubyObject receiver, String name, IRubyObject[] args, boolean noSuper) { ThreadContext context = runtime.getCurrentContext(); RubyProc optionalBlockArg = null; if (argsNode.getBlockArgNode() != null && context.isBlockGiven()) { optionalBlockArg ...
public IRubyObject call(Ruby runtime, IRubyObject receiver, String name, IRubyObject[] args, boolean noSuper) { ThreadContext context = runtime.getCurrentContext(); RubyProc optionalBlockArg = null; if (argsNode.getBlockArgNode() != null && context.isBlockGiven()) { optionalBlockArg ...
3,238,595
public IRubyObject call(Ruby runtime, IRubyObject receiver, String name, IRubyObject[] args, boolean noSuper) { ThreadContext context = runtime.getCurrentContext(); RubyProc optionalBlockArg = null; if (argsNode.getBlockArgNode() != null && context.isBlockGiven()) { optionalBlockArg ...
public IRubyObject call(Ruby runtime, IRubyObject receiver, String name, IRubyObject[] args, boolean noSuper) { ThreadContext context = runtime.getCurrentContext(); RubyProc optionalBlockArg = null; if (argsNode.getBlockArgNode() != null && context.isBlockGiven()) { optionalBlockArg ...
3,238,596
public ICallable dup() { return new DefaultMethod(body, argsNode, getVisibility(), module); }
public ICallable dup() { return new DefaultMethod(body, argsNode, getVisibility(), moduleStack); }
3,238,597
public void setQuantumStrategy(int family, double coefficient, int bitResolution) { RenderingDef rd = renderer.getRenderingDef(); QuantumDef qd = rd.getQuantumDef(), newQd; newQd = new QuantumDef(family, qd.pixelType, coefficient, qd.cdStart, qd.cdEnd, bitResolution); rd.setQuantumDef(newQd); r...
public void setQuantumStrategy(int family, double coefficient, int bitResolution) { RenderingDef rd = renderer.getRenderingDef(); QuantumDef qd = rd.getQuantumDef(), newQd; newQd = new QuantumDef(family, qd.pixelType, coefficient, qd.cdStart, qd.cdEnd, bitResolution); rd.setQuantumDef(newQd); r...
3,238,598
public String[] getNames() { File[] files = getFiles(); String[] names = new String[files.length]; for (int i = 0, size = files.length; i < size; i++) { names[i] = files[i].getPath(); } return names; }
public String[] getNames() { File[] files = getFiles(); String[] names = new String[files.length]; for (int i = 0, size = files.length; i < size; i++) { names[i] = files[i].getPath() + (patternEndsWithPathDelimeter ? "/" : ""); } return names; }
3,238,600
public Feature(Integer featureId, String name, String tag, org.openmicroscopy.omero.model.Image image, org.openmicroscopy.omero.model.Feature feature, Set features) { this.featureId = featureId; this.name = name; this.tag = tag; this.image = image; this.feature = feature; t...
public Feature(Integer featureId, String name, String tag, org.openmicroscopy.omero.model.Image image, org.openmicroscopy.omero.model.Feature feature, Set features) { this.featureId = featureId; this.name = name; this.tag = tag; this.image = image; this.feature = feature; t...
3,238,601
public org.openmicroscopy.omero.model.Feature getFeature() { return this.feature; }
public Feature getFeature() { return this.feature; }
3,238,602
public org.openmicroscopy.omero.model.Image getImage() { return this.image; }
public Image getImage() { return this.image; }
3,238,603
public void setFeature(org.openmicroscopy.omero.model.Feature feature) { this.feature = feature; }
public void setFeature(Feature feature) { this.feature = feature; }
3,238,604
public void setImage(org.openmicroscopy.omero.model.Image image) { this.image = image; }
public void setImage(Image image) { this.image = image; }
3,238,605
private void handleMousePressed(Point p, int clickCount) { pressed = true; dragging = true; currentROI = null; currentShape = null; anchor = p; Iterator i = listROI.iterator(); ROIShape roi; Shape s; Rectangle r; Segment vLeft, vRight, hTop, h...
private void handleMousePressed(Point p, int clickCount) { pressed = true; dragging = true; currentROI = null; currentShape = null; anchor = p; Iterator i = listROI.iterator(); ROIShape roi; Shape s, vLeft, vRight, hTop, hBottom; Rectangle r; ...
3,238,606
private void handleMousePressed(Point p, int clickCount) { pressed = true; dragging = true; currentROI = null; currentShape = null; anchor = p; Iterator i = listROI.iterator(); ROIShape roi; Shape s; Rectangle r; Segment vLeft, vRight, hTop, h...
private void handleMousePressed(Point p, int clickCount) { pressed = true; dragging = true; currentROI = null; currentShape = null; anchor = p; Iterator i = listROI.iterator(); ROIShape roi; Shape s; Rectangle r; Segment vLeft, vRight, hTop, h...
3,238,607
private void handleMousePressed(Point p, int clickCount) { pressed = true; dragging = true; currentROI = null; currentShape = null; anchor = p; Iterator i = listROI.iterator(); ROIShape roi; Shape s; Rectangle r; Segment vLeft, vRight, hTop, h...
private void handleMousePressed(Point p, int clickCount) { pressed = true; dragging = true; currentROI = null; currentShape = null; anchor = p; Iterator i = listROI.iterator(); ROIShape roi; Shape s; Rectangle r; Segment vLeft, vRight, hTop, h...
3,238,608
private void handleMousePressed(Point p, int clickCount) { pressed = true; dragging = true; currentROI = null; currentShape = null; anchor = p; Iterator i = listROI.iterator(); ROIShape roi; Shape s; Rectangle r; Segment vLeft, vRight, hTop, h...
private void handleMousePressed(Point p, int clickCount) { pressed = true; dragging = true; currentROI = null; currentShape = null; anchor = p; Iterator i = listROI.iterator(); ROIShape roi; Shape s; Rectangle r; Segment vLeft, vRight, hTop, h...
3,238,609
private void handleMousePressed(Point p, int clickCount) { pressed = true; dragging = true; currentROI = null; currentShape = null; anchor = p; Iterator i = listROI.iterator(); ROIShape roi; Shape s; Rectangle r; Segment vLeft, vRight, hTop, h...
private void handleMousePressed(Point p, int clickCount) { pressed = true; dragging = true; currentROI = null; currentShape = null; anchor = p; Iterator i = listROI.iterator(); ROIShape roi; Shape s; Rectangle r; Segment vLeft, vRight, hTop, h...
3,238,610
private void handleMousePressed(Point p, int clickCount) { pressed = true; dragging = true; currentROI = null; currentShape = null; anchor = p; Iterator i = listROI.iterator(); ROIShape roi; Shape s; Rectangle r; Segment vLeft, vRight, hTop, h...
private void handleMousePressed(Point p, int clickCount) { pressed = true; dragging = true; currentROI = null; currentShape = null; anchor = p; Iterator i = listROI.iterator(); ROIShape roi; Shape s; Rectangle r; Segment vLeft, vRight, hTop, h...
3,238,611
private void handleMousePressed(Point p, int clickCount) { pressed = true; dragging = true; currentROI = null; currentShape = null; anchor = p; Iterator i = listROI.iterator(); ROIShape roi; Shape s; Rectangle r; Segment vLeft, vRight, hTop, h...
private void handleMousePressed(Point p, int clickCount) { pressed = true; dragging = true; currentROI = null; currentShape = null; anchor = p; Iterator i = listROI.iterator(); ROIShape roi; Shape s; Rectangle r; Segment vLeft, vRight, hTop, h...
3,238,612
private void move(Point p) { int diffX = p.x-anchor.x, diffY = p.y-anchor.y; Rectangle r = currentShape.getBounds(); int x = xControl+diffX, y = yControl+diffY, w = r.width, h = r.height; if (areaValid(x, y, w, h)) { ROIFactory.setShapeBounds(currentShape, curre...
private void move(Point p) { Rectangle r = currentShape.getBounds(); int x = xControl+diffX, y = yControl+diffY, w = r.width, h = r.height; if (areaValid(x, y, w, h)) { ROIFactory.setShapeBounds(currentShape, currentROI.getShapeType(), ...
3,238,613
private void move(Point p) { int diffX = p.x-anchor.x, diffY = p.y-anchor.y; Rectangle r = currentShape.getBounds(); int x = xControl+diffX, y = yControl+diffY, w = r.width, h = r.height; if (areaValid(x, y, w, h)) { ROIFactory.setShapeBounds(currentShape, curre...
private void move(Point p) { int diffX = p.x-anchor.x, diffY = p.y-anchor.y; Rectangle r = currentShape.getBounds(); int x = xControl+p.x-anchor.x, y = yControl+p.y-anchor.y, w = r.width, h = r.height; if (areaValid(x, y, w, h)) { ROIFactory.setShapeBounds(curre...
3,238,614
private void resize(Point p) { Rectangle r = currentROI.getShape().getBounds(); int x = r.x, y = r.y, w = r.width, h = r.height; switch (resizeZone) { case LEFT: x = p.x; w += anchor.x-p.x; break; case RIGHT: ...
privatevoidresize(Pointp){Rectangler=currentROI.getShape().getBounds();intx=r.x,y=r.y,w=r.width,h=r.height;switch(resizeZone){caseLEFT:x=p.x;w+=anchor.x-p.x;break;caseRIGHT:w+=p.x-anchor.x;break;caseTOP:y=p.y;h+=anchor.y-p.y;break;caseBOTTOM:h+=p.y-anchor.y;}if(areaValid(x,y,w,h)){currentShape=ROIFactory.makeShape(curr...
3,238,615
public void paintComponent(Graphics g) { super.paintComponent(g); Graphics2D g2D = (Graphics2D) g; g2D.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); g2D.setRenderingHint(RenderingHints.KEY_RENDERING, ...
public void paintComponent(Graphics g) { super.paintComponent(g); Graphics2D g2D = (Graphics2D) g; g2D.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); g2D.setRenderingHint(RenderingHints.KEY_RENDERING, ...
3,238,616
private static Vector getListOfFiles(File file, boolean recursive) { Vector ret = new Vector(); if (file.isFile()) { ret.add(file.getAbsolutePath()); } else if (file.isDirectory()) { File[] files = file.listFiles(); for (int i = 0; i < files.length; i++) { if (recursive) { ret.addAll(getListOfF...
private static Vector getListOfFiles(File file, boolean recursive) { Vector ret = new Vector(); if (file.isFile()) { ret.add(file.getAbsolutePath()); } else if (file.isDirectory()) { File[] files = file.listFiles(); for (int i = 0; i < files.length; i++) { if (recursive) { ret.addAll(getListOfF...
3,238,617
public static void clearMethodCache(Ruby runtime) { Iterator iter = runtime.getClasses().getClassMap().values().iterator(); while (iter.hasNext()) { ((RubyModule) iter.next()).methodCache.clear(); } }
public static void clearMethodCache(Ruby runtime) { Iterator iter = runtime.getClasses().getTopLevelClassMap().values().iterator(); while (iter.hasNext()) { ((RubyModule) iter.next()).methodCache.clear(); } iter = runtime.getClasses().getNonTopLevelClassMap().values().iterator(); while (iter.hasNext(...
3,238,618
public RubyObject execute(RubyObject recv, RubyObject[] args, Ruby ruby) { LinkedList executeMethods = new LinkedList(Arrays.asList(methods)); int argsLength = args != null ? args.length : 0; // remove mehods with wrong parameter count. Iterator iter = executeMethods.iter...
public RubyObject execute(RubyObject recv, RubyObject[] args, Ruby ruby) { LinkedList executeMethods = new LinkedList(Arrays.asList(methods)); int argsLength = args != null ? args.length : 0; // remove mehods with wrong parameter count. Iterator iter = executeMethods.iter...
3,238,619
private void handleSendMessage(MessengerDialog source, MessengerDetails details) { Registry reg = container.getRegistry(); String url = (String) reg.lookup(LookupNames.DEBUG_URL); String teamAddress = (String) reg.lookup(LookupNames.DEBUG_EMAIL); CommunicatorDescriptor desc = new CommunicatorDescriptor ...
private void handleSendMessage(MessengerDialog source, MessengerDetails details) { Registry reg = container.getRegistry(); String url = (String) reg.lookup(LookupNames.DEBUG_URL); String teamAddress = (String) reg.lookup(LookupNames.DEBUG_EMAIL); CommunicatorDescriptor desc = new CommunicatorDescriptor ...
3,238,620
public boolean equals(Object object) { if (object == this) { return true; } if (object instanceof SourcePosition) { return false; } SourcePosition other = (SourcePosition) object; return file.equals(other.file) && line == other.line; }
public boolean equals(Object object) { if (object == this) { return true; } if (!(object instanceof SourcePosition)) { return false; } SourcePosition other = (SourcePosition) object; return file.equals(other.file) && line == other.line; }
3,238,621
protected void setUp() { pixels = new Pixels(); pixels.setSizeX(1024); pixels.setSizeY(1024); pixels.setSizeZ(64); pixels.setSizeC(3); pixels.setSizeT(50); PixelsType type = new PixelsType(); pixels.setPixelsType(type); // FIXME pixel...
protected void setUp() { pixels = new Pixels(); pixels.setSizeX(1024); pixels.setSizeY(1024); pixels.setSizeZ(64); pixels.setSizeC(3); pixels.setSizeT(50); PixelsType type = new PixelsType(); pixels.setPixelsType(type); // FIXME Pixel...
3,238,622
public void testGetInitialPlaneOffset() { assertEquals(pixelBuffer.getPlaneOffset(0, 0, 0).longValue(), 0L); }
public void testGetInitialPlaneOffset() throws DimensionsOutOfBoundsException { assertEquals(pixelBuffer.getPlaneOffset(0, 0, 0).longValue(), 0L); }
3,238,623
public void testGetPlaneOffset1() { long offset = ((long)timepointSize * 25) + ((long)planeSize * 25); assertEquals(pixelBuffer.getPlaneOffset(25, 0, 25).longValue(), offset); }
public void testGetPlaneOffset1() throws DimensionsOutOfBoundsException { long offset = ((long)timepointSize * 25) + ((long)planeSize * 25); assertEquals(pixelBuffer.getPlaneOffset(25, 0, 25).longValue(), offset); }
3,238,624
public void testGetPlaneOffset2() { long offset = ((long)timepointSize * 25) + ((long)stackSize * 1) + ((long)planeSize * 25); assertEquals(pixelBuffer.getPlaneOffset(25, 1, 25).longValue(), offset); }
public void testGetPlaneOffset2() throws DimensionsOutOfBoundsException { long offset = ((long)timepointSize * 25) + ((long)stackSize * 1) + ((long)planeSize * 25); assertEquals(pixelBuffer.getPlaneOffset(25, 1, 25).longValue(), offset); }
3,238,625
public IRubyObject set(IRubyObject value) { bean.bean = JavaUtil.convertRubyToJava(ruby, value.toRubyObject(), bean.type); return value; }
public IRubyObject set(IRubyObject value) { bean.bean = JavaUtil.convertRubyToJava(ruby, value, bean.type); return value; }
3,238,626
protected static void runInterpreter(String iString2Eval, String iFileName, String[] args) { // Initialize Runtime Ruby ruby = Ruby.getDefaultInstance(sRegexpAdapter); // Parse and interpret file RubyString rs = RubyString.newString(ruby, iString2Eval); RubyObject lArgv = JavaUtil...
protected static void runInterpreter(String iString2Eval, String iFileName, String[] args) { // Initialize Runtime Ruby ruby = Ruby.getDefaultInstance(sRegexpAdapter); // Parse and interpret file RubyString rs = RubyString.newString(ruby, iString2Eval); RubyObject lArgv = JavaUtil...
3,238,627
public boolean load(String file) { if (file.endsWith(".jar")) { // FIXME return false; } else { if (!file.endsWith(".rb")) { file += ".rb"; } runtime.getRuntime().loadFile(findFile(file), false); } return true; }
public boolean load(String file) { if (file.endsWith(".jar")) { // FIXME return false; } else { if (!file.endsWith(".rb")) { file += ".rb"; } runtime.getRuntime().loadFile(findFile(file), false); } return true; }
3,238,628
public void setUp() throws Exception { ruby = Ruby.getDefaultInstance(null); eval("$h = {'foo' => 'bar'}"); }
public void setUp() throws Exception { if (ruby == null) { ruby = Ruby.getDefaultInstance(null); } eval("$h = {'foo' => 'bar'}"); }
3,238,631
final public Object evaluate (Context context) throws PropertyException { try { Object val = getValue(context); if (val instanceof Macro) { val = ((Macro) val).evaluate(context); // recurse } return val; } catch (Nu...
final public Object evaluate (Context context) throws PropertyException { try { Object val = getValue(context); if (val instanceof Macro) { val = ((Macro) val).evaluate(context); // recurse } return val; } catch (Nu...
3,238,632
final public Object evaluate (Context context) throws PropertyException { try { Object val = getValue(context); if (val instanceof Macro) { val = ((Macro) val).evaluate(context); // recurse } return val; } catch (Nu...
final public Object evaluate (Context context) throws PropertyException { try { Object val = getValue(context); if (val instanceof Macro) { val = ((Macro) val).evaluate(context); // recurse } return val; } catch (Nu...
3,238,633
final public void write (FastWriter out, Context context) throws PropertyException, IOException { try { Object val = getValue(context); if (val instanceof Macro) ((Macro) val).write(out, context); else { if (val !=...
final public void write (FastWriter out, Context context) throws PropertyException, IOException { try { Object val = getValue(context); if (val instanceof Macro) ((Macro) val).write(out, context); else { if (val !=...
3,238,634
final public void write (FastWriter out, Context context) throws PropertyException, IOException { try { Object val = getValue(context); if (val instanceof Macro) ((Macro) val).write(out, context); else { if (val !=...
final public void write (FastWriter out, Context context) throws PropertyException, IOException { try { Object val = getValue(context); if (val instanceof Macro) ((Macro) val).write(out, context); else { if (val !=...
3,238,635
final public void write (FastWriter out, Context context) throws PropertyException, IOException { try { Object val = getValue(context); if (val instanceof Macro) ((Macro) val).write(out, context); else { if (val !=...
final public void write (FastWriter out, Context context) throws PropertyException, IOException { try { Object val = getValue(context); if (val instanceof Macro) ((Macro) val).write(out, context); else { if (val !=...
3,238,636
public void renameNote(Event e) { String newName = dd.getTree().getTreeEditorText(); DisplayedNote dn = dd.getTree().getSelectedNode().getDisplayedNote(); dn.getNote().setName(newName); dn.getTreeNode().setName(newName); if (dn.getTab() != null) dn.getTab().setName(newName); }
public void renameNote(Event e) { String newName = dd.getTree().getTreeEditorText(); DisplayedNote dn = dd.getTree().getSelectedNode().getDisplayedNote(); dn.getNote().setName(newName); dn.getTreeNode().setName(newName); if (dn.getTab() != null) dn.getTab().setName(newName); }
3,238,637
public void renameNote(Event e) { String newName = dd.getTree().getTreeEditorText(); DisplayedNote dn = dd.getTree().getSelectedNode().getDisplayedNote(); dn.getNote().setName(newName); dn.getTreeNode().setName(newName); if (dn.getTab() != null) dn.getTab().setName(newName); }
public void renameNote(Event e) { String newName = dd.getTree().getTreeEditorText(); DisplayedNote dn = dd.getTree().getSelectedNode().getDisplayedNote(); dn.getNote().setName(newName); dn.getTreeNode().setName(newName); if (dn.getTab() != null) dn.getTab().setName(newName); }
3,238,638
public RubyClass getSingletonClassClone() { if (!isSingleton()) { return this; } MetaClass clone = new MetaClass(getRuntime(), getMetaClass(), getSuperClass()); clone.initCopy(this); clone.setInstanceVariables(new HashMap(getInstanceVariables())); return (RubyCla...
public RubyClass getSingletonClassClone() { if (!isSingleton()) { return this; } MetaClass clone = new MetaClass(getRuntime(), getMetaClass(), getSuperClass().getCRef()); clone.initCopy(this); clone.setInstanceVariables(new HashMap(getInstanceVariables())); retur...
3,238,639
public static RubyClass newClass(IRuby runtime, RubyClass superClass, RubyModule parentClass, String name) { return new RubyClass(runtime, runtime.getClass("Class"), superClass, parentClass, name); }
public static RubyClass newClass(IRuby runtime, RubyClass superClass, RubyModule parentClass, String name) { return new RubyClass(runtime, runtime.getClass("Class"), superClass, parentClass, name); }
3,238,640
public MetaClass newSingletonClass(RubyModule parent) { MetaClass newClass = new MetaClass(getRuntime(), this, parent); newClass.infectBy(this); return newClass; }
public MetaClass newSingletonClass(RubyModule parent) { MetaClass newClass = new MetaClass(getRuntime(), this, parent); newClass.infectBy(this); return newClass; }
3,238,641
public RubyClass newSubClass(String name, RubyModule parent) { RubyClass newClass = new RubyClass(runtime, runtime.getClass("Class"), this, parent, name); newClass.makeMetaClass(getMetaClass(), newClass); newClass.inheritedBy(this); parent.setConstant(name, newClass); return newCl...
public RubyClass newSubClass(String name, RubyModule parent) { RubyClass newClass = new RubyClass(runtime, runtime.getClass("Class"), this, parent, name); newClass.makeMetaClass(getMetaClass(), newClass); newClass.inheritedBy(this); parent.setConstant(name, newClass); return newCl...
3,238,642
public RubyClass newSubClass(String name, RubyModule parent) { RubyClass newClass = new RubyClass(runtime, runtime.getClass("Class"), this, parent, name); newClass.makeMetaClass(getMetaClass(), newClass); newClass.inheritedBy(this); parent.setConstant(name, newClass); return newCl...
public RubyClass newSubClass(String name, RubyModule parent) { RubyClass newClass = new RubyClass(runtime, runtime.getClass("Class"), this, parent, name); newClass.makeMetaClass(getMetaClass(), newClass.getCRef()); newClass.inheritedBy(this); parent.setConstant(name, newClass); re...
3,238,643
public RubyClass newSubClass(String name, RubyModule parent) { RubyClass newClass = new RubyClass(runtime, runtime.getClass("Class"), this, parent, name); newClass.makeMetaClass(getMetaClass(), newClass); newClass.inheritedBy(this); parent.setConstant(name, newClass); return newCl...
public RubyClass newSubClass(String name, RubyModule parent) { RubyClass newClass = new RubyClass(runtime, runtime.getClass("Class"), this, parent, name); newClass.makeMetaClass(getMetaClass(), newClass); newClass.inheritedBy(this); ((RubyModule)parentCRef.getValue()).setConstant(name, n...
3,238,644
private Session acquireBindAndConfigureSession() throws HibernateException { debug("Opening and binding session."); Session session = factory.openSession(); session.setFlushMode( FlushMode.NEVER ); bindSession(session); return session; }
private Session acquireBindAndConfigureSession() throws HibernateException { debug("Opening and binding session."); Session session = factory.openSession(); session.setFlushMode( FlushMode.COMMIT ); bindSession(session); return session; }
3,238,645
HistogramPanel(HistogramDialogManager manager, int mini, int maxi, int startReal, int endReal, int yStart, int yEnd, PixelsStatsEntry[] histogramData) { this.histogramData = histogramData; this.manager = manager; sizeBin = (int) (widthStat/histogramData.length); setWindowLimits(mini, maxi); setInputWind...
HistogramPanel(HistogramDialogManager manager, int mini, int maxi, int startReal, int endReal, int yStart, int yEnd, PixelsStatsEntry[] histogramData) { this.histogramData = histogramData; this.manager = manager; sizeBin = (int) (widthStat/histogramData.length); setWindowLimits(mini, maxi); setInputWind...
3,238,646