bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
public void store() throws IDOStoreException{ boolean storeOk = true; clearErrorKeys(); if (getHeadline().trim().equals("")) { addErrorKey(KEY_ERROR_HEADLINE_EMPTY); storeOk = false; } if (getBody().trim().equals("")) { addErrorKey(KEY_ERROR_BODY_EMPTY); storeOk = false; } // if (getRequestedStatus() !... | public void store() throws IDOStoreException{ boolean storeOk = true; clearErrorKeys(); if (getHeadline().trim().equals("")) { addErrorKey(KEY_ERROR_HEADLINE_EMPTY); storeOk = false; } if (getBody().trim().equals("")) { addErrorKey(KEY_ERROR_BODY_EMPTY); storeOk = false; } // if (getRequestedStatus() !... | 1,122,731 |
public void store() throws IDOStoreException{ boolean storeOk = true; clearErrorKeys(); if (getHeadline().trim().equals("")) { addErrorKey(KEY_ERROR_HEADLINE_EMPTY); storeOk = false; } if (getBody().trim().equals("")) { addErrorKey(KEY_ERROR_BODY_EMPTY); storeOk = false; } // if (getRequestedStatus() !... | public void store() throws IDOStoreException{ boolean storeOk = true; clearErrorKeys(); if (getHeadline().trim().equals("")) { addErrorKey(KEY_ERROR_HEADLINE_EMPTY); storeOk = false; } if (getBody().trim().equals("")) { addErrorKey(KEY_ERROR_BODY_EMPTY); storeOk = false; } // if (getRequestedStatus() !... | 1,122,732 |
public void store() throws IDOStoreException{ boolean storeOk = true; clearErrorKeys(); if (getHeadline().trim().equals("")) { addErrorKey(KEY_ERROR_HEADLINE_EMPTY); storeOk = false; } if (getBody().trim().equals("")) { addErrorKey(KEY_ERROR_BODY_EMPTY); storeOk = false; } // if (getRequestedStatus() !... | public void store() throws IDOStoreException{ boolean storeOk = true; clearErrorKeys(); if (getHeadline().trim().equals("")) { addErrorKey(KEY_ERROR_HEADLINE_EMPTY); storeOk = false; } if (getBody().trim().equals("")) { addErrorKey(KEY_ERROR_BODY_EMPTY); storeOk = false; } // if (getRequestedStatus() !... | 1,122,733 |
public final static Macro createMacro(Object wrapMe) throws BuildException { if (wrapMe == null) { throw new BuildException("Bug in WM: attempt to write null"); } if (wrapMe instanceof Macro) { return (Macro) wrapMe; } else { return new MacroAdapter(wrapMe); }... | public final static Macro createMacro(Object wrapMe, String encoding) throws BuildException { if (wrapMe == null) { throw new BuildException("Bug in WM: attempt to write null"); } if (wrapMe instanceof Macro) { return (Macro) wrapMe; } else { return new MacroAdapte... | 1,122,734 |
public StringMacroAdapter(String wrapMe) { try { _self = wrapMe.getBytes("UTF8"); } catch (Exception e) { e.printStackTrace(); } } | public StringMacroAdapter(String wrapMe, String encoding) { try { _self = wrapMe.getBytes("UTF8"); } catch (Exception e) { e.printStackTrace(); } } | 1,122,735 |
public StringMacroAdapter(String wrapMe) { try { _self = wrapMe.getBytes("UTF8"); } catch (Exception e) { e.printStackTrace(); } } | public StringMacroAdapter(String wrapMe) { try { _self = wrapMe.getBytes(encoding); } catch (Exception e) { e.printStackTrace(); } } | 1,122,736 |
private void selectComponent() { WFComponentSelector componentSelector = (WFComponentSelector) findComponent(COMPONENT_SELECTOR_ID); String headline = WFUtil.getStringValue(ARTICLE_ITEM_BEAN_ID, "headline"); if (componentSelector != null) { if (headline == null || headline.length() == 0) { componentSelector.se... | private void selectComponent() { WFComponentSelector componentSelector = (WFComponentSelector) findComponent(COMPONENT_SELECTOR_ID); ArticleItemBean articleBean = (ArticleItemBean) WFUtil.getBeanInstance(ARTICLE_ITEM_BEAN_ID); String resourcePath = articleBean.getResourcePath(); if (componentSelector != null) { ... | 1,122,738 |
private void selectComponent() { WFComponentSelector componentSelector = (WFComponentSelector) findComponent(COMPONENT_SELECTOR_ID); String headline = WFUtil.getStringValue(ARTICLE_ITEM_BEAN_ID, "headline"); if (componentSelector != null) { if (headline == null || headline.length() == 0) { componentSelector.se... | private void selectComponent() { WFComponentSelector componentSelector = (WFComponentSelector) findComponent(COMPONENT_SELECTOR_ID); String headline = WFUtil.getStringValue(ARTICLE_ITEM_BEAN_ID, "headline"); if (componentSelector != null) { if (resourcePath == null || resourcePath.length() == 0) { componentSel... | 1,122,739 |
public void testContextToolMethodCall() { assertStringTemplateEquals("$Text.HTMLEncode('&')", "&"); } | public void testContextToolMethodCall() { assertStringTemplateEquals("$Text.HTMLEncode('&')", "&"); } | 1,122,740 |
final public Template get(String fileName, String encoding) { for (int i=0; i < _templateDirectory.length; i++) { Template t; String dir = _templateDirectory[i]; File tFile = new File(dir,fileName); if (tFile.canRead()) { try { t = new FileTemplate(_brok... | final public Template get(String fileName, String encoding) { for (int i=0; i < _templateDirectory.length; i++) { Template t; String dir = _templateDirectory[i]; File tFile = new File(dir,fileName); if (tFile.canRead()) { try { t = new FileTemplate(_brok... | 1,122,741 |
public void write(FastWriter out, Context context) throws PropertyException, IOException { Object l, limit, from; int loopLimit=-1, loopStart=1, loopIndex=0; l = list; while (l instanceof Macro) l = ((Macro) l).evaluate(context); if (limitExpr != null) { limit = limitExpr; while (li... | public void write(FastWriter out, Context context) throws PropertyException, IOException { Object l, limit, from; int loopLimit=-1, loopStart=1, loopIndex=0; l = list; while (l instanceof Macro && l != UNDEF) l = ((Macro) l).evaluate(context); if (limitExpr != null) { limit = limitExpr; ... | 1,122,742 |
public NotVariableBuildException(String directive, Exception e) { super("#" + directive + ": Argument must be a variable", e); } | public NotVariableBuildException(String directive, Exception e) { super("#" + directive + ": Argument must be a variable", e); } | 1,122,743 |
private void addContactItem(final ContactGroup contactGroup, final ContactItem item) { ContactItem newContact = new ContactItem(item.getNickname(), item.getFullJID()); newContact.setPresence(item.getPresence()); newContact.setIcon(item.getIcon()); newContact.getNicknameLabel().setFont(it... | private void addContactItem(final ContactGroup contactGroup, final ContactItem item) { ContactItem newContact = new ContactItem(item.getNickname(), item.getFullJID()); newContact.setPresence(item.getPresence()); newContact.setIcon(item.getIcon()); newContact.getNicknameLabel().setFont(it... | 1,122,744 |
private void addContactItem(final ContactGroup contactGroup, final ContactItem item) { ContactItem newContact = new ContactItem(item.getNickname(), item.getFullJID()); newContact.setPresence(item.getPresence()); newContact.setIcon(item.getIcon()); newContact.getNicknameLabel().setFont(it... | private void addContactItem(final ContactGroup contactGroup, final ContactItem item) { ContactItem newContact = new ContactItem(item.getNickname(), item.getFullJID()); newContact.setPresence(item.getPresence()); newContact.setIcon(item.getIcon()); newContact.getNicknameLabel().setFont(it... | 1,122,745 |
public Object construct() { Roster roster = SparkManager.getConnection().getRoster(); RosterEntry entry = roster.getEntry(item.getFullJID()); RosterGroup groupFound = null; for(RosterGroup group : roster.getGroups()){ if (group.g... | public Object construct() { Roster roster = SparkManager.getConnection().getRoster(); RosterEntry entry = roster.getEntry(item.getFullJID()); RosterGroup groupFound = null; for(RosterGroup group : roster.getGroups()){ if (group.g... | 1,122,746 |
public void finished() { // Now try and remove the group from the old one. removeContactItem(oldGroup, item); } | public void finished() { // Now try and remove the group from the old one. if ((Boolean)get()) { removeContactItem(oldGroup, item); } } | 1,122,747 |
private void checkNotificationPreferences(final ChatRoom room) { LocalPreferences pref = SettingsManager.getLocalPreferences(); if (pref.getWindowTakesFocus()) { chatFrame.setState(Frame.NORMAL); chatFrame.setVisible(true); int tabLocation = indexOfComponent(room); ... | private void checkNotificationPreferences(final ChatRoom room) { LocalPreferences pref = SettingsManager.getLocalPreferences(); if (pref.getWindowTakesFocus()) { chatFrame.setState(Frame.NORMAL); chatFrame.setVisible(true); int tabLocation = indexOfComponent(room); ... | 1,122,748 |
private void checkNotificationPreferences(final ChatRoom room) { LocalPreferences pref = SettingsManager.getLocalPreferences(); if (pref.getWindowTakesFocus()) { chatFrame.setState(Frame.NORMAL); chatFrame.setVisible(true); int tabLocation = indexOfComponent(room); ... | private void checkNotificationPreferences(final ChatRoom room) { LocalPreferences pref = SettingsManager.getLocalPreferences(); if (pref.getWindowTakesFocus()) { chatFrame.setState(Frame.NORMAL); chatFrame.setVisible(true); int tabLocation = indexOfComponent(room); ... | 1,122,749 |
private void addFilenames(String[] filenames) { if (filenames.length == 0) { return; } for (int i = 0; i < filenames.length; i++) { getProject().log("Adding " + filenames[i] + " to list", Project.MSG_VERBOSE); addArg(filenames[i]); } Header.print(System.out); System.out.println("instrumenting " + fil... | private void addFilenames(String[] filenames) { if (filenames.length == 0) { return; } for (int i = 0; i < filenames.length; i++) { getProject().log("Adding " + filenames[i] + " to list", Project.MSG_VERBOSE); addArg(filenames[i]); } Header.print(System.out); System.out.println("instrumenting " + fil... | 1,122,750 |
private void handleFilesets() { Set filenames = new HashSet(); Iterator iter = fileSets.iterator(); while (iter.hasNext()) { FileSet fileSet = (FileSet)iter.next(); addArg("--basedir"); addArg(baseDir(fileSet)); filenames.addAll(Arrays.asList(getFilenames(fileSet))); } addFilenames((String[])filenames.to... | private void handleFilesets() { Set filenames = new HashSet(); Iterator iter = fileSets.iterator(); while (iter.hasNext()) { FileSet fileSet = (FileSet)iter.next(); addArg("--basedir"); addArg(baseDir(fileSet)); String[] fileNames = getFilenames(fileSet); numberOfClasses += fileNames.length; addFilenames(g... | 1,122,751 |
private void handleFilesets() { Set filenames = new HashSet(); Iterator iter = fileSets.iterator(); while (iter.hasNext()) { FileSet fileSet = (FileSet)iter.next(); addArg("--basedir"); addArg(baseDir(fileSet)); filenames.addAll(Arrays.asList(getFilenames(fileSet))); } addFilenames((String[])filenames.to... | private void handleFilesets() { Set filenames = new HashSet(); Iterator iter = fileSets.iterator(); while (iter.hasNext()) { FileSet fileSet = (FileSet)iter.next(); addArg("--basedir"); addArg(baseDir(fileSet)); filenames.addAll(Arrays.asList(getFilenames(fileSet))); } Header.print(System.out); System.ou... | 1,122,752 |
public WebContext(final Broker broker) { super(broker); try { String tools = (String) broker.getValue("config","TemplateTools"); addTools(tools); } catch (InvalidTypeException it) { _log.exception(it); _log.error("config type not registered with broker!"); } cat... | public WebContext(final Broker broker) { super(broker); try { String tools = (String) broker.getValue("config","TemplateTools"); registerTools(tools); } catch (InvalidTypeException it) { _log.exception(it); _log.error("config type not registered with broker!"); ... | 1,122,753 |
public void fileSave(Event e) { updateNotesFromOpenNoteTabs(); dd.getDocument().saveNotes(); } | public void fileSave(Event e) { dd.getTabFolder().saveNoteTabs(); dd.getDocument().saveNotes(); } | 1,122,754 |
public void fileSaveAs(Event e) { FileDialog fileDialog = new FileDialog(dd.getShell(), SWT.SAVE); String filePath = fileDialog.open(); if (filePath != null) { File file = new File(filePath); updateNotesFromOpenNoteTabs(); dd.getDocument().saveNotes(file); dd.getShell().setText(file.getName() + " - Koala No... | public void fileSaveAs(Event e) { FileDialog fileDialog = new FileDialog(dd.getShell(), SWT.SAVE); String filePath = fileDialog.open(); if (filePath != null) { File file = new File(filePath); dd.getTabFolder().saveNoteTabs(); dd.getDocument().saveNotes(file); dd.getShell().setText(file.getName() + " - Koala... | 1,122,755 |
public Note loadNotes(File file) { this.file = file; return loadNotes(); } | public Note loadNotes(File file) { this.file = file; return loadNotes(); } | 1,122,756 |
public void preprocess(SpringApplicationContext applicationContext, XmlBeanDefinitionReader reader, Document document) { // determine the classLoader ClassLoader classLoader; NodeList classpathElements = document.getDocumentElement().getElementsByTagName("classpath"); if (classpathElemen... | public void preprocess(SpringApplicationContext applicationContext, XmlBeanDefinitionReader reader, Document document) { // determine the classLoader ClassLoader classLoader; NodeList classpathElements = document.getDocumentElement().getElementsByTagName("classpath"); if (classpathElemen... | 1,122,757 |
private Downloads() { ChatFrame frame = SparkManager.getChatManager().getChatContainer().getChatFrame(); dlg = new JDialog(SparkManager.getMainWindow(), "Downloads", false); dlg.setContentPane(mainPanel); dlg.pack(); dlg.setSize(400, 400); dlg.setResizable(true); dlg... | private Downloads() { ChatFrame frame = SparkManager.getChatManager().getChatContainer().getChatFrame(); dlg = new JDialog(SparkManager.getMainWindow(), Res.getString("title.downloads"), false); dlg.setContentPane(mainPanel); dlg.pack(); dlg.setSize(400, 400); dlg.setResiza... | 1,122,758 |
public final Object getProperty(final Object[] names) throws PropertyException, ContextException { if (_bean == null) { Object ret = getLocal(names); if (ret == null) { ret = getTool(names); } return ret; } else { return PropertyOperator.getPropert... | public final Object getProperty(final Object[] names) throws PropertyException, ContextException { if (_bean == null) { Object ret = getLocal(names); if (ret == null) { ret = getTool(names); } return ret; } else { return PropertyOperator.getPropert... | 1,122,759 |
public final Object getProperty(final Object[] names) throws PropertyException, ContextException { if (_bean == null) { Object ret = getLocal(names); if (ret == null) { ret = getTool(names); } return ret; } else { return PropertyOperator.getPropert... | public final Object getProperty(final Object[] names) throws PropertyException, ContextException { if (_bean == null) { Object ret = getLocal(names); if (ret == null) { ret = getTool(names); } return ret; } else { ret = PropertyOperator.getProperty... | 1,122,760 |
public void write(Writer out, Context context) throws InvalidContextException, IOException { // now clobber values outside the loop: // Map listMap = new HashMap(); // listMap.include(context); Object list = _list; if (_macro) { while (list instanceof Macro) { list... | public void write(Writer out, Context context) throws InvalidContextException, IOException { // now clobber values outside the loop: // Map listMap = new HashMap(); // listMap.include(context); Object list = _list; if (_macro) { while (list instanceof Macro) { list... | 1,122,762 |
private static void addInvitationListener() { // Add Invite Listener MultiUserChat.addInvitationListener(SparkManager.getConnection(), new InvitationListener() { public void invitationReceived(final XMPPConnection conn, final String room, final String inviter, final String reason, final Str... | private static void addInvitationListener() { // Add Invite Listener MultiUserChat.addInvitationListener(SparkManager.getConnection(), new InvitationListener() { public void invitationReceived(final XMPPConnection conn, final String room, final String inviter, final String reason, final Str... | 1,122,763 |
public void invitationReceived(final XMPPConnection conn, final String room, final String inviter, final String reason, final String password, final Message message) { SwingUtilities.invokeLater(new Runnable() { public void run() { Collection listener... | public void invitationReceived(final XMPPConnection conn, final String room, final String inviter, final String reason, final String password, final Message message) { SwingUtilities.invokeLater(new Runnable() { public void run() { Collection listener... | 1,122,764 |
public void run() { Collection listeners = new ArrayList(SparkManager.getChatManager().getInvitationListeners()); Iterator iter = listeners.iterator(); while (iter.hasNext()) { RoomInvitationListener list... | public void run() { Collection listeners = new ArrayList(SparkManager.getChatManager().getInvitationListeners()); Iterator iter = listeners.iterator(); while (iter.hasNext()) { RoomInvitationListener list... | 1,122,765 |
final public ListBuilder ArgList() throws ParseException { ListBuilder list = new ListBuilder(); Object e; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case DOLLAR: case QUOTE: case NULL: case TRUE: case FALSE: case LPAREN: case LBRACKET: case OP_MINUS: case OP_NOT: case NUMBER: e =... | final public ListBuilder ArgList() throws ParseException { ListBuilder list = new ListBuilder(); Object e; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case DOLLAR: case QUOTE: case NULL: case TRUE: case FALSE: case LPAREN: case LBRACKET: case OP_MINUS: case OP_NOT: case NUMBER: ... | 1,122,768 |
final public ListBuilder ArgList() throws ParseException { ListBuilder list = new ListBuilder(); Object e; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case DOLLAR: case QUOTE: case NULL: case TRUE: case FALSE: case LPAREN: case LBRACKET: case OP_MINUS: case OP_NOT: case NUMBER: e =... | final public ListBuilder ArgList() throws ParseException { ListBuilder list = new ListBuilder(); Object e; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case DOLLAR: case QUOTE: case NULL: case TRUE: case FALSE: case LPAREN: case LBRACKET: case OP_MINUS: case OP_NOT: case NUMBER: e =... | 1,122,769 |
final public ListBuilder ArgList() throws ParseException { ListBuilder list = new ListBuilder(); Object e; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case DOLLAR: case QUOTE: case NULL: case TRUE: case FALSE: case LPAREN: case LBRACKET: case OP_MINUS: case OP_NOT: case NUMBER: e =... | final public ListBuilder ArgList() throws ParseException { ListBuilder list = new ListBuilder(); Object e; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case DOLLAR: case QUOTE: case NULL: case TRUE: case FALSE: case LPAREN: case LBRACKET: case OP_MINUS: case OP_NOT: case NUMBER: e =... | 1,122,770 |
final public ListBuilder ArgList() throws ParseException { ListBuilder list = new ListBuilder(); Object e; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case DOLLAR: case QUOTE: case NULL: case TRUE: case FALSE: case LPAREN: case LBRACKET: case OP_MINUS: case OP_NOT: case NUMBER: e =... | final public ListBuilder ArgList() throws ParseException { ListBuilder list = new ListBuilder(); Object e; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case DOLLAR: case QUOTE: case NULL: case TRUE: case FALSE: case LPAREN: case LBRACKET: case OP_MINUS: case OP_NOT: case NUMBER: e =... | 1,122,771 |
final public ListBuilder ArgList() throws ParseException { ListBuilder list = new ListBuilder(); Object e; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case DOLLAR: case QUOTE: case NULL: case TRUE: case FALSE: case LPAREN: case LBRACKET: case OP_MINUS: case OP_NOT: case NUMBER: e =... | final public ListBuilder ArgList() throws ParseException { ListBuilder list = new ListBuilder(); Object e; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case DOLLAR: case QUOTE: case NULL: case TRUE: case FALSE: case LPAREN: case LBRACKET: case OP_MINUS: case OP_NOT: case NUMBER: e =... | 1,122,772 |
final public ListBuilder ArgList() throws ParseException { ListBuilder list = new ListBuilder(); Object e; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case DOLLAR: case QUOTE: case NULL: case TRUE: case FALSE: case LPAREN: case LBRACKET: case OP_MINUS: case OP_NOT: case NUMBER: e =... | final public ListBuilder ArgList() throws ParseException { ListBuilder list = new ListBuilder(); Object e; switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case DOLLAR: case QUOTE: case NULL: case TRUE: case FALSE: case LPAREN: case LBRACKET: case OP_MINUS: case OP_NOT: case NUMBER: e =... | 1,122,773 |
final public ListBuilder BracketList() throws ParseException { ListBuilder list; jj_consume_token(LBRACKET); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; default: jj_la1[34] = jj_gen; ; } list = ArgList(); jj_consume_token(RBRACKET); {if (t... | final public ListBuilder BracketList() throws ParseException { ListBuilder list; jj_consume_token(LBRACKET); switch ((jj_ntk==-1)?jj_ntk():jj_ntk) { case WS: jj_consume_token(WS); break; default: jj_la1[34] = jj_gen; ; } list = ArgList(); jj_consume_token(RBRACKET); {if (t... | 1,122,774 |
public void ReInit(java.io.Reader dstream) { ReInit(dstream, 1, 1, 4096); } | public void ReInit(java.io.Reader dstream, int startline, int startcolumn, int buffersize) { ReInit(dstream, 1, 1, 4096); } | 1,122,775 |
public void ReInit(java.io.Reader dstream) { ReInit(dstream, 1, 1, 4096); } | public void ReInit(java.io.Reader dstream) { inputStream = dstream; line = startline; column = startcolumn - 1; if (bufA == null || bufA.size != buffersize) bufA = new Buffer(buffersize); if (bufB == null || bufB.size != buffersize) bufB = new Buffer(buffersize); curBuf = bufA; otherBuf = bufB; curBuf.curPos = o... | 1,122,776 |
public Object evaluate(Context context) throws ContextException { try { ByteArrayOutputStream os = new ByteArrayOutputStream(_content.length * 16 + 256); FastWriter fw = new FastWriter(os, "UTF8"); write(fw,context); fw.flush(); return os.toString("UTF8"); } catch ... | public Object evaluate(Context context) throws ContextException { try { ByteArrayOutputStream os = new ByteArrayOutputStream(_content.length * 16 + 256); FastWriter fw = new FastWriter(os, context.getEncoding()); write(fw,context); fw.flush(); return os.toString("UTF8")... | 1,122,777 |
public Object evaluate(Context context) throws ContextException { try { ByteArrayOutputStream os = new ByteArrayOutputStream(_content.length * 16 + 256); FastWriter fw = new FastWriter(os, "UTF8"); write(fw,context); fw.flush(); return os.toString("UTF8"); } catch ... | public Object evaluate(Context context) throws ContextException { try { ByteArrayOutputStream os = new ByteArrayOutputStream(_content.length * 16 + 256); FastWriter fw = new FastWriter(os, "UTF8"); write(fw,context); fw.flush(); return os.toString(context.getEncoding())... | 1,122,778 |
public DirectiveBuilder(DirectiveDescriptor desc) { this.desc = desc; if (desc.args != null && desc.args.length > 0) buildArgs = new ArgsHolder(desc.args); if (desc.subdirectives != null && desc.subdirectives.length > 0) subdirectives = new Object[desc.subdirectives.length]; try { ... | public DirectiveBuilder(DirectiveDescriptor desc) { this.desc = desc; if (desc.args != null && desc.args.length > 0) buildArgs = new ArgsHolder(desc.args); if (desc.subdirectives != null && desc.subdirectives.length > 0) subdirectives = new Object[desc.subdirectives.length]; try { ... | 1,122,779 |
public XMLReport(ProjectData projectData, File destinationDir, FileFinder finder) throws IOException { this.finder = finder; pw = new PrintWriter(new FileWriter(new File(destinationDir, "coverage.xml"))); try { println("<?xml version=\"1.0\"?>"); println("<!DOCTYPE coverage SYSTEM \"http://cobertura.sourc... | public XMLReport(ProjectData projectData, File destinationDir, FileFinder finder, ComplexityCalculator complexity) throws IOException { this.finder = finder; pw = new PrintWriter(new FileWriter(new File(destinationDir, "coverage.xml"))); try { println("<?xml version=\"1.0\"?>"); println("<!DOCTYPE coverag... | 1,122,780 |
private void dumpClass(ClassData classData) { logger.debug("Dumping class " + classData.getName()); double ccn = Util.getCCN(finder.findFile(classData .getSourceFileName()), false); println("<class name=\"" + classData.getName() + "\" filename=\"" + classData.getSourceFileName() + "\" line-rate=\"" + class... | private void dumpClass(ClassData classData) { logger.debug("Dumping class " + classData.getName()); double ccn = Util.getCCN(finder.findFile(classData .getSourceFileName()), false); println("<class name=\"" + classData.getName() + "\" filename=\"" + classData.getSourceFileName() + "\" line-rate=\"" + class... | 1,122,782 |
private void dumpClass(ClassData classData) { logger.debug("Dumping class " + classData.getName()); double ccn = Util.getCCN(finder.findFile(classData .getSourceFileName()), false); println("<class name=\"" + classData.getName() + "\" filename=\"" + classData.getSourceFileName() + "\" line-rate=\"" + class... | private void dumpClass(ClassData classData) { logger.debug("Dumping class " + classData.getName()); double ccn = Util.getCCN(finder.findFile(classData .getSourceFileName()), false); println("<class name=\"" + classData.getName() + "\" filename=\"" + classData.getSourceFileName() + "\" line-rate=\"" + class... | 1,122,783 |
private void dumpPackage(PackageData packageData) { logger.debug("Dumping package " + packageData.getName()); double ccn = packageData.getCCN(finder); println("<package name=\"" + packageData.getName() + "\" line-rate=\"" + packageData.getLineCoverageRate() + "\" branch-rate=\"" + packageData.getBranchC... | private void dumpPackage(PackageData packageData) { logger.debug("Dumping package " + packageData.getName()); println("<package name=\"" + packageData.getName() + "\" line-rate=\"" + packageData.getLineCoverageRate() + "\" branch-rate=\"" + packageData.getBranchCoverageRate() + "\" complexity=\"" + ... | 1,122,784 |
private void dumpPackage(PackageData packageData) { logger.debug("Dumping package " + packageData.getName()); double ccn = packageData.getCCN(finder); println("<package name=\"" + packageData.getName() + "\" line-rate=\"" + packageData.getLineCoverageRate() + "\" branch-rate=\"" + packageData.getBranchC... | private void dumpPackage(PackageData packageData) { logger.debug("Dumping package " + packageData.getName()); double ccn = packageData.getCCN(finder); println("<package name=\"" + packageData.getName() + "\" line-rate=\"" + packageData.getLineCoverageRate() + "\" branch-rate=\"" + packageData.getBranchC... | 1,122,785 |
private void dumpSource(File sourceDirectory) { println("<source>" + sourceDirectory.getAbsolutePath() + "</source>"); } | private void dumpSource(String sourceDirectory) { println("<source>" + sourceDirectory.getAbsolutePath() + "</source>"); } | 1,122,786 |
private void dumpSource(File sourceDirectory) { println("<source>" + sourceDirectory.getAbsolutePath() + "</source>"); } | private void dumpSource(File sourceDirectory) { println("<source>" + sourceDirectory + "</source>"); } | 1,122,787 |
private void dumpSources() { println("<sources>"); increaseIndentation(); for (Iterator it = finder.getBaseDirectories().iterator(); it.hasNext(); ) { File dir = (File) it.next(); dumpSource(dir); } decreaseIndentation(); println("</sources>"); } | private void dumpSources() { println("<sources>"); increaseIndentation(); for (Iterator it = finder.getBaseDirectories().iterator(); it.hasNext(); ) { File dir = (File) it.next(); dumpSource(dir); } decreaseIndentation(); println("</sources>"); } | 1,122,788 |
public String getTemplateName(WikiSystem wiki, WikiPage page) { Properties props = wiki.getProperties(); String template = props.getProperty ("ViewPageAction.Template"); if (page != null) { template = props.getProperty (page.getTitle()); } return template; } | public String getTemplateName(WikiSystem wiki, WikiPage page) { Properties props = wiki.getProperties(); String template = props.getProperty ("ViewPageAction.Template"); if (page != null) { if (props.getProperty (page.getTitle()) != null) template = props.getProperty (page.getTitle()); ... | 1,122,789 |
public HTMLReport(ProjectData projectData, File outputDir, File sourceDir) throws Exception { this.destinationDir = outputDir; this.sourceDir = sourceDir; this.projectData = projectData; CopyFiles.copy(outputDir); generatePackageList(); generateClassLists(); generateOverviews(); generateSourceFiles(); } | public HTMLReport(ProjectData projectData, File outputDir, File sourceDir) throws Exception { this.destinationDir = outputDir; this.sourceDir = sourceDir; this.projectData = projectData; CopyFiles.copy(outputDir); generatePackageList(); generateSourceFileLists(); generateOverviews(); generateSourceFiles(); } | 1,122,790 |
private void generateOverview(PackageData packageData) throws IOException { Iterator iter; String filename; if (packageData == null) { filename = "frame-summary.html"; } else { filename = "frame-summary-" + packageData.getName() + ".html"; } File file = new File(destinationDir, filename); PrintStream out... | private void generateOverview(PackageData packageData) throws IOException { Iterator iter; String filename; if (packageData == null) { filename = "frame-summary.html"; } else { filename = "frame-summary-" + packageData.getName() + ".html"; } File file = new File(destinationDir, filename); PrintStream out... | 1,122,791 |
private void generateOverview(PackageData packageData) throws IOException { Iterator iter; String filename; if (packageData == null) { filename = "frame-summary.html"; } else { filename = "frame-summary-" + packageData.getName() + ".html"; } File file = new File(destinationDir, filename); PrintStream out... | private void generateOverview(PackageData packageData) throws IOException { Iterator iter; String filename; if (packageData == null) { filename = "frame-summary.html"; } else { filename = "frame-summary-" + packageData.getName() + ".html"; } File file = new File(destinationDir, filename); PrintStream out... | 1,122,792 |
private void generateOverview(PackageData packageData) throws IOException { Iterator iter; String filename; if (packageData == null) { filename = "frame-summary.html"; } else { filename = "frame-summary-" + packageData.getName() + ".html"; } File file = new File(destinationDir, filename); PrintStream out... | private void generateOverview(PackageData packageData) throws IOException { Iterator iter; String filename; if (packageData == null) { filename = "frame-summary.html"; } else { filename = "frame-summary-" + packageData.getName() + ".html"; } File file = new File(destinationDir, filename); PrintStream out... | 1,122,793 |
private void generateOverview(PackageData packageData) throws IOException { Iterator iter; String filename; if (packageData == null) { filename = "frame-summary.html"; } else { filename = "frame-summary-" + packageData.getName() + ".html"; } File file = new File(destinationDir, filename); PrintStream out... | private void generateOverview(PackageData packageData) throws IOException { Iterator iter; String filename; if (packageData == null) { filename = "frame-summary.html"; } else { filename = "frame-summary-" + packageData.getName() + ".html"; } File file = new File(destinationDir, filename); PrintStream out... | 1,122,794 |
private void generateOverview(PackageData packageData) throws IOException { Iterator iter; String filename; if (packageData == null) { filename = "frame-summary.html"; } else { filename = "frame-summary-" + packageData.getName() + ".html"; } File file = new File(destinationDir, filename); PrintStream out... | private void generateOverview(PackageData packageData) throws IOException { Iterator iter; String filename; if (packageData == null) { filename = "frame-summary.html"; } else { filename = "frame-summary-" + packageData.getName() + ".html"; } File file = new File(destinationDir, filename); PrintStream out... | 1,122,795 |
private void generateOverview(PackageData packageData) throws IOException { Iterator iter; String filename; if (packageData == null) { filename = "frame-summary.html"; } else { filename = "frame-summary-" + packageData.getName() + ".html"; } File file = new File(destinationDir, filename); PrintStream out... | private void generateOverview(PackageData packageData) throws IOException { Iterator iter; String filename; if (packageData == null) { filename = "frame-summary.html"; } else { filename = "frame-summary-" + packageData.getName() + ".html"; } File file = new File(destinationDir, filename); PrintStream out... | 1,122,796 |
private void generatePackageList() throws IOException { File file = new File(destinationDir, "frame-packages.html"); PrintStream out = null; try { out = new PrintStream(new FileOutputStream(file)); out.println("<html>"); out.println("<head>"); out.println("<title>Coverage Report</title>"); out .print... | private void generatePackageList() throws IOException { File file = new File(destinationDir, "frame-packages.html"); PrintStream out = null; try { out = new PrintStream(new FileOutputStream(file)); out.println("<html>"); out.println("<head>"); out.println("<title>Coverage Report</title>"); out .print... | 1,122,797 |
private void generatePackageList() throws IOException { File file = new File(destinationDir, "frame-packages.html"); PrintStream out = null; try { out = new PrintStream(new FileOutputStream(file)); out.println("<html>"); out.println("<head>"); out.println("<title>Coverage Report</title>"); out .print... | private void generatePackageList() throws IOException { File file = new File(destinationDir, "frame-packages.html"); PrintStream out = null; try { out = new PrintStream(new FileOutputStream(file)); out.println("<html>"); out.println("<head>"); out.println("<title>Coverage Report</title>"); out .print... | 1,122,798 |
private void generatePackageList() throws IOException { File file = new File(destinationDir, "frame-packages.html"); PrintStream out = null; try { out = new PrintStream(new FileOutputStream(file)); out.println("<html>"); out.println("<head>"); out.println("<title>Coverage Report</title>"); out .print... | private void generatePackageList() throws IOException { File file = new File(destinationDir, "frame-packages.html"); PrintStream out = null; try { out = new PrintStream(new FileOutputStream(file)); out.println("<html>"); out.println("<head>"); out.println("<title>Coverage Report</title>"); out .print... | 1,122,799 |
private void generateSourceFile(ClassData classData) throws IOException { String filename = classData.getName() + ".html"; File file = new File(destinationDir, filename); PrintStream out = null; try { out = new PrintStream(new FileOutputStream(file)); out.println("<html>"); out.println("<head>"); out.prin... | private void generateSourceFile(SourceFileData sourceFileData) throws IOException { String filename = classData.getName() + ".html"; File file = new File(destinationDir, filename); PrintStream out = null; try { out = new PrintStream(new FileOutputStream(file)); out.println("<html>"); out.println("<head>"); ... | 1,122,800 |
private void generateSourceFile(ClassData classData) throws IOException { String filename = classData.getName() + ".html"; File file = new File(destinationDir, filename); PrintStream out = null; try { out = new PrintStream(new FileOutputStream(file)); out.println("<html>"); out.println("<head>"); out.prin... | private void generateSourceFile(ClassData classData) throws IOException { String filename = sourceFileData.getNormalizedName() + ".html"; File file = new File(destinationDir, filename); PrintStream out = null; try { out = new PrintStream(new FileOutputStream(file)); out.println("<html>"); out.println("<head... | 1,122,801 |
private void generateSourceFile(ClassData classData) throws IOException { String filename = classData.getName() + ".html"; File file = new File(destinationDir, filename); PrintStream out = null; try { out = new PrintStream(new FileOutputStream(file)); out.println("<html>"); out.println("<head>"); out.prin... | private void generateSourceFile(ClassData classData) throws IOException { String filename = classData.getName() + ".html"; File file = new File(destinationDir, filename); PrintStream out = null; try { out = new PrintStream(new FileOutputStream(file)); out.println("<html>"); out.println("<head>"); out.prin... | 1,122,802 |
private void generateSourceFile(ClassData classData) throws IOException { String filename = classData.getName() + ".html"; File file = new File(destinationDir, filename); PrintStream out = null; try { out = new PrintStream(new FileOutputStream(file)); out.println("<html>"); out.println("<head>"); out.prin... | private void generateSourceFile(ClassData classData) throws IOException { String filename = classData.getName() + ".html"; File file = new File(destinationDir, filename); PrintStream out = null; try { out = new PrintStream(new FileOutputStream(file)); out.println("<html>"); out.println("<head>"); out.prin... | 1,122,803 |
private void generateSourceFile(ClassData classData) throws IOException { String filename = classData.getName() + ".html"; File file = new File(destinationDir, filename); PrintStream out = null; try { out = new PrintStream(new FileOutputStream(file)); out.println("<html>"); out.println("<head>"); out.prin... | private void generateSourceFile(ClassData classData) throws IOException { String filename = classData.getName() + ".html"; File file = new File(destinationDir, filename); PrintStream out = null; try { out = new PrintStream(new FileOutputStream(file)); out.println("<html>"); out.println("<head>"); out.prin... | 1,122,804 |
private void generateSourceFile(ClassData classData) throws IOException { String filename = classData.getName() + ".html"; File file = new File(destinationDir, filename); PrintStream out = null; try { out = new PrintStream(new FileOutputStream(file)); out.println("<html>"); out.println("<head>"); out.prin... | private void generateSourceFile(ClassData classData) throws IOException { String filename = classData.getName() + ".html"; File file = new File(destinationDir, filename); PrintStream out = null; try { out = new PrintStream(new FileOutputStream(file)); out.println("<html>"); out.println("<head>"); out.prin... | 1,122,805 |
private void generateSourceFile(ClassData classData) throws IOException { String filename = classData.getName() + ".html"; File file = new File(destinationDir, filename); PrintStream out = null; try { out = new PrintStream(new FileOutputStream(file)); out.println("<html>"); out.println("<head>"); out.prin... | private void generateSourceFile(ClassData classData) throws IOException { String filename = classData.getName() + ".html"; File file = new File(destinationDir, filename); PrintStream out = null; try { out = new PrintStream(new FileOutputStream(file)); out.println("<html>"); out.println("<head>"); out.prin... | 1,122,806 |
private void generateSourceFile(ClassData classData) throws IOException { String filename = classData.getName() + ".html"; File file = new File(destinationDir, filename); PrintStream out = null; try { out = new PrintStream(new FileOutputStream(file)); out.println("<html>"); out.println("<head>"); out.prin... | private void generateSourceFile(ClassData classData) throws IOException { String filename = classData.getName() + ".html"; File file = new File(destinationDir, filename); PrintStream out = null; try { out = new PrintStream(new FileOutputStream(file)); out.println("<html>"); out.println("<head>"); out.prin... | 1,122,807 |
private void generateSourceFile(ClassData classData) throws IOException { String filename = classData.getName() + ".html"; File file = new File(destinationDir, filename); PrintStream out = null; try { out = new PrintStream(new FileOutputStream(file)); out.println("<html>"); out.println("<head>"); out.prin... | private void generateSourceFile(ClassData classData) throws IOException { String filename = classData.getName() + ".html"; File file = new File(destinationDir, filename); PrintStream out = null; try { out = new PrintStream(new FileOutputStream(file)); out.println("<html>"); out.println("<head>"); out.prin... | 1,122,808 |
private void generateSourceFiles() { Iterator iter = projectData.getClasses().iterator(); while (iter.hasNext()) { ClassData classData = (ClassData)iter.next(); try { generateSourceFile(classData); } catch (Exception e) { logger.info("Could not generate HTML file for class " + classData.getNa... | private void generateSourceFiles() { Iterator iter = projectData.getSourceFiles().iterator(); while (iter.hasNext()) { ClassData classData = (ClassData)iter.next(); try { generateSourceFile(classData); } catch (Exception e) { logger.info("Could not generate HTML file for class " + classData.g... | 1,122,809 |
private void generateSourceFiles() { Iterator iter = projectData.getClasses().iterator(); while (iter.hasNext()) { ClassData classData = (ClassData)iter.next(); try { generateSourceFile(classData); } catch (Exception e) { logger.info("Could not generate HTML file for class " + classData.getNa... | private void generateSourceFiles() { Iterator iter = projectData.getClasses().iterator(); while (iter.hasNext()) { SourceFileData sourceFileData = (SourceFileData)iter.next(); try { generateSourceFile(classData); } catch (Exception e) { logger.info("Could not generate HTML file for class " + ... | 1,122,810 |
private void generateSourceFiles() { Iterator iter = projectData.getClasses().iterator(); while (iter.hasNext()) { ClassData classData = (ClassData)iter.next(); try { generateSourceFile(classData); } catch (Exception e) { logger.info("Could not generate HTML file for class " + classData.getNa... | private void generateSourceFiles() { Iterator iter = projectData.getClasses().iterator(); while (iter.hasNext()) { ClassData classData = (ClassData)iter.next(); try { generateSourceFile(sourceFileData); } catch (Exception e) { logger.info("Could not generate HTML file for class " + classData.... | 1,122,811 |
private void generateSourceFiles() { Iterator iter = projectData.getClasses().iterator(); while (iter.hasNext()) { ClassData classData = (ClassData)iter.next(); try { generateSourceFile(classData); } catch (Exception e) { logger.info("Could not generate HTML file for class " + classData.getNa... | private void generateSourceFiles() { Iterator iter = projectData.getClasses().iterator(); while (iter.hasNext()) { ClassData classData = (ClassData)iter.next(); try { generateSourceFile(classData); } catch (Exception e) { logger.info("Could not generate HTML file for class " + classData.getNa... | 1,122,812 |
private String generateTableRowForPackage(PackageData packageData) { StringBuffer ret = new StringBuffer(); String url1 = "frame-summary-" + packageData.getName() + ".html"; String url2 = "frame-classes-" + packageData.getName() + ".html"; double lineCoverage = -1; double branchCoverage = -1; double ccn = Util.g... | private String generateTableRowForPackage(PackageData packageData) { StringBuffer ret = new StringBuffer(); String url1 = "frame-summary-" + packageData.getName() + ".html"; String url2 = "frame-sourcefiles-" + packageData.getName() + ".html"; double lineCoverage = -1; double branchCoverage = -1; double ccn = Ut... | 1,122,813 |
private String generateTableRowForPackage(PackageData packageData) { StringBuffer ret = new StringBuffer(); String url1 = "frame-summary-" + packageData.getName() + ".html"; String url2 = "frame-classes-" + packageData.getName() + ".html"; double lineCoverage = -1; double branchCoverage = -1; double ccn = Util.g... | private String generateTableRowForPackage(PackageData packageData) { StringBuffer ret = new StringBuffer(); String url1 = "frame-summary-" + packageData.getName() + ".html"; String url2 = "frame-classes-" + packageData.getName() + ".html"; double lineCoverage = -1; double branchCoverage = -1; double ccn = Util.g... | 1,122,814 |
public Collection getClasses() { Collection result = new ArrayList(children.size() * 15); // just an approximation, no science here for (Iterator it = children.values().iterator(); it.hasNext(); ) { PackageData packageData = (PackageData) it.next(); result.addAll(packageData.getChildren()); ... | public Collection getClasses() { Collection result = new ArrayList(children.size() * 15); // just an approximation, no science here for (Iterator it = children.values().iterator(); it.hasNext(); ) { PackageData packageData = (PackageData) it.next(); result.addAll(packageData.getChildren()); ... | 1,122,815 |
private void addInstrumentation(File file) { if (isClass(file)) { addInstrumentationToSingleClass(file); } else if (file.isDirectory()) { File[] contents = file.listFiles(); for (int i = 0; i < contents.length; i++) addInstrumentation(contents[i]); } else if (isArchive(file)) { addInstrumentationToA... | private void addInstrumentation(File baseDir, String filename) { if (isClass(file)) { addInstrumentationToSingleClass(file); } else if (file.isDirectory()) { File[] contents = file.listFiles(); for (int i = 0; i < contents.length; i++) addInstrumentation(contents[i]); } else if (isArchive(file)) { a... | 1,122,816 |
private void addInstrumentation(File file) { if (isClass(file)) { addInstrumentationToSingleClass(file); } else if (file.isDirectory()) { File[] contents = file.listFiles(); for (int i = 0; i < contents.length; i++) addInstrumentation(contents[i]); } else if (isArchive(file)) { addInstrumentationToA... | private void addInstrumentation(File file) { if (isClass(file)) { addInstrumentationToSingleClass(file); } else if (file.isDirectory()) { File[] contents = file.listFiles(); for (int i = 0; i < contents.length; i++) addInstrumentation(contents[i]); } else if (isArchive(file)) { addInstrumentationToA... | 1,122,817 |
private void addInstrumentationToArchive(ZipInputStream archive, ZipOutputStream output) throws Exception { ZipEntry entry; while ((entry = archive.getNextEntry()) != null) { try { ZipEntry outputEntry = new ZipEntry(entry.getName()); output.putNextEntry(outputEntry); // Read current entry byte[] ... | private void addInstrumentationToArchive(ZipInputStream archive, ZipOutputStream output) throws Exception { ZipEntry entry; while ((entry = archive.getNextEntry()) != null) { try { ZipEntry outputEntry = new ZipEntry(entry.getName()); output.putNextEntry(outputEntry); // Read current entry byte[] ... | 1,122,818 |
private void addInstrumentationToArchive(ZipInputStream archive, ZipOutputStream output) throws Exception { ZipEntry entry; while ((entry = archive.getNextEntry()) != null) { try { ZipEntry outputEntry = new ZipEntry(entry.getName()); output.putNextEntry(outputEntry); // Read current entry byte[] ... | private void addInstrumentationToArchive(ZipInputStream archive, ZipOutputStream output) throws Exception { ZipEntry entry; while ((entry = archive.getNextEntry()) != null) { try { ZipEntry outputEntry = new ZipEntry(entry.getName()); output.putNextEntry(outputEntry); // Read current entry byte[] ... | 1,122,819 |
private void addInstrumentationToArchive(ZipInputStream archive, ZipOutputStream output) throws Exception { ZipEntry entry; while ((entry = archive.getNextEntry()) != null) { try { ZipEntry outputEntry = new ZipEntry(entry.getName()); output.putNextEntry(outputEntry); // Read current entry byte[] ... | private void addInstrumentationToArchive(ZipInputStream archive, ZipOutputStream output) throws Exception { ZipEntry entry; while ((entry = archive.getNextEntry()) != null) { try { ZipEntry outputEntry = new ZipEntry(entry.getName()); output.putNextEntry(outputEntry); // Read current entry byte[] ... | 1,122,820 |
private void addInstrumentationToArchive(ZipInputStream archive, ZipOutputStream output) throws Exception { ZipEntry entry; while ((entry = archive.getNextEntry()) != null) { try { ZipEntry outputEntry = new ZipEntry(entry.getName()); output.putNextEntry(outputEntry); // Read current entry byte[] ... | private void addInstrumentationToArchive(ZipInputStream archive, ZipOutputStream output) throws Exception { ZipEntry entry; while ((entry = archive.getNextEntry()) != null) { try { ZipEntry outputEntry = new ZipEntry(entry.getName()); output.putNextEntry(outputEntry); // Read current entry byte[] ... | 1,122,821 |
private void addInstrumentationToArchive(ZipInputStream archive, ZipOutputStream output) throws Exception { ZipEntry entry; while ((entry = archive.getNextEntry()) != null) { try { ZipEntry outputEntry = new ZipEntry(entry.getName()); output.putNextEntry(outputEntry); // Read current entry byte[] ... | private void addInstrumentationToArchive(ZipInputStream archive, ZipOutputStream output) throws Exception { ZipEntry entry; while ((entry = archive.getNextEntry()) != null) { try { ZipEntry outputEntry = new ZipEntry(entry.getName()); output.putNextEntry(outputEntry); // Read current entry byte[] ... | 1,122,822 |
private void addInstrumentationToArchive(ZipInputStream archive, ZipOutputStream output) throws Exception { ZipEntry entry; while ((entry = archive.getNextEntry()) != null) { try { ZipEntry outputEntry = new ZipEntry(entry.getName()); output.putNextEntry(outputEntry); // Read current entry byte[] ... | private void addInstrumentationToArchive(ZipInputStream archive, ZipOutputStream output) throws Exception { ZipEntry entry; while ((entry = archive.getNextEntry()) != null) { try { ZipEntry outputEntry = new ZipEntry(entry.getName()); output.putNextEntry(outputEntry); // Read current entry byte[] ... | 1,122,823 |
private void addInstrumentationToSingleClass(File file) { logger.debug("Instrumenting class " + file.getAbsolutePath()); InputStream inputStream = null; ClassWriter cw; ClassInstrumenter cv; try { inputStream = new FileInputStream(file); ClassReader cr = new ClassReader(inputStream); cw = new ClassWriter(t... | private void addInstrumentationToSingleClass(File file) { logger.debug("Instrumenting class " + file.getAbsolutePath()); InputStream inputStream = null; ClassWriter cw; ClassInstrumenter cv; try { inputStream = new FileInputStream(file); ClassReader cr = new ClassReader(inputStream); cw = new ClassWriter(t... | 1,122,824 |
public static void main(String[] args) { long startTime = System.currentTimeMillis(); Main main = new Main(); boolean hasCommandsFile = false; String commandsFileName = null; for (int i = 0; i < args.length; i++) { if (args[i].equals("--commandsfile")) { hasCommandsFile = true; commandsFileName = args[... | public static void main(String[] args) { long startTime = System.currentTimeMillis(); boolean hasCommandsFile = false; String commandsFileName = null; for (int i = 0; i < args.length; i++) { if (args[i].equals("--commandsfile")) { hasCommandsFile = true; commandsFileName = args[++i]; } } if (hasCo... | 1,122,825 |
public static void main(String[] args) { long startTime = System.currentTimeMillis(); Main main = new Main(); boolean hasCommandsFile = false; String commandsFileName = null; for (int i = 0; i < args.length; i++) { if (args[i].equals("--commandsfile")) { hasCommandsFile = true; commandsFileName = args[... | public static void main(String[] args) { long startTime = System.currentTimeMillis(); Main main = new Main(); boolean hasCommandsFile = false; String commandsFileName = null; for (int i = 0; i < args.length; i++) { if (args[i].equals("--commandsfile")) { hasCommandsFile = true; commandsFileName = args[... | 1,122,826 |
public RoomList() { super(new String[]{" ", "Name", "Address", "Occupants"}); getColumnModel().setColumnMargin(0); getColumnModel().getColumn(0).setMaxWidth(30); getColumnModel().getColumn(3).setMaxWidth(80); setSelectionBackground(Table.SELECTION_COLOR); ... | public RoomList() { super(new String[]{" ", "Name", "Address", "Occupants"}); getColumnModel().setColumnMargin(0); getColumnModel().getColumn(0).setMaxWidth(30); getColumnModel().getColumn(3).setMaxWidth(80); setSelectionBackground(Table.SELECTION_COLOR); ... | 1,122,827 |
public static void autoJoinConferenceRoom(final String roomName, String roomJID, String password) { ChatManager chatManager = SparkManager.getChatManager(); final MultiUserChat groupChat = new MultiUserChat(SparkManager.getConnection(), roomJID); LocalPreferences pref = SettingsManager.getLocal... | public static void autoJoinConferenceRoom(final String roomName, String roomJID, String password) { ChatManager chatManager = SparkManager.getChatManager(); final MultiUserChat groupChat = new MultiUserChat(SparkManager.getConnection(), roomJID); LocalPreferences pref = SettingsManager.getLocal... | 1,122,828 |
public void move(DisplayedNoteHolder newHolder, NoteTree tree, int index) { // Move DisplayedNote holder.removeDisplayedNote(this); holder = newHolder; holder.addDisplayedNote(this, index); // Move Note note.move(newHolder.getNoteHolder(), index); // Move Tree Node boolean selected = treeNode.isSelected(... | public void move(DisplayedNoteHolder newHolder, NoteTree tree, int index) { // Move DisplayedNote holder.removeDisplayedNote(this); holder = newHolder; holder.addDisplayedNote(this, index); // Move Note note.move(newHolder.getNoteHolder(), index); // Move Tree Node boolean selected = treeNode.isSelected(... | 1,122,829 |
private String getFileName(String className, CoverageData instrumentation) { // TODO: Find a better way to get this return "TODO"; //return ClassHelper.getPackageName(className).replace('.', '/') + '/' + instrumentation.getSourceFileName(); } | private String getFileName(String className, CoverageData instrumentation) { // TODO: Find a better way to get this return ClassHelper.getPackageName(className).replace('.', '/') + '/' + instrumentation.getSourceFileName(); //return ClassHelper.getPackageName(className).replace('.', '/') + '/' + instrumentation.get... | 1,122,830 |
public NoteTreeNode(NoteTreeNode parent, DisplayedNote data) { treeItem = new TreeItem(parent.treeItem, SWT.NONE, data.getNote().getIndex()); init(data); } | protected NoteTreeNode(NoteTreeNode parent, DisplayedNote data) { treeItem = new TreeItem(parent.treeItem, SWT.NONE, data.getNote().getIndex()); init(data); } | 1,122,831 |
public Map getCategories() { if (_allCategories == null) { Collection cats = CategoryUtil.getCategories(); if(cats!=null && !cats.isEmpty()){ _allCategories = new LinkedHashMap(); _allCategories.put(ArticleUtil.getBundle().getLocalizedText("All categories"), "-1"); Iterator cat = cats.iterator(); ... | public Map getCategories() { if (_allCategories == null) { Collection cats = CategoryUtil.getCategories(); if(cats!=null && !cats.isEmpty()){ _allCategories = new LinkedHashMap(); _allCategories.put(ArticleUtil.getBundle().getLocalizedText("All categories"), "-1"); Iterator cat = cats.iterator(); ... | 1,122,833 |
public SearchRequest getSearchRequest(String scope, Locale locale) throws SearchException { SearchRequest s = new SearchRequest(); s.addSelection(IWSlideConstants.PROPERTY_CREATION_DATE); s.addSelection(IWSlideConstants.PROPERTY_CATEGORY); s.addScope(new SearchScope(scope)); SearchExpression whereExpression = nul... | public SearchRequest getSearchRequest(String scope, Locale locale) throws SearchException { SearchRequest s = new SearchRequest(); s.addSelection(IWSlideConstants.PROPERTY_CREATION_DATE); s.addSelection(IWSlideConstants.PROPERTY_CATEGORY); s.addScope(new SearchScope(scope)); SearchExpression whereExpression = nul... | 1,122,834 |
public void mousePressed(MouseEvent e) { if(e.isPopupTrigger()){ return; } if (e.getSource() instanceof SparkTab) { SparkTab tab = (SparkTab)e.getSource(); setSelectedTab(tab); } } | public void mousePressed(MouseEvent e) { if(e.isPopupTrigger()){ return; } if (e.getSource() instanceof SparkTab) { SparkTab tab = (SparkTab)e.getSource(); setSelectedTab(tab); } } | 1,122,836 |
public void setSelected(boolean selected) { super.setSelected(selected); this.selected = selected; if (boldWhenActive && selected) { textLabel.setFont(textLabel.getFont().deriveFont(Font.BOLD)); } else { textLabel.setFont(defaultFont); } invalid... | public void setSelected(boolean selected) { super.setSelected(selected); this.selected = selected; if (boldWhenActive && selected) { textLabel.setFont(textLabel.getFont().deriveFont(Font.BOLD)); } else { } invalidate(); repaint(); } | 1,122,837 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.