rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
mathModule.defineSingletonMethod("atan2", atan2); mathModule.defineSingletonMethod("cos", cos); mathModule.defineSingletonMethod("exp", exp); mathModule.defineSingletonMethod("ldexp", ldexp); mathModule.defineSingletonMethod("log", log); mathModule.defineSingletonMethod("log10", log10); mathModule.defineSingletonMetho...
mathModule.defineSingletonMethod( "atan2", CallbackFactory.getSingletonMethod(RubyMath.class, "atan2", RubyNumeric.class, RubyNumeric.class)); mathModule.defineSingletonMethod("cos", CallbackFactory.getSingletonMethod(RubyMath.class, "cos", RubyNumeric.class)); mathModule.defineSingletonMethod("exp", CallbackFactory.ge...
public static RubyModule createMathModule(Ruby ruby) { Callback atan2 = new ReflectionCallbackMethod(RubyMath.class, "atan2", new Class[] { RubyNumeric.class, RubyNumeric.class }); Callback cos = new ReflectionCallbackMethod(RubyMath.class, "cos", RubyNumeric.class); Callback exp = n...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/RubyMath.java/buggy/org/jruby/RubyMath.java
IRubyObject clone = getMetaClass().getRealClass().allocate();
IRubyObject clone = doClone();
public IRubyObject rbClone() { IRubyObject clone = getMetaClass().getRealClass().allocate(); clone.setMetaClass(getMetaClass().getSingletonClassClone()); clone.setFrozen(false); clone.initCopy(this); if (isFrozen()) { clone.setFrozen(true); } return clone;...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/49aa6e52e2393f8c17a3c126aed59b8fd08b68aa/RubyObject.java/buggy/src/org/jruby/RubyObject.java
clone.setFrozen(false);
clone.setTaint(this.isTaint());
public IRubyObject rbClone() { IRubyObject clone = getMetaClass().getRealClass().allocate(); clone.setMetaClass(getMetaClass().getSingletonClassClone()); clone.setFrozen(false); clone.initCopy(this); if (isFrozen()) { clone.setFrozen(true); } return clone;...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/49aa6e52e2393f8c17a3c126aed59b8fd08b68aa/RubyObject.java/buggy/src/org/jruby/RubyObject.java
if (isFrozen()) { clone.setFrozen(true); }
clone.setFrozen(isFrozen());
public IRubyObject rbClone() { IRubyObject clone = getMetaClass().getRealClass().allocate(); clone.setMetaClass(getMetaClass().getSingletonClassClone()); clone.setFrozen(false); clone.initCopy(this); if (isFrozen()) { clone.setFrozen(true); } return clone;...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/49aa6e52e2393f8c17a3c126aed59b8fd08b68aa/RubyObject.java/buggy/src/org/jruby/RubyObject.java
public void updateDataModel(Integer start, Integer rows) { if (_dataModel == null) { _dataModel = new WFDataModel(); } try { ArticleItemBean[] articleItemBean = (ArticleItemBean[]) ArticleListBean.loadAllArticlesInFolder("/files/content").toArray(new ArticleItemBean[0]); int availableRows = articleItemBean.le...
57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/7f438929157b8c8e2d71ff069907dd3a40e18263/ListArticlesBean.java/buggy/src/java/com/idega/block/article/bean/ListArticlesBean.java
ListArticlesBean bean = new ListArticlesBean(articleItemBean[i].getHeadline(), articleItemBean[i].getHeadline(), "");
String id = articleItemBean[i].getMainCategory()+"/"+articleItemBean[i].getHeadline()+".xml"; ListArticlesBean bean = new ListArticlesBean(id, articleItemBean[i].getHeadline(), "");
public void updateDataModel(Integer start, Integer rows) { if (_dataModel == null) { _dataModel = new WFDataModel(); } try { ArticleItemBean[] articleItemBean = (ArticleItemBean[]) ArticleListBean.loadAllArticlesInFolder("/files/content").toArray(new ArticleItemBean[0]); int availableRows = articleItemBean.le...
57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/7f438929157b8c8e2d71ff069907dd3a40e18263/ListArticlesBean.java/buggy/src/java/com/idega/block/article/bean/ListArticlesBean.java
isName = false;
ImageEditorManager(ImageEditor view, DataManagerCtrl control, ImageData model) { this.view = view; this.control = control; this.model = model; nameChange = false; isName = false; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1ed79437fda6d8f6b2566c6fe677bfaaf3352055/ImageEditorManager.java/buggy/SRC/org/openmicroscopy/shoola/agents/datamng/editors/image/ImageEditorManager.java
nameField.addMouseListener(this);
void initListeners() { attachButtonListener(view.getSaveButton(), SAVE); attachButtonListener(view.getViewButton(), VIEW); JTextArea nameField = view.getNameField(); nameField.getDocument().addDocumentListener(this); nameField.addMouseListener(this); JTextArea descriptionArea = view.getDescriptionAre...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1ed79437fda6d8f6b2566c6fe677bfaaf3352055/ImageEditorManager.java/buggy/SRC/org/openmicroscopy/shoola/agents/datamng/editors/image/ImageEditorManager.java
view.getSaveButton().setEnabled(isName);
view.getSaveButton().setEnabled(true);
public void insertUpdate(DocumentEvent e) { view.getSaveButton().setEnabled(isName); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1ed79437fda6d8f6b2566c6fe677bfaaf3352055/ImageEditorManager.java/buggy/SRC/org/openmicroscopy/shoola/agents/datamng/editors/image/ImageEditorManager.java
view.getSaveButton().setEnabled(isName);
view.getSaveButton().setEnabled(true);
public void removeUpdate(DocumentEvent e) { view.getSaveButton().setEnabled(isName); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1ed79437fda6d8f6b2566c6fe677bfaaf3352055/ImageEditorManager.java/buggy/SRC/org/openmicroscopy/shoola/agents/datamng/editors/image/ImageEditorManager.java
public Filterable filter(String fieldId, Filterable f) { if (null==f || !Hibernate.isInitialized(f)){
public Filterable filter(String fieldId, Filterable f) { if (f == null) return null; if (!Hibernate.isInitialized(f)) {
public Filterable filter(String fieldId, Filterable f) { if (null==f || !Hibernate.isInitialized(f)){ if (f instanceof IObject) { IObject proxy = (IObject) f; IObject unloaded = (IObject) Utils.trueInstance(f.getClass()); unloaded.setId(proxy.getId...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0b36a8e77f5bacb7e122d76ffce01866205b09d7/ProxyCleanupFilter.java/buggy/components/server/src/ome/tools/hibernate/ProxyCleanupFilter.java
return null; } return super.filter(fieldId, f); }
} return super.filter(fieldId, f); }
public Filterable filter(String fieldId, Filterable f) { if (null==f || !Hibernate.isInitialized(f)){ if (f instanceof IObject) { IObject proxy = (IObject) f; IObject unloaded = (IObject) Utils.trueInstance(f.getClass()); unloaded.setId(proxy.getId...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0b36a8e77f5bacb7e122d76ffce01866205b09d7/ProxyCleanupFilter.java/buggy/components/server/src/ome/tools/hibernate/ProxyCleanupFilter.java
public Object invoke(MethodInvocation arg0) throws Throwable { return filter(null,arg0.proceed()); }
public Object invoke(MethodInvocation arg0) throws Throwable { return filter(null, arg0.proceed()); }
public Object invoke(MethodInvocation arg0) throws Throwable { return filter(null,arg0.proceed()); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0b36a8e77f5bacb7e122d76ffce01866205b09d7/ProxyCleanupFilter.java/buggy/components/server/src/ome/tools/hibernate/ProxyCleanupFilter.java
return new RubyFixnum(getRuby(), getValue().charAt(idx));
return RubyFixnum.newFixnum(getRuby(), getValue().charAt(idx));
public RubyObject aref(RubyObject[] args) { if (argCount(args, 1, 2) == 2) { int beg = RubyNumeric.fix2int(args[0]); int len = RubyNumeric.fix2int(args[1]); return substr(beg, len); } if (args[0] instanceof RubyFixnum) { int idx = RubyNumeric.fix2int(args[0]); if (idx < 0) { idx += getValue().length();...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/afb67c3765f6466c476317e6bb0c72f6593f05f3/RubyString.java/buggy/org/jruby/RubyString.java
return new RubyFixnum(getRuby(), getValue().charAt(idx));
return RubyFixnum.newFixnum(getRuby(), getValue().charAt(idx));
public RubyObject aref(RubyObject[] args) { if (argCount(args, 1, 2) == 2) { int beg = RubyNumeric.fix2int(args[0]); int len = RubyNumeric.fix2int(args[1]); return substr(beg, len); } if (args[0] instanceof RubyFixnum) { int idx = RubyNumeric.fix2int(args[0]); if (idx < 0) { idx += getValue().length();...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/afb67c3765f6466c476317e6bb0c72f6593f05f3/RubyString.java/buggy/org/jruby/RubyString.java
ruby.yield(new RubyFixnum(ruby, lByteValue[i]));
ruby.yield(RubyFixnum.newFixnum(ruby, lByteValue[i]));
public RubyString each_byte() { byte[] lByteValue = toByteArray(); int lLength = lByteValue.length; for (int i = 0; i < lLength; i++) { ruby.yield(new RubyFixnum(ruby, lByteValue[i])); } return this; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/afb67c3765f6466c476317e6bb0c72f6593f05f3/RubyString.java/buggy/org/jruby/RubyString.java
return new RubyBoolean(getRuby(), getValue().length() == 0);
return RubyBoolean.newBoolean(getRuby(), getValue().length() == 0);
public RubyBoolean empty() { return new RubyBoolean(getRuby(), getValue().length() == 0); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/afb67c3765f6466c476317e6bb0c72f6593f05f3/RubyString.java/buggy/org/jruby/RubyString.java
return new RubyFixnum(getRuby(), getValue().length());
return RubyFixnum.newFixnum(getRuby(), getValue().length());
public RubyFixnum length() { return new RubyFixnum(getRuby(), getValue().length()); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/afb67c3765f6466c476317e6bb0c72f6593f05f3/RubyString.java/buggy/org/jruby/RubyString.java
WFTabBar tb = new WFTabBar();
WFTabbedPane tb = new WFTabbedPane();
protected UIComponent getMainTaskbar() { String bref = WFPage.CONTENT_BUNDLE + "."; WFTabBar tb = new WFTabBar(); tb.setMainAreaStyleClass(null); tb.setId(MAIN_TASKBAR_ID); WFTab buttonContent = tb.addButtonVB(TASK_ID_CONTENT, bref + "content", getContentPerspective()); buttonContent.addActionListener(this); WF...
57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/03557bc59a300e92911a58888cf6c73355c98f1c/CMSPage.java/clean/src/java/com/idega/block/article/CMSPage.java
tb.addTaskbarListener(this);
tb.addTabListener(this);
protected UIComponent getMainTaskbar() { String bref = WFPage.CONTENT_BUNDLE + "."; WFTabBar tb = new WFTabBar(); tb.setMainAreaStyleClass(null); tb.setId(MAIN_TASKBAR_ID); WFTab buttonContent = tb.addButtonVB(TASK_ID_CONTENT, bref + "content", getContentPerspective()); buttonContent.addActionListener(this); WF...
57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/03557bc59a300e92911a58888cf6c73355c98f1c/CMSPage.java/clean/src/java/com/idega/block/article/CMSPage.java
WFTabBar tb = (WFTabBar) link.getParent().getParent().getParent().findComponent(MAIN_TASKBAR_ID);
WFTabbedPane tb = (WFTabbedPane) link.getParent().getParent().getParent().findComponent(MAIN_TASKBAR_ID);
public void processAction(ActionEvent event) { UIComponent link = event.getComponent(); String id = WFUtil.getParameter(link, "id"); WFTabBar tb = (WFTabBar) link.getParent().getParent().getParent().findComponent(MAIN_TASKBAR_ID); tb.setSelectedButtonId(TASK_ID_EDIT); ArticleBlock ab = (ArticleBlock) tb.findCompo...
57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/03557bc59a300e92911a58888cf6c73355c98f1c/CMSPage.java/clean/src/java/com/idega/block/article/CMSPage.java
tb.setSelectedButtonId(TASK_ID_EDIT);
tb.setSelectedMenuItemId(TASK_ID_EDIT);
public void processAction(ActionEvent event) { UIComponent link = event.getComponent(); String id = WFUtil.getParameter(link, "id"); WFTabBar tb = (WFTabBar) link.getParent().getParent().getParent().findComponent(MAIN_TASKBAR_ID); tb.setSelectedButtonId(TASK_ID_EDIT); ArticleBlock ab = (ArticleBlock) tb.findCompo...
57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/03557bc59a300e92911a58888cf6c73355c98f1c/CMSPage.java/clean/src/java/com/idega/block/article/CMSPage.java
WFTabBar tb = (WFTabBar) findComponent(MAIN_TASKBAR_ID); tb.setSelectedButtonId(TASK_ID_EDIT);
WFTabbedPane tb = (WFTabbedPane) findComponent(MAIN_TASKBAR_ID); tb.setSelectedMenuItemId(TASK_ID_EDIT);
public void setEditMode() { WFTabBar tb = (WFTabBar) findComponent(MAIN_TASKBAR_ID); tb.setSelectedButtonId(TASK_ID_EDIT); ArticleBlock ab = (ArticleBlock) tb.findComponent(ArticleBlock.ARTICLE_BLOCK_ID); ab.setEditMode(); }
57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/03557bc59a300e92911a58888cf6c73355c98f1c/CMSPage.java/clean/src/java/com/idega/block/article/CMSPage.java
WFTabBar t = e.getTaskbar();
WFTabbedPane t = e.getTaskbar();
public void tabPressed(WFTabEvent e) { WFTabBar t = e.getTaskbar(); UIComponent articleVersionBlock = t.findComponent(ArticleVersionBlock.ARTICLE_VERSION_BLOCK_ID); if (t.getSelectedButtonId().equals(ArticleBlock.TASK_ID_PREVIEW)) { articleVersionBlock.setRendered(true); } else { articleVersionBlock.setRendere...
57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/03557bc59a300e92911a58888cf6c73355c98f1c/CMSPage.java/clean/src/java/com/idega/block/article/CMSPage.java
if (t.getSelectedButtonId().equals(ArticleBlock.TASK_ID_PREVIEW)) {
if (t.getSelectedMenuItemId().equals(ArticleBlock.TASK_ID_PREVIEW)) {
public void tabPressed(WFTabEvent e) { WFTabBar t = e.getTaskbar(); UIComponent articleVersionBlock = t.findComponent(ArticleVersionBlock.ARTICLE_VERSION_BLOCK_ID); if (t.getSelectedButtonId().equals(ArticleBlock.TASK_ID_PREVIEW)) { articleVersionBlock.setRendered(true); } else { articleVersionBlock.setRendere...
57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/03557bc59a300e92911a58888cf6c73355c98f1c/CMSPage.java/clean/src/java/com/idega/block/article/CMSPage.java
public static BeanDefinitionHolder createBeanDefinition(String propertyName, Set patterns, String referenceType) {
public static BeanDefinitionHolder createBeanDefinition(String name, Set patterns, String referenceType) {
public static BeanDefinitionHolder createBeanDefinition(String propertyName, Set patterns, String referenceType) { RootBeanDefinition beanDefinition = new RootBeanDefinition(SingletonReference.class, 0); ConstructorArgumentValues args = beanDefinition.getConstructorArgumentValues(); args.addInd...
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/6a661ce4fbc3261ed4b3a744b1e1919df53cbbf7/SingletonReference.java/buggy/kernel/src/java/org/gbean/geronimo/SingletonReference.java
ConstructorArgumentValues args = beanDefinition.getConstructorArgumentValues(); args.addIndexedArgumentValue(0, propertyName, String.class.getName()); args.addIndexedArgumentValue(1, patterns, Set.class.getName()); args.addIndexedArgumentValue(2, referenceType, String.class.getName());
MutablePropertyValues propertyValues = beanDefinition.getPropertyValues(); propertyValues.addPropertyValue("name", name); propertyValues.addPropertyValue("patterns", patterns); propertyValues.addPropertyValue("referenceType", referenceType);
public static BeanDefinitionHolder createBeanDefinition(String propertyName, Set patterns, String referenceType) { RootBeanDefinition beanDefinition = new RootBeanDefinition(SingletonReference.class, 0); ConstructorArgumentValues args = beanDefinition.getConstructorArgumentValues(); args.addInd...
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/6a661ce4fbc3261ed4b3a744b1e1919df53cbbf7/SingletonReference.java/buggy/kernel/src/java/org/gbean/geronimo/SingletonReference.java
Details trustedDetails = (Details) previousState[idx]; markLockedIfNecessary( iobj, trustedDetails);
secSys.markLockedIfNecessary( iobj );
public boolean onFlushDirty(Object entity, Serializable id, Object[] currentState, Object[] previousState, String[] propertyNames, Type[] types) { debug("Intercepted update."); boolean altered = false; if ( entity instanceof IObject) { IObject iobj = (IObject) entity; ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9c53370b3f7a88f29e38673527398c205d19f7d6/OmeroInterceptor.java/buggy/components/server/src/ome/tools/hibernate/OmeroInterceptor.java
markLockedIfNecessary( iobj, null );
secSys.markLockedIfNecessary( iobj );
public boolean onSave(Object entity, Serializable id, Object[] state, String[] propertyNames, Type[] types) { debug("Intercepted save."); if ( entity instanceof IObject ) { IObject iobj = (IObject) entity; int idx = detailsIndex( propertyNames ); // New instances ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9c53370b3f7a88f29e38673527398c205d19f7d6/OmeroInterceptor.java/buggy/components/server/src/ome/tools/hibernate/OmeroInterceptor.java
tif.toFront();
void showAnnotationDialog(AnnotateImage requestEvent) { ImageAnnotationCtrl iac = new ImageAnnotationCtrl(this,requestEvent); activeControls.add(iac); TextAnnotationUIF tif = new TextAnnotationUIF(iac,registry); if(requestEvent.isLocationSpecified()) { ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/be6c39ec5b6fd49ef9c5f748ff5da7c2e4b7cf9a/Annotator.java/buggy/SRC/org/openmicroscopy/shoola/agents/annotator/Annotator.java
if (userVCard.getError() != null) {
if (userVCard.getError() != null || userVCard == null) {
public void viewProfile(final String jid, final JComponent parent) { SwingWorker worker = new SwingWorker() { VCard userVCard = new VCard(); public Object construct() { userVCard = getVCard(jid); return vcard; } public void finished() ...
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/7645851bdaa2a933966642360f8bb4b56e708043/VCardManager.java/buggy/src/java/org/jivesoftware/sparkimpl/profile/VCardManager.java
if (userVCard.getError() != null) {
if (userVCard.getError() != null || userVCard == null) {
public void finished() { if (userVCard.getError() != null) { // Show vcard not found JOptionPane.showMessageDialog(parent, "Unable to locate a profile for " + jid, "Profile Not Found", JOptionPane.ERROR_MESSAGE); return; ...
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/7645851bdaa2a933966642360f8bb4b56e708043/VCardManager.java/buggy/src/java/org/jivesoftware/sparkimpl/profile/VCardManager.java
stuffContext (wc, wikiPage, user);
stuffContext (wc, wikiPage, user, pageName);
public final Template handle(WebContext wc) throws HandlerException { String pageName = null; WikiPage wikiPage = null; // who is trying to do something? WikiUser user = getUser (wc); // which action wants to respond to this request? PageAction action = _actionManag...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/a24ecb46046b93185ca4901af358792a86cb2c81/WikiServlet.java/clean/wiki/src/org/tcdi/opensource/wiki/servlet/WikiServlet.java
private void stuffContext (WebContext wc, WikiPage page, WikiUser user) {
private void stuffContext (WebContext wc, WikiPage page, WikiUser user, String pageName) {
private void stuffContext (WebContext wc, WikiPage page, WikiUser user) { wc.put ("Wiki", _wiki); wc.put ("WikiUtil", WikiUtil.getInstance()); wc.put ("Renderer", _wiki.getPageRenderer()); wc.put ("Page", page); wc.put ("User", user); }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/a24ecb46046b93185ca4901af358792a86cb2c81/WikiServlet.java/clean/wiki/src/org/tcdi/opensource/wiki/servlet/WikiServlet.java
wc.put ("PageName", pageName);
private void stuffContext (WebContext wc, WikiPage page, WikiUser user) { wc.put ("Wiki", _wiki); wc.put ("WikiUtil", WikiUtil.getInstance()); wc.put ("Renderer", _wiki.getPageRenderer()); wc.put ("Page", page); wc.put ("User", user); }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/a24ecb46046b93185ca4901af358792a86cb2c81/WikiServlet.java/clean/wiki/src/org/tcdi/opensource/wiki/servlet/WikiServlet.java
Iterator c = img.linkedCategoryIterator();
List<Category> c_list = img.linkedCategoryList(); Iterator c = c_list.iterator();
public static Set invertCGCI(Set imagesAll) { Set cleared = new HashSet(); Set hierarchies = new HashSet(); Iterator i = imagesAll.iterator(); while (i.hasNext()) { Image img = (Image) i.next(); Iterator c = img.linkedCategoryIterator(); if ( ! c...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b392b9e221ea1005e6899480c0f32ea062003c59/HierarchyTransformations.java/buggy/components/server/src/ome/tools/HierarchyTransformations.java
Iterator g = ca.linkedCategoryGroupIterator();
List<CategoryGroup> cg_list = ca.linkedCategoryGroupList(); Iterator g = cg_list.iterator();
public static Set invertCGCI(Set imagesAll) { Set cleared = new HashSet(); Set hierarchies = new HashSet(); Iterator i = imagesAll.iterator(); while (i.hasNext()) { Image img = (Image) i.next(); Iterator c = img.linkedCategoryIterator(); if ( ! c...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b392b9e221ea1005e6899480c0f32ea062003c59/HierarchyTransformations.java/buggy/components/server/src/ome/tools/HierarchyTransformations.java
Iterator d = img.linkedDatasetIterator();
List<Dataset> d_list = img.linkedDatasetList(); Iterator d = d_list.iterator();
public static Set invertPDI(Set imagesAll) { Set cleared = new HashSet(); Set hierarchies = new HashSet(); Iterator i = imagesAll.iterator(); while (i.hasNext()) { Image img = (Image) i.next(); Iterator d = img.linkedDatasetIterator(); if ( ! d.hasNext() ) { ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b392b9e221ea1005e6899480c0f32ea062003c59/HierarchyTransformations.java/buggy/components/server/src/ome/tools/HierarchyTransformations.java
Iterator p = ds.linkedProjectIterator();
List<Project> p_list = ds.linkedProjectList(); Iterator p = p_list.iterator();
public static Set invertPDI(Set imagesAll) { Set cleared = new HashSet(); Set hierarchies = new HashSet(); Iterator i = imagesAll.iterator(); while (i.hasNext()) { Image img = (Image) i.next(); Iterator d = img.linkedDatasetIterator(); if ( ! d.hasNext() ) { ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b392b9e221ea1005e6899480c0f32ea062003c59/HierarchyTransformations.java/buggy/components/server/src/ome/tools/HierarchyTransformations.java
PixelBuffer pixbuf = new PixelBuffer(pixels);
PixelBuffer pixbuf = new PixelBuffer(getPixelsPath(pixels.getId()),pixels);
public PixelBuffer createPixelBuffer(Pixels pixels) throws IOException { PixelBuffer pixbuf = new PixelBuffer(pixels); initPixelBuffer(pixbuf); return pixbuf; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ae0b01fad17fcacba3ec0999ca1ad645f389b5f9/PixelsService.java/clean/components/omeio-nio/src/ome/io/nio/PixelsService.java
return new PixelBuffer(pixels);
return new PixelBuffer(getPixelsPath(pixels.getId()),pixels);
public PixelBuffer getPixelBuffer(Pixels pixels) { return new PixelBuffer(pixels); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ae0b01fad17fcacba3ec0999ca1ad645f389b5f9/PixelsService.java/clean/components/omeio-nio/src/ome/io/nio/PixelsService.java
String path = Helper.getPixelsPath(pixbuf.getId());
String path = getPixelsPath(pixbuf.getId());
private void initPixelBuffer(PixelBuffer pixbuf) throws IOException { String path = Helper.getPixelsPath(pixbuf.getId()); byte[] padding = new byte[pixbuf.getPlaneSize() - NULL_PLANE_SIZE]; FileOutputStream stream = new FileOutputStream(path); for (int z = 0; z < pixbuf...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ae0b01fad17fcacba3ec0999ca1ad645f389b5f9/PixelsService.java/clean/components/omeio-nio/src/ome/io/nio/PixelsService.java
fixnumClass.defineMethod("&", CallbackFactory.getMethod(RubyFixnum.class, "op_and", RubyObject.class));
public static RubyClass createFixnumClass(Ruby ruby) { RubyClass fixnumClass = ruby.defineClass("Fixnum", ruby.getClasses().getIntegerClass()); fixnumClass.includeModule(ruby.getClasses().getPrecisionModule()); fixnumClass.defineSingletonMethod("induced_from", CallbackFactory.getSingletonMethod...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0d05f52f4b20deb7938755dd220bb81c2c2b208e/RubyFixnum.java/buggy/org/jruby/RubyFixnum.java
if (!(oldValue.getClass().equals(newValue.getClass()))) model.setEditorSelectedPane(Editor.PROPERTIES_INDEX);
public void propertyChange(PropertyChangeEvent pce) { String name = pce.getPropertyName(); if (name == null) return; if (name.equals(TreeViewer.CANCEL_LOADING_PROPERTY)) { Browser browser = model.getSelectedBrowser(); if (browser != null) browser.cancel(); } else...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9794ffbd035a4de717ee211573b4844dd0eb3371/TreeViewerControl.java/clean/SRC/org/openmicroscopy/shoola/agents/treeviewer/view/TreeViewerControl.java
loadScript(scriptName.getValue(), new StringReader(source.getValue()), wrap);
loadScript(scriptName.toString(), new StringReader(source.toString()), wrap);
public void loadScript(RubyString scriptName, RubyString source, boolean wrap) { loadScript(scriptName.getValue(), new StringReader(source.getValue()), wrap); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9f2efc63a858fa0507245b207025eab027840a04/Ruby.java/buggy/src/org/jruby/Ruby.java
String name = RubyString.stringValue(args[0]).getValue();
String name = RubyString.stringValue(args[0]).toString();
public IRubyObject basename(IRubyObject[] args) { checkArgumentCount(args, 1, 2); String name = RubyString.stringValue(args[0]).getValue(); if (name.length() > 1 && name.charAt(name.length() - 1) == '/') { name = name.substring(0, name.length() - 1); } // Paths which end in "/" or "\\" must be strip...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9f2efc63a858fa0507245b207025eab027840a04/FileMetaClass.java/buggy/src/org/jruby/runtime/builtin/meta/FileMetaClass.java
String ext = RubyString.stringValue(args[1]).getValue();
String ext = RubyString.stringValue(args[1]).toString();
public IRubyObject basename(IRubyObject[] args) { checkArgumentCount(args, 1, 2); String name = RubyString.stringValue(args[0]).getValue(); if (name.length() > 1 && name.charAt(name.length() - 1) == '/') { name = name.substring(0, name.length() - 1); } // Paths which end in "/" or "\\" must be strip...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9f2efc63a858fa0507245b207025eab027840a04/FileMetaClass.java/buggy/src/org/jruby/runtime/builtin/meta/FileMetaClass.java
String relativePath = RubyString.stringValue(args[0]).getValue();
String relativePath = RubyString.stringValue(args[0]).toString();
public IRubyObject expand_path(IRubyObject[] args) { checkArgumentCount(args, 1, 2); String relativePath = RubyString.stringValue(args[0]).getValue(); int pathLength = relativePath.length(); if (pathLength >= 1 && relativePath.charAt(0) == '~') { // Enebo : Should ~frogger\\foo work (it doesnt i...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9f2efc63a858fa0507245b207025eab027840a04/FileMetaClass.java/buggy/src/org/jruby/runtime/builtin/meta/FileMetaClass.java
relativePath = RubyDir.getHomeDirectoryPath(this).getValue();
relativePath = RubyDir.getHomeDirectoryPath(this).toString();
public IRubyObject expand_path(IRubyObject[] args) { checkArgumentCount(args, 1, 2); String relativePath = RubyString.stringValue(args[0]).getValue(); int pathLength = relativePath.length(); if (pathLength >= 1 && relativePath.charAt(0) == '~') { // Enebo : Should ~frogger\\foo work (it doesnt i...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9f2efc63a858fa0507245b207025eab027840a04/FileMetaClass.java/buggy/src/org/jruby/runtime/builtin/meta/FileMetaClass.java
relativePath = RubyDir.getHomeDirectoryPath(this).getValue() +
relativePath = RubyDir.getHomeDirectoryPath(this).toString() +
public IRubyObject expand_path(IRubyObject[] args) { checkArgumentCount(args, 1, 2); String relativePath = RubyString.stringValue(args[0]).getValue(); int pathLength = relativePath.length(); if (pathLength >= 1 && relativePath.charAt(0) == '~') { // Enebo : Should ~frogger\\foo work (it doesnt i...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9f2efc63a858fa0507245b207025eab027840a04/FileMetaClass.java/buggy/src/org/jruby/runtime/builtin/meta/FileMetaClass.java
cwd = RubyString.stringValue(args[1]).getValue();
cwd = RubyString.stringValue(args[1]).toString();
public IRubyObject expand_path(IRubyObject[] args) { checkArgumentCount(args, 1, 2); String relativePath = RubyString.stringValue(args[0]).getValue(); int pathLength = relativePath.length(); if (pathLength >= 1 && relativePath.charAt(0) == '~') { // Enebo : Should ~frogger\\foo work (it doesnt i...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9f2efc63a858fa0507245b207025eab027840a04/FileMetaClass.java/buggy/src/org/jruby/runtime/builtin/meta/FileMetaClass.java
return new IOModes(getRuntime(), ((RubyString)object).getValue());
return new IOModes(getRuntime(), ((RubyString)object).toString());
private IOModes getModes(IRubyObject object) { if (object instanceof RubyString) { return new IOModes(getRuntime(), ((RubyString)object).getValue()); } else if (object instanceof RubyFixnum) { return new IOModes(getRuntime(), ((RubyFixnum)object).getLongValue()); } throw getRuntime().newTypeError("Invalid type...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9f2efc63a858fa0507245b207025eab027840a04/FileMetaClass.java/buggy/src/org/jruby/runtime/builtin/meta/FileMetaClass.java
RubyString fixedStr = RubyString.newString(getRuntime(), MULTIPLE_DIR_SEPS.matcher(str.getValue()).replaceAll("/"));
RubyString fixedStr = RubyString.newString(getRuntime(), MULTIPLE_DIR_SEPS.matcher(str.toString()).replaceAll("/"));
public RubyString join(IRubyObject[] args) { RubyArray argArray = getRuntime().newArray(args); RubyString str = argArray.join(RubyString.newString(getRuntime(), "/")); // create ruby string, cleaning out double dir separators RubyString fixedStr = RubyString.newString(getRuntim...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9f2efc63a858fa0507245b207025eab027840a04/FileMetaClass.java/buggy/src/org/jruby/runtime/builtin/meta/FileMetaClass.java
return getRuntime().newRubyFileStat(new NormalizedFile(name.getValue()));
return getRuntime().newRubyFileStat(new NormalizedFile(name.toString()));
public IRubyObject lstat(IRubyObject filename) { RubyString name = RubyString.stringValue(filename); return getRuntime().newRubyFileStat(new NormalizedFile(name.getValue())); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9f2efc63a858fa0507245b207025eab027840a04/FileMetaClass.java/buggy/src/org/jruby/runtime/builtin/meta/FileMetaClass.java
return getRuntime().newFixnum(new NormalizedFile(name.getValue()).lastModified());
return getRuntime().newFixnum(new NormalizedFile(name.toString()).lastModified());
public IRubyObject mtime(IRubyObject filename) { RubyString name = RubyString.stringValue(filename); return getRuntime().newFixnum(new NormalizedFile(name.getValue()).lastModified()); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9f2efc63a858fa0507245b207025eab027840a04/FileMetaClass.java/buggy/src/org/jruby/runtime/builtin/meta/FileMetaClass.java
NormalizedFile oldFile = new NormalizedFile(oldNameString.getValue());
NormalizedFile oldFile = new NormalizedFile(oldNameString.toString());
public IRubyObject rename(IRubyObject oldName, IRubyObject newName) { RubyString oldNameString = RubyString.stringValue(oldName); RubyString newNameString = RubyString.stringValue(newName); oldNameString.checkSafeString(); newNameString.checkSafeString(); NormalizedFile oldFile = new No...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9f2efc63a858fa0507245b207025eab027840a04/FileMetaClass.java/buggy/src/org/jruby/runtime/builtin/meta/FileMetaClass.java
throw getRuntime().newErrnoENOENTError("No such file: " + oldNameString.getValue());
throw getRuntime().newErrnoENOENTError("No such file: " + oldNameString);
public IRubyObject rename(IRubyObject oldName, IRubyObject newName) { RubyString oldNameString = RubyString.stringValue(oldName); RubyString newNameString = RubyString.stringValue(newName); oldNameString.checkSafeString(); newNameString.checkSafeString(); NormalizedFile oldFile = new No...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9f2efc63a858fa0507245b207025eab027840a04/FileMetaClass.java/buggy/src/org/jruby/runtime/builtin/meta/FileMetaClass.java
oldFile.renameTo(new NormalizedFile(newNameString.getValue()));
oldFile.renameTo(new NormalizedFile(newNameString.toString()));
public IRubyObject rename(IRubyObject oldName, IRubyObject newName) { RubyString oldNameString = RubyString.stringValue(oldName); RubyString newNameString = RubyString.stringValue(newName); oldNameString.checkSafeString(); newNameString.checkSafeString(); NormalizedFile oldFile = new No...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9f2efc63a858fa0507245b207025eab027840a04/FileMetaClass.java/buggy/src/org/jruby/runtime/builtin/meta/FileMetaClass.java
NormalizedFile lToDelete = new NormalizedFile(filename.getValue());
NormalizedFile lToDelete = new NormalizedFile(filename.toString());
public IRubyObject unlink(IRubyObject[] args) { for (int i = 0; i < args.length; i++) { RubyString filename = RubyString.stringValue(args[i]); filename.checkSafeString(); NormalizedFile lToDelete = new NormalizedFile(filename.getValue()); if (!lToDelete.exists()) { ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9f2efc63a858fa0507245b207025eab027840a04/FileMetaClass.java/buggy/src/org/jruby/runtime/builtin/meta/FileMetaClass.java
throw getRuntime().newErrnoENOENTError(" No such file or directory - \"" + filename.getValue() + "\"");
throw getRuntime().newErrnoENOENTError(" No such file or directory - \"" + filename + "\"");
public IRubyObject unlink(IRubyObject[] args) { for (int i = 0; i < args.length; i++) { RubyString filename = RubyString.stringValue(args[i]); filename.checkSafeString(); NormalizedFile lToDelete = new NormalizedFile(filename.getValue()); if (!lToDelete.exists()) { ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9f2efc63a858fa0507245b207025eab027840a04/FileMetaClass.java/buggy/src/org/jruby/runtime/builtin/meta/FileMetaClass.java
NormalizedFile fileToTouch = new NormalizedFile(filename.getValue());
NormalizedFile fileToTouch = new NormalizedFile(filename.toString());
public IRubyObject utime(IRubyObject[] args) { checkArgumentCount(args, 2, -1); // Ignore access_time argument since Java does not support it. long mtime; if (args[1] instanceof RubyTime) { mtime = ((RubyTime) args[1]).getJavaDate().getTime(); } else if ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9f2efc63a858fa0507245b207025eab027840a04/FileMetaClass.java/buggy/src/org/jruby/runtime/builtin/meta/FileMetaClass.java
filename.getValue() + "\"");
filename + "\"");
public IRubyObject utime(IRubyObject[] args) { checkArgumentCount(args, 2, -1); // Ignore access_time argument since Java does not support it. long mtime; if (args[1] instanceof RubyTime) { mtime = ((RubyTime) args[1]).getJavaDate().getTime(); } else if ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9f2efc63a858fa0507245b207025eab027840a04/FileMetaClass.java/buggy/src/org/jruby/runtime/builtin/meta/FileMetaClass.java
public static RubyString getHomeDirectoryPath(IRubyObject recv) { RubyHash hash = (RubyHash) recv.getRuntime().getObject().getConstant("ENV"); IRubyObject home = hash.aref(recv.getRuntime().newString("HOME")); if (home == null || home.isNil()) { home = hash.aref(recv.getRuntime().newString("LOGDIR")); } if (home == n...
public static IRubyObject getHomeDirectoryPath(IRubyObject recv, String user) { return recv.getRuntime().evalScript("File.open('/etc/passwd') do |f| f.readlines.each do" + "|l| f = l.split(':'); return f[5] if f[0] == '" + user + "'; end; end; nil");
public static RubyString getHomeDirectoryPath(IRubyObject recv) { RubyHash hash = (RubyHash) recv.getRuntime().getObject().getConstant("ENV"); IRubyObject home = hash.aref(recv.getRuntime().newString("HOME")); if (home == null || home.isNil()) { home = hash.aref(recv.getRuntime().newString("LOGDIR")); } if ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/295cdd11472f7ae4b0426336dc7cdcabe946fdc1/RubyDir.java/buggy/src/org/jruby/RubyDir.java
RubyString string = (RubyString) args[1]; RubyException excptn = RubyException.newException(runtime, (RubyClass)args[0], string.getValue());
string = (RubyString) args[1]; excptn = RubyException.newException(runtime, (RubyClass)args[0], string.getValue()); throw new RaiseException(excptn); case 3: if (args[0] == runtime.getClasses().getExceptionClass()) { throw new RaiseException((RubyException) args[0].callMethod("exception", args[1])); } string = (RubyStr...
public static IRubyObject raise(IRubyObject recv, IRubyObject[] args) { // FIXME special case in ruby // recv.checkArgumentCount(args, 0, 2); Ruby runtime = recv.getRuntime(); switch (args.length) { case 0 : IRubyObject defaultException = runtime.getGlobalVariables()....
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/12416797c2bfe7a2abf102c5d0998e2e09f9e691/RubyKernel.java/clean/src/org/jruby/RubyKernel.java
runtime.defineVariable(new StringGlobalVariable(runtime, "$KCODE", runtime.newString("UTF8")));
public static void createGlobals(Ruby runtime) { // Version information: IRubyObject version = runtime.newString(Constants.RUBY_VERSION).freeze(); IRubyObject release = runtime.newString(Constants.COMPILE_DATE).freeze(); IRubyObject platform = runtime.newString(Constants.PLATFORM).freeze...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/312172d22abc380ccb723b1458f5effeddfc51fa/RubyGlobal.java/clean/src/org/jruby/RubyGlobal.java
ArticleItemBean[] articleItemBean = (ArticleItemBean[]) ArticleListBean.loadAllArticlesInFolder(new File("/Test/article/")).toArray(new ArticleItemBean[0]);
ArticleItemBean[] articleItemBean = (ArticleItemBean[]) ArticleListBean.loadAllArticlesInFolder("/files/content").toArray(new ArticleItemBean[0]);
public void updateDataModel(Integer start, Integer rows) { if (_dataModel == null) { _dataModel = new WFDataModel(); } try { ArticleItemBean[] articleItemBean = (ArticleItemBean[]) ArticleListBean.loadAllArticlesInFolder(new File("/Test/article/")).toArray(new ArticleItemBean[0]); int availableRows = articleI...
57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/72fe15183822be99f6dfa9d697bce89864c5f7d8/ListArticlesBean.java/buggy/src/java/com/idega/block/article/bean/ListArticlesBean.java
catch (XMPPException e) { return;
catch (Exception e) {
private void bookmarkRoom(String serviceName, Tree serviceTree) { int selectedRow = roomsTable.getSelectedRow(); if (-1 == selectedRow) { JOptionPane.showMessageDialog(dlg, Res.getString("message.select.add.room.to.add"), Res.getString("title.group.chat"), JOptionPane.INFORMATION_MESSAGE); ...
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/06a8365c61222dcafb7753ee86fd2c12dc1fb6df/ConferenceRooms.java/clean/src/java/org/jivesoftware/spark/ui/conferences/ConferenceRooms.java
public Project(Integer projectId, String view, String name, String description, org.openmicroscopy.omero.model.Group group, org.openmicroscopy.omero.model.Experimenter experimenter, Set datasets) { this.projectId = projectId; this.view = view; this.name = name; this.description = description; this.group = group; this.e...
public Project() {
public Project(Integer projectId, String view, String name, String description, org.openmicroscopy.omero.model.Group group, org.openmicroscopy.omero.model.Experimenter experimenter, Set datasets) { this.projectId = projectId; this.view = view; this.name = name; this.description = descrip...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/Project.java/clean/components/common/src/org/openmicroscopy/omero/model/Project.java
public org.openmicroscopy.omero.model.Experimenter getExperimenter() {
public Experimenter getExperimenter() {
public org.openmicroscopy.omero.model.Experimenter getExperimenter() { return this.experimenter; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/Project.java/clean/components/common/src/org/openmicroscopy/omero/model/Project.java
public org.openmicroscopy.omero.model.Group getGroup() {
public Group getGroup() {
public org.openmicroscopy.omero.model.Group getGroup() { return this.group; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/Project.java/clean/components/common/src/org/openmicroscopy/omero/model/Project.java
public void setExperimenter(org.openmicroscopy.omero.model.Experimenter experimenter) {
public void setExperimenter(Experimenter experimenter) {
public void setExperimenter(org.openmicroscopy.omero.model.Experimenter experimenter) { this.experimenter = experimenter; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/Project.java/clean/components/common/src/org/openmicroscopy/omero/model/Project.java
public void setGroup(org.openmicroscopy.omero.model.Group group) {
public void setGroup(Group group) {
public void setGroup(org.openmicroscopy.omero.model.Group group) { this.group = group; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/Project.java/clean/components/common/src/org/openmicroscopy/omero/model/Project.java
System.err.println(absoluteLocation);
public void respondMouseClick(PInputEvent event) { Point2D pos = event.getPositionRelativeTo(this); if(prevImageShape != null) { if(prevImageShape.contains(pos)) { parentThumbnail.showPreviousImage(); setImage(thumbnailImages[parentThumbnai...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/28e98417641b00a2e12a791f10f204dc4562dec1/SemanticZoomNode.java/buggy/SRC/org/openmicroscopy/shoola/agents/browser/ui/SemanticZoomNode.java
if (iVisited.getArgsNode() == null) { result = null; }
public void visitYieldNode(YieldNode iVisited) { eval(iVisited.getArgsNode()); result = threadContext.yield(result, null, null, false, iVisited.getCheckState()); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/e868362278466196d97116a61006e44bf1ac3742/EvaluateVisitor.java/buggy/src/org/jruby/evaluator/EvaluateVisitor.java
ruby.setGlobalVar("$*", RubyArray.newArray(ruby));
public static Ruby getDefaultInstance(Class regexpAdapterClass) { Ruby ruby = new Ruby(); ruby.setRegexpAdapterClass(regexpAdapterClass); ruby.init(); return ruby; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/Ruby.java/clean/org/jruby/Ruby.java
String msg = "Wrong number of arguments for method '" + ruby.getRubyFrame().getLastFunc() + "' in class " + getRubyClass().toName() + ". " + args.length + " is not in Range " + min + ".." + max; throw new RubyArgumentException(getRuby(), msg);
throw new RubyArgumentException(getRuby(), "Wrong # of arguments for method. " + args.length + " is not in Range " + min + ".." + max);
protected int argCount(RubyObject[] args, int min, int max) { int len = args.length; if (len < min || (max > -1 && len > max)) { String msg = "Wrong number of arguments for method '" + ruby.getRubyFrame().getLastFunc() + "' in class " + getRubyClass().toName() + ". ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/786cea08c1dd2092a02d1254b49fbee371ace5f9/RubyObject.java/buggy/org/jruby/RubyObject.java
public RubyObject callSuper(RubyObject[] args) { if (ruby.getRubyFrame().getLastClass() == null) { throw new NameError(ruby, "superclass method '" + ruby.getRubyFrame().getLastFunc() + "' must be enabled by enableSuper()."); } ruby.getIter().push(); RubyObject ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/RubyRuntime.java/clean/org/jruby/runtime/RubyRuntime.java
public RubyObject callSuper(RubyObject[] args) { if (ruby.getRubyFrame().getLastClass() == null) { throw new NameError(ruby, "superclass method '" + ruby.getRubyFrame().getLastFunc() + "' must be enabled by enableSuper()."); } ruby.getIter().push(); RubyObject ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/RubyRuntime.java/clean/org/jruby/runtime/RubyRuntime.java
public RubyObject callSuper(RubyObject[] args) { if (ruby.getRubyFrame().getLastClass() == null) { throw new NameError(ruby, "superclass method '" + ruby.getRubyFrame().getLastFunc() + "' must be enabled by enableSuper()."); } ruby.getIter().push(); RubyObject ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/RubyRuntime.java/clean/org/jruby/runtime/RubyRuntime.java
result = ruby.getRubyFrame().getLastClass().getSuperClass().call(ruby.getRubyFrame().getSelf(), ruby.getRubyFrame().getLastFunc(), new RubyPointer(args), 3);
result = ruby.getRubyFrame().getLastClass().getSuperClass().call( ruby.getRubyFrame().getSelf(), ruby.getRubyFrame().getLastFunc(), new RubyPointer(args), 3);
public RubyObject callSuper(RubyObject[] args) { if (ruby.getRubyFrame().getLastClass() == null) { throw new NameError(ruby, "superclass method '" + ruby.getRubyFrame().getLastFunc() + "' must be enabled by enableSuper()."); } ruby.getIter().push(); RubyObject ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/RubyRuntime.java/clean/org/jruby/runtime/RubyRuntime.java
ruby.getIter().pop();
ruby.getIter().pop();
public RubyObject callSuper(RubyObject[] args) { if (ruby.getRubyFrame().getLastClass() == null) { throw new NameError(ruby, "superclass method '" + ruby.getRubyFrame().getLastFunc() + "' must be enabled by enableSuper()."); } ruby.getIter().push(); RubyObject ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/RubyRuntime.java/clean/org/jruby/runtime/RubyRuntime.java
public RubyObject callSuper(RubyObject[] args) { if (ruby.getRubyFrame().getLastClass() == null) { throw new NameError(ruby, "superclass method '" + ruby.getRubyFrame().getLastFunc() + "' must be enabled by enableSuper()."); } ruby.getIter().push(); RubyObject ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/RubyRuntime.java/clean/org/jruby/runtime/RubyRuntime.java
return errorStream != null ? errorStream : System.err; }
return new PrintStream(((RubyIO) ruby.getGlobalVar("$stderr")).getOutStream()); }
public PrintStream getErrorStream() { return errorStream != null ? errorStream : System.err; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/RubyRuntime.java/clean/org/jruby/runtime/RubyRuntime.java
return inputStream != null ? inputStream : System.in; }
return ((RubyIO) ruby.getGlobalVar("$stdin")).getInStream(); }
public InputStream getInputStream() { return inputStream != null ? inputStream : System.in; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/RubyRuntime.java/clean/org/jruby/runtime/RubyRuntime.java
return outputStream != null ? outputStream : System.out; }
return new PrintStream(((RubyIO) ruby.getGlobalVar("$stdout")).getOutStream()); }
public PrintStream getOutputStream() { return outputStream != null ? outputStream : System.out; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/RubyRuntime.java/clean/org/jruby/runtime/RubyRuntime.java
return printBugs; }
return printBugs; }
public boolean getPrintBugs() { return printBugs; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/RubyRuntime.java/clean/org/jruby/runtime/RubyRuntime.java
if (iFile == null) { throw new RuntimeException("No such file to load"); }
if (iFile == null) { throw new RuntimeException("No such file to load"); }
public void loadFile(File iFile, boolean wrap) { if (iFile == null) { throw new RuntimeException("No such file to load"); } try { StringBuffer source = new StringBuffer((int) iFile.length()); BufferedReader br = new BufferedReader(new FileReader(iFile)); String line; while ((line = br.readLine()) != null)...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/RubyRuntime.java/clean/org/jruby/runtime/RubyRuntime.java
try { StringBuffer source = new StringBuffer((int) iFile.length()); BufferedReader br = new BufferedReader(new FileReader(iFile)); String line; while ((line = br.readLine()) != null) { source.append(line).append('\n'); } br.close();
try { StringBuffer source = new StringBuffer((int) iFile.length()); BufferedReader br = new BufferedReader(new FileReader(iFile)); String line; while ((line = br.readLine()) != null) { source.append(line).append('\n'); } br.close();
public void loadFile(File iFile, boolean wrap) { if (iFile == null) { throw new RuntimeException("No such file to load"); } try { StringBuffer source = new StringBuffer((int) iFile.length()); BufferedReader br = new BufferedReader(new FileReader(iFile)); String line; while ((line = br.readLine()) != null)...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/RubyRuntime.java/clean/org/jruby/runtime/RubyRuntime.java
loadScript(new RubyString(ruby, iFile.getPath()), new RubyString(ruby, source.toString()), wrap);
loadScript(new RubyString(ruby, iFile.getPath()), new RubyString(ruby, source.toString()), wrap);
public void loadFile(File iFile, boolean wrap) { if (iFile == null) { throw new RuntimeException("No such file to load"); } try { StringBuffer source = new StringBuffer((int) iFile.length()); BufferedReader br = new BufferedReader(new FileReader(iFile)); String line; while ((line = br.readLine()) != null)...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/RubyRuntime.java/clean/org/jruby/runtime/RubyRuntime.java
} catch (IOException ioExcptn) { getErrorStream().println("Cannot read Rubyfile: \"" + iFile.getPath() + "\""); getErrorStream().println("IOEception: " + ioExcptn.getMessage()); } }
} catch (IOException ioExcptn) { getErrorStream().println("Cannot read Rubyfile: \"" + iFile.getPath() + "\""); getErrorStream().println("IOEception: " + ioExcptn.getMessage()); } }
public void loadFile(File iFile, boolean wrap) { if (iFile == null) { throw new RuntimeException("No such file to load"); } try { StringBuffer source = new StringBuffer((int) iFile.length()); BufferedReader br = new BufferedReader(new FileReader(iFile)); String line; while ((line = br.readLine()) != null)...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/RubyRuntime.java/clean/org/jruby/runtime/RubyRuntime.java
public void loadScript(RubyString scriptName, RubyString source, boolean wrap) { RubyObject self = ruby.getRubyTopSelf(); CRefNode savedCRef = ruby.getCRef(); // TMP_PROTECT; if (wrap && ruby.getSafeLevel() >= 4) { // Check_Type(fname, T_STRING); } else { // ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/RubyRuntime.java/clean/org/jruby/runtime/RubyRuntime.java
} finally {
} finally {
public void loadScript(RubyString scriptName, RubyString source, boolean wrap) { RubyObject self = ruby.getRubyTopSelf(); CRefNode savedCRef = ruby.getCRef(); // TMP_PROTECT; if (wrap && ruby.getSafeLevel() >= 4) { // Check_Type(fname, T_STRING); } else { // ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/RubyRuntime.java/clean/org/jruby/runtime/RubyRuntime.java
if (excp == null || excp.isNil()) { return; } RubyArray backtrace = (RubyArray)excp.funcall("backtrace"); if (backtrace.isNil()) { if (ruby.getSourceFile() != null) { getErrorStream().print(ruby.getSourceFile() + ':' + ruby.getSourceLine()); } else { getErrorStream().print(ruby.getSourceLine()); } } else if (backtrac...
if (excp == null || excp.isNil()) { return; }
public void printError(RubyException excp) { if (excp == null || excp.isNil()) { return; } RubyArray backtrace = (RubyArray)excp.funcall("backtrace"); if (backtrace.isNil()) { if (ruby.getSourceFile() != null) { getErrorStream().print(ruby.getSourceFile() + ':' + r...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/RubyRuntime.java/clean/org/jruby/runtime/RubyRuntime.java
if (type == ruby.getExceptions().getRuntimeError() && info.length() == 0) { getErrorStream().print(": unhandled exception\n"); } else { String path = type.getClassPath().toString(); if (info.length() == 0) { getErrorStream().print(": " + path + '\n'); } else { if (path.startsWith("#")) { path = null; } String tail = ...
RubyArray backtrace = (RubyArray) excp.funcall("backtrace"); if (backtrace.isNil()) { if (ruby.getSourceFile() != null) { getErrorStream().print(ruby.getSourceFile() + ':' + ruby.getSourceLine()); } else { getErrorStream().print(ruby.getSourceLine()); } } else if (backtrace.getLength() == 0) { printErrorPos(); } else ...
public void printError(RubyException excp) { if (excp == null || excp.isNil()) { return; } RubyArray backtrace = (RubyArray)excp.funcall("backtrace"); if (backtrace.isNil()) { if (ruby.getSourceFile() != null) { getErrorStream().print(ruby.getSourceFile() + ':' + r...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/RubyRuntime.java/clean/org/jruby/runtime/RubyRuntime.java
if (ruby.getSourceFile() != null) { if (ruby.getRubyFrame().getLastFunc() != null) { getErrorStream().print(ruby.getSourceFile() + ':' + ruby.getSourceLine()); getErrorStream().print(":in '" + ruby.getRubyFrame().getLastFunc() + '\''); } else if (ruby.getSourceLine() != 0) { getErrorStream().print(ruby.getSourceFile() ...
if (ruby.getSourceFile() != null) { if (ruby.getRubyFrame().getLastFunc() != null) { getErrorStream().print(ruby.getSourceFile() + ':' + ruby.getSourceLine()); getErrorStream().print(":in '" + ruby.getRubyFrame().getLastFunc() + '\''); } else if (ruby.getSourceLine() != 0) { getErrorStream().print(ruby.getSourceFile() ...
private void printErrorPos() { if (ruby.getSourceFile() != null) { if (ruby.getRubyFrame().getLastFunc() != null) { getErrorStream().print(ruby.getSourceFile() + ':' + ruby.getSourceLine()); getErrorStream().print(":in '" + ruby.getRubyFrame().getLastFunc() + '\''); } else i...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/RubyRuntime.java/clean/org/jruby/runtime/RubyRuntime.java
public void setErrorStream(PrintStream errorStream) { this.errorStream = errorStream; }
public void setErrorStream(PrintStream errStream) { ruby.setGlobalVar("$stderr", RubyIO.stderr(ruby, ruby.getClasses().getIoClass(), errStream)); }
public void setErrorStream(PrintStream errorStream) { this.errorStream = errorStream; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/RubyRuntime.java/clean/org/jruby/runtime/RubyRuntime.java
public void setInputStream(InputStream inputStream) { this.inputStream = inputStream; }
public void setInputStream(InputStream inStream) { ruby.setGlobalVar("$stdin", RubyIO.stdin(ruby, ruby.getClasses().getIoClass(), inStream)); }
public void setInputStream(InputStream inputStream) { this.inputStream = inputStream; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/RubyRuntime.java/clean/org/jruby/runtime/RubyRuntime.java
public void setOutputStream(PrintStream outputStream) { this.outputStream = outputStream; }
public void setOutputStream(PrintStream outStream) { RubyObject stdout = RubyIO.stdout(ruby, ruby.getClasses().getIoClass(), outStream); if (ruby.getGlobalVar("$stdout") == ruby.getGlobalVar("$>")) { ruby.setGlobalVar("$>", stdout); } ruby.setGlobalVar("$stdout", stdout); }
public void setOutputStream(PrintStream outputStream) { this.outputStream = outputStream; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/RubyRuntime.java/clean/org/jruby/runtime/RubyRuntime.java
this.printBugs = printBugs; }
this.printBugs = printBugs; }
public void setPrintBugs(boolean printBugs) { this.printBugs = printBugs; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/RubyRuntime.java/clean/org/jruby/runtime/RubyRuntime.java
viewHistoryAction.putValue(Action.NAME, Res.getString("menuitem.view.contact.history "));
viewHistoryAction.putValue(Action.NAME, Res.getString("menuitem.view.contact.history"));
public void initialize() { SparkManager.getChatManager().addChatRoomListener(this); final ContactList contactList = SparkManager.getWorkspace().getContactList(); final Action viewHistoryAction = new AbstractAction() { public void actionPerformed(ActionEvent actionEvent) { ...
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/558e9531ecfa541b9a4cd26214ce3d63392b1175/ChatTranscriptPlugin.java/buggy/src/java/org/jivesoftware/sparkimpl/plugin/transcripts/ChatTranscriptPlugin.java