rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
ruby.getBlock().getCurrent().getFrame().setNamespace(ruby.getCurrentFrame().getNamespace());
ruby.getBlockStack().getCurrent().getFrame().setNamespace(ruby.getCurrentFrame().getNamespace());
public RubyObject execute(RubyObject self, RubyObject[] args, Ruby ruby) { // if () { Block oldBlock = ruby.getBlock().getCurrent().cloneBlock(); /* copy the block to avoid modifying global data. */ ruby.getBlock().getCurrent().getFram...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/8db42974495981011f558bcce15e2dfc28681a76/RubyObject.java/buggy/org/jruby/RubyObject.java
ruby.getBlock().setCurrent(oldBlock);
ruby.getBlockStack().setCurrent(oldBlock);
public RubyObject execute(RubyObject self, RubyObject[] args, Ruby ruby) { // if () { Block oldBlock = ruby.getBlock().getCurrent().cloneBlock(); /* copy the block to avoid modifying global data. */ ruby.getBlock().getCurrent().getFram...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/8db42974495981011f558bcce15e2dfc28681a76/RubyObject.java/buggy/org/jruby/RubyObject.java
return "AnalysisChainNode"+(analysisChainNodeId==null ? ":Hash"+this.hashCode() : ":"+analysisChainNodeId);
return "AnalysisChainNode"+(analysisChainNodeId==null ? ":Hash_"+this.hashCode() : ":Id_"+analysisChainNodeId);
public String toString(){ return "AnalysisChainNode"+(analysisChainNodeId==null ? ":Hash"+this.hashCode() : ":"+analysisChainNodeId); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/51a3c546dfc7a7a98b29771a459df19094fc5b51/AnalysisChainNode.java/buggy/components/common/src/ome/model/AnalysisChainNode.java
} ClassLoader classLoader = runtime.getJavaSupport().getJavaClassLoader(); String xname = name.replace('\\', '/'); if (xname.charAt(0) == '/') { URL loc = classLoader.getResource(xname); if (isRequireable(loc)) { return new LoadServiceResource(loc, loc.getPath()); }
private LoadServiceResource findFile(String name) { if (name.startsWith("jar:")) { try { return new LoadServiceResource(new URL(name), name); } catch (MalformedURLException e) { throw runtime.newIOErrorFromException(e); } } try { ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/fe11f82bc6236dc6746a228a50d4bac6d467618e/LoadService.java/clean/src/org/jruby/runtime/load/LoadService.java
URL loc = classLoader.getResource(entry.replace('\\', '/') + "/" + xname); if (isRequireable(loc)) { return new LoadServiceResource(loc, loc.getPath()); }
private LoadServiceResource findFile(String name) { if (name.startsWith("jar:")) { try { return new LoadServiceResource(new URL(name), name); } catch (MalformedURLException e) { throw runtime.newIOErrorFromException(e); } } try { ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/fe11f82bc6236dc6746a228a50d4bac6d467618e/LoadService.java/clean/src/org/jruby/runtime/load/LoadService.java
URL loc = classLoader.getResource(xname); return isRequireable(loc) ? new LoadServiceResource(loc, loc.getPath()) : null;
return null;
private LoadServiceResource findFile(String name) { if (name.startsWith("jar:")) { try { return new LoadServiceResource(new URL(name), name); } catch (MalformedURLException e) { throw runtime.newIOErrorFromException(e); } } try { ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/fe11f82bc6236dc6746a228a50d4bac6d467618e/LoadService.java/clean/src/org/jruby/runtime/load/LoadService.java
private Library findLibrary(String file) { if (builtinLibraries.containsKey(file)) { return (Library) builtinLibraries.get(file); } LoadServiceResource resource = findFile(file); if (resource == null) { return null; } if (file.endsWith(".jar")) { ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/fe11f82bc6236dc6746a228a50d4bac6d467618e/LoadService.java/clean/src/org/jruby/runtime/load/LoadService.java
for (Iterator iter = additionalDirectories.iterator(); iter.hasNext();) { addPath((String) iter.next()); } try { if (runtime.getSafeLevel() == 0) { String jrubyLib = System.getProperty("jruby.lib"); if (jrubyLib != null) { addPath(jrubyLib); } }
for (Iterator iter = additionalDirectories.iterator(); iter.hasNext();) { addPath((String) iter.next()); } try {
public void init(List additionalDirectories) { for (Iterator iter = additionalDirectories.iterator(); iter.hasNext();) { addPath((String) iter.next()); } // wrap in try/catch for security exceptions in an applet try { if (runtime.getSafeLevel() == 0) { String j...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/fe11f82bc6236dc6746a228a50d4bac6d467618e/LoadService.java/clean/src/org/jruby/runtime/load/LoadService.java
public void init(List additionalDirectories) { for (Iterator iter = additionalDirectories.iterator(); iter.hasNext();) { addPath((String) iter.next()); } // wrap in try/catch for security exceptions in an applet try { if (runtime.getSafeLevel() == 0) { String j...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/fe11f82bc6236dc6746a228a50d4bac6d467618e/LoadService.java/clean/src/org/jruby/runtime/load/LoadService.java
addPath(rubyDir + "site_ruby" + sep + Constants.RUBY_MAJOR_VERSION + sep + "java");
public void init(List additionalDirectories) { for (Iterator iter = additionalDirectories.iterator(); iter.hasNext();) { addPath((String) iter.next()); } // wrap in try/catch for security exceptions in an applet try { if (runtime.getSafeLevel() == 0) { String j...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/fe11f82bc6236dc6746a228a50d4bac6d467618e/LoadService.java/clean/src/org/jruby/runtime/load/LoadService.java
public void init(List additionalDirectories) { for (Iterator iter = additionalDirectories.iterator(); iter.hasNext();) { addPath((String) iter.next()); } // wrap in try/catch for security exceptions in an applet try { if (runtime.getSafeLevel() == 0) { String j...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/fe11f82bc6236dc6746a228a50d4bac6d467618e/LoadService.java/clean/src/org/jruby/runtime/load/LoadService.java
} catch (AccessControlException accessEx) {
} catch (AccessControlException accessEx) {
public void init(List additionalDirectories) { for (Iterator iter = additionalDirectories.iterator(); iter.hasNext();) { addPath((String) iter.next()); } // wrap in try/catch for security exceptions in an applet try { if (runtime.getSafeLevel() == 0) { String j...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/fe11f82bc6236dc6746a228a50d4bac6d467618e/LoadService.java/clean/src/org/jruby/runtime/load/LoadService.java
} if (runtime.getSafeLevel() == 0) { addPath("."); }
}
public void init(List additionalDirectories) { for (Iterator iter = additionalDirectories.iterator(); iter.hasNext();) { addPath((String) iter.next()); } // wrap in try/catch for security exceptions in an applet try { if (runtime.getSafeLevel() == 0) { String j...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/fe11f82bc6236dc6746a228a50d4bac6d467618e/LoadService.java/clean/src/org/jruby/runtime/load/LoadService.java
throw runtime.newLoadError("No such file to load -- " + file);
library = findLibraryWithClassloaders(file); if (library == null) { throw runtime.newLoadError("No such file to load -- " + file); }
public void load(String file) { Library library = null; library = findLibrary(file); if (library == null) { throw runtime.newLoadError("No such file to load -- " + file); } try { library.load(runtime); } catch (IOException e) { throw...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/fe11f82bc6236dc6746a228a50d4bac6d467618e/LoadService.java/clean/src/org/jruby/runtime/load/LoadService.java
String filestr = suffixPattern.matcher(file).replaceAll("$1");
String filestr = allPattern.matcher(file).replaceAll("$1");
public boolean require(String file) { String filestr = suffixPattern.matcher(file).replaceAll("$1"); if (loadedFeaturesInternal.contains(filestr)) { return false; } smartLoad(filestr); return true; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/fe11f82bc6236dc6746a228a50d4bac6d467618e/LoadService.java/clean/src/org/jruby/runtime/load/LoadService.java
public boolean require(String file) { String filestr = suffixPattern.matcher(file).replaceAll("$1"); if (loadedFeaturesInternal.contains(filestr)) { return false; } smartLoad(filestr); return true; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/fe11f82bc6236dc6746a228a50d4bac6d467618e/LoadService.java/clean/src/org/jruby/runtime/load/LoadService.java
for (int i = 0; i < suffixes.length; i++) { library = findLibrary(file + suffixes[i]);
if (file.indexOf('.') >= 0) { Matcher matcher = null; if ((matcher = sourcePattern.matcher(file)).matches()) { extensionsToSearch = sourceSuffixes; file = matcher.group(1); } else if ((matcher = extensionPattern.matcher(file)).matches()) { extensionsToSearch = extensionSuffixes; file = matcher.group(1); } else {...
public void smartLoad(String file) { Library library = null; String loadName = file; // nothing yet, try suffixes for (int i = 0; i < suffixes.length; i++) { library = findLibrary(file + suffixes[i]); if (library != null) { loadName = file + s...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/fe11f82bc6236dc6746a228a50d4bac6d467618e/LoadService.java/clean/src/org/jruby/runtime/load/LoadService.java
loadName = file + suffixes[i];
loadName = file + extensionsToSearch[i];
public void smartLoad(String file) { Library library = null; String loadName = file; // nothing yet, try suffixes for (int i = 0; i < suffixes.length; i++) { library = findLibrary(file + suffixes[i]); if (library != null) { loadName = file + s...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/fe11f82bc6236dc6746a228a50d4bac6d467618e/LoadService.java/clean/src/org/jruby/runtime/load/LoadService.java
if(library == null) { library = findLibrary(file); if(library != null) { loadName = file;
if (library == null) { for (int i = 0; i < extensionsToSearch.length; i++) { library = findLibraryWithClassloaders(file + extensionsToSearch[i]); if (library != null) { loadName = file + extensionsToSearch[i]; break; }
public void smartLoad(String file) { Library library = null; String loadName = file; // nothing yet, try suffixes for (int i = 0; i < suffixes.length; i++) { library = findLibrary(file + suffixes[i]); if (library != null) { loadName = file + s...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/fe11f82bc6236dc6746a228a50d4bac6d467618e/LoadService.java/clean/src/org/jruby/runtime/load/LoadService.java
throw runtime.newLoadError("No such file to load -- " + file);
throw runtime.newLoadError("no such file to load -- " + file);
public void smartLoad(String file) { Library library = null; String loadName = file; // nothing yet, try suffixes for (int i = 0; i < suffixes.length; i++) { library = findLibrary(file + suffixes[i]); if (library != null) { loadName = file + s...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/fe11f82bc6236dc6746a228a50d4bac6d467618e/LoadService.java/clean/src/org/jruby/runtime/load/LoadService.java
try { loadedFeaturesInternal.add(file); loadedFeatures.add(runtime.newString(loadName)); library.load(runtime); } catch (IOException e) { loadedFeaturesInternal.remove(file); loadedFeatures.remove(runtime.newString(loadName)); throw runtime.newLoadError("IO error -- " + file);
synchronized (this) { try { loadedFeaturesInternal.add(file); loadedFeatures.add(runtime.newString(loadName)); library.load(runtime); } catch (IOException e) { loadedFeaturesInternal.remove(file); loadedFeatures.remove(runtime.newString(loadName)); throw runtime.newLoadError("IO error -- " + file); }
public void smartLoad(String file) { Library library = null; String loadName = file; // nothing yet, try suffixes for (int i = 0; i < suffixes.length; i++) { library = findLibrary(file + suffixes[i]); if (library != null) { loadName = file + s...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/fe11f82bc6236dc6746a228a50d4bac6d467618e/LoadService.java/clean/src/org/jruby/runtime/load/LoadService.java
for(int i=0,j=(all.length-1);i<j;i++) {
for(int i=0, j=(all.length-1); i<j; i++) {
private Library tryLoadExtension(Library library, String file) { // This code exploits the fact that all .jar files will be found for the JarredScript feature. // This is where the basic extension mechanism gets fixed Library oldLibrary = library; if(library == null || library instanceof...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/fe11f82bc6236dc6746a228a50d4bac6d467618e/LoadService.java/clean/src/org/jruby/runtime/load/LoadService.java
for(int i=0,j=last.length;i<j;i++) {
for(int i=0, j=last.length; i<j; i++) {
private Library tryLoadExtension(Library library, String file) { // This code exploits the fact that all .jar files will be found for the JarredScript feature. // This is where the basic extension mechanism gets fixed Library oldLibrary = library; if(library == null || library instanceof...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/fe11f82bc6236dc6746a228a50d4bac6d467618e/LoadService.java/clean/src/org/jruby/runtime/load/LoadService.java
private Library tryLoadExtension(Library library, String file) { // This code exploits the fact that all .jar files will be found for the JarredScript feature. // This is where the basic extension mechanism gets fixed Library oldLibrary = library; if(library == null || library instanceof...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/fe11f82bc6236dc6746a228a50d4bac6d467618e/LoadService.java/clean/src/org/jruby/runtime/load/LoadService.java
return new Object[4];
return new Object[6];
public Object[] getSelectItemListArray() { return new Object[4]; }
57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/36163213865d20118bce2335dd258c26a2a29846/ArticleSearchResultBean.java/buggy/src/java/com/idega/block/article/bean/ArticleSearchResultBean.java
values.add(getLocaleIdAsString()); values.add(getStatus());
public Object[] getValues() {// "Headline", "Published", "Author", "Status" List values = new ArrayList(); values.add(getHeadline()); values.add(getAuthor()); values.add(getSource()); values.add(getCreationDate()); return values.toArray(new Object[values.size()]); }
57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/36163213865d20118bce2335dd258c26a2a29846/ArticleSearchResultBean.java/buggy/src/java/com/idega/block/article/bean/ArticleSearchResultBean.java
start.clearLinkedTo(end); end.clearLinkedTo(start);
if (start != null) start.clearLinkedTo(end); if (end != null) end.clearLinkedTo(start);
public void clearLinks() { start.clearLinkedTo(end); end.clearLinkedTo(start); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/6dad47fbaa74e36fa3a3799bf802e22d4902205c/ParamLink.java/clean/SRC/org/openmicroscopy/shoola/agents/chainbuilder/piccolo/ParamLink.java
checkRoomsForTimeout();
private ChatManager() { chatContainer = new ChatContainer(); // Add a Message Handler SparkManager.getMessageEventManager().addMessageEventNotificationListener(this); SparkManager.getConnection().addPacketListener(new PacketListener() { public void processPacket(final Packet p...
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/93be14b35e2ec723a91a9660ce4217f9947cf7b5/ChatManager.java/clean/src/java/org/jivesoftware/spark/ChatManager.java
{ this.control = control; items = new HashMap(); }
{ this.control = control; items = new HashMap(); }
public ZoomMenuManager(ImageInspectorManager control) { this.control = control; items = new HashMap(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/c61e383c3ea1df4e7b870a5e40d70e12c9ce01f4/ZoomMenuManager.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/transform/zooming/ZoomMenuManager.java
{ int index = Integer.parseInt(e.getActionCommand()); Double value = (Double) inverseValues.get(new Integer(index)); if (value != null) control.setZoomLevel(value.doubleValue()); else throw new Error("Invalid Action ID "+index); }
{ int index = Integer.parseInt(e.getActionCommand()); Double value = (Double) inverseValues.get(new Integer(index)); if (value != null) control.setZoomLevel(value.doubleValue()); else throw new Error("Invalid Action ID "+index); }
public void actionPerformed(ActionEvent e) { int index = Integer.parseInt(e.getActionCommand()); Double value = (Double) inverseValues.get(new Integer(index)); if (value != null) control.setZoomLevel(value.doubleValue()); else throw new Error("Invalid Action ID "+index); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/c61e383c3ea1df4e7b870a5e40d70e12c9ce01f4/ZoomMenuManager.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/transform/zooming/ZoomMenuManager.java
{ item.setActionCommand(""+id); item.addActionListener(this); items.put(new Integer(id), item); }
{ item.setActionCommand(""+id); item.addActionListener(this); items.put(new Integer(id), item); }
void attachItemListener(AbstractButton item, int id) { item.setActionCommand(""+id); item.addActionListener(this); items.put(new Integer(id), item); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/c61e383c3ea1df4e7b870a5e40d70e12c9ce01f4/ZoomMenuManager.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/transform/zooming/ZoomMenuManager.java
if (getRuntime().getLoadService().autoload(name) != null) {
if (getRuntime().getLoadService().autoload(p.getName() + "::" + name) != null) {
private IRubyObject getConstantInner(String name, boolean exclude) { IRubyObject objectClass = getRuntime().getObject(); boolean retryForModule = false; RubyModule p = this; retry: while (true) { while (p != null) { IRubyObject constant = p.getConstantAt(name); ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/3cd87a03d9ff599871bd14f49c218d1045bca20b/RubyModule.java/clean/src/org/jruby/RubyModule.java
this.sourceFiles.put(classData.getSourceFileName(), packageData.getChild(classData.getSourceFileName()));
public void addClassData(ClassData classData) { String packageName = classData.getPackageName(); PackageData packageData = (PackageData)children.get(packageName); if (packageData == null) { packageData = new PackageData(packageName); // Each key is a package name, stored as an String object. // Each value is...
50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/c7179e693f89a314eb6898100456db755030dd92/ProjectData.java/buggy/cobertura/src/net/sourceforge/cobertura/coveragedata/ProjectData.java
public SortedSet getSourceFiles()
public Collection getSourceFiles()
public SortedSet getSourceFiles() { SortedSet sourceFiles = new TreeSet(); Iterator iter = this.children.values().iterator(); while (iter.hasNext()) { PackageData packageData = (PackageData)iter.next(); sourceFiles.addAll(packageData.getSourceFiles()); } return sourceFiles; }
50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/c7179e693f89a314eb6898100456db755030dd92/ProjectData.java/buggy/cobertura/src/net/sourceforge/cobertura/coveragedata/ProjectData.java
SortedSet sourceFiles = new TreeSet(); Iterator iter = this.children.values().iterator(); while (iter.hasNext()) { PackageData packageData = (PackageData)iter.next(); sourceFiles.addAll(packageData.getSourceFiles()); } return sourceFiles;
return this.sourceFiles.values();
public SortedSet getSourceFiles() { SortedSet sourceFiles = new TreeSet(); Iterator iter = this.children.values().iterator(); while (iter.hasNext()) { PackageData packageData = (PackageData)iter.next(); sourceFiles.addAll(packageData.getSourceFiles()); } return sourceFiles; }
50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/c7179e693f89a314eb6898100456db755030dd92/ProjectData.java/buggy/cobertura/src/net/sourceforge/cobertura/coveragedata/ProjectData.java
menu.add(createRootMenu());
createRootMenu();
private JMenu createFileMenu() { JMenu menu = new JMenu("File"); menu.setMnemonic(KeyEvent.VK_F); TreeViewerAction a = controller.getAction( TreeViewerControl.CREATE_TOP_CONTAINER); JMenuItem item = new JMenuItem(a); item.setText(a.getActionName()); ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/3b273af3a5320ab0a054540f14a3c299ff01de69/TreeViewerWin.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/view/TreeViewerWin.java
this.sourceFiles.put(classData.getSourceFileName(), packageData.getChild(classData.getSourceFileName()));
this.sourceFiles.put(classData.getSourceFileName(), packageData.getChild(classData .getSourceFileName()));
public void addClassData(ClassData classData) { String packageName = classData.getPackageName(); PackageData packageData = (PackageData)children.get(packageName); if (packageData == null) { packageData = new PackageData(packageName); // Each key is a package name, stored as an String object. // Each value is...
50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/55571e8b292791cc80dd02e2bed0dfd9f206376b/ProjectData.java/buggy/cobertura/src/net/sourceforge/cobertura/coveragedata/ProjectData.java
File dataFile = CoverageDataFileHandler.getDefaultDataFile(); if (dataFile.isFile()) { globalProjectData = CoverageDataFileHandler .loadCoverageData(dataFile); } if (globalProjectData == null) { System.out.println("Cobertura: Coverage data file " + dataFile.getAbsolutePath() + " either does not exist or is not rea...
initialize(); globalProjectData = new ProjectData();
public static ProjectData getGlobalProjectData() { if (globalProjectData != null) return globalProjectData; File dataFile = CoverageDataFileHandler.getDefaultDataFile(); // Read projectData from the serialized file. if (dataFile.isFile()) { //System.out.println("Cobertura: Loading global project data from " +...
50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/55571e8b292791cc80dd02e2bed0dfd9f206376b/ProjectData.java/buggy/cobertura/src/net/sourceforge/cobertura/coveragedata/ProjectData.java
for (Iterator iter = projectData.sourceFiles.keySet().iterator(); iter.hasNext();) { Object key = iter.next(); if (!this.sourceFiles.containsKey(key)) { this.sourceFiles.put(key, projectData.sourceFiles.get(key)); } }
for (Iterator iter = projectData.sourceFiles.keySet().iterator(); iter.hasNext();) { Object key = iter.next(); if (!this.sourceFiles.containsKey(key)) { this.sourceFiles.put(key, projectData.sourceFiles.get(key)); } }
public void merge(CoverageData coverageData) { super.merge(coverageData); ProjectData projectData = (ProjectData)coverageData; for (Iterator iter = projectData.sourceFiles.keySet().iterator(); iter.hasNext();) { Object key = iter.next(); if (!this.sourceFiles.containsKey(key)) { this.sourceFiles.put...
50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/55571e8b292791cc80dd02e2bed0dfd9f206376b/ProjectData.java/buggy/cobertura/src/net/sourceforge/cobertura/coveragedata/ProjectData.java
ProjectData projectData = getGlobalProjectData(); synchronized (projectData)
ProjectData projectDataToSave = globalProjectData; /* * The next statement is not necessary at the moment, because this method is only called * either at the very beginning or at the very end of a test. If the code is changed * to save more frequently, then this will become important. */ globalProjectData = new Proje...
public static void saveGlobalProjectData() { ProjectData projectData = getGlobalProjectData(); synchronized (projectData) { CoverageDataFileHandler.saveCoverageData(projectData, CoverageDataFileHandler.getDefaultDataFile()); } }
50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/55571e8b292791cc80dd02e2bed0dfd9f206376b/ProjectData.java/buggy/cobertura/src/net/sourceforge/cobertura/coveragedata/ProjectData.java
CoverageDataFileHandler.saveCoverageData(projectData, CoverageDataFileHandler.getDefaultDataFile());
Thread.sleep(1000);
public static void saveGlobalProjectData() { ProjectData projectData = getGlobalProjectData(); synchronized (projectData) { CoverageDataFileHandler.saveCoverageData(projectData, CoverageDataFileHandler.getDefaultDataFile()); } }
50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/55571e8b292791cc80dd02e2bed0dfd9f206376b/ProjectData.java/buggy/cobertura/src/net/sourceforge/cobertura/coveragedata/ProjectData.java
catch (InterruptedException e) { } File dataFile = CoverageDataFileHandler.getDefaultDataFile(); FileLocker lock = new FileLocker(dataFile); if (lock.lock()) { ProjectData datafileProjectData = loadCoverageDataFromDatafile(dataFile); if (datafileProjectData == null) { datafileProjectData = projectDataToSave; } else { ...
public static void saveGlobalProjectData() { ProjectData projectData = getGlobalProjectData(); synchronized (projectData) { CoverageDataFileHandler.saveCoverageData(projectData, CoverageDataFileHandler.getDefaultDataFile()); } }
50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/55571e8b292791cc80dd02e2bed0dfd9f206376b/ProjectData.java/buggy/cobertura/src/net/sourceforge/cobertura/coveragedata/ProjectData.java
mainContainer.add(p); mainContainer.add(WFUtil.getBreak());
p.getChildren().add(WFUtil.getBreak()); p.getChildren().add(WFUtil.getBreak());
public UIComponent getEditContainer() { WFUtilArticle localizer = WFUtilArticle.getWFUtilArticle(); String ref = ARTICLE_ITEM_BEAN_ID + ".";// String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); mainContainer.setId(ARTICLE_EDITOR_ID); WFErrorMessages em = new WFErrorMessag...
57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/fdb093b346b26ca405d1fd2c2138d5eb605ebade/EditArticleBlock.java/clean/src/java/com/idega/block/article/component/EditArticleBlock.java
p = WFPanelUtil.getPlainFormPanel(1);
public UIComponent getEditContainer() { WFUtilArticle localizer = WFUtilArticle.getWFUtilArticle(); String ref = ARTICLE_ITEM_BEAN_ID + ".";// String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); mainContainer.setId(ARTICLE_EDITOR_ID); WFErrorMessages em = new WFErrorMessag...
57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/fdb093b346b26ca405d1fd2c2138d5eb605ebade/EditArticleBlock.java/clean/src/java/com/idega/block/article/component/EditArticleBlock.java
p.getChildren().add(WFUtil.getText(" ")); UIComponent t = WFUtil.group(localizer.getHeaderTextVB("status"), WFUtil.getText(": ")); t.getChildren().add(WFUtil.getTextVB(ref + "status")); p.getChildren().add(t); p.getChildren().add(WFUtil.getText(" ")); p.getChildren().add(WFUtil.group(localizer.getHeaderTextVB("current_...
p.getChildren().add(WFUtil.group(localizer.getTextVB("status"), WFUtil.getText(":"))); p.getChildren().add(WFUtil.getTextVB(ref + "status")); p.getChildren().add(WFUtil.group(localizer.getTextVB("current_version"), WFUtil.getText(":"))); p.getChildren().add(WFUtil.getTextVB(ref + "versionId"));
public UIComponent getEditContainer() { WFUtilArticle localizer = WFUtilArticle.getWFUtilArticle(); String ref = ARTICLE_ITEM_BEAN_ID + ".";// String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); mainContainer.setId(ARTICLE_EDITOR_ID); WFErrorMessages em = new WFErrorMessag...
57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/fdb093b346b26ca405d1fd2c2138d5eb605ebade/EditArticleBlock.java/clean/src/java/com/idega/block/article/component/EditArticleBlock.java
mainContainer.add(p); mainContainer.add(WFUtil.getBreak());
p.getChildren().add(WFUtil.getBreak()); p.getChildren().add(WFUtil.getBreak());
public UIComponent getEditContainer() { WFUtilArticle localizer = WFUtilArticle.getWFUtilArticle(); String ref = ARTICLE_ITEM_BEAN_ID + ".";// String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); mainContainer.setId(ARTICLE_EDITOR_ID); WFErrorMessages em = new WFErrorMessag...
57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/fdb093b346b26ca405d1fd2c2138d5eb605ebade/EditArticleBlock.java/clean/src/java/com/idega/block/article/component/EditArticleBlock.java
p = WFPanelUtil.getFormPanel(2);
public UIComponent getEditContainer() { WFUtilArticle localizer = WFUtilArticle.getWFUtilArticle(); String ref = ARTICLE_ITEM_BEAN_ID + ".";// String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); mainContainer.setId(ARTICLE_EDITOR_ID); WFErrorMessages em = new WFErrorMessag...
57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/fdb093b346b26ca405d1fd2c2138d5eb605ebade/EditArticleBlock.java/clean/src/java/com/idega/block/article/component/EditArticleBlock.java
mainContainer.add(p);
public UIComponent getEditContainer() { WFUtilArticle localizer = WFUtilArticle.getWFUtilArticle(); String ref = ARTICLE_ITEM_BEAN_ID + ".";// String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); mainContainer.setId(ARTICLE_EDITOR_ID); WFErrorMessages em = new WFErrorMessag...
57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/fdb093b346b26ca405d1fd2c2138d5eb605ebade/EditArticleBlock.java/clean/src/java/com/idega/block/article/component/EditArticleBlock.java
mainContainer.add(p); mainContainer.add(WFUtil.getBreak());
p.getChildren().add(WFUtil.getBreak()); p.getChildren().add(WFUtil.getBreak());
public UIComponent getEditContainer() { WFUtilArticle localizer = WFUtilArticle.getWFUtilArticle(); String ref = ARTICLE_ITEM_BEAN_ID + ".";// String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); mainContainer.setId(ARTICLE_EDITOR_ID); WFErrorMessages em = new WFErrorMessag...
57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/fdb093b346b26ca405d1fd2c2138d5eb605ebade/EditArticleBlock.java/clean/src/java/com/idega/block/article/component/EditArticleBlock.java
p = WFPanelUtil.getPlainFormPanel(1);
public UIComponent getEditContainer() { WFUtilArticle localizer = WFUtilArticle.getWFUtilArticle(); String ref = ARTICLE_ITEM_BEAN_ID + ".";// String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); mainContainer.setId(ARTICLE_EDITOR_ID); WFErrorMessages em = new WFErrorMessag...
57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/fdb093b346b26ca405d1fd2c2138d5eb605ebade/EditArticleBlock.java/clean/src/java/com/idega/block/article/component/EditArticleBlock.java
HtmlCommandButton saveButton = WFUtil.getButtonVB(SAVE_ID, "save", this);
HtmlCommandButton saveButton = localizer.getButtonVB(SAVE_ID, "save");
public UIComponent getEditContainer() { WFUtilArticle localizer = WFUtilArticle.getWFUtilArticle(); String ref = ARTICLE_ITEM_BEAN_ID + ".";// String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); mainContainer.setId(ARTICLE_EDITOR_ID); WFErrorMessages em = new WFErrorMessag...
57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/fdb093b346b26ca405d1fd2c2138d5eb605ebade/EditArticleBlock.java/clean/src/java/com/idega/block/article/component/EditArticleBlock.java
controllers = new Controllers(this); listener = new Listener(controllers);
Dispatcher dispatcher = new Dispatcher(this); listener = new Listener(dispatcher);
public DisplayedDocument(Shell shell) { // Shell this.shell = shell; shell.setText("Koala Notes"); shell.setLayout(new FillLayout(SWT.VERTICAL)); // Document Note root = new Note("root", null, ""); document = new Document(root); // Controllers controllers = new Controllers(this); // Listener listene...
57508 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57508/18ce9cf33f3e06fda4addd57f5ae5c9423a990fb/DisplayedDocument.java/clean/trunk/src/de/berlios/koalanotes/display/DisplayedDocument.java
tree = new NoteTree(shell, sashForm, listener);
tree = new NoteTree(sashForm, listener);
public DisplayedDocument(Shell shell) { // Shell this.shell = shell; shell.setText("Koala Notes"); shell.setLayout(new FillLayout(SWT.VERTICAL)); // Document Note root = new Note("root", null, ""); document = new Document(root); // Controllers controllers = new Controllers(this); // Listener listene...
57508 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57508/18ce9cf33f3e06fda4addd57f5ae5c9423a990fb/DisplayedDocument.java/clean/trunk/src/de/berlios/koalanotes/display/DisplayedDocument.java
if (event==null) return null; if (!event.isLoaded()) return null; if (event.getTime()==null) return null;
if (event==null || !event.isLoaded() || event.getTime()==null) { return new Timestamp( new Date().getTime() ); }
protected Timestamp timeOfEvent( Event event ) { if (event==null) return null; if (!event.isLoaded()) return null; if (event.getTime()==null) return null; return new Timestamp( event.getTime().getTime() ); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/af34941053c1f949ddffc6dfb6138b54c60f81c1/DataObject.java/buggy/components/client/src/pojos/DataObject.java
iVisited.getBodyNode().accept(new CreateJumpTargetVisitor(newMethod));
CreateJumpTargetVisitor.setJumpTarget(newMethod, iVisited.getBodyNode());
private static IRubyObject evalInternal(ThreadContext context, Node node, IRubyObject self) { IRuby runtime = context.getRuntime(); bigloop: do { if (node == null) return runtime.getNil(); switch (node.nodeId) { case NodeTypes.ALIASNODE: { AliasN...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/bf9566bc66503df4ccccadc79d302823756a1ae4/EvaluationState.java/buggy/src/org/jruby/evaluator/EvaluationState.java
iVisited.getBodyNode().accept(new CreateJumpTargetVisitor(newMethod));
CreateJumpTargetVisitor.setJumpTarget(newMethod, iVisited.getBodyNode());
private static IRubyObject evalInternal(ThreadContext context, Node node, IRubyObject self) { IRuby runtime = context.getRuntime(); bigloop: do { if (node == null) return runtime.getNil(); switch (node.nodeId) { case NodeTypes.ALIASNODE: { AliasN...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/bf9566bc66503df4ccccadc79d302823756a1ae4/EvaluationState.java/buggy/src/org/jruby/evaluator/EvaluationState.java
assertTrue(new File(jsDir, "percentagesorttype.js").isFile());
assertTrue(new File(jsDir, "customsorttypes.js").isFile());
public static void testCopy() throws IOException { CopyFiles.copy(tmpDir); assertTrue(new File(tmpDir, "help.html").isFile()); assertTrue(new File(tmpDir, "index.html").isFile()); File cssDir = new File(tmpDir, "css"); assertTrue(cssDir.isDirectory()); assertTrue(new File(cssDir, "help.css").isFile()); assertTr...
50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/8aa2b024b47f24f410d25e5d8eb53673520a571e/CopyFilesTest.java/clean/cobertura/test/net/sourceforge/cobertura/reporting/html/files/CopyFilesTest.java
arrayClass.defineMethod("==", callbackFactory.getMethod(RubyArray.class, "equal", IRubyObject.class));
arrayClass.defineMethod("==", callbackFactory.getMethod(RubyArray.class, "array_op_equal", IRubyObject.class));
public static RubyClass createArrayClass(Ruby ruby) { RubyClass arrayClass = ruby.defineClass("Array", ruby.getClasses().getObjectClass()); arrayClass.includeModule(ruby.getModule("Enumerable")); CallbackFactory callbackFactory = ruby.callbackFactory(); arrayClass.defineSingletonMethod("...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/72f0d4f6effb0bc3fc4af34ad92e81593b8ff47a/RubyArray.java/buggy/src/org/jruby/RubyArray.java
arrayClass.defineMethod("===", callbackFactory.getMethod(RubyArray.class, "equal", IRubyObject.class));
arrayClass.defineMethod("===", callbackFactory.getMethod(RubyArray.class, "array_op_equal", IRubyObject.class));
public static RubyClass createArrayClass(Ruby ruby) { RubyClass arrayClass = ruby.defineClass("Array", ruby.getClasses().getObjectClass()); arrayClass.includeModule(ruby.getModule("Enumerable")); CallbackFactory callbackFactory = ruby.callbackFactory(); arrayClass.defineSingletonMethod("...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/72f0d4f6effb0bc3fc4af34ad92e81593b8ff47a/RubyArray.java/buggy/src/org/jruby/RubyArray.java
if (argc != 0) len = RubyNumeric.fix2long(args[0]);
if (argc != 0) { if (args[0] instanceof RubyNumeric) { len = RubyNumeric.fix2long(args[0]); } else if (args[0] instanceof RubyArray) { arrayInitializer = (RubyArray)args[0]; } }
public IRubyObject initialize(IRubyObject[] args) { int argc = argCount(args, 0, 2); long len = 0; if (argc != 0) len = RubyNumeric.fix2long(args[0]); modify(); if (len < 0) { throw new ArgumentError(getRuntime(), "negative array size"); } if (l...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/72f0d4f6effb0bc3fc4af34ad92e81593b8ff47a/RubyArray.java/buggy/src/org/jruby/RubyArray.java
IRubyObject obj = (argc == 2) ? args[1] : getRuntime().getNil(); Collections.fill(list, obj);
if (runtime.isBlockGiven()) { for (int i = 0; i < len; i++) { list.add(runtime.yield(new RubyFixnum(runtime, i))); } } else { IRubyObject obj = (argc == 2) ? args[1] : getRuntime().getNil(); list.addAll(Collections.nCopies((int)len, obj)); }
public IRubyObject initialize(IRubyObject[] args) { int argc = argCount(args, 0, 2); long len = 0; if (argc != 0) len = RubyNumeric.fix2long(args[0]); modify(); if (len < 0) { throw new ArgumentError(getRuntime(), "negative array size"); } if (l...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/72f0d4f6effb0bc3fc4af34ad92e81593b8ff47a/RubyArray.java/buggy/src/org/jruby/RubyArray.java
RubyClass arrayClass = getRuntime().getClasses().getArrayClass(); if (!other.isKindOf(arrayClass)) { throw new TypeError(getRuntime(), other, arrayClass); }
public IRubyObject op_and(IRubyObject other) { List ary1 = uniq(list); int len1 = ary1.size(); List ary2 = arrayValue(other).getList(); int len2 = ary2.size(); ArrayList ary3 = new ArrayList(len1); for (int i = 0; i < len1; i++) { IRubyObject obj = (IRubyObject) ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/72f0d4f6effb0bc3fc4af34ad92e81593b8ff47a/RubyArray.java/buggy/src/org/jruby/RubyArray.java
tsm.putImageData((Image)iter.next());
tsm.putImageData((ImageData)iter.next());
public void loadInto(DatasetData data, ThumbnailSourceModel tsm) { if(data == null || tsm == null) { // do nothing return; } List imageList; try { imageList = data.getImages(); } catch(DataException de) { ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/c398869c38ee45e9472e026b10f8c92555b7b882/DatasetLoader.java/clean/SRC/org/openmicroscopy/shoola/agents/browser/datamodel/DatasetLoader.java
public void putImageData(Image image)
public void putImageData(ImageData imageData)
public void putImageData(Image image) { if(image != null) { sourceMap.put(new Integer(image.getID()),image); } }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/c398869c38ee45e9472e026b10f8c92555b7b882/ThumbnailSourceModel.java/buggy/SRC/org/openmicroscopy/shoola/agents/browser/ThumbnailSourceModel.java
if(image != null)
if(imageData != null)
public void putImageData(Image image) { if(image != null) { sourceMap.put(new Integer(image.getID()),image); } }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/c398869c38ee45e9472e026b10f8c92555b7b882/ThumbnailSourceModel.java/buggy/SRC/org/openmicroscopy/shoola/agents/browser/ThumbnailSourceModel.java
sourceMap.put(new Integer(image.getID()),image);
sourceMap.put(new Integer(imageData.getID()),imageData);
public void putImageData(Image image) { if(image != null) { sourceMap.put(new Integer(image.getID()),image); } }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/c398869c38ee45e9472e026b10f8c92555b7b882/ThumbnailSourceModel.java/buggy/SRC/org/openmicroscopy/shoola/agents/browser/ThumbnailSourceModel.java
mockStateful.reset(); mockStateless.reset(); mockSession.reset(); mockFactory.reset(); mockTransaction.reset(); mockDataSource.reset(); mockConnection.reset(); mockInvocation.reset();
reset(mockStateful,mockStateless,mockSession,mockFactory,mockTransaction, mockDataSource,mockConnection,mockInvocation);
protected void tearDown() throws Exception { session = null; mockStateful.reset(); mockStateless.reset(); mockSession.reset(); mockFactory.reset(); mockTransaction.reset(); mockDataSource.reset(); mockConnection.reset(); mockInvocation.reset(); super.tearDown(); ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/609c3b121ade2206fddbd11591ffc1531a099c5d/SessionHandlerMockHibernateTest.java/clean/components/server/test/ome/server/utests/handlers/SessionHandlerMockHibernateTest.java
*/ moduleClass.defineMethod("remove_method", getMethod("remove_method", RubyObject.class, false)); moduleClass.defineMethod("undef_method", getMethod("undef_method", RubyObject.class, false)); moduleClass.defineMethod("alias_method", getMethod("alias_method", RubyObject.class, RubyObject.class));
*/ moduleClass.defineMethod("remove_method", getMethod("remove_method", RubyObject.class, false)); moduleClass.defineMethod("undef_method", getMethod("undef_method", RubyObject.class, false)); moduleClass.defineMethod("alias_method", getMethod("alias_method", RubyObject.class, RubyObject.class));
public static void initModuleClass(RubyClass moduleClass) { moduleClass.defineMethod("===", getMethod("op_eqq", RubyObject.class, false)); moduleClass.defineMethod("<=>", getMethod("op_cmp", RubyObject.class, false)); moduleClass.defineMethod("<", getMethod("op_lt", RubyObject.class, false)); ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/0a7181933af700ea8025a4197f3a5ebcc08333c3/RbModule.java/clean/org/jruby/core/RbModule.java
setRolloverEnabled(true);
AnnotatedButton(ImageNode node) { if (node == null) throw new IllegalArgumentException("No node"); parentNode = node; setBorder(BorderFactory.createEmptyBorder()); //No border around icon. setMargin(new Insets(0, 0, 0, 0));//Just to make sure button sz=icon sz. setOpaque(false); ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/58be91fb535c971d0bef1fde12344382b140273b/AnnotatedButton.java/clean/SRC/org/openmicroscopy/shoola/agents/hiviewer/browser/AnnotatedButton.java
setRolloverIcon(im.getIcon(IconManager.ANNOTATED_SMALL_OVER));
AnnotatedButton(ImageNode node) { if (node == null) throw new IllegalArgumentException("No node"); parentNode = node; setBorder(BorderFactory.createEmptyBorder()); //No border around icon. setMargin(new Insets(0, 0, 0, 0));//Just to make sure button sz=icon sz. setOpaque(false); ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/58be91fb535c971d0bef1fde12344382b140273b/AnnotatedButton.java/clean/SRC/org/openmicroscopy/shoola/agents/hiviewer/browser/AnnotatedButton.java
final Frame currentFrame = runtime.getCurrentFrame(); final Block currentBlock = runtime.getBlockStack().getCurrent();
private static RubyThread startThread(final IRubyObject recv, final IRubyObject[] args, boolean callInit) { final Ruby runtime = recv.getRuntime(); if (! runtime.isBlockGiven()) { throw new ThreadError(runtime, "must be called with a block"); } final RubyThread result = new Ru...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1ceedf02ac15d7325cfcf505ca74f35c5bc4a258/RubyThread.java/clean/org/jruby/RubyThread.java
private static RubyThread startThread(final IRubyObject recv, final IRubyObject[] args, boolean callInit) { final Ruby runtime = recv.getRuntime(); if (! runtime.isBlockGiven()) { throw new ThreadError(runtime, "must be called with a block"); } final RubyThread result = new Ru...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1ceedf02ac15d7325cfcf505ca74f35c5bc4a258/RubyThread.java/clean/org/jruby/RubyThread.java
public void run() { ThreadContext context = runtime.getCurrentContext(); context.getFrameStack().push(currentFrame); context.getBlockStack().setCurrent(currentBlock); context.setCurrentThread(result); proc.call(args); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1ceedf02ac15d7325cfcf505ca74f35c5bc4a258/RubyThread.java/clean/org/jruby/RubyThread.java
Thread.sleep((long) (seconds.getDoubleValue() * 1000.0));
Thread.sleep(milliseconds);
public static IRubyObject sleep(IRubyObject recv, RubyNumeric seconds) { try { Thread.sleep((long) (seconds.getDoubleValue() * 1000.0)); } catch (InterruptedException iExcptn) { } return recv; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/fe758a7c8ed9be7b679b8aef938333d27e876035/KernelModule.java/clean/src/org/jruby/KernelModule.java
return recv;
return RubyFixnum.newFixnum(recv.getRuntime(), Math.round(((double)(System.currentTimeMillis() - currentTime))/1000));
public static IRubyObject sleep(IRubyObject recv, RubyNumeric seconds) { try { Thread.sleep((long) (seconds.getDoubleValue() * 1000.0)); } catch (InterruptedException iExcptn) { } return recv; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/fe758a7c8ed9be7b679b8aef938333d27e876035/KernelModule.java/clean/src/org/jruby/KernelModule.java
JavaObject javaArgument = (JavaObject) argument; if (javaArgument.isJavaNull()) {
argument = ((JavaObject) argument).getValue(); if (argument == null) {
public static Object convertArgument(Object argument, Class parameterType) { if (argument instanceof JavaObject) { JavaObject javaArgument = (JavaObject) argument; if (javaArgument.isJavaNull()) { return null; } argument = javaArgument.getValue(); ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/206c7b0b7eb0c58d4a00f4aaa94c9013ad204adc/JavaUtil.java/buggy/src/org/jruby/javasupport/JavaUtil.java
argument = javaArgument.getValue();
public static Object convertArgument(Object argument, Class parameterType) { if (argument instanceof JavaObject) { JavaObject javaArgument = (JavaObject) argument; if (javaArgument.isJavaNull()) { return null; } argument = javaArgument.getValue(); ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/206c7b0b7eb0c58d4a00f4aaa94c9013ad204adc/JavaUtil.java/buggy/src/org/jruby/javasupport/JavaUtil.java
private void addInstrumentation(File file)
private void addInstrumentation(FileInfo fileInfo)
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]); } }
50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/f21d7d6c791a9d50e30e19d77af0c8b3f2897c6c/Main.java/clean/cobertura/src/net/sourceforge/cobertura/instrument/Main.java
if (isClass(file))
if (fileInfo.isClass() && shouldInstrument(fileInfo.pathname))
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]); } }
50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/f21d7d6c791a9d50e30e19d77af0c8b3f2897c6c/Main.java/clean/cobertura/src/net/sourceforge/cobertura/instrument/Main.java
addInstrumentationToSingleClass(file);
addInstrumentationToSingleClass(fileInfo);
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]); } }
50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/f21d7d6c791a9d50e30e19d77af0c8b3f2897c6c/Main.java/clean/cobertura/src/net/sourceforge/cobertura/instrument/Main.java
else if (file.isDirectory())
else if (fileInfo.isDirectory())
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]); } }
50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/f21d7d6c791a9d50e30e19d77af0c8b3f2897c6c/Main.java/clean/cobertura/src/net/sourceforge/cobertura/instrument/Main.java
File[] contents = file.listFiles();
String[] contents = fileInfo.list();
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]); } }
50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/f21d7d6c791a9d50e30e19d77af0c8b3f2897c6c/Main.java/clean/cobertura/src/net/sourceforge/cobertura/instrument/Main.java
addInstrumentation(contents[i]);
{ File relativeFile = new File(fileInfo.pathname, contents[i]); FileInfo relativeFileInfo = new FileInfo(fileInfo.baseDir, relativeFile.toString()); addInstrumentation(relativeFileInfo); }
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]); } }
50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/f21d7d6c791a9d50e30e19d77af0c8b3f2897c6c/Main.java/clean/cobertura/src/net/sourceforge/cobertura/instrument/Main.java
if (isClass(entry))
if (isClass(entry) && shouldInstrument(entry.getName()))
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/f21d7d6c791a9d50e30e19d77af0c8b3f2897c6c/Main.java/clean/cobertura/src/net/sourceforge/cobertura/instrument/Main.java
private static boolean isClass(File file)
private static boolean isClass(ZipEntry entry)
private static boolean isClass(File file) { return file.getName().endsWith(".class"); }
50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/f21d7d6c791a9d50e30e19d77af0c8b3f2897c6c/Main.java/clean/cobertura/src/net/sourceforge/cobertura/instrument/Main.java
return file.getName().endsWith(".class");
return entry.getName().endsWith(".class");
private static boolean isClass(File file) { return file.getName().endsWith(".class"); }
50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/f21d7d6c791a9d50e30e19d77af0c8b3f2897c6c/Main.java/clean/cobertura/src/net/sourceforge/cobertura/instrument/Main.java
String regex = args[++i]; try { Perl5Compiler pc = new Perl5Compiler(); this.ignoreRegexes.add(pc.compile(regex)); } catch (MalformedPatternException e) { logger.warn("The regular expression " + regex + " is invalid: " + e.getLocalizedMessage()); }
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/f21d7d6c791a9d50e30e19d77af0c8b3f2897c6c/Main.java/clean/cobertura/src/net/sourceforge/cobertura/instrument/Main.java
else { filePaths.add(new File(baseDir, args[i]));
else if (args[i].equals("--includeClasses")) { addRegex(includeClassesRegexes, args[++i]); } else if (args[i].equals("--excludeClasses")) { addRegex(excludeClassesRegexes, args[++i]); } else { FileInfo fileInfo = new FileInfo(baseDir, args[i]); filePaths.add(fileInfo);
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/f21d7d6c791a9d50e30e19d77af0c8b3f2897c6c/Main.java/clean/cobertura/src/net/sourceforge/cobertura/instrument/Main.java
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/f21d7d6c791a9d50e30e19d77af0c8b3f2897c6c/Main.java/clean/cobertura/src/net/sourceforge/cobertura/instrument/Main.java
+ (filePaths.size() == 1 ? "class" : "classes")
+ (filePaths.size() == 1 ? "file" : "files")
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/f21d7d6c791a9d50e30e19d77af0c8b3f2897c6c/Main.java/clean/cobertura/src/net/sourceforge/cobertura/instrument/Main.java
while (iter.hasNext()) { File file = (File)iter.next(); if (isArchive(file)) { addInstrumentationToArchive(file); } else { addInstrumentation(file);
while (iter.hasNext()) { FileInfo fileInfo = (FileInfo)iter.next(); if (fileInfo.isArchive()) { addInstrumentationToArchive(fileInfo); } else { addInstrumentation(fileInfo);
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/f21d7d6c791a9d50e30e19d77af0c8b3f2897c6c/Main.java/clean/cobertura/src/net/sourceforge/cobertura/instrument/Main.java
public LogFile(String file, String format, Properties levels, boolean trace)
public LogFile(String file, String format, String defaultLevel, Properties levels, boolean trace)
public LogFile(String file, String format, Properties levels, boolean trace) throws IOException { this(((file != null) ? new PrintStream(new FileOutputStream(file,true)) : System.err), format, levels, trace); }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/4f312fd00a74365a2671f796aeebcfbe9888b8cc/LogFile.java/buggy/webmacro/src/org/webmacro/util/LogFile.java
this(((file != null) ?
this(file, ((file != null) ?
public LogFile(String file, String format, Properties levels, boolean trace) throws IOException { this(((file != null) ? new PrintStream(new FileOutputStream(file,true)) : System.err), format, levels, trace); }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/4f312fd00a74365a2671f796aeebcfbe9888b8cc/LogFile.java/buggy/webmacro/src/org/webmacro/util/LogFile.java
format, levels, trace);
format, defaultLevel, levels, trace);
public LogFile(String file, String format, Properties levels, boolean trace) throws IOException { this(((file != null) ? new PrintStream(new FileOutputStream(file,true)) : System.err), format, levels, trace); }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/4f312fd00a74365a2671f796aeebcfbe9888b8cc/LogFile.java/buggy/webmacro/src/org/webmacro/util/LogFile.java
level = (String) _levels.getProperty("*");
level = _defaultLevel;
public void attach(LogSource l) { String name = l.getName(); String level = _levels.getProperty(name); if (level == null) { level = (String) _levels.getProperty("*"); } l.addTarget(this, level); }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/4f312fd00a74365a2671f796aeebcfbe9888b8cc/LogFile.java/buggy/webmacro/src/org/webmacro/util/LogFile.java
return Collections.EMPTY_LIST;
return EMPTY_LIST;
public List childNodes() { return Collections.EMPTY_LIST; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/b1293eda8454686e846e2a9837b348e2983bb423/NthRefNode.java/buggy/src/org/jruby/ast/NthRefNode.java
String[] ls = s.split(":");
String[] ls = s.split(java.io.File.pathSeparator);
private void processArgument() { String argument = arguments[argumentIndex]; FOR : for (characterIndex = 1; characterIndex < argument.length(); characterIndex++) { switch (argument.charAt(characterIndex)) { case 'h' : main.printUsage(); s...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/e4905982a81424922852e33d8165887ff6ada056/CommandlineParser.java/clean/src/org/jruby/util/CommandlineParser.java
if (!name.startsWith("/")) name = "/" + name;
public URL getResource(String name) { try { URL u = _servletContext.getResource(name); if (u != null && u.getProtocol().equals("file")) { File f = new File(u.getFile()); if (!f.exists()) u = null; } if (u == null) u = _servletClassLoade...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/3636b47aac97eb53b8cc68ff37df9acc5567fc23/Servlet22Broker.java/clean/webmacro/src/org/webmacro/servlet/Servlet22Broker.java
public ZoomBar(ToolBar tbContainer, Registry registry,
public ZoomBar(Registry registry,
public ZoomBar(ToolBar tbContainer, Registry registry, ImageInspectorManager mng, double magFactor) { this.registry = registry; this.tbContainer = tbContainer; initTxtWidth(); initZoomComponents(magFactor); manager = new ZoomBarManager(this, mng, magFactor); manager.attachListeners(); buildT...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/c61e383c3ea1df4e7b870a5e40d70e12c9ce01f4/ZoomBar.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/transform/zooming/ZoomBar.java
{ this.registry = registry; this.tbContainer = tbContainer; initTxtWidth(); initZoomComponents(magFactor); manager = new ZoomBarManager(this, mng, magFactor); manager.attachListeners(); buildToolBar(); }
{ this.registry = registry; initTxtWidth(); initZoomComponents(magFactor); manager = new ZoomBarManager(this, mng, magFactor); manager.attachListeners(); buildGUI(); }
public ZoomBar(ToolBar tbContainer, Registry registry, ImageInspectorManager mng, double magFactor) { this.registry = registry; this.tbContainer = tbContainer; initTxtWidth(); initZoomComponents(magFactor); manager = new ZoomBarManager(this, mng, magFactor); manager.attachListeners(); buildT...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/c61e383c3ea1df4e7b870a5e40d70e12c9ce01f4/ZoomBar.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/transform/zooming/ZoomBar.java