bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
public Iterator getEvents() throws IllegalStateException { try { ProfileEvent[] buf = _eventBuffer; final int numEvents = _qPtr / 2; if (buf.length < numEvents) { buf = new ProfileEvent[numEvents]; System.arraycopy(_eventBuffer,0,buf,0,buf.length); _ev... | public Iterator getEvents() throws IllegalStateException { try { ProfileEvent[] buf = _eventBuffer; final int numEvents = _qPtr / 2; if (buf.length < numEvents) { buf = new ProfileEvent[numEvents]; System.arraycopy(_eventBuffer,0,buf,0,buf.length); _ev... | 1,122,621 |
public Iterator getEvents() throws IllegalStateException { try { ProfileEvent[] buf = _eventBuffer; final int numEvents = _qPtr / 2; if (buf.length < numEvents) { buf = new ProfileEvent[numEvents]; System.arraycopy(_eventBuffer,0,buf,0,buf.length); _ev... | public Iterator getEvents() throws IllegalStateException { try { ProfileEvent[] buf = _eventBuffer; final int numEvents = _qPtr / 2; if (buf.length < numEvents) { buf = new ProfileEvent[numEvents]; System.arraycopy(_eventBuffer,0,buf,0,buf.length); _ev... | 1,122,622 |
public Iterator getEvents() throws IllegalStateException { try { ProfileEvent[] buf = _eventBuffer; final int numEvents = _qPtr / 2; if (buf.length < numEvents) { buf = new ProfileEvent[numEvents]; System.arraycopy(_eventBuffer,0,buf,0,buf.length); _ev... | public Iterator getEvents() throws IllegalStateException { try { ProfileEvent[] buf = _eventBuffer; final int numEvents = _qPtr / 2; if (buf.length < numEvents) { buf = new ProfileEvent[numEvents]; System.arraycopy(_eventBuffer,0,buf,0,buf.length); _ev... | 1,122,623 |
public Iterator getEvents() throws IllegalStateException { try { ProfileEvent[] buf = _eventBuffer; final int numEvents = _qPtr / 2; if (buf.length < numEvents) { buf = new ProfileEvent[numEvents]; System.arraycopy(_eventBuffer,0,buf,0,buf.length); _ev... | public Iterator getEvents() throws IllegalStateException { try { ProfileEvent[] buf = _eventBuffer; final int numEvents = _qPtr / 2; if (buf.length < numEvents) { buf = new ProfileEvent[numEvents]; System.arraycopy(_eventBuffer,0,buf,0,buf.length); _ev... | 1,122,624 |
public Iterator getEvents() throws IllegalStateException { try { ProfileEvent[] buf = _eventBuffer; final int numEvents = _qPtr / 2; if (buf.length < numEvents) { buf = new ProfileEvent[numEvents]; System.arraycopy(_eventBuffer,0,buf,0,buf.length); _ev... | public Iterator getEvents() throws IllegalStateException { try { ProfileEvent[] buf = _eventBuffer; final int numEvents = _qPtr / 2; if (buf.length < numEvents) { buf = new ProfileEvent[numEvents]; System.arraycopy(_eventBuffer,0,buf,0,buf.length); _ev... | 1,122,625 |
public Iterator getEvents() throws IllegalStateException { try { ProfileEvent[] buf = _eventBuffer; final int numEvents = _qPtr / 2; if (buf.length < numEvents) { buf = new ProfileEvent[numEvents]; System.arraycopy(_eventBuffer,0,buf,0,buf.length); _ev... | public Iterator getEvents() throws IllegalStateException { try { ProfileEvent[] buf = _eventBuffer; final int numEvents = _qPtr / 2; if (buf.length < numEvents) { buf = new ProfileEvent[numEvents]; System.arraycopy(_eventBuffer,0,buf,0,buf.length); _ev... | 1,122,626 |
public Iterator getEvents() throws IllegalStateException { try { ProfileEvent[] buf = _eventBuffer; final int numEvents = _qPtr / 2; if (buf.length < numEvents) { buf = new ProfileEvent[numEvents]; System.arraycopy(_eventBuffer,0,buf,0,buf.length); _ev... | public Iterator getEvents() throws IllegalStateException { try { ProfileEvent[] buf = _eventBuffer; final int numEvents = _qPtr / 2; if (buf.length < numEvents) { buf = new ProfileEvent[numEvents]; System.arraycopy(_eventBuffer,0,buf,0,buf.length); _ev... | 1,122,627 |
public Iterator getEvents() throws IllegalStateException { try { ProfileEvent[] buf = _eventBuffer; final int numEvents = _qPtr / 2; if (buf.length < numEvents) { buf = new ProfileEvent[numEvents]; System.arraycopy(_eventBuffer,0,buf,0,buf.length); _ev... | public Iterator getEvents() throws IllegalStateException { try { ProfileEvent[] buf = _eventBuffer; final int numEvents = _qPtr / 2; if (buf.length < numEvents) { buf = new ProfileEvent[numEvents]; System.arraycopy(_eventBuffer,0,buf,0,buf.length); _ev... | 1,122,628 |
public Iterator getEvents() throws IllegalStateException { try { ProfileEvent[] buf = _eventBuffer; final int numEvents = _qPtr / 2; if (buf.length < numEvents) { buf = new ProfileEvent[numEvents]; System.arraycopy(_eventBuffer,0,buf,0,buf.length); _ev... | public Iterator getEvents() throws IllegalStateException { try { ProfileEvent[] buf = _eventBuffer; final int numEvents = _qPtr / 2; if (buf.length < numEvents) { buf = new ProfileEvent[numEvents]; System.arraycopy(_eventBuffer,0,buf,0,buf.length); _ev... | 1,122,629 |
public final void setValue (Context context, Object newValue) throws PropertyException { if (!context.setProperty(_names, newValue)) { throw new PropertyException("No method to set \"" + _vname + "\" to type " + ((newValue == null) ? "null... | public final void setValue (Context context, Object newValue) throws PropertyException { if (!context.setProperty(_names, newValue)) { throw new PropertyException("No method to set \"" + getVariableName() + "\" to type " + ((newValue == nu... | 1,122,630 |
public final String toString () { return "property:" + _vname; } | public final String toString () { return "property:" + getVariableName(); } | 1,122,631 |
protected EditArticleView getEditArticleView(){ WFTabbedPane tab = getWFTabbedPane(); if(tab!=null){ return (EditArticleView) tab.getPerspective(TASK_ID_EDIT); } return null; } | protected EditArticleView getEditArticleView(){ WFTabbedPane tab = getTabbedPane(); if(tab!=null){ return (EditArticleView) tab.getPerspective(TASK_ID_EDIT); } return null; } | 1,122,632 |
protected EditArticleView getEditArticleView(){ WFTabbedPane tab = getWFTabbedPane(); if(tab!=null){ return (EditArticleView) tab.getPerspective(TASK_ID_EDIT); } return null; } | protected EditArticleView getEditArticleView(){ WFTabbedPane tab = getWFTabbedPane(); if(tab!=null){ return (EditArticleView) tab.getTabView(TASK_ID_EDIT); } return null; } | 1,122,633 |
public void initializeComponent(FacesContext context){ //TODO Remove this and use newer localization system: WFPage.loadResourceBundles(context); super.initializeComponent(context); String bref = WFPage.CONTENT_BUNDLE + "."; WFTabbedPane tb = new WFTabbedPane(); //tb.setMainAreaStyleClass(WFContainer.DEFAULT_S... | public void initializeComponent(FacesContext context){ //TODO Remove this and use newer localization system: WFPage.loadResourceBundles(context); UISaveState beanSaveState = new UISaveState(); ValueBinding binding = WFUtil.createValueBinding("#{"+ARTICLE_ITEM_BEAN_ID+"}"); beanSaveState.setId("articleItemBeanSave... | 1,122,634 |
public void initializeComponent(FacesContext context){ //TODO Remove this and use newer localization system: WFPage.loadResourceBundles(context); super.initializeComponent(context); String bref = WFPage.CONTENT_BUNDLE + "."; WFTabbedPane tb = new WFTabbedPane(); //tb.setMainAreaStyleClass(WFContainer.DEFAULT_S... | public void initializeComponent(FacesContext context){ //TODO Remove this and use newer localization system: WFPage.loadResourceBundles(context); super.initializeComponent(context); String bref = WFPage.CONTENT_BUNDLE + "."; WFTabbedPane tb = new WFTabbedPane(); //tb.setMainAreaStyleClass(WFContainer.DEFAULT_S... | 1,122,635 |
public void store() throws IDOStoreException{// public Boolean store() { boolean storeOk = true; clearErrorKeys(); ArticleDocument articleDoc = ArticleDocument.Factory.newInstance(); ArticleDocument.Article article = articleDoc.addNewArticle(); if (getHeadline().trim().equals("")) { addErrorKey(KE... | public void store() throws IDOStoreException{// public Boolean store() { boolean storeOk = true; clearErrorKeys(); ArticleDocument articleDoc = ArticleDocument.Factory.newInstance(); ArticleDocument.Article article = articleDoc.addNewArticle(); if (getHeadline().trim().equals("")) { addErrorKey(KE... | 1,122,636 |
public HTMLReport(Map coverageData, File outputDir, File sourceDir) throws Exception { this.outputDir = outputDir; this.sourceDir = sourceDir; this.coverage = CoverageUnmarshaller.parse(coverageData); removeNonexistantClasses(); CopyFiles.copy(outputDir); generatePackageList(); generateClassLists(); generate... | public HTMLReport(Coverage coverage, File outputDir, File sourceDir) throws Exception { this.outputDir = outputDir; this.sourceDir = sourceDir; this.coverage = CoverageUnmarshaller.parse(coverageData); removeNonexistantClasses(); CopyFiles.copy(outputDir); generatePackageList(); generateClassLists(); generat... | 1,122,637 |
public HTMLReport(Map coverageData, File outputDir, File sourceDir) throws Exception { this.outputDir = outputDir; this.sourceDir = sourceDir; this.coverage = CoverageUnmarshaller.parse(coverageData); removeNonexistantClasses(); CopyFiles.copy(outputDir); generatePackageList(); generateClassLists(); generate... | public HTMLReport(Map coverageData, File outputDir, File sourceDir) throws Exception { this.outputDir = outputDir; this.sourceDir = sourceDir; this.coverage = coverage; removeNonexistantClasses(); CopyFiles.copy(outputDir); generatePackageList(); generateClassLists(); generateOverviews(); generateSourceFile... | 1,122,638 |
public static String getXsdType(Type type) { String name = type.getName(); String xsdType = (String) XSD_TYPES.get(name); if (xsdType == null) { xsdType = "xsd:string"; } return xsdType; } | public static String getXsdType(Type type) { String name = type.getName(); String xsdType = (String) XSD_TYPES.get(name); if (xsdType == null) { xsdType = "xs:string"; } return xsdType; } | 1,122,639 |
public void populateMenuBar(MenuManager menuBar) { noteMenu = new MenuManager("&Note"); menuBar.add(noteMenu); addNoteSubmenu = new MenuManager("&Add Note"); addNoteSubmenu.add(addNoteAfter); addNoteSubmenu.add(addNoteUnder); noteMenu.add(addNoteSubmenu); moveNoteSubmenu = new MenuManager("&Move Note"); mo... | public void populateMenuBar(MenuManager menuBar) { noteMenu = new MenuManager("&Note"); menuBar.add(noteMenu); addNoteSubmenu = new MenuManager("&Add Note"); addNoteSubmenu.add(addNoteAfter); addNoteSubmenu.add(addNoteUnder); noteMenu.add(addNoteSubmenu); moveNoteSubmenu = new MenuManager("&Move Note"); mo... | 1,122,640 |
public void populateTreeContextMenu(MenuManager treeContextMenu) { addNoteTreeSubmenu = new MenuManager("&Add Note"); addNoteTreeSubmenu.add(addNoteAfter); addNoteTreeSubmenu.add(addNoteUnder); treeContextMenu.add(addNoteTreeSubmenu); moveNoteTreeSubmenu = new MenuManager("&Move Note"); moveNoteTreeSubmenu.add... | public void populateTreeContextMenu(MenuManager treeContextMenu) { addNoteTreeSubmenu = new MenuManager("&Add Note"); addNoteTreeSubmenu.add(addNoteAfter); addNoteTreeSubmenu.add(addNoteUnder); treeContextMenu.add(addNoteTreeSubmenu); moveNoteTreeSubmenu = new MenuManager("&Move Note"); moveNoteTreeSubmenu.add... | 1,122,641 |
public void populateTreeContextMenu(MenuManager treeContextMenu) { addNoteTreeSubmenu = new MenuManager("&Add Note"); addNoteTreeSubmenu.add(addNoteAfter); addNoteTreeSubmenu.add(addNoteUnder); treeContextMenu.add(addNoteTreeSubmenu); moveNoteTreeSubmenu = new MenuManager("&Move Note"); moveNoteTreeSubmenu.add... | public void populateTreeContextMenu(MenuManager treeContextMenu) { addNoteTreeSubmenu = new MenuManager("&Add Note"); addNoteTreeSubmenu.add(addNoteAfter); addNoteTreeSubmenu.add(addNoteUnder); treeContextMenu.add(addNoteTreeSubmenu); moveNoteTreeSubmenu = new MenuManager("&Move Note"); moveNoteTreeSubmenu.add... | 1,122,642 |
public void populateTreeContextMenu(MenuManager treeContextMenu) { addNoteTreeSubmenu = new MenuManager("&Add Note"); addNoteTreeSubmenu.add(addNoteAfter); addNoteTreeSubmenu.add(addNoteUnder); treeContextMenu.add(addNoteTreeSubmenu); moveNoteTreeSubmenu = new MenuManager("&Move Note"); moveNoteTreeSubmenu.add... | public void populateTreeContextMenu(MenuManager treeContextMenu) { addNoteTreeSubmenu = new MenuManager("&Add Note"); addNoteTreeSubmenu.add(addNoteAfter); addNoteTreeSubmenu.add(addNoteUnder); treeContextMenu.add(addNoteTreeSubmenu); moveNoteTreeSubmenu = new MenuManager("&Move Note"); moveNoteTreeSubmenu.add... | 1,122,643 |
public void update() { if (tree.hasFocus()) { removeNotes.setEnabled(true); if (tree.getSelectionCount() == 1) { addNoteSubmenu.setVisible(true); moveNoteSubmenu.setVisible(true); removeNotes.setText("Remove Note"); renameNote.setEnabled(true); } else { addNoteSubmenu.setVisible(false); moveNo... | public void update() { if (tree.hasFocus()) { removeNotes.setEnabled(true); if (tree.getSelectionCount() == 1) { addNoteSubmenu.setVisible(true); moveNoteSubmenu.setVisible(true); removeNotes.setText("Remove Note"); renameNote.setEnabled(true); } else { addNoteSubmenu.setVisible(false); moveNo... | 1,122,644 |
public void update() { if (tree.hasFocus()) { removeNotes.setEnabled(true); if (tree.getSelectionCount() == 1) { addNoteSubmenu.setVisible(true); moveNoteSubmenu.setVisible(true); removeNotes.setText("Remove Note"); renameNote.setEnabled(true); } else { addNoteSubmenu.setVisible(false); moveNo... | public void update() { if (tree.hasFocus()) { removeNotes.setEnabled(true); if (tree.getSelectionCount() == 1) { addNoteSubmenu.setVisible(true); moveNoteSubmenu.setVisible(true); removeNotes.setText("Remove Note"); renameNote.setEnabled(true); } else { addNoteSubmenu.setVisible(false); moveNo... | 1,122,645 |
public void update() { if (tree.hasFocus()) { removeNotes.setEnabled(true); if (tree.getSelectionCount() == 1) { addNoteSubmenu.setVisible(true); moveNoteSubmenu.setVisible(true); removeNotes.setText("Remove Note"); renameNote.setEnabled(true); } else { addNoteSubmenu.setVisible(false); moveNo... | public void update() { if (tree.hasFocus()) { removeNotes.setEnabled(true); if (tree.getSelectionCount() == 1) { addNoteSubmenu.setVisible(true); moveNoteSubmenu.setVisible(true); removeNotes.setText("Remove Note"); renameNote.setEnabled(true); } else { addNoteSubmenu.setVisible(false); moveNo... | 1,122,646 |
public DisplayedDocument(Shell shell) { // Shell this.shell = shell; shell.setText("Koala Notes"); shell.setLayout(new FillLayout(SWT.VERTICAL)); // Document document = new Document(); Note root = new Note("root", document, ""); LinkedList<Note> roots = new LinkedList<Note>(); roots.add(root); // Liste... | public DisplayedDocument(Shell shell, Listener listener, Dispatcher dispatcher) { // Shell this.shell = shell; shell.setText("Koala Notes"); shell.setLayout(new FillLayout(SWT.VERTICAL)); // Document document = new Document(); Note root = new Note("root", document, ""); LinkedList<Note> roots = new LinkedL... | 1,122,647 |
public DisplayedDocument(Shell shell) { // Shell this.shell = shell; shell.setText("Koala Notes"); shell.setLayout(new FillLayout(SWT.VERTICAL)); // Document document = new Document(); Note root = new Note("root", document, ""); LinkedList<Note> roots = new LinkedList<Note>(); roots.add(root); // Liste... | public DisplayedDocument(Shell shell) { // Shell this.shell = shell; shell.setText("Koala Notes"); shell.setLayout(new FillLayout(SWT.VERTICAL)); // Document document = new Document(); Note root = new Note("root", document, ""); LinkedList<Note> roots = new LinkedList<Note>(); roots.add(root); // Liste... | 1,122,648 |
public void load(String fileName) throws InitException, IOException { load(fileName,this.getClass().getClassLoader()); } | public void load(String fileName) throws InitException, IOException { load(fileName,this.getClass().getClassLoader()); } | 1,122,649 |
public void addImage(byte[] imageData, String contentType) { List l = getImages(); if (l == null) { l = new ArrayList(); } ContentItemField field = new ContentItemFieldBean(); field.setBinaryValue(imageData); field.setFieldType(contentType); field.setOrderNo(l.size()); l.add(field); setImages(l); } | public void addImage(byte[] imageData, String contentType) { List l = getImages(); if (l == null) { l = new ArrayList(); } ContentItemField field = new ContentItemFieldBean(); field.setBinaryValue(imageData); field.setFieldType(contentType); field.setOrderNo(l.size()); l.add(field); setImages(l); } | 1,122,650 |
public void clear() { super.clear(); setHeadline(null); setTeaser(null); setBody(null); setAuthor(null); setSource(null); setComment(null); setImages(null); setFilename(null);// setFolderLocation(null); _isUpdated = false; setFolderLocation(null); } | public void clear() { super.clear(); setHeadline(null); setTeaser(null); setBody(null); setAuthor(null); setSource(null); setComment(null); setImages(null); setFilename(null);// setFolderLocation(null); _isUpdated = false; setFolderLocation(null); } | 1,122,651 |
public String getAsXML() throws IOException, XMLException { XMLParser builder = new XMLParser(); XMLElement bodyElement = null; prettifyBody(); String bodyString = getBody(); if(bodyString != null && !bodyString.trim().equals("")){ XMLDocument bodyDoc = builder.parse(new ByteArrayInputStream(bodyString.ge... | public String getAsXML() throws IOException, XMLException { XMLParser builder = new XMLParser(); XMLElement bodyElement = null; prettifyBody(); String bodyString = getBody(); if(bodyString != null && !bodyString.trim().equals("")){ XMLDocument bodyDoc = builder.parse(new ByteArrayInputStream(bodyString.ge... | 1,122,652 |
public String getAuthor() { return (String)getValue(FIELDNAME_AUTHOR); } | public String getAuthor() { return getLocalizedArticle().getAuthor(); } | 1,122,653 |
public String getBody() { return (String)getValue(FIELDNAME_BODY); } | public String getBody() { return getLocalizedArticle().getBody(); } | 1,122,654 |
public String getComment() { return (String)getValue(FIELDNAME_COMMENT); } | public String getComment() { return getLocalizedArticle().getComment(); } | 1,122,655 |
public String[] getContentFieldNames(){ return ATTRIBUTE_ARRAY; } | public String[] getContentFieldNames(){ return ATTRIBUTE_ARRAY; } | 1,122,656 |
public String getContentItemPrefix() { return "article_"; } | public String getContentItemPrefix() { return getLocalizedArticle().getContentItemPrefix(); } | 1,122,657 |
public String getContentLanguage() { return (String)getValue(FIELDNAME_CONTENT_LANGUAGE); } | public String getContentLanguage() { return getLocalizedArticle().getContentLanguage(); } | 1,122,658 |
public String getHeadline() { return (String)getValue(FIELDNAME_HEADLINE); } | public String getHeadline() { return getLocalizedArticle().getHeadline(); } | 1,122,659 |
public List getImages() { return getItemFields(FIELDNAME_IMAGES); } | public List getImages() { return getLocalizedArticle().getImages(); } | 1,122,660 |
public String getLanguageChange() { return (String)getValue(FIELDNAME_LANGUAGE_CHANGE); } | public String getLanguageChange() { return languageChange; } | 1,122,661 |
public String getSource() { return (String)getValue(FIELDNAME_SOURCE); } | public String getSource() { return getLocalizedArticle().getSource(); } | 1,122,662 |
public String getTeaser() { return (String)getValue(FIELDNAME_TEASER); } | public String getTeaser() { return getLocalizedArticle().getTeaser(); } | 1,122,663 |
public String[] getToolbarActions(){ //return ACTION_ARRAY; return super.getToolbarActions(); } | public String[] getToolbarActions(){ //return ACTION_ARRAY; return super.getToolbarActions(); } | 1,122,664 |
public boolean isUpdated() { return _isUpdated; } | public boolean isUpdated() { return getLocalizedArticle().isUpdated(); } | 1,122,665 |
public boolean load(WebdavExtendedResource webdavResource) throws IOException { XMLParser builder = new XMLParser(); XMLDocument bodyDoc = null; try { WebdavResource theArticle = null; if(webdavResource.isCollection()){ IWContext iwc = IWContext.getInstance(); WebdavResources resources = webdavResourc... | public boolean load(WebdavExtendedResource webdavResource) throws IOException { XMLParser builder = new XMLParser(); XMLDocument bodyDoc = null; try { WebdavResource theArticle = null; if(webdavResource.isCollection()){ IWContext iwc = IWContext.getInstance(); WebdavResources resources = webdavResourc... | 1,122,666 |
private void makesureStandardFolderisCreated() { IWUserContext iwuc = getIWUserContext(); IWSlideService slideService = getIWSlideService(iwuc); String contentFolderPath = ArticleUtil.getContentRootPath(); String articlePath = ArticleUtil.getArticleRootPath(); try { //first make the folder: slideService.c... | private void makesureStandardFolderisCreated() { IWUserContext iwuc = getIWUserContext(); IWSlideService slideService = getIWSlideService(iwuc); String contentFolderPath = ArticleUtil.getContentRootPath(); String articlePath = ArticleUtil.getArticleBaseFolderPath(); try { //first make the folder: slideSer... | 1,122,667 |
protected void prettifyBody() { String body = getBody(); if(body!=null){// System.out.println("ArticleIn = "+articleIn); //Use JTidy to clean up the html Tidy tidy = new Tidy(); tidy.setXHTML(true); tidy.setXmlOut(true); tidy.setCharEncoding(Configuration.UTF8); ByteArrayInputStream bais; try { bai... | protected void prettifyBody() { String body = getBody(); if(body!=null){// System.out.println("ArticleIn = "+articleIn); //Use JTidy to clean up the html Tidy tidy = new Tidy(); tidy.setXHTML(true); tidy.setXmlOut(true); tidy.setCharEncoding(Configuration.UTF8); ByteArrayInputStream bais; try { bai... | 1,122,668 |
public void removeImage(Integer imageNumber) { int imageNo = imageNumber.intValue(); try { List l = getImages(); l.remove(imageNo); for (int i = 0; i < l.size(); i++) { ContentItemField field = (ContentItemField) l.get(i); field.setOrderNo(i); } } catch (Exception e) {} } | public void removeImage(Integer imageNumber) { int imageNo = imageNumber.intValue(); try { List l = getImages(); l.remove(imageNo); for (int i = 0; i < l.size(); i++) { ContentItemField field = (ContentItemField) l.get(i); field.setOrderNo(i); } } catch (Exception e) {} } | 1,122,669 |
public void setAuthor(String s) { setValue(FIELDNAME_AUTHOR, s); } | public void setAuthor(String s) { getLocalizedArticle().setAuthor(s); } | 1,122,670 |
public void setBody(String body) { setValue(FIELDNAME_BODY, body);// if (null != articleIn) {//// System.out.println("ArticleIn = "+articleIn);// //Use JTidy to clean up the html// Tidy tidy = new Tidy();// tidy.setXHTML(true);// tidy.setXmlOut(true);// ByteArrayInputStream bais = new ByteArrayInputStrea... | public void setBody(String body) { getLocalizedArticle().setBody(body);// if (null != articleIn) {//// System.out.println("ArticleIn = "+articleIn);// //Use JTidy to clean up the html// Tidy tidy = new Tidy();// tidy.setXHTML(true);// tidy.setXmlOut(true);// ByteArrayInputStream bais = new ByteArrayInput... | 1,122,671 |
public void setComment(String s) { setValue(FIELDNAME_COMMENT, s); } | public void setComment(String s) { getLocalizedArticle().setComment(s); } | 1,122,672 |
public void setHeadline(String s) { setValue(FIELDNAME_HEADLINE, s); } | public void setHeadline(Object o) { getLocalizedArticle().setHeadline(o); } | 1,122,673 |
public void setImages(List l) { setItemFields(FIELDNAME_IMAGES, l); } | public void setImages(List l) { getLocalizedArticle().setImages(l); } | 1,122,674 |
public void setLanguageChange(String s) { setValue(FIELDNAME_LANGUAGE_CHANGE, s); } | public void setLanguageChange(String s) { languageChange=s; } | 1,122,675 |
protected void setPublished(){ setStatus(ContentItemCase.STATUS_PUBLISHED); } | protected void setPublished(){ setStatus(ContentItemCase.STATUS_PUBLISHED); } | 1,122,676 |
public void setSource(String s) { setValue(FIELDNAME_SOURCE, s); } | public void setSource(String s) { getLocalizedArticle().setSource(s); } | 1,122,677 |
public void setTeaser(String s) { setValue(FIELDNAME_TEASER, s); } | public void setTeaser(String s) { getLocalizedArticle().setTeaser(s); } | 1,122,678 |
public void setUpdated(boolean b) { _isUpdated = b; } | public void setUpdated(boolean b) { getLocalizedArticle().setUpdated(b); } | 1,122,679 |
public void store() throws IDOStoreException{ boolean storeOk = true; clearErrorKeys(); if ( (getHeadline()==null) || (getHeadline().trim().equals("")) ) { addErrorKey(KEY_ERROR_HEADLINE_EMPTY); storeOk = false; }// if (getBody().trim().equals("")) {// addErrorKey(KEY_ERROR_BODY_EMPTY);// storeOk = false;... | public void store() throws IDOStoreException{ boolean storeOk = true; clearErrorKeys(); if ( (getHeadline()==null) || (getHeadline().trim().equals("")) ) { addErrorKey(KEY_ERROR_HEADLINE_EMPTY); storeOk = false; }// if (getBody().trim().equals("")) {// addErrorKey(KEY_ERROR_BODY_EMPTY);// storeOk = false;... | 1,122,680 |
public void store() throws IDOStoreException{ boolean storeOk = true; clearErrorKeys(); if ( (getHeadline()==null) || (getHeadline().trim().equals("")) ) { addErrorKey(KEY_ERROR_HEADLINE_EMPTY); storeOk = false; }// if (getBody().trim().equals("")) {// addErrorKey(KEY_ERROR_BODY_EMPTY);// storeOk = false;... | public void store() throws IDOStoreException{ boolean storeOk = true; clearErrorKeys(); if ( (getHeadline()==null) || (getHeadline().trim().equals("")) ) { addErrorKey(KEY_ERROR_HEADLINE_EMPTY); storeOk = false; }// if (getBody().trim().equals("")) {// addErrorKey(KEY_ERROR_BODY_EMPTY);// storeOk = false;... | 1,122,681 |
public void store() throws IDOStoreException{ boolean storeOk = true; clearErrorKeys(); if ( (getHeadline()==null) || (getHeadline().trim().equals("")) ) { addErrorKey(KEY_ERROR_HEADLINE_EMPTY); storeOk = false; }// if (getBody().trim().equals("")) {// addErrorKey(KEY_ERROR_BODY_EMPTY);// storeOk = false;... | public void store() throws IDOStoreException{ boolean storeOk = true; clearErrorKeys(); if ( (getHeadline()==null) || (getHeadline().trim().equals("")) ) { addErrorKey(KEY_ERROR_HEADLINE_EMPTY); storeOk = false; }// if (getBody().trim().equals("")) {// addErrorKey(KEY_ERROR_BODY_EMPTY);// storeOk = false;... | 1,122,682 |
public void store() throws IDOStoreException{ boolean storeOk = true; clearErrorKeys(); if ( (getHeadline()==null) || (getHeadline().trim().equals("")) ) { addErrorKey(KEY_ERROR_HEADLINE_EMPTY); storeOk = false; }// if (getBody().trim().equals("")) {// addErrorKey(KEY_ERROR_BODY_EMPTY);// storeOk = false;... | public void store() throws IDOStoreException{ boolean storeOk = true; clearErrorKeys(); if ( (getHeadline()==null) || (getHeadline().trim().equals("")) ) { addErrorKey(KEY_ERROR_HEADLINE_EMPTY); storeOk = false; }// if (getBody().trim().equals("")) {// addErrorKey(KEY_ERROR_BODY_EMPTY);// storeOk = false;... | 1,122,683 |
protected void tryPublish(){ //TODO: Implement publishing here: setPublished(); } | protected void tryPublish(){ //TODO: Implement publishing here: setPublished(); } | 1,122,684 |
public void makePizza() { System.out.println("Making a pizza with topping: " + topping + " cheese: " + cheese + " with size: " + size); } | public void makePizza() { log.info("Making a pizza with topping: " + topping + " cheese: " + cheese + " with size: " + size); } | 1,122,685 |
public ClassData getOrCreateClassData(String name) { ClassData classData = (ClassData)this.classes.get(name); if (classData == null) { classData = new ClassData(name); addClassData(classData); } return classData; } | public synchronized ClassData getOrCreateClassData(String name) { ClassData classData = (ClassData)this.classes.get(name); if (classData == null) { classData = new ClassData(name); addClassData(classData); } return classData; } | 1,122,686 |
public void showService(String service) { if (serviceMap.containsKey(service)) { cardLayout.show(cardPanel, service); } else { // Create new Form SearchForm searchForm = new SearchForm(service); cardPanel.add(searchForm, service); serviceMa... | public void showService(String service) { if (serviceMap.containsKey(service)) { cardLayout.show(cardPanel, service); } else { // Create new Form SearchForm searchForm = new SearchForm(service); cardPanel.add(searchForm, service); serviceMa... | 1,122,687 |
public void performSearch() { searchResults.clearTable(); SwingWorker worker = new SwingWorker() { ReportedData data; public Object construct() { try { Form answerForm = questionForm.getFilledForm(); data = searchManager.getSea... | public void performSearch() { searchResults.clearTable(); SwingWorker worker = new SwingWorker() { ReportedData data; public Object construct() { try { Form answerForm = questionForm.getFilledForm(); data = searchManager.getSea... | 1,122,688 |
final public Object evaluate(Context context) throws ContextException { try { ByteArrayOutputStream os = new ByteArrayOutputStream(256); FastWriter fw = new FastWriter(os, "UTF8"); write(fw,context); fw.flush(); return os.toString("UTF8"); } catch(IOException ... | final public Object evaluate(Context context) throws ContextException { try { ByteArrayOutputStream os = new ByteArrayOutputStream(256); FastWriter fw = new FastWriter(os, context.getEncoding()); write(fw,context); fw.flush(); return os.toString("UTF8"); } cat... | 1,122,689 |
final public Object evaluate(Context context) throws ContextException { try { ByteArrayOutputStream os = new ByteArrayOutputStream(256); FastWriter fw = new FastWriter(os, "UTF8"); write(fw,context); fw.flush(); return os.toString("UTF8"); } catch(IOException ... | final public Object evaluate(Context context) throws ContextException { try { ByteArrayOutputStream os = new ByteArrayOutputStream(256); FastWriter fw = new FastWriter(os, "UTF8"); write(fw,context); fw.flush(); return os.toString(context.getEncoding()); } cat... | 1,122,690 |
public void setColumnNames(String[] colNames){ _colNames = colNames; } | public void setColumnNames(String[] colNames){ if (_caseSensitive){ _colNames = colNames; } else { _colNames = new String[colNames.length]; for (int i=0; i<colNames.length; i++){ _colNames[i] = colNames[i].toUpperCase(); } } } | 1,122,691 |
public GatewayButton(final Transport transport) { setLayout(new GridBagLayout()); setOpaque(false); this.transport = transport; final StatusBar statusBar = SparkManager.getWorkspace().getStatusBar(); final JPanel commandPanel = statusBar.getCommandPanel(); button.setIcon(tr... | public GatewayButton(final Transport transport) { setLayout(new GridBagLayout()); setOpaque(false); this.transport = transport; final StatusBar statusBar = SparkManager.getWorkspace().getStatusBar(); final JPanel commandPanel = statusBar.getCommandPanel(); button.setIcon(tr... | 1,122,695 |
public static XmlBeanDefinitionReader createBeanDefinitionReader( SpringApplicationContext applicationContext, BeanDefinitionRegistry registry, List xmlPreprocessors) { String version = SpringVersion.getVersion(); String className = "org.apache.... | public static XmlBeanDefinitionReader createBeanDefinitionReader( SpringApplicationContext applicationContext, BeanDefinitionRegistry registry, List xmlPreprocessors) { String version = "2.0"; try { Class spring20Clazz = Class.forName("org.springframe... | 1,122,696 |
public Main(String[] args) { File dataFile = CoverageDataFileHandler.getDefaultDataFile(); String baseDir = "."; Vector filesToMerge = new Vector(); // Go through all the parameters for (int i = 0; i < args.length; i++) { if (args[i].equals("--datafile")) dataFile = new File(args[++i]); else if (args[i].e... | public Main(String[] args) { File dataFile = CoverageDataFileHandler.getDefaultDataFile(); String baseDir = "."; Vector filesToMerge = new Vector(); // Go through all the parameters for (int i = 0; i < args.length; i++) { if (args[i].equals("--datafile")) dataFile = new File(args[++i]); else if (args[i].e... | 1,122,697 |
public Main(String[] args) { File dataFile = CoverageDataFileHandler.getDefaultDataFile(); String baseDir = "."; Vector filesToMerge = new Vector(); // Go through all the parameters for (int i = 0; i < args.length; i++) { if (args[i].equals("--datafile")) dataFile = new File(args[++i]); else if (args[i].e... | public Main(String[] args) { File dataFile = CoverageDataFileHandler.getDefaultDataFile(); String baseDir = "."; Vector filesToMerge = new Vector(); // Go through all the parameters for (int i = 0; i < args.length; i++) { if (args[i].equals("--datafile")) dataFile = new File(args[++i]); else if (args[i].e... | 1,122,698 |
public Main(String[] args) { File dataFile = CoverageDataFileHandler.getDefaultDataFile(); String baseDir = "."; Vector filesToMerge = new Vector(); // Go through all the parameters for (int i = 0; i < args.length; i++) { if (args[i].equals("--datafile")) dataFile = new File(args[++i]); else if (args[i].e... | public Main(String[] args) { File dataFile = CoverageDataFileHandler.getDefaultDataFile(); String baseDir = "."; Vector filesToMerge = new Vector(); // Go through all the parameters for (int i = 0; i < args.length; i++) { if (args[i].equals("--datafile")) dataFile = new File(args[++i]); else if (args[i].e... | 1,122,699 |
public Main(String[] args) { File dataFile = CoverageDataFileHandler.getDefaultDataFile(); String baseDir = "."; Vector filesToMerge = new Vector(); // Go through all the parameters for (int i = 0; i < args.length; i++) { if (args[i].equals("--datafile")) dataFile = new File(args[++i]); else if (args[i].e... | public Main(String[] args) { File dataFile = CoverageDataFileHandler.getDefaultDataFile(); String baseDir = "."; Vector filesToMerge = new Vector(); // Go through all the parameters for (int i = 0; i < args.length; i++) { if (args[i].equals("--datafile")) dataFile = new File(args[++i]); else if (args[i].e... | 1,122,700 |
public Main(String[] args) { File dataFile = CoverageDataFileHandler.getDefaultDataFile(); String baseDir = "."; Vector filesToMerge = new Vector(); // Go through all the parameters for (int i = 0; i < args.length; i++) { if (args[i].equals("--datafile")) dataFile = new File(args[++i]); else if (args[i].e... | public Main(String[] args) { File dataFile = CoverageDataFileHandler.getDefaultDataFile(); String baseDir = "."; Vector filesToMerge = new Vector(); // Go through all the parameters for (int i = 0; i < args.length; i++) { if (args[i].equals("--datafile")) dataFile = new File(args[++i]); else if (args[i].e... | 1,122,701 |
private String handleError( Variable variable, Context context, Exception problem ) { String strError; ArrayList arlErrors = null; PropertyException propEx = null; if (problem instanceof PropertyException) propEx = (PropertyException)problem; else { ... | private String handleError( Variable variable, Context context, Exception problem ) { String strError; ArrayList arlErrors = null; PropertyException propEx = null; if (problem instanceof PropertyException) propEx = (PropertyException)problem; else ... | 1,122,702 |
private String handleError( Variable variable, Context context, Exception problem ) { String strError; ArrayList arlErrors = null; PropertyException propEx = null; if (problem instanceof PropertyException) propEx = (PropertyException)problem; else { ... | private String handleError( Variable variable, Context context, Exception problem ) { String strError; ArrayList arlErrors = null; PropertyException propEx = null; if (problem instanceof PropertyException) propEx = (PropertyException)problem; else { ... | 1,122,703 |
public void setEnabled(boolean enabled) { if (this.enabled != enabled) { this.enabled = enabled; if (headingItem != null) headingItem.setEnabled(enabled); } } | public void setEnabled(boolean enabled) { if (this.enabled != enabled) { this.enabled = enabled; if (headingItem != null && !headingItem.isDisposed()) headingItem.setEnabled(enabled); } } | 1,122,704 |
public void update() { super.update(); if (headingItem != null && headingItem.isEnabled() != enabled) { headingItem.setEnabled(enabled); } } | public void update() { super.update(); if (headingItem != null && !headingItem.isDisposed() && headingItem.isEnabled() != enabled) { headingItem.setEnabled(enabled); } } | 1,122,705 |
public void updateAll(boolean arg0) { super.updateAll(arg0); if (headingItem != null && headingItem.isEnabled() != enabled) { headingItem.setEnabled(enabled); } } | public void updateAll(boolean arg0) { super.updateAll(arg0); if (headingItem != null && !headingItem.isDisposed() && headingItem.isEnabled() != enabled) { headingItem.setEnabled(enabled); } } | 1,122,706 |
public final void backup(int amount) { backupChars += amount; if (curBuf.curPos - amount < 0) { int addlChars = amount - 1 - curBuf.curPos; curBuf.curPos = 0; swapBuf(); curBuf.curPos = curBuf.dataLen - addlChars - 1; } else { curBuf.curPos -= amount; } } | public final void backup(int amount) { backupChars += amount; if (curBuf.curPos - amount < 0) { int addlChars = amount - (inputStreamClosed? 0 : 1) - curBuf.curPos; curBuf.curPos = 0; swapBuf(); curBuf.curPos = curBuf.dataLen - addlChars - 1; } else { curBuf.curPos -= amount; ... | 1,122,709 |
protected WMTemplate(Broker broker) { _broker = broker; } | protected WMTemplate(Broker broker) { this(broker,"wm"); } | 1,122,711 |
public Filter getFilter(String name) { return (Filter) myFilters.get(name); } | public Filter getFilter(String name) { return (Filter) _filters.get(name); } | 1,122,712 |
public Object getParam(String key) throws IOException, TemplateException { // perform double checked lock in case template has not yet // been parsed. try { return myParameters.get(key); } catch (NullPointerException e) { synchronized(this) { parse(); ... | public Object getParam(String key) throws IOException, TemplateException { // perform double checked lock in case template has not yet // been parsed. try { return _parameters.get(key); } catch (NullPointerException e) { synchronized(this) { parse(); ... | 1,122,713 |
public HashMap getParameters() { return myParameters; } | public HashMap getParameters() { return _parameters; } | 1,122,714 |
public final void parse() throws IOException, TemplateException { // thread policy: // // unsynchronized code elsewhere will access myContent. We must // ensure that any data copied into myContent is ready for public // use--which means dealing with two subtle issues. First, the Block ... | public final void parse() throws IOException, TemplateException { // thread policy: // // unsynchronized code elsewhere will access myContent. We must // ensure that any data copied into myContent is ready for public // use--which means dealing with two subtle issues. First, the Block ... | 1,122,715 |
public final void parse() throws IOException, TemplateException { // thread policy: // // unsynchronized code elsewhere will access myContent. We must // ensure that any data copied into myContent is ready for public // use--which means dealing with two subtle issues. First, the Block ... | public final void parse() throws IOException, TemplateException { // thread policy: // // unsynchronized code elsewhere will access myContent. We must // ensure that any data copied into myContent is ready for public // use--which means dealing with two subtle issues. First, the Block ... | 1,122,716 |
public final void write(Writer out, Context data) throws IOException { // thread policy: Access to myContent is unsynchronized here at // the cost of having a slightly stale copy. This is OK, because // you might have requested it slightly earlier anyway. You will // always get a consi... | public final void write(Writer out, Context data) throws IOException { // thread policy: Access to myContent is unsynchronized here at // the cost of having a slightly stale copy. This is OK, because // you might have requested it slightly earlier anyway. You will // always get a consi... | 1,122,717 |
public final void write(Writer out, Context data) throws IOException { // thread policy: Access to myContent is unsynchronized here at // the cost of having a slightly stale copy. This is OK, because // you might have requested it slightly earlier anyway. You will // always get a consi... | public final void write(Writer out, Context data) throws IOException { // thread policy: Access to myContent is unsynchronized here at // the cost of having a slightly stale copy. This is OK, because // you might have requested it slightly earlier anyway. You will // always get a consi... | 1,122,718 |
public final void write(Writer out, Context data) throws IOException { // thread policy: Access to myContent is unsynchronized here at // the cost of having a slightly stale copy. This is OK, because // you might have requested it slightly earlier anyway. You will // always get a consi... | public final void write(Writer out, Context data) throws IOException { // thread policy: Access to myContent is unsynchronized here at // the cost of having a slightly stale copy. This is OK, because // you might have requested it slightly earlier anyway. You will // always get a consi... | 1,122,719 |
final public Object get(Object name) { return (_globals != null) ? _globals.get(name) : null; } | final public Object get(Object name) { if (_globals != null) return _globals.get(name); if (_beanGet != null){ try { return _beanGet.invoke(_bean, new Object[]{ name }); } catch (Exception e){} } return null; } | 1,122,720 |
final public void put(Object name, Object value) { if (_globals == null) { getGlobalVariables().put(name,value); } else { _globals.put(name,value); } } | final public void put(Object name, Object value) { if (_globals == null) { if (_beanPut != null){ try { _beanPut.invoke(_bean, new Object[]{ name, value }); } catch (Exception e){} } else { getGlobalVariables().put(name,value); } } else { _globals.put(name,value); } } | 1,122,721 |
protected String renderQuotedBlock(String text) { StringBuffer sb = new StringBuffer (text.length()); sb.append ("<pre>") .append (text) .append ("</pre>"); return sb.toString (); } | protected String renderQuotedBlock(String text) { StringBuffer sb = new StringBuffer (text.length()); sb.append ("<pre>") .append (replace (replace (text, "<", "<"), ">", ">")) .append ("</pre>"); return sb.toString (); } | 1,122,725 |
protected String renderUnknown(WikiData data) { return "<!-- " + data.getType() + " is an unknown WikiData type"; } | protected String renderUnknown(WikiData data) { return "<!-- " + data.getType() + " is an unknown WikiData type -->"; } | 1,122,726 |
public boolean isOwnerOrAdmin(Occupant occupant) { if (occupant != null) { String affiliation = occupant.getAffiliation(); if ("owner".equals(affiliation) || "admin".equals(affiliation)) { return true; } } return false; } | public boolean isOwnerOrAdmin(GroupChatRoom groupChatRoom, String nickname) { Occupant occupant = getOccupant(groupChatRoom, nickname); if (occupant != null) { String affiliation = occupant.getAffiliation(); if ("owner".equals(affiliation) || "admin".equals(affiliation)) { ... | 1,122,728 |
public boolean isModerator(Occupant occupant) { if (occupant != null) { String role = occupant.getRole(); if ("moderator".equals(role)) { return true; } } return false; } | public boolean isModerator(GroupChatRoom groupChatRoom, String nickname) { Occupant occupant = getOccupant(groupChatRoom, nickname); if (occupant != null) { String role = occupant.getRole(); if ("moderator".equals(role)) { return true; } } return ... | 1,122,729 |
public static String getVersion() { return "1.1.9.6"; } | public static String getVersion() { return "1.1.9.7"; } | 1,122,730 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.