rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
public boolean isClassDefined(String id) { return false; | public boolean isClassDefined(String name) { return classes.getClassMap().get(name) != null; | public boolean isClassDefined(String id) { return false; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/fe5b7835d80b52a0683d503660a7f722b7af69b1/Ruby.java/clean/org/jruby/Ruby.java |
} catch (BreakException bExcptn) { | /* catch (BreakException bExcptn) { | public RubyObject yield0(RubyObject value, RubyObject self, RubyModule klass, boolean acheck) { if (!isBlockGiven()) { throw new RaiseException(this, "LocalJumpError", "yield called out of block"); } RubyVarmap.push(this); pushClass(); RubyBlock tmpBlock = block.getTmp(... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/fe5b7835d80b52a0683d503660a7f722b7af69b1/Ruby.java/clean/org/jruby/Ruby.java |
public RubyObject yield0(RubyObject value, RubyObject self, RubyModule klass, boolean acheck) { if (!isBlockGiven()) { throw new RaiseException(this, "LocalJumpError", "yield called out of block"); } RubyVarmap.push(this); pushClass(); RubyBlock tmpBlock = block.getTmp(... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/fe5b7835d80b52a0683d503660a7f722b7af69b1/Ruby.java/clean/org/jruby/Ruby.java | ||
public File findFile(File i2find) { | public File findFile(Ruby ruby, File i2find) { | public File findFile(File i2find) { RubyArray lLoadPath = (RubyArray) getGlobalVar("$:"); int lPathNb = lLoadPath.getLength(); String l2Find = i2find.getPath(); for (int i = 0; i < lPathNb; i++) { String lCurPath = ((RubyString) lLoadPath.entry(i)).getValue(); File ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/c2cc02999f957e5b4789133df1ab058f33a4a6cc/Ruby.java/buggy/org/jruby/Ruby.java |
public File findFile(File i2find) { RubyArray lLoadPath = (RubyArray) getGlobalVar("$:"); int lPathNb = lLoadPath.getLength(); String l2Find = i2find.getPath(); for (int i = 0; i < lPathNb; i++) { String lCurPath = ((RubyString) lLoadPath.entry(i)).getValue(); File ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/c2cc02999f957e5b4789133df1ab058f33a4a6cc/Ruby.java/buggy/org/jruby/Ruby.java | ||
javaObjectClass.defineMethod("hash", CallbackFactory.getMethod(RubyJavaObject.class, "hash")); | public static RubyClass createJavaObjectClass(Ruby ruby) { RubyClass javaObjectClass = ruby.defineClass("JavaObject", ruby.getClasses().getObjectClass()); javaObjectClass.defineMethod("to_s", CallbackFactory.getMethod(RubyJavaObject.class, "to_s")); javaObjectClass.defineMethod("eql?", Callback... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/7f0907240b4b4a4379424377e971ed0ca23f1dcb/RubyJavaObject.java/clean/org/jruby/RubyJavaObject.java | |
public SingletonReference(String name, Set patterns, String objectTypeName) { this.name = name; this.patterns = patterns; this.objectTypeName = objectTypeName; | public SingletonReference() { | public SingletonReference(String name, Set patterns, String objectTypeName) { this.name = name; this.patterns = patterns; this.objectTypeName = objectTypeName; } | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/6a661ce4fbc3261ed4b3a744b1e1919df53cbbf7/SingletonReference.java/clean/kernel/src/java/org/gbean/geronimo/SingletonReference.java |
public final String getName() { | public String getName() { | public final String getName() { return name; } | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/6a661ce4fbc3261ed4b3a744b1e1919df53cbbf7/SingletonReference.java/clean/kernel/src/java/org/gbean/geronimo/SingletonReference.java |
objectType = ClassLoading.loadClass(objectTypeName, serviceContext.getClassLoader()); | objectType = ClassLoading.loadClass(referenceType, serviceContext.getClassLoader()); | 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... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/6a661ce4fbc3261ed4b3a744b1e1919df53cbbf7/SingletonReference.java/clean/kernel/src/java/org/gbean/geronimo/SingletonReference.java |
objectType = ClassLoading.loadClass(objectTypeName, serviceContext.getClassLoader()); | objectType = ClassLoading.loadClass(referenceType, serviceContext.getClassLoader()); | 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) { ... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/6a661ce4fbc3261ed4b3a744b1e1919df53cbbf7/SingletonReference.java/clean/kernel/src/java/org/gbean/geronimo/SingletonReference.java |
void createNodes(Set nodes, TreeImageDisplay newNode) | void createNodes(Set nodes, TreeImageDisplay newNode, TreeImageDisplay parentDisplay) | void createNodes(Set nodes, TreeImageDisplay newNode) { Iterator i = nodes.iterator(); TreeImageDisplay parent; List list; Iterator j; DefaultTreeModel dtm = (DefaultTreeModel) treeDisplay.getModel(); buildEmptyNode(newNode); while (i.hasNext()) { paren... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/3fc76f3da582f7d2ddc56be96259f52fdf92d68e/BrowserUI.java/clean/SRC/org/openmicroscopy/shoola/agents/treeviewer/browser/BrowserUI.java |
if (parent.equals(parentDisplay)) treeDisplay.setSelectionPath(new TreePath(newNode.getPath())); | void createNodes(Set nodes, TreeImageDisplay newNode) { Iterator i = nodes.iterator(); TreeImageDisplay parent; List list; Iterator j; DefaultTreeModel dtm = (DefaultTreeModel) treeDisplay.getModel(); buildEmptyNode(newNode); while (i.hasNext()) { paren... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/3fc76f3da582f7d2ddc56be96259f52fdf92d68e/BrowserUI.java/clean/SRC/org/openmicroscopy/shoola/agents/treeviewer/browser/BrowserUI.java | |
void removeNodes(Set nodes) | void removeNodes(Set nodes, TreeImageDisplay parentDisplay) | void removeNodes(Set nodes) { Iterator i = nodes.iterator(); TreeImageDisplay node; TreeImageDisplay parent; DefaultTreeModel dtm = (DefaultTreeModel) treeDisplay.getModel(); while (i.hasNext()) { node = (TreeImageDisplay) i.next(); parent = node.getParen... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/3fc76f3da582f7d2ddc56be96259f52fdf92d68e/BrowserUI.java/clean/SRC/org/openmicroscopy/shoola/agents/treeviewer/browser/BrowserUI.java |
if (parent.equals(parentDisplay)) treeDisplay.setSelectionPath(new TreePath(parent.getPath())); | void removeNodes(Set nodes) { Iterator i = nodes.iterator(); TreeImageDisplay node; TreeImageDisplay parent; DefaultTreeModel dtm = (DefaultTreeModel) treeDisplay.getModel(); while (i.hasNext()) { node = (TreeImageDisplay) i.next(); parent = node.getParen... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/3fc76f3da582f7d2ddc56be96259f52fdf92d68e/BrowserUI.java/clean/SRC/org/openmicroscopy/shoola/agents/treeviewer/browser/BrowserUI.java | |
return (l.equals(r)) ? TRUE : FALSE; | return (!l.equals(r)) ? TRUE : FALSE; | public Boolean compare(Object l, Object r) { return (l.equals(r)) ? TRUE : FALSE; } | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/54e28a1bfa1b157d0af4ad9ef30c49c956a11319/Expression.java/buggy/webmacro/src/org/webmacro/engine/Expression.java |
return ((o instanceof Integer) || o instanceof Long || o instanceof Short || o instanceof Byte); | return (o instanceof Number); | public static boolean isNumber(Object o) { return ((o instanceof Integer) || o instanceof Long || o instanceof Short || o instanceof Byte); } | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/54e28a1bfa1b157d0af4ad9ef30c49c956a11319/Expression.java/buggy/webmacro/src/org/webmacro/engine/Expression.java |
Callback const_set = new ReflectionCallbackMethod(RubyModule.class, "const_set", new Class[] { RubyObject.class, RubyObject.class }); | Callback const_set = CallbackFactory.getMethod(RubyModule.class, "const_set", RubyObject.class, RubyObject.class); | public static void createModuleClass(RubyClass moduleClass) {; Callback op_eqq = CallbackFactory.getMethod(RubyModule.class, "op_eqq", RubyObject.class); Callback op_cmp = CallbackFactory.getMethod(RubyModule.class, "op_cmp", RubyObject.class); Callback op_lt = CallbackFactory.getMethod(RubyMod... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/6076c5ab87d25a488469aa1a32f1d2c9c9e470b2/RubyModule.java/buggy/org/jruby/RubyModule.java |
Callback alias_method = new ReflectionCallbackMethod(RubyModule.class, "alias_method", new Class[] { RubyObject.class, RubyObject.class }); | Callback alias_method = CallbackFactory.getMethod(RubyModule.class, "alias_method", RubyObject.class, RubyObject.class); | public static void createModuleClass(RubyClass moduleClass) {; Callback op_eqq = CallbackFactory.getMethod(RubyModule.class, "op_eqq", RubyObject.class); Callback op_cmp = CallbackFactory.getMethod(RubyModule.class, "op_cmp", RubyObject.class); Callback op_lt = CallbackFactory.getMethod(RubyMod... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/6076c5ab87d25a488469aa1a32f1d2c9c9e470b2/RubyModule.java/buggy/org/jruby/RubyModule.java |
moduleClass.definePrivateMethod("method_added", CallbackFactory.getNilMethod()); | moduleClass.definePrivateMethod("method_added", CallbackFactory.getNilMethod(1)); | public static void createModuleClass(RubyClass moduleClass) {; Callback op_eqq = CallbackFactory.getMethod(RubyModule.class, "op_eqq", RubyObject.class); Callback op_cmp = CallbackFactory.getMethod(RubyModule.class, "op_cmp", RubyObject.class); Callback op_lt = CallbackFactory.getMethod(RubyMod... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/6076c5ab87d25a488469aa1a32f1d2c9c9e470b2/RubyModule.java/buggy/org/jruby/RubyModule.java |
if (coberturaFile.isClass() && shouldInstrument(coberturaFile.getPathname())) | if (coberturaFile.isClass() && classPattern.matches(coberturaFile.getPathname())) | 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... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/ea44d50de680cfb1f234670ee0209ccd6aa03416/Main.java/buggy/cobertura/src/net/sourceforge/cobertura/instrument/Main.java |
private void addInstrumentationToArchive(ZipInputStream archive, ZipOutputStream output) throws Exception | private boolean addInstrumentationToArchive(CoberturaFile file, InputStream archive, OutputStream output) throws Exception | 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/ea44d50de680cfb1f234670ee0209ccd6aa03416/Main.java/buggy/cobertura/src/net/sourceforge/cobertura/instrument/Main.java |
ZipEntry entry; while ((entry = archive.getNextEntry()) != null) | ZipInputStream zis = null; ZipOutputStream zos = null; try | 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/ea44d50de680cfb1f234670ee0209ccd6aa03416/Main.java/buggy/cobertura/src/net/sourceforge/cobertura/instrument/Main.java |
try { ZipEntry outputEntry = new ZipEntry(entry.getName()); output.putNextEntry(outputEntry); byte[] entryBytes = IOUtil .createByteArrayFromInputStream(archive); if (isClass(entry) && shouldInstrument(entry.getName())) { ClassReader cr = new ClassReader(entryBytes); ClassWriter cw = new ClassWriter(true); ClassIn... | zis = new ZipInputStream(archive); zos = new ZipOutputStream(output); return addInstrumentationToArchive(file, zis, zos); } finally { zis = (ZipInputStream)IOUtil.closeInputStream(zis); zos = (ZipOutputStream)IOUtil.closeOutputStream(zos); | 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/ea44d50de680cfb1f234670ee0209ccd6aa03416/Main.java/buggy/cobertura/src/net/sourceforge/cobertura/instrument/Main.java |
if (inputStream != null) { try { inputStream.close(); } catch (IOException e) { } } | inputStream = IOUtil.closeInputStream(inputStream); | 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/ea44d50de680cfb1f234670ee0209ccd6aa03416/Main.java/buggy/cobertura/src/net/sourceforge/cobertura/instrument/Main.java |
if (outputStream != null) { try { outputStream.close(); } catch (IOException e) { } } | outputStream = IOUtil.closeOutputStream(outputStream); | 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/ea44d50de680cfb1f234670ee0209ccd6aa03416/Main.java/buggy/cobertura/src/net/sourceforge/cobertura/instrument/Main.java |
addRegex(ignoreRegexes, args[++i]); | RegexUtil.addRegex(ignoreRegexes, args[++i]); | 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(... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/ea44d50de680cfb1f234670ee0209ccd6aa03416/Main.java/buggy/cobertura/src/net/sourceforge/cobertura/instrument/Main.java |
addRegex(includeClassesRegexes, args[++i]); | classPattern.addIncludeClassesRegex(args[++i]); | 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(... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/ea44d50de680cfb1f234670ee0209ccd6aa03416/Main.java/buggy/cobertura/src/net/sourceforge/cobertura/instrument/Main.java |
addRegex(excludeClassesRegexes, args[++i]); | classPattern.addExcludeClassesRegex(args[++i]); | 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(... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/ea44d50de680cfb1f234670ee0209ccd6aa03416/Main.java/buggy/cobertura/src/net/sourceforge/cobertura/instrument/Main.java |
IRubyObject[] newArgs = new IRubyObject[args.length + 1]; newArgs[0] = RubySymbol.newSymbol(getRuntime(), name); System.arraycopy(args, 0, newArgs, 1, args.length); return recv.callMethod("method_missing", newArgs); | return callMethodMissing(recv, name, args); | public final IRubyObject call(IRubyObject recv, String name, IRubyObject[] args, int scope) { if (args == null) { args = new IRubyObject[0]; } CacheEntry ent = getRuntime().getMethodCache().getEntry(this, name); if (ent == null) { ent = getMethodBody(name); }... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/cfb1b4132c30e5186c41e9dbf0b92acca72fcf81/RubyModule.java/clean/org/jruby/RubyModule.java |
ruby.getLastCallStatus().setPrivate(); return callMethodMissing(recv, name, args); | public final IRubyObject call(IRubyObject recv, String name, IRubyObject[] args, int scope) { if (args == null) { args = new IRubyObject[0]; } CacheEntry ent = getRuntime().getMethodCache().getEntry(this, name); if (ent == null) { ent = getMethodBody(name); }... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/cfb1b4132c30e5186c41e9dbf0b92acca72fcf81/RubyModule.java/clean/org/jruby/RubyModule.java | |
ruby.getLastCallStatus().setProtected(); return callMethodMissing(recv, name, args); | public final IRubyObject call(IRubyObject recv, String name, IRubyObject[] args, int scope) { if (args == null) { args = new IRubyObject[0]; } CacheEntry ent = getRuntime().getMethodCache().getEntry(this, name); if (ent == null) { ent = getMethodBody(name); }... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/cfb1b4132c30e5186c41e9dbf0b92acca72fcf81/RubyModule.java/clean/org/jruby/RubyModule.java | |
.println("<script type=\"text/javascript\" src=\"js/percentagesorttype.js\"></script>"); | .println("<script type=\"text/javascript\" src=\"js/customsorttypes.js\"></script>"); | 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/8aa2b024b47f24f410d25e5d8eb53673520a571e/HTMLReport.java/clean/cobertura/src/net/sourceforge/cobertura/reporting/html/HTMLReport.java |
.println(" [\"String\", \"Number\", \"Percentage\", \"Percentage\", \"Number\", \"Number\", \"Number\"]);"); | .println(" [\"String\", \"Number\", \"Percentage\", \"Percentage\", \"LocalizedNumber\"]);"); | 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/8aa2b024b47f24f410d25e5d8eb53673520a571e/HTMLReport.java/clean/cobertura/src/net/sourceforge/cobertura/reporting/html/HTMLReport.java |
.println(" [\"String\", \"Percentage\", \"Percentage\", \"Number\", \"Number\", \"Number\"]);"); | .println(" [\"String\", \"Percentage\", \"Percentage\", \"LocalizedNumber\"]);"); | 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/8aa2b024b47f24f410d25e5d8eb53673520a571e/HTMLReport.java/clean/cobertura/src/net/sourceforge/cobertura/reporting/html/HTMLReport.java |
cg.collectFromCategoryLinks( new MapperBlock( mapper ) ))); | cg.eachLinkedCategory( new MapperBlock( mapper ) ))); | public void copy(IObject model, ModelMapper mapper) { if (model instanceof CategoryGroup) { CategoryGroup cg = (CategoryGroup) model; super.copy(model,mapper); // Details if (cg.getDetails()!=null){ this.setOwner((ExperimenterData) mapper.findTarg... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/7b5c704279f82fa929138305f70f2f5e6b462c69/CategoryGroupData.java/clean/components/shoola-adapter/src/pojos/CategoryGroupData.java |
double scale = aPaintContext.getScale(); | PCamera camera = aPaintContext.getCamera(); double scale = camera.getViewScale(); | protected void paint(PPaintContext aPaintContext) { double scale = aPaintContext.getScale(); if (scale < Constants.SCALE_THRESHOLD) { params.setVisible(false); modules.setVisible(true); } else { params.setVisible(true); modules.setVisible(false); } } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/eb2be5991bbd43d8f22c2408263446bd459f68b0/LinkLayer.java/buggy/SRC/org/openmicroscopy/shoola/agents/chainbuilder/piccolo/LinkLayer.java |
int n = Integer.parseInt(args[0]); | public static void main(String args[]) { //@START int n = Integer.parseInt(args[0]); HashMap hash1 = new HashMap(10000); HashMap hash2 = new HashMap(n); for(int i = 0; i < 10000; i++) hash1.put("foo_" + Integer.toString(i, 10), new Val(i)); for(int i = 0; i < n; i++) { Iterator it = hash1.entrySet().iterato... | 53330 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53330/eb6c850277407b38bcaefb81155941da0f27b849/hash2.java/clean/tests/shootout/java-start/hash2.java | |
set.remove(s2); assertTrue(set.contains(s1)); assertTrue(! set.contains(s2)); assertTrue(! set.contains(s3)); | public void testStoring() { IdentitySet set = new IdentitySet(); String s1 = "hello"; String s2 = new String(s1); String s3 = "some other string"; set.add(s1); assertTrue(set.contains(s1)); assertTrue(! set.contains(s2)); assertTrue(! set.contains(s3)); ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/3db6c9249a0b029b0a43fa8b53b9d42de5c34174/TestIdentitySet.java/buggy/org/jruby/test/TestIdentitySet.java | |
return RubyFloat.newFloat(getRuntime(), getDoubleValue()).op_div(other); | return RubyFloat.newFloat(getRuntime(), getDoubleValue()).op_div(other); | public RubyNumeric op_div(IRubyObject num) { RubyNumeric other = numericValue(num); if (other instanceof RubyFloat) { return RubyFloat.newFloat(getRuntime(), getDoubleValue()).op_div(other); } BigInteger results[] = getValue().divideAndRemainder(bigIntValue(other)); if... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a25fc494ea7daeb4b5b479e0173372332cf7d4ac/RubyBignum.java/buggy/src/org/jruby/RubyBignum.java |
BigInteger results[] = getValue().divideAndRemainder(bigIntValue(other)); | BigInteger results[] = getValue().divideAndRemainder(bigIntValue(other)); | public RubyNumeric op_div(IRubyObject num) { RubyNumeric other = numericValue(num); if (other instanceof RubyFloat) { return RubyFloat.newFloat(getRuntime(), getDoubleValue()).op_div(other); } BigInteger results[] = getValue().divideAndRemainder(bigIntValue(other)); if... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a25fc494ea7daeb4b5b479e0173372332cf7d4ac/RubyBignum.java/buggy/src/org/jruby/RubyBignum.java |
if (results[0].compareTo(BigInteger.ZERO) <= 0 && results[1].compareTo(BigInteger.ZERO) != 0) { return bigNorm(getRuntime(), results[0].subtract(BigInteger.ONE)); } | if (results[0].compareTo(BigInteger.ZERO) <= 0 && results[1].compareTo(BigInteger.ZERO) != 0) { return bigNorm(getRuntime(), results[0].subtract(BigInteger.ONE)); } | public RubyNumeric op_div(IRubyObject num) { RubyNumeric other = numericValue(num); if (other instanceof RubyFloat) { return RubyFloat.newFloat(getRuntime(), getDoubleValue()).op_div(other); } BigInteger results[] = getValue().divideAndRemainder(bigIntValue(other)); if... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a25fc494ea7daeb4b5b479e0173372332cf7d4ac/RubyBignum.java/buggy/src/org/jruby/RubyBignum.java |
RubyNumeric other = numericValue(num); if (other instanceof RubyFloat) { return RubyFloat.newFloat(getRuntime(), getDoubleValue()).op_mul(other); } return bigNorm(getRuntime(), getValue().multiply(bigIntValue(other))); | return numericValue(num).multiplyWith(this); | public RubyNumeric op_mul(IRubyObject num) { RubyNumeric other = numericValue(num); if (other instanceof RubyFloat) { return RubyFloat.newFloat(getRuntime(), getDoubleValue()).op_mul(other); } return bigNorm(getRuntime(), getValue().multiply(bigIntValue(other))); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a25fc494ea7daeb4b5b479e0173372332cf7d4ac/RubyBignum.java/buggy/src/org/jruby/RubyBignum.java |
public Thumbnail(Integer attributeId, String path, String mimeType, org.openmicroscopy.omero.model.Image image, org.openmicroscopy.omero.model.Repository repository, org.openmicroscopy.omero.model.ModuleExecution moduleExecution) { this.attributeId = attributeId; this.path = path; this.mimeType = mimeType; this.image =... | public Thumbnail() { | public Thumbnail(Integer attributeId, String path, String mimeType, org.openmicroscopy.omero.model.Image image, org.openmicroscopy.omero.model.Repository repository, org.openmicroscopy.omero.model.ModuleExecution moduleExecution) { this.attributeId = attributeId; this.path = path; this.mimeType... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/Thumbnail.java/clean/components/common/src/org/openmicroscopy/omero/model/Thumbnail.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/Thumbnail.java/clean/components/common/src/org/openmicroscopy/omero/model/Thumbnail.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/Thumbnail.java/clean/components/common/src/org/openmicroscopy/omero/model/Thumbnail.java |
public org.openmicroscopy.omero.model.Repository getRepository() { | public Repository getRepository() { | public org.openmicroscopy.omero.model.Repository getRepository() { return this.repository; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/Thumbnail.java/clean/components/common/src/org/openmicroscopy/omero/model/Thumbnail.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/Thumbnail.java/clean/components/common/src/org/openmicroscopy/omero/model/Thumbnail.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/Thumbnail.java/clean/components/common/src/org/openmicroscopy/omero/model/Thumbnail.java |
public void setRepository(org.openmicroscopy.omero.model.Repository repository) { | public void setRepository(Repository repository) { | public void setRepository(org.openmicroscopy.omero.model.Repository repository) { this.repository = repository; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/Thumbnail.java/clean/components/common/src/org/openmicroscopy/omero/model/Thumbnail.java |
throw new NotImplementedError(); | public void raise(RubyException exc) { // TODO: How do we raise the exception from the target thread // (as opposed to the calling thread)? //throw exc; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/97a2e6c00e86a04f4922893e5ab540f1c1636188/RubyThread.java/buggy/org/jruby/RubyThread.java | |
if (!recv.getRuntime().isBlockGiven()) { System.out.println("No block given to thread!"); | if (! recv.getRuntime().isBlockGiven()) { throw new ThreadError(recv.getRuntime(), "must be called with a block"); | protected static RubyThread startThread(final IRubyObject recv, final IRubyObject[] args, boolean callInit) { if (!recv.getRuntime().isBlockGiven()) { System.out.println("No block given to thread!"); } final RubyThread result = new RubyThread(recv.getRuntime(), (RubyClass) recv); ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/97a2e6c00e86a04f4922893e5ab540f1c1636188/RubyThread.java/buggy/org/jruby/RubyThread.java |
public void init() { | public OMEData init() { | public void init() { // Test data : calculated before to not change times. if (!initialized) { super.init(); imgsPDI = getPercentOfCollection(allImgs, percent); imgsCGCI = getPercentOfCollection(allImgs, percent); imgsAnn1 = getPercentOfCollection(allImgs, p... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/2bc67970abd041b6cb8e0252d02a6e27f304bec4/OMEPerformanceData.java/clean/components/common/src/org/openmicroscopy/omero/tests/OMEPerformanceData.java |
return this; | public void init() { // Test data : calculated before to not change times. if (!initialized) { super.init(); imgsPDI = getPercentOfCollection(allImgs, percent); imgsCGCI = getPercentOfCollection(allImgs, percent); imgsAnn1 = getPercentOfCollection(allImgs, p... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/2bc67970abd041b6cb8e0252d02a6e27f304bec4/OMEPerformanceData.java/clean/components/common/src/org/openmicroscopy/omero/tests/OMEPerformanceData.java | |
JOptionPane.showMessageDialog(SparkManager.getMainWindow(), "The message has been broadcasted to the following users:\n" + buf.toString(), "Message Broadcasted", JOptionPane.INFORMATION_MESSAGE); | JOptionPane.showMessageDialog(SparkManager.getMainWindow(), Res.getString("message.broadcasted.to", buf.toString()), Res.getString("title.notification"), JOptionPane.INFORMATION_MESSAGE); | 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... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/ede843505c046d47bba853e049191aedc32bd2fe/BroadcastPlugin.java/clean/src/java/org/jivesoftware/sparkimpl/plugin/alerts/BroadcastPlugin.java |
public RubyClass getInternalClass() { if (isNil()) { return getRuby().getClasses().getNilClass(); } return rubyClass; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/62333c275b1a643f18c9a79af5bbb2f0027f4392/RubyObject.java/clean/org/jruby/RubyObject.java | ||
RubyClass currType = getInternalClass(); while (currType != null) { if (currType == type || currType.getMethods().keySet().containsAll(type.getMethods().keySet())) { return true; } currType = currType.getSuperClass(); } return false; | return getInternalClass().ancestors().includes(type); | public boolean isKindOf(RubyModule type) { RubyClass currType = getInternalClass(); while (currType != null) { if (currType == type || currType.getMethods().keySet().containsAll(type.getMethods().keySet())) { return true; } currType = currType.getSuperCl... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/62333c275b1a643f18c9a79af5bbb2f0027f4392/RubyObject.java/clean/org/jruby/RubyObject.java |
return wrap( context, "&pixelsService" ); | return wrap( context, IPixels.class ); | public Object invoke( InvocationContext context ) throws Exception { return wrap( context, "&pixelsService" ); // FIXME } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/dc8dde051a1e2b716514b3964c9222ce006ebea9/RawPixelsBean.java/buggy/components/ejb/src/ome/ro/ejb/RawPixelsBean.java |
IPixels metadataService = (IPixels) serviceFactory.getContext() .getBean(IPixels.class.getName()); | IPixels metadataService = serviceFactory.getPixelsService(); | public void setPixelsId( long pixelsId ) { if ( id == null || id.longValue() != pixelsId ) { id = new Long( pixelsId ); pixelsInstance = null; buffer = null; IPixels metadataService = (IPixels) serviceFactory.getContext() .getBean(IPixels.c... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/dc8dde051a1e2b716514b3964c9222ce006ebea9/RawPixelsBean.java/buggy/components/ejb/src/ome/ro/ejb/RawPixelsBean.java |
throw newValue.getRuntime().newNameError(name + " is a read-only variable"); | throw newValue.getRuntime().newNameError(name + " is a read-only variable", name); | public IRubyObject setValue(IRubyObject newValue) { assert newValue != null; throw newValue.getRuntime().newNameError(name + " is a read-only variable"); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1278c5bb3507a052d150d814f15453542ae41aed/ReadonlyAccessor.java/buggy/src/org/jruby/internal/runtime/ReadonlyAccessor.java |
new XMLReport(coverageData, outputDir, sourceDir); | new XMLReport(coverage, outputDir, sourceDir); | 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[... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/1fc76069b3c268690aea68cfb654d632b23e3b49/Main.java/clean/cobertura/src/net/sourceforge/cobertura/reporting/Main.java |
new HTMLReport(coverageData, outputDir, sourceDir); | new HTMLReport(coverage, outputDir, sourceDir); | 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[... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/1fc76069b3c268690aea68cfb654d632b23e3b49/Main.java/clean/cobertura/src/net/sourceforge/cobertura/reporting/Main.java |
public void setProperties(Set properties) { | public void setProperties(Set<Property> properties) { | public void setProperties(Set properties) { this.properties = properties; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/6d9e84b0d2f71da76eba45bc713472ad607c544a/SemanticType.java/clean/components/dsl/src/ome/dsl/SemanticType.java |
List<List> result_set = (List) iQuery.execute(q); | List<CategoryGroup> result_set = (List) iQuery.execute(q); | public Set findCGCPaths(@NotNull @Validate(Long.class) Set imgIds, String algorithm, Map options) { if (imgIds.size()==0){ return new HashSet(); } if (! IPojos.ALGORITHMS.contains(algorithm)) { throw new IllegalArgumentException( "No such algorithm known:"+algorithm); } PojoOptions po = new ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/149c7633fd9b60929f706ce4783c5e19a9f34bd2/PojosImpl.java/clean/components/server/src/ome/logic/PojosImpl.java |
for (List result_row : result_set) | for (CategoryGroup cg: result_set) | public Set findCGCPaths(@NotNull @Validate(Long.class) Set imgIds, String algorithm, Map options) { if (imgIds.size()==0){ return new HashSet(); } if (! IPojos.ALGORITHMS.contains(algorithm)) { throw new IllegalArgumentException( "No such algorithm known:"+algorithm); } PojoOptions po = new ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/149c7633fd9b60929f706ce4783c5e19a9f34bd2/PojosImpl.java/clean/components/server/src/ome/logic/PojosImpl.java |
CategoryGroup cg = (CategoryGroup) result_row.get(0); Category c = (Category) result_row.get(1); if (!map.containsKey(cg)) map.put(cg,new HashSet<Category>()); map.get(cg).add(c); | for (Category c : (List<Category>) cg.linkedCategoryList()) { if (!map.containsKey(cg)) map.put(cg,new HashSet<Category>()); map.get(cg).add(c); } | public Set findCGCPaths(@NotNull @Validate(Long.class) Set imgIds, String algorithm, Map options) { if (imgIds.size()==0){ return new HashSet(); } if (! IPojos.ALGORITHMS.contains(algorithm)) { throw new IllegalArgumentException( "No such algorithm known:"+algorithm); } PojoOptions po = new ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/149c7633fd9b60929f706ce4783c5e19a9f34bd2/PojosImpl.java/clean/components/server/src/ome/logic/PojosImpl.java |
ProxyCleanupFilter filter = new ProxyCleanupFilter(); | public Set findCGCPaths(@NotNull @Validate(Long.class) Set imgIds, String algorithm, Map options) { if (imgIds.size()==0){ return new HashSet(); } if (! IPojos.ALGORITHMS.contains(algorithm)) { throw new IllegalArgumentException( "No such algorithm known:"+algorithm); } PojoOptions po = new ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/149c7633fd9b60929f706ce4783c5e19a9f34bd2/PojosImpl.java/clean/components/server/src/ome/logic/PojosImpl.java | |
filter.filter( null, cg ); | public Set findCGCPaths(@NotNull @Validate(Long.class) Set imgIds, String algorithm, Map options) { if (imgIds.size()==0){ return new HashSet(); } if (! IPojos.ALGORITHMS.contains(algorithm)) { throw new IllegalArgumentException( "No such algorithm known:"+algorithm); } PojoOptions po = new ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/149c7633fd9b60929f706ce4783c5e19a9f34bd2/PojosImpl.java/clean/components/server/src/ome/logic/PojosImpl.java | |
void loadRefreshedData(List nodes) | void loadRefreshedData(List nodes, List expandedTopNodes) | void loadRefreshedData(List nodes) { Class klass = null; if (browserType == Browser.PROJECT_EXPLORER) klass = ProjectData.class; else if (browserType == Browser.CATEGORY_EXPLORER) klass = CategoryGroupData.class; if (klass == null) return; state = Browser.LOADING_DA... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/e14deebd64382fe7de32f39ea661a766a7294394/BrowserModel.java/clean/SRC/org/openmicroscopy/shoola/agents/treeviewer/browser/BrowserModel.java |
currentLoader = new RefreshDataLoader(component, klass, nodes); | currentLoader = new RefreshDataLoader(component, klass, nodes, expandedTopNodes); | void loadRefreshedData(List nodes) { Class klass = null; if (browserType == Browser.PROJECT_EXPLORER) klass = ProjectData.class; else if (browserType == Browser.CATEGORY_EXPLORER) klass = CategoryGroupData.class; if (klass == null) return; state = Browser.LOADING_DA... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/e14deebd64382fe7de32f39ea661a766a7294394/BrowserModel.java/clean/SRC/org/openmicroscopy/shoola/agents/treeviewer/browser/BrowserModel.java |
public static List loadAllArticlesInFolder(File folder) throws XmlException, IOException{ | public static List loadAllArticlesInFolder(String folder) throws XmlException, IOException{ | 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... | 57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/72fe15183822be99f6dfa9d697bce89864c5f7d8/ArticleListBean.java/clean/src/java/com/idega/block/article/bean/ArticleListBean.java |
File[] articleFile = folder.listFiles(); | 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... | 57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/72fe15183822be99f6dfa9d697bce89864c5f7d8/ArticleListBean.java/clean/src/java/com/idega/block/article/bean/ArticleListBean.java | |
if(articleFile!=null){ for(int i=0;i<articleFile.length;i++){ System.out.println("Attempting to load "+articleFile[i].toString()); ArticleItemBean article = new ArticleItemBean(); article.load(articleFile[i]); list.add(article); } | IWUserContext iwuc = IWContext.getInstance(); IWApplicationContext iwac = iwuc.getApplicationContext(); IWSlideSession session = (IWSlideSession)IBOLookup.getSessionInstance(iwuc,IWSlideSession.class); IWSlideService service = (IWSlideService)IBOLookup.getServiceInstance(iwac,IWSlideService.class); HttpURL root = new... | 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... | 57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/72fe15183822be99f6dfa9d697bce89864c5f7d8/ArticleListBean.java/clean/src/java/com/idega/block/article/bean/ArticleListBean.java |
articleItemBean = (ArticleItemBean[])loadAllArticlesInFolder(new File("/Test/article/")).toArray(new ArticleItemBean[0]); | articleItemBean = (ArticleItemBean[])loadAllArticlesInFolder("/files/content").toArray(new ArticleItemBean[0]); | 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... | 57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/72fe15183822be99f6dfa9d697bce89864c5f7d8/ArticleListBean.java/clean/src/java/com/idega/block/article/bean/ArticleListBean.java |
ArticleListBean a = new ArticleListBean(String.valueOf(i), articleItemBean[i].getHeadline(), articleItemBean[i].getItemType(), articleItemBean[i].getAuthor(), articleItemBean[i].getStatus()); | ArticleListBean a = new ArticleListBean(articleItemBean[i].getMainCategory()+"/"+articleItemBean[i].getHeadline()+".xml", articleItemBean[i].getHeadline(), articleItemBean[i].getItemType(), articleItemBean[i].getAuthor(), articleItemBean[i].getStatus()); | 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... | 57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/72fe15183822be99f6dfa9d697bce89864c5f7d8/ArticleListBean.java/clean/src/java/com/idega/block/article/bean/ArticleListBean.java |
if (other instanceof RubyFloat || other instanceof RubyBignum) { double time = millis / 1000.0; | public IRubyObject op_cmp(IRubyObject other) { if (other.isNil()) { return other; } if (other instanceof RubyTime) { return getRuntime().newFixnum(cmp((RubyTime) other)); } long millis = getTimeInMillis(); if (other instanceof Ruby... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d2a3e96a5caf8bc4e4894cc0cff288c732dcc835/RubyTime.java/buggy/src/org/jruby/RubyTime.java | |
double time_other = ((RubyNumeric) other).getDoubleValue(); | if(other instanceof RubyNumeric) { if (other instanceof RubyFloat || other instanceof RubyBignum) { double time = millis / 1000.0; | public IRubyObject op_cmp(IRubyObject other) { if (other.isNil()) { return other; } if (other instanceof RubyTime) { return getRuntime().newFixnum(cmp((RubyTime) other)); } long millis = getTimeInMillis(); if (other instanceof Ruby... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d2a3e96a5caf8bc4e4894cc0cff288c732dcc835/RubyTime.java/buggy/src/org/jruby/RubyTime.java |
if (time > time_other) { | double time_other = ((RubyNumeric) other).getDoubleValue(); if (time > time_other) { return RubyFixnum.one(getRuntime()); } else if (time < time_other) { return RubyFixnum.minus_one(getRuntime()); } return RubyFixnum.zero(getRuntime()); } long millis_other = RubyNumeric.num2long(other) * 1000; if (millis > millis_ot... | public IRubyObject op_cmp(IRubyObject other) { if (other.isNil()) { return other; } if (other instanceof RubyTime) { return getRuntime().newFixnum(cmp((RubyTime) other)); } long millis = getTimeInMillis(); if (other instanceof Ruby... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d2a3e96a5caf8bc4e4894cc0cff288c732dcc835/RubyTime.java/buggy/src/org/jruby/RubyTime.java |
} else if (time < time_other) { | } else if (millis < millis_other || (millis == millis_other && usec < 0)) { | public IRubyObject op_cmp(IRubyObject other) { if (other.isNil()) { return other; } if (other instanceof RubyTime) { return getRuntime().newFixnum(cmp((RubyTime) other)); } long millis = getTimeInMillis(); if (other instanceof Ruby... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d2a3e96a5caf8bc4e4894cc0cff288c732dcc835/RubyTime.java/buggy/src/org/jruby/RubyTime.java |
long millis_other = RubyNumeric.num2long(other) * 1000; if (millis > millis_other || (millis == millis_other && usec > 0)) { return RubyFixnum.one(getRuntime()); } else if (millis < millis_other || (millis == millis_other && usec < 0)) { return RubyFixnum.minus_one(getRuntime()); } return RubyFixnum.zero(getRuntime(... | return getRuntime().getNil(); | public IRubyObject op_cmp(IRubyObject other) { if (other.isNil()) { return other; } if (other instanceof RubyTime) { return getRuntime().newFixnum(cmp((RubyTime) other)); } long millis = getTimeInMillis(); if (other instanceof Ruby... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d2a3e96a5caf8bc4e4894cc0cff288c732dcc835/RubyTime.java/buggy/src/org/jruby/RubyTime.java |
if ((ho instanceof ImageData)) name = VIEW; | if ((ho instanceof ImageData)) { name = VIEW; description = DESCRIPTION_IMAGE; putValue(Action.SHORT_DESCRIPTION, UIUtilities.formatToolTipText(description)); } | protected void onDisplayChange(TreeImageDisplay selectedDisplay) { if (selectedDisplay == null) { setEnabled(false); return; } if (selectedDisplay.getParentDisplay() == null) { //root name = BROWSE; setEnabled(model.getSelectedBrowser().getBrowserT... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/38a31e9c570bc8c0bbfb871c8b12b0e52420f22c/ViewAction.java/clean/SRC/org/openmicroscopy/shoola/agents/treeviewer/actions/ViewAction.java |
name = ((RubyString) key).getValue(); | name = ((RubyString) key).toString(); | private String keyName(IRubyObject key) { String name; if (key instanceof RubySymbol) { name = key.asSymbol(); } else if (key instanceof RubyString) { name = ((RubyString) key).getValue(); } else { throw getRuntime().newArgumentError(key.inspect() + " is ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9f2efc63a858fa0507245b207025eab027840a04/RubyThread.java/clean/src/org/jruby/RubyThread.java |
gMax = Math.min(gMax, max); | gMax = Math.max(gMax, max); | private PixelsStats makeStats(StackStatistics s, PixelsDimensions d) { double gMin = 0; double gMax = 1; double min, max; PixelsStats ps = new PixelsStats(d.sizeW, d.sizeT); //TODO: Need Polymorphic stats. for (int w = 0; w < d.sizeW; w++) { for (int t = 0; t < d.sizeT; t++) { min = s.minimum[w][t]; max ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/7b32c32fc5e84fe503b34b1c1ff061d4097bbdf6/MetadataSource.java/clean/SRC/org/openmicroscopy/shoola/env/rnd/metadata/MetadataSource.java |
if(presence == null){ return null; } | private void registerPresences() { SparkManager.getConnection().addPacketListener(new PacketListener() { public void processPacket(Packet packet) { Presence presence = (Presence)packet; Transport transport = TransportManager.getTransport(packet.getFrom()); ... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/997a4bd14becef46e30ee291bbdbfe9c99daf102/GatewayPlugin.java/buggy/src/java/org/jivesoftware/sparkimpl/plugin/gateways/GatewayPlugin.java | |
if(presence == null){ return null; } | public Icon useIcon(Presence presence) { String domain = StringUtils.parseServer(presence.getFrom()); Transport transport = TransportManager.getTransport(domain); if (transport != null) { if (presence.getType() == Presence.Type.AVAILABLE) { ... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/997a4bd14becef46e30ee291bbdbfe9c99daf102/GatewayPlugin.java/buggy/src/java/org/jivesoftware/sparkimpl/plugin/gateways/GatewayPlugin.java | |
DisplayedNote parentDisplayed = dd.getTree().getSelectedNote(); | DisplayedNote parentDisplayed = tree.getSelectedNote(); | public void addNote(Event e) { DisplayedNote parentDisplayed = dd.getTree().getSelectedNote(); Note parentNote = parentDisplayed.getNote(); Note newNote = new Note("new", parentNote, ""); new DisplayedNote(parentDisplayed, newNote); } | 57508 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57508/57d4036eb7167d2d27117abe1f0280376377dbaa/TreeContextMenuController.java/clean/trunk/src/de/berlios/koalanotes/controllers/TreeContextMenuController.java |
for (DisplayedNote removeMe : dd.getTree().getSelectedNotes()) { | for (DisplayedNote removeMe : tree.getSelectedNotes()) { | public void removeNotes(Event e) { for (DisplayedNote removeMe : dd.getTree().getSelectedNotes()) { removeMe.deleteSelfAndChildren(); } } | 57508 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57508/57d4036eb7167d2d27117abe1f0280376377dbaa/TreeContextMenuController.java/clean/trunk/src/de/berlios/koalanotes/controllers/TreeContextMenuController.java |
dd.getTree().initialiseTreeEditor(); | tree.initialiseTreeEditor(); | public void renameNote(Event e) { dd.getTree().initialiseTreeEditor(); } | 57508 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57508/57d4036eb7167d2d27117abe1f0280376377dbaa/TreeContextMenuController.java/clean/trunk/src/de/berlios/koalanotes/controllers/TreeContextMenuController.java |
public void scaleChanged(Scale newScale); | public void scaleChanged(String scaleName); | public void scaleChanged(Scale newScale); | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/6d45d101f4e831fda33928e252f882d4d16128d2/HeatMapModeListener.java/buggy/SRC/org/openmicroscopy/shoola/agents/browser/heatmap/HeatMapModeListener.java |
private static int[] getColor(Channel channel) | private static Color getColor(Channel channel) | private static int[] getColor(Channel channel) { int emWave = channel.getLogicalChannel().getEmissionWave().intValue(); if (rangeBlue(emWave)) return BLUE_COLOR; if (rangeGreen(emWave)) return GREEN_COLOR; if (rangeRed(emWave)) return RED_COLOR; return null; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b2d1563defffc9fa654271400d754843f42e2810/ColorsFactory.java/clean/components/rendering/src/omeis/providers/re/ColorsFactory.java |
if (runtime.isBlockGiven()) { | /* if (runtime.isBlockGiven()) { | public IRubyObject instance_eval(IRubyObject[] args) { if (runtime.isBlockGiven()) { RubyProc proc = RubyProc.newProc(getRuntime()); return proc.call(args, this); } else { return specificEval(getSingletonClass(), args); } } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/2b80a64aab1ed3862ed461a7e69049fb675d6bc6/RubyObject.java/clean/org/jruby/RubyObject.java |
} else { | } else { */ | public IRubyObject instance_eval(IRubyObject[] args) { if (runtime.isBlockGiven()) { RubyProc proc = RubyProc.newProc(getRuntime()); return proc.call(args, this); } else { return specificEval(getSingletonClass(), args); } } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/2b80a64aab1ed3862ed461a7e69049fb675d6bc6/RubyObject.java/clean/org/jruby/RubyObject.java |
} | public IRubyObject instance_eval(IRubyObject[] args) { if (runtime.isBlockGiven()) { RubyProc proc = RubyProc.newProc(getRuntime()); return proc.call(args, this); } else { return specificEval(getSingletonClass(), args); } } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/2b80a64aab1ed3862ed461a7e69049fb675d6bc6/RubyObject.java/clean/org/jruby/RubyObject.java | |
super(parameters); | super( defs, parameters ); | public PojosGetImagesQueryDefinition(QueryParameter... parameters) { super(parameters); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/f990a7d35ce265e182121d562725175896db41f4/PojosGetImagesQueryDefinition.java/buggy/components/server/src/ome/services/query/PojosGetImagesQueryDefinition.java |
throw new RuntimeException("Error while trying to instantiate:"+queryID,e); | if ( log.isDebugEnabled() ) { e.printStackTrace(); } throw new RuntimeException("Error while trying to instantiate:" +queryID,e); | public Query lookup(String queryID, QueryParameter...parameters) { Query q = null; try { Class klass = Class.forName(queryID); Constructor c = klass.getConstructor(QueryParameter[].class); q = (Query) c.newInstance(new Object[]{parameters}); } catch (C... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0b36a8e77f5bacb7e122d76ffce01866205b09d7/ClassQuerySource.java/buggy/components/server/src/ome/services/query/ClassQuerySource.java |
ret = myBlock.evaluate(context); if (timing) context.stopTiming(); | try { ret = myBlock.evaluate(context); } finally { if (timing) context.stopTiming(); } | 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; } | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/88d36323ffe7fe0fb49ed32b696ba5e32dca3489/ProfileDirective.java/buggy/webmacro/src/org/webmacro/engine/ProfileDirective.java |
String msg = "Chain: "+chain.getName()+" has structural errors that may prevent it"; | String msg = "Chain: "+chain.getName()+ " has structural errors that may prevent it "; | public void display() { // for now if (errors == null) return; Iterator iter = errors.iterator(); String res = new String(); HashMap nodes = new HashMap(); DefaultMutableTreeNode classNode; DefaultMutableTreeNode objNode; DefaultMutableTreeNode root = new DefaultMutableTreeNode(); while (iter.hasNext()... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/f79b952e960a2ac240ed08deb21e28e566093122/ChainStructureErrors.java/clean/SRC/org/openmicroscopy/shoola/agents/chainbuilder/data/ChainStructureErrors.java |
System.out.println(parent); | 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(); mainPa... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/028cde13fc23ea5cbdaa0191963cf1624ef656d0/PasswordDialog.java/buggy/src/java/org/jivesoftware/spark/component/PasswordDialog.java | |
outStream = new PrintStream(new ByteArrayOutputStream()); | out = new PrintStream(new ByteArrayOutputStream()); err = new PrintStream(new ByteArrayOutputStream()); | public void setUp() { outStream = new PrintStream(new ByteArrayOutputStream()); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/b4a189a27604d62c317938f16a124fb9dab1e94a/TestCommandlineParser.java/buggy/test/org/jruby/test/TestCommandlineParser.java |
CommandlineParser parser = new CommandlineParser(args, outStream); | CommandlineParser parser = new CommandlineParser(new Main(System.in, out, err), args); | public void testHelpDoesNotRunIntepreter() { String[] args = new String[] { "-h" }; CommandlineParser parser = new CommandlineParser(args, outStream); assertFalse(parser.isShouldRunInterpreter()); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/b4a189a27604d62c317938f16a124fb9dab1e94a/TestCommandlineParser.java/buggy/test/org/jruby/test/TestCommandlineParser.java |
CommandlineParser c = new CommandlineParser(new String[] { "-e", "hello", "-e", "world" }, outStream); | CommandlineParser c = new CommandlineParser(new Main(System.in, out, err), new String[] { "-e", "hello", "-e", "world" }); | public void testParsing() { CommandlineParser c = new CommandlineParser(new String[] { "-e", "hello", "-e", "world" }, outStream); assertEquals("hello\nworld\n", c.inlineScript()); assertNull(c.getScriptFileName()); assertEquals("-e", c.displayedFileName()); c = new CommandlinePar... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/b4a189a27604d62c317938f16a124fb9dab1e94a/TestCommandlineParser.java/buggy/test/org/jruby/test/TestCommandlineParser.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.