bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
public RubyClass getNotImplementedError() { return notImplementedError; }
public RubyClass getNotImplementedError() { return notImplementedError; }
3,237,478
public RubyClass getRangeError() { return rangeError; }
public RubyClass getRangeError() { return rangeError; }
3,237,479
public RubyClass getRegexpError() { return regexpError; }
public RubyClass getRegexpError() { return regexpError; }
3,237,480
public RubyClass getScriptError() { return scriptError; }
public RubyClass getScriptError() { return scriptError; }
3,237,481
public RubyClass getSecurityError() { return securityError; }
public RubyClass getSecurityError() { return securityError; }
3,237,482
public RubyClass getSignalException() { return signalException; }
public RubyClass getSignalException() { return signalException; }
3,237,483
public RubyClass getStandardError() { return standardError; }
public RubyClass getStandardError() { return standardError; }
3,237,484
public RubyClass getSyntaxError() { return syntaxError; }
public RubyClass getSyntaxError() { return syntaxError; }
3,237,485
public RubyClass getSystemExit() { return systemExit; }
public RubyClass getSystemExit() { return systemExit; }
3,237,486
public RubyClass getTypeError() { return typeError; }
public RubyClass getTypeError() { return typeError; }
3,237,487
private void retrieveNotes() { final PrivateNotes privateNotes = PrivateNotes.getPrivateNotes(); String text = privateNotes.getNotes(); final JLabel titleLabel = new JLabel("Notepad"); titleLabel.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, Color.LIGHT_GRAY)); titleLabel....
private void retrieveNotes() { final PrivateNotes privateNotes = PrivateNotes.getPrivateNotes(); String text = privateNotes.getNotes(); final JLabel titleLabel = new JLabel("Notepad"); titleLabel.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, Color.LIGHT_GRAY)); titleLabel....
3,237,488
private void retrieveNotes() { final PrivateNotes privateNotes = PrivateNotes.getPrivateNotes(); String text = privateNotes.getNotes(); final JLabel titleLabel = new JLabel("Notepad"); titleLabel.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, Color.LIGHT_GRAY)); titleLabel....
private void retrieveNotes() { final PrivateNotes privateNotes = PrivateNotes.getPrivateNotes(); String text = privateNotes.getNotes(); final JLabel titleLabel = new JLabel("Notepad"); titleLabel.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, Color.LIGHT_GRAY)); titleLabel....
3,237,489
private void retrieveNotes() { final PrivateNotes privateNotes = PrivateNotes.getPrivateNotes(); String text = privateNotes.getNotes(); final JLabel titleLabel = new JLabel("Notepad"); titleLabel.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, Color.LIGHT_GRAY)); titleLabel....
private void retrieveNotes() { final PrivateNotes privateNotes = PrivateNotes.getPrivateNotes(); String text = privateNotes.getNotes(); final JLabel titleLabel = new JLabel("Notepad"); titleLabel.setBorder(BorderFactory.createMatteBorder(0, 0, 1, 0, Color.LIGHT_GRAY)); titleLabel....
3,237,490
public void actionPerformed(ActionEvent actionEvent) { frame.dispose(); // Save it. String text = pane.getText(); privateNotes.setNotes(text); PrivateNotes.savePrivateNotes(privateNotes); }
public void actionPerformed(ActionEvent actionEvent) { frame.dispose(); // Save it. String text = pane.getText(); privateNotes.setNotes(text); PrivateNotes.savePrivateNotes(privateNotes); }
3,237,491
public String toString(){ return "FormalInput"+(formalInputId==null ? ":Hash"+this.hashCode() : ":"+formalInputId); }
public String toString(){ return "FormalInput"+(formalInputId==null ? ":Hash_"+this.hashCode() : ":Id_"+formalInputId); }
3,237,492
public void testBuildDate() throws Exception { assert (!WebMacro.VERSION.equals("@BUILD_DATE")); }
public void testBuildDate() throws Exception { assert (!WebMacro.BUILD_DATE.equals("@BUILD_DATE@")); }
3,237,493
public RubyObject execute(RubyObject recv, RubyObject[] args, Ruby ruby) { LinkedList executeConstructors = new LinkedList(Arrays.asList(constructors)); int argsLength = args != null ? args.length : 0; // remove constructors with wrong parameter count. Iterator iter = executeConstructors.iterator(); while (iter.h...
public RubyObject execute(RubyObject recv, RubyObject[] args, Ruby ruby) { LinkedList executeConstructors = new LinkedList(Arrays.asList(constructors)); int argsLength = args != null ? args.length : 0; // remove constructors with wrong parameter count. Iterator iter = executeConstructors.iterator(); while (iter.h...
3,237,494
public RubyObject execute(RubyObject recv, RubyObject[] args, Ruby ruby) { LinkedList executeConstructors = new LinkedList(Arrays.asList(constructors)); int argsLength = args != null ? args.length : 0; // remove constructors with wrong parameter count. Iterator iter = executeConstructors.iterator(); while (iter.h...
public RubyObject execute(RubyObject recv, RubyObject[] args, Ruby ruby) { LinkedList executeConstructors = new LinkedList(Arrays.asList(constructors)); int argsLength = args != null ? args.length : 0; // remove constructors with wrong parameter count. Iterator iter = executeConstructors.iterator(); while (iter.h...
3,237,495
public RubyObject execute(RubyObject recv, RubyObject[] args, Ruby ruby) { LinkedList executeConstructors = new LinkedList(Arrays.asList(constructors)); int argsLength = args != null ? args.length : 0; // remove constructors with wrong parameter count. Iterator iter = executeConstructors.iterator(); while (iter.h...
public RubyObject execute(RubyObject recv, RubyObject[] args, Ruby ruby) { LinkedList executeConstructors = new LinkedList(Arrays.asList(constructors)); int argsLength = args != null ? args.length : 0; // remove constructors with wrong parameter count. Iterator iter = executeConstructors.iterator(); while (iter.h...
3,237,496
public RubyObject execute(RubyObject recv, RubyObject[] args, Ruby ruby) { LinkedList executeConstructors = new LinkedList(Arrays.asList(constructors)); int argsLength = args != null ? args.length : 0; // remove constructors with wrong parameter count. Iterator iter = executeConstructors.iterator(); while (iter.h...
public RubyObject execute(RubyObject recv, RubyObject[] args, Ruby ruby) { LinkedList executeConstructors = new LinkedList(Arrays.asList(constructors)); int argsLength = args != null ? args.length : 0; // remove constructors with wrong parameter count. Iterator iter = executeConstructors.iterator(); while (iter.h...
3,237,497
public RubyObject execute(RubyObject recv, RubyObject[] args, Ruby ruby) { LinkedList executeConstructors = new LinkedList(Arrays.asList(constructors)); int argsLength = args != null ? args.length : 0; // remove constructors with wrong parameter count. Iterator iter = executeConstructors.iterator(); while (iter.h...
public RubyObject execute(RubyObject recv, RubyObject[] args, Ruby ruby) { LinkedList executeConstructors = new LinkedList(Arrays.asList(constructors)); int argsLength = args != null ? args.length : 0; // remove constructors with wrong parameter count. Iterator iter = executeConstructors.iterator(); while (iter.h...
3,237,498
public RubyObject execute(RubyObject recv, RubyObject[] args, Ruby ruby) { LinkedList executeConstructors = new LinkedList(Arrays.asList(constructors)); int argsLength = args != null ? args.length : 0; // remove constructors with wrong parameter count. Iterator iter = executeConstructors.iterator(); while (iter.h...
public RubyObject execute(RubyObject recv, RubyObject[] args, Ruby ruby) { LinkedList executeConstructors = new LinkedList(Arrays.asList(constructors)); int argsLength = args != null ? args.length : 0; // remove constructors with wrong parameter count. Iterator iter = executeConstructors.iterator(); while (iter.h...
3,237,499
public RubyObject execute(RubyObject recv, RubyObject[] args, Ruby ruby) { LinkedList executeConstructors = new LinkedList(Arrays.asList(constructors)); int argsLength = args != null ? args.length : 0; // remove constructors with wrong parameter count. Iterator iter = executeConstructors.iterator(); while (iter.h...
public RubyObject execute(RubyObject recv, RubyObject[] args, Ruby ruby) { LinkedList executeConstructors = new LinkedList(Arrays.asList(constructors)); int argsLength = args != null ? args.length : 0; // remove constructors with wrong parameter count. Iterator iter = executeConstructors.iterator(); while (iter.h...
3,237,500
public RubyObject execute(RubyObject recv, RubyObject[] args, Ruby ruby) { LinkedList executeConstructors = new LinkedList(Arrays.asList(constructors)); int argsLength = args != null ? args.length : 0; // remove constructors with wrong parameter count. Iterator iter = executeConstructors.iterator(); while (iter.h...
public RubyObject execute(RubyObject recv, RubyObject[] args, Ruby ruby) { LinkedList executeConstructors = new LinkedList(Arrays.asList(constructors)); int argsLength = args != null ? args.length : 0; // remove constructors with wrong parameter count. Iterator iter = executeConstructors.iterator(); while (iter.h...
3,237,501
public RubyObject execute(RubyObject recv, RubyObject[] args, Ruby ruby) { LinkedList executeConstructors = new LinkedList(Arrays.asList(constructors)); int argsLength = args != null ? args.length : 0; // remove constructors with wrong parameter count. Iterator iter = executeConstructors.iterator(); while (iter.h...
public RubyObject execute(RubyObject recv, RubyObject[] args, Ruby ruby) { LinkedList executeConstructors = new LinkedList(Arrays.asList(constructors)); int argsLength = args != null ? args.length : 0; // remove constructors with wrong parameter count. Iterator iter = executeConstructors.iterator(); while (iter.h...
3,237,502
final public String getDOCUMENT_ROOT() { return requst_.getRealPath("/"); }
final public String getDOCUMENT_ROOT() { return requst_.getRealPath("/"); }
3,237,503
protected void onSetUp() throws Exception { iQuery = (LocalQuery) applicationContext.getBean("queryService"); iUpdate = (LocalUpdate) applicationContext.getBean("updateService"); iAnalysis = (IAnalysis) applicationContext.getBean("analysisService"); iPojos = (IPojos) applicationContext.g...
protected void onSetUp() throws Exception { iQuery = (LocalQuery) applicationContext.getBean("queryService"); iUpdate = (LocalUpdate) applicationContext.getBean("updateService"); iAnalysis = (IAnalysis) applicationContext.getBean("analysisService"); iPojos = (IPojos) applicationContext.g...
3,237,504
public void setUp() { runtime = Ruby.getDefaultInstance(); runtime.getLoadService().init(runtime, new ArrayList()); }
public void setUp() { runtime = Ruby.getDefaultInstance(); runtime.getLoadService().init(new ArrayList()); }
3,237,505
public static IRubyObject print(IRubyObject recv, IRubyObject args[]) { IRubyObject defout = recv.getRuntime().getGlobalVar("$>"); RubyIO.print(defout.toRubyObject(), args); return recv.getRuntime().getNil(); }
public static IRubyObject print(IRubyObject recv, IRubyObject args[]) { IRubyObject defout = recv.getRuntime().getGlobalVar("$>"); RubyIO.print(defout, args); return recv.getRuntime().getNil(); }
3,237,507
public static IRubyObject printf(IRubyObject recv, IRubyObject args[]) { if (args.length != 0) { IRubyObject defout = recv.getRuntime().getGlobalVar("$>"); if (!(args[0] instanceof RubyString)) { defout = args[0]; IRubyObject[] newArgs = new IRubyObject[arg...
public static IRubyObject printf(IRubyObject recv, IRubyObject args[]) { if (args.length != 0) { IRubyObject defout = recv.getRuntime().getGlobalVar("$>"); if (!(args[0] instanceof RubyString)) { defout = args[0]; IRubyObject[] newArgs = new IRubyObject[arg...
3,237,508
public static IRubyObject puts(IRubyObject recv, IRubyObject args[]) { IRubyObject defout = recv.getRuntime().getGlobalVar("$>"); RubyIO.puts(defout.toRubyObject(), args); return recv.getRuntime().getNil(); }
public static IRubyObject puts(IRubyObject recv, IRubyObject args[]) { IRubyObject defout = recv.getRuntime().getGlobalVar("$>"); RubyIO.puts(defout, args); return recv.getRuntime().getNil(); }
3,237,509
public Node appendToBlock(Node head, Node tail) { if (tail == null) { return head; } else if (head == null) { return tail; } if (!(head instanceof BlockNode)) { head = new BlockNode(head.getPosition()).add(head); } if (warnings.isVerbose() &...
public Node appendToBlock(Node head, Node tail) { if (tail == null) { return head; } else if (head == null) { return tail; } if (!(head instanceof BlockNode)) { head = new BlockNode(union(head, tail)).add(head); } if (warnings.isVerbose() &&...
3,237,510
public Node new_fcall(String name, Node args, ISourcePosition iPosition) { if (args != null && args instanceof BlockPassNode) { ((BlockPassNode) args).setIterNode(new FCallNode(args.getPosition(), name, ((BlockPassNode) args).getArgsNode())); return args; } return new FCal...
public Node new_fcall(String name, Node args, Token operation) { if (args != null && args instanceof BlockPassNode) { ((BlockPassNode) args).setIterNode(new FCallNode(args.getPosition(), name, ((BlockPassNode) args).getArgsNode())); return args; } return new FCallNode(iPos...
3,237,511
public Node new_fcall(String name, Node args, ISourcePosition iPosition) { if (args != null && args instanceof BlockPassNode) { ((BlockPassNode) args).setIterNode(new FCallNode(args.getPosition(), name, ((BlockPassNode) args).getArgsNode())); return args; } return new FCal...
public Node new_fcall(String name, Node args, ISourcePosition iPosition) { if (args != null && args instanceof BlockPassNode) { ((BlockPassNode) args).setIterNode(new FCallNode(union(operation, args), name, ((BlockPassNode) args).getArgsNode())); return args; } return new ...
3,237,512
public Node new_fcall(String name, Node args, ISourcePosition iPosition) { if (args != null && args instanceof BlockPassNode) { ((BlockPassNode) args).setIterNode(new FCallNode(args.getPosition(), name, ((BlockPassNode) args).getArgsNode())); return args; } return new FCal...
public Node new_fcall(String name, Node args, ISourcePosition iPosition) { if (args != null && args instanceof BlockPassNode) { ((BlockPassNode) args).setIterNode(new FCallNode(args.getPosition(), name, ((BlockPassNode) args).getArgsNode())); return args; } return new FCal...
3,237,513
public Node new_super(Node args, ISourcePosition iPosition) { if (args != null && args instanceof BlockPassNode) { ((BlockPassNode) args).setIterNode(new SuperNode(args.getPosition(), ((BlockPassNode) args).getArgsNode())); return args; } return new SuperNode(iPosition, ar...
public Node new_super(Node args, Token operation) { if (args != null && args instanceof BlockPassNode) { ((BlockPassNode) args).setIterNode(new SuperNode(args.getPosition(), ((BlockPassNode) args).getArgsNode())); return args; } return new SuperNode(iPosition, args); }
3,237,514
public Node new_super(Node args, ISourcePosition iPosition) { if (args != null && args instanceof BlockPassNode) { ((BlockPassNode) args).setIterNode(new SuperNode(args.getPosition(), ((BlockPassNode) args).getArgsNode())); return args; } return new SuperNode(iPosition, ar...
public Node new_super(Node args, ISourcePosition iPosition) { if (args != null && args instanceof BlockPassNode) { ((BlockPassNode) args).setIterNode(new SuperNode(union(operation, args), ((BlockPassNode) args).getArgsNode())); return args; } return new SuperNode(iPosition...
3,237,515
public Node new_super(Node args, ISourcePosition iPosition) { if (args != null && args instanceof BlockPassNode) { ((BlockPassNode) args).setIterNode(new SuperNode(args.getPosition(), ((BlockPassNode) args).getArgsNode())); return args; } return new SuperNode(iPosition, ar...
public Node new_super(Node args, ISourcePosition iPosition) { if (args != null && args instanceof BlockPassNode) { ((BlockPassNode) args).setIterNode(new SuperNode(args.getPosition(), ((BlockPassNode) args).getArgsNode())); return args; } return new SuperNode(operation.get...
3,237,516
public String getFolderLocation() { String articlePath = getArticlePath(); return ContentUtil.getParentPath(articlePath); }
public String getFolderLocation() { String articlePath = getArticlePath(); return ContentUtil.getParentPath(articlePath); }
3,237,517
public DatasetLoader(HiViewer viewer, Set datasetsID) { super(viewer); this.datasetsID = datasetsID; }
public DatasetLoader(HiViewer viewer, Set datasetsID, boolean refresh) { super(viewer); this.datasetsID = datasetsID; }
3,237,518
public void handleResult(Object result) { if (viewer.getState() == HiViewer.DISCARDED) return; viewer.setHierarchyRoots((Set) result, false); }
public void handleResult(Object result) { if (viewer.getState() == HiViewer.DISCARDED) return; viewer.setHierarchyRoots((Set) result, false, refresh); }
3,237,520
public ContactList() { // Load Local Preferences localPreferences = SettingsManager.getLocalPreferences(); offlineGroup = new ContactGroup("Offline Group"); JToolBar toolbar = new JToolBar(); toolbar.setFloatable(false); addContactMenu = new JMenuItem(Res.getString("menuite...
public ContactList() { // Load Local Preferences localPreferences = SettingsManager.getLocalPreferences(); offlineGroup = new ContactGroup("Offline Group"); JToolBar toolbar = new JToolBar(); toolbar.setFloatable(false); addContactMenu = new JMenuItem(Res.getString("menuite...
3,237,521
public void actionPerformed(ActionEvent evt) { // searchContacts(""); }
public void actionPerformed(ActionEvent evt) { // searchContacts(""); }
3,237,522
private void updateUserPresence(Presence presence) { if (presence == null) { return; } Roster roster = SparkManager.getConnection().getRoster(); final String bareJID = StringUtils.parseBareAddress(presence.getFrom()); RosterEntry entry = roster.getEntry(bareJID); ...
private void updateUserPresence(Presence presence) { if (presence == null) { return; } Roster roster = SparkManager.getConnection().getRoster(); final String bareJID = StringUtils.parseBareAddress(presence.getFrom()); RosterEntry entry = roster.getEntry(bareJID); ...
3,237,523
public static void main(String args[]) { //@START int i, j, k, n = Integer.parseInt(args[0]); int x[] = new int[n]; int y[] = new int[n]; for (i = 0; i < n; i++) x[i] = i + 1; for (k = 0; k < 1000; k++ ) for (j = n-1; j >= 0; j--) y[j] += x[j]; System.out.println(y[0] + " " + y[n-1]); //@END }
public static void main(String args[]) { //@START int i, j, k, n = Integer.parseInt(args[0]); int x[] = new int[n]; int y[] = new int[n]; for (i = 0; i < n; i++) x[i] = i + 1; for (k = 0; k < 1000; k++ ) for (j = n-1; j >= 0; j--) y[j] += x[j]; System.out.println(y[0] + " " + y[n-1]); //@END }
3,237,524
public void selfConfigure() { this.ctx = OmeroContext.getInternalServerContext(); this.ctx.applyBeanPropertyValues(this,getName()); }
public void selfConfigure() { this.ctx = OmeroContext.getInternalServerContext(); this.ctx.applyBeanPropertyValues(this,getServiceInterface()); }
3,237,525
public RubyNumeric[] coerce(RubyNumeric iNum) { RubyNumeric other = numericValue(iNum); if (!(iNum instanceof RubyInteger)) { return new RubyNumeric[]{this, other}; } return new RubyNumeric[] {RubyFloat.newFloat(getRuby(), getDoubleValue()), RubyFloat.newFloat(getRuby(), other.getDoubleValue())}; }
public RubyNumeric[] coerce(RubyNumeric iNum) { RubyNumeric other = numericValue(iNum); if (!(iNum instanceof RubyInteger)) { return new RubyNumeric[]{this, other}; } return new RubyNumeric[] {RubyFloat.newFloat(getRuby(), getDoubleValue()), RubyFloat.newFloat(getRuby(), other.getDoubleValue())}; }
3,237,526
public RubyNumeric[] coerce(RubyNumeric iNum) { RubyNumeric other = numericValue(iNum); if (!(iNum instanceof RubyInteger)) { return new RubyNumeric[]{this, other}; } return new RubyNumeric[] {RubyFloat.newFloat(getRuby(), getDoubleValue()), RubyFloat.newFloat(getRuby(), other.getDoubleValue())}; }
public RubyNumeric[] coerce(RubyNumeric iNum) { RubyNumeric other = numericValue(iNum); if (!(iNum instanceof RubyInteger)) { return new RubyNumeric[]{this, other}; } return new RubyNumeric[] {RubyFloat.newFloat(getRuby(), getDoubleValue()), RubyFloat.newFloat(getRuby(), other.getDoubleValue())}; }
3,237,527
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...
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...
3,237,529
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...
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...
3,237,530
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...
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...
3,237,531
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...
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...
3,237,532
protected void loadBeanDefinitions(DefaultListableBeanFactory beanFactory) throws IOException { // Create a new XmlBeanDefinitionReader for the given BeanFactory. XmlBeanDefinitionReader beanDefinitionReader = createBeanDefinitionReader(beanFactory); // Configure the bean definition reader with...
protected void loadBeanDefinitions(DefaultListableBeanFactory beanFactory) throws IOException { // Create a new XmlBeanDefinitionReader for the given BeanFactory. XmlBeanDefinitionReader beanDefinitionReader = XBeanHelper.createBeanDefinitionReader(this, beanFactory, xmlPreprocessors); // Confi...
3,237,533
protected void setUp() { pixels = new Pixels(); pixels.setSizeX(512); pixels.setSizeY(512); pixels.setSizeZ(64); pixels.setSizeC(3); pixels.setSizeT(50); PixelsType type = new PixelsType(); pixels.setPixelsType(type); // FIXME pixelBu...
protected void setUp() { pixels = new Pixels(); pixels.setSizeX(512); pixels.setSizeY(512); pixels.setSizeZ(64); pixels.setSizeC(3); pixels.setSizeT(50); PixelsType type = new PixelsType(); pixels.setPixelsType(type); // FIXME PixelsS...
3,237,534
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,237,535
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,237,536
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,237,537
public double computeValue(Attribute[] attributes, String elementName) throws IllegalArgumentException { double[] values = extractValues(attributes,elementName); double currentVal = Double.POSITIVE_INFINITY; for(int i=0;i<values.length;i++) { ...
public double computeValue(Attribute[] attributes, String elementName) throws IllegalArgumentException { double[] values = HeatMapUtils.extractValues(attributes,elementName); double currentVal = Double.POSITIVE_INFINITY; for(int i=0;i<values.length;i++) ...
3,237,538
public double computeValue(Attribute[] attributes, String elementName) throws IllegalArgumentException { double[] values = extractValues(attributes,elementName); double currentVal = 0; for(int i=0;i<values.length;i++) { currentVal += v...
public double computeValue(Attribute[] attributes, String elementName) throws IllegalArgumentException { double[] values = HeatMapUtils.extractValues(attributes,elementName); double currentVal = 0; for(int i=0;i<values.length;i++) { cu...
3,237,539
public double computeValue(Attribute[] attributes, String elementName) throws IllegalArgumentException { double[] values = extractValues(attributes,elementName); Arrays.sort(values); if(values.length % 2 != 0) { return valu...
public double computeValue(Attribute[] attributes, String elementName) throws IllegalArgumentException { double[] values = HeatMapUtils.extractValues(attributes,elementName); Arrays.sort(values); if(values.length % 2 != 0) { ...
3,237,540
public double computeValue(Attribute[] attributes, String elementName) throws IllegalArgumentException { double[] values = extractValues(attributes,elementName); double currentVal = Double.NEGATIVE_INFINITY; for(int i=0;i<values.length;i++) { ...
public double computeValue(Attribute[] attributes, String elementName) throws IllegalArgumentException { double[] values = HeatMapUtils.extractValues(attributes,elementName); double currentVal = Double.NEGATIVE_INFINITY; for(int i=0;i<values.length;i++) ...
3,237,541
public void updateDataModel(Integer start, Integer rows) { if (_dataModel == null) { _dataModel = new WFDataModel(); } int availableRows = 0; ArticleItemBean[] articleItemBean; try { articleItemBean = (ArticleItemBean[])loadAllArticlesInFolder(ContentUtil.ARTICLE_PATH).toArray(new ArticleItemBean[0]); avail...
public void updateDataModel(Integer start, Integer rows) { if (_dataModel == null) { _dataModel = new WFDataModel(); } int availableRows = 0; ArticleItemBean[] articleItemBean; try { articleItemBean = (ArticleItemBean[])loadAllArticlesInFolder(ContentUtil.ARTICLE_PATH).toArray(new ArticleItemBean[0]); avail...
3,237,542
public void actionPerformed(ActionEvent e) { String s = e.getActionCommand(); int index = Integer.parseInt(s); try { switch (index) { case FAMILY: JComboBox cbx = (JComboBox) e.getSource(); setFamily(cbx.getSelectedIndex()); break; case WAVELENGTH: JComboBox cbx1 = (JComboBox) e.getSource()...
public void actionPerformed(ActionEvent e) { String s = e.getActionCommand(); int index = Integer.parseInt(s); try { switch (index) { case FAMILY: JComboBox cbx = (JComboBox) e.getSource(); setFamily(cbx.getSelectedIndex()); break; case WAVELENGTH: JComboBox cbx1 = (JComboBox) e.getSource()...
3,237,543
private void popUpHistogram() { if (histogramDialog == null) { int w, start, end, min, max; w = view.getWavelengths().getSelectedIndex(); start = control.getChannelWindowStart(w); end = control.getChannelWindowEnd(w); min = control.getGlobalChannelWindowStart(w); max = control.getGlobalChannelWindowEnd(w...
private void popUpHistogram() { if (histogramDialog == null) { int w, start, end, min, max; w = view.getWavelengths().getSelectedIndex(); start = control.getChannelWindowStart(w); end = control.getChannelWindowEnd(w); min = control.getGlobalChannelWindowStart(w); max = control.getGlobalChannelWindowEnd(w...
3,237,544
private void resetDefaultBitResolution() { JSlider slider = view.getBitResolution(); //Remove temporarily the listener otherwise an event is fired. slider.removeChangeListener(this); slider.setValue(DomainPane.DEPTH_END); slider.addChangeListener(this); }
private void resetDefaultBitResolution() { JSlider slider = view.getBitResolution(); //Remove temporarily the listener otherwise an event is fired. slider.removeChangeListener(this); slider.setValue(DomainPane.DEPTH_END); slider.addChangeListener(this); }
3,237,545
private void setBitResolution(int v) { int k = view.getGamma().getValue(); //gamma int family = view.getTransformations().getSelectedIndex(); //family //bitResolution int br = ((Integer) resolutions.get(new Integer(v))).intValue(); control.setQuantumStrategy(k/10, family, br, BR); }
private void setBitResolution(int v) { int k = view.getGamma().getValue(); //gamma int family = view.getTransformations().getSelectedIndex(); //family //bitResolution int br = ((Integer) resolutions.get(new Integer(v))).intValue(); control.setQuantumStrategy(k/10, family, br, BR); }
3,237,546
private void setCurveCoefficient(int value) { double k = (double) value/10; view.getGammaLabel().setText(" Gamma: "+k); int family = view.getTransformations().getSelectedIndex(); //family int b = view.getBitResolution().getValue(); // bitResolution int br = ((Integer) resolutions.get(new Integer(b))).intValue(); ...
private void setCurveCoefficient(int value) { double k = (double) value/10; view.getGammaLabel().setText(" Gamma: "+k); int family = view.getTransformations().getSelectedIndex(); //family int b = view.getBitResolution().getValue(); // bitResolution int br = ((Integer) resolutions.get(new Integer(b))).intValue(); ...
3,237,547
private void setFamily(int family) { if (family == QuantumFactory.LOGARITHMIC || family == QuantumFactory.LINEAR) view.getGamma().setEnabled(false); else view.getGamma().setEnabled(true); resetDefaultGamma(); int b = view.getBitResolution().getValue(); // bitResolution int br = ((Integer) resolutions.get(new I...
private void setFamily(int family) { if (family == QuantumFactory.LOGARITHMIC || family == QuantumFactory.LINEAR) view.getGamma().setEnabled(false); else view.getGamma().setEnabled(true); resetDefaultGamma(); int b = view.getBitResolution().getValue(); // bitResolution int br = ((Integer) resolutions.get(new I...
3,237,548
private void setWavelength(int w) { disposeDialogs(); control.setWavelength(w); }
private void setWavelength(int w) { disposeDialogs(); control.setWavelength(w); }
3,237,549
public void stateChanged(ChangeEvent e) { JSlider source = (JSlider) e.getSource(); if (source == view.getGamma()) setCurveCoefficient(source.getValue()); else setBitResolution(source.getValue()); }
public void stateChanged(ChangeEvent e) { JSlider source = (JSlider) e.getSource(); if (source == view.getGamma()) setCurveCoefficient(source.getValue()); else setBitResolution(source.getValue()); }
3,237,550
void setInputWindowEnd(int v) { int gv = convertRealIntoGraphics(v); setInputEndBox(gv); view.getHistogramPanel().updateInputEnd(gv, v); }
void setInputWindowEnd(int v) { int gv = convertRealIntoGraphics(v); setInputEndBox(gv); view.getHistogramPanel().updateInputEnd(gv, v); }
3,237,551
void setInputWindowStart(int v) { int gv = convertRealIntoGraphics(v); setInputStartBox(gv); view.getHistogramPanel().updateInputStart(gv, v); }
void setInputWindowStart(int v) { int gv = convertRealIntoGraphics(v); setInputStartBox(gv); view.getHistogramPanel().updateInputStart(gv, v); }
3,237,552
public static final boolean isIdentChar(char ch) { return Character.isLetterOrDigit(ch) || ch == '_'; }
public static final boolean isIdentChar(char ch) { return Character.isLetterOrDigit(ch) || ch == '_'; }
3,237,553
public IRubyObject get() { IRubyObject errorInfo = runtime.getGlobalVariables().get("$!"); return errorInfo.isNil() ? runtime.getNil() : errorInfo.callMethod(errorInfo.getRuntime().getCurrentContext(), "backtrace"); }
public IRubyObject get() { IRubyObject errorInfo = runtime.getGlobalVariables().get("$!"); IRubyObject backtrace = errorInfo.isNil() ? runtime.getNil() : errorInfo.callMethod(errorInfo.getRuntime().getCurrentContext(), "backtrace"); if (!(backtrace instanceof RubyArray)) { backtrace = run...
3,237,554
private NSImage getImage(String image) { InputStream in = this.getClass().getResourceAsStream(image); ByteArrayOutputStream out = new ByteArrayOutputStream(); byte[] buff = new byte[10 * 1024]; int len; try { while ((len = in.read(buff)) != -1) { out.writ...
private NSImage getImage(String image) { InputStream in = this.getClass().getResourceAsStream(image); ByteArrayOutputStream out = new ByteArrayOutputStream(); byte[] buff = new byte[10 * 1024]; int len; try { while ((len = in.read(buff)) != -1) { out.writ...
3,237,555
public boolean category(Category c) { List<CategoryImageLink> images = c.collectFromImageLinks( null ); List<CategoryGroupCategoryLink> cgs = c.collectFromCategoryGroupLinks( null ); // TODO return false; // TODO images.contains(i); }
public boolean category(Category c) { List<CategoryImageLink> images = c.collectFromImageLinks( null ); List<CategoryGroupCategoryLink> cgs = c.collectFromCategoryGroupLinks( null ); // TODO return false; // TODO images.contains(i); }
3,237,556
public void run() { target.addChild(node); awaitingDisplay = false; displayingNode = true; displayedNode = node; target.repaint(); // TODO fix this hack if(displayedNode instan...
public void run() { target.addChild(node); awaitingDisplay = false; displayingNode = true; displayedNode = node; target.repaint(); // TODO fix this hack if(displayedNode instan...
3,237,557
private UIComponent getSearchPanel() { String ref = SEARCH_ARTICLE_BEAN_ID + "."; WFContainer mainContainer = new WFContainer(); WFErrorMessages em = new WFErrorMessages(); em.addErrorMessage(SEARCH_PUBLISHED_FROM_ID); em.addErrorMessage(SEARCH_PUBLISHED_TO_ID); mainContainer.add(em); HtmlPanelGrid p = WFPane...
private UIComponent getSearchPanel() { String ref = SEARCH_ARTICLE_BEAN_ID + "."; WFContainer mainContainer = new WFContainer(); WFErrorMessages em = new WFErrorMessages(); em.addErrorMessage(SEARCH_PUBLISHED_FROM_ID); em.addErrorMessage(SEARCH_PUBLISHED_TO_ID); mainContainer.add(em); HtmlPanelGrid p = WFPane...
3,237,558
public Experimenter[] containedExperimenters(Long groupId) { ExperimenterGroup g = iQuery.execute(new GroupQ(new Parameters() .addId(groupId))); if (g == null) { throw new ApiUsageException("No such group: " + groupId); } int count = g.sizeOfGroupExperimenterMap(); if (count < 1) { return new Experimenter[...
public Experimenter[] containedExperimenters(Long groupId) { ExperimenterGroup g = iQuery.execute(new GroupQ(new Parameters() .addId(groupId))); if (g == null) { throw new ApiUsageException("No such group: " + groupId); } int count = g.sizeOfGroupExperimenterMap(); if (count < 1) { return new Experimenter[...
3,237,559
public ExperimenterGroup[] containedGroups(Long experimenterId) { Experimenter e = iQuery.execute(new UserQ(new Parameters() .addId(experimenterId))); if (e == null) { throw new ApiUsageException("No such user: " + experimenterId); } int count = e.sizeOfGroupExperimenterMap(); if (count < 1) { return new E...
public ExperimenterGroup[] containedGroups(Long experimenterId) { Experimenter e = iQuery.execute(new UserQ(new Parameters() .addId(experimenterId))); if (e == null) { throw new ApiUsageException("No such user: " + experimenterId); } int count = e.sizeOfGroupExperimenterMap(); if (count < 1) { return new E...
3,237,560
public static void testClazz() { Clazz clazz; clazz = new Clazz("HelloWorld"); assertEquals("HelloWorld", clazz.getName()); assertEquals("", clazz.getPackageName()); assertEquals("HelloWorld.java", clazz.getLongFileName()); assertEquals("HelloWorld", clazz.getLongName()); assertEquals(0, clazz.getBranchCoverage...
public static void testClazz() { Clazz clazz; clazz = new Clazz("HelloWorld"); assertEquals("HelloWorld", clazz.getName()); assertEquals("", clazz.getPackageName()); assertEquals("HelloWorld.java", clazz.getLongFileName()); assertEquals("HelloWorld", clazz.getLongName()); assertEquals(0, clazz.getBranchCoverage...
3,237,561
public static void testClazz() { Clazz clazz; clazz = new Clazz("HelloWorld"); assertEquals("HelloWorld", clazz.getName()); assertEquals("", clazz.getPackageName()); assertEquals("HelloWorld.java", clazz.getLongFileName()); assertEquals("HelloWorld", clazz.getLongName()); assertEquals(0, clazz.getBranchCoverage...
public static void testClazz() { Clazz clazz; clazz = new Clazz("HelloWorld"); assertEquals("HelloWorld", clazz.getName()); assertEquals("", clazz.getPackageName()); assertEquals("HelloWorld.java", clazz.getLongFileName()); assertEquals("HelloWorld", clazz.getLongName()); assertEquals(0, clazz.getBranchCoverage...
3,237,562
public static void testClazz() { Clazz clazz; clazz = new Clazz("HelloWorld"); assertEquals("HelloWorld", clazz.getName()); assertEquals("", clazz.getPackageName()); assertEquals("HelloWorld.java", clazz.getLongFileName()); assertEquals("HelloWorld", clazz.getLongName()); assertEquals(0, clazz.getBranchCoverage...
public static void testClazz() { Clazz clazz; clazz = new Clazz("HelloWorld"); assertEquals("HelloWorld", clazz.getName()); assertEquals("", clazz.getPackageName()); assertEquals("HelloWorld.java", clazz.getLongFileName()); assertEquals("HelloWorld", clazz.getLongName()); assertEquals(0, clazz.getBranchCoverage...
3,237,563
protected Object parseCustomMapElement(MappingMetaData metadata, Element element, String name) { Map map = new HashMap(); Element parent = (Element) element.getParentNode(); String entryName = metadata.getMapEntryName(getLocalName(parent), name); String keyName = metadata.getMapKeyName(g...
protected Object parseCustomMapElement(MappingMetaData metadata, Element element, String name) { Map map = new HashMap(); Element parent = (Element) element.getParentNode(); String entryName = metadata.getMapEntryName(getLocalName(parent), name); String keyName = metadata.getMapKeyName(g...
3,237,564
public BaseQ(Parameters params) { super(defs,new Parameters( new Filter().unique() ).addAll( params )); }
public BaseQ(Parameters params) { super(defs,new Parameters( new Filter().unique() ).addAll( params )); }
3,237,565
public GroupQ(Parameters params) { super(params); }
public GroupQ(Parameters params) { super(params); }
3,237,566
protected void buildQuery(Session session) throws HibernateException, SQLException { Criteria c = session.createCriteria(ExperimenterGroup.class); Criteria m = c.createCriteria("groupExperimenterMap",Query.LEFT_JOIN); Criteria e = m.createCriteria("child",Query.LEFT_JOIN); if (...
protected void buildQuery(Session session) throws HibernateException, SQLException { Criteria c = session.createCriteria(ExperimenterGroup.class); Criteria m = c.createCriteria("groupExperimenterMap",Query.LEFT_JOIN); Criteria e = m.createCriteria("child",Query.LEFT_JOIN); if (...
3,237,567
protected void buildQuery(Session session) throws HibernateException, SQLException { Criteria c = session.createCriteria(ExperimenterGroup.class); Criteria m = c.createCriteria("groupExperimenterMap",Query.LEFT_JOIN); Criteria e = m.createCriteria("child",Query.LEFT_JOIN); if (...
protected void buildQuery(Session session) throws HibernateException, SQLException { Criteria c = session.createCriteria(ExperimenterGroup.class); Criteria m = c.createCriteria("groupExperimenterMap",Query.LEFT_JOIN); Criteria e = m.createCriteria("child",Query.LEFT_JOIN); if (...
3,237,568
public UserQ(Parameters params) { super(params); }
public UserQ(Parameters params) { super(params); }
3,237,569
protected void buildQuery(Session session) throws HibernateException, SQLException { Criteria c = session.createCriteria(Experimenter.class); Criteria m = c.createCriteria("groupExperimenterMap",Query.LEFT_JOIN); Criteria g = m.createCriteria("parent",Query.LEFT_JOIN); if (valu...
protected void buildQuery(Session session) throws HibernateException, SQLException { Criteria c = session.createCriteria(Experimenter.class); Criteria m = c.createCriteria("groupExperimenterMap",Query.LEFT_JOIN); Criteria g = m.createCriteria("parent",Query.LEFT_JOIN); if (valu...
3,237,570
public void addGroups(Experimenter user, ExperimenterGroup... groups) { if (user == null) return; // Handled by annotations if (groups == null) return; Experimenter foundUser = userProxy(user.getId()); for (ExperimenterGroup group : groups) { ExperimenterGroup foundGroup = ...
public void addGroups(Experimenter user, ExperimenterGroup... groups) { if (user == null) return; // Handled by annotations if (groups == null) return; Experimenter foundUser = userProxy(user.getId()); for (ExperimenterGroup group : groups) { ExperimenterGroup foundGroup = ...
3,237,571
public void addGroups(Experimenter user, ExperimenterGroup... groups) { if (user == null) return; // Handled by annotations if (groups == null) return; Experimenter foundUser = userProxy(user.getId()); for (ExperimenterGroup group : groups) { ExperimenterGroup foundGroup = ...
public void addGroups(Experimenter user, ExperimenterGroup... groups) { if (user == null) return; // Handled by annotations if (groups == null) return; Experimenter foundUser = userProxy(user.getId()); for (ExperimenterGroup group : groups) { ExperimenterGroup foundGroup = ...
3,237,572
public <T extends IObject> T updateObject(T obj) { return iUpdate.saveAndReturnObject( obj ); }
public <T extends IObject> T updateObject(T obj) { return iUpdate.saveAndReturnObject( obj ); }
3,237,573
public void changeGroup(IObject iObject, String groupName) { final LocalUpdate update = iUpdate; // should take a group final IObject copy = iQuery.get(iObject.getClass(), iObject.getId()); ExperimenterGroup group = groupProxy(groupName); copy.getDetails().setGroup(group); getSecuritySyst...
public void changeGroup(IObject iObject, String groupName) { final LocalUpdate update = iUpdate; // should take a group final IObject copy = iQuery.get(iObject.getClass(), iObject.getId()); ExperimenterGroup group = groupProxy(groupName); copy.getDetails().setGroup(group); getSecuritySyst...
3,237,574
public IObject updateObject(IObject obj) { update.flush(); return null; }
public IObject updateObject(IObject obj) { update.flush(); return null; }
3,237,575
public void changeOwner(IObject iObject, String omeName) { // should take an Owner IObject copy = iQuery.get(iObject.getClass(), iObject.getId()); Experimenter owner = userProxy(omeName); copy.getDetails().setOwner(owner); iUpdate.saveObject(copy); }
public void changeOwner(IObject iObject, String omeName) { // should take an Owner IObject copy = iQuery.get(iObject.getClass(), iObject.getId()); Experimenter owner = userProxy(omeName); copy.getDetails().setOwner(owner); iUpdate.saveObject(copy); }
3,237,576
public void changePassword(String newPassword) { internalChangeUserPasswordById( getSecuritySystem().currentUserId(), newPassword); }
public void changePassword(String newPassword) { internalChangeUserPasswordById( getSecuritySystem().currentUserId(), newPassword); }
3,237,577
public void changePermissions(final IObject iObject, final Permissions perms) { final LocalUpdate update = iUpdate; final IObject copy = iQuery.get(iObject.getClass(), iObject.getId()); copy.getDetails().setPermissions(perms); getSecuritySystem().doAction(copy, new SecureAction(){ public <T ...
public void changePermissions(final IObject iObject, final Permissions perms) { final LocalUpdate update = iUpdate; final IObject copy = iQuery.get(iObject.getClass(), iObject.getId()); copy.getDetails().setPermissions(perms); getSecuritySystem().doAction(copy, new SecureAction(){ public <T ...
3,237,578
public void changeUserPassword(String omeName, String newPassword) { Experimenter e = lookupExperimenter(omeName); internalChangeUserPasswordById(e.getId(),newPassword); }
public void changeUserPassword(String omeName, String newPassword) { Experimenter e = lookupExperimenter(omeName); internalChangeUserPasswordById(e.getId(),newPassword); }
3,237,579
public Experimenter[] containedExperimenters(Long groupId) { ExperimenterGroup g = iQuery.execute( new GroupQ( new Parameters( ).addId(groupId))); if (g == null) { throw new ApiUsageException("No such group: "+groupId); } int count = g.sizeOfGroupExperimenterMap(); if...
public Experimenter[] containedExperimenters(Long groupId) { ExperimenterGroup g = iQuery.execute( new GroupQ( new Parameters( ).addId(groupId))); if (g == null) { throw new ApiUsageException("No such group: "+groupId); } int count = g.sizeOfGroupExperimenterMap(); if...
3,237,580