bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
public static BPalette getZoomPalette(final BrowserModel backingModel, final BrowserTopModel model) { if(backingModel == null || model == null) { return null; } BPalette palette = new BPalette(model,"Zoom"); BIcon toFi...
public static BPalette getZoomPalette(final BrowserModel backingModel, final BrowserTopModel model) { if(backingModel == null || model == null) { return null; } BPalette palette = new BPalette(model,"Zoom"); BIcon toFi...
3,228,555
public void addBrowser(BrowserController browser) { if (browser != null) { browserList.add(0,browser); } }
public void addBrowser(UIWrapper browser) { if (browser != null) { browserList.add(0,browser); } }
3,228,557
public DatasetData retrieveDataset(int datasetID) throws DSOutOfServiceException, DSAccessException;
public DatasetData retrieveDataset(int datasetID) throws DSOutOfServiceException, DSAccessException;
3,228,558
public BrowserController getBrowser(int index) { try { return (BrowserController) browserList.get(index); } catch (Exception e) { // TODO: log message here return null; } }
public UIWrapper getBrowser(int index) { try { return (BrowserController) browserList.get(index); } catch (Exception e) { // TODO: log message here return null; } }
3,228,559
public BrowserController getBrowser(int index) { try { return (BrowserController) browserList.get(index); } catch (Exception e) { // TODO: log message here return null; } }
public BrowserController getBrowser(int index) { try { return (UIWrapper) browserList.get(index); } catch (Exception e) { // TODO: log message here return null; } }
3,228,560
public static String format(String message, int stepsComplete, int totalSteps) { message.replaceAll("%n",String.valueOf(stepsComplete)); message.replaceAll("%t",String.valueOf(totalSteps)); return message; }
public static String format(String message, int stepsComplete, int totalSteps) { message.replaceAll("%n",String.valueOf(stepsComplete)); message.replaceAll("%t",String.valueOf(totalSteps)); return message; }
3,228,561
private void addInstrumentation(File file) { if (file.isDirectory()) { File[] contents = file.listFiles(); for (int i = 0; i < contents.length; i++) addInstrumentation(contents[i]); return; } if (!isClass(file)) { return; } if (logger.isDebugEnabled()) { logger.debug("instrumenting " + file.getAbs...
private void addInstrumentation(File file) { if (file.isDirectory()) { File[] contents = file.listFiles(); for (int i = 0; i < contents.length; i++) addInstrumentation(contents[i]); return; } if (!isClass(file)) { return; } if (logger.isDebugEnabled()) { logger.debug("instrumenting " + file.getAbs...
3,228,562
private void addInstrumentation(File file) { if (file.isDirectory()) { File[] contents = file.listFiles(); for (int i = 0; i < contents.length; i++) addInstrumentation(contents[i]); return; } if (!isClass(file)) { return; } if (logger.isDebugEnabled()) { logger.debug("instrumenting " + file.getAbs...
private void addInstrumentation(File file) { if (file.isDirectory()) { File[] contents = file.listFiles(); for (int i = 0; i < contents.length; i++) addInstrumentation(contents[i]); return; } if (!isClass(file)) { return; } if (logger.isDebugEnabled()) { logger.debug("instrumenting " + file.getAbs...
3,228,563
private void addInstrumentation(File file) { if (file.isDirectory()) { File[] contents = file.listFiles(); for (int i = 0; i < contents.length; i++) addInstrumentation(contents[i]); return; } if (!isClass(file)) { return; } if (logger.isDebugEnabled()) { logger.debug("instrumenting " + file.getAbs...
private void addInstrumentation(File file) { if (file.isDirectory()) { File[] contents = file.listFiles(); for (int i = 0; i < contents.length; i++) addInstrumentation(contents[i]); return; } if (!isClass(file)) { return; } if (logger.isDebugEnabled()) { logger.debug("instrumenting " + file.getAbs...
3,228,564
private void addInstrumentation(File file) { if (file.isDirectory()) { File[] contents = file.listFiles(); for (int i = 0; i < contents.length; i++) addInstrumentation(contents[i]); return; } if (!isClass(file)) { return; } if (logger.isDebugEnabled()) { logger.debug("instrumenting " + file.getAbs...
private void addInstrumentation(File file) { if (file.isDirectory()) { File[] contents = file.listFiles(); for (int i = 0; i < contents.length; i++) addInstrumentation(contents[i]); return; } if (!isClass(file)) { return; } if (logger.isDebugEnabled()) { logger.debug("instrumenting " + file.getAbs...
3,228,565
public static void main(String[] args) { long startTime = System.currentTimeMillis(); Main main = new Main(); boolean hasCommandsFile = false; String commandsFileName = null; for (int i = 0; i < args.length; i++) { if (args[i].equals("--commandsfile")) { hasCommandsFile = true; commandsFileName = args[...
public static void main(String[] args) { long startTime = System.currentTimeMillis(); Main main = new Main(); boolean hasCommandsFile = false; String commandsFileName = null; for (int i = 0; i < args.length; i++) { if (args[i].equals("--commandsfile")) { hasCommandsFile = true; commandsFileName = args[...
3,228,566
public ClassInstrumenter(ProjectData projectData, final ClassVisitor cv, Pattern ignoreRegexp) { super(cv); this.projectData = projectData; this.ignoreRegex = ignoreRegexp; }
public ClassInstrumenter(ProjectData projectData, final ClassVisitor cv, Pattern ignoreRegexp) { super(cv); this.projectData = projectData; this.ignoreRegex = ignoreRegexp; }
3,228,567
public ClassInstrumenter(ProjectData projectData, final ClassVisitor cv, Pattern ignoreRegexp) { super(cv); this.projectData = projectData; this.ignoreRegex = ignoreRegexp; }
public ClassInstrumenter(ProjectData projectData, final ClassVisitor cv, Pattern ignoreRegexp) { super(cv); this.projectData = projectData; this.ignoreRegex = ignoreRegexp; }
3,228,568
public RubyClass defineClass(String name, RubyClass superClass) { return defineClassUnder(name, superClass, objectClass); }
public RubyClass defineClass(String name, RubyClass superClass) { return defineClassUnder(name, superClass, objectClass.getCRef()); }
3,228,569
public RubyClass defineClassUnder(String name, RubyClass superClass, RubyModule parentModule) { if (superClass == null) { superClass = objectClass; } return superClass.newSubClass(name, parentModule); }
public RubyClass defineClassUnder(String name, RubyClass superClass, SinglyLinkedList parentCRef) { if (superClass == null) { superClass = objectClass; } return superClass.newSubClass(name, parentModule); }
3,228,570
public RubyClass defineClassUnder(String name, RubyClass superClass, RubyModule parentModule) { if (superClass == null) { superClass = objectClass; } return superClass.newSubClass(name, parentModule); }
public RubyClass defineClassUnder(String name, RubyClass superClass, RubyModule parentModule) { if (superClass == null) { superClass = objectClass; } return superClass.newSubClass(name, parentCRef); }
3,228,571
public RubyModule defineModule(String name) { return defineModuleUnder(name, objectClass); }
public RubyModule defineModule(String name) { return defineModuleUnder(name, objectClass.getCRef()); }
3,228,572
public RubyModule defineModuleUnder(String name, RubyModule parentModule) { RubyModule newModule = RubyModule.newModule(this, name, parentModule); parentModule.setConstant(name, newModule); return newModule; }
public RubyModule defineModuleUnder(String name, RubyModule parentModule) { RubyModule newModule = RubyModule.newModule(this, name, parentModule); parentModule.setConstant(name, newModule); return newModule; }
3,228,573
public RubyModule defineModuleUnder(String name, RubyModule parentModule) { RubyModule newModule = RubyModule.newModule(this, name, parentModule); parentModule.setConstant(name, newModule); return newModule; }
public RubyModule defineModuleUnder(String name, RubyModule parentModule) { RubyModule newModule = RubyModule.newModule(this, name, parentModule); ((RubyModule)parentCRef.getValue()).setConstant(name, newModule); return newModule; }
3,228,574
public RubyModule getModule(String name) { return (RubyModule) objectClass.getConstant(name, false); }
public RubyModule getModule(String name) { return (RubyModule) objectClass.getConstantAt(name); }
3,228,575
public RubyModule getOrCreateModule(String name) { RubyModule module = (RubyModule) getCurrentContext().getRubyClass().getConstant(name, false); if (module == null) { module = (RubyModule) getCurrentContext().getRubyClass().setConstant(name, defineModule(name)); ...
public RubyModule getOrCreateModule(String name) { RubyModule module = (RubyModule) getCurrentContext().getRubyClass().getConstantAt(name); if (module == null) { module = (RubyModule) getCurrentContext().getRubyClass().setConstant(name, defineModule(name)); } e...
3,228,576
private void initCoreClasses() { ObjectMetaClass objectMetaClass = new ObjectMetaClass(this); objectMetaClass.initializeClass(); objectClass = objectMetaClass; objectClass.setConstant("Object", objectClass); RubyClass moduleClass = new ModuleMetaClass(this, objectClass); ...
private void initCoreClasses() { ObjectMetaClass objectMetaClass = new ObjectMetaClass(this); objectMetaClass.initializeClass(); objectClass = objectMetaClass; objectClass.setConstant("Object", objectClass); RubyClass moduleClass = new ModuleMetaClass(this, objectClass); ...
3,228,578
public void loadNode(String scriptName, Node node, boolean wrap) { IRubyObject self = getTopSelf(); ThreadContext context = getCurrentContext(); RubyModule wrapper = context.getWrapper(); if (!wrap) { secure(4); /* should alter global state */ context.pr...
public void loadNode(String scriptName, Node node, boolean wrap) { IRubyObject self = getTopSelf(); ThreadContext context = getCurrentContext(); RubyModule wrapper = context.getWrapper(); if (!wrap) { secure(4); /* should alter global state */ context.pr...
3,228,580
public void loadNode(String scriptName, Node node, boolean wrap) { IRubyObject self = getTopSelf(); ThreadContext context = getCurrentContext(); RubyModule wrapper = context.getWrapper(); if (!wrap) { secure(4); /* should alter global state */ context.pr...
public void loadNode(String scriptName, Node node, boolean wrap) { IRubyObject self = getTopSelf(); ThreadContext context = getCurrentContext(); RubyModule wrapper = context.getWrapper(); if (!wrap) { secure(4); /* should alter global state */ context.pr...
3,228,581
public void loadNode(String scriptName, Node node, boolean wrap) { IRubyObject self = getTopSelf(); ThreadContext context = getCurrentContext(); RubyModule wrapper = context.getWrapper(); if (!wrap) { secure(4); /* should alter global state */ context.pr...
public void loadNode(String scriptName, Node node, boolean wrap) { IRubyObject self = getTopSelf(); ThreadContext context = getCurrentContext(); RubyModule wrapper = context.getWrapper(); if (!wrap) { secure(4); /* should alter global state */ context.pr...
3,228,582
public BignumMetaClass(Ruby runtime) { super("Bignum", RubyBignum.class, runtime.getObject()); }
public BignumMetaClass(Ruby runtime) { super("Bignum", RubyBignum.class, runtime.getClass("Integer")); }
3,228,583
public static RubyModule createGCModule(Ruby ruby) { return new GCDefinition(ruby).getModule(); }
public static RubyModule createGCModule(Ruby ruby) { RubyModule result = ruby.defineModule("GC"); CallbackFactory callbackFactory = ruby.callbackFactory(); result.defineSingletonMethod("start", callbackFactory.getSingletonMethod(RubyGC.class, "start")); result.defineSingletonMethod("garbage_collect", callba...
3,228,584
public static RubyModule createProcessModule(IRuby runtime) { RubyModule process = runtime.defineModule("Process"); RubyModule process_status = process.defineClassUnder("Status", runtime.getObject()); CallbackFactory processCallbackFactory = runtime.callbackFactory(RubyProcess.class); ...
process_status.defineMethod("==", process_statusCallbackFactory.getMethod("op_eq", IRubyObject.class)); process_status.defineMethod("==", process_statusCallbackFactory.getMethod("op_eq", IRubyObject.class)); process_status.defineMethod("==", process_statusCallbackFactory.getMethod("op_eq", IRubyObject.class)); process_...
3,228,585
protected RubyFileStat(IRuby runtime, JRubyFile file) { super(runtime, runtime.getClass("File").getClass("Stat")); if(!file.exists()) { throw runtime.newErrnoENOENTError("No such file or directory - " + file.getPath()); } // We cannot determine, so always return 4096 (better t...
protected RubyFileStat(IRuby runtime, JRubyFile file) { super(runtime, runtime.getClass("File").getClass("Stat")); if(!file.exists()) { throw runtime.newErrnoENOENTError("No such file or directory - " + file.getPath()); } // We cannot determine, so always return 4096 (better t...
3,228,586
int getBitDepth() { return 16; // FIXME pixels.getPixelsType(); }
int getBitDepth() { PixelsType type = pixels.getPixelsType(); if (type.getValue().equals("int8") || type.getValue().equals("uint8")) { return 8; } else if (type.getValue().equals("int16") || type.getValue().equals("uint16")) { return 16; } else if (type.getValue().equals("int32") || type.getValue().equal...
3,228,587
private boolean flatten(ArrayList ary) { boolean mod = false; for (int i = ary.size() - 1; i >= 0; i--) { if (ary.get(i) instanceof RubyArray) { ArrayList ary2 = ((RubyArray) ary.remove(i)).getList(); flatten(ary2); ary.addAll(i, ary2); ...
private boolean flatten(ArrayList ary) { boolean mod = false; for (int i = ary.size() - 1; i >= 0; i--) { if (ary.get(i) instanceof RubyArray) { ArrayList ary2 = ((RubyArray) ary.remove(i)).getList(); flatten(ary2); ary.addAll(i, ary2); ...
3,228,588
public IRubyObject rbClone() { RubyArray ary = newArray(getRuntime(), list); ary.setupClone(this); return ary; }
public IRubyObject rbClone() { RubyArray ary = newArray(getRuntime(), new ArrayList(list)); ary.setupClone(this); return ary; }
3,228,589
public static Callback getSelfMethod() { return new Callback() { public RubyObject execute(RubyObject recv, RubyObject[] args, Ruby ruby) { return recv; } }; }
public static Callback getSelfMethod(final int arity) { return new Callback() { public RubyObject execute(RubyObject recv, RubyObject[] args, Ruby ruby) { return recv; } }; }
3,228,590
public RubyClass getSingletonClass() { if (isNil()) { return getNilSingletonClass(); } RubyClass type = getInternalClass().isSingleton() ? getInternalClass() : makeMetaClass(getInternalClass()); type.setTaint(isTaint()); type.setFrozen(isFrozen()); re...
public RubyClass getSingletonClass() { if (isNil()) { return getNilSingletonClass(); } RubyClass type = getInternalClass().isSingleton() ? getInternalClass() : makeMetaClass(getInternalClass()); type.setTaint(isTaint()); type.setFrozen(isFrozen()); re...
3,228,592
public IRubyObject yieldUnder(RubyModule under) { return under.executeUnder(new Callback() { public IRubyObject execute(IRubyObject self, IRubyObject[] args) { // if () { Block oldBlock = runtime.getBlockStack().getCurrent().cloneBlock(); /...
public IRubyObject yieldUnder(RubyModule under) { return under.executeUnder(new Callback() { public IRubyObject execute(IRubyObject self, IRubyObject[] args) { // if () { Block oldBlock = runtime.getBlockStack().getCurrent().cloneBlock(); /...
3,228,593
public IRubyObject execute(IRubyObject self, IRubyObject[] args) { // if () { Block oldBlock = runtime.getBlockStack().getCurrent().cloneBlock(); /* copy the block to avoid modifying global data. */ runtime.getBlockStack().getCurrent()...
public IRubyObject execute(IRubyObject self, IRubyObject[] args) { // if () { Block oldBlock = runtime.getBlockStack().getCurrent().cloneBlock(); /* copy the block to avoid modifying global data. */ runtime.getBlockStack().getCurrent()...
3,228,594
public void connectionClosedOnError(final Exception ex) { SwingUtilities.invokeLater(new Runnable() { public void run() { Log.error("Connection closed on error.", ex); String message = "Your connection was closed due to an error."; if (ex instanceof XMP...
public void connectionClosedOnError(final Exception ex) { SwingUtilities.invokeLater(new Runnable() { public void run() { Log.error("Connection closed on error.", ex); String message = Res.getString("message.disconnected.error"); if (ex instanceof XMPPE...
3,228,595
public void connectionClosedOnError(final Exception ex) { SwingUtilities.invokeLater(new Runnable() { public void run() { Log.error("Connection closed on error.", ex); String message = "Your connection was closed due to an error."; if (ex instanceof XMP...
public void connectionClosedOnError(final Exception ex) { SwingUtilities.invokeLater(new Runnable() { public void run() { Log.error("Connection closed on error.", ex); String message = "Your connection was closed due to an error."; if (ex instanceof XMP...
3,228,596
public void run() { Log.error("Connection closed on error.", ex); String message = "Your connection was closed due to an error."; if (ex instanceof XMPPException) { XMPPException xmppEx = (XMPPException)ex; StreamError error ...
public void run() { Log.error("Connection closed on error.", ex); String message = Res.getString("message.disconnected.error"); if (ex instanceof XMPPException) { XMPPException xmppEx = (XMPPException)ex; StreamError error = ...
3,228,597
public void run() { Log.error("Connection closed on error.", ex); String message = "Your connection was closed due to an error."; if (ex instanceof XMPPException) { XMPPException xmppEx = (XMPPException)ex; StreamError error ...
public void run() { Log.error("Connection closed on error.", ex); String message = "Your connection was closed due to an error."; if (ex instanceof XMPPException) { XMPPException xmppEx = (XMPPException)ex; StreamError error ...
3,228,598
private void setIdleListener() throws Exception { final Timer timer = new Timer(); timer.scheduleAtFixedRate(new TimerTask() { public void run() { LocalPreferences localPref = SettingsManager.getLocalPreferences(); int delay = 0; if (localPref.is...
private void setIdleListener() throws Exception { final Timer timer = new Timer(); timer.scheduleAtFixedRate(new TimerTask() { public void run() { LocalPreferences localPref = SettingsManager.getLocalPreferences(); int delay = 0; if (localPref.is...
3,228,599
private void setIdleListener() throws Exception { final Timer timer = new Timer(); timer.scheduleAtFixedRate(new TimerTask() { public void run() { LocalPreferences localPref = SettingsManager.getLocalPreferences(); int delay = 0; if (localPref.is...
private void setIdleListener() throws Exception { final Timer timer = new Timer(); timer.scheduleAtFixedRate(new TimerTask() { public void run() { LocalPreferences localPref = SettingsManager.getLocalPreferences(); int delay = 0; if (localPref.is...
3,228,600
public void run() { LocalPreferences localPref = SettingsManager.getLocalPreferences(); int delay = 0; if (localPref.isIdleOn()) { delay = localPref.getIdleTime() * 60000; } else { return; ...
public void run() { LocalPreferences localPref = SettingsManager.getLocalPreferences(); int delay = 0; if (localPref.isIdleOn()) { delay = localPref.getIdleTime() * 60000; } else { return; ...
3,228,601
public void run() { LocalPreferences localPref = SettingsManager.getLocalPreferences(); int delay = 0; if (localPref.isIdleOn()) { delay = localPref.getIdleTime() * 60000; } else { return; ...
public void run() { LocalPreferences localPref = SettingsManager.getLocalPreferences(); int delay = 0; if (localPref.isIdleOn()) { delay = localPref.getIdleTime() * 60000; } else { return; ...
3,228,602
public StatusItem getStatusItem(String label) { Iterator iter = dndList.iterator(); while (iter.hasNext()) { StatusItem item = (StatusItem)iter.next(); if (item.getText().equals(label)) { return item; } } return null; }
public StatusItem getStatusItem(String label) { Iterator iter = statusList.iterator(); while (iter.hasNext()) { StatusItem item = (StatusItem)iter.next(); if (item.getText().equals(label)) { return item; } } return null; }
3,228,603
void showClassifications() { getViewport().add(getClassificationComponent()); //add(getClassificationComponent(), BorderLayout.CENTER); }
voidshowClassifications(){ getViewport().add(getClassificationComponent());//add(getClassificationComponent(),BorderLayout.CENTER);}
3,228,604
public static IRubyObject open(IRubyObject recv, IRubyObject[] args) { String arg = args[0].convertToString().getValue(); // Should this logic be pushed into RubyIO Somewhere? if (arg.startsWith("|")) { String command = arg.substring(1); // exec process, create IO with proces...
public static IRubyObject open(IRubyObject recv, IRubyObject[] args) { String arg = args[0].convertToString().toString(); // Should this logic be pushed into RubyIO Somewhere? if (arg.startsWith("|")) { String command = arg.substring(1); // exec process, create IO with proces...
3,228,606
private boolean isRescueHandled(RubyException actExcptn, IListNode exceptionNodes) { // TMP_PROTECT; if (exceptionNodes == null) { return actExcptn.isKindOf(ruby.getExceptions().getStandardError()); } Block tmpBlock = ArgsUtil.beginCallArgs(ruby); RubyObject[] args = Ar...
private boolean isRescueHandled(RubyException actExcptn, IListNode exceptionNodes) { // TMP_PROTECT; if (exceptionNodes == null) { return actExcptn.isKindOf(ruby.getExceptions().getStandardError()); } Block tmpBlock = ArgsUtil.beginCallArgs(ruby); RubyObject[] args = Ar...
3,228,607
public final static Block beginCallArgs(final Ruby ruby) { final Block actBlock = ruby.getBlockStack().getCurrent(); if (ruby.getCurrentIter().isPre()) { ruby.getBlockStack().pop(); } ruby.getIterStack().push(Iter.ITER_NOT); return actBlock; }
public final static Block beginCallArgs(final Ruby ruby) { final Block currentBlock = ruby.getBlockStack().getCurrent(); if (ruby.getCurrentIter().isPre()) { ruby.getBlockStack().pop(); } ruby.getIterStack().push(Iter.ITER_NOT); return actBlock; }
3,228,608
public final static Block beginCallArgs(final Ruby ruby) { final Block actBlock = ruby.getBlockStack().getCurrent(); if (ruby.getCurrentIter().isPre()) { ruby.getBlockStack().pop(); } ruby.getIterStack().push(Iter.ITER_NOT); return actBlock; }
public final static Block beginCallArgs(final Ruby ruby) { final Block actBlock = ruby.getBlockStack().getCurrent(); if (ruby.getCurrentIter().isPre()) { ruby.getBlockStack().pop(); } ruby.getIterStack().push(Iter.ITER_NOT); return currentBlock; }
3,228,609
public final static void endCallArgs( final Ruby ruby, final Block actBlock) { if (actBlock != null) { // XXX ruby.getBlockStack().push(actBlock); // Refresh the next attribute. } ruby.getIterStack().pop(); }
public final static void endCallArgs( final Ruby ruby, final Block actBlock) { if (actBlock != null) { // XXX ruby.getBlockStack().push(actBlock); // Refresh the next attribute. } ruby.getIterStack().pop(); }
3,228,610
public int getChannelFamily(int arg0) { return delegate.getChannelFamily(arg0); }
public Family getChannelFamily(int arg0) { return delegate.getChannelFamily(arg0); }
3,228,611
public int getModel() { return delegate.getModel(); }
public RenderingModel getModel() { return delegate.getModel(); }
3,228,612
public void setModel(int arg0) { delegate.setModel(arg0); }
public void setModel(RenderingModel arg0) { delegate.setModel(arg0); }
3,228,613
public void setQuantizationMap(int arg0, int arg1, double arg2, boolean arg3) { delegate.setQuantizationMap(arg0, arg1, arg2, arg3); }
public void setQuantizationMap(int arg0, Family arg1, double arg2, boolean arg3) { delegate.setQuantizationMap(arg0, arg1, arg2, arg3); }
3,228,614
private void dumpPackage(Package pack) { println("<package name=\"" + pack.getName() + "\"" + " line-rate=\"" + pack.getLineCoverageRate() + "\"" + " branch-rate=\"" + pack.getBranchCoverageRate() + "\"" + ">"); increaseIndentation(); dumpClasses((Clazz[])pack.getClasses().toArray( new Clazz[pack.getClasse...
private void dumpPackage(Package pack) { println("<package name=\"" + pack.getName() + "\"" + " line-rate=\"" + pack.getLineCoverageRate() + "\"" + " branch-rate=\"" + pack.getBranchCoverageRate() + "\"" + ">"); increaseIndentation(); dumpClasses((Clazz[])pack.getClasses().toArray( new Clazz[pack.getClasse...
3,228,615
private void dumpPackages(Coverage coverage) { Iterator it = coverage.getPackages().iterator(); while (it.hasNext()) { dumpPackage((Package)it.next()); } }
private void dumpPackages(Coverage coverage) { Iterator it = coverage.getPackages().iterator(); while (it.hasNext()) { dumpPackage((Package)it.next()); } }
3,228,616
public double getLineCoverageRate() { if (numberOfLines == 0) { return 1; } return (double)numberOfCoveredLines / (double)numberOfLines; }
public double getLineCoverageRate() { if (numberOfLines == 0) { return 1; } return (double)numberOfCoveredLines / (double)numberOfLines; }
3,228,617
public double getLineCoverageRate() { if (numberOfLines == 0) { return 1; } return (double)numberOfCoveredLines / (double)numberOfLines; }
public double getLineCoverageRate() { if (numberOfLines == 0) { return 1; } return (double)numberOfCoveredLines / (double)numberOfLines; }
3,228,618
public double getBranchCoverageRate() { if (numberOfBranches == 0) { if (numberOfCoveredLines == 0) { return 0; } return 1; } return (double)numberOfCoveredBranches / (double)numberOfBranches; }
public double getBranchCoverageRate() { if (numberOfBranches == 0) { if (numberOfCoveredLines == 0) { return 0; } return 1; } return (double)numberOfCoveredBranches / (double)numberOfBranches; }
3,228,619
public double getBranchCoverageRate() { if (numberOfBranches == 0) { if (numberOfCoveredLines == 0) { return 0; } return 1; } return (double)numberOfCoveredBranches / (double)numberOfBranches; }
public double getBranchCoverageRate() { if (numberOfBranches == 0) { if (numberOfCoveredLines == 0) { return 0; } return 1; } return (double)numberOfCoveredBranches / (double)numberOfBranches; }
3,228,620
public double getBranchCoverageRate() { if (numberOfBranches == 0) { if (numberOfCoveredLines == 0) { return 0; } return 1; } return (double)numberOfCoveredBranches / (double)numberOfBranches; }
public double getBranchCoverageRate() { if (numberOfBranches == 0) { if (numberOfCoveredLines == 0) { return 0; } return 1; } return (double)numberOfCoveredBranches / (double)numberOfBranches; }
3,228,621
public List childNodes() { return Collections.EMPTY_LIST; }
public List childNodes() { return EMPTY_LIST; }
3,228,622
private JMenu createEditMenu() { JMenu menu = new JMenu("Edit"); menu.setMnemonic(KeyEvent.VK_E); menu.add(new JMenuItem(controller.getAction(HiViewerControl.FIND))); menu.add(new JSeparator(SwingConstants.HORIZONTAL)); menu.add(new JMenuItem(controller.getAction(HiViewerContro...
private JMenu createEditMenu() { JMenu menu = new JMenu("Edit"); menu.setMnemonic(KeyEvent.VK_E); menu.add(new JMenuItem(controller.getAction(HiViewerControl.FIND))); menu.add(new JSeparator(SwingConstants.HORIZONTAL)); menu.add(new JMenuItem(controller.getAction(HiViewerContro...
3,228,623
private static RubyTime createTime(IRubyObject type, IRubyObject[] args, boolean gmt) { int len = 6; if (args.length == 10) { args = new IRubyObject[] { args[5], args[4], args[3], args[2], args[1], arg...
private static RubyTime createTime(IRubyObject type, IRubyObject[] args, boolean gmt) { int len = 6; if (args.length == 10) { args = new IRubyObject[] { args[5], args[4], args[3], args[2], args[1], arg...
3,228,624
public static RubyClass createTimeClass(Ruby runtime) { RubyClass rubyTimeClass = runtime.defineClass("Time", runtime.getClasses().getObjectClass()); CallbackFactory callbackFactory = runtime.callbackFactory(); rubyTimeClass.defineSingletonMethod("new", callbackFactory.getSingletonMethod(RubyTime...
public static RubyClass createTimeClass(Ruby runtime) { RubyClass rubyTimeClass = runtime.defineClass("Time", runtime.getClasses().getObjectClass()); CallbackFactory callbackFactory = runtime.callbackFactory(); rubyTimeClass.defineSingletonMethod("new", callbackFactory.getSingletonMethod(RubyTime...
3,228,625
public RubyBoolean gmt() { return RubyBoolean.newBoolean(runtime, cal.getTimeZone().getID().equals("GMT")); }
public RubyBoolean gmt() { return RubyBoolean.newBoolean(runtime, cal.getTimeZone().getID().equals(UTC)); }
3,228,626
public RubyTime gmtime() { cal.setTimeZone(TimeZone.getTimeZone("GMT")); return this; }
public RubyTime gmtime() { cal.setTimeZone(TimeZone.getTimeZone(UTC)); return this; }
3,228,627
public RubyFixnum hash() { return RubyFixnum.newFixnum(runtime, (int)(cal.get(Calendar.SECOND) ^ usec)); }
public RubyFixnum hash() { return RubyFixnum.newFixnum(runtime, (int)(((cal.getTimeInMillis() / 1000) ^ microseconds()) << 1) >> 1); }
3,228,628
public RubyFloat to_f() { return RubyFloat.newFloat(runtime, getTimeInMillis() / 1000.0); }
public RubyFloat to_f() { return RubyFloat.newFloat(runtime, getTimeInMillis() / 1000 + microseconds() / 1000000.0); }
3,228,629
public RubyInteger usec() { return RubyFixnum.newFixnum(runtime, getTimeInMillis() % 1000 * 1000 + usec); }
public RubyInteger usec() { return RubyFixnum.newFixnum(runtime, microseconds()); }
3,228,630
TreePopupMenuMng(TreePopupMenu view, ClipBoardUI clipBoard) { if (view == null) throw new IllegalArgumentException("No view."); if (clipBoard == null) throw new IllegalArgumentException("No clipBoard."); this.clipBoard = clipBoard; attachItemListener(view.properties, PROPER...
TreePopupMenuMng(TreePopupMenu view, ClipBoardUI clipBoard, ClipBoardModel model) { if (view == null) throw new IllegalArgumentException("No view."); if (clipBoard == null) throw new IllegalArgumentException("No clipBoard."); this.clipBoard = clipBoard; attachItemListener(v...
3,228,631
TreePopupMenuMng(TreePopupMenu view, ClipBoardUI clipBoard) { if (view == null) throw new IllegalArgumentException("No view."); if (clipBoard == null) throw new IllegalArgumentException("No clipBoard."); this.clipBoard = clipBoard; attachItemListener(view.properties, PROPER...
TreePopupMenuMng(TreePopupMenu view, ClipBoardUI clipBoard) { if (view == null) throw new IllegalArgumentException("No view."); if (clipBoard == null) throw new IllegalArgumentException("No clipBoard."); this.clipBoard = clipBoard; attachItemListener(view.properties, PROPER...
3,228,632
public void actionPerformed(ActionEvent e) { int index = -1; DataObject object; try { index = Integer.parseInt(e.getActionCommand()); object = clipBoard.getDataObject(); switch (index) { case PROPERTIES: if (object != null) ...
public void actionPerformed(ActionEvent e) { int index = -1; DataObject object; try { index = Integer.parseInt(e.getActionCommand()); object = clipBoard.getDataObject(); switch (index) { case PROPERTIES: if (object != null) ...
3,228,634
public void execute() { if (model != null) { ImageDisplay selectedDisplay = model.getBrowser(). getSelectedDisplay(); hierarchyObject = (DataObject) selectedDisplay.getHierarchyObject(); } if (hierarchyObject == null) r...
public void execute() { if (model != null && hierarchyObject == null) { ImageDisplay selectedDisplay = model.getBrowser(). getSelectedDisplay(); hierarchyObject = (DataObject) selectedDisplay.getHierarchyObject(); } if ...
3,228,635
public void execute() { if (model != null) { ImageDisplay selectedDisplay = model.getBrowser(). getSelectedDisplay(); hierarchyObject = (DataObject) selectedDisplay.getHierarchyObject(); } if (hierarchyObject == null) r...
public void execute() { if (model != null) { ImageDisplay selectedDisplay = model.getBrowser(). getSelectedDisplay(); hierarchyObject = (DataObject) selectedDisplay.getHierarchyObject(); } if (hierarchyObject == null) r...
3,228,636
public static String getVersion() { return "1.1.9.2"; }
public static String getVersion() { return "1.1.9.3"; }
3,228,638
ColorChooserManager(ColorChooser view, HSBPaneManager hsbManager, int[] rgba, int alpha, int index) { this.view = view; this.hsbManager = hsbManager; this.alpha = alpha; this.rgba = rgba; this.index = index; initColor(); }
ColorChooserManager(ColorChooser view, HSBPaneManager hsbManager, int[] rgba, int alpha, int index) { this.view = view; this.hsbManager = hsbManager; this.alpha = alpha; this.rgba = rgba; this.index = index; initColor(); }
3,228,639
ColorChooserManager(ColorChooser view, HSBPaneManager hsbManager, int[] rgba, int alpha, int index) { this.view = view; this.hsbManager = hsbManager; this.alpha = alpha; this.rgba = rgba; this.index = index; initColor(); }
ColorChooserManager(ColorChooser view, HSBPaneManager hsbManager, int[] rgba, int alpha, int index) { this.view = view; this.hsbManager = hsbManager; this.alpha = alpha; this.rgba = rgba; this.index = index; initColor(); }
3,228,640
public void copy(IObject model, ModelMapper mapper) { if (model instanceof Dataset) { Dataset d = (Dataset) model; super.copy(model,mapper); // Details if (d.getDetails() != null){ Details details = d.getDetails(); this.setOwner((E...
public void copy(IObject model, ModelMapper mapper) { if (model instanceof Dataset) { Dataset d = (Dataset) model; super.copy(model,mapper); // Details if (d.getDetails() != null){ Details details = d.getDetails(); this.setOwner((E...
3,228,641
public DatasetAnnotation(Integer attributeId, String content, Boolean valid, org.openmicroscopy.omero.model.Dataset dataset, org.openmicroscopy.omero.model.ModuleExecution moduleExecution) { this.attributeId = attributeId; this.content = content; this.valid = valid; this.dataset = datase...
public DatasetAnnotation(Integer attributeId, String content, Boolean valid, org.openmicroscopy.omero.model.Dataset dataset, org.openmicroscopy.omero.model.ModuleExecution moduleExecution) { this.attributeId = attributeId; this.content = content; this.valid = valid; this.dataset = datase...
3,228,644
public org.openmicroscopy.omero.model.Dataset getDataset() { return this.dataset; }
public Dataset getDataset() { return this.dataset; }
3,228,645
public org.openmicroscopy.omero.model.ModuleExecution getModuleExecution() { return this.moduleExecution; }
public ModuleExecution getModuleExecution() { return this.moduleExecution; }
3,228,646
public void setDataset(org.openmicroscopy.omero.model.Dataset dataset) { this.dataset = dataset; }
public void setDataset(Dataset dataset) { this.dataset = dataset; }
3,228,647
public void setModuleExecution(org.openmicroscopy.omero.model.ModuleExecution moduleExecution) { this.moduleExecution = moduleExecution; }
public void setModuleExecution(ModuleExecution moduleExecution) { this.moduleExecution = moduleExecution; }
3,228,648
private static IRubyObject evalInternal(ThreadContext context, Node node, IRubyObject self) { IRuby runtime = context.getRuntime(); bigloop: do { if (node == null) return runtime.getNil(); switch (node.nodeId) { case NodeTypes.ALIASNODE: { AliasN...
private static IRubyObject evalInternal(ThreadContext context, Node node, IRubyObject self) { IRuby runtime = context.getRuntime(); bigloop: do { if (node == null) return runtime.getNil(); switch (node.nodeId) { case NodeTypes.ALIASNODE: { AliasN...
3,228,649
public boolean isDefined(String name) { Asserts.notNull(name); Asserts.isTrue(name.startsWith("$")); GlobalVariable variable = (GlobalVariable)globalVariables.get(name); return variable == null || variable.getAccessor() instanceof UndefinedAccessor; }
public boolean isDefined(String name) { Asserts.notNull(name); Asserts.isTrue(name.startsWith("$")); GlobalVariable variable = (GlobalVariable)globalVariables.get(name); return variable != null && variable.getAccessor() instanceof UndefinedAccessor; }
3,228,650
public List listArticles() throws XmlException, IOException{ List list = new ArrayList(); IWContext iwc = IWContext.getInstance(); try { String scope = ArticleUtil.getArticleRootPath(); IWSlideSession session = (IWSlideSession)IBOLookup.getSessionInstance(iwc,IWSlideSession.class); if(scope != null){ ...
public List listArticles() throws XmlException, IOException{ List list = new ArrayList(); IWContext iwc = IWContext.getInstance(); try { String scope = ArticleUtil.getArticleRootPath(); IWSlideSession session = (IWSlideSession)IBOLookup.getSessionInstance(iwc,IWSlideSession.class); if(scope != null){ ...
3,228,651
ViewerUIF(ViewerCtrl control, Registry registry) { //name, resizable, closable, maximizable, iconifiable. super("Viewer", true, true, true, true); this.control = control; this.registry = registry; setJMenuBar(createMenuBar()); buildGUI(); //set the size and position the window. setBounds(X_LOCATION, Y_LOCATION...
ViewerUIF(ViewerCtrl control, Registry registry) { //name, resizable, closable, maximizable, iconifiable. super("Viewer", true, true, true, true); this.control = control; this.registry = registry; setJMenuBar(createMenuBar()); buildGUI(); //set the size and position the window. setBounds(X_LOCATION, Y_LOCATION...
3,228,652
public ImageCanvas(ViewerUIF view, ViewerCtrl control) { this.view = view; this.control = control; filters = new ArrayList(); manager = new ImageCanvasMng(this); magFactor = 1.0; setBackground(Viewer.BACKGROUND_COLOR); setDoubleBuffered(true); }
public ImageCanvas(ViewerUIF view, ViewerCtrl control) { this.view = view; this.control = control; filters = new ArrayList(); manager = new ImageCanvasMng(this, control); magFactor = 1.0; setBackground(Viewer.BACKGROUND_COLOR); setDoubleBuffered(true); }
3,228,654
private void buildUI() { setLayout(new BoxLayout(this, BoxLayout.X_AXIS)); setBorder(BorderFactory.createEtchedBorder()); JPanel p = new JPanel(); p.setLayout(new BoxLayout(p, BoxLayout.X_AXIS)); p.add(statusButton); p.add(status); add(UIUtilities.buildComponentPanel(p)); JPanel progress = new JPanel(); progr...
private void buildUI() { setLayout(new BoxLayout(this, BoxLayout.X_AXIS)); setBorder(BorderFactory.createEtchedBorder()); JPanel p = new JPanel(); p.setLayout(new BoxLayout(p, BoxLayout.X_AXIS)); p.add(statusButton); p.add(status); add(UIUtilities.buildComponentPanel(p)); JPanel progress = new JPanel(); progr...
3,228,655
private void initComponents() { IconManager icons = IconManager.getInstance(); progressBar = new JProgressBar(); progressBar.setIndeterminate(true); progressBar.setVisible(false); status = new JLabel(); statusButton = new JButton(icons.getIcon(IconManager.INFO)); statusButton.setBorder(null); statusButton.setB...
private void initComponents() { IconManager icons = IconManager.getInstance(); progressBar = new JProgressBar(); progressBar.setIndeterminate(true); progressBar.setVisible(false); status = new JLabel(); statusButton = new JButton(icons.getIcon(IconManager.INFO)); statusButton.setBorder(null); statusButton.setB...
3,228,656
void writeEntry(int tag, int fieldType, int count, int value) throws IOException { output.writeShort(tag); output.writeShort(fieldType); output.writeInt(count); if (count == 1 && fieldType == TIFFEncoderCst.SHORT) value <<= 16; //left justify 16-bit values ou...
private void writeEntry(int tag, int fieldType, int count, int value) throws IOException { output.writeShort(tag); output.writeShort(fieldType); output.writeInt(count); if (count == 1 && fieldType == TIFFEncoderCst.SHORT) value <<= 16; //left justify 16-bit values ...
3,228,657
private void writeRGBPixels() throws IOException { int bytesWritten = 0; int size = imageWidth*imageHeight*3; int count = imageWidth*24; //3*8 byte[] buffer = new byte[count]; int i, j; DataBufferByte bufferByte = (DataBufferByte) image.getRaster().ge...
private void writeRGBPixels() throws IOException { int bytesWritten = 0; int size = imageWidth*imageHeight*3; int count = imageWidth*24; //3*8 byte[] buffer = new byte[count]; int i, j; DataBufferByte bufferByte = (DataBufferByte) image.getRaster().ge...
3,228,658
private void writeScale() throws IOException { double xscale = 1.0/imageWidth; double yscale = 1.0/imageHeight; double scale = 1000000.0; if (xscale > 1000.0) scale = 1000.0; output.writeInt((int)(xscale*scale)); output.writeInt((int)scale); output.writeInt...
private void writeScale() throws IOException { double xscale = 1.0/imageWidth; double yscale = 1.0/imageHeight; double scale = 1000000.0; if (xscale > 1000.0) scale = 1000.0; output.writeInt((int)(xscale*scale)); output.writeInt((int)scale); output.writeInt...
3,228,659
public void actionPerformed(ActionEvent e) { int index = Integer.parseInt(e.getActionCommand()); try { switch (index) { case SAVE: saveDisplayOptions(); break; case RESET_DEFAULTS: resetDefaults(); break; case GREY: case RGB: case HSB: activateRenderingModel(index); break; ...
public void actionPerformed(ActionEvent e) { int index = Integer.parseInt(e.getActionCommand()); try { switch (index) { case SAVE: saveDisplayOptions(); break; case RESET_DEFAULTS: resetDefaults(); break; case GREY: case RGB: case HSB: activateRenderingModel(index); break; ...
3,228,660
private ModelPane activate(Class c) { ModelPane rnd = (ModelPane) renderersPool.get(c); if (rnd == null) { rnd = createRenderer(c); rnd.setEventManager(this); renderersPool.put(c, rnd); } return rnd; }
private ModelPane activate(Class c) { ModelPane rnd = (ModelPane) renderersPool.get(c); if (rnd == null) { rnd = createRenderer(c); rnd.setEventManager(this); renderersPool.put(c, rnd); } return rnd; }
3,228,661
public void activateRenderingModel(int i) { Class c = getRendererClass(i); presentation.setModelPane(activate(c), true); QuantumPane qp = presentation.getQuantumPane(); if (i == GREY) { qp.setSelectionWavelengthsEnable(false); ChannelData[] channelData = getChannelData(); for (int j = 0; j < channelData.leng...
public void activateRenderingModel(int i) { Class c = getRendererClass(i); presentation.setModelPane(activate(c), true); QuantumPane qp = presentation.getQuantumPane(); if (i == GREY) { qp.setSelectionWavelengthsEnable(false); ChannelData[] channelData = getChannelData(); for (int j = 0; j < channelData.leng...
3,228,662
public void addCodomainMap(CodomainMapContext ctx) { abstraction.addCodomainMap(ctx); }
public void addCodomainMap(CodomainMapContext ctx) { abstraction.addCodomainMap(ctx); }
3,228,663
private ModelPane createRenderer(Class c) { ModelPane model = null; try { model = (ModelPane) c.newInstance(); } catch(Exception e) { String msg = "Can't create an instance of "+c.getName(); throw new InternalError(msg, e); } return model; }
private ModelPane createRenderer(Class c) { ModelPane model = null; try { model = (ModelPane) c.newInstance(); } catch(Exception e) { String msg = "Can't create an instance of "+c.getName(); throw new InternalError(msg, e); } return model; }
3,228,664