bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
public final String GetImage() { if (tokenBeginBuf == curBuf) return new String(curBuf.buffer, tokenBeginPos, curBuf.curPos - tokenBeginPos + 1); else return new String(otherBuf.buffer, tokenBeginPos, otherBuf.dataLen - tokenBeginPos) ...
public final String GetImage() { if (tokenBeginBuf == curBuf) return new String(curBuf.buffer, tokenBeginPos, curBuf.curPos - tokenBeginPos + 1); else return new String(otherBuf.buffer, tokenBeginPos, otherBuf.dataLen - tokenBeginPos) ...
3,231,199
public ProjectLoader(HiViewer viewer, Set projectsID) { super(viewer); this.projectsID = projectsID; }
public ProjectLoader(HiViewer viewer, Set projectsID, boolean refresh) { super(viewer); this.projectsID = projectsID; }
3,231,201
public void handleResult(Object result) { if (viewer.getState() == HiViewer.DISCARDED) return; //Async cancel. viewer.setHierarchyRoots((Set) result, false); }
public void handleResult(Object result) { if (viewer.getState() == HiViewer.DISCARDED) return; //Async cancel. viewer.setHierarchyRoots((Set) result, false, refresh); }
3,231,203
protected void onStateChange(ChangeEvent e) { if (model.getState() == ImViewer.DISCARDED) discard(); }
protected void onStateChange(ChangeEvent e) { switch (model.getState()) { case ImViewer.DISCARDED: discard(); break; case ImViewer.RENDERING_CONTROL_LOADED: case ImViewer.READY: int max = Math.max(model.getMaxZ(), model.getMaxT()); setEnabled(max != 0); break; } }
3,231,204
final public void eatLeadingWsNl() { int i, j, l; i = size() - 1; if ( i < 0 || i+1 == literalMark ) return; Object o = elementAt(i); if (! (o instanceof String)) return; String s = (String) o; j = 0; l = s.length(); while (j < l && Character.isSpaceChar(s.charAt(j))) j++; ...
final public void eatLeadingWsNl() { int i, j, l; i = size() - 1; if ( i < 0 || i+1 == literalMark ) return; Object o = elementAt(i); if (! (o instanceof String)) return; String s = (String) o; j = 0; l = s.length(); while (j < l && isSpaceChar(s.charAt(j))) j++; if (j < l)...
3,231,206
final public void eatOneWs() { int i, j; i = size() - 1; if ( i < 0 || i+1 == literalMark ) return; Object o = elementAt(i); if (! (o instanceof String)) return; String s = (String) o; j = eatOneWs(s, s.length() - 1); if (j < 0) remove(i); else if (j < s.length() - 1) ...
final public void eatOneWs() { int i, j; i = size() - 1; if ( i < 0 || i+1 == literalMark ) return; Object o = elementAt(i); if (! (o instanceof String)) return; String s = (String) o; j = eatOneWs(s, s.length() - 1); if (j < 0) remove(i); else if (j < s.length() - 1) ...
3,231,207
private final static int eatWs(String s, int pos) { while (pos >= 0 && Character.isSpaceChar(s.charAt(pos))) pos--; return pos; }
private final static int eatWs(String s, int pos) { while (pos >= 0 && isSpaceChar(s.charAt(pos))) pos--; return pos; }
3,231,208
public synchronized Iterator iterator(RubyModule rubyClass) { final List objList = new ArrayList(); WeakReferenceListNode current = top; while (current != null) { IRubyObject obj = (IRubyObject)current.get(); if (obj != null && obj.isKindOf(rubyClass)) { objList.add(current); ...
public synchronized Iterator iterator(RubyModule rubyClass) { final List objList = new ArrayList(); WeakReferenceListNode current = top; while (current != null) { IRubyObject obj = (IRubyObject)current.get(); if (obj != null && obj.isKindOf(rubyClass)) { objList.add(current); ...
3,231,209
public synchronized Iterator iterator(RubyModule rubyClass) { final List objList = new ArrayList(); WeakReferenceListNode current = top; while (current != null) { IRubyObject obj = (IRubyObject)current.get(); if (obj != null && obj.isKindOf(rubyClass)) { objList.add(current); ...
public synchronized Iterator iterator(RubyModule rubyClass) { final List objList = new ArrayList(); WeakReferenceListNode current = top; while (current != null) { IRubyObject obj = (IRubyObject)current.get(); if (obj != null && obj.isKindOf(rubyClass)) { objList.add(current); ...
3,231,210
public boolean hasNext() { return iter.hasNext(); }
public boolean hasNext() { return iter.hasNext(); }
3,231,211
public Object next() { return ((WeakReferenceListNode)iter.next()).get(); }
public Object next() { return ((WeakReferenceListNode)iter.next()).get(); }
3,231,212
void initStrategies(QuantumDef qd, PixelsStats stats) { QuantumStrategy stg; PixelsGlobalStatsEntry wGlobal; Comparable gMin, gMax; for (int w = 0; w < sizeW; ++w) { stg = QuantumFactory.getStrategy(qd); wGlobal = stats.getGlobalEntry(w); gMin = wGlobal.getGlobalMin(); gMax = wGlobal.getGlobalMax(); stg....
void initStrategies(QuantumDef qd, PixelsStats stats) { QuantumStrategy stg; PixelsGlobalStatsEntry wGlobal; Comparable gMin, gMax; for (int w = 0; w < sizeW; ++w) { stg = QuantumFactory.getStrategy(qd); wGlobal = stats.getGlobalEntry(w); gMin = wGlobal.getGlobalMin(); gMax = wGlobal.getGlobalMax(); stg....
3,231,213
void initStrategies(QuantumDef qd, PixelsStats stats) { QuantumStrategy stg; PixelsGlobalStatsEntry wGlobal; Comparable gMin, gMax; for (int w = 0; w < sizeW; ++w) { stg = QuantumFactory.getStrategy(qd); wGlobal = stats.getGlobalEntry(w); gMin = wGlobal.getGlobalMin(); gMax = wGlobal.getGlobalMax(); stg....
void initStrategies(QuantumDef qd, PixelsStats stats) { QuantumStrategy stg; PixelsGlobalStatsEntry wGlobal; Comparable gMin, gMax; for (int w = 0; w < sizeW; ++w) { stg = QuantumFactory.getStrategy(qd); wGlobal = stats.getGlobalEntry(w); gMin = wGlobal.getGlobalMin(); gMax = wGlobal.getGlobalMax(); stg....
3,231,214
private void buildButtonsPanel() { buttonsPanel = new JPanel(); //remove button removeButton = new JButton("Select All"); removeButton.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)); removeButton.setToolTipText( UIUtilities.formatToolTipText("Remove all datasets.")); //cancel button resetButt...
private void buildButtonsPanel() { buttonsPanel = new JPanel(); //remove button removeButton = new JButton("Select All"); removeButton.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)); removeButton.setToolTipText( UIUtilities.formatToolTipText("Remove all datasets.")); //cancel button resetButt...
3,231,215
private void buildButtonsPanel() { buttonsPanel = new JPanel(); //remove button removeButton = new JButton("Select All"); removeButton.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)); removeButton.setToolTipText( UIUtilities.formatToolTipText("Remove all datasets.")); //cancel button resetButt...
private void buildButtonsPanel() { buttonsPanel = new JPanel(); //remove button removeButton = new JButton("Select All"); removeButton.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR)); removeButton.setToolTipText( UIUtilities.formatToolTipText("Remove all datasets.")); //cancel button resetButt...
3,231,216
public void newAnnotation(String annotation) { ImageAnnotation ia = annotator.createImageAnnotation(annotation); annotationList.add(ia); }
public void newAnnotation(String annotation) { ImageAnnotation ia = annotator.createImageAnnotation(annotation); annotationList.add(ia); }
3,231,217
public boolean save() { annotator.updateImageAnnotations(annotationList); ImageAnnotated annotated = new ImageAnnotated(requestEvent); // TODO support multiple if(annotationList.size() > 0) { annotated.setAnnotation((ImageAnnotation)annotationList.get(0)); } ...
public boolean save() { annotator.commitNewAnnotations(newAnnotationList); annotator.updateAnnotations(annotationList); for(Iterator iter = newAnnotationList.iterator(); iter.hasNext();) { annotationList.add(0,iter.next()); } newAnnotationList.clear(); ImageAnnotated annotated = new ImageAnnotate...
3,231,218
public Object lookup(String name) { Entry entry = (Entry) entriesMap.get(name); return entry.getValue(); }
public Object lookup(String name) { Entry entry = (Entry) entriesMap.get(name); Object ret = null; if (entry != null) ret = entry.getValue(); return ret; }
3,231,219
protected void defineParameters() { defs = new QueryParameterDef[] { new QueryParameterDef(QP.IDS, Collection.class, false), new QueryParameterDef(OWNER_ID, Long.class, true), new QueryParameterDef(QP.OPTIONS, Map.class, true) }; }
protected void defineParameters() { defs = new QueryParameterDef[] { new QueryParameterDef(QP.IDS, Collection.class, false), new QueryParameterDef(QP.OPTIONS, Map.class, true) }; }
3,231,220
protected Object runQuery(Session session) throws HibernateException, SQLException { Criteria c = session.createCriteria(Image.class); fetchParents(c,Project.class,2); return c.list(); }
protected Object runQuery(Session session) throws HibernateException, SQLException { Criteria c = session.createCriteria(Image.class); c.setResultTransformer(Criteria.DISTINCT_ROOT_ENTITY); c.add(Restrictions.in("id",(Collection) value(QP.IDS))); Hierarchy.fetchParents(c,(Class) value(QP.CLASS),Int...
3,231,221
public int registerLocal(String name) { if (localNames == null) { localNames = new ArrayList(); localNames.add("_"); localNames.add("~"); if (name.equals("_")) { return 0; } else if (name.equals("~")) { return 1; ...
public int registerLocal(String name) { if (localNames == null) { localNames = new ArrayList(); localNames.add("_"); localNames.add("~"); if (name.equals("_")) { return 0; } else if (name.equals("~")) { return 1; ...
3,231,222
public SearchArticleBean() { _searchPublishedFrom = new Date(); _searchText = "searchtext"; }
public SearchArticleBean() { _searchPublishedFrom = new Date(); _searchText = "searchtext"; }
3,231,223
public int getNumberOfColumns() { return 4; }
public int getNumberOfColumns() { return 4; }
3,231,224
public SearchRequest getSearchRequest(String scope, Locale locale) throws SearchException { SearchRequest s = new SearchRequest(); s.addSelection(IWSlideConstants.PROPERTY_CREATION_DATE); s.addSelection(IWSlideConstants.PROPERTY_CATEGORY); s.addScope(new SearchScope(scope)); SearchExpression whereExpression = nul...
public SearchRequest getSearchRequest(String scope, Locale locale) throws SearchException { SearchRequest s = new SearchRequest(); s.addSelection(IWSlideConstants.PROPERTY_CREATION_DATE); s.addSelection(IWSlideConstants.PROPERTY_CATEGORY); s.addScope(new SearchScope(scope)); SearchExpression whereExpression = nul...
3,231,225
public SearchRequest getSearchRequest(String scope, Locale locale) throws SearchException { SearchRequest s = new SearchRequest(); s.addSelection(IWSlideConstants.PROPERTY_CREATION_DATE); s.addSelection(IWSlideConstants.PROPERTY_CATEGORY); s.addScope(new SearchScope(scope)); SearchExpression whereExpression = nul...
public SearchRequest getSearchRequest(String scope, Locale locale) throws SearchException { SearchRequest s = new SearchRequest(); s.addSelection(IWSlideConstants.PROPERTY_CREATION_DATE); s.addSelection(IWSlideConstants.PROPERTY_CATEGORY); s.addScope(new SearchScope(scope)); SearchExpression whereExpression = nul...
3,231,226
public SearchRequest getSearchRequest(String scope, Locale locale) throws SearchException { SearchRequest s = new SearchRequest(); s.addSelection(IWSlideConstants.PROPERTY_CREATION_DATE); s.addSelection(IWSlideConstants.PROPERTY_CATEGORY); s.addScope(new SearchScope(scope)); SearchExpression whereExpression = nul...
public SearchRequest getSearchRequest(String scope, Locale locale) throws SearchException { SearchRequest s = new SearchRequest(); s.addSelection(IWSlideConstants.PROPERTY_CREATION_DATE); s.addSelection(IWSlideConstants.PROPERTY_CATEGORY); s.addScope(new SearchScope(scope)); SearchExpression whereExpression = nul...
3,231,227
public SearchRequest getSearchRequest(String scope, Locale locale) throws SearchException { SearchRequest s = new SearchRequest(); s.addSelection(IWSlideConstants.PROPERTY_CREATION_DATE); s.addSelection(IWSlideConstants.PROPERTY_CATEGORY); s.addScope(new SearchScope(scope)); SearchExpression whereExpression = nul...
public SearchRequest getSearchRequest(String scope, Locale locale) throws SearchException { SearchRequest s = new SearchRequest(); s.addSelection(IWSlideConstants.PROPERTY_CREATION_DATE); s.addSelection(IWSlideConstants.PROPERTY_CATEGORY); s.addScope(new SearchScope(scope)); SearchExpression whereExpression = nul...
3,231,228
public ProjectSelectionCanvas(MainWindow panel) { super(); this.panel = panel; layer = getLayer(); setMinimumSize(new Dimension(PConstants.BROWSER_SIDE,HEIGHT)); setPreferredSize(new Dimension(PConstants.BROWSER_SIDE,HEIGHT)); setMaximumSize(new Dimension(MAXWIDTH,MAXHEIGHT)); removeInputEventListener(getPanEve...
public ProjectSelectionCanvas(MainWindow panel) { super(); this.panel = panel; layer = getLayer(); setMinimumSize(new Dimension(PConstants.BROWSER_SIDE,HEIGHT)); setPreferredSize(new Dimension(PConstants.BROWSER_SIDE,HEIGHT)); setMaximumSize(new Dimension(MAXWIDTH,MAXHEIGHT)); removeInputEventListener(getPanEve...
3,231,230
public void completeInitialization() { System.err.println("completing initialization of project selection canvas"); addInputEventListener(new GenericEventHandler()); }
public void completeInitialization() { System.err.println("completing initialization of project selection canvas"); addInputEventListener(new GenericEventHandler()); }
3,231,231
public void doLayout() { if (reentrant == true) return; reentrant = true; double x=0; double y =VSEP; ProjectLabel pl; int width = getWidth(); System.err.println("displaying project list. width of window is "+width); System.err.println("height is "+getHeight()); Rectangle bounds = getBounds(); Vector r...
public void doLayout() { if (reentrant == true) return; reentrant = true; double x=0; double y =VSEP; ProjectLabel pl; int width = getWidth(); System.err.println("displaying project list. width of window is "+width); System.err.println("height is "+getHeight()); Rectangle bounds = getBounds(); Vector r...
3,231,232
public void doLayout() { if (reentrant == true) return; reentrant = true; double x=0; double y =VSEP; ProjectLabel pl; int width = getWidth(); System.err.println("displaying project list. width of window is "+width); System.err.println("height is "+getHeight()); Rectangle bounds = getBounds(); Vector r...
public void doLayout() { if (reentrant == true) return; reentrant = true; double x=0; double y =VSEP; ProjectLabel pl; int width = getWidth(); System.err.println("displaying project list. width of window is "+width); System.err.println("height is "+getHeight()); Rectangle bounds = getBounds(); Vector r...
3,231,233
public void doLayout() { if (reentrant == true) return; reentrant = true; double x=0; double y =VSEP; ProjectLabel pl; int width = getWidth(); System.err.println("displaying project list. width of window is "+width); System.err.println("height is "+getHeight()); Rectangle bounds = getBounds(); Vector r...
publicvoiddoLayout(){ if(reentrant==true) return; reentrant=true; doublex=0; doubley=VSEP; ProjectLabelpl; intwidth=getWidth(); System.err.println("displayingprojectlist.widthofwindowis"+width); System.err.println("heightis"+getHeight()); Rectanglebounds=getBounds(); Vectorrows=newVector(); Vectorrow=...
3,231,234
public void doLayout() { if (reentrant == true) return; reentrant = true; double x=0; double y =VSEP; ProjectLabel pl; int width = getWidth(); System.err.println("displaying project list. width of window is "+width); System.err.println("height is "+getHeight()); Rectangle bounds = getBounds(); Vector r...
public void doLayout() { if (reentrant == true) return; reentrant = true; double x=0; double y =VSEP; ProjectLabel pl; int width = getWidth(); System.err.println("displaying project list. width of window is "+width); System.err.println("height is "+getHeight()); Rectangle bounds = getBounds(); Vector r...
3,231,235
public void layoutContents() { System.err.println("laying out contents of project selection canvas"); setMinimumSize(new Dimension(PConstants.BROWSER_SIDE,HEIGHT)); setPreferredSize(new Dimension(PConstants.BROWSER_SIDE,HEIGHT)); setMaximumSize(new Dimension(MAXWIDTH,MAXHEIGHT)); doLayout(); }
public void layoutContents() { System.err.println("laying out contents of project selection canvas"); setMinimumSize(new Dimension(PConstants.BROWSER_SIDE,HEIGHT)); setPreferredSize(new Dimension(PConstants.BROWSER_SIDE,HEIGHT)); setMaximumSize(new Dimension(MAXWIDTH,MAXHEIGHT)); doLayout(); }
3,231,236
public void setRolloverProject(BrowserProjectSummary proj) { System.err.println("\n\n\nsetting rollover project.."); if (proj != null) System.err.println("to .."+proj.getName()); if (selectedProject != null) System.err.println("selected is ..."+selectedProject.getName()); setLabelPainting(null,proj); panel...
public void setRolloverProject(BrowserProjectSummary proj) { System.err.println("\n\n\nsetting rollover project.."); if (proj != null) System.err.println("to .."+proj.getName()); if (selectedProject != null) System.err.println("selected is ..."+selectedProject.getName()); setLabelPainting(null,proj); panel...
3,231,237
public void setSelectedDataset(BrowserDatasetSummary dataset) { System.err.println("project canvas got selection of dataset .."+ dataset); if (dataset == selectedDataset) //no change return; selectedDataset = dataset; setLabelPainting(null,null); }
public void setSelectedDataset(BrowserDatasetSummary dataset) { System.err.println("project canvas got selection of dataset .."+ dataset); if (dataset == selectedDataset) //no change return; selectedDataset = dataset; setLabelPainting(null,null); }
3,231,238
public void setSelectedProject(BrowserProjectSummary selected) { if (selected == selectedProject) // no change return; if (selected != null) System.err.println("\nset selected project to ..."+selected.getName()); else System.err.println("\nset selected project to null"); selectedProject = selected; if (se...
public void setSelectedProject(BrowserProjectSummary selected) { if (selected == selectedProject) // no change return; if (selected != null) System.err.println("\nset selected project to ..."+selected.getName()); else System.err.println("\nset selected project to null"); selectedProject = selected; if (se...
3,231,239
public void updateDataModel(Integer start, Integer rows) { if (_dataModel == null) { _dataModel = new WFDataModel(); } ArticleItemBean[] articleItemBean; try { articleItemBean = (ArticleItemBean[]) ArticleListBean.loadAllArticlesInFolder(ContentUtil.ARTICLE_PATH).toArray(new ArticleItemBean[0]); int availabl...
public void updateDataModel(Integer start, Integer rows) { if (_dataModel == null) { _dataModel = new WFDataModel(); } ArticleItemBean[] articleItemBean; try { articleItemBean = (ArticleItemBean[]) ArticleListBean.loadAllArticlesInFolder(ContentUtil.ARTICLE_PATH).toArray(new ArticleItemBean[0]); int availabl...
3,231,241
public ArticleListBean(String id, String headline, String published, String author, String status) { _id = id; _headline = headline; _published = published; _author = author; _status = status; _testStyle = ""; }
public ArticleListBean(String id, String headline, String published, String author, String status) { _id = id; _headline = headline; _published = published; _author = author; _status = status; _testStyle = ""; }
3,231,242
public static List loadAllArticlesInFolder(String folder) throws XmlException, IOException{ List list = new ArrayList(); // File[] articleFile = folder.listFiles(); IWUserContext iwuc = IWContext.getInstance(); IWApplicationContext iwac = iwuc.getApplicationContext(); IWSlideSession session = (IWSlideSession...
public static List loadAllArticlesInFolder(String folder) throws XmlException, IOException{ List list = new ArrayList(); // File[] articleFile = folder.listFiles(); IWUserContext iwuc = IWContext.getInstance(); IWApplicationContext iwac = iwuc.getApplicationContext(); IWSlideSession session = (IWSlideSession...
3,231,243
public static List loadAllArticlesInFolder(String folder) throws XmlException, IOException{ List list = new ArrayList(); // File[] articleFile = folder.listFiles(); IWUserContext iwuc = IWContext.getInstance(); IWApplicationContext iwac = iwuc.getApplicationContext(); IWSlideSession session = (IWSlideSession...
public static List loadAllArticlesInFolder(String folder) throws XmlException, IOException{ List list = new ArrayList(); // File[] articleFile = folder.listFiles(); IWUserContext iwuc = IWContext.getInstance(); IWApplicationContext iwac = iwuc.getApplicationContext(); IWSlideSession session = (IWSlideSession...
3,231,244
public static List loadAllArticlesInFolder(String folder) throws XmlException, IOException{ List list = new ArrayList(); // File[] articleFile = folder.listFiles(); IWUserContext iwuc = IWContext.getInstance(); IWApplicationContext iwac = iwuc.getApplicationContext(); IWSlideSession session = (IWSlideSession...
public static List loadAllArticlesInFolder(String folder) throws XmlException, IOException{ List list = new ArrayList(); // File[] articleFile = folder.listFiles(); IWUserContext iwuc = IWContext.getInstance(); IWApplicationContext iwac = iwuc.getApplicationContext(); IWSlideSession session = (IWSlideSession...
3,231,245
public void load(String path) throws XmlException, IOException{ IWUserContext iwuc = IWContext.getInstance(); IWApplicationContext iwac = iwuc.getApplicationContext(); IWSlideSession session = (IWSlideSession)IBOLookup.getSessionInstance(iwuc,IWSlideSession.class); IWSlideService service = (IWSlideService)IBOLoo...
public void load(String path) throws XmlException, IOException{ IWUserContext iwuc = IWContext.getInstance(); IWApplicationContext iwac = iwuc.getApplicationContext(); IWSlideSession session = (IWSlideSession)IBOLookup.getSessionInstance(iwuc,IWSlideSession.class); IWSlideService service = (IWSlideService)IBOLoo...
3,231,246
public void load(String path) throws XmlException, IOException{ IWUserContext iwuc = IWContext.getInstance(); IWApplicationContext iwac = iwuc.getApplicationContext(); IWSlideSession session = (IWSlideSession)IBOLookup.getSessionInstance(iwuc,IWSlideSession.class); IWSlideService service = (IWSlideService)IBOLoo...
public void load(String path) throws XmlException, IOException{ IWUserContext iwuc = IWContext.getInstance(); IWApplicationContext iwac = iwuc.getApplicationContext(); IWSlideSession session = (IWSlideSession)IBOLookup.getSessionInstance(iwuc,IWSlideSession.class); IWSlideService service = (IWSlideService)IBOLoo...
3,231,247
private String generateTableRowForClass(Clazz clazz) { StringBuffer ret = new StringBuffer(); double lineCoverage = clazz.getLineCoverageRate(); double branchCoverage = clazz.getBranchCoverageRate(); double ccn = Util.getCCN( new File(sourceDir, clazz.getLongFileName()), false); ret.append(" <tr>"); ret.appe...
private String generateTableRowForClass(Clazz clazz) { StringBuffer ret = new StringBuffer(); double lineCoverage = clazz.getLineCoverageRate(); double branchCoverage = clazz.getBranchCoverageRate(); double ccn = Util.getCCN( new File(sourceDir, clazz.getLongFileName()), false); ret.append(" <tr>"); ret.appe...
3,231,250
private UIComponent getSearchPanel() { String ref = LIST_ARTICLES_BEAN_ID + "."; String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); WFErrorMessages em = new WFErrorMessages(); em.addErrorMessage(SEARCH_PUBLISHED_FROM_ID); em.addErrorMessage(SEARCH_PUBLISHED_TO_ID); mai...
private UIComponent getSearchPanel() { String ref = LIST_ARTICLES_BEAN_ID + "."; String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); WFErrorMessages em = new WFErrorMessages(); em.addErrorMessage(SEARCH_PUBLISHED_FROM_ID); em.addErrorMessage(SEARCH_PUBLISHED_TO_ID); mai...
3,231,251
public void activate() {}
public void activate() {}
3,231,255
public void setContext(Registry ctx) { registry = ctx; EventBus bus = registry.getEventBus(); bus.register(this, ShowProperties.class); //TODO need to review that code. TreeViewer viewer = TreeViewerFactory.getViewer(); if (viewer != null) viewer.activate(); }
public void setContext(Registry ctx) { registry = ctx; EventBus bus = registry.getEventBus(); bus.register(this, ShowProperties.class); //TODO need to review that code. TreeViewer viewer = TreeViewerFactory.getViewer(); if (viewer != null) viewer.activate(); }
3,231,256
public void postExecuteUnder() { popFrame(); popRubyClass(); unsetCRef(); }
public void postExecuteUnder() { popFrame(); popRubyClass(); popCRef(); }
3,231,259
public void preExecuteUnder(RubyModule executeUnderClass) { Frame frame = getCurrentFrame(); pushRubyClass(executeUnderClass); setCRef(executeUnderClass.getCRef()); pushFrame(null, frame.getArgs(), frame.getLastFunc(), frame.getLastClass()); getCurrentFrame().setScope(getP...
public void preExecuteUnder(RubyModule executeUnderClass) { Frame frame = getCurrentFrame(); pushRubyClass(executeUnderClass); pushCRef(executeUnderClass); pushFrame(null, frame.getArgs(), frame.getLastFunc(), frame.getLastClass()); getCurrentFrame().setScope(getPreviousFr...
3,231,260
public RubyFixnum hash() { return getRuntime().newFixnum(hashCode()); }
public RubyFixnum hash() { return getRuntime().newFixnum(symbol.hashCode()); }
3,231,261
public void store() throws IDOStoreException{ boolean storeOk = true; clearErrorKeys(); if (getHeadline().trim().equals("")) { addErrorKey(KEY_ERROR_HEADLINE_EMPTY); storeOk = false; } if (getBody().trim().equals("")) { addErrorKey(KEY_ERROR_BODY_EMPTY); storeOk = false; } // if (getRequestedStatus() !...
public void store() throws IDOStoreException{ boolean storeOk = true; clearErrorKeys(); if (getHeadline().trim().equals("")) { addErrorKey(KEY_ERROR_HEADLINE_EMPTY); storeOk = false; } if (getBody().trim().equals("")) { addErrorKey(KEY_ERROR_BODY_EMPTY); storeOk = false; } // if (getRequestedStatus() !...
3,231,262
public void store() throws IDOStoreException{ boolean storeOk = true; clearErrorKeys(); if (getHeadline().trim().equals("")) { addErrorKey(KEY_ERROR_HEADLINE_EMPTY); storeOk = false; } if (getBody().trim().equals("")) { addErrorKey(KEY_ERROR_BODY_EMPTY); storeOk = false; } // if (getRequestedStatus() !...
public void store() throws IDOStoreException{ boolean storeOk = true; clearErrorKeys(); if (getHeadline().trim().equals("")) { addErrorKey(KEY_ERROR_HEADLINE_EMPTY); storeOk = false; } if (getBody().trim().equals("")) { addErrorKey(KEY_ERROR_BODY_EMPTY); storeOk = false; } // if (getRequestedStatus() !...
3,231,263
public void store() throws IDOStoreException{ boolean storeOk = true; clearErrorKeys(); if (getHeadline().trim().equals("")) { addErrorKey(KEY_ERROR_HEADLINE_EMPTY); storeOk = false; } if (getBody().trim().equals("")) { addErrorKey(KEY_ERROR_BODY_EMPTY); storeOk = false; } // if (getRequestedStatus() !...
public void store() throws IDOStoreException{ boolean storeOk = true; clearErrorKeys(); if (getHeadline().trim().equals("")) { addErrorKey(KEY_ERROR_HEADLINE_EMPTY); storeOk = false; } if (getBody().trim().equals("")) { addErrorKey(KEY_ERROR_BODY_EMPTY); storeOk = false; } // if (getRequestedStatus() !...
3,231,264
public void store() throws IDOStoreException{ boolean storeOk = true; clearErrorKeys(); if (getHeadline().trim().equals("")) { addErrorKey(KEY_ERROR_HEADLINE_EMPTY); storeOk = false; } if (getBody().trim().equals("")) { addErrorKey(KEY_ERROR_BODY_EMPTY); storeOk = false; } // if (getRequestedStatus() !...
public void store() throws IDOStoreException{ boolean storeOk = true; clearErrorKeys(); if (getHeadline().trim().equals("")) { addErrorKey(KEY_ERROR_HEADLINE_EMPTY); storeOk = false; } if (getBody().trim().equals("")) { addErrorKey(KEY_ERROR_BODY_EMPTY); storeOk = false; } // if (getRequestedStatus() !...
3,231,265
public void store() throws IDOStoreException{ boolean storeOk = true; clearErrorKeys(); if (getHeadline().trim().equals("")) { addErrorKey(KEY_ERROR_HEADLINE_EMPTY); storeOk = false; } if (getBody().trim().equals("")) { addErrorKey(KEY_ERROR_BODY_EMPTY); storeOk = false; } // if (getRequestedStatus() !...
public void store() throws IDOStoreException{ boolean storeOk = true; clearErrorKeys(); if (getHeadline().trim().equals("")) { addErrorKey(KEY_ERROR_HEADLINE_EMPTY); storeOk = false; } if (getBody().trim().equals("")) { addErrorKey(KEY_ERROR_BODY_EMPTY); storeOk = false; } // if (getRequestedStatus() !...
3,231,266
public void onEndPlane(int z, int w, int t, int pointsCount) { Integer index = linearize(z, w, t); ROIPlaneStats ps = (ROIPlaneStats) arrayMap.get(index); //planeStats can't be null, see onStartPlane(). if (0 < pointsCount) { ps.mean = ps.sum/pointsCount; if (0 <...
public void onEndPlane(int z, int w, int t, int pointsCount) { Integer index = linearize(z, w, t); ROIPlaneStats ps = (ROIPlaneStats) arrayMap.get(index); //planeStats can't be null, see onStartPlane(). if (0 < pointsCount) { ps.mean = ps.sum/pointsCount; if (0 <...
3,231,267
public void update(double pixelValue, int z, int w, int t) { Integer index = linearize(z, w, t); ROIPlaneStats planeStats = (ROIPlaneStats) arrayMap.get(index); //planeStats can't be null, see onStartPlane(). if (pixelValue < planeStats.min) planeStats.min = pixelValue; if (pla...
public void update(double pixelValue, int z, int w, int t) { Integer index = linearize(z, w, t); ROIPlaneStats planeStats = (ROIPlaneStats) arrayMap.get(index); //planeStats can't be null, see onStartPlane(). if (pixelValue < planeStats.min) planeStats.min = pixelValue; if (pla...
3,231,268
private String processLine(final String line) { if (line == null) throw new IllegalArgumentException("\"line\" can not be null."); if ((line.indexOf('\n') != -1) || (line.indexOf('\r') != -1)) throw new IllegalArgumentException( "\"line\" can not contain newline or carriage return characters."); StringBuffe...
private String processLine(final String line) { if (line == null) throw new IllegalArgumentException("\"line\" can not be null."); if ((line.indexOf('\n') != -1) || (line.indexOf('\r') != -1)) throw new IllegalArgumentException( "\"line\" can not contain newline or carriage return characters."); StringBuffe...
3,231,269
private String processLine(final String line) { if (line == null) throw new IllegalArgumentException("\"line\" can not be null."); if ((line.indexOf('\n') != -1) || (line.indexOf('\r') != -1)) throw new IllegalArgumentException( "\"line\" can not contain newline or carriage return characters."); StringBuffe...
private String processLine(final String line) { if (line == null) throw new IllegalArgumentException("\"line\" can not be null."); if ((line.indexOf('\n') != -1) || (line.indexOf('\r') != -1)) throw new IllegalArgumentException( "\"line\" can not contain newline or carriage return characters."); StringBuffe...
3,231,270
private String processLine(final String line) { if (line == null) throw new IllegalArgumentException("\"line\" can not be null."); if ((line.indexOf('\n') != -1) || (line.indexOf('\r') != -1)) throw new IllegalArgumentException( "\"line\" can not contain newline or carriage return characters."); StringBuffe...
private String processLine(final String line) { if (line == null) throw new IllegalArgumentException("\"line\" can not be null."); if ((line.indexOf('\n') != -1) || (line.indexOf('\r') != -1)) throw new IllegalArgumentException( "\"line\" can not contain newline or carriage return characters."); StringBuffe...
3,231,271
private double computeSizes() { double factor = 0; if (sizeX == -1 && sizeY == -1) { sizeX = THUMB_MAX_WIDTH; sizeY = THUMB_MAX_HEIGHT; double x = sizeX/(double) getMaxX(); double y = sizeY/(double) getMaxY(); if (x > y) factor = x; ...
private void computeSizes() { double factor = 0; if (sizeX == -1 && sizeY == -1) { sizeX = THUMB_MAX_WIDTH; sizeY = THUMB_MAX_HEIGHT; double x = sizeX/(double) getMaxX(); double y = sizeY/(double) getMaxY(); if (x > y) factor = x; e...
3,231,272
private double computeSizes() { double factor = 0; if (sizeX == -1 && sizeY == -1) { sizeX = THUMB_MAX_WIDTH; sizeY = THUMB_MAX_HEIGHT; double x = sizeX/(double) getMaxX(); double y = sizeY/(double) getMaxY(); if (x > y) factor = x; ...
private double computeSizes() { if (sizeX == -1 && sizeY == -1) { sizeX = THUMB_MAX_WIDTH; sizeY = THUMB_MAX_HEIGHT; double x = sizeX/(double) getMaxX(); double y = sizeY/(double) getMaxY(); if (x > y) factor = x; else factor = y; ...
3,231,273
private double computeSizes() { double factor = 0; if (sizeX == -1 && sizeY == -1) { sizeX = THUMB_MAX_WIDTH; sizeY = THUMB_MAX_HEIGHT; double x = sizeX/(double) getMaxX(); double y = sizeY/(double) getMaxY(); if (x > y) factor = x; ...
private double computeSizes() { double factor = 0; if (sizeX == -1 && sizeY == -1) { sizeX = THUMB_MAX_WIDTH; sizeY = THUMB_MAX_HEIGHT; double x = sizeX/(double) getMaxX(); double y = sizeY/(double) getMaxY(); if (x > y) factor = x; ...
3,231,274
void fireImageRetrieval() { PlaneDef pDef = new PlaneDef(PlaneDef.XY, getDefaultT()); pDef.setZ(getDefaultZ()); state = ImViewer.LOADING_IMAGE; try { component.setImage(rndControl.render(pDef)); } catch (Exception e) { // TODO: handle exception } ...
void fireImageRetrieval() { PlaneDef pDef = new PlaneDef(PlaneDef.XY, getDefaultT()); pDef.setZ(getDefaultZ()); state = ImViewer.LOADING_IMAGE; try { component.setImage(os.renderImage(pixelsID, pDef)); } catch (Exception e) { // TODO: handle exception ...
3,231,275
void fireImageRetrieval() { PlaneDef pDef = new PlaneDef(PlaneDef.XY, getDefaultT()); pDef.setZ(getDefaultZ()); state = ImViewer.LOADING_IMAGE; try { component.setImage(rndControl.render(pDef)); } catch (Exception e) { // TODO: handle exception } ...
e.printStackTrace(); e.printStackTrace(); e.printStackTrace(); e.printStackTrace(); voide.printStackTrace(); fireImageRetrieval()e.printStackTrace(); e.printStackTrace(); e.printStackTrace(); e.printStackTrace(); {e.printStackTrace(); e.printStackTrace(); e.printStackTrace(); e.printStackTrace(); e.printStackTrace(); e...
3,231,276
void setImage(BufferedImage image) { browser.setRenderedImage(image); //update image icon double factor = computeSizes(); imageIcon = magnifyImage(factor, image); state = ImViewer.READY; }
void setImage(BufferedImage image) { browser.setRenderedImage(image); //update image icon computeSizes(); imageIcon = magnifyImage(factor, image); state = ImViewer.READY; }
3,231,277
public MetaClass getSingletonClass() { RubyClass type = getMetaClass(); if (!type.isSingleton()) { type = makeMetaClass(type, getRuntime().getCurrentContext().getRubyClass()); } assert type instanceof MetaClass; if (!isNil()) { type.setTaint(isTaint()); type.setFrozen(i...
public MetaClass getSingletonClass() { RubyClass type = getMetaClass(); if (!type.isSingleton()) { type = makeMetaClass(type, type.getCRef()); } assert type instanceof MetaClass; if (!isNil()) { type.setTaint(isTaint()); type.setFrozen(isFrozen()); } return (Met...
3,231,280
public MetaClass makeMetaClass(RubyClass type, RubyModule parentModule) { MetaClass newMetaClass = type.newSingletonClass(parentModule); if (!isNil()) { setMetaClass(newMetaClass); } newMetaClass.attachToObject(this); return newMetaClass; }
public MetaClass makeMetaClass(RubyClass type, RubyModule parentModule) { MetaClass newMetaClass = type.newSingletonClass(parentModule); if (!isNil()) { setMetaClass(newMetaClass); } newMetaClass.attachToObject(this); return newMetaClass; }
3,231,281
public void setHeadline(Object o) { setValue(FIELDNAME_HEADLINE, o.toString()); }
public void setHeadline(String s) { setValue(FIELDNAME_HEADLINE, s); }
3,231,282
private static void linkImageTo(ImageData is, ImageSet parent) { ImageNode node = new ImageNode(is.getName(), is, new ThumbnailProvider(is)); formatToolTipFor(node, getFirstAnnotation(is.getAnnotations())); parent.addChildDisplay(node); }
private static void linkImageTo(ImageData is, ImageSet parent) { ImageNode node = new ImageNode(is.getName(), is, new ThumbnailProvider(is)); formatToolTipFor(node, getFirstAnnotation(is.getAnnotations())); parent.addChildDisplay(node); }
3,231,283
public void actionPerformed(ActionEvent e) { Object src = e.getSource(); if (target != null) { if (src == view.properties) agentCtrl.showProperties(target); else if (src == view.view && target instanceof ImageSummary) agentCtrl.viewImage(((ImageSummary) target)); else if (src == view.browse && ...
public void actionPerformed(ActionEvent e) { Object src = e.getSource(); if (target != null) { if (src == view.properties) agentCtrl.showProperties(target); else if (src == view.view && target instanceof ImageSummary) agentCtrl.viewImage(((ImageSummary) target)); else if (src == view.browse && ...
3,231,284
public final Object build(BuildContext bc) throws BuildException { Variable var = VariableBuilder.newVariable(_names,bc,_filtered); return var.evaluate(bc); }
public final Object build(BuildContext bc) throws BuildException { Variable var = VariableBuilder.newVariable(_names,bc,_filtered); return var.evaluate(bc); }
3,231,285
private void createUI() { createToolbar(); createActionbar(); createPanels(); JPanel container = new JPanel(); container.setLayout(new BoxLayout(container, BoxLayout.X_AXIS)); container.add(toolbar , BorderLayout.WEST); container.add(Box.createHori...
private void createUI() { createToolbar(); createActionbar(); createPanels(); JPanel container = new JPanel(); container.setLayout(new BoxLayout(container, BoxLayout.X_AXIS)); container.add(toolbar , BorderLayout.WEST); container.add(Box.createHori...
3,231,286
private void createUI() { createToolbar(); createActionbar(); createPanels(); JPanel container = new JPanel(); container.setLayout(new BoxLayout(container, BoxLayout.X_AXIS)); container.add(toolbar , BorderLayout.WEST); container.add(Box.createHori...
private void createUI() { createToolbar(); createActionbar(); createPanels(); JPanel container = new JPanel(); container.setLayout(new BoxLayout(container, BoxLayout.X_AXIS)); container.add(toolbar , BorderLayout.WEST); container.add(Box.createHori...
3,231,287
private void createUI() { createToolbar(); createActionbar(); createPanels(); JPanel container = new JPanel(); container.setLayout(new BoxLayout(container, BoxLayout.X_AXIS)); container.add(toolbar , BorderLayout.WEST); container.add(Box.createHori...
private void createUI() { createToolbar(); createActionbar(); createPanels(); JPanel container = new JPanel(); container.setLayout(new BoxLayout(container, BoxLayout.X_AXIS)); container.add(toolbar , BorderLayout.WEST); container.add(Box.createHori...
3,231,288
private void createUI() { createToolbar(); createActionbar(); createPanels(); JPanel container = new JPanel(); container.setLayout(new BoxLayout(container, BoxLayout.X_AXIS)); container.add(toolbar , BorderLayout.WEST); container.add(Box.createHori...
private void createUI() { createToolbar(); createActionbar(); createPanels(); JPanel container = new JPanel(); container.setLayout(new BoxLayout(container, BoxLayout.X_AXIS)); container.add(toolbar , BorderLayout.WEST); container.add(Box.createHori...
3,231,289
public ZoomAction(ImViewer model, int zoomingIndex) { super(model); controlsIndex(zoomingIndex); putValue(Action.SHORT_DESCRIPTION, UIUtilities.formatToolTipText(DESCRIPTION)); this.zoomingIndex = zoomingIndex; putValue(Action.NAME, UIUtilities.f...
public ZoomAction(ImViewer model, int zoomingIndex) { super(model); controlsIndex(zoomingIndex); putValue(Action.SHORT_DESCRIPTION, UIUtilities.formatToolTipText(DESCRIPTION)); this.zoomingIndex = zoomingIndex; putValue(Action.NAME, UIUtilities.f...
3,231,290
void compare(Stats stats, Image i, int z, int c, int t) throws IOException{ stats.g_start(); byte[] g_arr = Gateway.getPlane(i.id, z, c, t); stats.g_stop(); assertFalse(g_arr.length == 0); stats.b_start(); byte[] b_arr = io.getPlane(i.id, z, c, t); stats.b_stop(); ...
void compare(Stats stats, Image i, int z, int c, int t) throws Exception{ stats.g_start(); byte[] g_arr = Gateway.getPlane(i.id, z, c, t); stats.g_stop(); assertFalse(g_arr.length == 0); stats.b_start(); byte[] b_arr = io.getPlane(i.id, z, c, t); stats.b_stop(); ...
3,231,291
void compare(Stats stats, Image i, int z, int c, int t) throws IOException{ stats.g_start(); byte[] g_arr = Gateway.getPlane(i.id, z, c, t); stats.g_stop(); assertFalse(g_arr.length == 0); stats.b_start(); byte[] b_arr = io.getPlane(i.id, z, c, t); stats.b_stop(); ...
void compare(Stats stats, Image i, int z, int c, int t) throws IOException{ stats.g_start(); byte[] g_arr = Gateway.getPlane(i.id, z, c, t); stats.g_stop(); assertFalse(g_arr.length == 0); stats.b_start(); byte[] b_arr = io.getPlane(i.id, z, c, t); stats.b_stop(); ...
3,231,292
void compare(Stats stats, Image i, int z, int c, int t) throws IOException{ stats.g_start(); byte[] g_arr = Gateway.getPlane(i.id, z, c, t); stats.g_stop(); assertFalse(g_arr.length == 0); stats.b_start(); byte[] b_arr = io.getPlane(i.id, z, c, t); stats.b_stop(); ...
void compare(Stats stats, Image i, int z, int c, int t) throws IOException{ stats.g_start(); byte[] g_arr = Gateway.getPlane(i.id, z, c, t); stats.g_stop(); assertFalse(g_arr.length == 0); stats.b_start(); byte[] b_arr = io.getPlane(i.id, z, c, t); stats.b_stop(); ...
3,231,293
public void getAndCopy() throws IOException { for (Iterator it = images.values().iterator(); it.hasNext();) { // TestUtils.list(db,log); // FIXME MEMORY! Image i = (Image) it.next(); i.eachPlane(new PlaneCallback() { void each(Image i, int ...
public void getAndCopy() throws Exception { for (Iterator it = images.values().iterator(); it.hasNext();) { // TestUtils.list(db,log); // FIXME MEMORY! Image i = (Image) it.next(); i.eachPlane(new PlaneCallback() { void each(Image i, int z,...
3,231,294
public void getAndCopy() throws IOException { for (Iterator it = images.values().iterator(); it.hasNext();) { // TestUtils.list(db,log); // FIXME MEMORY! Image i = (Image) it.next(); i.eachPlane(new PlaneCallback() { void each(Image i, int ...
public void getAndCopy() throws IOException { for (Iterator it = images.values().iterator(); it.hasNext();) { // TestUtils.list(db,log); // FIXME MEMORY! Image i = (Image) it.next(); i.eachPlane(new PlaneCallback() { void each(Image i, int ...
3,231,295
void each(Image i, int z, int c, int t, int counter) throws IOException { if (!io.planeExists(i.id, z, c, t)) { byte[] plane = i.getPlane(z, c, t); io.putPlane(plane, i.id, z, c, t); } ...
void each(Image i, int z, int c, int t, int counter) throws Exception { if (!io.planeExists(i.id, z, c, t)) { byte[] plane = i.getPlane(z, c, t); io.putPlane(plane, i.id, z, c, t); } ...
3,231,297
public void testSpeendCompareRandom() throws IOException { int n = 200; // FIXME 100000 -> memory error Random r = new Random(); Stats stats = new Stats(); List imgs = new ArrayList(images.values()); for (int i = 0; i < n; i++) { Image img = (Image) imgs.g...
public void testSpeendCompareRandom() throws Exception { int n = 200; // FIXME 100000 -> memory error Random r = new Random(); Stats stats = new Stats(); List imgs = new ArrayList(images.values()); for (int i = 0; i < n; i++) { Image img = (Image) imgs.get...
3,231,299
public void xestSpeedCompareNThrough() throws IOException { final int n = 5; for (Iterator it = images.values().iterator(); it.hasNext();) { final Stats stats = new Stats(); Image i = (Image) it.next(); for (int j = 0; j < n; j++) { ...
public void xestSpeedCompareNThrough() throws Exception { final int n = 5; for (Iterator it = images.values().iterator(); it.hasNext();) { final Stats stats = new Stats(); Image i = (Image) it.next(); for (int j = 0; j < n; j++) { i....
3,231,300
public void xestSpeedCompareNThrough() throws IOException { final int n = 5; for (Iterator it = images.values().iterator(); it.hasNext();) { final Stats stats = new Stats(); Image i = (Image) it.next(); for (int j = 0; j < n; j++) { ...
public void xestSpeedCompareNThrough() throws Exception { final int n = 5; for (Iterator it = images.values().iterator(); it.hasNext();) { final Stats stats = new Stats(); Image i = (Image) it.next(); for (int j = 0; j < n; j++) { i....
3,231,301
void each(Image i, int z, int c, int t, int counter) throws IOException { compare(stats,i,z,c,t); }
void each(Image i, int z, int c, int t, int counter) throws Exception { compare(stats,i,z,c,t); }
3,231,302
public void xtestSpeedCompareOnceThrough() throws IOException { final Stats stats = new Stats(); for (Iterator it = images.values().iterator(); it.hasNext();) { Image i = (Image) it.next(); i.eachPlane(new PlaneCallback() { void each(Image i, i...
public void xtestSpeedCompareOnceThrough() throws Exception { final Stats stats = new Stats(); for (Iterator it = images.values().iterator(); it.hasNext();) { Image i = (Image) it.next(); i.eachPlane(new PlaneCallback() { void each(Image i, int...
3,231,303
public void xtestSpeedCompareOnceThrough() throws IOException { final Stats stats = new Stats(); for (Iterator it = images.values().iterator(); it.hasNext();) { Image i = (Image) it.next(); i.eachPlane(new PlaneCallback() { void each(Image i, i...
public void xtestSpeedCompareOnceThrough() throws Exception { final Stats stats = new Stats(); for (Iterator it = images.values().iterator(); it.hasNext();) { Image i = (Image) it.next(); i.eachPlane(new PlaneCallback() { void each(Image i, int...
3,231,304
void each(Image i, int z, int c, int t, int counter) throws IOException { compare(stats,i,z,c,t); }
void each(Image i, int z, int c, int t, int counter) throws Exception { compare(stats,i,z,c,t); }
3,231,305
void eachPlane(PlaneCallback action) throws IOException { int counter = 0; for (int z = 0; z < sz; z++) { for (int c = 0; c < sc; c++) { for (int t = 0; t < st; t++) { if (action != null) action.each(this, z, c, t, ++coun...
void eachPlane(PlaneCallback action) throws Exception { int counter = 0; for (int z = 0; z < sz; z++) { for (int c = 0; c < sc; c++) { for (int t = 0; t < st; t++) { if (action != null) action.each(this, z, c, t, ++counte...
3,231,306
byte[] getPlane(int z, int c, int t) throws IOException { if (z < 0 || z >= sz || c < 0 || c >= sc || t < 0 || t >= st) throw new IllegalArgumentException("Nope."); byte[] out = Gateway.getPlane(id, z, c, t); return out; }
byte[] getPlane(int z, int c, int t) throws Exception { if (z < 0 || z >= sz || c < 0 || c >= sc || t < 0 || t >= st) throw new IllegalArgumentException("Nope."); byte[] out = Gateway.getPlane(id, z, c, t); return out; }
3,231,307
abstract void each(Image i, int z, int c, int t, int counter) throws IOException;
abstract void each(Image i, int z, int c, int t, int counter) throws IOException;
3,231,308
void add(long b_time, long g_time) { Long b = new Long(b_time); Long g = new Long(g_time); Double s = new Double(b.doubleValue() / g.doubleValue()); b_times.add(b); g_times.add(g); s_times.add(s); b_total += b.longValue(); g_total += g.longValue(); s...
void add(long b_time, long g_time, long n_time) { Long b = new Long(b_time); Long g = new Long(g_time); Double s = new Double(b.doubleValue() / g.doubleValue()); b_times.add(b); g_times.add(g); s_times.add(s); b_total += b.longValue(); g_total += g.longValu...
3,231,309
public String toString() { double total=0.0; StringBuilder sb = new StringBuilder(); sb.append("\n---------------------------------\n"); for (int i = 0; i < last(); i++) { total+=((Double)s_times.get(i)).doubleValue(); sb.append(i); sb.append("\...
public String toString() { double total=0.0; StringBuilder sb = new StringBuilder(); sb.append("\n---------------------------------\n"); for (int i = 0; i < last(); i++) { total+=((Double)s_times.get(i)).doubleValue(); sb.append(i); sb.append("\...
3,231,311
public String toString() { double total=0.0; StringBuilder sb = new StringBuilder(); sb.append("\n---------------------------------\n"); for (int i = 0; i < last(); i++) { total+=((Double)s_times.get(i)).doubleValue(); sb.append(i); sb.append("\...
public String toString() { double total=0.0; StringBuilder sb = new StringBuilder(); sb.append("\n---------------------------------\n"); for (int i = 0; i < last(); i++) { total+=((Double)s_times.get(i)).doubleValue(); sb.append(i); sb.append("\...
3,231,312
void update(){ add(b_running,g_running); }
void update(){ add(b_running,g_running,n_running); }
3,231,314
public void displayTab(Event e) { List<NoteTreeNode> treeNodes = dd.getTree().getSelectedNodes(); for (NoteTreeNode treeNode : treeNodes) { DisplayedNote dn = treeNode.getDisplayedNote(); if (dn.getTab() == null) { dd.getTabFolder().addNoteTab(dn); } else { dn.getTab().select(); } } }
public void displayTab(Event e) { List<NoteTreeNode> treeNodes = dd.getTree().getSelectedNodes(); for (NoteTreeNode treeNode : treeNodes) { DisplayedNote dn = treeNode.getDisplayedNote(); if (dn.getTab() == null) { dd.getTabFolder().addNoteTab(dn); } else { dn.getTab().select(); } } }
3,231,315
static public Timestamp convertDate(Date date){ return null == date ? null : new Timestamp(date.getTime()); }
static public Timestamp convertDate(Date date){ if (null==date){ log.debug("Null date."); return null; } return new Timestamp(date.getTime()); }
3,231,316