bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
public boolean isDefined(RubyId rubyId) { if (rubyId.equals(id)) { return true; } else if (next != null) { return next.isDefined(rubyId); } return false; }
public boolean isDefined(RubyId rubyId) { if (rubyId.equals(id)) { return true; } else if (next != null) { return next.isDefined(rubyId); } return false; }
3,235,486
public static void pop(Ruby ruby) { ruby.getInterpreter().setDynamicVars((RubyVarmap)((RubyStack)oldMap.get(ruby)).pop()); }
public static void pop(Ruby ruby) { ruby.setDynamicVars((RubyVarmap)((RubyStack)oldMap.get(ruby)).pop()); }
3,235,488
public static void push(Ruby ruby) { // HACK +++ if (oldMap.get(ruby) == null) { oldMap.put(ruby, new RubyStack()); // throw new RuntimeException("JRuby - BUG: Need Queue for oldMap in RubyVarmap"); } // HACK --- ((RubyStack)oldMap.get(ruby)).push(rub...
public static void push(Ruby ruby) { // HACK +++ if (oldMap.get(ruby) == null) { oldMap.put(ruby, new RubyStack()); // throw new RuntimeException("JRuby - BUG: Need Queue for oldMap in RubyVarmap"); } // HACK --- ((RubyStack)oldMap.get(ruby)).push(rub...
3,235,489
public void setConfig(String config) { // as we'll later use this as a prefix, it should end with a slash if (config.length() > 0 && !config.endsWith("/")) { if (log.loggingInfo()) log.info("ClassPathTemplateLoader: appending \"/\" to path " + config); config = config.concat("/")...
if (config.startsWith("/")) { config = config.substring(1); } if (config.startsWith("/")) { config = config.substring(1); } if (config.startsWith("/")) { config = config.substring(1); } public if (config.startsWith("/")) { config = config.substring(1); } void if (config.startsWith("/")) { config = config.s...
3,235,491
static private String makeName(Object[] names) { StringBuffer buf = new StringBuffer(); buf.append("$("); for (int i = 0; i < names.length; i++) { if (i != 0) buf.append("."); buf.append((names[i] != null) ? names[i] : "NULL"); } buf.append(")"); return buf.toString(); ...
static protected String makeName(Object[] names) { StringBuffer buf = new StringBuffer(); buf.append("$("); for (int i = 0; i < names.length; i++) { if (i != 0) buf.append("."); buf.append((names[i] != null) ? names[i] : "NULL"); } buf.append(")"); return buf.toString();...
3,235,494
void cancel() { if (currentLoader != null) { currentLoader.cancel(); currentLoader = null; } state = Annotator.READY; }
void cancel() { if (currentLoader != null) { currentLoader.cancel(); currentLoader = null; } state = Annotator.READY; }
3,235,495
private AnnotationData getLastAnnotation(List list) { if (list == null || list.size() == 0) return null; Comparator c = new Comparator() { public int compare(Object o1, Object o2) { Timestamp t1 = ((AnnotationData) o1).getLastModified(), t2 = ((Annotati...
private AnnotationData getLastAnnotation(List list) { if (list == null || list.size() == 0) return null; Comparator c = new Comparator() { public int compare(Object o1, Object o2) { Timestamp t1 = ((AnnotationData) o1).getLastModified(), t2 = ((Annotati...
3,235,496
public int compare(Object o1, Object o2) { Timestamp t1 = ((AnnotationData) o1).getLastModified(), t2 = ((AnnotationData) o2).getLastModified(); long n1 = t1.getTime(); long n2 = t2.getTime(); int v = 0; if (n1 < ...
public int compare(Object o1, Object o2) { Timestamp t1 = ((AnnotationData) o1).getLastModified(), t2 = ((AnnotationData) o2).getLastModified(); long n1 = t1.getTime(); long n2 = t2.getTime(); int v = 0; if (n1 < ...
3,235,497
private String getPartialName(String originalName) { if (Pattern.compile("/").matcher(originalName).find()) { String[] l = originalName.split("/", 0); int n = l.length; if (n == 1) return l[0]; return UIUtilities.DOTS+l[n-2]+"/"+l[n-1]; } else if (Pattern.compile("\\\\"...
private String getPartialName(String originalName) { if (Pattern.compile("/").matcher(originalName).find()) { String[] l = originalName.split("/", 0); int n = l.length; if (n == 1) return l[0]; return UIUtilities.DOTS+l[n-2]+"/"+l[n-1]; } else if (Pattern.compile("\\\\"...
3,235,498
private boolean isAnnotatable(DataObject data) { if ((data instanceof ImageData)) { type = ImageData.class; return true; } else if (data instanceof DatasetData) { type = DatasetData.class; return true; } return false; }
private boolean isAnnotatable(DataObject data) { if ((data instanceof ImageData)) { type = ImageData.class; return true; } else if (data instanceof DatasetData) { type = DatasetData.class; return true; } return false; }
3,235,499
private boolean isObjectAnnotated(DataObject data) { Long n = null; if (data instanceof ImageData) { type = ImageData.class; n = ((ImageData) data).getAnnotationCount(); } else if (data instanceof DatasetData) { type = DatasetData.class; n = ((DatasetData) data).getAnnotationCount(); } if (n =...
private boolean isObjectAnnotated(DataObject data) { Long n = null; if (data instanceof ImageData) { type = ImageData.class; n = ((ImageData) data).getAnnotationCount(); } else if (data instanceof DatasetData) { type = DatasetData.class; n = ((DatasetData) data).getAnnotationCount(); } if (n =...
3,235,500
void showImages(List images) { removeAll(); setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); add(Box.createRigidArea(DataManagerUIF.VBOX)); add(componentsPanel); add(Box.createRigidArea(DataManagerUIF.VBOX)); if (images != null && images.size() != 0) { add(bu...
void showImages(List images) { removeAll(); setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); add(Box.createRigidArea(DataManagerUIF.VBOX)); add(componentsPanel); add(Box.createRigidArea(DataManagerUIF.VBOX)); if (images != null && images.size() != 0) { add(bu...
3,235,501
private JMenu createEditMenu() { JMenu menu = new JMenu("Edit"); menu.setMnemonic(KeyEvent.VK_E); menu.add(new JMenuItem(controller.getAction(HiViewer.FIND))); menu.add(new JMenuItem(controller.getAction(HiViewer.CLEAR))); menu.add(new JSeparator(JSeparator.HORIZONTAL)); ...
private JMenu createEditMenu() { JMenu menu = new JMenu("Edit"); menu.setMnemonic(KeyEvent.VK_E); menu.add(new JMenuItem(controller.getAction(HiViewer.FIND))); menu.add(new JSeparator(JSeparator.HORIZONTAL)); menu.add(new JMenuItem( controller.getAction(H...
3,235,502
private JMenu createFileMenu() { JMenu menu = new JMenu("File"); menu.setMnemonic(KeyEvent.VK_H); menu.add(new JMenuItem( controller.getAction(HiViewer.SAVE_THUMB))); menu.add(new JSeparator(JSeparator.HORIZONTAL)); menu.add(new JMenuItem( controll...
private JMenu createFileMenu() { JMenu menu = new JMenu("File"); menu.setMnemonic(KeyEvent.VK_F); menu.add(new JMenuItem( controller.getAction(HiViewer.SAVE_THUMB))); menu.add(new JSeparator(JSeparator.HORIZONTAL)); menu.add(new JMenuItem( controll...
3,235,503
private JMenu createFileMenu() { JMenu menu = new JMenu("File"); menu.setMnemonic(KeyEvent.VK_H); menu.add(new JMenuItem( controller.getAction(HiViewer.SAVE_THUMB))); menu.add(new JSeparator(JSeparator.HORIZONTAL)); menu.add(new JMenuItem( controll...
private JMenu createFileMenu() { JMenu menu = new JMenu("File"); menu.setMnemonic(KeyEvent.VK_H); menu.add(new JMenuItem( controller.getAction(HiViewer.SAVE_THUMB))); menu.add(new JSeparator(JSeparator.HORIZONTAL)); menu.add(new JMenuItem( controll...
3,235,504
private void createWindowsMenu() { windowsMenu = new JMenu("Windows"); windowsMenu.setMnemonic(KeyEvent.VK_W); }
private void createWindowsMenu() { windowsMenu = new JMenu("Window"); windowsMenu.setMnemonic(KeyEvent.VK_W); }
3,235,505
public static IRubyObject primitive_to_java(IRubyObject recv, IRubyObject object) { if (object instanceof JavaObject) { return object; } IRuby runtime = recv.getRuntime(); Object javaObject; if (object.isNil()) { javaObject = null; } else if (object in...
public static IRubyObject primitive_to_java(IRubyObject recv, IRubyObject object) { if (object instanceof JavaObject) { return object; } IRuby runtime = recv.getRuntime(); Object javaObject; if (object.isNil()) { javaObject = null; } else if (object in...
3,235,506
public IRubyObject op_div(IRubyObject other) { if (other instanceof RubyFloat) { return RubyFloat.newFloat(getRuntime(), getDoubleValue()).op_div(other); } else if (other instanceof RubyNumeric) { BigInteger[] results = getValue().divideAndRemainder(bigIntValue((RubyNumeric) othe...
public IRubyObject op_div(IRubyObject other) { if (other instanceof RubyFloat) { return RubyFloat.newFloat(getRuntime(), getDoubleValue()).op_div(other); } else if (other instanceof RubyNumeric) { BigInteger otherBig = bigIntValue((RubyNumeric) other); if (otherBig.equals(BigInt...
3,235,507
private void buildMessagePanel(String msg, Icon msgIcon) { messagePanel.setLayout(new BoxLayout(messagePanel, BoxLayout.X_AXIS)); messagePanel.setOpaque(false); if (msgIcon != null) { JLabel iconLabel = new JLabel(msgIcon); iconLabel.setAlignmentY(TOP_ALIGNMENT); ...
private void buildMessagePanel(String msg, Icon msgIcon) { messagePanel.setLayout(new BoxLayout(messagePanel, BoxLayout.X_AXIS)); messagePanel.setOpaque(false); if (msgIcon != null) { JLabel iconLabel = new JLabel(msgIcon); iconLabel.setAlignmentY(TOP_ALIGNMENT); ...
3,235,508
public Set findCGCIHierarchies(Set imgIDs) { Set result = proxiedInterface.findCGCIHierarchies(imgIDs); Set dataObjects = new HashSet(); for (Iterator i = result.iterator(); i.hasNext();) { Object obj = i.next(); if (obj instanceof CategoryGroup) { CategoryG...
public Set findCGCIHierarchies(Set imgIDs) { Set result = proxiedInterface.findCGCIHierarchies(imgIDs); Set dataObjects = new HashSet(); for (Iterator i = result.iterator(); i.hasNext();) { Object obj = i.next(); if (obj instanceof CategoryGroup) { CategoryG...
3,235,509
public Map findDatasetAnnotations(Set datasetIDs) { Map result = proxiedInterface.findDatasetAnnotations(datasetIDs); return goDatasetAnnotations(result); }
public Map findDatasetAnnotations(Set datasetIDs) { Map result = proxiedInterface.findDatasetAnnotations(datasetIDs); return AdapterUtils.adaptFoundDatasetAnnotations(result); }
3,235,510
public Map findDatasetAnnotationsForExperimenter(Set datasetIDs, int experimenterID) { Map result = proxiedInterface.findDatasetAnnotationsForExperimenter(datasetIDs,experimenterID); return goDatasetAnnotations(result); }
public Map findDatasetAnnotationsForExperimenter(Set datasetIDs, int experimenterID) { Map result = proxiedInterface.findDatasetAnnotationsForExperimenter(datasetIDs,experimenterID); return AdapterUtils.adaptFoundDatasetAnnotations(result); }
3,235,511
public Map findImageAnnotations(Set imgIDs) { Map result = proxiedInterface.findImageAnnotations(imgIDs); return goImageAnnotations(result); }
public Map findImageAnnotations(Set imgIDs) { Map result = proxiedInterface.findImageAnnotations(imgIDs); return AdapterUtils.adaptFoundImageAnnotations(result); }
3,235,512
public Map findImageAnnotationsForExperimenter(Set imgIDs, int experimenterID) { Map result = proxiedInterface.findImageAnnotationsForExperimenter(imgIDs,experimenterID); return goImageAnnotations(result); }
public Map findImageAnnotationsForExperimenter(Set imgIDs, int experimenterID) { Map result = proxiedInterface.findImageAnnotationsForExperimenter(imgIDs,experimenterID); return AdapterUtils.adaptFoundImageAnnotations(result); }
3,235,513
public Set findPDIHierarchies(Set imgIDs) { Set result = proxiedInterface.findPDIHierarchies(imgIDs); Set dataObjects = new HashSet(); for (Iterator i = result.iterator(); i.hasNext();) { Object obj = i.next(); if (obj instanceof Project) { Project prj = (Pr...
public Set findPDIHierarchies(Set imgIDs) { Set result = proxiedInterface.findPDIHierarchies(imgIDs); Set dataObjects = new HashSet(); for (Iterator i = result.iterator(); i.hasNext();) { Object obj = i.next(); if (obj instanceof Project) { Project prj = (Pr...
3,235,514
public DataObject loadCGCIHierarchy(Class rootNodeType, int rootNodeID) { Object result = proxiedInterface.loadCGCIHierarchy(rootNodeType, rootNodeID); if (rootNodeType.equals(CategoryGroup.class)){ return AdapterUtils.go((CategoryGroup) result); } else if (rootNodeType.equals(Ca...
public DataObject loadCGCIHierarchy(Class rootNodeType, int rootNodeID) { Object result = proxiedInterface.loadCGCIHierarchy(rootNodeType, rootNodeID); if (rootNodeType.equals(CategoryGroup.class)){ return AdapterUtils.go((CategoryGroup) result); } else if (rootNodeType.equals(Ca...
3,235,515
public DataObject loadPDIHierarchy(Class rootNodeType, int rootNodeID) { Object result = proxiedInterface.loadPDIHierarchy(rootNodeType, rootNodeID); if (rootNodeType.equals(Project.class)){ return AdapterUtils.go((Project) result); } else if (rootNodeType.equals(Dataset.class)){ ...
public DataObject loadPDIHierarchy(Class rootNodeType, int rootNodeID) { Object result = proxiedInterface.loadPDIHierarchy(rootNodeType, rootNodeID); if (rootNodeType.equals(Project.class)){ return AdapterUtils.go((Project) result); } else if (rootNodeType.equals(Dataset.class)){ ...
3,235,516
void updateOutputStart(int y) { yStartOutput1 = y; yStartOutput2 = y-triangleW; yStartOutput3 = y+triangleW; startPt.setLocation(startPt.getX(), (double) y); super.repaint(); }
void updateOutputStart(int y) { yStartOutput1 = y; yStartOutput2 = y-triangleW; yStartOutput3 = y+triangleW; startPt.setLocation(startPt.getX(), (double) y); super.repaint(); }
3,235,517
void updateOutputEnd(int y) { yEndOutput1 = y; yEndOutput2 = y-triangleW; yEndOutput3 = y+triangleW; endPt.setLocation(endPt.getX(), (double) y); super.repaint(); }
void updateOutputEnd(int y) { yEndOutput1 = y; yEndOutput2 = y-triangleW; yEndOutput3 = y+triangleW; endPt.setLocation(endPt.getX(), (double) y); super.repaint(); }
3,235,518
public RubyObject execute(RubyObject recv, RubyObject[] args, Ruby ruby) { return JavaUtil.convertJavaToRuby(ruby, bean.bean, bean.type); }
public RubyObject execute(RubyObject recv, RubyObject[] args, Ruby ruby) { return JavaUtil.convertJavaToRuby(ruby, bean.bean, bean.type); }
3,235,519
public Quantization_8_16_bit(QuantumDef qd, PixelsType type) { super(qd, type); }
public Quantization_8_16_bit(QuantumDef qd, PixelsType type, IPixels iPixels) { super(qd, type); }
3,235,520
public Quantization_8_16_bit(QuantumDef qd, PixelsType type) { super(qd, type); }
public Quantization_8_16_bit(QuantumDef qd, PixelsType type) { super(qd, type, iPixels); }
3,235,521
public String[][] getROIStats() { String[][] stats = new String[2][8]; for (int i = 0; i < 8; i++) { stats[0][i] = ""+i; stats[1][i] = ""+2*i; } return stats; }
public String[][] getROIStats() { String[][] stats = new String[2][8]; for (int i = 0; i < 8; i++) { stats[0][i] = ""+i; stats[1][i] = ""+2*i; } return stats; }
3,235,523
private UnregisterServiceManager(ServiceManager serviceManager, StopStrategy stopStrategy, Throwable[] futureThrowable) { this.serviceManager = serviceManager; this.stopStrategy = stopStrategy; this.futureThrowable = futureThrowable; }
private UnregisterServiceManager(ServiceManager serviceManager, StopStrategy stopStrategy) { this.serviceManager = serviceManager; this.stopStrategy = stopStrategy; this.futureThrowable = futureThrowable; }
3,235,524
private UnregisterServiceManager(ServiceManager serviceManager, StopStrategy stopStrategy, Throwable[] futureThrowable) { this.serviceManager = serviceManager; this.stopStrategy = stopStrategy; this.futureThrowable = futureThrowable; }
private UnregisterServiceManager(ServiceManager serviceManager, StopStrategy stopStrategy, Throwable[] futureThrowable) { this.serviceManager = serviceManager; this.stopStrategy = stopStrategy; }
3,235,525
public Object call() { try { serviceManager.destroy(stopStrategy); synchronized (serviceManagers) { serviceManagers.remove(serviceManager.getServiceName()); } return null; } catch (Throwable e) { ...
public Object call() { try { serviceManager.destroy(stopStrategy); synchronized (serviceManagers) { serviceManagers.remove(serviceManager.getServiceName()); } return null; } catch (Throwable e) { ...
3,235,526
public void showGraphView() { if(attributeName != null && elementName != null) { BrowserModel browserModel = model.getInfoSource(); List thumbList = browserModel.getThumbnails(); Thumbnail[] thumbnails = new Thumbnail[thumbList.size()]; thumbList.toArray(...
public void showGraphView() { if(attributeName != null && elementName != null) { BrowserModel browserModel = model.getInfoSource(); List thumbList = browserModel.getThumbnails(); Thumbnail[] thumbnails = new Thumbnail[thumbList.size()]; thumbList.toArray(...
3,235,528
public Instruction visitConstNode(ConstNode iVisited) { if (state.runtime.getClass("Module").getConstant(iVisited.getName(), false) != null) { definition = "constant"; } return null; }
public Instruction visitConstNode(ConstNode iVisited) { if (state.runtime.getClass("Module").getConstant(iVisited.getName(), false) != null) { definition = "constant"; } return null; }
3,235,529
private void initComponents() { newElement = new JMenuItem( controller.getAction(TreeViewerControl.CREATE_OBJECT)); initMenuItem(newElement); copyElement = new JMenuItem( controller.getAction(TreeViewerControl.COPY_OBJECT)); initMenuItem(newElement); ...
private void initComponents() { newElement = new JMenuItem( controller.getAction(TreeViewerControl.CREATE_OBJECT)); initMenuItem(newElement); copyElement = new JMenuItem( controller.getAction(TreeViewerControl.COPY_OBJECT)); initMenuItem(newElement); ...
3,235,532
public DisplayedNote(NoteTreeNode treeNode, Note note) { this.treeNode = treeNode; this.note = note; }
public DisplayedNote(NoteTreeNode treeNode, Note note) { this.treeNode = treeNode; this.note = note; }
3,235,533
private ConstructorMetadata getConstructor(RootBeanDefinition rootBeanDefinition) { Class beanType = rootBeanDefinition.getBeanClass(); // try to get the class metadata ClassMetadata classMetadata = metadataManager.getClassMetadata(beanType); // get a set containing the names of the defi...
private ConstructorMetadata getConstructor(RootBeanDefinition rootBeanDefinition) { Class beanType = rootBeanDefinition.getBeanClass(); // try to get the class metadata ClassMetadata classMetadata = metadataManager.getClassMetadata(beanType); // get a set containing the names of the defi...
3,235,535
public void visitBeanDefinition(BeanDefinition beanDefinition) throws BeansException { super.visitBeanDefinition(beanDefinition); if (!(beanDefinition instanceof RootBeanDefinition)) { return; } RootBeanDefinition rootBeanDefinit...
public void visitBeanDefinition(BeanDefinition beanDefinition) throws BeansException { super.visitBeanDefinition(beanDefinition); if (!(beanDefinition instanceof RootBeanDefinition)) { return; } RootBeanDefinition rootBeanDefinit...
3,235,536
public void visitBeanDefinition(BeanDefinition beanDefinition) throws BeansException { super.visitBeanDefinition(beanDefinition); if (!(beanDefinition instanceof RootBeanDefinition)) { return; } RootBeanDefinition rootBeanDefinit...
public void visitBeanDefinition(BeanDefinition beanDefinition) throws BeansException { super.visitBeanDefinition(beanDefinition); if (!(beanDefinition instanceof RootBeanDefinition)) { return; } RootBeanDefinition rootBeanDefinit...
3,235,537
public Object get(final String query) throws NotFoundException { TimedReference r; try { r = (TimedReference) _cache.get(query); } catch (NullPointerException e) { throw new NotFoundException(this + " is not initialized", e); } Object o = null; if (r != null) { ...
public Object get(final String query) throws NotFoundException { TimedReference r; try { r = (TimedReference) _cache.get(query); } catch (NullPointerException e) { throw new NotFoundException(this + " is not initialized", e); } Object o = null; if (r != null) { ...
3,235,538
final public void resourceRequest(RequestResourceEvent evt) throws NotFoundException { try { URL u = new URL(evt.getName()); Reader in = new InputStreamReader(u.openStream()); char buf[] = new char[512]; StringWriter sw = new StringWriter(); int num; while...
final public void resourceRequest(RequestResourceEvent evt) throws NotFoundException { try { String name = evt.getName(); URL u; if (name.indexOf(":") < 3) { u = new URL("file",null,-1,name); } else { u = new URL(name); } Reader in = new InputStreamReader(u.openStream()); char bu...
3,235,540
private static QuantumStrategy getQuantization(QuantumDef qd, PixelsType type) { return new Quantization_8_16_bit(qd, type); }
private static QuantumStrategy getQuantization(QuantumDef qd, PixelsType type, IPixels iPixels) { return new Quantization_8_16_bit(qd, type); }
3,235,541
private static QuantumStrategy getQuantization(QuantumDef qd, PixelsType type) { return new Quantization_8_16_bit(qd, type); }
private static QuantumStrategy getQuantization(QuantumDef qd, PixelsType type) { return new Quantization_8_16_bit(qd, type, iPixels); }
3,235,542
public Node literal_concat(ISourcePosition position, Node head, Object tail) { ListNode list; if (head == null) { list = new DStrNode(position); } else if (head instanceof EvStrNode) { list = new DStrNode(position).add(head); } else { ...
public Node literal_concat(ISourcePosition position, Node head, Object tail) { ListNode list; if (head == null) { list = new DStrNode(position); } else if (head instanceof EvStrNode) { list = new DStrNode(position).add(head); } else { ...
3,235,543
public Node literal_concat(ISourcePosition position, Node head, Object tail) { ListNode list; if (head == null) { list = new DStrNode(position); } else if (head instanceof EvStrNode) { list = new DStrNode(position).add(head); } else { ...
public Node literal_concat(ISourcePosition position, Node head, Object tail) { ListNode list; if (head == null) { list = new DStrNode(position); } else if (head instanceof EvStrNode) { list = new DStrNode(position).add(head); } else { ...
3,235,544
public Node literal_concat(ISourcePosition position, Node head, Object tail) { ListNode list; if (head == null) { list = new DStrNode(position); } else if (head instanceof EvStrNode) { list = new DStrNode(position).add(head); } else { ...
public Node literal_concat(ISourcePosition position, Node head, Object tail) { ListNode list; if (head == null) { list = new DStrNode(position); } else if (head instanceof EvStrNode) { list = new DStrNode(position).add(head); } else { ...
3,235,545
public Node literal_concat(ISourcePosition position, Node head, Object tail) { ListNode list; if (head == null) { list = new DStrNode(position); } else if (head instanceof EvStrNode) { list = new DStrNode(position).add(head); } else { ...
public Node literal_concat(ISourcePosition position, Node head, Object tail) { ListNode list; if (head == null) { list = new DStrNode(position); } else if (head instanceof EvStrNode) { list = new DStrNode(position).add(head); } else { ...
3,235,546
public Node literal_concat(ISourcePosition position, Node head, Object tail) { ListNode list; if (head == null) { list = new DStrNode(position); } else if (head instanceof EvStrNode) { list = new DStrNode(position).add(head); } else { ...
public Node literal_concat(ISourcePosition position, Node head, Object tail) { ListNode list; if (head == null) { list = new DStrNode(position); } else if (head instanceof EvStrNode) { list = new DStrNode(position).add(head); } else { ...
3,235,547
public BPalette(BrowserTopModel parent, String name) { backingModel = parent; final BPalette refCopy = this; this.paletteName = name; titleBar = new TitleBar(name); iconBar = new IconBar(measuredWidth); addChild(titleBar); titleBar.addChild(iconBar); // ch...
public BPalette(BrowserTopModel parent, String name) { backingModel = parent; final BPalette refCopy = this; this.paletteName = name; titleBar = new TitleBar(name); iconBar = new IconBar(measuredWidth); addChild(titleBar); titleBar.addChild(iconBar); // ch...
3,235,548
public BIcon(String text, boolean sticky) { this.sticky = sticky; init(); presentationNode = new PText(text); // TODO set font addChild(presentationNode); placeNode(presentationNode); }
public BIcon(Image imageIcon, String tooltipText, boolean sticky) { this.sticky = sticky; init(); presentationNode = new PText(text); // TODO set font addChild(presentationNode); placeNode(presentationNode); }
3,235,549
public BIcon(String text, boolean sticky) { this.sticky = sticky; init(); presentationNode = new PText(text); // TODO set font addChild(presentationNode); placeNode(presentationNode); }
public BIcon(String text, boolean sticky) { this.sticky = sticky; init(); presentationNode = new PImage(imageIcon,true); // TODO set font addChild(presentationNode); placeNode(presentationNode); }
3,235,550
public void printError(RubyException excp) { if (excp == null || excp.isNil()) { return; } ThreadContext tc = getCurrentContext(); RubyArray backtrace = (RubyArray) excp.callMethod(tc, "backtrace"); PrintStream errorStream = getErrorStream(); if (backtrace.isNil()) { ...
public void printError(RubyException excp) { if (excp == null || excp.isNil()) { return; } ThreadContext tc = getCurrentContext(); IRubyObject backtrace = excp.callMethod(tc, "backtrace"); PrintStream errorStream = getErrorStream(); if (backtrace.isNil()) { ...
3,235,552
public void printError(RubyException excp) { if (excp == null || excp.isNil()) { return; } ThreadContext tc = getCurrentContext(); RubyArray backtrace = (RubyArray) excp.callMethod(tc, "backtrace"); PrintStream errorStream = getErrorStream(); if (backtrace.isNil()) { ...
public void printError(RubyException excp) { if (excp == null || excp.isNil()) { return; } ThreadContext tc = getCurrentContext(); RubyArray backtrace = (RubyArray) excp.callMethod(tc, "backtrace"); PrintStream errorStream = getErrorStream(); if (backtrace.isNil() || !(backt...
3,235,553
public void printError(RubyException excp) { if (excp == null || excp.isNil()) { return; } ThreadContext tc = getCurrentContext(); RubyArray backtrace = (RubyArray) excp.callMethod(tc, "backtrace"); PrintStream errorStream = getErrorStream(); if (backtrace.isNil()) { ...
public void printError(RubyException excp) { if (excp == null || excp.isNil()) { return; } ThreadContext tc = getCurrentContext(); RubyArray backtrace = (RubyArray) excp.callMethod(tc, "backtrace"); PrintStream errorStream = getErrorStream(); if (backtrace.isNil()) { ...
3,235,554
public void printError(RubyException excp) { if (excp == null || excp.isNil()) { return; } ThreadContext tc = getCurrentContext(); RubyArray backtrace = (RubyArray) excp.callMethod(tc, "backtrace"); PrintStream errorStream = getErrorStream(); if (backtrace.isNil()) { ...
public void printError(RubyException excp) { if (excp == null || excp.isNil()) { return; } ThreadContext tc = getCurrentContext(); RubyArray backtrace = (RubyArray) excp.callMethod(tc, "backtrace"); PrintStream errorStream = getErrorStream(); if (backtrace.isNil()) { ...
3,235,555
public void printError(RubyException excp) { if (excp == null || excp.isNil()) { return; } ThreadContext tc = getCurrentContext(); RubyArray backtrace = (RubyArray) excp.callMethod(tc, "backtrace"); PrintStream errorStream = getErrorStream(); if (backtrace.isNil()) { ...
public void printError(RubyException excp) { if (excp == null || excp.isNil()) { return; } ThreadContext tc = getCurrentContext(); RubyArray backtrace = (RubyArray) excp.callMethod(tc, "backtrace"); PrintStream errorStream = getErrorStream(); if (backtrace.isNil()) { ...
3,235,556
public void actionPerformed(ActionEvent e) { Object src = e.getSource(); if (target != null) { if (src == view.properties) control.showProperties(target); else if (src == view.view && target instanceof ImageSummary) control.viewImage((...
public void actionPerformed(ActionEvent e) { Object src = e.getSource(); if (target != null) { if (src == view.properties) control.showProperties(target); else if (src == view.view && target instanceof ImageSummary) control.viewImage((...
3,235,557
void zoomImage() { if (model.getRenderedImage() == null) return; model.createDisplayedImage(); BufferedImage img = model.getDisplayedImage(); setComponentsSize(img.getWidth(), img.getHeight()); JViewport currentView = this.getViewport(); int h = img.getHeight(); i...
void zoomImage() { if (model.getRenderedImage() == null) return; model.createDisplayedImage(); BufferedImage img = model.getDisplayedImage(); setComponentsSize(img.getWidth(), img.getHeight()); JViewport currentView = getViewport(); int h = img.getHeight(); int w ...
3,235,558
void initialize() { controller.initialize(view); model.getParentModel().addPropertyChangeListener( TreeViewer.THUMBNAIL_LOADED_PROPERTY, controller); view.initialize(controller, model); }
void initialize() { controller.initialize(view); model.getParentModel().addPropertyChangeListener( TreeViewer.THUMBNAIL_LOADED_PROPERTY, controller); view.initialize(controller, model); }
3,235,559
public String toString(){ return "LogicalChannel"+(attributeId==null ? ":Hash"+this.hashCode() : ":"+attributeId); }
public String toString(){ return "LogicalChannel"+(attributeId==null ? ":Hash_"+this.hashCode() : ":Id_"+attributeId); }
3,235,560
private void setTBSize(int w) { Dimension d = toolBar.getSize(); int dw = d.width; if (w-dw > 0) toolBar.add(Box.createRigidArea(new Dimension(w-d.width, 1))); }
private void setTBSize(int w) { Dimension d = toolBar.getSize(); int dw = d.width; if (w-dw > 0) toolBar.add(Box.createRigidArea(new Dimension(w-d.width, 1))); }
3,235,561
public void visit(ImageNode node) { long id = ((ImageData) node.getHierarchyObject()).getId(); Iterator i = nodes.iterator(); DataObject object; while (i.hasNext()) { object = (DataObject) i.next(); if (object instanceof ImageData) { if (object.getId() == id) ...
public void visit(ImageNode node) { long id = ((ImageData) node.getHierarchyObject()).getId(); Iterator i = nodes.iterator(); Object object; while (i.hasNext()) { object = (DataObject) i.next(); if (object instanceof ImageData) { if (object.getId() == id) { ...
3,235,562
public void visit(ImageNode node) { long id = ((ImageData) node.getHierarchyObject()).getId(); Iterator i = nodes.iterator(); DataObject object; while (i.hasNext()) { object = (DataObject) i.next(); if (object instanceof ImageData) { if (object.getId() == id) ...
public void visit(ImageNode node) { long id = ((ImageData) node.getHierarchyObject()).getId(); Iterator i = nodes.iterator(); DataObject object; while (i.hasNext()) { object = i.next(); if (object instanceof ImageData) { if (object.getId() == id) { ...
3,235,563
public void visit(ImageNode node) { long id = ((ImageData) node.getHierarchyObject()).getId(); Iterator i = nodes.iterator(); DataObject object; while (i.hasNext()) { object = (DataObject) i.next(); if (object instanceof ImageData) { if (object.getId() == id) ...
public void visit(ImageNode node) { long id = ((ImageData) node.getHierarchyObject()).getId(); Iterator i = nodes.iterator(); DataObject object; while (i.hasNext()) { object = (DataObject) i.next(); if (object instanceof ImageData) { if (((ImageData) object).g...
3,235,564
public void visit(ImageNode node) { long id = ((ImageData) node.getHierarchyObject()).getId(); Iterator i = nodes.iterator(); DataObject object; while (i.hasNext()) { object = (DataObject) i.next(); if (object instanceof ImageData) { if (object.getId() == id) ...
public void visit(ImageNode node) { long id = ((ImageData) node.getHierarchyObject()).getId(); Iterator i = nodes.iterator(); DataObject object; while (i.hasNext()) { object = (DataObject) i.next(); if (object instanceof ImageData) { if (object.getId() == id) ...
3,235,565
public void execute() throws BuildException { if (branchCoverageRate != null) { getJava().createArg().setValue("--branch"); getJava().createArg().setValue(branchCoverageRate); } if (dataFile != null) { getJava().createArg().setValue("--datafile"); getJava().createArg().setValue(dataFile); } Iterator i =...
public void execute() throws BuildException { if (branchCoverageRate != null) { getJava().createArg().setValue("--branch"); getJava().createArg().setValue(branchCoverageRate); } if (dataFile != null) { getJava().createArg().setValue("--datafile"); getJava().createArg().setValue(dataFile); } Iterator i =...
3,235,567
public void execute() throws BuildException { if (branchCoverageRate != null) { getJava().createArg().setValue("--branch"); getJava().createArg().setValue(branchCoverageRate); } if (dataFile != null) { getJava().createArg().setValue("--datafile"); getJava().createArg().setValue(dataFile); } Iterator i =...
public void execute() throws BuildException { if (branchCoverageRate != null) { getJava().createArg().setValue("--branch"); getJava().createArg().setValue(branchCoverageRate); } if (dataFile != null) { getJava().createArg().setValue("--datafile"); getJava().createArg().setValue(dataFile); } Iterator i =...
3,235,568
public void execute() throws BuildException { if (branchCoverageRate != null) { getJava().createArg().setValue("--branch"); getJava().createArg().setValue(branchCoverageRate); } if (dataFile != null) { getJava().createArg().setValue("--datafile"); getJava().createArg().setValue(dataFile); } Iterator i =...
public void execute() throws BuildException { if (branchCoverageRate != null) { getJava().createArg().setValue("--branch"); getJava().createArg().setValue(branchCoverageRate); } if (dataFile != null) { getJava().createArg().setValue("--datafile"); getJava().createArg().setValue(dataFile); } Iterator i =...
3,235,569
public void execute() throws BuildException { if (branchCoverageRate != null) { getJava().createArg().setValue("--branch"); getJava().createArg().setValue(branchCoverageRate); } if (dataFile != null) { getJava().createArg().setValue("--datafile"); getJava().createArg().setValue(dataFile); } Iterator i =...
public void execute() throws BuildException { if (branchCoverageRate != null) { getJava().createArg().setValue("--branch"); getJava().createArg().setValue(branchCoverageRate); } if (dataFile != null) { getJava().createArg().setValue("--datafile"); getJava().createArg().setValue(dataFile); } Iterator i =...
3,235,570
public void execute() throws BuildException { if (branchCoverageRate != null) { getJava().createArg().setValue("--branch"); getJava().createArg().setValue(branchCoverageRate); } if (dataFile != null) { getJava().createArg().setValue("--datafile"); getJava().createArg().setValue(dataFile); } Iterator i =...
public void execute() throws BuildException { if (branchCoverageRate != null) { getJava().createArg().setValue("--branch"); getJava().createArg().setValue(branchCoverageRate); } if (dataFile != null) { getJava().createArg().setValue("--datafile"); getJava().createArg().setValue(dataFile); } Iterator i =...
3,235,571
public RubyObject call0(RubyObject recv, RubyId id, RubyObject[] args, Node body, boolean noSuper) { // ... getRuby().getRubyFrame().push(); // HACK +++ getRuby().getIter().push(RubyIter.ITER_NOT); // HACK --- getRuby().getRubyFrame().setLast...
public RubyObject call0(RubyObject recv, RubyId id, RubyObject[] args, Node body, boolean noSuper) { // ... getRuby().getRubyFrame().push(); // HACK +++ getRuby().getIter().push(RubyIter.ITER_NOT); // HACK --- getRuby().getRubyFrame().setLast...
3,235,573
public double getMax() { return max; }
public double getMax() { return max; }
3,235,574
public double getMean() { return mean; }
public double getMean() { return mean; }
3,235,575
public double getMin() { return min; }
public double getMin() { return min; }
3,235,576
public double getStandardDeviation() { return standardDeviation; }
public double getStandardDeviation() { return standardDeviation; }
3,235,577
private void formatUsersList(String[] owners) { // remove all users from list before adding new listModel.removeAllElements(); // add each user to list Timestamp date; DateFormat df = DateFormat.getDateInstance(); AnnotationData data; List list; for...
private void formatUsersList(String[] owners) { // remove all users from list before adding new listModel.removeAllElements(); // add each user to list Timestamp date; DateFormat df = DateFormat.getDateInstance(); AnnotationData data; List list; for...
3,235,578
void showAnnotations() { deleteBox.setSelected(false); ExperimenterData userDetails = model.getUserDetails(); if (userDetails == null) return; Map annotations = model.getAnnotations(); String[] owners = new String[annotations.size()]; Iterator i = annotations.keySet().it...
void showAnnotations() { deleteBox.setSelected(false); ExperimenterData userDetails = model.getUserDetails(); if (userDetails == null) return; Map annotations = model.getAnnotations(); String[] owners = new String[annotations.size()]; Iterator i = annotations.keySet().it...
3,235,579
void showAnnotations() { deleteBox.setSelected(false); ExperimenterData userDetails = model.getUserDetails(); if (userDetails == null) return; Map annotations = model.getAnnotations(); String[] owners = new String[annotations.size()]; Iterator i = annotations.keySet().it...
void showAnnotations() { deleteBox.setSelected(false); ExperimenterData userDetails = model.getUserDetails(); if (userDetails == null) return; Map annotations = model.getAnnotations(); String[] owners = new String[annotations.size()]; Iterator i = annotations.keySet().it...
3,235,580
IObject findIObject(IObject o) throws DSOutOfServiceException, DSAccessException { try { IQuery service = getIQueryService(); return service.find(o.getClass(), o.getId().longValue()); } catch (Exception e) { handleException(e, "Cannot retrieve the requested ob...
IObject findIObject(IObject o) throws DSOutOfServiceException, DSAccessException { try { IQuery service = getIQueryService(); return service.find(o.getClass(), o.getId().longValue()); } catch (Exception e) { handleException(e, "Cannot retrieve the requested ob...
3,235,581
IObject findLink(IObject parent, IObject child) throws DSOutOfServiceException, DSAccessException { try { String table = getTableForLink(parent.getClass()); if (table == null) return null; String sql = "select link from "+table+" as link where " + "l...
IObject findLink(IObject parent, IObject child) throws DSOutOfServiceException, DSAccessException { try { String table = getTableForLink(parent.getClass()); if (table == null) return null; String sql = "select link from "+table+" as link where " + "l...
3,235,582
List findLinks(IObject parent, List children) throws DSOutOfServiceException, DSAccessException { try { String table = getTableForLink(parent.getClass()); if (table == null) return null; String sql = "select link from "+table+" as link where " + "...
List findLinks(IObject parent, List children) throws DSOutOfServiceException, DSAccessException { try { String table = getTableForLink(parent.getClass()); if (table == null) return null; String sql = "select link from "+table+" as link where " + "...
3,235,583
private ExperimenterData getUserDetails(String name) throws DSOutOfServiceException { try { IPojos service = getIPojosService(); Set set = new HashSet(1); set.add(name); Map m = PojoMapper.asDataObjects(service.getUserDetails(set, (new...
private ExperimenterData getUserDetails(String name) throws DSOutOfServiceException { try { IPojos service = getIPojosService(); Set set = new HashSet(1); set.add(name); Map m = PojoMapper.asDataObjects(service.getUserDetails(set, (new...
3,235,584
private void checkRoomsForTimeout() { int delay = 60000; // delay for 5 sec. int period = 30000; // repeat every sec. Timer timer = new Timer(); timer.scheduleAtFixedRate(new TimerTask() { public void run() { for (ChatRoom chatRoom : getChatContainer().getSta...
private void checkRoomsForTimeout() { int delay = 60000; // delay for 5 sec. int period = 30000; // repeat every sec. Timer timer = new Timer(); timer.scheduleAtFixedRate(new TimerTask() { public void run() { for (ChatRoom chatRoom : getChatContainer().getSta...
3,235,585
public void testSaveSimpleObject() throws Exception { Pixels p = ObjectFactory.createPixelGraph(null); p = (Pixels) iUpdate.saveAndReturnObject(p); flush(); List logs = CurrentDetails.getCreationEvent().collectFromLogs(null); assertTrue(logs.size() > 0); Pixels check = ...
public void testSaveSimpleObject() throws Exception { Pixels p = ObjectFactory.createPixelGraph(null); p = (Pixels) iUpdate.saveAndReturnObject(p); flush(); List logs = CurrentDetails.getCreationEvent().collectLogs(null); assertTrue(logs.size() > 0); Pixels check = (Pix...
3,235,586
public void actionPerformed(ActionEvent e) { ChatRoom chatRoom = (ChatRoom)getComponentInTab(tab); if (chatRoom != null) { for (ChatRoom cRoom : getChatRooms()) { if (chatRoom != cRoom) { ...
public void actionPerformed(ActionEvent e) { ChatRoom chatRoom = (ChatRoom)getComponentInTab(tab); if (chatRoom != null) { for (ChatRoom cRoom : getChatRooms()) { if (chatRoom != cRoom) { ...
3,235,589
public void actionPerformed(ActionEvent e) { for (ChatRoom rooms : getStaleChatRooms()) { closeTab(rooms); } }
public void actionPerformed(ActionEvent e) { for (ChatRoom rooms : getStaleChatRooms()) { closeTab(rooms); } }
3,235,591
public void run() { final Iterator iter = new HashSet(chatRoomListeners).iterator(); while (iter.hasNext()) { ((ChatRoomListener)iter.next()).userHasLeft(room, userid); } }
public void run() { final Iterator iter = new HashSet(chatRoomListeners).iterator(); while (iter.hasNext()) { ((ChatRoomListener)iter.next()).userHasJoined(room, userid); } }
3,235,592
public void run() { try { final int index = indexOfComponent(room); if (index != -1) { room.increaseUnreadMessageCount(); int unreadMessageCount = room.getUnreadMessageCount(); String ap...
public void run() { try { final int index = indexOfComponent(room); if (index != -1) { room.increaseUnreadMessageCount(); int unreadMessageCount = room.getUnreadMessageCount(); String ap...
3,235,594
public void run() { try { int index = indexOfComponent(room); if (index != -1) { SparkTab tab = getTabAt(index); useTabDefault(room); tab.getTitleLabel().setText(room.getTabTitle()); ...
public void run() { try { int index = indexOfComponent(room); if (index != -1) { SparkTab tab = getTabAt(index); useTabDefault(room); tab.getTitleLabel().setText(room.getTabTitle()); ...
3,235,595
public void run() { try { int index = indexOfComponent(room); if (index != -1) { SparkTab tab = getTabAt(index); useTabDefault(room); tab.getTitleLabel().setText(room.getTabTitle()); ...
public void run() { try { int index = indexOfComponent(room); if (index != -1) { SparkTab tab = getTabAt(index); useTabDefault(room); tab.getTitleLabel().setText(room.getTabTitle()); ...
3,235,596
public void run() { try { int index = indexOfComponent(room); if (index != -1) { SparkTab tab = getTabAt(index); useTabDefault(room); tab.getTitleLabel().setText(room.getTabTitle()); ...
public void run() { try { int index = indexOfComponent(room); if (index != -1) { SparkTab tab = getTabAt(index); useTabDefault(room); tab.getTitleLabel().setText(room.getTabTitle()); ...
3,235,597
static public Object parseQuotedString(ParseTool in) throws ParseException, IOException { int quoteChar = in.getChar(); boolean isMacro = false; if ((quoteChar != '\'') && (quoteChar != '\"')) { return null; // undefined quote char } StringBuffer str = new StringBuffer(96); ...
static public Object parseQuotedString(ParseTool in) throws ParseException, IOException { int quoteChar = in.getChar(); boolean isMacro = false; if ((quoteChar != '\'') && (quoteChar != '\"')) { return null; // undefined quote char } StringBuffer str = new StringBuffer(96); ...
3,235,599
ParseTool(String name, Reader inputStream) { _escaped = false; _name = name; LineNumberReader in = new LineNumberReader(inputStream); _cur = _last = _len = _pos = EOF; _buf = ""; // must be non-null or we will abort before we start _in = in; for (int i = 0; i < MAX_MARKS; i++) {...
ParseTool(String name, Reader inputStream) { _escaped = false; _name = name; LineNumberReader in = new LineNumberReader(inputStream); _cur = _last = _len = _pos = EOF; _buf = ""; // must be non-null or we will abort before we start _in = in; for (int i = 0; i < MAX_MARKS; i++) {...
3,235,600
public final void parseUntil(StringBuffer buf, String marker) throws ParseException { if (marker == null) { return; } if (marker.length() < 1) { return; } char start = marker.charAt(0); int mark = DUMMY_MARK; buf.setLength(0); LOOKING: while(_cur != EO...
public final void parseUntil(StringBuffer buf, String marker) throws ParseException { if (marker == null) { return; } if (marker.length() < 1) { return; } char start = marker.charAt(0); int mark = DUMMY_MARK; buf.setLength(0); LOOKING: while(_cur != EO...
3,235,601
public final void parseUntil(StringBuffer buf, String marker) throws ParseException { if (marker == null) { return; } if (marker.length() < 1) { return; } char start = marker.charAt(0); int mark = DUMMY_MARK; buf.setLength(0); LOOKING: while(_cur != EO...
public final void parseUntil(StringBuffer buf, String marker) throws ParseException { if (marker == null) { return; } if (marker.length() < 1) { return; } char start = marker.charAt(0); int mark = DUMMY_MARK; buf.setLength(0); LOOKING: while(_cur != EO...
3,235,602
public final void parseUntil(StringBuffer buf, String marker) throws ParseException { if (marker == null) { return; } if (marker.length() < 1) { return; } char start = marker.charAt(0); int mark = DUMMY_MARK; buf.setLength(0); LOOKING: while(_cur != EO...
public final void parseUntil(StringBuffer buf, String marker) throws ParseException { if (marker == null) { return; } if (marker.length() < 1) { return; } char start = marker.charAt(0); int mark = DUMMY_MARK; buf.setLength(0); LOOKING: while(_cur != EO...
3,235,603