bugged stringlengths 6 599k | fixed stringlengths 10 599k | __index_level_0__ int64 0 1.13M |
|---|---|---|
private final int jjStopStringLiteralDfa_0(int pos, long active0){ switch (pos) { case 0: if ((active0 & 0x200000000L) != 0L) { jjmatchedKind = 34; return 0; } if ((active0 & 0x100000L) != 0L) { jjmatchedKind = 34; return 14; ... | private final int jjStopStringLiteralDfa_0(int pos, long active0){ switch (pos) { case 0: if ((active0 & 0x200000000L) != 0L) { jjmatchedKind = 34; return 0; } if ((active0 & 0x100000L) != 0L) { jjmatchedKind = 34; return 14; ... | 1,124,695 |
private final int jjStopStringLiteralDfa_0(int pos, long active0){ switch (pos) { case 0: if ((active0 & 0x200000000L) != 0L) { jjmatchedKind = 34; return 0; } if ((active0 & 0x100000L) != 0L) { jjmatchedKind = 34; return 14; ... | private final int jjStopStringLiteralDfa_0(int pos, long active0){ switch (pos) { case 0: if ((active0 & 0x200000000L) != 0L) { jjmatchedKind = 34; return 0; } if ((active0 & 0x800000000L) != 0L) { jjmatchedKind = 34; return 14... | 1,124,696 |
private final int jjStopStringLiteralDfa_0(int pos, long active0){ switch (pos) { case 0: if ((active0 & 0x200000000L) != 0L) { jjmatchedKind = 34; return 0; } if ((active0 & 0x100000L) != 0L) { jjmatchedKind = 34; return 14; ... | private final int jjStopStringLiteralDfa_0(int pos, long active0){ switch (pos) { case 0: if ((active0 & 0x200000000L) != 0L) { jjmatchedKind = 36; jjmatchedPos = 0; } return 58; } if ((active0 & 0x200000L) != 0L) { if (jjmatchedPos == 0) { jjmatchedKind = 36; return 0; ... | 1,124,697 |
private final int jjStopStringLiteralDfa_0(int pos, long active0){ switch (pos) { case 0: if ((active0 & 0x200000000L) != 0L) { jjmatchedKind = 34; return 0; } if ((active0 & 0x100000L) != 0L) { jjmatchedKind = 34; return 14; ... | private final int jjStopStringLiteralDfa_0(int pos, long active0){ switch (pos) { case 0: if ((active0 & 0x200000000L) != 0L) { jjmatchedKind = 34; return 0; } if ((active0 & 0x100000L) != 0L) { jjmatchedKind = 34; return 14; ... | 1,124,698 |
private final int jjStopStringLiteralDfa_0(int pos, long active0){ switch (pos) { case 0: if ((active0 & 0x200000000L) != 0L) { jjmatchedKind = 34; return 0; } if ((active0 & 0x100000L) != 0L) { jjmatchedKind = 34; return 14; ... | private final int jjStopStringLiteralDfa_0(int pos, long active0){ switch (pos) { case 0: if ((active0 & 0x200000000L) != 0L) { jjmatchedKind = 34; return 0; } if ((active0 & 0x100000L) != 0L) { jjmatchedKind = 34; return 14; ... | 1,124,699 |
private final int jjStopStringLiteralDfa_0(int pos, long active0){ switch (pos) { case 0: if ((active0 & 0x200000000L) != 0L) { jjmatchedKind = 34; return 0; } if ((active0 & 0x100000L) != 0L) { jjmatchedKind = 34; return 14; ... | private final int jjStopStringLiteralDfa_0(int pos, long active0){ switch (pos) { case 0: if ((active0 & 0x200000000L) != 0L) { jjmatchedKind = 34; return 0; } if ((active0 & 0x100000L) != 0L) { jjmatchedKind = 34; return 14; ... | 1,124,700 |
private final int jjStopStringLiteralDfa_0(int pos, long active0){ switch (pos) { case 0: if ((active0 & 0x200000000L) != 0L) { jjmatchedKind = 34; return 0; } if ((active0 & 0x100000L) != 0L) { jjmatchedKind = 34; return 14; ... | private final int jjStopStringLiteralDfa_0(int pos, long active0){ switch (pos) { case 0: if ((active0 & 0x200000000L) != 0L) { jjmatchedKind = 34; return 0; } if ((active0 & 0x800000000L) != 0L) return 59; if ((active0 & 0x200000L) != 0L) { ... | 1,124,701 |
private final int jjStopStringLiteralDfa_0(int pos, long active0){ switch (pos) { case 0: if ((active0 & 0x200000000L) != 0L) { jjmatchedKind = 34; return 0; } if ((active0 & 0x100000L) != 0L) { jjmatchedKind = 34; return 14; ... | private final int jjStopStringLiteralDfa_0(int pos, long active0){ switch (pos) { case 0: if ((active0 & 0x200000000L) != 0L) { jjmatchedKind = 34; return 0; } if ((active0 & 0x100000L) != 0L) { jjmatchedKind = 34; return 14; ... | 1,124,702 |
public void javaToNative(Object object, TransferData transferData) { // If null Object or unsupported TransferData, return. if (object == null || !(object instanceof Note[])) return; if (!isSupportedType(transferData)) return; // Write data to a byte[]. List<Note> notes = (List<Note>) object; org.jdom.Docume... | public void javaToNative(Object object, TransferData transferData) { // If null Object or unsupported TransferData, return. if (object == null) return; if (!(object instanceof List)) return; if (((List) object).isEmpty()) return; if (!(((List) object).get(0) instanceof Note)) return; if (!isSupportedType(transfer... | 1,124,703 |
public static void moveFile(File sourceFile, File destinationFile) throws IOException { logger.debug("Moving " + sourceFile.getAbsolutePath() + " to " + destinationFile.getAbsolutePath()); if (destinationFile.exists()) { destinationFile.delete(); } // Move file using File method if possible boolean succes... | public static void moveFile(File sourceFile, File destinationFile) throws IOException { logger.debug("Moving " + sourceFile.getAbsolutePath() + " to " + destinationFile.getAbsolutePath()); if (destinationFile.exists()) { destinationFile.delete(); } // Move file using File method if possible boolean succes... | 1,124,704 |
public static void moveFile(File sourceFile, File destinationFile) throws IOException { logger.debug("Moving " + sourceFile.getAbsolutePath() + " to " + destinationFile.getAbsolutePath()); if (destinationFile.exists()) { destinationFile.delete(); } // Move file using File method if possible boolean succes... | public static void moveFile(File sourceFile, File destinationFile) throws IOException { logger.debug("Moving " + sourceFile.getAbsolutePath() + " to " + destinationFile.getAbsolutePath()); if (destinationFile.exists()) { destinationFile.delete(); } // Move file using File method if possible boolean succes... | 1,124,705 |
public static void moveFile(File sourceFile, File destinationFile) throws IOException { logger.debug("Moving " + sourceFile.getAbsolutePath() + " to " + destinationFile.getAbsolutePath()); if (destinationFile.exists()) { destinationFile.delete(); } // Move file using File method if possible boolean succes... | public static void moveFile(File sourceFile, File destinationFile) throws IOException { logger.debug("Moving " + sourceFile.getAbsolutePath() + " to " + destinationFile.getAbsolutePath()); if (destinationFile.exists()) { destinationFile.delete(); } // Move file using File method if possible boolean succes... | 1,124,706 |
public UIComponent getEditContainer() { WFResourceUtil localizer = WFResourceUtil.getResourceUtilArticle(); String ref = ARTICLE_ITEM_BEAN_ID + ".";// String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); mainContainer.setId(ARTICLE_EDITOR_ID); WFErrorMessages em = new WFErr... | public UIComponent getEditContainer() { WFResourceUtil localizer = WFResourceUtil.getResourceUtilArticle(); String ref = ARTICLE_ITEM_BEAN_ID + ".";// String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); mainContainer.setId(ARTICLE_EDITOR_ID); WFErrorMessages em = new WFErr... | 1,124,707 |
public void testObjectNameCreation() { String beanName = "foobar"; assertTrue(factory.containsBeanDefinition(beanName)); BeanDefinition beanDefinition = factory.getBeanDefinition(beanName); assertNotNull(beanDefinition); assertFalse(beanDefinition.getPropertyValues().contains("gbe... | public void testObjectNameCreation() { String beanName = "foobar"; assertTrue(factory.containsBeanDefinition(beanName)); BeanDefinition beanDefinition = factory.getBeanDefinition(beanName); assertNotNull(beanDefinition); assertFalse(beanDefinition.getPropertyValues().contains("gbe... | 1,124,708 |
public void testObjectNameCreation() { String beanName = "foobar"; assertTrue(factory.containsBeanDefinition(beanName)); BeanDefinition beanDefinition = factory.getBeanDefinition(beanName); assertNotNull(beanDefinition); assertFalse(beanDefinition.getPropertyValues().contains("gbe... | public void testObjectNameCreation() { String beanName = "foobar"; assertTrue(factory.containsBeanDefinition(beanName)); BeanDefinition beanDefinition = factory.getBeanDefinition(beanName); assertNotNull(beanDefinition); assertFalse(beanDefinition.getPropertyValues().contains("gbe... | 1,124,709 |
public Ignore createIgnore() { ignoreRegex = new Ignore(); return ignoreRegex; } | public Ignore createIgnore() { Ignore ignoreRegex = new Ignore(); ignoreRegexs.add(ignoreRegex); return ignoreRegex; } | 1,124,710 |
public void execute() throws BuildException { CommandLineBuilder builder = null; try { builder = new CommandLineBuilder(); if (dataFile != null) builder.addArg("--datafile", dataFile); if (toDir != null) builder.addArg("--destination", toDir.getAbsolutePath()); // ignoreRegex.setRegex() is never called... | public void execute() throws BuildException { CommandLineBuilder builder = null; try { builder = new CommandLineBuilder(); if (dataFile != null) builder.addArg("--datafile", dataFile); if (toDir != null) builder.addArg("--destination", toDir.getAbsolutePath()); // ignoreRegex.setRegex() is never called... | 1,124,711 |
private UIComponent getMetadataPanel() { String path = (String)WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "getFolderLocation"); String fileName = (String)WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "getHeadline");// System.out.println("path = "+path+"/"+fileName+".xml"); WebDAVMetadata metadataUI = new WebDAVMetadata(path+"/"+fi... | private UIComponent getMetadataPanel() { String path = (String)WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "getFolderLocation"); String fileName = (String)WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "getHeadline");// System.out.println("path = "+path+"/"+fileName+".xml"); WebDAVMetadata metadataUI = new WebDAVMetadata(path+"/"+fi... | 1,124,713 |
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,124,714 |
public void store() throws IDOStoreException{ boolean storeOk = true; clearErrorKeys(); if (getHeadline().trim().equals("")) { addErrorKey(KEY_ERROR_HEADLINE_EMPTY); storeOk = false; }// if (getBody().trim().equals("")) {// addErrorKey(KEY_ERROR_BODY_EMPTY);// storeOk = false;// } // if (getRequestedSt... | public void store() throws IDOStoreException{ boolean storeOk = true; clearErrorKeys(); if (getHeadline().trim().equals("")) { addErrorKey(KEY_ERROR_HEADLINE_EMPTY); storeOk = false; }// if (getBody().trim().equals("")) {// addErrorKey(KEY_ERROR_BODY_EMPTY);// storeOk = false;// } // if (getRequestedSt... | 1,124,715 |
public void store() throws IDOStoreException{ boolean storeOk = true; clearErrorKeys(); if (getHeadline().trim().equals("")) { addErrorKey(KEY_ERROR_HEADLINE_EMPTY); storeOk = false; }// if (getBody().trim().equals("")) {// addErrorKey(KEY_ERROR_BODY_EMPTY);// storeOk = false;// } // if (getRequestedSt... | public void store() throws IDOStoreException{ boolean storeOk = true; clearErrorKeys(); if (getHeadline().trim().equals("")) { addErrorKey(KEY_ERROR_HEADLINE_EMPTY); storeOk = false; }// if (getBody().trim().equals("")) {// addErrorKey(KEY_ERROR_BODY_EMPTY);// storeOk = false;// } // if (getRequestedSt... | 1,124,716 |
public FlowGraphNode makeAbslocNode(Object ident, Type typ, SootMethod enclosingMethod) { return null; } | public FlowGraphNode makeAbslocNode(Object ident, Type typ, SootMethod enclosingMethod) { FlowGraphNode result = (FlowGraphNode)identToAbslocMap.get(ident); if (result == null) { identToAbslocMap.put(ident, result = new AbslocNode(ident.toString(), type)); } return result; } | 1,124,717 |
public FlowGraphNode makeFieldRefNode(FlowGraphNode base, SootField field, SootMethod method) { return null; } | public FlowGraphNode makeFieldRefNode(FlowGraphNode base, SootField field, SootMethod method) { return null; } | 1,124,718 |
protected PropertyEditor createPropertyEditor(String propertyEditor) { ClassLoader cl = Thread.currentThread().getContextClassLoader(); if( cl==null ) { cl = XBeanXmlBeanDefinitionParser.class.getClassLoader(); } try { return (PropertyEditor)cl.loadClass(propertyEditor).newInstan... | protected PropertyEditor createPropertyEditor(String propertyEditor) { ClassLoader cl = Thread.currentThread().getContextClassLoader(); if( cl==null ) { cl = XBeanXmlBeanDefinitionParser.class.getClassLoader(); } try { return (PropertyEditor)cl.loadClass(propertyEditor).newInstan... | 1,124,719 |
public Object getObject() { return object;; } | public Object getObject() { return object; } | 1,124,720 |
public void addNote(Event e) { NoteTreeNode parentTreeNode = dd.getTree().getSelectedNode(); Note parentNote = parentTreeNode.getDisplayedNote().getNote(); Note newNote = new Note("new", parentNote, ""); parentTreeNode.addChild(newNote); } | public void addNote(Event e) { NoteTreeNode parentTreeNode = dd.getTree().getSelectedNode(); Note parentNote = parentTreeNode.getDisplayedNote().getNote(); Note newNote = new Note("new", parentNote, ""); parentTreeNode.addChild(newNote); } | 1,124,721 |
public void addNote(Event e) { NoteTreeNode parentTreeNode = dd.getTree().getSelectedNode(); Note parentNote = parentTreeNode.getDisplayedNote().getNote(); Note newNote = new Note("new", parentNote, ""); parentTreeNode.addChild(newNote); } | public void addNote(Event e) { NoteTreeNode parentTreeNode = dd.getTree().getSelectedNode(); Note parentNote = parentTreeNode.getDisplayedNote().getNote(); Note newNote = new Note("new", parentNote, ""); new DisplayedNote(parentDisplayed, newNote); } | 1,124,722 |
public void removeNotes(Event e) { for (NoteTreeNode node : dd.getTree().getSelectedNodes()) { node.dispose(); } } | public void removeNotes(Event e) { for (NoteTreeNode node : dd.getTree().getSelectedNodes()) { node.dispose(); } } | 1,124,723 |
public ChatRoomImpl(final String participantJID, String participantNickname, String title) { this.participantJID = participantJID; this.participantNickname = participantNickname; AndFilter presenceFilter = new AndFilter(new PacketTypeFilter(Presence.class), new FromContainsFilter(this.participa... | public ChatRoomImpl(final String participantJID, String participantNickname, String title) { this.participantJID = participantJID; this.participantNickname = participantNickname; AndFilter presenceFilter = new AndFilter(new PacketTypeFilter(Presence.class), new BareAddressFilter(participantJID)... | 1,124,724 |
public ChatRoomImpl(final String participantJID, String participantNickname, String title) { this.participantJID = participantJID; this.participantNickname = participantNickname; AndFilter presenceFilter = new AndFilter(new PacketTypeFilter(Presence.class), new FromContainsFilter(this.participa... | public ChatRoomImpl(final String participantJID, String participantNickname, String title) { this.participantJID = participantJID; this.participantNickname = participantNickname; AndFilter presenceFilter = new AndFilter(new PacketTypeFilter(Presence.class), new FromContainsFilter(this.participa... | 1,124,725 |
public String getUserNicknameFromJID(String jid) { ContactList contactList = SparkManager.getWorkspace().getContactList(); ContactItem item = contactList.getContactItemByJID(jid); if (item != null) { return item.getNickname(); } return null; } | public String getUserNicknameFromJID(String jid) { ContactList contactList = SparkManager.getWorkspace().getContactList(); ContactItem item = contactList.getContactItemByJID(jid); if (item != null) { return item.getNickname(); } return jid; } | 1,124,727 |
public void write(FastWriter out, Context context) throws PropertyException, IOException { Broker broker = context.getBroker(); // the filename arg passed to us was a Macro, so // evaluate and check it now if (_macFilename != null) { _strFilename = _macFilename.evaluate(context).toString(... | public void write(FastWriter out, Context context) throws PropertyException, IOException { Broker broker = context.getBroker(); // the filename arg passed to us was a Macro, so // evaluate and check it now if (_macFilename != null) { _strFilename = _macFilename.evaluate(context).toString(... | 1,124,729 |
private UIComponent getCategoryEditContainer() { String ref = ARTICLE_ITEM_BEAN_ID + "."; String bref = WFPage.CONTENT_BUNDLE + "."; HtmlPanelGrid p = WFPanelUtil.getFormPanel(3); p.setId(CATEGORY_EDITOR_ID); p.getChildren().add(WFUtil.group(WFUtil.getTextVB(bref + "available_categories"), WFUtil.getText(":"))); ... | private UIComponent getCategoryEditContainer() { String ref = ARTICLE_ITEM_BEAN_ID + "."; String bref = WFPage.CONTENT_BUNDLE + "."; HtmlPanelGrid p = WFPanelUtil.getFormPanel(3); p.setId(CATEGORY_EDITOR_ID); p.getChildren().add(WFUtil.group(WFUtil.getTextVB(bref + "available_categories"), WFUtil.getText(":"))); ... | 1,124,731 |
private UIComponent getCategoryEditContainer() { String ref = ARTICLE_ITEM_BEAN_ID + "."; String bref = WFPage.CONTENT_BUNDLE + "."; HtmlPanelGrid p = WFPanelUtil.getFormPanel(3); p.setId(CATEGORY_EDITOR_ID); p.getChildren().add(WFUtil.group(WFUtil.getTextVB(bref + "available_categories"), WFUtil.getText(":"))); ... | private UIComponent getCategoryEditContainer() { String ref = ARTICLE_ITEM_BEAN_ID + "."; String bref = WFPage.CONTENT_BUNDLE + "."; HtmlPanelGrid p = WFPanelUtil.getFormPanel(3); p.setId(CATEGORY_EDITOR_ID); p.getChildren().add(WFUtil.group(WFUtil.getTextVB(bref + "available_categories"), WFUtil.getText(":"))); ... | 1,124,732 |
public void useTabDefault(final ChatRoom room) { // Check if room is stale boolean containsRoom = getStaleChatRooms().contains(room); if (containsRoom) { return; } final int index = indexOfComponent(room); if (index != -1) { SparkTab tab = getTabAt(ind... | public void useTabDefault(final ChatRoom room) { // Check if room is stale boolean containsRoom = getStaleChatRooms().contains(room); if (containsRoom) { return; } final int index = indexOfComponent(room); if (index != -1) { SparkTab tab = getTabAt(ind... | 1,124,733 |
private static void runTestAntScript(String testName, String target) throws IOException { Java task = new Java(); task.setTaskName("java"); task.setProject(new Project()); task.init(); // Call ant launcher. Requires ant-lancher.jar. task.setClassname("org.apache.tools.ant.launch.Launcher"); task.setFork(true);... | private static void runTestAntScript(String testName, String target) throws IOException { Java task = new Java(); task.setTaskName("java"); task.setProject(new Project()); task.init(); // Call ant launcher. Requires ant-lancher.jar. task.setClassname("org.apache.tools.ant.launch.Launcher"); task.setFork(true);... | 1,124,735 |
public XMLReport(Map coverageData, File outputDir, File sourceDirectory) throws IOException { pw = new PrintWriter(new FileWriter(new File(outputDir, "coverage.xml"))); try { println("<?xml version=\"1.0\"?>"); if (sourceDirectory == null) { println("<coverage>"); } else { println("<coverage ... | public XMLReport(Coverage coverage, File outputDir, File sourceDirectory) throws IOException { pw = new PrintWriter(new FileWriter(new File(outputDir, "coverage.xml"))); try { println("<?xml version=\"1.0\"?>"); if (sourceDirectory == null) { println("<coverage>"); } else { println("<coverage... | 1,124,736 |
public XMLReport(Map coverageData, File outputDir, File sourceDirectory) throws IOException { pw = new PrintWriter(new FileWriter(new File(outputDir, "coverage.xml"))); try { println("<?xml version=\"1.0\"?>"); if (sourceDirectory == null) { println("<coverage>"); } else { println("<coverage ... | public XMLReport(Map coverageData, File outputDir, File sourceDirectory) throws IOException { pw = new PrintWriter(new FileWriter(new File(outputDir, "coverage.xml"))); try { println("<?xml version=\"1.0\"?>"); if (sourceDirectory == null) { println("<coverage>"); } else { println("<coverage ... | 1,124,737 |
public void deleteSelfAndChildren() { for (DisplayedNote child : displayedNotes) { child.deleteSelfAndChildren(); } treeNode.dispose(); if (tab != null) tab.dispose(); holder.removeDisplayedNote(this); note.getHolder().removeNote(note); } | public void deleteSelfAndChildren() { while (displayedNotes.size() > 0) { DisplayedNote child = displayedNotes.get(0); child.deleteSelfAndChildren(); } treeNode.dispose(); if (tab != null) tab.dispose(); holder.removeDisplayedNote(this); note.getHolder().removeNote(note); } | 1,124,738 |
private void generateClassList(Package pkg) throws IOException { String filename; Collection classes; if (pkg == null) { filename = "frame-classes.html"; classes = coverage.getClassesSortedByBasename().values(); } else { filename = "frame-classes-" + pkg.getName() + ".html"; classes = pkg.getClasses(); ... | private void generateClassList(Package pkg) throws IOException { String filename; Collection classes; if (pkg == null) { filename = "frame-classes.html"; classes = coverage.getClassesSortedByBasename().values(); } else { filename = "frame-classes-" + pkg.getName() + ".html"; classes = pkg.getClasses(); ... | 1,124,739 |
private void generateOverview(Package pkg) throws IOException { String filename; if (pkg == null) { filename = "frame-summary.html"; } else { filename = "frame-summary-" + pkg.getName() + ".html"; } File file = new File(outputDir, filename); PrintStream out = null; try { out = new PrintStream(new File... | private void generateOverview(Package pkg) throws IOException { String filename; if (pkg == null) { filename = "frame-summary.html"; } else { filename = "frame-summary-" + pkg.getName() + ".html"; } File file = new File(outputDir, filename); PrintStream out = null; try { out = new PrintStream(new File... | 1,124,740 |
private void generatePackageList() throws IOException { File file = new File(outputDir, "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 .println("<... | private void generatePackageList() throws IOException { File file = new File(outputDir, "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 .println("<... | 1,124,741 |
private void generateSourceFile(Clazz clazz) throws IOException { String filename = clazz.getLongName() + ".html"; File file = new File(outputDir, filename); PrintStream out = null; try { out = new PrintStream(new FileOutputStream(file)); out.println("<html>"); out.println("<head>"); out.println("<title>C... | private void generateSourceFile(Clazz clazz) throws IOException { String filename = clazz.getLongName() + ".html"; File file = new File(outputDir, filename); PrintStream out = null; try { out = new PrintStream(new FileOutputStream(file)); out.println("<html>"); out.println("<head>"); out.println("<title>C... | 1,124,742 |
private String generateTableRowForPackage(Package pkg) { StringBuffer ret = new StringBuffer(); String url1 = "frame-summary-" + pkg.getName() + ".html"; String url2 = "frame-classes-" + pkg.getName() + ".html"; double lineCoverage = pkg.getLineCoverageRate(); double branchCoverage = pkg.getBranchCoverageRate(); ... | private String generateTableRowForPackage(Package pkg) { StringBuffer ret = new StringBuffer(); String url1 = "frame-summary-" + pkg.getName() + ".html"; String url2 = "frame-classes-" + pkg.getName() + ".html"; double lineCoverage = pkg.getLineCoverageRate(); double branchCoverage = pkg.getBranchCoverageRate(); ... | 1,124,743 |
public void processPacket(final Packet packet) { SwingUtilities.invokeLater(new Runnable() { public void run() { final Message message = (Message)packet; boolean broadcast = message.getProperty("broadcast") != null; if ((broadcast || message.getType() =... | public void processPacket(final Packet packet) { SwingUtilities.invokeLater(new Runnable() { public void run() { final Message message = (Message)packet; boolean broadcast = message.getProperty("broadcast") != null; if ((broadcast || (message.getType() ... | 1,124,744 |
public void run() { final Message message = (Message)packet; boolean broadcast = message.getProperty("broadcast") != null; if ((broadcast || message.getType() == Message.Type.NORMAL) && message.getBody() != null) { showAlert((Message)packet); ... | public void run() { final Message message = (Message)packet; boolean broadcast = message.getProperty("broadcast") != null; if ((broadcast || (message.getType() == Message.Type.NORMAL) || message.getType() == Message.Type.HEADLINE) && message.getBody() != null) { ... | 1,124,745 |
public void testXMLReportValidity() throws Exception { String[] args; // Serialize the current coverage data to disk ProjectData.saveGlobalProjectData(); String dataFileName = CoverageDataFileHandler.getDefaultDataFile() .getAbsolutePath(); // Then we need to generate the XML report args = new String[] { "--f... | public void testXMLReportValidity() throws Exception { String[] args; // Serialize the current coverage data to disk ProjectData.saveGlobalProjectData(); String dataFileName = CoverageDataFileHandler.getDefaultDataFile() .getAbsolutePath(); // Then we need to generate the XML report args = new String[] { "--f... | 1,124,746 |
public SingletonReference(String name, Set patterns, String objectTypeName) { this.name = name; this.patterns = patterns; this.objectTypeName = objectTypeName; } | public SingletonReference(String name, Set patterns, String objectTypeName) { this.name = name; this.patterns = patterns; this.objectTypeName = objectTypeName; } | 1,124,747 |
public synchronized final Object getObject() throws ClassNotFoundException { ServiceContext serviceContext = ServiceContextThreadLocal.get(); if (serviceContext == null) { throw new IllegalStateException("Service context has not been set"); } synchronized (this) { i... | public synchronized final Object getObject() throws ClassNotFoundException { ServiceContext serviceContext = ServiceContextThreadLocal.get(); if (serviceContext == null) { throw new IllegalStateException("Service context has not been set"); } synchronized (this) { i... | 1,124,748 |
public final Class getObjectType() { ServiceContext serviceContext = ServiceContextThreadLocal.get(); if (serviceContext == null) { throw new IllegalStateException("Service context has not been set"); } synchronized (this) { if (objectType == null) { ... | public final Class getObjectType() { ServiceContext serviceContext = ServiceContextThreadLocal.get(); if (serviceContext == null) { throw new IllegalStateException("Service context has not been set"); } synchronized (this) { if (objectType == null) { ... | 1,124,749 |
public Boolean compare(Object l, Object r) { return (l.equals(r)) ? TRUE : FALSE; } | public Boolean compare(Object l, Object r) { return (!l.equals(r)) ? TRUE : FALSE; } | 1,124,750 |
public static boolean isNumber(Object o) { return ((o instanceof Integer) || o instanceof Long || o instanceof Short || o instanceof Byte); } | public static boolean isNumber(Object o) { return ((o instanceof Integer) || o instanceof Long || o instanceof Short || o instanceof Byte); } | 1,124,751 |
private void addInstrumentation(CoberturaFile coberturaFile) { if (coberturaFile.isClass() && shouldInstrument(coberturaFile.getPathname())) { addInstrumentationToSingleClass(coberturaFile); } else if (coberturaFile.isDirectory()) { String[] contents = coberturaFile.list(); for (int i = 0; i < contents.leng... | private void addInstrumentation(CoberturaFile coberturaFile) { if (coberturaFile.isClass() && classPattern.matches(coberturaFile.getPathname())) { addInstrumentationToSingleClass(coberturaFile); } else if (coberturaFile.isDirectory()) { String[] contents = coberturaFile.list(); for (int i = 0; i < contents.... | 1,124,752 |
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,124,753 |
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,124,754 |
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,124,755 |
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,124,756 |
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,124,757 |
private void parseArguments(String[] args) { File dataFile = CoverageDataFileHandler.getDefaultDataFile(); // Parse our parameters List filePaths = new ArrayList(); String baseDir = null; for (int i = 0; i < args.length; i++) { if (args[i].equals("--basedir")) baseDir = args[++i]; else if (args[i].equals(... | private void parseArguments(String[] args) { File dataFile = CoverageDataFileHandler.getDefaultDataFile(); // Parse our parameters List filePaths = new ArrayList(); String baseDir = null; for (int i = 0; i < args.length; i++) { if (args[i].equals("--basedir")) baseDir = args[++i]; else if (args[i].equals(... | 1,124,758 |
private void parseArguments(String[] args) { File dataFile = CoverageDataFileHandler.getDefaultDataFile(); // Parse our parameters List filePaths = new ArrayList(); String baseDir = null; for (int i = 0; i < args.length; i++) { if (args[i].equals("--basedir")) baseDir = args[++i]; else if (args[i].equals(... | private void parseArguments(String[] args) { File dataFile = CoverageDataFileHandler.getDefaultDataFile(); // Parse our parameters List filePaths = new ArrayList(); String baseDir = null; for (int i = 0; i < args.length; i++) { if (args[i].equals("--basedir")) baseDir = args[++i]; else if (args[i].equals(... | 1,124,759 |
private void parseArguments(String[] args) { File dataFile = CoverageDataFileHandler.getDefaultDataFile(); // Parse our parameters List filePaths = new ArrayList(); String baseDir = null; for (int i = 0; i < args.length; i++) { if (args[i].equals("--basedir")) baseDir = args[++i]; else if (args[i].equals(... | private void parseArguments(String[] args) { File dataFile = CoverageDataFileHandler.getDefaultDataFile(); // Parse our parameters List filePaths = new ArrayList(); String baseDir = null; for (int i = 0; i < args.length; i++) { if (args[i].equals("--basedir")) baseDir = args[++i]; else if (args[i].equals(... | 1,124,760 |
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,124,761 |
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,124,762 |
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,124,763 |
private void broadcastToGroup(ContactGroup group) { StringBuffer buf = new StringBuffer(); InputDialog dialog = new InputDialog(); final String messageText = dialog.getInput(Res.getString("title.broadcast.message"), Res.getString("message.broadcast.to", group.getGroupName()), SparkRes.getImageI... | private void broadcastToGroup(ContactGroup group) { StringBuffer buf = new StringBuffer(); InputDialog dialog = new InputDialog(); final String messageText = dialog.getInput(Res.getString("title.broadcast.message"), Res.getString("message.broadcast.to", group.getGroupName()), SparkRes.getImageI... | 1,124,764 |
public static void main(String[] args) throws Exception { long startTime = System.currentTimeMillis(); LongOpt[] longOpts = new LongOpt[4]; longOpts[0] = new LongOpt("format", LongOpt.REQUIRED_ARGUMENT, null, 'f'); longOpts[1] = new LongOpt("instrumentation", LongOpt.REQUIRED_ARGUMENT, null, 'i'); longOpts[... | public static void main(String[] args) throws Exception { long startTime = System.currentTimeMillis(); LongOpt[] longOpts = new LongOpt[4]; longOpts[0] = new LongOpt("format", LongOpt.REQUIRED_ARGUMENT, null, 'f'); longOpts[1] = new LongOpt("instrumentation", LongOpt.REQUIRED_ARGUMENT, null, 'i'); longOpts[... | 1,124,765 |
public static void main(String[] args) throws Exception { long startTime = System.currentTimeMillis(); LongOpt[] longOpts = new LongOpt[4]; longOpts[0] = new LongOpt("format", LongOpt.REQUIRED_ARGUMENT, null, 'f'); longOpts[1] = new LongOpt("instrumentation", LongOpt.REQUIRED_ARGUMENT, null, 'i'); longOpts[... | public static void main(String[] args) throws Exception { long startTime = System.currentTimeMillis(); LongOpt[] longOpts = new LongOpt[4]; longOpts[0] = new LongOpt("format", LongOpt.REQUIRED_ARGUMENT, null, 'f'); longOpts[1] = new LongOpt("instrumentation", LongOpt.REQUIRED_ARGUMENT, null, 'i'); longOpts[... | 1,124,766 |
public static List loadAllArticlesInFolder(File folder) throws XmlException, IOException{ List list = new ArrayList(); File[] articleFile = folder.listFiles(); if(articleFile!=null){ for(int i=0;i<articleFile.length;i++){ System.out.println("Attempting to load "+articleFile[i].toString()); ArticleItemBe... | public static List loadAllArticlesInFolder(String folder) throws XmlException, IOException{ List list = new ArrayList(); File[] articleFile = folder.listFiles(); if(articleFile!=null){ for(int i=0;i<articleFile.length;i++){ System.out.println("Attempting to load "+articleFile[i].toString()); ArticleItem... | 1,124,767 |
public static List loadAllArticlesInFolder(File folder) throws XmlException, IOException{ List list = new ArrayList(); File[] articleFile = folder.listFiles(); if(articleFile!=null){ for(int i=0;i<articleFile.length;i++){ System.out.println("Attempting to load "+articleFile[i].toString()); ArticleItemBe... | public static List loadAllArticlesInFolder(File folder) throws XmlException, IOException{ List list = new ArrayList(); if(articleFile!=null){ for(int i=0;i<articleFile.length;i++){ System.out.println("Attempting to load "+articleFile[i].toString()); ArticleItemBean article = new ArticleItemBean(); a... | 1,124,768 |
public static List loadAllArticlesInFolder(File folder) throws XmlException, IOException{ List list = new ArrayList(); File[] articleFile = folder.listFiles(); if(articleFile!=null){ for(int i=0;i<articleFile.length;i++){ System.out.println("Attempting to load "+articleFile[i].toString()); ArticleItemBe... | public static List loadAllArticlesInFolder(File folder) throws XmlException, IOException{ List list = new ArrayList(); File[] articleFile = folder.listFiles(); if(articleFile!=null){ for(int i=0;i<articleFile.length;i++){ System.out.println("Attempting to load "+articleFile[i].toString()); ArticleItemBe... | 1,124,769 |
public void updateDataModel(Integer start, Integer rows) { if (_dataModel == null) { _dataModel = new WFDataModel(); } int availableRows = 0; ArticleItemBean[] articleItemBean; try { articleItemBean = (ArticleItemBean[])loadAllArticlesInFolder(new File("/Test/article/")).toArray(new ArticleItemBean[0]); ava... | public void updateDataModel(Integer start, Integer rows) { if (_dataModel == null) { _dataModel = new WFDataModel(); } int availableRows = 0; ArticleItemBean[] articleItemBean; try { articleItemBean = (ArticleItemBean[])loadAllArticlesInFolder("/files/content").toArray(new ArticleItemBean[0]); availableRows... | 1,124,770 |
public void updateDataModel(Integer start, Integer rows) { if (_dataModel == null) { _dataModel = new WFDataModel(); } int availableRows = 0; ArticleItemBean[] articleItemBean; try { articleItemBean = (ArticleItemBean[])loadAllArticlesInFolder(new File("/Test/article/")).toArray(new ArticleItemBean[0]); ava... | public void updateDataModel(Integer start, Integer rows) { if (_dataModel == null) { _dataModel = new WFDataModel(); } int availableRows = 0; ArticleItemBean[] articleItemBean; try { articleItemBean = (ArticleItemBean[])loadAllArticlesInFolder(new File("/Test/article/")).toArray(new ArticleItemBean[0]); ava... | 1,124,771 |
public void addNote(Event e) { DisplayedNote parentDisplayed = dd.getTree().getSelectedNote(); Note parentNote = parentDisplayed.getNote(); Note newNote = new Note("new", parentNote, ""); new DisplayedNote(parentDisplayed, newNote); } | public void addNote(Event e) { DisplayedNote parentDisplayed = tree.getSelectedNote(); Note parentNote = parentDisplayed.getNote(); Note newNote = new Note("new", parentNote, ""); new DisplayedNote(parentDisplayed, newNote); } | 1,124,774 |
public void removeNotes(Event e) { for (DisplayedNote removeMe : dd.getTree().getSelectedNotes()) { removeMe.deleteSelfAndChildren(); } } | public void removeNotes(Event e) { for (DisplayedNote removeMe : tree.getSelectedNotes()) { removeMe.deleteSelfAndChildren(); } } | 1,124,775 |
public void renameNote(Event e) { dd.getTree().initialiseTreeEditor(); } | public void renameNote(Event e) { tree.initialiseTreeEditor(); } | 1,124,776 |
public Object evaluate(Context context) throws PropertyException { Object ret; boolean timing = context.isTiming(); if (timing) context.startTiming(myName); ret = myBlock.evaluate(context); if (timing) context.stopTiming(); return ret; } | public Object evaluate(Context context) throws PropertyException { Object ret; boolean timing = context.isTiming(); if (timing) context.startTiming(myName); ret = myBlock.evaluate(context); if (timing) context.stopTiming(); return ret; } | 1,124,777 |
public String getRedirectURI(IWActionURI uri) { //todo set to previewer or editor depending on action //todo register actions as subnodes of article String action = uri.getActionPart(); String subjectParameterName = ContentViewer.PARAMETER_CONTENT_RESOURCE; StringBuffer redirectURI = new StringBuffer(); redire... | public String getRedirectURI(IWActionURI uri) { //todo set to previewer or editor depending on action //todo register actions as subnodes of article String action = uri.getActionPart(); String subjectParameterName = ContentViewer.PARAMETER_CONTENT_RESOURCE; StringBuffer redirectURI = new StringBuffer(); redire... | 1,124,779 |
private String getArticleDefaultLocalizedFileName(){ return getArticleDefaultLocalizedFileName(getLanguage()); } | private String getArticleDefaultLocalizedFileName(){ return getArticleDefaultLocalizedFileName(getLanguage()); } | 1,124,781 |
public String getPassword(String title, String description, Icon icon, Component parent) { System.out.println(parent); passwordField = new JPasswordField(); TitlePanel titlePanel = new TitlePanel(title, description, icon, true); // Construct main panel w/ layout. final JPanel main... | public String getPassword(String title, String description, Icon icon, Component parent) { passwordField = new JPasswordField(); TitlePanel titlePanel = new TitlePanel(title, description, icon, true); // Construct main panel w/ layout. final JPanel mainPanel = new JPanel(); ... | 1,124,782 |
public final char BeginToken() throws java.io.IOException { tokenBegin = -1; char c = readChar(); tokenBuf = curBuf; tokenBegin = curBuf.curPos; return c; } | public final char BeginToken() throws java.io.IOException { tokenBeginPos = -1; char c = readChar(); tokenBuf = curBuf; tokenBegin = curBuf.curPos; return c; } | 1,124,783 |
public final char BeginToken() throws java.io.IOException { tokenBegin = -1; char c = readChar(); tokenBuf = curBuf; tokenBegin = curBuf.curPos; return c; } | public final char BeginToken() throws java.io.IOException { tokenBegin = -1; char c = readChar(); tokenBuf = curBuf; tokenBegin = curBuf.curPos; return c; } | 1,124,784 |
private final void FillBuff() throws java.io.IOException { // Buffer fill logic: // If there is at least 2K left in this buffer, just read some more // Otherwise, if we're processing a token and it either // (a) starts in the other buffer (meaning it's filled both part of // the other buffer and ... | private final void FillBuff() throws java.io.IOException { // Buffer fill logic: // If there is at least 2K left in this buffer, just read some more // Otherwise, if we're processing a token and it either // (a) starts in the other buffer (meaning it's filled both part of // the other buffer and ... | 1,124,785 |
private final void FillBuff() throws java.io.IOException { // Buffer fill logic: // If there is at least 2K left in this buffer, just read some more // Otherwise, if we're processing a token and it either // (a) starts in the other buffer (meaning it's filled both part of // the other buffer and ... | private final void FillBuff() throws java.io.IOException { // Buffer fill logic: // If there is at least 2K left in this buffer, just read some more // Otherwise, if we're processing a token and it either // (a) starts in the other buffer (meaning it's filled both part of // the other buffer and ... | 1,124,786 |
private final void FillBuff() throws java.io.IOException { // Buffer fill logic: // If there is at least 2K left in this buffer, just read some more // Otherwise, if we're processing a token and it either // (a) starts in the other buffer (meaning it's filled both part of // the other buffer and ... | private final void FillBuff() throws java.io.IOException { // Buffer fill logic: // If there is at least 2K left in this buffer, just read some more // Otherwise, if we're processing a token and it either // (a) starts in the other buffer (meaning it's filled both part of // the other buffer and ... | 1,124,787 |
public final String GetImage() { if (tokenBuf == curBuf) return new String(curBuf.buffer, tokenBegin, curBuf.curPos - tokenBegin + 1); else return new String(otherBuf.buffer, tokenBegin, otherBuf.dataLen - tokenBegin) + new String(cu... | public final String GetImage() { if (tokenBuf == curBuf) return new String(curBuf.buffer, tokenBegin, curBuf.curPos - tokenBegin + 1); else return new String(otherBuf.buffer, tokenBegin, otherBuf.dataLen - tokenBegin) + new String(cu... | 1,124,788 |
public final String GetImage() { if (tokenBuf == curBuf) return new String(curBuf.buffer, tokenBegin, curBuf.curPos - tokenBegin + 1); else return new String(otherBuf.buffer, tokenBegin, otherBuf.dataLen - tokenBegin) + new String(cu... | public final String GetImage() { if (tokenBuf == curBuf) return new String(curBuf.buffer, tokenBegin, curBuf.curPos - tokenBegin + 1); else return new String(otherBuf.buffer, tokenBegin, otherBuf.dataLen - tokenBegin) + new String(cu... | 1,124,789 |
public final char[] GetSuffix(int len) { char[] ret = new char[len]; if ((curBuf.curPos + 1) >= len) System.arraycopy(curBuf.buffer, curBuf.curPos - len + 1, ret, 0, len); else { if (otherBuf != null) System.arraycopy(otherBuf.buffer, otherBuf.dataLen - ... | public final char[] GetSuffix(int len) { char[] ret = new char[len]; if ((curBuf.curPos + 1) >= len) System.arraycopy(curBuf.buffer, curBuf.curPos - len + 1, ret, 0, len); else { if (otherBuf.dataLen >= len - curBuf.curPos - 1) System.arraycopy(otherBuf.buffer, ... | 1,124,790 |
public final void backup(int amount) { backupChars += amount; if (curBuf.curPos - amount < -1) { int addlChars = amount - 1 - curBuf.curPos; curBuf.curPos = 0; swapBuf(); curBuf.curPos = curBuf.dataLen - addlChars - 1; if (curBuf.curPos < -1) { // Throw something // Syste... | 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; if (curBuf.curPos < -1) { // Throw something // System... | 1,124,791 |
public final void backup(int amount) { backupChars += amount; if (curBuf.curPos - amount < -1) { int addlChars = amount - 1 - curBuf.curPos; curBuf.curPos = 0; swapBuf(); curBuf.curPos = curBuf.dataLen - addlChars - 1; if (curBuf.curPos < -1) { // Throw something // Syste... | public final void backup(int amount) { backupChars += amount; if (curBuf.curPos - amount < -1) { int addlChars = amount - 1 - curBuf.curPos; curBuf.curPos = 0; swapBuf(); curBuf.curPos = curBuf.dataLen - addlChars - 1; if (curBuf.curPos < -1) { // Throw something // Syste... | 1,124,792 |
public final int getBeginColumn() { return tokenBuf.bufcolumn[tokenBegin]; } | public final int getBeginColumn() { return tokenBeginBuf.bufcolumn[tokenBeginPos]; } | 1,124,793 |
public final int getBeginLine() { return tokenBuf.bufline[tokenBegin]; } | public final int getBeginLine() { return tokenBeginBuf.bufline[tokenBeginPos]; } | 1,124,794 |
public final char readChar() throws java.io.IOException { if (++curBuf.curPos >= curBuf.dataLen) { if (backupChars > 0) swapBuf(); else FillBuff(); }; char c = (char)((char)0xff & curBuf.buffer[curBuf.curPos]); // No need to update line numbers if we've already processed ... | public final char readChar() throws java.io.IOException { if (++curBuf.curPos >= curBuf.dataLen) { if (backupChars > 0) swapBuf(); else FillBuff(); }; char c = (char)((char)0xff & curBuf.buffer[curBuf.curPos]); // No need to update line numbers if we've already processed ... | 1,124,795 |
private void swapBuf() { if (otherBuf == null) { curBuf = bufB; otherBuf = bufA; } else { Buffer tmp = curBuf; curBuf = otherBuf; otherBuf = tmp; } } | private void swapBuf() { if (otherBuf == null) { curBuf = bufB; otherBuf = bufA; } else { Buffer tmp = curBuf; curBuf = otherBuf; otherBuf = tmp; } } | 1,124,796 |
protected void log(int level, String msg, Exception e) { super.log(level,msg,e); if ((level >= LogSource.WARNING) && hasTargets()) { _err.log("sys", LEVELS[level],msg,e); } } | protected void log(int level, String msg, Exception e) { super.log(level,msg,e); if ((level >= LogSource.NOTICE) && !hasTargets()) { _err.log("sys", LEVELS[level],msg,e); } } | 1,124,797 |
final public Object build(BuildContext bc) throws BuildException { ArrayList strings = new ArrayList((elements.size())); ArrayList macros = new ArrayList((elements.size())); int[] ln = new int[elements.size()]; int[] cn = new int[elements.size()]; Stack iterStack = new Stack(); StringBu... | final public Object build(BuildContext bc) throws BuildException { ArrayList strings = new ArrayList((elements.size())); ArrayList macros = new ArrayList((elements.size())); int[] ln = new int[elements.size()]; int[] cn = new int[elements.size()]; Stack iterStack = new Stack(); StringBu... | 1,124,798 |
final Object getValue(Context context) throws InvalidContextException { try { return context.getTool(_names); } catch (Exception e) { Engine.log.exception(e); String warning = "Variable: unable to access " + this + ";"; throw new InvalidContextException(warning); ... | final Object getValue(Context context) throws ContextException { try { return context.getTool(_names); } catch (Exception e) { Engine.log.exception(e); String warning = "Variable: unable to access " + this + ";"; throw new InvalidContextException(warning); } } | 1,124,799 |
final Object getValue(Context context) throws InvalidContextException { try { return context.getTool(_names); } catch (Exception e) { Engine.log.exception(e); String warning = "Variable: unable to access " + this + ";"; throw new InvalidContextException(warning); ... | final Object getValue(Context context) throws InvalidContextException { try { return context.getTool(_names); } catch (Exception e) { Engine.log.exception(e); String warning = "Variable: unable to access " + this + ";"; throw new ContextException(warning); } } | 1,124,800 |
final void setValue(Context context, Object newValue) throws InvalidContextException { try{ if (!context.setTool(_names,newValue)) { throw new InvalidContextException("No method to set \"" + _vname + "\" to type " + ((newValue == null) ? "null" : newValue.g... | final void setValue(Context context, Object newValue) throws ContextException { try{ if (!context.setTool(_names,newValue)) { throw new InvalidContextException("No method to set \"" + _vname + "\" to type " + ((newValue == null) ? "null" : newValue.getClass... | 1,124,801 |
final void setValue(Context context, Object newValue) throws InvalidContextException { try{ if (!context.setTool(_names,newValue)) { throw new InvalidContextException("No method to set \"" + _vname + "\" to type " + ((newValue == null) ? "null" : newValue.g... | final void setValue(Context context, Object newValue) throws InvalidContextException { try{ if (!context.setTool(_names,newValue)) { throw new ContextException("No method to set \"" + _vname + "\" to type " + ((newValue == null) ? "null" : newValue.getClass... | 1,124,802 |
final void setValue(Context context, Object newValue) throws InvalidContextException { try{ if (!context.setTool(_names,newValue)) { throw new InvalidContextException("No method to set \"" + _vname + "\" to type " + ((newValue == null) ? "null" : newValue.g... | final void setValue(Context context, Object newValue) throws InvalidContextException { try{ if (!context.setTool(_names,newValue)) { throw new InvalidContextException("No method to set \"" + _vname + "\" to type " + ((newValue == null) ? "null" : newValue.g... | 1,124,803 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.