rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
OMEModel o = (OMEModel) session.load(klazz,id); BaseModelUtils u = o.getUtils(); return o;
Criteria c = session.createCriteria(klazz); c.add(Expression.ilike("name",name,MatchMode.ANYWHERE)); return c.uniqueResult();
public Object doInHibernate(Session session) throws HibernateException { OMEModel o = (OMEModel) session.load(klazz,id); BaseModelUtils u = o.getUtils(); return o; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/00ef5f18481d04aa649d8ea20819b4b7bb9c2f28/GenericDaoHibernate.java/buggy/components/server/src/org/openmicroscopy/omero/logic/GenericDaoHibernate.java
Criteria c = session.createCriteria(klazz); c.add(Expression.ilike("name",name,MatchMode.ANYWHERE)); return c.uniqueResult();
Criteria c = session.createCriteria(example.getClass()); c.add(Example.create(example)); return c.list();
public Object doInHibernate(Session session) throws HibernateException { Criteria c = session.createCriteria(klazz); c.add(Expression.ilike("name",name,MatchMode.ANYWHERE)); return c.uniqueResult(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/00ef5f18481d04aa649d8ea20819b4b7bb9c2f28/GenericDaoHibernate.java/buggy/components/server/src/org/openmicroscopy/omero/logic/GenericDaoHibernate.java
for (Object o : objects){ session.saveOrUpdate(o); } return null;
OMEModel o = (OMEModel) session.load(klazz,id); BaseModelUtils u = o.getUtils(); return o;
public Object doInHibernate(Session session) throws HibernateException { for (Object o : objects){ session.saveOrUpdate(o); } return null; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/00ef5f18481d04aa649d8ea20819b4b7bb9c2f28/GenericDaoHibernate.java/buggy/components/server/src/org/openmicroscopy/omero/logic/GenericDaoHibernate.java
return newBignum(input.getRuby(), value);
return newBignum(input.getRuntime(), value);
public static RubyBignum unmarshalFrom(UnmarshalStream input) throws IOException { int signum = (input.readUnsignedByte() == '+' ? 1 : -1); int shortLength = input.unmarshalInt(); byte[] digits = new byte[shortLength * 2]; for (int i = digits.length - 1; i >= 0; i--) { digits[...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f235ab756f32ea9496f8f880066b46ad95ebb692/RubyBignum.java/clean/org/jruby/RubyBignum.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/ZArrayNode.java/clean/src/org/jruby/ast/ZArrayNode.java
FastWriter fw = new FastWriter(os, "UTF8");
FastWriter fw = new FastWriter(os, context.getEncoding());
final public Object evaluate(Context context) throws ContextException { try { ByteArrayOutputStream os = new ByteArrayOutputStream(256); FastWriter fw = new FastWriter(os, "UTF8"); write(fw,context); fw.flush(); return os.toString("UTF8"); } catch(IOException ...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/9dc4324fb914abcbf2ec188e4eb77b1bf503f330/ParseDirective.java/buggy/webmacro/src/org/webmacro/engine/ParseDirective.java
return os.toString("UTF8");
return os.toString(context.getEncoding());
final public Object evaluate(Context context) throws ContextException { try { ByteArrayOutputStream os = new ByteArrayOutputStream(256); FastWriter fw = new FastWriter(os, "UTF8"); write(fw,context); fw.flush(); return os.toString("UTF8"); } catch(IOException ...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/9dc4324fb914abcbf2ec188e4eb77b1bf503f330/ParseDirective.java/buggy/webmacro/src/org/webmacro/engine/ParseDirective.java
public void setColumnNames(String[] colNames){ _colNames = colNames; }
public void setColumnNames(String[] colNames){ if (_caseSensitive){ _colNames = colNames; } else { _colNames = new String[colNames.length]; for (int i=0; i<colNames.length; i++){ _colNames[i] = colNames[i].toUpperCase(); } } }
public void setColumnNames(String[] colNames){ _colNames = colNames; }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5729b41ccfce450fabc642c0d322460672dd0ddb/SimpleDataTable.java/buggy/contrib/DataTable/org/webmacro/datatable/SimpleDataTable.java
setFolderLocation(null);
public void clear() { super.clear(); setHeadline(null); setTeaser(null); setBody(null); setAuthor(null); setSource(null); setComment(null); setImages(null); setFilename(null);// setFolderLocation(null); _isUpdated = false; }
57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/7493a23b4d95bba0468c9c8438a4f930b908ebf1/ArticleItemBean.java/clean/src/java/com/idega/block/article/bean/ArticleItemBean.java
tryPublish();
public Boolean storeArticle() { try { store(); }catch(ArticleStoreException e) { return new Boolean(false); } return new Boolean(true); }
57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/7493a23b4d95bba0468c9c8438a4f930b908ebf1/ArticleItemBean.java/clean/src/java/com/idega/block/article/bean/ArticleItemBean.java
if (pixelSizeX <= 0)
if (pixelSizeX < 0)
public PixelsDimensions(int sizeX, int sizeY, int sizeZ, int sizeW, int sizeT, double pixelSizeX, double pixelSizeY, double pixelSizeZ) { if (sizeX <= 0 || sizeY <= 0 || sizeZ <= 0) throw new IllegalArgumentException( "Spatial dimensions must be positive."); if (sizeW < 1) ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/79f5ec9546333e90817b776c99deb818af0b588c/PixelsDimensions.java/clean/SRC/org/openmicroscopy/shoola/env/rnd/metadata/PixelsDimensions.java
if (pixelSizeY <= 0)
if (pixelSizeY < 0)
public PixelsDimensions(int sizeX, int sizeY, int sizeZ, int sizeW, int sizeT, double pixelSizeX, double pixelSizeY, double pixelSizeZ) { if (sizeX <= 0 || sizeY <= 0 || sizeZ <= 0) throw new IllegalArgumentException( "Spatial dimensions must be positive."); if (sizeW < 1) ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/79f5ec9546333e90817b776c99deb818af0b588c/PixelsDimensions.java/clean/SRC/org/openmicroscopy/shoola/env/rnd/metadata/PixelsDimensions.java
if (pixelSizeZ <= 0)
if (pixelSizeZ < 0)
public PixelsDimensions(int sizeX, int sizeY, int sizeZ, int sizeW, int sizeT, double pixelSizeX, double pixelSizeY, double pixelSizeZ) { if (sizeX <= 0 || sizeY <= 0 || sizeZ <= 0) throw new IllegalArgumentException( "Spatial dimensions must be positive."); if (sizeW < 1) ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/79f5ec9546333e90817b776c99deb818af0b588c/PixelsDimensions.java/clean/SRC/org/openmicroscopy/shoola/env/rnd/metadata/PixelsDimensions.java
ProviderManager.addIQProvider(Gateway.ELEMENT_NAME, Gateway.NAMESPACE, new Gateway.Provider());
public void initialize() { SwingWorker thread = new SwingWorker() { public Object construct() { try { populateTransports(SparkManager.getConnection()); } catch (Exception e) { Log.error(e); return...
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/6c0051f92a99737d42226d1e696824d21ec0dcd2/GatewayPlugin.java/clean/src/java/org/jivesoftware/sparkimpl/plugin/gateways/GatewayPlugin.java
Presence presence = statusBar.getPresence();
Presence oldPresence = statusBar.getPresence(); Presence presence = new Presence(oldPresence.getType(), oldPresence.getStatus(), oldPresence.getPriority(), oldPresence.getMode());
public GatewayButton(final Transport transport) { setLayout(new GridBagLayout()); setOpaque(false); this.transport = transport; final StatusBar statusBar = SparkManager.getWorkspace().getStatusBar(); final JPanel commandPanel = statusBar.getCommandPanel(); button.setIcon(tr...
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/65023340f7287fee8d2f1535446bf62c3ed50749/GatewayButton.java/buggy/src/java/org/jivesoftware/sparkimpl/plugin/gateways/GatewayButton.java
if (name.startsWith("jar:")) { try { return new LoadServiceResource(new URL(name), name); } catch (MalformedURLException e) { throw runtime.newIOErrorFromException(e); }
if (name.startsWith("jar:")) { try { return new LoadServiceResource(new URL(name), name); } catch (MalformedURLException e) { throw runtime.newIOErrorFromException(e);
private LoadServiceResource findFile(String name) { // try { if (name.startsWith("jar:")) { try { return new LoadServiceResource(new URL(name), name); } catch (MalformedURLException e) { throw runtime.newIOErrorFromExceptio...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d38821551a58969cd2593b463d93df5f32bf3c14/LoadService.java/clean/src/org/jruby/runtime/load/LoadService.java
try {
private LoadServiceResource findFile(String name) { // try { if (name.startsWith("jar:")) { try { return new LoadServiceResource(new URL(name), name); } catch (MalformedURLException e) { throw runtime.newIOErrorFromExceptio...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d38821551a58969cd2593b463d93df5f32bf3c14/LoadService.java/clean/src/org/jruby/runtime/load/LoadService.java
ClassLoader classLoader = runtime.getJavaSupport().getJavaClassLoader(); String xname = name.replace('\\', '/'); if (xname.charAt(0) == '/') { URL loc = classLoader.getResource(xname);
} catch (AccessControlException accessEx) { } catch (IllegalArgumentException illArgEx) { }
private LoadServiceResource findFile(String name) { // try { if (name.startsWith("jar:")) { try { return new LoadServiceResource(new URL(name), name); } catch (MalformedURLException e) { throw runtime.newIOErrorFromExceptio...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d38821551a58969cd2593b463d93df5f32bf3c14/LoadService.java/clean/src/org/jruby/runtime/load/LoadService.java
if (isRequireable(loc)) { return new LoadServiceResource(loc, loc.getPath());
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()); } } for (Iterator pathIter = loadPath.iterator(); p...
private LoadServiceResource findFile(String name) { // try { if (name.startsWith("jar:")) { try { return new LoadServiceResource(new URL(name), name); } catch (MalformedURLException e) { throw runtime.newIOErrorFromExceptio...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d38821551a58969cd2593b463d93df5f32bf3c14/LoadService.java/clean/src/org/jruby/runtime/load/LoadService.java
} for (Iterator pathIter = loadPath.iterator(); pathIter.hasNext();) { String entry = pathIter.next().toString(); if (entry.startsWith("jar:")) { JarFile current = (JarFile)jarFiles.get(entry); if(null == current) { try { current = new JarFile(entry.substring(4)); jarFiles.put(entry,current); } catch (FileNotFoundExce...
if (current.getJarEntry(name) != null) { try { return new LoadServiceResource(new URL(entry + name), entry + name); } catch (MalformedURLException e) { throw runtime.newIOErrorFromException(e);
private LoadServiceResource findFile(String name) { // try { if (name.startsWith("jar:")) { try { return new LoadServiceResource(new URL(name), name); } catch (MalformedURLException e) { throw runtime.newIOErrorFromExceptio...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d38821551a58969cd2593b463d93df5f32bf3c14/LoadService.java/clean/src/org/jruby/runtime/load/LoadService.java
if (current.getJarEntry(name) != null) { try { return new LoadServiceResource(new URL(entry + name), entry + name); } catch (MalformedURLException e) { throw runtime.newIOErrorFromException(e); } } }
} }
private LoadServiceResource findFile(String name) { // try { if (name.startsWith("jar:")) { try { return new LoadServiceResource(new URL(name), name); } catch (MalformedURLException e) { throw runtime.newIOErrorFromExceptio...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d38821551a58969cd2593b463d93df5f32bf3c14/LoadService.java/clean/src/org/jruby/runtime/load/LoadService.java
try {
private LoadServiceResource findFile(String name) { // try { if (name.startsWith("jar:")) { try { return new LoadServiceResource(new URL(name), name); } catch (MalformedURLException e) { throw runtime.newIOErrorFromExceptio...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d38821551a58969cd2593b463d93df5f32bf3c14/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()); }
} catch (AccessControlException accessEx) { } catch (IllegalArgumentException illArgEx) {
private LoadServiceResource findFile(String name) { // try { if (name.startsWith("jar:")) { try { return new LoadServiceResource(new URL(name), name); } catch (MalformedURLException e) { throw runtime.newIOErrorFromExceptio...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d38821551a58969cd2593b463d93df5f32bf3c14/LoadService.java/clean/src/org/jruby/runtime/load/LoadService.java
URL loc = classLoader.getResource(xname);
URL loc = classLoader.getResource(entry.replace('\\', '/') + "/" + xname);
private LoadServiceResource findFile(String name) { // try { if (name.startsWith("jar:")) { try { return new LoadServiceResource(new URL(name), name); } catch (MalformedURLException e) { throw runtime.newIOErrorFromExceptio...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d38821551a58969cd2593b463d93df5f32bf3c14/LoadService.java/clean/src/org/jruby/runtime/load/LoadService.java
return isRequireable(loc) ? new LoadServiceResource(loc, loc.getPath()) : null;
if (isRequireable(loc)) { return new LoadServiceResource(loc, loc.getPath()); } } URL loc = classLoader.getResource(xname); return isRequireable(loc) ? new LoadServiceResource(loc, loc.getPath()) : null;
private LoadServiceResource findFile(String name) { // try { if (name.startsWith("jar:")) { try { return new LoadServiceResource(new URL(name), name); } catch (MalformedURLException e) { throw runtime.newIOErrorFromExceptio...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d38821551a58969cd2593b463d93df5f32bf3c14/LoadService.java/clean/src/org/jruby/runtime/load/LoadService.java
if (runtime.getSafeLevel() == 0) { String jrubyLib = System.getProperty("jruby.lib"); if (jrubyLib != null) { addPath(jrubyLib); } }
public void init(List additionalDirectories) { for (Iterator iter = additionalDirectories.iterator(); iter.hasNext();) { addPath((String) iter.next()); } if (runtime.getSafeLevel() == 0) { String jrubyLib = System.getProperty("jruby.lib"); if (jrubyLib != null) { addPath...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d38821551a58969cd2593b463d93df5f32bf3c14/LoadService.java/clean/src/org/jruby/runtime/load/LoadService.java
String jrubyHome = System.getProperty("jruby.home"); if (jrubyHome != null) { char sep = '/'; String rubyDir = jrubyHome + sep + "lib" + sep + "ruby" + sep; addPath(rubyDir + "site_ruby" + sep + Constants.RUBY_MAJOR_VERSION); addPath(rubyDir + "site_ruby" + sep + Constants.RUBY_MAJOR_VERSION + sep + "java"); addPath(r...
try { if (runtime.getSafeLevel() == 0) { String jrubyLib = System.getProperty("jruby.lib"); if (jrubyLib != null) { addPath(jrubyLib); } } String jrubyHome = System.getProperty("jruby.home"); if (jrubyHome != null) { char sep = '/'; String rubyDir = jrubyHome + sep + "lib" + sep + "ruby" + sep; addPath(rubyDir + "si...
public void init(List additionalDirectories) { for (Iterator iter = additionalDirectories.iterator(); iter.hasNext();) { addPath((String) iter.next()); } if (runtime.getSafeLevel() == 0) { String jrubyLib = System.getProperty("jruby.lib"); if (jrubyLib != null) { addPath...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d38821551a58969cd2593b463d93df5f32bf3c14/LoadService.java/clean/src/org/jruby/runtime/load/LoadService.java
loc.openConnection(); return true;
loc.openConnection(); return true;
private boolean isRequireable(URL loc) { if (loc != null) { if (loc.getProtocol().equals("file") && new java.io.File(loc.getFile()).isDirectory()) { return false; } try { loc.openConnection(); return true; } catch (Exc...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d38821551a58969cd2593b463d93df5f32bf3c14/LoadService.java/clean/src/org/jruby/runtime/load/LoadService.java
NormalizedFile file = new NormalizedFile(path.getValue());
NormalizedFile file = new NormalizedFile(path.toString());
private static NormalizedFile newFile(RubyString path) { NormalizedFile file = new NormalizedFile(path.getValue()); if (!file.isAbsolute()) { file = new NormalizedFile(path.getRuntime().getCurrentDirectory(), path.getValue()); } try { file = (NormalizedFile)file.getCanonicalFile(...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9f2efc63a858fa0507245b207025eab027840a04/RubyFileTest.java/buggy/src/org/jruby/RubyFileTest.java
file = new NormalizedFile(path.getRuntime().getCurrentDirectory(), path.getValue());
file = new NormalizedFile(path.getRuntime().getCurrentDirectory(), path.toString());
private static NormalizedFile newFile(RubyString path) { NormalizedFile file = new NormalizedFile(path.getValue()); if (!file.isAbsolute()) { file = new NormalizedFile(path.getRuntime().getCurrentDirectory(), path.getValue()); } try { file = (NormalizedFile)file.getCanonicalFile(...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9f2efc63a858fa0507245b207025eab027840a04/RubyFileTest.java/buggy/src/org/jruby/RubyFileTest.java
throw recv.getRuntime().newErrnoENOENTError("No such file: " + filename.getValue());
throw recv.getRuntime().newErrnoENOENTError("No such file: " + filename);
public static IRubyObject size(IRubyObject recv, RubyString filename) { NormalizedFile file = newFile(filename); if (!file.exists()) { throw recv.getRuntime().newErrnoENOENTError("No such file: " + filename.getValue()); } return filename.getRuntime().newFixnum(file.len...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9f2efc63a858fa0507245b207025eab027840a04/RubyFileTest.java/buggy/src/org/jruby/RubyFileTest.java
String version = SpringVersion.getVersion();
String version = "2.0"; try { Class spring20Clazz = Class.forName("org.springframework.core.AttributeAccessorSupport"); version = "2.0"; } catch(ClassNotFoundException e) { version = "1.2.8"; }
public static XmlBeanDefinitionReader createBeanDefinitionReader( SpringApplicationContext applicationContext, BeanDefinitionRegistry registry, List xmlPreprocessors) { String version = SpringVersion.getVersion(); String className = "org.apache....
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/11df53b59b983bed2ad4569b2462495157cef4ff/XBeanHelper.java/buggy/xbean-spring-common/src/main/java/org/apache/xbean/spring/context/impl/XBeanHelper.java
runtime.defineGlobalConstant("ENV", RubyHash.newHash(runtime, envs, null));
runtime.defineGlobalConstant("ENV", RubyHash.newHash(runtime, envs, runtime.getNil()));
public static void createGlobals(IRuby runtime) { // Version information: IRubyObject version = runtime.newString(Constants.RUBY_VERSION).freeze(); IRubyObject release = runtime.newString(Constants.COMPILE_DATE).freeze(); IRubyObject platform = runtime.newString(Constants.PLATFORM).freez...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/ebc655285fa55c939b42b33be335d9f4b2040047/RubyGlobal.java/buggy/src/org/jruby/RubyGlobal.java
model.setCaseSensitive(source.isSelected());
finder.setCaseSensitive(source.isSelected());
private void initComponents() { createMenuBar(); createLeftMenuBar(); caseSensitive = new JCheckBox("Match case"); caseSensitive.addChangeListener(new ChangeListener() { public void stateChanged(ChangeEvent e) { JCheckBox source = (JCheckBox) e.getSource(); ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/8ab0ebced6045585fe427d0aa4302d96454e7266/FinderUI.java/clean/SRC/org/openmicroscopy/shoola/agents/treeviewer/finder/FinderUI.java
model.setCaseSensitive(source.isSelected());
finder.setCaseSensitive(source.isSelected());
public void stateChanged(ChangeEvent e) { JCheckBox source = (JCheckBox) e.getSource(); model.setCaseSensitive(source.isSelected()); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/8ab0ebced6045585fe427d0aa4302d96454e7266/FinderUI.java/clean/SRC/org/openmicroscopy/shoola/agents/treeviewer/finder/FinderUI.java
found = false;
void setCaseSensitive(boolean b) { if (b == model.isCaseSensitive()) return; model.setCaseSensitive(b); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/8ab0ebced6045585fe427d0aa4302d96454e7266/Finder.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/finder/Finder.java
String baseDir = "."; Vector filesToMerge = new Vector();
File baseDir = null; List filesToMerge = new ArrayList();
public Main(String[] args) { File dataFile = CoverageDataFileHandler.getDefaultDataFile(); String baseDir = "."; Vector filesToMerge = new Vector(); // Go through all the parameters for (int i = 0; i < args.length; i++) { if (args[i].equals("--datafile")) dataFile = new File(args[++i]); else if (args[i].e...
50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/1b806796294e95c04fa1265325392bcf191c20fb/Main.java/buggy/cobertura/src/net/sourceforge/cobertura/merge/Main.java
baseDir = args[++i];
baseDir = new File(args[++i]);
public Main(String[] args) { File dataFile = CoverageDataFileHandler.getDefaultDataFile(); String baseDir = "."; Vector filesToMerge = new Vector(); // Go through all the parameters for (int i = 0; i < args.length; i++) { if (args[i].equals("--datafile")) dataFile = new File(args[++i]); else if (args[i].e...
50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/1b806796294e95c04fa1265325392bcf191c20fb/Main.java/buggy/cobertura/src/net/sourceforge/cobertura/merge/Main.java
filesToMerge.add(baseDir + File.separator + args[i]);
filesToMerge.add( new File(baseDir, args[i]));
public Main(String[] args) { File dataFile = CoverageDataFileHandler.getDefaultDataFile(); String baseDir = "."; Vector filesToMerge = new Vector(); // Go through all the parameters for (int i = 0; i < args.length; i++) { if (args[i].equals("--datafile")) dataFile = new File(args[++i]); else if (args[i].e...
50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/1b806796294e95c04fa1265325392bcf191c20fb/Main.java/buggy/cobertura/src/net/sourceforge/cobertura/merge/Main.java
if (filesToMerge.size() == 0)
if (filesToMerge.isEmpty())
public Main(String[] args) { File dataFile = CoverageDataFileHandler.getDefaultDataFile(); String baseDir = "."; Vector filesToMerge = new Vector(); // Go through all the parameters for (int i = 0; i < args.length; i++) { if (args[i].equals("--datafile")) dataFile = new File(args[++i]); else if (args[i].e...
50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/1b806796294e95c04fa1265325392bcf191c20fb/Main.java/buggy/cobertura/src/net/sourceforge/cobertura/merge/Main.java
String newDataFileName = (String)iter.next(); File newDataFile = new File(newDataFileName);
File newDataFile = (File)iter.next();
public Main(String[] args) { File dataFile = CoverageDataFileHandler.getDefaultDataFile(); String baseDir = "."; Vector filesToMerge = new Vector(); // Go through all the parameters for (int i = 0; i < args.length; i++) { if (args[i].equals("--datafile")) dataFile = new File(args[++i]); else if (args[i].e...
50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/1b806796294e95c04fa1265325392bcf191c20fb/Main.java/buggy/cobertura/src/net/sourceforge/cobertura/merge/Main.java
outBuffer = ByteBuffer.allocate(BLOCK_SIZE);
public IOHandlerNio(IRuby runtime, Channel channel) throws IOException { super(runtime); String mode = ""; this.channel = channel; if (channel instanceof ReadableByteChannel) { mode += "r"; isOpen = true; } if (channel instanceof WritableByteChannel) {...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a6049d13f9eab0fce512fac5890ac20bf9ba9a27/IOHandlerNio.java/buggy/src/org/jruby/util/IOHandlerNio.java
if (bufferedIO) { /* flush output buffer before close */ if (outBuffer.position() > 0) { outBuffer.flip(); flushOutBuffer(); } }
/* flush output buffer before close */ if (outBuffer.position() > 0) { outBuffer.flip(); flushOutBuffer(); }
public void close() throws IOException { if (bufferedIO) { /* flush output buffer before close */ if (outBuffer.position() > 0) { outBuffer.flip(); flushOutBuffer(); } } channel.close(); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a6049d13f9eab0fce512fac5890ac20bf9ba9a27/IOHandlerNio.java/buggy/src/org/jruby/util/IOHandlerNio.java
setupBufferedIO();
public void putc(int c) throws IOException, BadDescriptorException { checkWritable(); setupBufferedIO(); if (!outBuffer.hasRemaining()) { outBuffer.flip(); flushOutBuffer(); } outBuffer.put((byte) (c & 0xff)); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a6049d13f9eab0fce512fac5890ac20bf9ba9a27/IOHandlerNio.java/buggy/src/org/jruby/util/IOHandlerNio.java
outBuffer = ByteBuffer.allocate(BLOCK_SIZE);
private void setupBufferedIO() { if (bufferedIO) { return; } outBuffer = ByteBuffer.allocate(BLOCK_SIZE); inBuffer = ByteBuffer.allocate(BLOCK_SIZE); flushInBuffer(); bufferedIO = true; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a6049d13f9eab0fce512fac5890ac20bf9ba9a27/IOHandlerNio.java/buggy/src/org/jruby/util/IOHandlerNio.java
checkBuffered();
outBuffer.flip(); flushOutBuffer();
public int syswrite(String string) throws BadDescriptorException, IOException { checkWritable(); checkBuffered(); ByteBuffer buffer = ByteBuffer.wrap(RubyString.stringToBytes(string)); while (buffer.hasRemaining()) { if (((WritableByteChannel) channel).write(buffer) < 0) { /...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a6049d13f9eab0fce512fac5890ac20bf9ba9a27/IOHandlerNio.java/buggy/src/org/jruby/util/IOHandlerNio.java
setupBufferedIO();
public void ungetc(int c) { ungotc = c; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a6049d13f9eab0fce512fac5890ac20bf9ba9a27/IOHandlerNio.java/buggy/src/org/jruby/util/IOHandlerNio.java
setupBufferedIO();
public int write(String string) throws IOException, BadDescriptorException { setupBufferedIO(); checkWritable(); ByteBuffer buffer = ByteBuffer.wrap(RubyString.stringToBytes(string)); byte[] trigger; IRubyObject dollar_backslash = getRuntime().getGlobalVariables().get("$\\"); ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a6049d13f9eab0fce512fac5890ac20bf9ba9a27/IOHandlerNio.java/buggy/src/org/jruby/util/IOHandlerNio.java
public EnumType(Properties attrs){super(attrs);}
public EnumType(Properties attrs){ super(attrs); Properties props = new Properties(); props.setProperty("name","value"); props.setProperty("type","string"); RequiredField value = new RequiredField(props); getProperties().add(value); }
public EnumType(Properties attrs){super(attrs);}
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/8910db2ba599cde3137140fc7a57bdfc3361117f/SemanticType.java/clean/components/dsl/src/ome/dsl/SemanticType.java
new DOInfo(details, model));
new DOInfo(details, model, true));
private JComponent buildCenterComponent() { switch (model.getEditorType()) { case Editor.CREATE_EDITOR: return doBasic; case Editor.PROPERTIES_EDITOR: IconManager im = IconManager.getInstance(); JTabbedPane tabs = new JTabbedPane(JTabbedPa...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0f24af159634bdc4228febad328548fbedecdb1d/EditorUI.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/editors/EditorUI.java
new DOInfo(details, null));
new DOInfo(details, model, false));
private JComponent buildCenterComponent() { switch (model.getEditorType()) { case Editor.CREATE_EDITOR: return doBasic; case Editor.PROPERTIES_EDITOR: IconManager im = IconManager.getInstance(); JTabbedPane tabs = new JTabbedPane(JTabbedPa...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0f24af159634bdc4228febad328548fbedecdb1d/EditorUI.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/editors/EditorUI.java
lensMenu = LensMenu.getMenu(lensComponent);
lensMenu = new LensMenu(lensComponent);
ZoomWindowUI(JFrame parent, LensComponent lensComponent) { super(parent); this.lensComponent = lensComponent; setTitle("Zoom Window"); setSize(300,300); setLocation(900,200); setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE); addWindowListener( new WindowAdapter() { public void windowClosing( WindowEvent...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/29b0b8d77292efe37e6130bac1e4416901230654/ZoomWindowUI.java/buggy/SRC/org/openmicroscopy/shoola/util/ui/lens/ZoomWindowUI.java
fail();
public void test_multi_txs() throws Exception { ReadWriteLock rwl = null; fail(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/59b11883b95c926d6706e6d30b4cdb898088683c/RenderingEngineTest.java/buggy/components/server/test/ome/server/itests/RenderingEngineTest.java
Criteria c = session.createCriteria((Class) value(CLASS));
Criteria c = session.createCriteria(Image.class);
protected void buildQuery(Session session) throws HibernateException, SQLException { Criteria c = session.createCriteria((Class) value(CLASS)); c.setResultTransformer(Criteria.DISTINCT_ROOT_ENTITY); c.add(Restrictions.in("id",(Collection) value(IDS))); Hierarchy.fetchChildren(c,(C...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b0d9b08448464cb80e12bda271a852daf0e5bd6a/PojosGetImagesQueryDefinition.java/clean/components/server/src/ome/services/query/PojosGetImagesQueryDefinition.java
c.add(Restrictions.in("id",(Collection) value(IDS))); Hierarchy.fetchChildren(c,(Class) value(CLASS),Integer.MAX_VALUE);
Criteria[] hy = Hierarchy.fetchParents(c,(Class) value(CLASS),Integer.MAX_VALUE); hy[hy.length-1].add(Restrictions.in("id",(Collection) value(IDS)));
protected void buildQuery(Session session) throws HibernateException, SQLException { Criteria c = session.createCriteria((Class) value(CLASS)); c.setResultTransformer(Criteria.DISTINCT_ROOT_ENTITY); c.add(Restrictions.in("id",(Collection) value(IDS))); Hierarchy.fetchChildren(c,(C...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b0d9b08448464cb80e12bda271a852daf0e5bd6a/PojosGetImagesQueryDefinition.java/clean/components/server/src/ome/services/query/PojosGetImagesQueryDefinition.java
result.callMethod(recv.getRuntime().getCurrentContext(),"initialize",args);
result.callInit(args);
public static IRubyObject newInstance(IRubyObject recv, IRubyObject[] args) { Cipher result = new Cipher(recv.getRuntime(), (RubyClass)recv); result.callMethod(recv.getRuntime().getCurrentContext(),"initialize",args); return result; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/3514dc67abeb8cd25e5ebb1dc300ffbba6dcf5a4/Cipher.java/clean/src/org/jruby/ext/openssl/Cipher.java
magFactor);
magFactor, abstraction.getImageWidth(), abstraction.getImageHeight());
public void showInspector() { if (imageInspector == null) imageInspector = new ImageInspector(this, presentation.getCanvas(), magFactor); presentation.getCanvas().getManager().setClick(true); UIUtilities.centerAndShow(imageInspector); ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/8846f7da5fbaf4d3fb83aa43b5616bcd13483654/ViewerCtrl.java/clean/SRC/org/openmicroscopy/shoola/agents/viewer/ViewerCtrl.java
scope.setValues(args, false);
scope.setValues(args, expectedArgsCount, false);
private void prepareArguments(ThreadContext context, IRuby runtime, Scope scope, IRubyObject receiver, IRubyObject[] args) { int expectedArgsCount = argsNode.getArgsCount(); int restArg = argsNode.getRestArg(); boolean hasOptArgs = argsNode.getOptArgs() != null; // FIXME: This seems redu...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/dc464e41f4cc61e7250cbd6b2013e49cf87db7f2/DefaultMethod.java/buggy/src/org/jruby/internal/runtime/methods/DefaultMethod.java
else {
else
private String handleError( Variable variable, Context context, Exception problem ) { String strError; ArrayList arlErrors = null; PropertyException propEx = null; if (problem instanceof PropertyException) propEx = (PropertyException)problem; else { ...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/e89ac338b1d6e0befa14e4104331a063c633f3d6/DebugEvaluationExceptionHandler.java/clean/webmacro/src/org/webmacro/engine/DebugEvaluationExceptionHandler.java
propEx.setContextLocation(context.getCurrentLocation()); }
propEx.setContextLocation(context.getCurrentLocation());
private String handleError( Variable variable, Context context, Exception problem ) { String strError; ArrayList arlErrors = null; PropertyException propEx = null; if (problem instanceof PropertyException) propEx = (PropertyException)problem; else { ...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/e89ac338b1d6e0befa14e4104331a063c633f3d6/DebugEvaluationExceptionHandler.java/clean/webmacro/src/org/webmacro/engine/DebugEvaluationExceptionHandler.java
public List getList() {
public ArrayList getList() {
public List getList() { return list; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f629550c5947df9c1dbe414645f3dc76bcb70df4/RubyArray.java/clean/org/jruby/RubyArray.java
assertNotNull("Root has to be define.",root);
assertNotNull("Root has to be defined.",root);
public void testExperimenterShouldAlwaysExist() throws Exception { Experimenter root = (Experimenter) iQuery.findByQuery(Experimenter.class.getName(), new Parameters().addId(0L)); assertNotNull("Root has to be define.",root); // FIXME assertNotNull(...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/59b11883b95c926d6706e6d30b4cdb898088683c/InvariantsTest.java/clean/components/server/test/ome/server/itests/query/InvariantsTest.java
if (headingItem != null) headingItem.setEnabled(enabled);
if (headingItem != null && !headingItem.isDisposed()) headingItem.setEnabled(enabled);
public void setEnabled(boolean enabled) { if (this.enabled != enabled) { this.enabled = enabled; if (headingItem != null) headingItem.setEnabled(enabled); } }
57508 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57508/102d4072e61256869ff46cb3e5a08b2ccd94465d/DisableableMenuManager.java/buggy/trunk/src/de/berlios/koalanotes/display/menus/DisableableMenuManager.java
if (headingItem != null && headingItem.isEnabled() != enabled) {
if (headingItem != null && !headingItem.isDisposed() && headingItem.isEnabled() != enabled) {
public void update() { super.update(); if (headingItem != null && headingItem.isEnabled() != enabled) { headingItem.setEnabled(enabled); } }
57508 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57508/102d4072e61256869ff46cb3e5a08b2ccd94465d/DisableableMenuManager.java/buggy/trunk/src/de/berlios/koalanotes/display/menus/DisableableMenuManager.java
if (headingItem != null && headingItem.isEnabled() != enabled) {
if (headingItem != null && !headingItem.isDisposed() && headingItem.isEnabled() != enabled) {
public void updateAll(boolean arg0) { super.updateAll(arg0); if (headingItem != null && headingItem.isEnabled() != enabled) { headingItem.setEnabled(enabled); } }
57508 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57508/102d4072e61256869ff46cb3e5a08b2ccd94465d/DisableableMenuManager.java/buggy/trunk/src/de/berlios/koalanotes/display/menus/DisableableMenuManager.java
register(result);
private IRubyObject defaultObjectUnmarshal() throws IOException { RubySymbol className = (RubySymbol) unmarshalObject(); // ... FIXME: handle if class doesn't exist ... RubyClass type = (RubyClass) runtime.getClasses().getClassFromPath(className.toId()); Asserts.assertNotNull(type, "type...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9db4d278a734c4fdfd9a83ed95575a45577f1e1b/UnmarshalStream.java/buggy/org/jruby/runtime/marshal/UnmarshalStream.java
cache.register(result);
public IRubyObject unmarshalObject() throws IOException { int type = readUnsignedByte(); IRubyObject result; if (type == '@') { result = cache.linkedByIndex(unmarshalInt()); } else if (type == ';') { result = cache.symbolByIndex(unmarshalInt()); } else { ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9db4d278a734c4fdfd9a83ed95575a45577f1e1b/UnmarshalStream.java/buggy/org/jruby/runtime/marshal/UnmarshalStream.java
return classInstance.callMethod(
IRubyObject result = classInstance.callMethod(
private IRubyObject userUnmarshal() throws IOException { String className = ((RubySymbol) unmarshalObject()).toId(); String marshaled = unmarshalString(); RubyModule classInstance = runtime.getRubyModule(className); return classInstance.callMethod( "_load", RubyStri...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9db4d278a734c4fdfd9a83ed95575a45577f1e1b/UnmarshalStream.java/buggy/org/jruby/runtime/marshal/UnmarshalStream.java
register(result); return result;
private IRubyObject userUnmarshal() throws IOException { String className = ((RubySymbol) unmarshalObject()).toId(); String marshaled = unmarshalString(); RubyModule classInstance = runtime.getRubyModule(className); return classInstance.callMethod( "_load", RubyStri...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9db4d278a734c4fdfd9a83ed95575a45577f1e1b/UnmarshalStream.java/buggy/org/jruby/runtime/marshal/UnmarshalStream.java
return RubyRegexp.newRegexp(runtime, sb.toString(), iVisited.getOptions(), null);
String lang = null; int opts = iVisited.getOptions(); if((opts & 16) != 0) { lang = "n"; } else if((opts & 48) != 0) { lang = "s"; } else if((opts & 64) != 0) { lang = "u"; } return RubyRegexp.newRegexp(runtime, sb.toString(), iVisited.getOptions(), lang);
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: { AliasNode ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a99c8643e2996a04338dcb2ea5ad169c29e5f798/EvaluationState.java/buggy/src/org/jruby/evaluator/EvaluationState.java
return RubyRegexp.newRegexp(runtime, iVisited.getPattern(), null);
String lang = null; int opts = iVisited.getOptions(); if((opts & 16) != 0) { lang = "n"; } else if((opts & 48) != 0) { lang = "s"; } else if((opts & 64) != 0) { lang = "u"; } return RubyRegexp.newRegexp(runtime, iVisited.getPattern(), lang);
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: { AliasNode ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a99c8643e2996a04338dcb2ea5ad169c29e5f798/EvaluationState.java/buggy/src/org/jruby/evaluator/EvaluationState.java
public DisplayOption(Integer attributeId, Boolean redOn, Integer ZStart, Boolean blueOn, String colorMap, Integer ZStop, Float zoom, Integer TStop, Integer TStart, Boolean greenOn, Boolean displayRgb, org.openmicroscopy.omero.model.Image image, org.openmicroscopy.omero.model.ImagePixel imagePixel, org.openmicroscopy.om...
public DisplayOption() {
public DisplayOption(Integer attributeId, Boolean redOn, Integer ZStart, Boolean blueOn, String colorMap, Integer ZStop, Float zoom, Integer TStop, Integer TStart, Boolean greenOn, Boolean displayRgb, org.openmicroscopy.omero.model.Image image, org.openmicroscopy.omero.model.ImagePixel imagePixel, org.openmicroscop...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/DisplayOption.java/buggy/components/common/src/org/openmicroscopy/omero/model/DisplayOption.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/DisplayOption.java/buggy/components/common/src/org/openmicroscopy/omero/model/DisplayOption.java
public org.openmicroscopy.omero.model.ImagePixel getImagePixel() {
public ImagePixel getImagePixel() {
public org.openmicroscopy.omero.model.ImagePixel getImagePixel() { return this.imagePixel; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/DisplayOption.java/buggy/components/common/src/org/openmicroscopy/omero/model/DisplayOption.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/DisplayOption.java/buggy/components/common/src/org/openmicroscopy/omero/model/DisplayOption.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/DisplayOption.java/buggy/components/common/src/org/openmicroscopy/omero/model/DisplayOption.java
public void setImagePixel(org.openmicroscopy.omero.model.ImagePixel imagePixel) {
public void setImagePixel(ImagePixel imagePixel) {
public void setImagePixel(org.openmicroscopy.omero.model.ImagePixel imagePixel) { this.imagePixel = imagePixel; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9570ef74198a070d72e77c417c9d25244a942de2/DisplayOption.java/buggy/components/common/src/org/openmicroscopy/omero/model/DisplayOption.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/DisplayOption.java/buggy/components/common/src/org/openmicroscopy/omero/model/DisplayOption.java
types.add(type);
types.put(type.getId(),type);
private void handleExit(String element){ if (Property.FIELDS.contains(element)){ if (null==property){ throw new IllegalStateException("Exiting non-extant property!\n"+"Element:"+element+"\nType:"+type+"\nProperty:"+property); } if (null==type){ throw new IllegalStateException("Inside of non-extant...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/6d9e84b0d2f71da76eba45bc713472ad607c544a/SaxReader.java/clean/components/dsl/src/ome/dsl/SaxReader.java
public Set process(){ return types;
public Set<SemanticType> process(){ for (String id : types.keySet()) { SemanticType t = types.get(id); for (Property p : t.getProperties()) { String rev = p.getType(); String inv = p.getInverse(); if ( inv != null ) { if (types.containsKey(rev)) { SemanticType reverse = types.get(rev); for (Property inverse : reverse.g...
public Set process(){ return types; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/6d9e84b0d2f71da76eba45bc713472ad607c544a/SaxReader.java/clean/components/dsl/src/ome/dsl/SaxReader.java
public SaxReader(String filename){ xmlFile = this.getClass().getClassLoader().getResource(filename); init();
public SaxReader(File file){ this(file, new DSLHandler());
public SaxReader(String filename){ xmlFile = this.getClass().getClassLoader().getResource(filename); init(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/6d9e84b0d2f71da76eba45bc713472ad607c544a/SaxReader.java/clean/components/dsl/src/ome/dsl/SaxReader.java
public Set parse(){
public void parse(){
public Set parse(){ try { parser.parse(xmlFile.getPath(), handler); } catch (Exception e) { throw new RuntimeException( "Error parsing "+xmlFile+" :\n"+e.getMessage(),e); } return handler.process(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/6d9e84b0d2f71da76eba45bc713472ad607c544a/SaxReader.java/clean/components/dsl/src/ome/dsl/SaxReader.java
return handler.process();
public Set parse(){ try { parser.parse(xmlFile.getPath(), handler); } catch (Exception e) { throw new RuntimeException( "Error parsing "+xmlFile+" :\n"+e.getMessage(),e); } return handler.process(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/6d9e84b0d2f71da76eba45bc713472ad607c544a/SaxReader.java/clean/components/dsl/src/ome/dsl/SaxReader.java
public Set getProperties() {
public Set<Property> getProperties() {
public Set getProperties() { return properties; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/6d9e84b0d2f71da76eba45bc713472ad607c544a/SemanticType.java/buggy/components/dsl/src/ome/dsl/SemanticType.java
public abstract HttpMethodBase marshal()
public abstract HttpMethod marshal()
public abstract HttpMethodBase marshal() throws ImageServiceException;
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/c0ee67611abddaf7c5a898ad8033ca4845e9d8fe/Request.java/clean/SRC/org/openmicroscopy/shoola/omeis/proxy/Request.java
else if (format.equals(TEXTFilter.TEXT)) writeXMLFile();
else if (format.equals(XMLFilter.XML)) WriterText.writeTableAsXML(f, mng.getModel());
void saveROIResult(String format, String name, String msg) { UserNotifier un = control.getRegistry().getUserNotifier(); if (mng.getROIStats() == null) un.notifyError("Save ROI results", msg); else { name +="."+format; //Add extension File f = new File(name);...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0f84715d97fb9bad35cd75d5c742a1473fe1f109/ROIStatsSaverMng.java/clean/SRC/org/openmicroscopy/shoola/agents/roi/util/ROIStatsSaverMng.java
String[][] getROIStats() { return control.getROIStats(); }
String[][] getROIStats() { return control.getROIStats(); }
String[][] getROIStats() { return control.getROIStats(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0f84715d97fb9bad35cd75d5c742a1473fe1f109/ROIStatsMng.java/buggy/SRC/org/openmicroscopy/shoola/agents/roi/util/ROIStatsMng.java
final JSlider slider = new JSlider(new DefaultBoundedRangeModel(100,10,10,200)); slider.setPaintLabels(true); slider.addChangeListener(new ChangeListener() { public void stateChanged(ChangeEvent arg0) { int value = slider.getValue(); if(slider.getValueIsAdjusting()) { embeddedView.setZoomToScale(false); } embeddedView....
public BrowserInternalFrame(BrowserController theController) { setSize(600,600); setDefaultCloseOperation(JInternalFrame.DISPOSE_ON_CLOSE); if(theController != null) { this.controller = theController; String title = controller.getName(); setTit...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/931190c640a4d36141bc5769628dc3f10cf66641/BrowserInternalFrame.java/buggy/SRC/org/openmicroscopy/shoola/agents/browser/ui/BrowserInternalFrame.java
} else { state.setResult(state.runtime.getNil());
public void execute(EvaluationState state, InstructionContext ctx) { DefinedNode iVisited = (DefinedNode)ctx; String def = new DefinedVisitor(state).getDefinition(iVisited.getExpressionNode()); if (def != null) { state.setResult(state.runtime.newString(def)); } ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/079fa8abc94ff21e709074b13a680c91959242e6/EvaluateVisitor.java/buggy/src/org/jruby/evaluator/EvaluateVisitor.java
ruby.defineGlobalFunction("iterator?", CallbackFactory.getSingletonMethod(RubyGlobal.class, "block_given"));
public static void createGlobals(Ruby ruby) { StringSetter stringSetter = new StringSetter(); LastlineAccessor lastlineAccessor = new LastlineAccessor(); SafeAccessor safeAccessor = new SafeAccessor(); ruby.defineHookedVariable("$/", RubyString.newString(ruby, "\n"), null, stringSetter);...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/2f13ba47385b7584839c7f6f6f1abfee251cbe53/RubyGlobal.java/buggy/org/jruby/RubyGlobal.java
for( int i=0; i<annotations.size(); i++ ) f.g(annotations.get(i)).nl();
for (JAnnotationUse annotation : annotations) f.g(annotation).nl();
public void declare(JFormatter f) { if (jdoc != null) f.nl().g(jdoc); if (annotations != null){ for( int i=0; i<annotations.size(); i++ ) f.g(annotations.get(i)).nl(); } f.g(mods).p(classType.declarationToken).id(name).d(generifiable); if (supe...
53231 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53231/ee6618a6d0c176aa38bdc3eefc87df9f60c84554/JDefinedClass.java/buggy/trunk/codemodel/src/com/sun/codemodel/JDefinedClass.java
JEnumConstant ec = new JEnumConstant(this, name); enumConstantsByName.put(name, ec); return ec;
JEnumConstant ec = enumConstantsByName.get(name); if (null == ec) { ec = new JEnumConstant(this, name); enumConstantsByName.put(name, ec); } return ec;
public JEnumConstant enumConstant(String name){ JEnumConstant ec = new JEnumConstant(this, name); enumConstantsByName.put(name, ec); return ec; }
53231 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53231/ee6618a6d0c176aa38bdc3eefc87df9f60c84554/JDefinedClass.java/buggy/trunk/codemodel/src/com/sun/codemodel/JDefinedClass.java
outer :
public JMethod getMethod(String name, JType[] argTypes) { outer : for (JMethod m : methods) { if (!m.name().equals(name)) continue; if (m.hasSignature(argTypes)) return m; } return null; }
53231 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53231/ee6618a6d0c176aa38bdc3eefc87df9f60c84554/JDefinedClass.java/buggy/trunk/codemodel/src/com/sun/codemodel/JDefinedClass.java
Map kernelMethods = getRuntime().getClasses().getKernelModule().getMethods();
private RubyArray instance_methods(IRubyObject[] args, final Visibility visibility) { boolean includeSuper = args.length > 0 ? args[0].isTrue() : true; RubyArray ary = RubyArray.newArray(getRuntime()); Map kernelMethods = getRuntime().getClasses().getKernelModule().getMethods(); for (Rub...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/111ffceb6641644db641863784ba47cc459fef17/RubyModule.java/clean/src/org/jruby/RubyModule.java
if (p.getMethods() == kernelMethods) { continue; }
private RubyArray instance_methods(IRubyObject[] args, final Visibility visibility) { boolean includeSuper = args.length > 0 ? args[0].isTrue() : true; RubyArray ary = RubyArray.newArray(getRuntime()); Map kernelMethods = getRuntime().getClasses().getKernelModule().getMethods(); for (Rub...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/111ffceb6641644db641863784ba47cc459fef17/RubyModule.java/clean/src/org/jruby/RubyModule.java
if (method.getVisibility().is(visibility)) {
if (method.getVisibility().is(visibility) && method.isUndefined() == false) {
private RubyArray instance_methods(IRubyObject[] args, final Visibility visibility) { boolean includeSuper = args.length > 0 ? args[0].isTrue() : true; RubyArray ary = RubyArray.newArray(getRuntime()); Map kernelMethods = getRuntime().getClasses().getKernelModule().getMethods(); for (Rub...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/111ffceb6641644db641863784ba47cc459fef17/RubyModule.java/clean/src/org/jruby/RubyModule.java
return getRuntime().getNil();
throw new NameError(getRuntime(), "undefined method `" + name + "' for class `" + this.getName() + "'");
public IRubyObject newMethod(IRubyObject receiver, String name, boolean bound) { CacheEntry ent = getMethodBodyCached(name); if (! ent.isDefined()) { // printUndef(); return getRuntime().getNil(); } while (ent.getMethod() instanceof EvaluateMethod && ((Ev...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/111ffceb6641644db641863784ba47cc459fef17/RubyModule.java/clean/src/org/jruby/RubyModule.java
inputStreamClosed = true;
private final void FillBuff() throws java.io.IOException { // Buffer fill logic: // If there is at least 2K left in this buffer, just read some more // Otherwise, if we're processing a token and it either // (a) starts in the other buffer (meaning it's filled both part of // the other buffer and ...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/fbf02da47b28287a2fb58ba11f732d631e0446f7/BackupCharStream.java/clean/webmacro/src/org/webmacro/parser/BackupCharStream.java
inputStreamClosed = false;
public void ReInit(java.io.Reader dstream, int startline, int startcolumn, int buffersize) { inputStream = dstream; line = startline; column = startcolumn - 1; if (bufA == null || bufA.size != buffersize) bufA = new Buffer(buffersize); if (bufB == null || bufB.size != buffersi...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/fbf02da47b28287a2fb58ba11f732d631e0446f7/BackupCharStream.java/clean/webmacro/src/org/webmacro/parser/BackupCharStream.java
int addlChars = amount - 1 - curBuf.curPos;
int addlChars = amount - (inputStreamClosed? 0 : 1) - curBuf.curPos;
public final void backup(int amount) { backupChars += amount; if (curBuf.curPos - amount < 0) { int addlChars = amount - 1 - curBuf.curPos; curBuf.curPos = 0; swapBuf(); curBuf.curPos = curBuf.dataLen - addlChars - 1; } else { curBuf.curPos -= amount; } }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/fbf02da47b28287a2fb58ba11f732d631e0446f7/BackupCharStream.java/clean/webmacro/src/org/webmacro/parser/BackupCharStream.java