rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
} else if (value instanceof RubyFloat) { return false; | private boolean shouldBeRegistered(IRubyObject value) { if (value.isNil()) { return false; } else if (value instanceof RubyBoolean) { return false; } else if (value instanceof RubyFixnum) { return false; } return true; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/8ae1450338f7575374e8b0b394caa2920b6a2d24/MarshalStream.java/clean/src/org/jruby/runtime/marshal/MarshalStream.java | |
public ProjectLoader(HiViewer viewer, Set projectsID) | public ProjectLoader(HiViewer viewer, Set projectsID, boolean refresh) | public ProjectLoader(HiViewer viewer, Set projectsID) { super(viewer); this.projectsID = projectsID; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/fb3743d6f75abbf12f788b3b2925f4a6f4606dd6/ProjectLoader.java/clean/SRC/org/openmicroscopy/shoola/agents/hiviewer/ProjectLoader.java |
this.refresh = refresh; | public ProjectLoader(HiViewer viewer, Set projectsID) { super(viewer); this.projectsID = projectsID; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/fb3743d6f75abbf12f788b3b2925f4a6f4606dd6/ProjectLoader.java/clean/SRC/org/openmicroscopy/shoola/agents/hiviewer/ProjectLoader.java | |
viewer.setHierarchyRoots((Set) result, false); | viewer.setHierarchyRoots((Set) result, false, refresh); | public void handleResult(Object result) { if (viewer.getState() == HiViewer.DISCARDED) return; //Async cancel. viewer.setHierarchyRoots((Set) result, false); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/fb3743d6f75abbf12f788b3b2925f4a6f4606dd6/ProjectLoader.java/clean/SRC/org/openmicroscopy/shoola/agents/hiviewer/ProjectLoader.java |
if (model.getState() == ImViewer.DISCARDED) discard(); | 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; } | protected void onStateChange(ChangeEvent e) { if (model.getState() == ImViewer.DISCARDED) discard(); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/3b273af3a5320ab0a054540f14a3c299ff01de69/MovieAction.java/clean/SRC/org/openmicroscopy/shoola/agents/imviewer/actions/MovieAction.java |
setAlwaysOnTop(true); | public MoviePlayerDialog(JFrame owner, ImViewer model) { super(owner); if (model == null) throw new NullPointerException("No model."); setTitle("Movie Player: "+model.getImageName()); this.model = model; player = new MoviePlayer(model, this); uiDelegate = new MoviePlayer... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/5aacd98a1cfb2219e218c87eed17b5a0f0e9738a/MoviePlayerDialog.java/buggy/SRC/org/openmicroscopy/shoola/agents/imviewer/util/player/MoviePlayerDialog.java | |
while (j < l && Character.isSpaceChar(s.charAt(j))) | while (j < l && isSpaceChar(s.charAt(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 && Character.isSpaceChar(s.charAt(j))) j++; ... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/380cf71624b51f570339abaad8b44c15f6b31844/ParserBlockBuilder.java/clean/webmacro/src/org/webmacro/parser/ParserBlockBuilder.java |
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) setElementAt(s.substring(0, j+1), i); markLitera... | private final static int eatOneWs(String s, int pos) { if (pos >= 0 && isSpaceChar(s.charAt(pos))) pos--; return pos; | 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) ... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/380cf71624b51f570339abaad8b44c15f6b31844/ParserBlockBuilder.java/clean/webmacro/src/org/webmacro/parser/ParserBlockBuilder.java |
while (pos >= 0 && Character.isSpaceChar(s.charAt(pos))) | while (pos >= 0 && isSpaceChar(s.charAt(pos))) | private final static int eatWs(String s, int pos) { while (pos >= 0 && Character.isSpaceChar(s.charAt(pos))) pos--; return pos; } | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/380cf71624b51f570339abaad8b44c15f6b31844/ParserBlockBuilder.java/clean/webmacro/src/org/webmacro/parser/ParserBlockBuilder.java |
return iter.hasNext(); | throw new UnsupportedOperationException(); | 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); ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/448643c70dc9b78a7d89a851b9202699d07cfbb3/ObjectSpace.java/buggy/src/org/jruby/runtime/ObjectSpace.java |
return ((WeakReferenceListNode)iter.next()).get(); | Object obj = null; while (iter.hasNext()) { WeakReferenceListNode node = (WeakReferenceListNode)iter.next(); obj = node.get(); if (obj != null) break; } return obj; | 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); ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/448643c70dc9b78a7d89a851b9202699d07cfbb3/ObjectSpace.java/buggy/src/org/jruby/runtime/ObjectSpace.java |
return iter.hasNext(); | throw new UnsupportedOperationException(); | public boolean hasNext() { return iter.hasNext(); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/448643c70dc9b78a7d89a851b9202699d07cfbb3/ObjectSpace.java/buggy/src/org/jruby/runtime/ObjectSpace.java |
return ((WeakReferenceListNode)iter.next()).get(); | Object obj = null; while (iter.hasNext()) { WeakReferenceListNode node = (WeakReferenceListNode)iter.next(); obj = node.get(); if (obj != null) break; } return obj; | public Object next() { return ((WeakReferenceListNode)iter.next()).get(); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/448643c70dc9b78a7d89a851b9202699d07cfbb3/ObjectSpace.java/buggy/src/org/jruby/runtime/ObjectSpace.java |
if (wavesStg[w] == null) stg.setWindow(gMin, gMax); | if (wavesStg[w] == null) stg.setWindow(gMin, gMax); | 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.... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/54db6819abeb15722fb59b84d5f3a2d7298b41cb/QuantumManager.java/buggy/SRC/org/openmicroscopy/shoola/env/rnd/QuantumManager.java |
stg.setWindow(wavesStg[w].getWindowStart(), wavesStg[w].getWindowEnd()); | stg.setWindow(wavesStg[w].getWindowStart(), wavesStg[w].getWindowEnd()); | 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.... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/54db6819abeb15722fb59b84d5f3a2d7298b41cb/QuantumManager.java/buggy/SRC/org/openmicroscopy/shoola/env/rnd/QuantumManager.java |
removeButton = new JButton("Select All"); | removeButton = new JButton("Remove All"); | 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... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1ed79437fda6d8f6b2566c6fe677bfaaf3352055/DatasetImagesPane.java/clean/SRC/org/openmicroscopy/shoola/agents/datamng/editors/dataset/DatasetImagesPane.java |
UIUtilities.formatToolTipText("Remove all datasets.")); | UIUtilities.formatToolTipText("Remove all images.")); | 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... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1ed79437fda6d8f6b2566c6fe677bfaaf3352055/DatasetImagesPane.java/clean/SRC/org/openmicroscopy/shoola/agents/datamng/editors/dataset/DatasetImagesPane.java |
ImageAnnotation ia = annotator.createImageAnnotation(annotation); annotationList.add(ia); | ImageAnnotation ia = annotator.createImageAnnotation(annotation,imageID); newAnnotationList.add(ia); | public void newAnnotation(String annotation) { ImageAnnotation ia = annotator.createImageAnnotation(annotation); annotationList.add(ia); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/f5113c7a4ff99bcbee06e1b48554259a952e1a44/ImageAnnotationCtrl.java/buggy/SRC/org/openmicroscopy/shoola/agents/annotator/ImageAnnotationCtrl.java |
annotator.updateImageAnnotations(annotationList); | annotator.commitNewAnnotations(newAnnotationList); annotator.updateAnnotations(annotationList); for(Iterator iter = newAnnotationList.iterator(); iter.hasNext();) { annotationList.add(0,iter.next()); } newAnnotationList.clear(); | public boolean save() { annotator.updateImageAnnotations(annotationList); ImageAnnotated annotated = new ImageAnnotated(requestEvent); // TODO support multiple if(annotationList.size() > 0) { annotated.setAnnotation((ImageAnnotation)annotationList.get(0)); } ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/f5113c7a4ff99bcbee06e1b48554259a952e1a44/ImageAnnotationCtrl.java/buggy/SRC/org/openmicroscopy/shoola/agents/annotator/ImageAnnotationCtrl.java |
return entry.getValue(); | Object ret = null; if (entry != null) ret = entry.getValue(); return ret; | public Object lookup(String name) { Entry entry = (Entry) entriesMap.get(name); return entry.getValue(); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/38c5264ce2b944cfabb91f5fef08cfefb84bc9eb/RegistryImpl.java/clean/SRC/org/openmicroscopy/shoola/env/config/RegistryImpl.java |
new QueryParameterDef(OWNER_ID, Long.class, true), | 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) }; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0b36a8e77f5bacb7e122d76ffce01866205b09d7/PojosFindHierarchiesQueryDefinition.java/clean/components/server/src/ome/services/query/PojosFindHierarchiesQueryDefinition.java | |
fetchParents(c,Project.class,2); | c.setResultTransformer(Criteria.DISTINCT_ROOT_ENTITY); c.add(Restrictions.in("id",(Collection) value(QP.IDS))); Hierarchy.fetchParents(c,(Class) value(QP.CLASS),Integer.MAX_VALUE); | protected Object runQuery(Session session) throws HibernateException, SQLException { Criteria c = session.createCriteria(Image.class); fetchParents(c,Project.class,2); return c.list(); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0b36a8e77f5bacb7e122d76ffce01866205b09d7/PojosFindHierarchiesQueryDefinition.java/clean/components/server/src/ome/services/query/PojosFindHierarchiesQueryDefinition.java |
if (name.equals("_")) { return 0; } else if (name.equals("~")) { return 1; | if (name != null) { 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; ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/580f3017bb64fb7c2bf269b73a8f918801c19963/LocalNamesElement.java/buggy/src/org/jruby/parser/LocalNamesElement.java |
_searchPublishedFrom = new Date(); _searchText = "searchtext"; | public SearchArticleBean() { _searchPublishedFrom = new Date(); _searchText = "searchtext"; } | 57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/36163213865d20118bce2335dd258c26a2a29846/SearchArticleBean.java/buggy/src/java/com/idega/block/article/bean/SearchArticleBean.java | |
return 4; | return 6; | public int getNumberOfColumns() { return 4; } | 57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/36163213865d20118bce2335dd258c26a2a29846/SearchArticleBean.java/buggy/src/java/com/idega/block/article/bean/SearchArticleBean.java |
String localeString = ""; SearchExpression namePatternExpression = s.compare(CompareOperator.LIKE, IWSlideConstants.PROPERTY_DISPLAY_NAME,"%"+localeString+".article"); | SearchExpression namePatternExpression = s.compare(CompareOperator.LIKE, IWSlideConstants.PROPERTY_DISPLAY_NAME,"%.article"); whereExpression = namePatternExpression; | 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... | 57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/36163213865d20118bce2335dd258c26a2a29846/SearchArticleBean.java/buggy/src/java/com/idega/block/article/bean/SearchArticleBean.java |
creationDateFromExpression = s.compare(CompareOperator.GTE, IWSlideConstants.PROPERTY_CREATION_DATE,getSearchPublishedFrom()); whereExpression = s.and(namePatternExpression,creationDateFromExpression); | Date from = getSearchPublishedFrom(); IWTimestamp stamp = new IWTimestamp(from); stamp.addDays(-1); from = stamp.getDate(); creationDateFromExpression = s.compare(CompareOperator.GTE, IWSlideConstants.PROPERTY_CREATION_DATE,from); whereExpression = s.and(whereExpression,creationDateFromExpression); | 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... | 57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/36163213865d20118bce2335dd258c26a2a29846/SearchArticleBean.java/buggy/src/java/com/idega/block/article/bean/SearchArticleBean.java |
if(getSearchAuthor()!=null){ SearchExpression authorExpression = s.compare(CompareOperator.LIKE,IWSlideConstants.PROPERTY_CREATOR_DISPLAY_NAME,"%"+getSearchAuthor()+"%"); | String author = getSearchAuthor(); if(author!=null && !"".equals(author)){ SearchExpression authorExpression = s.compare(CompareOperator.LIKE,IWSlideConstants.PROPERTY_CREATOR_DISPLAY_NAME,"%"+author+"%"); | 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... | 57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/36163213865d20118bce2335dd258c26a2a29846/SearchArticleBean.java/buggy/src/java/com/idega/block/article/bean/SearchArticleBean.java |
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... | 57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/36163213865d20118bce2335dd258c26a2a29846/SearchArticleBean.java/buggy/src/java/com/idega/block/article/bean/SearchArticleBean.java | ||
showResults = true; | public void search() { searching = true; updateDataModel(new Integer(0),new Integer(0)); searching = false; } | 57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/36163213865d20118bce2335dd258c26a2a29846/SearchArticleBean.java/buggy/src/java/com/idega/block/article/bean/SearchArticleBean.java | |
setMinimumSize(new Dimension(PConstants.BROWSER_SIDE,HEIGHT)); setPreferredSize(new Dimension(PConstants.BROWSER_SIDE,HEIGHT)); setMaximumSize(new Dimension(MAXWIDTH,MAXHEIGHT)); | setPreferredSize(new Dimension(PConstants.BROWSER_SIDE, 30)); | 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... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/083c0615f5688f7fef55d651a2f420a1fb703456/ProjectSelectionCanvas.java/clean/SRC/org/openmicroscopy/shoola/agents/zoombrowser/piccolo/ProjectSelectionCanvas.java |
System.err.println("completing initialization of project selection canvas"); | public void completeInitialization() { System.err.println("completing initialization of project selection canvas"); addInputEventListener(new GenericEventHandler()); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/083c0615f5688f7fef55d651a2f420a1fb703456/ProjectSelectionCanvas.java/clean/SRC/org/openmicroscopy/shoola/agents/zoombrowser/piccolo/ProjectSelectionCanvas.java | |
System.err.println("displaying project list. width of window is "+width); System.err.println("height is "+getHeight()); | if (width == 0) width = PConstants.BROWSER_SIDE; | 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... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/083c0615f5688f7fef55d651a2f420a1fb703456/ProjectSelectionCanvas.java/clean/SRC/org/openmicroscopy/shoola/agents/zoombrowser/piccolo/ProjectSelectionCanvas.java |
Iterator iter2; | 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... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/083c0615f5688f7fef55d651a2f420a1fb703456/ProjectSelectionCanvas.java/clean/SRC/org/openmicroscopy/shoola/agents/zoombrowser/piccolo/ProjectSelectionCanvas.java | |
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... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/083c0615f5688f7fef55d651a2f420a1fb703456/ProjectSelectionCanvas.java/clean/SRC/org/openmicroscopy/shoola/agents/zoombrowser/piccolo/ProjectSelectionCanvas.java | ||
Dimension d= new Dimension(width,height); setMinimumSize(d); setPreferredSize(d); panel.setDividerLocation(height); lastHeight = height; | Dimension d= new Dimension(width,height); setPreferredSize(d); setMaximumSize(d); panel.setToPreferredSizes(); | 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... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/083c0615f5688f7fef55d651a2f420a1fb703456/ProjectSelectionCanvas.java/clean/SRC/org/openmicroscopy/shoola/agents/zoombrowser/piccolo/ProjectSelectionCanvas.java |
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)); | 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(); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/083c0615f5688f7fef55d651a2f420a1fb703456/ProjectSelectionCanvas.java/clean/SRC/org/openmicroscopy/shoola/agents/zoombrowser/piccolo/ProjectSelectionCanvas.java | |
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()); | 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... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/083c0615f5688f7fef55d651a2f420a1fb703456/ProjectSelectionCanvas.java/clean/SRC/org/openmicroscopy/shoola/agents/zoombrowser/piccolo/ProjectSelectionCanvas.java | |
System.err.println("project canvas got selection of dataset .."+ dataset); | 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); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/083c0615f5688f7fef55d651a2f420a1fb703456/ProjectSelectionCanvas.java/clean/SRC/org/openmicroscopy/shoola/agents/zoombrowser/piccolo/ProjectSelectionCanvas.java | |
if (selected != null) System.err.println("\nset selected project to ..."+selected.getName()); else System.err.println("\nset selected project to null"); selectedProject = selected; | if (selected != null && !selected.hasDatasets()) selected = null; | 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... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/083c0615f5688f7fef55d651a2f420a1fb703456/ProjectSelectionCanvas.java/clean/SRC/org/openmicroscopy/shoola/agents/zoombrowser/piccolo/ProjectSelectionCanvas.java |
selectedProject = selected; | 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... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/083c0615f5688f7fef55d651a2f420a1fb703456/ProjectSelectionCanvas.java/clean/SRC/org/openmicroscopy/shoola/agents/zoombrowser/piccolo/ProjectSelectionCanvas.java | |
String id = articleItemBean[i].getFolderLocation()+"/"+articleItemBean[i].getHeadline()+".xml"; | String id = articleItemBean[i].getFolderLocation()+"/"+articleItemBean[i].getHeadline()+ArticleItemBean.ARTICLE_SUFFIX; | 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... | 57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/e75e5a35d9b917c44d8a58d117a43ccf5ad660b4/SearchArticleBean.java/clean/src/java/com/idega/block/article/bean/SearchArticleBean.java |
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() {} | public ArticleListBean(String id, String headline, String published, String author, String status) { _id = id; _headline = headline; _published = published; _author = author; _status = status; _testStyle = ""; } | 57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/22ab818c24ad5d560b0a86c4e466ce6636c835ad/ArticleListBean.java/buggy/src/java/com/idega/block/article/bean/ArticleListBean.java |
WebdavRootResource rootResource = session.getWebdavRootResource(); | WebdavResource folderResource = session.getWebdavResource(folder); | 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... | 57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/22ab818c24ad5d560b0a86c4e466ce6636c835ad/ArticleListBean.java/buggy/src/java/com/idega/block/article/bean/ArticleListBean.java |
String[] file = rootResource.list(); | String[] file = folderResource.list(); | 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... | 57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/22ab818c24ad5d560b0a86c4e466ce6636c835ad/ArticleListBean.java/buggy/src/java/com/idega/block/article/bean/ArticleListBean.java |
System.out.println("Attempting to load "+file[i].toString()); ArticleItemBean article = new ArticleItemBean(); article.load(folder+"/"+file[i]); list.add(article); | try { System.out.println("Attempting to load "+file[i].toString()); ArticleItemBean article = new ArticleItemBean(); article.load(folder+"/"+file[i]); list.add(article); }catch(Exception e) { e.printStackTrace(); } | 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... | 57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/22ab818c24ad5d560b0a86c4e466ce6636c835ad/ArticleListBean.java/buggy/src/java/com/idega/block/article/bean/ArticleListBean.java |
HttpURL root = new HttpURL(service.getWebdavServerURL()+path, "root", "root"); | HttpURL contentRoot = service.getWebdavServerURL(path); contentRoot.setUserinfo("root","root"); | 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... | 57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/967e4ead1991a586c310d50209423abeb9c098f8/ArticleItemBean.java/buggy/src/java/com/idega/block/article/bean/ArticleItemBean.java |
WebdavResource webdavResource = new WebdavResource(root); | WebdavResource webdavResource = new WebdavResource(contentRoot); | 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... | 57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/967e4ead1991a586c310d50209423abeb9c098f8/ArticleItemBean.java/buggy/src/java/com/idega/block/article/bean/ArticleItemBean.java |
out.println("<div class=\"footer\">"); out .println("Reports generated by <a href=\"http: out.println("</div>"); | private void generateOverview(Package pkg) throws IOException { String filename; if (pkg == null) { filename = "frame-summary.html"; } else { filename = "frame-summary-" + pkg.getName() + ".html"; } File file = new File(outputDir, filename); PrintStream out = null; try { out = new PrintStream(new File... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/eb7c12542b7d22c72e2b88c17030d057e6cb0ddb/HTMLReport.java/buggy/cobertura/src/net/sourceforge/cobertura/reporting/html/HTMLReport.java | |
out.println("<div class=\"footer\">"); out .println("Reports generated by <a href=\"http: out.println("</div>"); | private void generateSourceFile(Clazz clazz) throws IOException { String filename = clazz.getLongName() + ".html"; File file = new File(outputDir, filename); PrintStream out = null; try { out = new PrintStream(new FileOutputStream(file)); out.println("<html>"); out.println("<head>"); out.println("<title>C... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/eb7c12542b7d22c72e2b88c17030d057e6cb0ddb/HTMLReport.java/buggy/cobertura/src/net/sourceforge/cobertura/reporting/html/HTMLReport.java | |
ret.append(generateTableColumnsFromData(lineCoverage, branchCoverage, ccn)); | if (clazz.getNumberOfLines() == 0) { ret.append(generateTableColumnsForNA(ccn)); } else { ret.append(generateTableColumnsFromData(lineCoverage, branchCoverage, ccn)); } | 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... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/eb7c12542b7d22c72e2b88c17030d057e6cb0ddb/HTMLReport.java/buggy/cobertura/src/net/sourceforge/cobertura/reporting/html/HTMLReport.java |
WFErrorMessages em = new WFErrorMessages(); em.addErrorMessage(SEARCH_PUBLISHED_FROM_ID); em.addErrorMessage(SEARCH_PUBLISHED_TO_ID); | WFMessages em = new WFMessages(); em.addMessageToDisplay(SEARCH_PUBLISHED_FROM_ID); em.addMessageToDisplay(SEARCH_PUBLISHED_TO_ID); | 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... | 57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/5db26355cf68616cbd8859fa37cd6aa73d783808/ListArticlesBlock.java/clean/src/java/com/idega/block/article/component/ListArticlesBlock.java |
BrowserEnvironment env = BrowserEnvironment.getInstance(); BrowserManager manager = env.getBrowserManager(); manager.addSelectionListener(this); | public ColorMapManager() { datasetModelMap = new HashMap(); embeddedUI = new ColorMapUI(); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/e83036080b3a8ade884eca150f3f3c2004b556c9/ColorMapManager.java/buggy/SRC/org/openmicroscopy/shoola/agents/browser/colormap/ColorMapManager.java | |
model.addModelListener(this); | public void modelChanged(ColorMapModel model) { reset(); this.model = model; dispatch = new ColorMapDispatcher(model,listUI); groupBar.addListener(dispatch); groupBar.setCategoryTree(model.getTree()); listUI.setModel(null); if(model != null) { gr... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0e4e3c4b5f21d2217fc02b1e6846dac6de60570f/ColorMapUI.java/buggy/SRC/org/openmicroscopy/shoola/agents/browser/colormap/ColorMapUI.java | |
model.removeListener(this); | public void reset() { if(model != null) { dispatch.categoriesDeselected(); dispatch.groupsDeselected(); groupBar.removeListener(dispatch); listUI.removeListener(dispatch); listUI.setModel(null); } } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0e4e3c4b5f21d2217fc02b1e6846dac6de60570f/ColorMapUI.java/buggy/SRC/org/openmicroscopy/shoola/agents/browser/colormap/ColorMapUI.java | |
public void activate() {} | public void activate() { TreeViewer viewer = TreeViewerFactory.getViewer(); if (viewer != null) viewer.activate(); } | public void activate() {} | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/4a154cb705ae86a21496905d48df8c39a7e51e13/TreeViewerAgent.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/TreeViewerAgent.java |
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(); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/4a154cb705ae86a21496905d48df8c39a7e51e13/TreeViewerAgent.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/TreeViewerAgent.java | |
buildGUI(); | RemoveWin(Set availablePaths) { super(availablePaths); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/423006aa061b61c5fd6f0a1b95754e8a9a2c0fef/RemoveWin.java/clean/SRC/org/openmicroscopy/shoola/agents/hiviewer/clsf/RemoveWin.java | |
if (data instanceof ImageSummary) { main.add(new JLabel("The selected image hasn't been classified")); return; } | private void addRow(GridBagLayout gridbag, GridBagConstraints c, JPanel main, int index, DataObject data) { JCheckBox box = new JCheckBox(); box.setSelected(true); String name = ""; if (data instanceof CategoryGroupData) { CategoryGroupData cg = (Cat... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/423006aa061b61c5fd6f0a1b95754e8a9a2c0fef/RemoveWin.java/clean/SRC/org/openmicroscopy/shoola/agents/hiviewer/clsf/RemoveWin.java | |
unsetCRef(); | popCRef(); | public void postExecuteUnder() { popFrame(); popRubyClass(); unsetCRef(); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/805d73b7462174e9e5c095eed22a09140bb79b5e/ThreadContext.java/buggy/src/org/jruby/runtime/ThreadContext.java |
setCRef(executeUnderClass.getCRef()); | pushCRef(executeUnderClass); | public void preExecuteUnder(RubyModule executeUnderClass) { Frame frame = getCurrentFrame(); pushRubyClass(executeUnderClass); setCRef(executeUnderClass.getCRef()); pushFrame(null, frame.getArgs(), frame.getLastFunc(), frame.getLastClass()); getCurrentFrame().setScope(getP... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/805d73b7462174e9e5c095eed22a09140bb79b5e/ThreadContext.java/buggy/src/org/jruby/runtime/ThreadContext.java |
return getRuntime().newFixnum(hashCode()); | return getRuntime().newFixnum(symbol.hashCode()); | public RubyFixnum hash() { return getRuntime().newFixnum(hashCode()); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/4b12521bf34cff2c9841b1dacb1a929f6def5327/RubySymbol.java/clean/src/org/jruby/RubySymbol.java |
/* File path = new File(getFolder()); if(!path.exists()) { path.mkdirs(); } */ | 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() !... | 57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/2df1592690c911e9166810e3cf1daceb9b084eb6/ArticleItemBean.java/buggy/src/java/com/idega/block/article/bean/ArticleItemBean.java | |
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() !... | 57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/2df1592690c911e9166810e3cf1daceb9b084eb6/ArticleItemBean.java/buggy/src/java/com/idega/block/article/bean/ArticleItemBean.java | ||
System.out.println("Stored language "+getLanguage()); | 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() !... | 57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/2df1592690c911e9166810e3cf1daceb9b084eb6/ArticleItemBean.java/buggy/src/java/com/idega/block/article/bean/ArticleItemBean.java | |
load(getArticlePath(service)); | load(path); | 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() !... | 57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/2df1592690c911e9166810e3cf1daceb9b084eb6/ArticleItemBean.java/buggy/src/java/com/idega/block/article/bean/ArticleItemBean.java |
/* HttpURL root = new HttpURL("http: root.setUserinfo("root","root"); WebdavFile webdavFile = new WebdavFile(webdavResource.getHttpURL()); webdavResource.close(); */ | 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() !... | 57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/2df1592690c911e9166810e3cf1daceb9b084eb6/ArticleItemBean.java/buggy/src/java/com/idega/block/article/bean/ArticleItemBean.java | |
if (0 < pointsCount-1) ps.standardDeviation = Math.sqrt( (ps.sumOfSquares - ps.sum*ps.sum/pointsCount) /(pointsCount-1)); | ps.pointsCount = pointsCount; if (0 < pointsCount-1) { double sigmaSquare = (ps.sumOfSquares - ps.sum*ps.sum/pointsCount)/(pointsCount-1); if (sigmaSquare > 0) ps.standardDeviation = Math.sqrt(sigmaSquare); } | 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 <... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/c3acf0375531681576d4a65f174981535a8919ae/ROIStats.java/clean/SRC/org/openmicroscopy/shoola/env/rnd/roi/ROIStats.java |
planeStats.sumOfSquares = pixelValue*pixelValue; | planeStats.sumOfSquares += pixelValue*pixelValue; | 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... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/c3acf0375531681576d4a65f174981535a8919ae/ROIStats.java/clean/SRC/org/openmicroscopy/shoola/env/rnd/roi/ROIStats.java |
&& (!(line.charAt(currentIndex) == '"') || (line .charAt(currentIndex - 1) == '\\'))); | && (!(line.charAt(currentIndex) == '"') || ((line .charAt(currentIndex - 1) == '\\') && (line .charAt(currentIndex - 2) != '\\')))); | 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... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/c2bb01f889bc22be8e950ebe3e98d1b7b8023605/JavaToHtml.java/buggy/cobertura/src/net/sourceforge/cobertura/reporting/html/JavaToHtml.java |
&& (!(line.charAt(currentIndex) == '\'') || (line .charAt(currentIndex - 1) == '\\'))); | && (!(line.charAt(currentIndex) == '\'') || ((line .charAt(currentIndex - 1) == '\\') && (line .charAt(currentIndex - 2) != '\\')))); | 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... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/c2bb01f889bc22be8e950ebe3e98d1b7b8023605/JavaToHtml.java/buggy/cobertura/src/net/sourceforge/cobertura/reporting/html/JavaToHtml.java |
ret.append("\"</span>"); | ret.append("\'</span>"); | 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... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/c2bb01f889bc22be8e950ebe3e98d1b7b8023605/JavaToHtml.java/buggy/cobertura/src/net/sourceforge/cobertura/reporting/html/JavaToHtml.java |
private double computeSizes() | private void computeSizes() | 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; ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/e9f3fc411ab09d2feadb2bdf09fb1f42042753cf/ImViewerModel.java/buggy/SRC/org/openmicroscopy/shoola/agents/imviewer/view/ImViewerModel.java |
double factor = 0; | 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; ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/e9f3fc411ab09d2feadb2bdf09fb1f42042753cf/ImViewerModel.java/buggy/SRC/org/openmicroscopy/shoola/agents/imviewer/view/ImViewerModel.java | |
return factor; | 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; ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/e9f3fc411ab09d2feadb2bdf09fb1f42042753cf/ImViewerModel.java/buggy/SRC/org/openmicroscopy/shoola/agents/imviewer/view/ImViewerModel.java | |
component.setImage(rndControl.render(pDef)); | component.setImage(os.renderImage(pixelsID, pDef)); | 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 } ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/e9f3fc411ab09d2feadb2bdf09fb1f42042753cf/ImViewerModel.java/buggy/SRC/org/openmicroscopy/shoola/agents/imviewer/view/ImViewerModel.java |
e.printStackTrace(); | 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 } ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/e9f3fc411ab09d2feadb2bdf09fb1f42042753cf/ImViewerModel.java/buggy/SRC/org/openmicroscopy/shoola/agents/imviewer/view/ImViewerModel.java | |
double factor = computeSizes(); | computeSizes(); | void setImage(BufferedImage image) { browser.setRenderedImage(image); //update image icon double factor = computeSizes(); imageIcon = magnifyImage(factor, image); state = ImViewer.READY; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/e9f3fc411ab09d2feadb2bdf09fb1f42042753cf/ImViewerModel.java/buggy/SRC/org/openmicroscopy/shoola/agents/imviewer/view/ImViewerModel.java |
*/ return null; | public NODE expand(RubyObject self) { NODE node = this; while (node.nd_next() != null) { self.eval(node.nd_head()); node = node.nd_next(); } return node.nd_head(); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/658d41dfe4d2bc92a7ecefae9ca04e116d2c290b/BlockNode.java/buggy/org/jruby/interpreter/nodes/BlockNode.java | |
if (me.isPopupTrigger()) model.setPopupPoint(me.getPoint()); | public void mousePressed(MouseEvent me) { ImageDisplay d = findParentDisplay(me.getSource()); d.moveToFront(); model.setSelectedDisplay(d); view.setTitle(model.currentPathString()); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/aa0097eff23f798d820afd9d111c6a0ad5d3a62c/BrowserControl.java/clean/SRC/org/openmicroscopy/shoola/agents/hiviewer/browser/BrowserControl.java | |
type = makeMetaClass(type, getRuntime().getCurrentContext().getRubyClass()); | type = makeMetaClass(type, type.getCRef()); | 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... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a1b8fc1d456e3d5c6e01579b88773383068aa85c/RubyObject.java/buggy/src/org/jruby/RubyObject.java |
public MetaClass makeMetaClass(RubyClass type, RubyModule parentModule) { MetaClass newMetaClass = type.newSingletonClass(parentModule); | public MetaClass makeMetaClass(RubyClass type, SinglyLinkedList parentCRef) { MetaClass newMetaClass = type.newSingletonClass(parentCRef); | public MetaClass makeMetaClass(RubyClass type, RubyModule parentModule) { MetaClass newMetaClass = type.newSingletonClass(parentModule); if (!isNil()) { setMetaClass(newMetaClass); } newMetaClass.attachToObject(this); return newMetaClass; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a1b8fc1d456e3d5c6e01579b88773383068aa85c/RubyObject.java/buggy/src/org/jruby/RubyObject.java |
public void setHeadline(Object o) { setValue(FIELDNAME_HEADLINE, o.toString()); } | public void setHeadline(String s) { setValue(FIELDNAME_HEADLINE, s); } | public void setHeadline(Object o) { setValue(FIELDNAME_HEADLINE, o.toString()); } | 57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/5db26355cf68616cbd8859fa37cd6aa73d783808/ArticleLocalizedItemBean.java/buggy/src/java/com/idega/block/article/bean/ArticleLocalizedItemBean.java |
ImageNode node = new ImageNode(is.getName(), is, new ThumbnailProvider(is)); | ThumbnailProvider provider = new ThumbnailProvider(is); ImageNode node = new ImageNode(is.getName(), is, provider); provider.setImageNode(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); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/2509d546984c0580d2b4a547fed842ec745b87b2/HiTranslator.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/HiTranslator.java |
} | } else if (target == null && src == view.refresh) agentCtrl.refresh(DataManagerCtrl.EXPLORER); | 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 && ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/059eba4bfbe6afc9941db02e314b78f1bd9c2d2e/TreePopupMenuManager.java/buggy/SRC/org/openmicroscopy/shoola/agents/datamng/TreePopupMenuManager.java |
Variable var = VariableBuilder.newVariable(_names,bc,_filtered); return var.evaluate(bc); | try { Object ret = bc.getLocal(_names); if (_filtered) { Filter f = bc.getFilter(Variable.makePropertyNames(_names)); bc.push(ret); ret = f.evaluate(bc); bc.pop(); } return ret; } catch (Exception e) { throw new BuildException("Property error occured during parameter " + "build pocess: " + e); } | public final Object build(BuildContext bc) throws BuildException { Variable var = VariableBuilder.newVariable(_names,bc,_filtered); return var.evaluate(bc); } | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/b323f4812c63173ee0ec6ff6d43ee1b4ac28ebc2/ParamBuilder.java/clean/webmacro/src/org/webmacro/engine/ParamBuilder.java |
gbc.weighty = 190; | gbc.weighty = 100; | 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... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/aee0e250d4d2f1c66384c6e4e9200175b78ee7cd/TabbedPaneUI.java/buggy/SRC/org/openmicroscopy/shoola/util/ui/colourpicker/TabbedPaneUI.java |
gbc.weightx = 100; gbc.weighty = 5; | gbc.weightx = 500; gbc.weighty = 500; | 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... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/aee0e250d4d2f1c66384c6e4e9200175b78ee7cd/TabbedPaneUI.java/buggy/SRC/org/openmicroscopy/shoola/util/ui/colourpicker/TabbedPaneUI.java |
gbc.weighty = 600; | gbc.weighty = 300; | 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... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/aee0e250d4d2f1c66384c6e4e9200175b78ee7cd/TabbedPaneUI.java/buggy/SRC/org/openmicroscopy/shoola/util/ui/colourpicker/TabbedPaneUI.java |
gbc.weighty = 2800; | gbc.weighty = 1700; | 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... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/aee0e250d4d2f1c66384c6e4e9200175b78ee7cd/TabbedPaneUI.java/buggy/SRC/org/openmicroscopy/shoola/util/ui/colourpicker/TabbedPaneUI.java |
putValue(Action.NAME, UIUtilities.formatToolTipText(names[zoomingIndex])); | putValue(Action.NAME, names[zoomingIndex]); | 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... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/801eb750e17a0d8ced7804ba9407be4f7aa90554/ZoomAction.java/clean/SRC/org/openmicroscopy/shoola/agents/imviewer/actions/ZoomAction.java |
void compare(Stats stats, Image i, int z, int c, int t) throws IOException{ | void compare(Stats stats, Image i, int z, int c, int t) throws Exception{ | 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(); ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ae0b01fad17fcacba3ec0999ca1ad645f389b5f9/ComparisonTest.java/buggy/components/omeio-bdb/test/ome/io/bdb/utests/ComparisonTest.java |
assertTrue(g_arr.length == b_arr.length); | PixelsService ps = new PixelsService("/tmp"+PixelsService.ROOT_DEFAULT); PixelBuffer pb = ps.getPixelBuffer(image2pixels(i)); Integer Z = Integer.valueOf(z), C = Integer.valueOf(c), T=Integer.valueOf(t); byte[] result = new byte[b_arr.length]; stats.n_start(); stats.n_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(); ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ae0b01fad17fcacba3ec0999ca1ad645f389b5f9/ComparisonTest.java/buggy/components/omeio-bdb/test/ome/io/bdb/utests/ComparisonTest.java |
System.err.println("Slowdown:"+stats.s_times.get(stats.last()-1)); | System.err.print("B/G:"+stats.s_times.get(stats.last()-1)); System.err.println("\tN/G:"+stats.s2_times.get(stats.last()-1)); | 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(); ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ae0b01fad17fcacba3ec0999ca1ad645f389b5f9/ComparisonTest.java/buggy/components/omeio-bdb/test/ome/io/bdb/utests/ComparisonTest.java |
public void getAndCopy() throws IOException | public void getAndCopy() throws Exception | 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 ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ae0b01fad17fcacba3ec0999ca1ad645f389b5f9/ComparisonTest.java/buggy/components/omeio-bdb/test/ome/io/bdb/utests/ComparisonTest.java |
void each(Image i, int z, int c, int t, int counter) throws IOException | void each(Image i, int z, int c, int t, int counter) throws Exception | 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 ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ae0b01fad17fcacba3ec0999ca1ad645f389b5f9/ComparisonTest.java/buggy/components/omeio-bdb/test/ome/io/bdb/utests/ComparisonTest.java |
bh[0].setPlane(plane,Integer.valueOf(z),Integer.valueOf(c),Integer.valueOf(t)); | 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 ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ae0b01fad17fcacba3ec0999ca1ad645f389b5f9/ComparisonTest.java/buggy/components/omeio-bdb/test/ome/io/bdb/utests/ComparisonTest.java | |
void each(Image i, int z, int c, int t, int counter) throws IOException | void each(Image i, int z, int c, int t, int counter) throws Exception | 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); } ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ae0b01fad17fcacba3ec0999ca1ad645f389b5f9/ComparisonTest.java/buggy/components/omeio-bdb/test/ome/io/bdb/utests/ComparisonTest.java |
bh[0].setPlane(plane,Integer.valueOf(z),Integer.valueOf(c),Integer.valueOf(t)); | 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); } ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ae0b01fad17fcacba3ec0999ca1ad645f389b5f9/ComparisonTest.java/buggy/components/omeio-bdb/test/ome/io/bdb/utests/ComparisonTest.java | |
public void testSpeendCompareRandom() throws IOException | public void testSpeendCompareRandom() throws Exception | 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... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ae0b01fad17fcacba3ec0999ca1ad645f389b5f9/ComparisonTest.java/buggy/components/omeio-bdb/test/ome/io/bdb/utests/ComparisonTest.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.