bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public UIComponent getEditContainer() { IWContext iwc = IWContext.getInstance(); WFResourceUtil localizer = WFResourceUtil.getResourceUtilArticle();// String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); mainContainer.setId(ARTICLE_EDITOR_ID); WFErrorMessages em = new WFErr... | public UIComponent getEditContainer() { IWContext iwc = IWContext.getInstance(); WFResourceUtil localizer = WFResourceUtil.getResourceUtilArticle();// String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); mainContainer.setId(ARTICLE_EDITOR_ID); WFErrorMessages em = new WFErr... | 3,229,554 |
public UIComponent getEditContainer() { IWContext iwc = IWContext.getInstance(); WFResourceUtil localizer = WFResourceUtil.getResourceUtilArticle();// String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); mainContainer.setId(ARTICLE_EDITOR_ID); WFErrorMessages em = new WFErr... | public UIComponent getEditContainer() { IWContext iwc = IWContext.getInstance(); WFResourceUtil localizer = WFResourceUtil.getResourceUtilArticle();// String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); mainContainer.setId(ARTICLE_EDITOR_ID); WFErrorMessages em = new WFErr... | 3,229,555 |
public UIComponent getEditContainer() { IWContext iwc = IWContext.getInstance(); WFResourceUtil localizer = WFResourceUtil.getResourceUtilArticle();// String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); mainContainer.setId(ARTICLE_EDITOR_ID); WFErrorMessages em = new WFErr... | public UIComponent getEditContainer() { IWContext iwc = IWContext.getInstance(); WFResourceUtil localizer = WFResourceUtil.getResourceUtilArticle();// String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); mainContainer.setId(ARTICLE_EDITOR_ID); WFErrorMessages em = new WFErr... | 3,229,556 |
public UIComponent getEditContainer() { IWContext iwc = IWContext.getInstance(); WFResourceUtil localizer = WFResourceUtil.getResourceUtilArticle();// String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); mainContainer.setId(ARTICLE_EDITOR_ID); WFErrorMessages em = new WFErr... | public UIComponent getEditContainer() { IWContext iwc = IWContext.getInstance(); WFResourceUtil localizer = WFResourceUtil.getResourceUtilArticle();// String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); mainContainer.setId(ARTICLE_EDITOR_ID); WFErrorMessages em = new WFErr... | 3,229,557 |
public UIComponent getEditContainer() { IWContext iwc = IWContext.getInstance(); WFResourceUtil localizer = WFResourceUtil.getResourceUtilArticle();// String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); mainContainer.setId(ARTICLE_EDITOR_ID); WFErrorMessages em = new WFErr... | publicUIComponentgetEditContainer(){ IWContextiwc=IWContext.getInstance(); WFResourceUtillocalizer=WFResourceUtil.getResourceUtilArticle();// Stringbref=WFPage.CONTENT_BUNDLE+"."; WFContainermainContainer=newWFContainer(); mainContainer.setId(ARTICLE_EDITOR_ID); WFErrorMessagesem=newWFErrorMessages(); em.addE... | 3,229,558 |
public UIComponent getEditContainer() { IWContext iwc = IWContext.getInstance(); WFResourceUtil localizer = WFResourceUtil.getResourceUtilArticle();// String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); mainContainer.setId(ARTICLE_EDITOR_ID); WFErrorMessages em = new WFErr... | publicUIComponentgetEditContainer(){ IWContextiwc=IWContext.getInstance(); WFResourceUtillocalizer=WFResourceUtil.getResourceUtilArticle();// Stringbref=WFPage.CONTENT_BUNDLE+"."; WFContainermainContainer=newWFContainer(); mainContainer.setId(ARTICLE_EDITOR_ID); WFErrorMessagesem=newWFErrorMessages(); em.addE... | 3,229,559 |
public UIComponent getEditContainer() { IWContext iwc = IWContext.getInstance(); WFResourceUtil localizer = WFResourceUtil.getResourceUtilArticle();// String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); mainContainer.setId(ARTICLE_EDITOR_ID); WFErrorMessages em = new WFErr... | public UIComponent getEditContainer() { IWContext iwc = IWContext.getInstance(); WFResourceUtil localizer = WFResourceUtil.getResourceUtilArticle();// String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); mainContainer.setId(ARTICLE_EDITOR_ID); WFErrorMessages em = new WFErr... | 3,229,560 |
public UIComponent getEditContainer() { IWContext iwc = IWContext.getInstance(); WFResourceUtil localizer = WFResourceUtil.getResourceUtilArticle();// String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); mainContainer.setId(ARTICLE_EDITOR_ID); WFErrorMessages em = new WFErr... | publicUIComponentgetEditContainer(){ IWContextiwc=IWContext.getInstance(); WFResourceUtillocalizer=WFResourceUtil.getResourceUtilArticle();// Stringbref=WFPage.CONTENT_BUNDLE+"."; WFContainermainContainer=newWFContainer(); mainContainer.setId(ARTICLE_EDITOR_ID); WFErrorMessagesem=newWFErrorMessages(); em.addE... | 3,229,561 |
public UIComponent getEditContainer() { IWContext iwc = IWContext.getInstance(); WFResourceUtil localizer = WFResourceUtil.getResourceUtilArticle();// String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); mainContainer.setId(ARTICLE_EDITOR_ID); WFErrorMessages em = new WFErr... | public UIComponent getEditContainer() { IWContext iwc = IWContext.getInstance(); WFResourceUtil localizer = WFResourceUtil.getResourceUtilArticle();// String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); mainContainer.setId(ARTICLE_EDITOR_ID); WFErrorMessages em = new WFErr... | 3,229,562 |
public UIComponent getEditContainer() { IWContext iwc = IWContext.getInstance(); WFResourceUtil localizer = WFResourceUtil.getResourceUtilArticle();// String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); mainContainer.setId(ARTICLE_EDITOR_ID); WFErrorMessages em = new WFErr... | public UIComponent getEditContainer() { IWContext iwc = IWContext.getInstance(); WFResourceUtil localizer = WFResourceUtil.getResourceUtilArticle();// String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); mainContainer.setId(ARTICLE_EDITOR_ID); WFErrorMessages em = new WFErr... | 3,229,563 |
public UIComponent getEditContainer() { IWContext iwc = IWContext.getInstance(); WFResourceUtil localizer = WFResourceUtil.getResourceUtilArticle();// String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); mainContainer.setId(ARTICLE_EDITOR_ID); WFErrorMessages em = new WFErr... | public UIComponent getEditContainer() { IWContext iwc = IWContext.getInstance(); WFResourceUtil localizer = WFResourceUtil.getResourceUtilArticle();// String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); mainContainer.setId(ARTICLE_EDITOR_ID); WFErrorMessages em = new WFErr... | 3,229,564 |
public UIComponent getEditContainer() { IWContext iwc = IWContext.getInstance(); WFResourceUtil localizer = WFResourceUtil.getResourceUtilArticle();// String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); mainContainer.setId(ARTICLE_EDITOR_ID); WFErrorMessages em = new WFErr... | public UIComponent getEditContainer() { IWContext iwc = IWContext.getInstance(); WFResourceUtil localizer = WFResourceUtil.getResourceUtilArticle();// String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); mainContainer.setId(ARTICLE_EDITOR_ID); WFErrorMessages em = new WFErr... | 3,229,565 |
protected void initializeComponent(FacesContext context) { setId(EDIT_ARTICLE_BLOCK_ID); if(clearOnInit){ ArticleItemBean bean = getArticleItemBean(); if(bean!=null){ bean.clear(); } } // WFUtil.invoke(EDIT_ARTICLES_BEAN_ID, "setArticleLinkListener", this, ActionListener.class); add(getEditContainer());... | protectedvoidinitializeComponent(FacesContextcontext){ setId(EDIT_ARTICLE_BLOCK_ID); if(clearOnInit){ ArticleItemBeanbean=getArticleItemBean(); if(bean!=null){ bean.clear(); } } // WFUtil.invoke(EDIT_ARTICLES_BEAN_ID,"setArticleLinkListener",this,ActionListener.class); add(getEditContainer()); } | 3,229,566 |
protected void initializeComponent(FacesContext context) { setId(EDIT_ARTICLE_BLOCK_ID); if(clearOnInit){ ArticleItemBean bean = getArticleItemBean(); if(bean!=null){ bean.clear(); } } // WFUtil.invoke(EDIT_ARTICLES_BEAN_ID, "setArticleLinkListener", this, ActionListener.class); add(getEditContainer());... | protected void initializeComponent(FacesContext context) { setId(EDIT_ARTICLE_BLOCK_ID); if(clearOnInit){ ArticleItemBean bean = getArticleItemBean(); if(bean!=null){ bean.clear(); } } // WFUtil.invoke(EDIT_ARTICLES_BEAN_ID, "setArticleLinkListener", this, ActionListener.class); add(getEditContainer());... | 3,229,567 |
public void processAction(ActionEvent event) { String id = event.getComponent().getId(); UIComponent rootParent = rootParent = event.getComponent().getParent().getParent().getParent(); EditArticleView ab = (EditArticleView) rootParent.findComponent(EDIT_ARTICLE_BLOCK_ID); if (id.equals(SAVE_ID)) { //We have the ... | public void processAction(ActionEvent event) { String id = event.getComponent().getId(); UIComponent rootParent = rootParent = event.getComponent().getParent().getParent().getParent(); EditArticleView ab = (EditArticleView) rootParent.findComponent(EDIT_ARTICLE_BLOCK_ID); if (id.equals(SAVE_ID)) { //We have the ... | 3,229,568 |
public void processValueChange(ValueChangeEvent arg0) throws AbortProcessingException { if(arg0.getOldValue()==null) { return; } System.out.println("Language value has changed from "+arg0.getOldValue()+" to "+arg0.getNewValue()); ArticleItemBean bean = getArticleItemBean(); //String articlePath = (String)WFUt... | public void processValueChange(ValueChangeEvent arg0) throws AbortProcessingException { if(arg0.getOldValue()==null) { return; } System.out.println("Language value has changed from "+arg0.getOldValue()+" to "+arg0.getNewValue()); ArticleItemBean bean = getArticleItemBean(); //String articlePath = (String)WFUt... | 3,229,569 |
public void processValueChange(ValueChangeEvent arg0) throws AbortProcessingException { if(arg0.getOldValue()==null) { return; } System.out.println("Language value has changed from "+arg0.getOldValue()+" to "+arg0.getNewValue()); ArticleItemBean bean = getArticleItemBean(); //String articlePath = (String)WFUt... | public void processValueChange(ValueChangeEvent arg0) throws AbortProcessingException { if(arg0.getOldValue()==null) { return; } System.out.println("Language value has changed from "+arg0.getOldValue()+" to "+arg0.getNewValue()); ArticleItemBean bean = getArticleItemBean(); //String articlePath = (String)WFUt... | 3,229,570 |
public void setMessageMode() { WFTabbedPane tb = (WFTabbedPane) findComponent(TASKBAR_ID); tb.setSelectedMenuItemId(TASK_ID_MESSAGES); } | public void setMessageMode() { WFTabbedPane tb = (WFTabbedPane) findComponent(TASKBAR_ID); tb.setSelectedMenuItemId(TASK_ID_MESSAGES); } | 3,229,571 |
public boolean storeArticle() { try{ getArticleItemBean().store(); setEditMode(EDIT_MODE_EDIT); setUserMessage("article_saved"); return true; } catch(ArticleStoreException ae){ String errorKey = ae.getErrorKey(); WFUtil.addMessageVB(findComponent(SAVE_ID),ArticleUtil.IW_BUNDLE_IDENTIFIER, errorKey); ... | public boolean storeArticle() { try{ getArticleItemBean().store(); setEditMode(EDIT_MODE_EDIT); setUserMessage("article_saved"); return true; } catch(ArticleStoreException ae){ String errorKey = ae.getErrorKey(); WFUtil.addMessageVB(findComponent(SAVE_ID),ArticleUtil.IW_BUNDLE_IDENTIFIER, errorKey); ... | 3,229,572 |
public boolean storeArticle() { try{ getArticleItemBean().store(); setEditMode(EDIT_MODE_EDIT); setUserMessage("article_saved"); return true; } catch(ArticleStoreException ae){ String errorKey = ae.getErrorKey(); WFUtil.addMessageVB(findComponent(SAVE_ID),ArticleUtil.IW_BUNDLE_IDENTIFIER, errorKey); ... | public boolean storeArticle() { try{ getArticleItemBean().store(); setEditMode(EDIT_MODE_EDIT); setUserMessage("article_saved"); return true; } catch(ArticleStoreException ae){ String errorKey = ae.getErrorKey(); WFUtil.addMessageVB(findComponent(SAVE_ID),ArticleUtil.IW_BUNDLE_IDENTIFIER, errorKey); ... | 3,229,573 |
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 (getRequestedSt... | 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 (getRequestedSt... | 3,229,574 |
synchronized void done() { _brokerUsers--; if ((_brokerUsers == 0) && (_broker != null)) { _broker.shutdown(); _broker = null; } } | synchronized void done() { _brokerUsers--; if ((_brokerUsers == 0) && (_broker != null)) { _broker.shutdown(); _broker = null; } } | 3,229,575 |
synchronized Broker init() throws InitException { _brokerUsers++; if (_broker == null) { try { _broker = (_config == null) ? new Broker() : new Broker(_config); } catch (InitException e) {e.printStackTrace(); _broker = null; _brokerUsers = 0; ... | synchronized Broker init() throws InitException { _brokerUsers++; if (_broker == null) { try { _broker = (_config == null) ? new Broker() : new Broker(_config); } catch (InitException e) {e.printStackTrace(); _broker = null; _brokerUsers = 0; ... | 3,229,576 |
synchronized Broker init() throws InitException { _brokerUsers++; if (_broker == null) { try { _broker = (_config == null) ? new Broker() : new Broker(_config); } catch (InitException e) {e.printStackTrace(); _broker = null; _brokerUsers = 0; ... | synchronized Broker init() throws InitException { _brokerUsers++; if (_broker == null) { try { _broker = (_config == null) ? new Broker() : new Broker(_config); } catch (InitException e) {e.printStackTrace(); _broker = null; _brokerUsers = 0; ... | 3,229,577 |
final public Broker getBroker() { // this method can be unsynch. because the broker manages its own // state, plus the only time the _broker will be shutdown or null // is after the last servlet has shutdown--so why would anyone be // accessing us then? if they do the _broker will throw excepti... | final public Broker getBroker() { // this method can be unsynch. because the broker manages its own // state, plus the only time the _broker will be shutdown or null // is after the last servlet has shutdown--so why would anyone be // accessing us then? if they do the _broker will throw excepti... | 3,229,578 |
final public String getConfig(String key) throws NotFoundException { return (String) _broker.get("config", key); } | final public String getConfig(String key) throws NotFoundException { return (String) _broker.get("config", key); } | 3,229,579 |
final public Template getTemplate(String key) throws NotFoundException { return (Template) _tmplProvider.get(key); } | final public Template getTemplate(String key) throws NotFoundException { return (Template) _tmplProvider.get(key); } | 3,229,580 |
final public Template getTemplate(String key) throws NotFoundException { return (Template) _tmplProvider.get(key); } | final public Template getTemplate(String key) throws NotFoundException { return (Template) _tmplProvider.get(key); } | 3,229,581 |
final public String getURL(String url) throws NotFoundException { return (String) _urlProvider.get(url); } | final public String getURL(String url) throws NotFoundException { return (String) _urlProvider.get(url); } | 3,229,582 |
final public WebContext getWebContext(HttpServletRequest req, HttpServletResponse resp) { SimpleStack cstack = (SimpleStack) _webContextCache.get(); WebContext c = (WebContext) cstack.pop(); if (c == null) { c = _webContext.newInstance(req,resp); } c.setContextPool(cst... | final public WebContext getWebContext(HttpServletRequest req, HttpServletResponse resp) { SimpleStack cstack = (SimpleStack) _webContextCache.get(); WebContext c = (WebContext) cstack.pop(); if (c == null) { c = _webContext.newInstance(req,resp); } c.setContextPool(cst... | 3,229,583 |
final public WebContext getWebContext(HttpServletRequest req, HttpServletResponse resp) { SimpleStack cstack = (SimpleStack) _webContextCache.get(); WebContext c = (WebContext) cstack.pop(); if (c == null) { c = _webContext.newInstance(req,resp); } c.setContextPool(cst... | final public WebContext getWebContext(HttpServletRequest req, HttpServletResponse resp) { SimpleStack cstack = (SimpleStack) _webContextCache.get(); WebContext c = (WebContext) cstack.pop(); if (c == null) { c = _webContext.newInstance(req,resp); } c.setContextPool(cst... | 3,229,584 |
void createActionButtons() { saveBtn = new JButton("Save"); ImageIcon addUserIcon = new ImageIcon("graphx/1rightarrow_nuvola32.png"); ImageIcon removeUserIcon = new ImageIcon("graphx/1leftarrow_nuvola32.png"); ImageIcon addGroupIcon = new ImageIcon("graphx/addUser_kusers_nuvola48_mod3.png"); ImageIcon removeGr... | void createActionButtons() { saveBtn = new JButton("Save"); ImageIcon addUserIcon = new ImageIcon("graphx/1rightarrow_nuvola32.png"); ImageIcon removeUserIcon = new ImageIcon("graphx/1leftarrow_nuvola32.png"); ImageIcon addGroupIcon = new ImageIcon("graphx/addUser_kusers_nuvola48_mod3.png"); ImageIcon removeGr... | 3,229,585 |
public RubyClass newSubClass(String name, RubyModule parent) { return new ProcMetaClass(name, this, parent); } | public RubyClass newSubClass(String name, RubyModule parent) { return new ProcMetaClass(name, this, parent); } | 3,229,586 |
public RubyObject(Ruby ruby) { this(ruby, null); } | public RubyObject(Ruby ruby) { this(ruby, null); } | 3,229,587 |
protected int argCount(RubyObject[] args, int min, int max) { int len = args.length; if (len < min || (max > -1 && len > max)) { throw new RubyArgumentException(getRuby(), "wrong number of arguments"); } return len; } | protected int argCount(RubyObject[] args, int min, int max) { int len = args.length; if (len < min || (max > -1 && len > max)) { throw new RubyArgumentException(getRuby(), "wrong number of arguments"); } return len; } | 3,229,588 |
public void callInit(RubyObject[] args) { ruby.getIter().push( ruby.isBlockGiven() ? RubyIter.ITER_PRE : RubyIter.ITER_NOT); funcall(getRuby().intern("initialize"), args); ruby.getIter().pop(); } | public void callInit(RubyObject[] args) { ruby.getIter().push( ruby.isBlockGiven() ? RubyIter.ITER_PRE : RubyIter.ITER_NOT); funcall(getRuby().intern("initialize"), args); ruby.getIter().pop(); } | 3,229,589 |
public RubyObject convertType(Class type, String className, String method) { if (type.isAssignableFrom(getClass())) { return this; } RubyObject result = null; try { result = funcall(getRuby().intern(method)); } catch (RubyNameException rnExcptn) { throw new RubyTypeException( getRuby(), "failed to con... | public RubyObject convertType(Class type, String className, String method) { if (type.isAssignableFrom(getClass())) { return this; } RubyObject result = null; try { result = funcall(getRuby().intern(method)); } catch (RubyNameException rnExcptn) { throw new RubyTypeException( getRuby(), "failed to con... | 3,229,590 |
public void defineSingletonMethod(String name, RubyCallbackMethod method) { getSingletonClass().defineMethod(name, method); } | public void defineSingletonMethod(String name, RubyCallbackMethod method) { getSingletonClass().defineMethod(name, method); } | 3,229,591 |
public RubyObject eval(Node n) { return n == null ? getRuby().getNil() : n.eval(getRuby(), this); } | public RubyObject eval(Node n) { return n == null ? getRuby().getNil() : n.eval(getRuby(), this); } | 3,229,592 |
public void extendObject(RubyModule module) { getSingletonClass().includeModule(module); } | public void extendObject(RubyModule module) { getSingletonClass().includeModule(module); } | 3,229,593 |
public RubyObject funcall(RubyId mid, RubyObject[] args) { return funcall(mid, new RubyPointer(args)); } | public RubyObject funcall(RubyId mid, RubyObject[] args) { return funcall(mid, new RubyPointer(args)); } | 3,229,594 |
public RubyObject funcall3(RubyId mid, RubyPointer args) { return getRubyClass().call(this, mid, args, 0); } | public RubyObject funcall3(RubyId mid, RubyPointer args) { return getRubyClass().call(this, mid, args, 0); } | 3,229,595 |
public RubyModule getClassVarSingleton() { return getRubyClass(); } | public RubyModule getClassVarSingleton() { return getRubyClass(); } | 3,229,596 |
public RubyObject getInstanceVar(String name) { return getInstanceVar(getRuby().intern(name)); } | public RubyObject getInstanceVar(String name) { return getInstanceVar(getRuby().intern(name)); } | 3,229,597 |
public RubyMap getInstanceVariables() { if (instanceVariables == null) { instanceVariables = new RubyHashMap(); } return instanceVariables; } | public RubyMap getInstanceVariables() { if (instanceVariables == null) { instanceVariables = new RubyHashMap(); } return instanceVariables; } | 3,229,598 |
public Class getJavaClass() { return RubyObject.class; } | public Class getJavaClass() { return RubyObject.class; } | 3,229,599 |
public Ruby getRuby() { return this.ruby; } | public Ruby getRuby() { return this.ruby; } | 3,229,600 |
public RubyModule getRubyClass() { return this.rubyClass; } | public RubyModule getRubyClass() { return this.rubyClass; } | 3,229,601 |
public RubyClass getSingletonClass() { // if (getType() == Type.FIXNUM || isSymbol()) { // throw new RubyTypeException("can't define singleton"); // } if (isSpecialConst()) { if (isNil() || isTrue() || isFalse()) { return getSpecialSingleton(); } throw new RubyBugException("unknow... | public RubyClass getSingletonClass() { // if (getType() == Type.FIXNUM || isSymbol()) { // throw new RubyTypeException("can't define singleton"); // } if (isSpecialConst()) { if (isNil() || isTrue() || isFalse()) { return getSpecialSingleton(); } throw new RubyBugException("unknow... | 3,229,602 |
private RubyClass getSpecialSingleton() { RubyClass rubyClass = (RubyClass) getRubyClass(); if (!rubyClass.isSingleton()) { rubyClass = rubyClass.newSingletonClass(); rubyClass.attachSingletonClass(this); } return rubyClass; } | private RubyClass getSpecialSingleton() { RubyClass rubyClass = (RubyClass) getRubyClass(); if (!rubyClass.isSingleton()) { rubyClass = rubyClass.newSingletonClass(); rubyClass.attachSingletonClass(this); } return rubyClass; } | 3,229,603 |
protected void infectObject(RubyObject obj) { if (obj.isTaint()) { setTaint(true); } } | protected void infectObject(RubyObject obj) { if (obj.isTaint()) { setTaint(true); } } | 3,229,604 |
public boolean isFalse() { return false; } | public boolean isFalse() { return false; } | 3,229,605 |
public boolean isFrozen() { return this.frozen; } | public boolean isFrozen() { return this.frozen; } | 3,229,606 |
public boolean isImmediate() { return this.immediate; } | public boolean isImmediate() { return this.immediate; } | 3,229,607 |
public boolean isInstanceVarDefined(RubyId id) { if (getInstanceVariables() != null) { if (getInstanceVariables().get(id) != null) { return true; } } return false; } | public boolean isInstanceVarDefined(RubyId id) { if (getInstanceVariables() != null) { if (getInstanceVariables().get(id) != null) { return true; } } return false; } | 3,229,608 |
public boolean isNil() { return false; } | public boolean isNil() { return false; } | 3,229,609 |
public boolean isSpecialConst() { return (isImmediate() || isNil()); } | public boolean isSpecialConst() { return (isImmediate() || isNil()); } | 3,229,610 |
public boolean isTaint() { return this.taint; } | public boolean isTaint() { return this.taint; } | 3,229,611 |
public boolean isTrue() { return true; } | public boolean isTrue() { return true; } | 3,229,612 |
public RubyObject m_clone() { RubyObject clone = new RubyObject(getRuby(), (RubyClass) getRubyClass()); clone.setupClone(this); clone.setInstanceVariables(getInstanceVariables().cloneRubyMap()); return clone; } | public RubyObject m_clone() { RubyObject clone = new RubyObject(getRuby(), (RubyClass) getRubyClass()); clone.setupClone(this); clone.setInstanceVariables(getInstanceVariables().cloneRubyMap()); return clone; } | 3,229,613 |
public RubyObject m_dup() { RubyObject dup = funcall(getRuby().intern("clone")); if (!dup.getClass().equals(getClass())) { throw new RubyTypeException(getRuby(), "duplicated object must be same type"); } if (!dup.isSpecialConst()) { dup.setupObject(m_type()); dup.infectObject(this); } return dup; } | public RubyObject m_dup() { RubyObject dup = funcall(getRuby().intern("clone")); if (!dup.getClass().equals(getClass())) { throw new RubyTypeException(getRuby(), "duplicated object must be same type"); } if (!dup.isSpecialConst()) { dup.setupObject(m_type()); dup.infectObject(this); } return dup; } | 3,229,614 |
public RubyBoolean m_equal(RubyObject obj) { if (this == obj) { return getRuby().getTrue(); } else { return (RubyBoolean) funcall(getRuby().intern("=="), obj); } } | public RubyBoolean m_equal(RubyObject obj) { if (this == obj) { return getRuby().getTrue(); } else { return (RubyBoolean) funcall(getRuby().intern("=="), obj); } } | 3,229,615 |
public RubyObject m_freeze() { if (getRuby().getSecurityLevel() >= 4 && isTaint()) { throw new RubySecurityException(getRuby(), "Insecure: can't freeze object"); } // ?????????????? return this; } | public RubyObject m_freeze() { if (getRuby().getSecurityLevel() >= 4 && isTaint()) { throw new RubySecurityException(getRuby(), "Insecure: can't freeze object"); } // ?????????????? return this; } | 3,229,616 |
public RubyBoolean m_frozen() { if (isFrozen()) { return getRuby().getTrue(); } else { return getRuby().getFalse(); } } | public RubyBoolean m_frozen() { if (isFrozen()) { return getRuby().getTrue(); } else { return getRuby().getFalse(); } } | 3,229,617 |
public RubyObject m_id() { //obj.hashCode(); return null; } | public RubyObject m_id() { //obj.hashCode(); return null; } | 3,229,618 |
public RubyString m_inspect() { // if (TYPE(obj) == T_OBJECT // && ROBJECT(obj)->iv_tbl // && ROBJECT(obj)->iv_tbl->num_entries > 0) { // VALUE str; // char *c; // // c = rb_class2name(CLASS_OF(obj)); // if (rb_inspecting_p(obj)) { // str = rb_str_new(0, strlen(c)+10+16+1); /* 10:tags 16:addr 1... | public RubyString m_inspect() { // if (TYPE(obj) == T_OBJECT // && ROBJECT(obj)->iv_tbl // && ROBJECT(obj)->iv_tbl->num_entries > 0) { // VALUE str; // char *c; // // c = rb_class2name(CLASS_OF(obj)); // if (rb_inspecting_p(obj)) { // str = rb_str_new(0, strlen(c)+10+16+1); /* 10:tags 16:addr 1... | 3,229,619 |
public RubyBoolean m_instance_of(RubyModule rbModule) { return RubyBoolean.m_newBoolean(getRuby(), m_type() == rbModule); } | public RubyBoolean m_instance_of(RubyModule rbModule) { return RubyBoolean.m_newBoolean(getRuby(), m_type() == rbModule); } | 3,229,620 |
public RubyBoolean m_kind_of(RubyModule rbModule) { RubyModule rbClass = getRubyClass(); while (rbClass != null) { if (rbClass == rbModule || rbClass.getMethods() == rbModule.getMethods()) { return getRuby().getTrue(); } rbClass = rbClass.getSuperClass(); } return getRuby().getFalse(); } | public RubyBoolean m_kind_of(RubyModule rbModule) { RubyModule rbClass = getRubyClass(); while (rbClass != null) { if (rbClass == rbModule || rbClass.getMethods() == rbModule.getMethods()) { return getRuby().getTrue(); } rbClass = rbClass.getSuperClass(); } return getRuby().getFalse(); } | 3,229,621 |
public RubyObject m_method(RubyObject symbol) { return getRubyClass().newMethod( this, symbol.toId(), getRuby().getClasses().getMethodClass()); } | public RubyObject m_method(RubyObject symbol) { return getRubyClass().newMethod( this, symbol.toId(), getRuby().getClasses().getMethodClass()); } | 3,229,622 |
public RubyArray m_methods() { // return getRubyClass().m_instance_methods(getRuby().getTrue()); return null; } | public RubyArray m_methods() { // return getRubyClass().m_instance_methods(getRuby().getTrue()); return null; } | 3,229,623 |
public RubyArray m_private_methods() { // return getRubyClass().m_private_instance_methods(getRuby().getTrue()); return null; } | public RubyArray m_private_methods() { // return getRubyClass().m_private_instance_methods(getRuby().getTrue()); return null; } | 3,229,624 |
public RubyArray m_protected_methods() { // return getRubyClass().m_protected_instance_methods(getRuby().getTrue()); return null; } | public RubyArray m_protected_methods() { // return getRubyClass().m_protected_instance_methods(getRuby().getTrue()); return null; } | 3,229,625 |
public RubyArray m_singleton_methods() { RubyArray ary = RubyArray.m_newArray(getRuby()); RubyModule rbClass = getRubyClass(); while (rbClass != null && rbClass.isSingleton()) { rbClass.getMethods().foreach(new RubyMapMethod() { public int execute(Object key, Object value, Object arg) { return CONTINUE; ... | public RubyArray m_singleton_methods() { RubyArray ary = RubyArray.m_newArray(getRuby()); RubyModule rbClass = getRubyClass(); while (rbClass != null && rbClass.isSingleton()) { rbClass.getMethods().foreach(new RubyMapMethod() { public int execute(Object key, Object value, Object arg) { return CONTINUE; ... | 3,229,626 |
public int execute(Object key, Object value, Object arg) { return CONTINUE; } | public int execute(Object key, Object value, Object arg) { return CONTINUE; } | 3,229,627 |
public RubyObject m_taint() { getRuby().secure(4); if (!isTaint()) { if (isFrozen()) { throw new RubyFrozenException(getRuby(), "object"); } setTaint(true); } return this; } | public RubyObject m_taint() { getRuby().secure(4); if (!isTaint()) { if (isFrozen()) { throw new RubyFrozenException(getRuby(), "object"); } setTaint(true); } return this; } | 3,229,628 |
public RubyBoolean m_tainted() { if (isTaint()) { return getRuby().getTrue(); } else { return getRuby().getFalse(); } } | public RubyBoolean m_tainted() { if (isTaint()) { return getRuby().getTrue(); } else { return getRuby().getFalse(); } } | 3,229,629 |
public RubyString m_to_s() { String cname = getRubyClass().toName(); RubyString str = RubyString.m_newString(getRuby(), ""); /* 6:tags 16:addr 1:eos */ str.setValue("#<" + cname + ":0x" + Integer.toHexString(hashCode()) + ">"); if (isTaint()) { str.setTaint(true); } return str; } | public RubyString m_to_s() { String cname = getRubyClass().toName(); RubyString str = RubyString.m_newString(getRuby(), ""); /* 6:tags 16:addr 1:eos */ str.setValue("#<" + cname + ":0x" + Integer.toHexString(hashCode()) + ">"); if (isTaint()) { str.setTaint(true); } return str; } | 3,229,630 |
public RubyModule m_type() { RubyModule rbClass = getRubyClass(); while (rbClass.isSingleton() || rbClass.isIncluded()) { rbClass = rbClass.getSuperClass(); } return rbClass; } | public RubyModule m_type() { RubyModule rbClass = getRubyClass(); while (rbClass.isSingleton() || rbClass.isIncluded()) { rbClass = rbClass.getSuperClass(); } return rbClass; } | 3,229,631 |
public RubyObject m_untaint() { getRuby().secure(3); if (isTaint()) { if (isFrozen()) { throw new RubyFrozenException(getRuby(), "object"); } setTaint(false); } return this; } | public RubyObject m_untaint() { getRuby().secure(3); if (isTaint()) { if (isFrozen()) { throw new RubyFrozenException(getRuby(), "object"); } setTaint(false); } return this; } | 3,229,632 |
public void setFrozen(boolean frozen) { this.frozen = frozen; } | public void setFrozen(boolean frozen) { this.frozen = frozen; } | 3,229,633 |
public void setImmediate(boolean immediate) { this.immediate = immediate; } | public void setImmediate(boolean immediate) { this.immediate = immediate; } | 3,229,634 |
public void setInstanceVar(String name, RubyObject value) { setInstanceVar(getRuby().intern(name), value); } | public void setInstanceVar(String name, RubyObject value) { setInstanceVar(getRuby().intern(name), value); } | 3,229,635 |
public void setInstanceVariables(RubyMap instanceVariables) { this.instanceVariables = instanceVariables; } | public void setInstanceVariables(RubyMap instanceVariables) { this.instanceVariables = instanceVariables; } | 3,229,636 |
public void setRubyClass(RubyModule rubyClass) { this.rubyClass = rubyClass; } | public void setRubyClass(RubyModule rubyClass) { this.rubyClass = rubyClass; } | 3,229,637 |
public void setTaint(boolean taint) { this.taint = taint; } | public void setTaint(boolean taint) { this.taint = taint; } | 3,229,638 |
protected void setupClone(RubyObject obj) { setupObject(obj.getRubyClass().getSingletonClassClone()); getRubyClass().attachSingletonClass(this); } | protected void setupClone(RubyObject obj) { setupObject(obj.getRubyClass().getSingletonClassClone()); getRubyClass().attachSingletonClass(this); } | 3,229,639 |
protected void setupObject(RubyModule rubyClass) { setRubyClass(rubyClass); } | protected void setupObject(RubyModule rubyClass) { setRubyClass(rubyClass); } | 3,229,640 |
public RubyId toId() { throw new RubyTypeException( getRuby(), m_inspect().getValue() + " is not a symbol"); } | public RubyId toId() { throw new RubyTypeException( getRuby(), m_inspect().getValue() + " is not a symbol"); } | 3,229,641 |
public void onDataObjectSave(DataObject data, int operation) { int state = model.getState(); if (operation == REMOVE_OBJECT && state != SAVE) throw new IllegalStateException("This method can only be " + "invoked in the SAVE state"); switch (state) { c... | public void onDataObjectSave(DataObject data, int operation) { int state = model.getState(); if (operation == REMOVE_OBJECT && state != SAVE) throw new IllegalStateException("This method can only be " + "invoked in the SAVE state"); switch (state) { c... | 3,229,642 |
public void saveInEditor(boolean b) { if (model.getState() == DISCARDED) throw new IllegalStateException( "This method cannot be invoked in the DISCARDED state."); if (b) { model.getEditor().saveData(); model.setEditor(null); onSelectedDisplay(... | public void saveInEditor(boolean b) { if (model.getState() == DISCARDED) throw new IllegalStateException( "This method cannot be invoked in the DISCARDED state."); if (b) { model.getEditor().saveData(); model.setEditor(null); } else { ... | 3,229,644 |
public void setHierarchyRoot(int rootLevel, long rootID) { int oldLevel = model.getRootLevel(); model.setHierarchyRoot(rootLevel, rootID); System.out.println("state: "+model.getState()); if (model.getState() == READY) firePropertyChange(HIERARCHY_ROOT_PROPERTY, new Integer(... | public void setHierarchyRoot(int rootLevel, long rootID) { int oldLevel = model.getRootLevel(); model.setHierarchyRoot(rootLevel, rootID); if (model.getState() == READY) firePropertyChange(HIERARCHY_ROOT_PROPERTY, new Integer(oldLevel), new In... | 3,229,646 |
public void showProperties(DataObject object, int editorType) { switch (model.getState()) { case DISCARDED: case SAVE: throw new IllegalStateException( "This method cannot be invoked in the DISCARDED or SAVE " + "state."); }... | public void showProperties(DataObject object, int editorType) { switch (model.getState()) { case DISCARDED: case SAVE: throw new IllegalStateException( "This method cannot be invoked in the DISCARDED or SAVE " + "state."); }... | 3,229,647 |
DataHandler annotateDataObjects(TreeImageDisplay[] nodes) { Object uo; Set toAnnotate = new HashSet(); for (int i = 0; i < nodes.length; i++) { uo = nodes[i].getUserObject(); if (uo instanceof DataObject) toAnnotate.add(uo); } dataHandler = AnnotatorFactory.getAnnotator(toAnnotate, TreeViewerAgen... | DataHandler annotateDataObjects(JFrame owner, TreeImageDisplay[] nodes) { Object uo; Set toAnnotate = new HashSet(); for (int i = 0; i < nodes.length; i++) { uo = nodes[i].getUserObject(); if (uo instanceof DataObject) toAnnotate.add(uo); } dataHandler = AnnotatorFactory.getAnnotator(toAnnotate, ... | 3,229,648 |
DataHandler annotateDataObjects(TreeImageDisplay[] nodes) { Object uo; Set toAnnotate = new HashSet(); for (int i = 0; i < nodes.length; i++) { uo = nodes[i].getUserObject(); if (uo instanceof DataObject) toAnnotate.add(uo); } dataHandler = AnnotatorFactory.getAnnotator(toAnnotate, TreeViewerAgen... | DataHandler annotateDataObjects(TreeImageDisplay[] nodes) { Object uo; Set toAnnotate = new HashSet(); for (int i = 0; i < nodes.length; i++) { uo = nodes[i].getUserObject(); if (uo instanceof DataObject) toAnnotate.add(uo); } dataHandler = AnnotatorFactory.getAnnotator(owner, toAnnotate, TreeVie... | 3,229,649 |
public EditorSaverDialog(JFrame owner, Icon icon) { super(owner, "Save Edited data", MESSAGE, icon); } | public EditorSaverDialog(JFrame owner, Icon icon) { super(owner, "Save Edited data", true); createComponents(); attachListeners(); buildGUI(MESSAGE, icon); } | 3,229,650 |
DataHandler classifyImageObjects(ImageData[] nodes, int mode) { Set images = new HashSet(nodes.length); for (int i = 0; i < nodes.length; i++) images.add(nodes[i]); dataHandler = ClassifierFactory.getClassifier(images, getRootType(), getRootGroupID(), mode, TreeViewerAgent.getRegistry()); ... | DataHandler classifyImageObjects(JFrame owner, ImageData[] nodes, int mode) { Set images = new HashSet(nodes.length); for (int i = 0; i < nodes.length; i++) images.add(nodes[i]); dataHandler = ClassifierFactory.getClassifier(images, getRootType(), getRootGroupID(), mode, TreeViewerAgent.get... | 3,229,651 |
DataHandler classifyImageObjects(ImageData[] nodes, int mode) { Set images = new HashSet(nodes.length); for (int i = 0; i < nodes.length; i++) images.add(nodes[i]); dataHandler = ClassifierFactory.getClassifier(images, getRootType(), getRootGroupID(), mode, TreeViewerAgent.getRegistry()); ... | DataHandler classifyImageObjects(ImageData[] nodes, int mode) { Set images = new HashSet(nodes.length); for (int i = 0; i < nodes.length; i++) images.add(nodes[i]); dataHandler = ClassifierFactory.getClassifier(images, getRootType(), getRootGroupID(), mode, TreeViewerAgent.getRegistry()); ... | 3,229,652 |
public RubyFixnum hash() { return getRuntime().newFixnum(hashCode()); } | public RubyFixnum hash() { return getRuntime().newFixnum(list.hashCode()); } | 3,229,653 |
protected Method getMethod() { if (method == null) { try { Class[] newArgs = args; if (staticMethod) { newArgs = new Class[args.length + 2]; System.arraycopy(args, 0, newArgs, 2, args.length); newArgs[0] = Ruby.... | protected Method getMethod() { if (method == null) { try { Class[] newArgs = args; if (staticMethod) { newArgs = new Class[args.length + 2]; System.arraycopy(args, 0, newArgs, 2, args.length); newArgs[0] = Ruby.... | 3,229,654 |
public void visit(ImageNode node) { Rectangle r = node.getBounds(); Thumbnail th = node.getThumbnail(); double sf = th.getScalingFactor(); double factor = ZoomCmd.calculateFactor(sf); if (sf != factor) { th.scale(factor); double ratio = factor/sf; ... | public void visit(ImageNode node) { Rectangle r = node.getBounds(); Thumbnail th = node.getThumbnail(); double sf = th.getScalingFactor(); double factor = ZoomCmd.calculateFactor(sf); if (sf != factor) { th.scale(factor); double ratio = factor/sf; ... | 3,229,656 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.