rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
println("<source>" + sourceDirectory.getAbsolutePath() + "</source>"); | println("<source>" + sourceDirectory + "</source>"); | private void dumpSource(File sourceDirectory) { println("<source>" + sourceDirectory.getAbsolutePath() + "</source>"); } | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/c26f5a170c752d9d1d5b884dd7eb60b982637269/XMLReport.java/clean/cobertura/src/net/sourceforge/cobertura/reporting/xml/XMLReport.java |
for (Iterator it = finder.getBaseDirectories().iterator(); it.hasNext(); ) { File dir = (File) it.next(); | for (Iterator it = finder.getSourceDirectoryList().iterator(); it.hasNext(); ) { String dir = (String) it.next(); | private void dumpSources() { println("<sources>"); increaseIndentation(); for (Iterator it = finder.getBaseDirectories().iterator(); it.hasNext(); ) { File dir = (File) it.next(); dumpSource(dir); } decreaseIndentation(); println("</sources>"); } | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/c26f5a170c752d9d1d5b884dd7eb60b982637269/XMLReport.java/clean/cobertura/src/net/sourceforge/cobertura/reporting/xml/XMLReport.java |
StringWriter stackTrace = new StringWriter(); exception.printStackTrace(new PrintWriter(stackTrace)); StringBuffer sb = new StringBuffer(); sb.append("Native Exception: '"); sb.append(exception.getClass()).append("\'; Message: "); sb.append(exception.getMessage()); sb.append("; StackTrace: "); sb.append(stackTrace.get... | throw createRaiseException(exception); | public void handleNativeException(Exception exception) { Class excptnClass = exception.getClass(); RubyProc handler = (RubyProc)exceptionHandlers.get(excptnClass.getName()); while (handler == null && excptnClass != Exception.class) { excptnClass = excptnClass.getSupercl... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9028c57cb1199775e0b355581f41e146adcb60c1/JavaSupport.java/clean/org/jruby/javasupport/JavaSupport.java |
unit = size/getPixelsSizeX(); | if (getPixelsSizeX() > 0) unit = size/getPixelsSizeX(); else unit = size; | void setUnitBarSize(double size) { unit = size/getPixelsSizeX(); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/5caa05ab93022edbd6aaba0c505784dcbed59934/BrowserModel.java/buggy/SRC/org/openmicroscopy/shoola/agents/imviewer/browser/BrowserModel.java |
*/ | public static void main (String args[]) { System.out.println(); System.out.println("----------------------------------------------------"); System.out.println("--- WARNING this is an ALPHA version of JRuby!!! ---"); System.out.println("---------------------------------------------------... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a6fb3288b71aaedfe3a7b5e8d1e561e0bc249dc6/Main.java/buggy/org/jruby/Main.java | |
int remaining = encode.remaining(); char[] s = encode.nextSubstring(4).toCharArray(); if (remaining > 2 && s[2] == '=') lElem.append((char)((a << 2 | b >> 4) & 255)); if (c != -1 && remaining > 3 && s[3] == '=') { lElem.append((char)((a << 2 | b >> 4) & 255)); lElem.append((char)((b << 4 | c >> 2) & 255)); } | lElem.append((char)((a << 2 | b >> 4) & 255)); if(c != -1) { lElem.append((char)((b << 4 | c >> 2) & 255)); } | public static RubyArray unpack(String encodedString, RubyString formatString) { IRuby runtime = formatString.getRuntime(); RubyArray result = runtime.newArray(); PtrList format = new PtrList(formatString.toString()); PtrList encode = new PtrList(encodedString); char ty... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/7267f4fa96d07007cab8b8de87753fd877169e12/Pack.java/clean/src/org/jruby/util/Pack.java |
template = props.getProperty (page.getTitle()); | if (props.getProperty (page.getTitle()) != null) template = props.getProperty (page.getTitle()); | 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; } | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/92e61b70f298345a3b88128f6d589229626609d1/ViewPageAction.java/clean/wiki/src/org/tcdi/opensource/wiki/servlet/ViewPageAction.java |
} catch (BreakException bExcptn) { | } catch (BreakJump bExcptn) { | public RubyObject eval(Ruby ruby, RubyObject self) { while (getConditionNode().eval(ruby, self).isTrue()) { while (true) { try { getBodyNode().eval(ruby, self); break; } catch (RedoException rExcptn) { } catch (Next... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/786cea08c1dd2092a02d1254b49fbee371ace5f9/WhileNode.java/buggy/org/jruby/nodes/WhileNode.java |
generateClassLists(); | generateSourceFileLists(); | 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(); } | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/cd01654d464661ad4ee16d9e5f0f6e799c0ad9e4/HTMLReport.java/buggy/cobertura/src/net/sourceforge/cobertura/reporting/html/HTMLReport.java |
Collection classes; | Collection sourceFiles; | 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... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/cd01654d464661ad4ee16d9e5f0f6e799c0ad9e4/HTMLReport.java/buggy/cobertura/src/net/sourceforge/cobertura/reporting/html/HTMLReport.java |
classes = new TreeSet(); if (projectData.getNumberOfClasses() > 0) { iter = projectData.getClasses().iterator(); while (iter.hasNext()) { ClassData classData = (ClassData)iter.next(); if (classData.getPackageName() == null) { classes.add(classData); } } } | sourceFiles = projectData.getSourceFiles(); | 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... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/cd01654d464661ad4ee16d9e5f0f6e799c0ad9e4/HTMLReport.java/buggy/cobertura/src/net/sourceforge/cobertura/reporting/html/HTMLReport.java |
classes = packageData.getClasses(); | sourceFiles = packageData.getSourceFiles(); | 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... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/cd01654d464661ad4ee16d9e5f0f6e799c0ad9e4/HTMLReport.java/buggy/cobertura/src/net/sourceforge/cobertura/reporting/html/HTMLReport.java |
if (classes.size() > 0) | if (sourceFiles.size() > 0) | 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... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/cd01654d464661ad4ee16d9e5f0f6e799c0ad9e4/HTMLReport.java/buggy/cobertura/src/net/sourceforge/cobertura/reporting/html/HTMLReport.java |
iter = classes.iterator(); | iter = sourceFiles.iterator(); | 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... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/cd01654d464661ad4ee16d9e5f0f6e799c0ad9e4/HTMLReport.java/buggy/cobertura/src/net/sourceforge/cobertura/reporting/html/HTMLReport.java |
ClassData classData = (ClassData)iter.next(); out.println(generateTableRowForClass(classData)); | SourceFileData sourceFileData = (SourceFileData)iter .next(); out .println(generateTableRowForSourceFile(sourceFileData)); | 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... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/cd01654d464661ad4ee16d9e5f0f6e799c0ad9e4/HTMLReport.java/buggy/cobertura/src/net/sourceforge/cobertura/reporting/html/HTMLReport.java |
.println("<td nowrap=\"nowrap\"><a href=\"frame-summary.html\" onClick='parent.classList.location.href=\"frame-classes.html\"' target=\"summary\">All</a></td>"); | .println("<td nowrap=\"nowrap\"><a href=\"frame-summary.html\" onClick='parent.sourceFileList.location.href=\"frame-sourcefiles.html\"' target=\"summary\">All</a></td>"); | 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... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/cd01654d464661ad4ee16d9e5f0f6e799c0ad9e4/HTMLReport.java/buggy/cobertura/src/net/sourceforge/cobertura/reporting/html/HTMLReport.java |
String url2 = "frame-classes-" + packageData.getName() | String url2 = "frame-sourcefiles-" + packageData.getName() | 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... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/cd01654d464661ad4ee16d9e5f0f6e799c0ad9e4/HTMLReport.java/buggy/cobertura/src/net/sourceforge/cobertura/reporting/html/HTMLReport.java |
out.println("<td nowrap=\"nowrap\"><a href=\"" + url1 + "\" onClick='parent.classList.location.href=\"" + url2 + "\"' target=\"summary\">" + generatePackageName(packageData) + "</a></td>"); | out .println("<td nowrap=\"nowrap\"><a href=\"" + url1 + "\" onClick='parent.sourceFileList.location.href=\"" + url2 + "\"' target=\"summary\">" + generatePackageName(packageData) + "</a></td>"); | 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... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/cd01654d464661ad4ee16d9e5f0f6e799c0ad9e4/HTMLReport.java/buggy/cobertura/src/net/sourceforge/cobertura/reporting/html/HTMLReport.java |
private void generateSourceFile(ClassData classData) throws IOException | private void generateSourceFile(SourceFileData sourceFileData) throws IOException | 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... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/cd01654d464661ad4ee16d9e5f0f6e799c0ad9e4/HTMLReport.java/buggy/cobertura/src/net/sourceforge/cobertura/reporting/html/HTMLReport.java |
String filename = classData.getName() + ".html"; | String filename = sourceFileData.getNormalizedName() + ".html"; | 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... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/cd01654d464661ad4ee16d9e5f0f6e799c0ad9e4/HTMLReport.java/buggy/cobertura/src/net/sourceforge/cobertura/reporting/html/HTMLReport.java |
String classPackageName = classData.getPackageName(); | String classPackageName = sourceFileData.getPackageName(); | 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... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/cd01654d464661ad4ee16d9e5f0f6e799c0ad9e4/HTMLReport.java/buggy/cobertura/src/net/sourceforge/cobertura/reporting/html/HTMLReport.java |
out.print(classData.getPackageName() + "."); | out.print(sourceFileData.getPackageName() + "."); | 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... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/cd01654d464661ad4ee16d9e5f0f6e799c0ad9e4/HTMLReport.java/buggy/cobertura/src/net/sourceforge/cobertura/reporting/html/HTMLReport.java |
out.print(classData.getName()); | out.print(sourceFileData.getBaseName()); | 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... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/cd01654d464661ad4ee16d9e5f0f6e799c0ad9e4/HTMLReport.java/buggy/cobertura/src/net/sourceforge/cobertura/reporting/html/HTMLReport.java |
out.println(generateTableRowForClass(classData)); | out.println(generateTableRowForSourceFile(sourceFileData)); | 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... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/cd01654d464661ad4ee16d9e5f0f6e799c0ad9e4/HTMLReport.java/buggy/cobertura/src/net/sourceforge/cobertura/reporting/html/HTMLReport.java |
File sourceFile = new File(sourceDir, classData .getSourceFileName()); | File sourceFile = new File(sourceDir, sourceFileData .getName()); | 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... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/cd01654d464661ad4ee16d9e5f0f6e799c0ad9e4/HTMLReport.java/buggy/cobertura/src/net/sourceforge/cobertura/reporting/html/HTMLReport.java |
if (classData.isValidSourceLineNumber(lineNumber)) | if (sourceFileData.isValidSourceLineNumber(lineNumber)) | 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... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/cd01654d464661ad4ee16d9e5f0f6e799c0ad9e4/HTMLReport.java/buggy/cobertura/src/net/sourceforge/cobertura/reporting/html/HTMLReport.java |
long numberOfHits = classData.getHitCount(lineNumber); | long numberOfHits = sourceFileData .getHitCount(lineNumber); | 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... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/cd01654d464661ad4ee16d9e5f0f6e799c0ad9e4/HTMLReport.java/buggy/cobertura/src/net/sourceforge/cobertura/reporting/html/HTMLReport.java |
Iterator iter = projectData.getClasses().iterator(); | Iterator iter = projectData.getSourceFiles().iterator(); | 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... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/cd01654d464661ad4ee16d9e5f0f6e799c0ad9e4/HTMLReport.java/buggy/cobertura/src/net/sourceforge/cobertura/reporting/html/HTMLReport.java |
ClassData classData = (ClassData)iter.next(); | SourceFileData sourceFileData = (SourceFileData)iter.next(); | 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... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/cd01654d464661ad4ee16d9e5f0f6e799c0ad9e4/HTMLReport.java/buggy/cobertura/src/net/sourceforge/cobertura/reporting/html/HTMLReport.java |
generateSourceFile(classData); | generateSourceFile(sourceFileData); | 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... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/cd01654d464661ad4ee16d9e5f0f6e799c0ad9e4/HTMLReport.java/buggy/cobertura/src/net/sourceforge/cobertura/reporting/html/HTMLReport.java |
logger.info("Could not generate HTML file for class " + classData.getName()); | logger.info("Could not generate HTML file for source file " + sourceFileData.getName()); | 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... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/cd01654d464661ad4ee16d9e5f0f6e799c0ad9e4/HTMLReport.java/buggy/cobertura/src/net/sourceforge/cobertura/reporting/html/HTMLReport.java |
String url2 = "frame-classes-" + packageData.getName() + ".html"; | String url2 = "frame-sourcefiles-" + packageData.getName() + ".html"; | 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... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/cd01654d464661ad4ee16d9e5f0f6e799c0ad9e4/HTMLReport.java/buggy/cobertura/src/net/sourceforge/cobertura/reporting/html/HTMLReport.java |
+ "\" onClick='parent.classList.location.href=\"" + url2 | + "\" onClick='parent.sourceFileList.location.href=\"" + url2 | 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... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/cd01654d464661ad4ee16d9e5f0f6e799c0ad9e4/HTMLReport.java/buggy/cobertura/src/net/sourceforge/cobertura/reporting/html/HTMLReport.java |
Collection result = new ArrayList(children.size() * 15); for (Iterator it = children.values().iterator(); it.hasNext(); ) { PackageData packageData = (PackageData) it.next(); result.addAll(packageData.getChildren()); } return result; | return this.classes.values(); | 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()); ... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/2d04adc2554406c41824d5b965907076ecdceb80/ProjectData.java/buggy/cobertura/src/net/sourceforge/cobertura/coveragedata/ProjectData.java |
pack(); } | } | public DataManagerUIF(DataManagerCtrl control, Registry registry) { super("Data Manager", registry.getTaskBar()); this.registry = registry; this.control = control; im = IconManager.getInstance(registry); explPane = new ExplorerPane(control, registry); popupMenu = new TreePopupMenu(control, registry); clas... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/cf83d7e74fdf42d9c4357c3e575c08395991a878/DataManagerUIF.java/buggy/SRC/org/openmicroscopy/shoola/agents/datamng/DataManagerUIF.java |
public ImageDimension(Integer attributeId, Float pixelSizeC, Float pixelSizeT, Float pixelSizeX, Float pixelSizeY, Float pixelSizeZ, org.openmicroscopy.omero.model.Image image, org.openmicroscopy.omero.model.ModuleExecution moduleExecution) { this.attributeId = attributeId; this.pixelSizeC = pixelSizeC; this.pixelSizeT... | public ImageDimension() { | public ImageDimension(Integer attributeId, Float pixelSizeC, Float pixelSizeT, Float pixelSizeX, Float pixelSizeY, Float pixelSizeZ, org.openmicroscopy.omero.model.Image image, org.openmicroscopy.omero.model.ModuleExecution moduleExecution) { this.attributeId = attributeId; this.pixelSizeC = pixelSize... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/ImageDimension.java/clean/components/common/src/org/openmicroscopy/omero/model/ImageDimension.java |
public org.openmicroscopy.omero.model.Image getImage() { | public Image getImage() { | public org.openmicroscopy.omero.model.Image getImage() { return this.image; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/ImageDimension.java/clean/components/common/src/org/openmicroscopy/omero/model/ImageDimension.java |
public org.openmicroscopy.omero.model.ModuleExecution getModuleExecution() { | public ModuleExecution getModuleExecution() { | public org.openmicroscopy.omero.model.ModuleExecution getModuleExecution() { return this.moduleExecution; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/ImageDimension.java/clean/components/common/src/org/openmicroscopy/omero/model/ImageDimension.java |
public void setImage(org.openmicroscopy.omero.model.Image image) { | public void setImage(Image image) { | public void setImage(org.openmicroscopy.omero.model.Image image) { this.image = image; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/ImageDimension.java/clean/components/common/src/org/openmicroscopy/omero/model/ImageDimension.java |
public void setModuleExecution(org.openmicroscopy.omero.model.ModuleExecution moduleExecution) { | public void setModuleExecution(ModuleExecution moduleExecution) { | public void setModuleExecution(org.openmicroscopy.omero.model.ModuleExecution moduleExecution) { this.moduleExecution = moduleExecution; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/ImageDimension.java/clean/components/common/src/org/openmicroscopy/omero/model/ImageDimension.java |
private void addInstrumentation(File file) | private void addInstrumentation(File baseDir, String filename) | 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... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/8d76b07e3d230fcd0d3b233e7ffc80df6ca3ec82/Main.java/buggy/cobertura/src/net/sourceforge/cobertura/instrument/Main.java |
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)) { addInstrumentationToArchive(file); } | logger.debug("filename: " + filename); File file; if (baseDir == null) file = new File(filename); else file = new File(baseDir, filename); addInstrumentation(file); | 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... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/8d76b07e3d230fcd0d3b233e7ffc80df6ca3ec82/Main.java/buggy/cobertura/src/net/sourceforge/cobertura/instrument/Main.java |
private void addInstrumentationToArchive(ZipInputStream archive, ZipOutputStream output) throws Exception | private void addInstrumentationToArchive(File archive) | 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[] ... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/8d76b07e3d230fcd0d3b233e7ffc80df6ca3ec82/Main.java/buggy/cobertura/src/net/sourceforge/cobertura/instrument/Main.java |
ZipEntry entry; while ((entry = archive.getNextEntry()) != null) | logger.debug("Instrumenting archive " + archive.getAbsolutePath()); File outputFile = null; ZipInputStream input = null; ZipOutputStream output = null; try { try { input = new ZipInputStream(new FileInputStream(archive)); } catch (FileNotFoundException e) { logger.warn("Cannot open archive file: " + archive.getAbsolu... | 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[] ... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/8d76b07e3d230fcd0d3b233e7ffc80df6ca3ec82/Main.java/buggy/cobertura/src/net/sourceforge/cobertura/instrument/Main.java |
ZipEntry outputEntry = new ZipEntry(entry.getName()); output.putNextEntry(outputEntry); byte[] entryBytes = IOUtil .createByteArrayFromInputStream(archive); if (isClass(entry)) { ClassReader cr = new ClassReader(entryBytes); ClassWriter cw = new ClassWriter(true); ClassInstrumenter cv = new ClassInstrumenter(proje... | IOUtil.moveFile(outputFile, archive); | 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[] ... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/8d76b07e3d230fcd0d3b233e7ffc80df6ca3ec82/Main.java/buggy/cobertura/src/net/sourceforge/cobertura/instrument/Main.java |
catch (Exception e) | catch (IOException e) | 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[] ... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/8d76b07e3d230fcd0d3b233e7ffc80df6ca3ec82/Main.java/buggy/cobertura/src/net/sourceforge/cobertura/instrument/Main.java |
logger.warn("Problems with archive entry: " + entry); throw e; | logger.warn("Cannot instrument archive: " + archive.getAbsolutePath(), e); return; | 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[] ... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/8d76b07e3d230fcd0d3b233e7ffc80df6ca3ec82/Main.java/buggy/cobertura/src/net/sourceforge/cobertura/instrument/Main.java |
output.flush(); | 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[] ... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/8d76b07e3d230fcd0d3b233e7ffc80df6ca3ec82/Main.java/buggy/cobertura/src/net/sourceforge/cobertura/instrument/Main.java | |
cv = new ClassInstrumenter(projectData, cw, ignoreRegex); | cv = new ClassInstrumenter(this.projectData, cw, this.ignoreRegexs); | 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... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/8d76b07e3d230fcd0d3b233e7ffc80df6ca3ec82/Main.java/buggy/cobertura/src/net/sourceforge/cobertura/instrument/Main.java |
Main main = new Main(); | 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[... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/8d76b07e3d230fcd0d3b233e7ffc80df6ca3ec82/Main.java/buggy/cobertura/src/net/sourceforge/cobertura/instrument/Main.java | |
main.parseArguments(args); | new Main(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[... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/8d76b07e3d230fcd0d3b233e7ffc80df6ca3ec82/Main.java/buggy/cobertura/src/net/sourceforge/cobertura/instrument/Main.java |
charWidth = getFontMetrics(getFont()).charWidth('m'); | BrowserCanvas(BrowserModel model, BrowserUI view) { if (model == null) throw new NullPointerException("No model."); if (view == null) throw new NullPointerException("No view."); this.model = model; this.view = view; charWidth = getFontMetrics(getFont()).charWidth('m'); s... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/cdaae4674bb262e43b643e36193cc75af1d00eb5/BrowserCanvas.java/buggy/SRC/org/openmicroscopy/shoola/agents/imviewer/browser/BrowserCanvas.java | |
if (Math.ceil(v) == c) value = ""+(int) c; else value = ""+c; | if ((c-Math.floor(c)) > 0) value = ""+Math.round(c*100)/100f; else value = ""+(int) c; | public void paintComponent(Graphics g) { super.paintComponent(g); Graphics2D g2D = (Graphics2D) g; g2D.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); g2D.setRenderingHint(RenderingHints.KEY_RENDERING, ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/cdaae4674bb262e43b643e36193cc75af1d00eb5/BrowserCanvas.java/buggy/SRC/org/openmicroscopy/shoola/agents/imviewer/browser/BrowserCanvas.java |
paintScaleBar(g2D, img.getWidth()-size-5, | paintScaleBar(g2D, img.getWidth()-size-10, | public void paintComponent(Graphics g) { super.paintComponent(g); Graphics2D g2D = (Graphics2D) g; g2D.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); g2D.setRenderingHint(RenderingHints.KEY_RENDERING, ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/cdaae4674bb262e43b643e36193cc75af1d00eb5/BrowserCanvas.java/buggy/SRC/org/openmicroscopy/shoola/agents/imviewer/browser/BrowserCanvas.java |
} else { System.out.println( "The block was passed to the thread constructor"); | protected static RubyThread startThread( final Ruby ruby, RubyObject recv, final RubyObject[] args, boolean callInit) { if (!ruby.isBlockGiven()) { System.out.println("No block given to thread!"); } else { System.out.println( "The block ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/8db42974495981011f558bcce15e2dfc28681a76/RubyThread.java/clean/org/jruby/RubyThread.java | |
if (ruby.isBlockGiven()) { System.out.println("THE BLOCK HAS PROPOGATED!"); | ruby.getFrameStack().push(currentFrame); ruby.getBlockStack().setCurrent(currentBlock); | protected static RubyThread startThread( final Ruby ruby, RubyObject recv, final RubyObject[] args, boolean callInit) { if (!ruby.isBlockGiven()) { System.out.println("No block given to thread!"); } else { System.out.println( "The block ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/8db42974495981011f558bcce15e2dfc28681a76/RubyThread.java/clean/org/jruby/RubyThread.java |
/* ruby.yield( RubyArray.newArray( ruby, new ArrayList(Arrays.asList(args)))); */ proc.call(args); } else { System.out.println("The block did not propogate"); } | proc.call(args); | protected static RubyThread startThread( final Ruby ruby, RubyObject recv, final RubyObject[] args, boolean callInit) { if (!ruby.isBlockGiven()) { System.out.println("No block given to thread!"); } else { System.out.println( "The block ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/8db42974495981011f558bcce15e2dfc28681a76/RubyThread.java/clean/org/jruby/RubyThread.java |
if (ruby.isBlockGiven()) { System.out.println("THE BLOCK HAS PROPOGATED!"); | ruby.getFrameStack().push(currentFrame); ruby.getBlockStack().setCurrent(currentBlock); | public void run() { if (ruby.isBlockGiven()) { System.out.println("THE BLOCK HAS PROPOGATED!"); /* ruby.yield( RubyArray.newArray( ruby, new ArrayList(Arrays.asList(args)))); */ ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/8db42974495981011f558bcce15e2dfc28681a76/RubyThread.java/clean/org/jruby/RubyThread.java |
/* ruby.yield( RubyArray.newArray( ruby, new ArrayList(Arrays.asList(args)))); */ proc.call(args); } else { System.out.println("The block did not propogate"); } | proc.call(args); | public void run() { if (ruby.isBlockGiven()) { System.out.println("THE BLOCK HAS PROPOGATED!"); /* ruby.yield( RubyArray.newArray( ruby, new ArrayList(Arrays.asList(args)))); */ ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/8db42974495981011f558bcce15e2dfc28681a76/RubyThread.java/clean/org/jruby/RubyThread.java |
setSortable(true); | 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); ... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/712fdfb49afeea632e6ad9f6cbcce5827d978676/ConferenceRooms.java/clean/src/java/org/jivesoftware/spark/ui/conferences/ConferenceRooms.java | |
password = passwordDialog.getPassword("Password Required", "This group chat room requires a password to enter.", SparkRes.getImageIcon(SparkRes.LOCK_16x16), SparkManager.getMainWindow()); | password = passwordDialog.getPassword("Password Required", "This group chat room requires a password to enter.", SparkRes.getImageIcon(SparkRes.LOCK_16x16), SparkManager.getFocusedComponent()); | 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... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/028cde13fc23ea5cbdaa0191963cf1624ef656d0/ConferenceUtils.java/buggy/src/java/org/jivesoftware/spark/ui/conferences/ConferenceUtils.java |
Pixels p = new Pixels(1l); | Pixels p = new Pixels(); p.setId(1l); | public void testDirectConstruction() throws Exception { Pixels p = new Pixels(1l); p.setSizeX(new Integer(64)); p.setSizeY(new Integer(64)); p.setSizeZ(new Integer(64)); p.setSizeC(new Integer(64)); p.setSizeT(new Integer(64)); RenderingDef def = new Rende... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/7a91ecfa8b58758aa74e9304df4cb37064637dfb/ExampleUsageTest.java/clean/components/omero-ejb/test/ome/ejb/itests/ExampleUsageTest.java |
RenderingDef def = new RenderingDef(1l); | RenderingDef def = new RenderingDef(); def.setId(1l); | public void testDirectConstruction() throws Exception { Pixels p = new Pixels(1l); p.setSizeX(new Integer(64)); p.setSizeY(new Integer(64)); p.setSizeZ(new Integer(64)); p.setSizeC(new Integer(64)); p.setSizeT(new Integer(64)); RenderingDef def = new Rende... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/7a91ecfa8b58758aa74e9304df4cb37064637dfb/ExampleUsageTest.java/clean/components/omero-ejb/test/ome/ejb/itests/ExampleUsageTest.java |
pushRubyClass(bindingBlock.getKlass()); | pushRubyClass((RubyModule) bindingBlock.getCRef().getValue()); | public void preEvalWithBinding(RubyBinding binding) { Block bindingBlock = binding.getBlock(); pushFrame(bindingBlock.getFrame()); setCRef(bindingBlock.getCRef()); getCurrentFrame().setScope(bindingBlock.getScope()); dynamicVarsStack.push(bindingBlock.getDynamicVariables()... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9d3d790f078f9eaf21cafa0dbb57154bafb08d59/ThreadContext.java/buggy/src/org/jruby/runtime/ThreadContext.java |
((RubyIO) value).setAsRubyErrorStream(); | public void set(RubyObject value, String id, RubyObject data, RubyGlobalEntry entry) { if (value == data) { return; } else if (!(value instanceof RubyIO)) { entry.setData(value); return; } else { ((RubyIO) value).checkW... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/RubyGlobal.java/buggy/org/jruby/RubyGlobal.java | |
((RubyIO) value).setAsRubyInputStream(); | public void set(RubyObject value, String id, RubyObject data, RubyGlobalEntry entry) { if (value == data) { return; } else if (!(value instanceof RubyIO)) { entry.setData(value); return; } else { ((RubyIO) value).checkR... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/RubyGlobal.java/buggy/org/jruby/RubyGlobal.java | |
public void set(RubyObject value, String id, RubyObject data, RubyGlobalEntry entry) { if (value == data) { return; } else if (!(value instanceof RubyIO)) { entry.setData(value); return; } else { ((RubyIO) value).checkW... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/RubyGlobal.java/buggy/org/jruby/RubyGlobal.java | ||
((RubyIO) value).setAsRubyOutputStream(); | public void set(RubyObject value, String id, RubyObject data, RubyGlobalEntry entry) { if (value == data) { return; } else if (!(value instanceof RubyIO)) { entry.setData(value); return; } else { ((RubyIO) value).checkW... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/RubyGlobal.java/buggy/org/jruby/RubyGlobal.java | |
RubyObject stdin = RubyIO.stdin(ruby, ruby.getClasses().getIoClass()); RubyObject stdout = RubyIO.stdout(ruby, ruby.getClasses().getIoClass()); RubyObject stderr = RubyIO.stderr(ruby, ruby.getClasses().getIoClass()); | RubyObject stdin = RubyIO.stdin(ruby, ruby.getClasses().getIoClass(), System.in); RubyObject stdout = RubyIO.stdout(ruby, ruby.getClasses().getIoClass(), System.out); RubyObject stderr = RubyIO.stderr(ruby, ruby.getClasses().getIoClass(), System.err); | public static void createGlobals(Ruby ruby) { StringSetter stringSetter = new StringSetter(); LastlineAccessor lastlineAccessor = new LastlineAccessor(); SafeAccessor safeAccessor = new SafeAccessor(); ruby.defineHookedVariable("$/", RubyString.newString(ruby, "\n"), null, stringSetter);... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/RubyGlobal.java/buggy/org/jruby/RubyGlobal.java |
nameArea.addKeyListener(new KeyAdapter() { /** Finds the phrase. */ public void keyPressed(KeyEvent e) { if ((e.getKeyCode() == KeyEvent.VK_ENTER)) { Object source = e.getSource(); if (source instanceof JTextField) { JTextField field = (JTextField) source; if (field.getText() != null && field.getText().length() > 0) v... | private void initComponents() { tabbedPane = new JTabbedPane(); nameArea = new JTextField(); UIUtilities.setTextAreaDefault(nameArea); descriptionArea = new MultilineLabel(); UIUtilities.setTextAreaDefault(descriptionArea); if (model.getEditorType() == Editor.PROPERTIES_... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/c3e0df27168af6ddebdb1c3476bb00aa3cf2fc92/DOBasic.java/clean/SRC/org/openmicroscopy/shoola/agents/treeviewer/editors/DOBasic.java | |
if (annotations == null) return; | void showAnnotations() { ExperimenterData userDetails = model.getUserDetails(); if (userDetails == null) return; Map annotations = model.getAnnotations(); String[] owners = new String[annotations.size()]; Iterator i = annotations.keySet().iterator(); Long id; int ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0f24af159634bdc4228febad328548fbedecdb1d/DOAnnotation.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/editors/DOAnnotation.java | |
result.defineMethod("print", CallbackFactory.getOptSingletonMethod(RubyIO.class, "print")); result.defineMethod("printf", CallbackFactory.getOptSingletonMethod(RubyIO.class, "printf")); result.defineMethod("puts", CallbackFactory.getOptSingletonMethod(RubyIO.class, "puts")); | public static RubyClass createIOClass(Ruby ruby) { RubyClass result = new IODefinition(ruby).getType(); result.defineMethod("lineno=", CallbackFactory.getMethod(RubyIO.class, "lineno_set", RubyFixnum.class)); result.defineMethod("sync=", CallbackFactory.getMethod(RubyIO.class, "sync_set", RubyB... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/5858c541b148aad867b8e88b52fb524c0827a6a3/RubyIO.java/buggy/src/org/jruby/RubyIO.java | |
getContentPane().add(buildToolBar(), BorderLayout.NORTH); getContentPane().add(new JScrollPane(layeredPane), BorderLayout.CENTER); | Container c = getContentPane(); c.add(buildToolBar(), BorderLayout.NORTH); c.add(new JScrollPane(layeredPane), BorderLayout.CENTER); | private void buildGUI() { getContentPane().add(buildToolBar(), BorderLayout.NORTH); getContentPane().add(new JScrollPane(layeredPane), BorderLayout.CENTER); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/3b273af3a5320ab0a054540f14a3c299ff01de69/ImgSaverPreviewer.java/clean/SRC/org/openmicroscopy/shoola/agents/imviewer/util/saver/ImgSaverPreviewer.java |
JToolBar bar = new JToolBar(); bar.setFloatable(false); bar.setRollover(true); | JPanel bar = new JPanel(); | private JPanel buildToolBar() { JToolBar bar = new JToolBar(); bar.setFloatable(false); bar.setRollover(true); bar.add(cancelButton); bar.add(saveButton); return UIUtilities.buildComponentPanelRight(bar); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/3b273af3a5320ab0a054540f14a3c299ff01de69/ImgSaverPreviewer.java/clean/SRC/org/openmicroscopy/shoola/agents/imviewer/util/saver/ImgSaverPreviewer.java |
IconManager icons = IconManager.getInstance(); saveButton = new JButton(icons.getIcon(IconManager.SAVE)); saveButton.setText("Save As"); | saveButton = new JButton("Save As"); | private void initComponents() { IconManager icons = IconManager.getInstance(); saveButton = new JButton(icons.getIcon(IconManager.SAVE)); saveButton.setText("Save As"); saveButton.setToolTipText( UIUtilities.formatToolTipText("Save the preview image.")); cancelBu... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/3b273af3a5320ab0a054540f14a3c299ff01de69/ImgSaverPreviewer.java/clean/SRC/org/openmicroscopy/shoola/agents/imviewer/util/saver/ImgSaverPreviewer.java |
cancelButton = new JButton(icons.getIcon(IconManager.CANCEL)); cancelButton.setText("Cancel"); | cancelButton = new JButton("Cancel"); | private void initComponents() { IconManager icons = IconManager.getInstance(); saveButton = new JButton(icons.getIcon(IconManager.SAVE)); saveButton.setText("Save As"); saveButton.setToolTipText( UIUtilities.formatToolTipText("Save the preview image.")); cancelBu... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/3b273af3a5320ab0a054540f14a3c299ff01de69/ImgSaverPreviewer.java/clean/SRC/org/openmicroscopy/shoola/agents/imviewer/util/saver/ImgSaverPreviewer.java |
ImagePaintingFactory.paintScaleBar(g2, width-s-10, h-10, s, v); | ImagePaintingFactory.paintScaleBar(g2, x+width-s-10, h-10, s, v); | void saveImage() { //Builds the image to display. boolean unitBar = model.isUnitBar(); String v = model.getUnitBarValue(); int s = (int) model.getUnitBarSize(); if (imageComponents == null) { int width = mainImage.getWidth(); int h = mainImage.getHeight()... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/43f8c678f03aa7cac6a19865461c28a00cf7eb2b/ImgSaver.java/buggy/SRC/org/openmicroscopy/shoola/agents/imviewer/util/saver/ImgSaver.java |
ImagePaintingFactory.paintScaleBar(g2, width-s-10, h-10, s, v); | ImagePaintingFactory.paintScaleBar(g2, x+width-s-10, h-10, s, v); | void saveImage() { //Builds the image to display. boolean unitBar = model.isUnitBar(); String v = model.getUnitBarValue(); int s = (int) model.getUnitBarSize(); if (imageComponents == null) { int width = mainImage.getWidth(); int h = mainImage.getHeight()... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/43f8c678f03aa7cac6a19865461c28a00cf7eb2b/ImgSaver.java/buggy/SRC/org/openmicroscopy/shoola/agents/imviewer/util/saver/ImgSaver.java |
exceptionClass.defineSingletonMethod( "exception", CallbackFactory.getOptSingletonMethod(RubyException.class, "newInstance")); | exceptionClass.defineSingletonMethod("exception", CallbackFactory.getOptSingletonMethod(RubyException.class, "newInstance")); exceptionClass.defineSingletonMethod("new", CallbackFactory.getOptSingletonMethod(RubyException.class, "newInstance")); | public static RubyClass createExceptionClass(Ruby ruby) { RubyClass exceptionClass = ruby.defineClass("Exception", ruby.getClasses().getObjectClass()); exceptionClass.defineSingletonMethod( "exception", CallbackFactory.getOptSingletonMethod(RubyException.class, "newInstance")); ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/8adb5153eae22c0f6dba4d97072deb88f2715e8a/RubyException.java/buggy/org/jruby/RubyException.java |
return new FileBuffer(file, "rw"); | return new FileBuffer(getFilesPath(file.getId()),file, "rw"); | public FileBuffer createFileBuffer(OriginalFile file) throws FileNotFoundException { return new FileBuffer(file, "rw"); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ae0b01fad17fcacba3ec0999ca1ad645f389b5f9/OriginalFilesService.java/clean/components/omeio-nio/src/ome/io/nio/OriginalFilesService.java |
return new FileBuffer(file, "r"); | return new FileBuffer(getFilesPath(file.getId()),file, "r"); | public FileBuffer getReadOnlyFileBuffer(OriginalFile file) throws FileNotFoundException { return new FileBuffer(file, "r"); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ae0b01fad17fcacba3ec0999ca1ad645f389b5f9/OriginalFilesService.java/clean/components/omeio-nio/src/ome/io/nio/OriginalFilesService.java |
return new FileBuffer(file, "rw"); | return new FileBuffer(getFilesPath(file.getId()),file, "rw"); | public FileBuffer getReadWriteFileBuffer(OriginalFile file) throws FileNotFoundException { return new FileBuffer(file, "rw"); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ae0b01fad17fcacba3ec0999ca1ad645f389b5f9/OriginalFilesService.java/clean/components/omeio-nio/src/ome/io/nio/OriginalFilesService.java |
log.info("Using root path: '" + path + "'"); | public AbstractFileSystemService(String path) { this.root = path; File rootDirectory = new File(this.root); if ( ! rootDirectory.isDirectory() || ! rootDirectory.canRead() || ! rootDirectory.canWrite() ) throw new Il... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/4190152881c7f58e1a3f87c9e6736e403a241c86/AbstractFileSystemService.java/buggy/components/omeio-nio/src/ome/io/nio/AbstractFileSystemService.java | |
FileBuffer (OriginalFile file, String mode) | FileBuffer (String path, OriginalFile file, String mode) | FileBuffer (OriginalFile file, String mode) throws FileNotFoundException { this.file = file; this.path = Helper.getFilesPath(file.getId()); delegate = new RandomAccessFile(path, mode); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ae0b01fad17fcacba3ec0999ca1ad645f389b5f9/FileBuffer.java/buggy/components/omeio-nio/src/ome/io/nio/FileBuffer.java |
this.path = Helper.getFilesPath(file.getId()); | FileBuffer (OriginalFile file, String mode) throws FileNotFoundException { this.file = file; this.path = Helper.getFilesPath(file.getId()); delegate = new RandomAccessFile(path, mode); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ae0b01fad17fcacba3ec0999ca1ad645f389b5f9/FileBuffer.java/buggy/components/omeio-nio/src/ome/io/nio/FileBuffer.java | |
boolean selected = treeNode.isSelected(); treeNode.dispose(); if (holder instanceof DisplayedNote) { this.treeNode = tree.addTreeNode(((DisplayedNote) holder).treeNode, this); } else { this.treeNode = tree.addRootNode(this); } treeNode.setSelected(selected); | moveTreeNode(newHolder, tree); treeNode.setSelected(true); | 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(... | 57508 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57508/76991c1ba98ed76872aa37de20d08bb9f061978c/DisplayedNote.java/clean/trunk/src/de/berlios/koalanotes/display/DisplayedNote.java |
if ( params == null ) { params = new Parameters(); } | public IObject findByQuery(@NotNull String queryName, Parameters params) throws ValidationException { // specify that we should only return a single value if possible params.getFilter().unique(); Query<IObject> q = queryFactory.lookup( queryName, params ); IObject ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/3864c8c11efe7bccd0dbccc72a0bc558e8261b3c/QueryImpl.java/clean/components/server/src/ome/logic/QueryImpl.java | |
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 "TODO"; //return ClassHelper.getPackageName(className).replace('.', '/') + '/' + instrumentation.getSourceFileName(); } | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/c3e69d3840be2f7780aae7b00ec462c4b4ba5d92/XMLReport.java/clean/cobertura/src/net/sourceforge/cobertura/reporting/xml/XMLReport.java |
for (RubyModule p = this; p != null; p = p.getSuperClass()) { if (p.getMethods() == moduleMethods) { return; } } | if (getMethods() == moduleMethods) { return; } | public synchronized void includeModule(IRubyObject arg) { testFrozen("module"); if (!isTaint()) { getRuntime().secure(4); } if (!(arg instanceof RubyModule)) { throw getRuntime().newTypeError("Wrong argument type " + arg.getMetaClass().getName() + " (expected Module... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/03eb64fbb08410a46f7ac9a30bd7029840410c7f/RubyModule.java/clean/src/org/jruby/RubyModule.java |
SoftwareUpdateDialog(JFrame owner) | SoftwareUpdateDialog(JFrame owner, String aboutMessage) | SoftwareUpdateDialog(JFrame owner) { super(owner); setModal(true); setResizable(false); initComponents(); buildGUI(); pack(); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/bbd964029121f2811ba2b7cf47a392087032888c/SoftwareUpdateDialog.java/buggy/SRC/org/openmicroscopy/shoola/env/ui/SoftwareUpdateDialog.java |
setModal(true); setResizable(false); | setWindowProperties(); | SoftwareUpdateDialog(JFrame owner) { super(owner); setModal(true); setResizable(false); initComponents(); buildGUI(); pack(); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/bbd964029121f2811ba2b7cf47a392087032888c/SoftwareUpdateDialog.java/buggy/SRC/org/openmicroscopy/shoola/env/ui/SoftwareUpdateDialog.java |
buildGUI(); | buildGUI(aboutMessage); | SoftwareUpdateDialog(JFrame owner) { super(owner); setModal(true); setResizable(false); initComponents(); buildGUI(); pack(); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/bbd964029121f2811ba2b7cf47a392087032888c/SoftwareUpdateDialog.java/buggy/SRC/org/openmicroscopy/shoola/env/ui/SoftwareUpdateDialog.java |
private void buildGUI() | private void buildGUI(String aboutMessage) | private void buildGUI() { getContentPane().add(buildContentPanel(), BorderLayout.CENTER); JPanel p = UIUtilities.buildComponentPanelRight(buildToolBar()); p.setBorder(BorderFactory.createEtchedBorder()); p.setOpaque(true); getContentPane().add(p, BorderLayout.SOUTH); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/bbd964029121f2811ba2b7cf47a392087032888c/SoftwareUpdateDialog.java/buggy/SRC/org/openmicroscopy/shoola/env/ui/SoftwareUpdateDialog.java |
getContentPane().add(buildContentPanel(), BorderLayout.CENTER); | Container c = getContentPane(); c.add(buildAbout(aboutMessage), BorderLayout.NORTH); c.add(buildContentPanel(), BorderLayout.CENTER); | private void buildGUI() { getContentPane().add(buildContentPanel(), BorderLayout.CENTER); JPanel p = UIUtilities.buildComponentPanelRight(buildToolBar()); p.setBorder(BorderFactory.createEtchedBorder()); p.setOpaque(true); getContentPane().add(p, BorderLayout.SOUTH); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/bbd964029121f2811ba2b7cf47a392087032888c/SoftwareUpdateDialog.java/buggy/SRC/org/openmicroscopy/shoola/env/ui/SoftwareUpdateDialog.java |
getContentPane().add(p, BorderLayout.SOUTH); | c.add(p, BorderLayout.SOUTH); | private void buildGUI() { getContentPane().add(buildContentPanel(), BorderLayout.CENTER); JPanel p = UIUtilities.buildComponentPanelRight(buildToolBar()); p.setBorder(BorderFactory.createEtchedBorder()); p.setOpaque(true); getContentPane().add(p, BorderLayout.SOUTH); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/bbd964029121f2811ba2b7cf47a392087032888c/SoftwareUpdateDialog.java/buggy/SRC/org/openmicroscopy/shoola/env/ui/SoftwareUpdateDialog.java |
public static RubyClass createFixnumClass(Ruby runtime) { return new FixnumDefinition(runtime).getType(); | public static RubyClass createFixnumClass(Ruby ruby) { RubyClass fixnumClass = ruby.defineClass("Fixnum", ruby.getClasses().getIntegerClass()); CallbackFactory callbackFactory = ruby.callbackFactory(); fixnumClass.defineMethod("to_f", callbackFactory.getMethod(RubyFixnum.class, "to_f")); fixnumClass.defineMethod("to_i... | public static RubyClass createFixnumClass(Ruby runtime) { return new FixnumDefinition(runtime).getType(); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/651f03fe10cef5077eff9a351142dc1d4b6ae79a/RubyFixnum.java/buggy/src/org/jruby/RubyFixnum.java |
Map cache = new HashMap(); | Map cache = newCache(); | static public Set adaptFoundCGCIHierarchies(Set result) { Set dataObjects = new HashSet(); Map cache = new HashMap(); for (Iterator i = result.iterator(); i.hasNext();) { Object obj = i.next(); if (obj instanceof CategoryGroup) { CategoryGroup cg = (Category... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/5e29e25bb21b2a51d4b44f9fd80b5b876b782887/AdapterUtils.java/clean/components/shoola-adapter/src/org/openmicroscopy/omero/shoolaadapter/AdapterUtils.java |
Map cache = new HashMap(); | Map cache = newCache(); | static public Map adaptFoundDatasetAnnotations(Map result) { Map dataObjects = new HashMap(); Map cache = new HashMap(); for (Iterator i = result.keySet().iterator(); i.hasNext();) { Object key = i.next(); Set value = (Set) result.get(key); dataObjects.put(key,n... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/5e29e25bb21b2a51d4b44f9fd80b5b876b782887/AdapterUtils.java/clean/components/shoola-adapter/src/org/openmicroscopy/omero/shoolaadapter/AdapterUtils.java |
Map cache = new HashMap(); | Map cache = newCache(); | static public Map adaptFoundImageAnnotations(Map result) { Map dataObjects = new HashMap(); Map cache = new HashMap(); for (Iterator i = result.keySet().iterator(); i.hasNext();) { Object key = i.next(); Set value = (Set) result.get(key); dataObjects.put(key,new... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/5e29e25bb21b2a51d4b44f9fd80b5b876b782887/AdapterUtils.java/clean/components/shoola-adapter/src/org/openmicroscopy/omero/shoolaadapter/AdapterUtils.java |
Map cache = new HashMap(); | Map cache = newCache(); | static public Set adaptFoundPDIHierarchies(Set result) { Set dataObjects = new HashSet(); Map cache = new HashMap(); for (Iterator i = result.iterator(); i.hasNext();) { Object obj = i.next(); if (obj instanceof Project) { Project prj = (Project) obj; ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/5e29e25bb21b2a51d4b44f9fd80b5b876b782887/AdapterUtils.java/clean/components/shoola-adapter/src/org/openmicroscopy/omero/shoolaadapter/AdapterUtils.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.