rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
gateway.deleteObject(data.asIObject());
public DataObject removeAnnotationFrom(DataObject annotatedObject, AnnotationData data) throws DSOutOfServiceException, DSAccessException { if (data == null) throw new IllegalArgumentException("No annotation to delete."); if (annota...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/87f0144809415c3236dabaa1afd6162d13a14ebe/OmeroDataServiceImpl.java/buggy/SRC/org/openmicroscopy/shoola/env/data/OmeroDataServiceImpl.java
ioObjects[index] = ((DataObject) i.next()).asIObject();
o = gateway.findIObject(((DataObject) i.next()).asIObject()); ioObjects[index] = o;
public Set removeDataObjects(Set children, DataObject parent) throws DSOutOfServiceException, DSAccessException { if (children == null) throw new IllegalArgumentException("The children cannot be null."); if (children.size() == 0) throw new IllegalArgumentException...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/87f0144809415c3236dabaa1afd6162d13a14ebe/OmeroDataServiceImpl.java/buggy/SRC/org/openmicroscopy/shoola/env/data/OmeroDataServiceImpl.java
public Set removeDataObjects(Set children, DataObject parent) throws DSOutOfServiceException, DSAccessException { if (children == null) throw new IllegalArgumentException("The children cannot be null."); if (children.size() == 0) throw new IllegalArgumentException...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/87f0144809415c3236dabaa1afd6162d13a14ebe/OmeroDataServiceImpl.java/buggy/SRC/org/openmicroscopy/shoola/env/data/OmeroDataServiceImpl.java
ModelMapper.unloadCollections(object); IObject updated = gateway.updateObject(object, options);
IObject ho = gateway.findIObject(object); if (ho == null) return null; ModelMapper.fillIObject(object, ho); ModelMapper.unloadCollections(ho); IObject updated = gateway.updateObject(ho, options);
public DataObject updateAnnotationFor(DataObject annotatedObject, AnnotationData data) throws DSOutOfServiceException, DSAccessException { if (data == null) throw new IllegalArgumentException("No annotation to update."); if (annotatedO...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/87f0144809415c3236dabaa1afd6162d13a14ebe/OmeroDataServiceImpl.java/buggy/SRC/org/openmicroscopy/shoola/env/data/OmeroDataServiceImpl.java
throw new DSAccessException("No object to update."); IObject ob = object.asIObject(); ModelMapper.unloadCollections(ob); IObject updated = gateway.updateObject(ob,
throw new DSAccessException("No object to update."); IObject oldObject = object.asIObject(); IObject ho = gateway.findIObject(object.asIObject()); if (ho == null) return null; ModelMapper.fillIObject(oldObject, ho); ModelMapper.unloadCollections(ho); IObject updated = gateway.updateObject(ho,
public DataObject updateDataObject(DataObject object) throws DSOutOfServiceException, DSAccessException { if (object == null) throw new DSAccessException("No object to update."); IObject ob = object.asIObject(); ModelMapper.unloadCollections(ob); IObject updat...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/87f0144809415c3236dabaa1afd6162d13a14ebe/OmeroDataServiceImpl.java/buggy/SRC/org/openmicroscopy/shoola/env/data/OmeroDataServiceImpl.java
Callback each_object = new ReflectionCallbackMethod(RubyObjectSpace.class, "each_object", true, true);
Callback each_object = CallbackFactory.getOptSingletonMethod(RubyObjectSpace.class, "each_object");
public static RubyModule createObjectSpaceModule(Ruby ruby) { Callback each_object = new ReflectionCallbackMethod(RubyObjectSpace.class, "each_object", true, true); RubyModule objectSpaceModule = ruby.defineModule("ObjectSpace"); objectSpaceModule.defineModuleFunction("each_object", each_object...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/6076c5ab87d25a488469aa1a32f1d2c9c9e470b2/RubyObjectSpace.java/buggy/org/jruby/RubyObjectSpace.java
long start = System.currentTimeMillis();
long start; if (ChainBuilderAgent.DEBUG) start= System.currentTimeMillis();
public Object getContents() { long start = System.currentTimeMillis(); ChainDataManager chainDataManager = (ChainDataManager) dataManager; if (chains == null) { chains = chainDataManager.getChains(); } Iterator iter = chains.iterator(); while (iter.hasNext()) { LayoutChainData chain = (LayoutChainData) i...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a806bf744289bb0eed666b235887c8680d549d94/ChainLoader.java/clean/SRC/org/openmicroscopy/shoola/agents/chainbuilder/data/ChainLoader.java
long end = System.currentTimeMillis()-start; System.err.println("total time in chain loader"+end);
if (ChainBuilderAgent.DEBUG) { long end = System.currentTimeMillis()-start; System.err.println("total time in chain loader"+end); }
public Object getContents() { long start = System.currentTimeMillis(); ChainDataManager chainDataManager = (ChainDataManager) dataManager; if (chains == null) { chains = chainDataManager.getChains(); } Iterator iter = chains.iterator(); while (iter.hasNext()) { LayoutChainData chain = (LayoutChainData) i...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a806bf744289bb0eed666b235887c8680d549d94/ChainLoader.java/clean/SRC/org/openmicroscopy/shoola/agents/chainbuilder/data/ChainLoader.java
void buildContext() { lowerLimit = intervalStart; upperLimit = intervalEnd; }
void buildContext() {}
void buildContext() { lowerLimit = intervalStart; upperLimit = intervalEnd; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1af109c95da3a7c178aa582fbdc0a6c825b00e8c/PlaneSlicingContext.java/clean/SRC/org/openmicroscopy/shoola/env/rnd/codomain/PlaneSlicingContext.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/StarNode.java/clean/src/org/jruby/ast/StarNode.java
} else if (block.kind_of(ruby.getClasses().getMethodClass()).isTrue()) {
} else if (block instanceof RubyMethod) { block = ((RubyMethod)block).to_proc();
public void visitBlockPassNode(BlockPassNode iVisited) { setPosition(iVisited); RubyObject block = eval(iVisited.getBodyNode()); if (block.isNil()) { eval(iVisited.getIterNode()); return; } else if (block.kind_of(ruby.getClasses().getMethodClass()).isTrue()) { ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/6076c5ab87d25a488469aa1a32f1d2c9c9e470b2/EvaluateVisitor.java/clean/org/jruby/evaluator/EvaluateVisitor.java
String bodyValue = htmlBodyElement.getText();
String bodyValue = htmlBodyElement.getContentAsString();
public boolean load(WebdavExtendedResource webdavResource) throws IOException { XMLParser builder = new XMLParser(); XMLDocument bodyDoc = null; try { WebdavResource theArticle = null; if(webdavResource.isCollection()){ IWContext iwc = IWContext.getInstance(); WebdavResources resources = webdavResourc...
57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/611fb182e292c01cefda4eca71e12c5e937c0540/ArticleItemBean.java/clean/src/java/com/idega/block/article/bean/ArticleItemBean.java
answer = "xsd:string";
answer = "xs:string";
protected String getXSDType(JProperty property) { if (xsdTypeMap == null) { xsdTypeMap = new HashMap(); loadXsdTypeMap(xsdTypeMap); } String typeName = property.getType().getQualifiedName(); String answer = (String) xsdTypeMap.get(typeName); if (answer == nul...
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/34aa926271cfb76e0018d60eb440c06ce975562b/SchemaGenerator.java/clean/spring/src/java/org/xbean/spring/task/SchemaGenerator.java
ruby.getScope().setLocalNames(body.getLocalNames());
ruby.getScope().resetLocalVariables(body.getLocalNames());
public IRubyObject call(Ruby ruby, IRubyObject receiver, String name, IRubyObject[] args, boolean noSuper) { RubyProc optionalBlockArg = null; if (argsNode.getBlockArgNode() != null && ruby.isBlockGiven()) { optionalBlockArg = RubyProc.newProc(ruby); } ruby.getScope().push(); ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/6e143e1ded2275ed4da3449d4a13446b099f800d/DefaultMethod.java/clean/src/org/jruby/internal/runtime/methods/DefaultMethod.java
if (ruby.getScope().hasLocalValues()) {
if (ruby.getScope().hasLocalVariables()) {
private void prepareArguments(Ruby ruby, IRubyObject receiver, IRubyObject[] args) { if (args == null) { args = IRubyObject.NULL_ARRAY; } int expectedArgsCount = argsNode.getArgsCount(); if (expectedArgsCount > args.length) { throw new ArgumentError(ruby, "Wrong # o...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/6e143e1ded2275ed4da3449d4a13446b099f800d/DefaultMethod.java/clean/src/org/jruby/internal/runtime/methods/DefaultMethod.java
if (maxMemory != null) java.setJvmargs("-Xmx" + maxMemory);
protected Java getJava() { if (java == null) { java = (Java)getProject().createTask("java"); java.setTaskName(getTaskName()); java.setClassname(getClassName()); java.setFork(true); java.setDir(getProject().getBaseDir()); /** * We replace %20 with a space character because, for some * reason, when w...
50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/6855ae3adc80bafd43ed02cdeb5509fbcd84dff4/CommonMatchingTask.java/clean/cobertura/src/net/sourceforge/cobertura/ant/CommonMatchingTask.java
suite.addTest(new TestSuite(TestAdoptedThreading.class));
public static Test suite() throws Throwable { TestSuite suite = new TestSuite(); suite.addTest(new TestSuite(TestRubyObject.class)); suite.addTest(new TestSuite(TestRubyNil.class)); suite.addTest(new TestSuite(TestRubyHash.class)); suite.addTest(new TestSuite(TestRuby.class)); ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/408ba0b04448fd6ff645ed5c2c99654ac80634bf/MainTestSuite.java/clean/test/org/jruby/test/MainTestSuite.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/RegexpNode.java/clean/src/org/jruby/ast/RegexpNode.java
_inputEncoding = getDefaultEncoding();
_inputEncoding = defaultEncoding;
private void setupLocalProperties() { InputStream is = null; URL u = null; try { u = new URL(_url, WMConstants.WEBMACRO_LOCAL_FILE); _log.debug("Looking for encodings file: "+u); Object obj = propertiesCache.get(u); if (obj != null) ...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/ade903c4f4a786de777ea343848327cc1359cd49/URLTemplate.java/clean/webmacro/src/org/webmacro/resource/URLTemplate.java
Set<Class> validSet = new HashSet<Class>(Arrays.asList(validClasses));
ValidSet validSet = new ValidSet( validClasses );
public Object invoke(MethodInvocation mi) throws Throwable { /* find concrete method */ Method mthd = mi.getMethod(); Class implClass = mi.getThis().getClass(); Method implMethod = implClass.getMethod(mthd.getName(), (Class[]) mthd .getParameterTypes()); log.info...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9c73b59c63a97966e3da2344ad819163878dfaa4/ApiConstraintChecker.java/clean/components/server/src/ome/aop/ApiConstraintChecker.java
if (!validSet.contains(object.getClass()))
if ( ! validSet.isValid( object.getClass() ))
public Object invoke(MethodInvocation mi) throws Throwable { /* find concrete method */ Method mthd = mi.getMethod(); Class implClass = mi.getThis().getClass(); Method implMethod = implClass.getMethod(mthd.getName(), (Class[]) mthd .getParameterTypes()); log.info...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9c73b59c63a97966e3da2344ad819163878dfaa4/ApiConstraintChecker.java/clean/components/server/src/ome/aop/ApiConstraintChecker.java
if (!validSet.contains(arg.getClass()))
if ( ! validSet.isValid( arg.getClass() ))
public Object invoke(MethodInvocation mi) throws Throwable { /* find concrete method */ Method mthd = mi.getMethod(); Class implClass = mi.getThis().getClass(); Method implMethod = implClass.getMethod(mthd.getName(), (Class[]) mthd .getParameterTypes()); log.info...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9c73b59c63a97966e3da2344ad819163878dfaa4/ApiConstraintChecker.java/clean/components/server/src/ome/aop/ApiConstraintChecker.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/VAliasNode.java/buggy/src/org/jruby/ast/VAliasNode.java
List<String> classNames = new ArrayList(); String jarPath = location.getFile().replaceFirst("./META-INF", "");
String jarPath = location.getFile(); if (jarPath.indexOf("!") > -1){ jarPath = jarPath.substring(0, jarPath.indexOf("!")); }
private List<String> jar(URL location) throws IOException { List<String> classNames = new ArrayList(); String jarPath = location.getFile().replaceFirst("./META-INF", ""); URL url = new URL(jarPath); InputStream in = url.openStream(); JarInputStream jarStream = new JarInputStream(i...
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/9be2f472d143d50a569cb6a4226f39bd22f59449/ClassFinder.java/clean/xbean-finder/src/main/java/org/apache/xbean/finder/ClassFinder.java
JarInputStream jarStream = new JarInputStream(in); JarEntry entry; while ((entry = jarStream.getNextJarEntry()) != null) { if (entry.isDirectory() || !entry.getName().endsWith(".class")) { continue; } String className = entry.getName(); className = className.replaceFirst(".class$", ""); className = className.replace('...
try { JarInputStream jarStream = new JarInputStream(in); return jar(jarStream); } finally { in.close();
private List<String> jar(URL location) throws IOException { List<String> classNames = new ArrayList(); String jarPath = location.getFile().replaceFirst("./META-INF", ""); URL url = new URL(jarPath); InputStream in = url.openStream(); JarInputStream jarStream = new JarInputStream(i...
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/9be2f472d143d50a569cb6a4226f39bd22f59449/ClassFinder.java/clean/xbean-finder/src/main/java/org/apache/xbean/finder/ClassFinder.java
return classNames;
private List<String> jar(URL location) throws IOException { List<String> classNames = new ArrayList(); String jarPath = location.getFile().replaceFirst("./META-INF", ""); URL url = new URL(jarPath); InputStream in = url.openStream(); JarInputStream jarStream = new JarInputStream(i...
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/9be2f472d143d50a569cb6a4226f39bd22f59449/ClassFinder.java/clean/xbean-finder/src/main/java/org/apache/xbean/finder/ClassFinder.java
int availableRows = testHeadlines.length; int nrOfRows = rows.intValue(); if (nrOfRows == 0) { nrOfRows = availableRows;
try { ArticleItemBean[] articleItemBean = (ArticleItemBean[]) ArticleListBean.loadAllArticlesInFolder(new File("/Test/article/")).toArray(new ArticleItemBean[0]); int availableRows = articleItemBean.length; int nrOfRows = rows.intValue(); if (nrOfRows == 0) { nrOfRows = availableRows; } int maxRow = Math.min(start.int...
public void updateDataModel(Integer start, Integer rows) { if (_dataModel == null) { _dataModel = new WFDataModel(); } int availableRows = testHeadlines.length; int nrOfRows = rows.intValue(); if (nrOfRows == 0) { nrOfRows = availableRows; } int maxRow = start.intValue() + nrOfRows; if (maxRow > availableR...
57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/2cd921b37179b60f73b08e496f3539f6703ee5c0/ListArticlesBean.java/buggy/src/java/com/idega/block/article/bean/ListArticlesBean.java
int maxRow = start.intValue() + nrOfRows; if (maxRow > availableRows) { maxRow = availableRows;
catch (XmlException e) { e.printStackTrace();
public void updateDataModel(Integer start, Integer rows) { if (_dataModel == null) { _dataModel = new WFDataModel(); } int availableRows = testHeadlines.length; int nrOfRows = rows.intValue(); if (nrOfRows == 0) { nrOfRows = availableRows; } int maxRow = start.intValue() + nrOfRows; if (maxRow > availableR...
57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/2cd921b37179b60f73b08e496f3539f6703ee5c0/ListArticlesBean.java/buggy/src/java/com/idega/block/article/bean/ListArticlesBean.java
for (int i = start.intValue(); i < maxRow; i++) { ListArticlesBean bean = new ListArticlesBean(String.valueOf(i), testHeadlines[i], testPublished[i]); _dataModel.set(bean, i);
catch (IOException e) { e.printStackTrace();
public void updateDataModel(Integer start, Integer rows) { if (_dataModel == null) { _dataModel = new WFDataModel(); } int availableRows = testHeadlines.length; int nrOfRows = rows.intValue(); if (nrOfRows == 0) { nrOfRows = availableRows; } int maxRow = start.intValue() + nrOfRows; if (maxRow > availableR...
57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/2cd921b37179b60f73b08e496f3539f6703ee5c0/ListArticlesBean.java/buggy/src/java/com/idega/block/article/bean/ListArticlesBean.java
_dataModel.setRowCount(availableRows);
public void updateDataModel(Integer start, Integer rows) { if (_dataModel == null) { _dataModel = new WFDataModel(); } int availableRows = testHeadlines.length; int nrOfRows = rows.intValue(); if (nrOfRows == 0) { nrOfRows = availableRows; } int maxRow = start.intValue() + nrOfRows; if (maxRow > availableR...
57000 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/57000/2cd921b37179b60f73b08e496f3539f6703ee5c0/ListArticlesBean.java/buggy/src/java/com/idega/block/article/bean/ListArticlesBean.java
defineSingletonMethod("select", Arity.optional());
protected void initializeClass() { includeModule(getRuntime().getModule("Enumerable")); // TODO: Implement tty? and isatty. We have no real capability to // determine this from java, but if we could set tty status, then // we could invoke jruby differently to allow stdin to retur...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/54e6b8da799629e0b7db879c45149399878f5f84/IOMetaClass.java/buggy/src/org/jruby/runtime/builtin/meta/IOMetaClass.java
yaccValue = "<<";
private int yylex() { char c; boolean spaceSeen = false; boolean commandState; if (lex_strterm != null) { int tok = lex_strterm.parseString(this, src); if (tok == Tokens.tSTRING_END || tok == Tokens.tREGEXP_END) { lex_strterm = null; lex_state = LexState.EXPR_END;...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1d8ec540dc793b2d5ad5084d2cb6b204087302b7/RubyYaccLexer.java/buggy/src/org/jruby/lexer/yacc/RubyYaccLexer.java
yaccValue = ">>";
private int yylex() { char c; boolean spaceSeen = false; boolean commandState; if (lex_strterm != null) { int tok = lex_strterm.parseString(this, src); if (tok == Tokens.tSTRING_END || tok == Tokens.tREGEXP_END) { lex_strterm = null; lex_state = LexState.EXPR_END;...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1d8ec540dc793b2d5ad5084d2cb6b204087302b7/RubyYaccLexer.java/buggy/src/org/jruby/lexer/yacc/RubyYaccLexer.java
yaccValue = "^";
private int yylex() { char c; boolean spaceSeen = false; boolean commandState; if (lex_strterm != null) { int tok = lex_strterm.parseString(this, src); if (tok == Tokens.tSTRING_END || tok == Tokens.tREGEXP_END) { lex_strterm = null; lex_state = LexState.EXPR_END;...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1d8ec540dc793b2d5ad5084d2cb6b204087302b7/RubyYaccLexer.java/buggy/src/org/jruby/lexer/yacc/RubyYaccLexer.java
yaccValue = "%";
private int yylex() { char c; boolean spaceSeen = false; boolean commandState; if (lex_strterm != null) { int tok = lex_strterm.parseString(this, src); if (tok == Tokens.tSTRING_END || tok == Tokens.tREGEXP_END) { lex_strterm = null; lex_state = LexState.EXPR_END;...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1d8ec540dc793b2d5ad5084d2cb6b204087302b7/RubyYaccLexer.java/buggy/src/org/jruby/lexer/yacc/RubyYaccLexer.java
un.notifyError(ImViewerAgent.ERROR, e.getMessage(), e.getCause());
un.notifyError(ImViewerAgent.ERROR, e.getExtendedMessage(), e.getCause());
private void handleException(RenderingServiceException e) { UserNotifier un = ImViewerAgent.getRegistry().getUserNotifier(); un.notifyError(ImViewerAgent.ERROR, e.getMessage(), e.getCause()); parentModel.discard(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/5aacd98a1cfb2219e218c87eed17b5a0f0e9738a/RendererModel.java/buggy/SRC/org/openmicroscopy/shoola/agents/imviewer/rnd/RendererModel.java
} catch(InvocationTargetException e) { Throwable t = e.getTargetException(); if(t instanceof RuntimeException) { throw (RuntimeException)t; } else { throw new RuntimeException(t); }
public void load(final IRuby runtime) throws IOException { Class c = null; try { Class.forName("javax.net.ssl.SSLEngine"); // Java >= 1.5 Class.forName("org.bouncycastle.jce.provider.BouncyCastleProvider"); // BC Class.forName("org.bouncycastle....
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/e9d5ea4364b5570a6c3fc49a95e5e753a06e166d/RubyOpenSSL.java/clean/src/org/jruby/ext/openssl/RubyOpenSSL.java
case 0: case 4: if ((0xffffff6fffffdbffL & l) == 0L) break; if (kind > 56) kind = 56; jjCheckNAdd(4); break;
private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 5; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << cur...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/67f3bf2b9347218e8efc5ecece60bb5f03730152/WMParser_implTokenManager.java/clean/webmacro/src/org/webmacro/parser/WMParser_implTokenManager.java
jjAddStates(0, 1); break; case 1: if ((0xf8000001f8000001L & l) != 0L && kind > 21) kind = 21;
jjAddStates(2, 3);
private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 5; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << cur...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/67f3bf2b9347218e8efc5ecece60bb5f03730152/WMParser_implTokenManager.java/clean/webmacro/src/org/webmacro/parser/WMParser_implTokenManager.java
break; case 1: if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 21) kind = 21;
private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 5; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << cur...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/67f3bf2b9347218e8efc5ecece60bb5f03730152/WMParser_implTokenManager.java/clean/webmacro/src/org/webmacro/parser/WMParser_implTokenManager.java
case 0: case 4: if ((0xffffffebffffdbffL & l) == 0L) break; if (kind > 55) kind = 55; jjCheckNAdd(4); break;
private final int jjMoveNfa_1(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 5; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << cur...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/67f3bf2b9347218e8efc5ecece60bb5f03730152/WMParser_implTokenManager.java/clean/webmacro/src/org/webmacro/parser/WMParser_implTokenManager.java
jjAddStates(0, 1); break; case 1: if ((0xf8000001f8000001L & l) != 0L && kind > 21) kind = 21;
jjAddStates(2, 3);
private final int jjMoveNfa_1(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 5; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << cur...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/67f3bf2b9347218e8efc5ecece60bb5f03730152/WMParser_implTokenManager.java/clean/webmacro/src/org/webmacro/parser/WMParser_implTokenManager.java
break; case 1: if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 21) kind = 21;
private final int jjMoveNfa_1(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 5; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << cur...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/67f3bf2b9347218e8efc5ecece60bb5f03730152/WMParser_implTokenManager.java/clean/webmacro/src/org/webmacro/parser/WMParser_implTokenManager.java
jjAddStates(2, 3);
jjAddStates(4, 5);
private final int jjMoveNfa_3(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 31; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << cu...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/67f3bf2b9347218e8efc5ecece60bb5f03730152/WMParser_implTokenManager.java/clean/webmacro/src/org/webmacro/parser/WMParser_implTokenManager.java
jjAddStates(2, 3);
jjAddStates(4, 5);
private final int jjMoveNfa_3(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 31; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << cu...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/67f3bf2b9347218e8efc5ecece60bb5f03730152/WMParser_implTokenManager.java/clean/webmacro/src/org/webmacro/parser/WMParser_implTokenManager.java
break; case 1: case 0: if ((0xffffffe7ffffffffL & l) == 0L) break; if (kind > 11) kind = 11; jjCheckNAdd(0);
private final int jjMoveNfa_4(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 5; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << cur...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/67f3bf2b9347218e8efc5ecece60bb5f03730152/WMParser_implTokenManager.java/clean/webmacro/src/org/webmacro/parser/WMParser_implTokenManager.java
case 2: if ((0xf8000001f8000001L & l) != 0L && kind > 21) kind = 21; break;
private final int jjMoveNfa_4(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 5; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << cur...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/67f3bf2b9347218e8efc5ecece60bb5f03730152/WMParser_implTokenManager.java/clean/webmacro/src/org/webmacro/parser/WMParser_implTokenManager.java
jjAddStates(4, 5);
jjAddStates(0, 1); break; case 2: if ((0xf8000001f8000001L & l) != 0L && kind > 21) kind = 21;
private final int jjMoveNfa_4(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 5; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << cur...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/67f3bf2b9347218e8efc5ecece60bb5f03730152/WMParser_implTokenManager.java/clean/webmacro/src/org/webmacro/parser/WMParser_implTokenManager.java
case 2: if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 21) kind = 21; break;
private final int jjMoveNfa_4(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 5; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << cur...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/67f3bf2b9347218e8efc5ecece60bb5f03730152/WMParser_implTokenManager.java/clean/webmacro/src/org/webmacro/parser/WMParser_implTokenManager.java
break; case 2: if (jjCanMove_0(hiByte, i1, i2, l1, l2) && kind > 21) kind = 21;
private final int jjMoveNfa_4(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 5; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << cur...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/67f3bf2b9347218e8efc5ecece60bb5f03730152/WMParser_implTokenManager.java/clean/webmacro/src/org/webmacro/parser/WMParser_implTokenManager.java
if ((active0 & 0x400000L) != 0L) return 4;
private final int jjStopStringLiteralDfa_3(int pos, long active0){ switch (pos) { case 0: if ((active0 & 0x804000L) != 0L) return 0; if ((active0 & 0x1c000000L) != 0L) { jjmatchedKind = 52; return 29; } if ((active0 & 0x3000000000L) != 0L...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/67f3bf2b9347218e8efc5ecece60bb5f03730152/WMParser_implTokenManager.java/clean/webmacro/src/org/webmacro/parser/WMParser_implTokenManager.java
if ((active0 & 0xc000000L) != 0L) return 29;
private final int jjStopStringLiteralDfa_3(int pos, long active0){ switch (pos) { case 0: if ((active0 & 0x804000L) != 0L) return 0; if ((active0 & 0x1c000000L) != 0L) { jjmatchedKind = 52; return 29; } if ((active0 & 0x3000000000L) != 0L...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/67f3bf2b9347218e8efc5ecece60bb5f03730152/WMParser_implTokenManager.java/clean/webmacro/src/org/webmacro/parser/WMParser_implTokenManager.java
if ((active0 & 0xc000000L) != 0L) return 29;
private final int jjStopStringLiteralDfa_3(int pos, long active0){ switch (pos) { case 0: if ((active0 & 0x804000L) != 0L) return 0; if ((active0 & 0x1c000000L) != 0L) { jjmatchedKind = 52; return 29; } if ((active0 & 0x3000000000L) != 0L...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/67f3bf2b9347218e8efc5ecece60bb5f03730152/WMParser_implTokenManager.java/clean/webmacro/src/org/webmacro/parser/WMParser_implTokenManager.java
for (Iterator e = map.keySet().iterator(); e.hasNext(); ) { Object key = e.next();
List values = new ArrayList(); List keys = new ArrayList(); Iterator valuesIterator = map.values().iterator(); assertTrue(valuesIterator.hasNext()); for (Iterator keySetIterator = map.keySet().iterator(); keySetIterator.hasNext(); ) { Object key = keySetIterator.next();
public void testMap() { try { SimpleInterface si = (SimpleInterface) manager.eval("ruby", "(java)", 1, 1, "SimpleInterfaceImpl.new"); Map map = si.getMap(); for (Iterator e = map.keySet().iterator(); e.hasNext(); ) { Object key = e.next(); Object value = map.get(key); assertTrue(key.getClass() ==...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/b46a9962586a768eaf50113d17bdb4aef7e22000/TestBSF.java/buggy/test/org/jruby/javasupport/test/TestBSF.java
fail("Problem evaluating List Test: " + e);
fail("Problem evaluating Map Test: " + e);
public void testMap() { try { SimpleInterface si = (SimpleInterface) manager.eval("ruby", "(java)", 1, 1, "SimpleInterfaceImpl.new"); Map map = si.getMap(); for (Iterator e = map.keySet().iterator(); e.hasNext(); ) { Object key = e.next(); Object value = map.get(key); assertTrue(key.getClass() ==...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/b46a9962586a768eaf50113d17bdb4aef7e22000/TestBSF.java/buggy/test/org/jruby/javasupport/test/TestBSF.java
defineSingletonMethod("utime", Arity.optional());
protected void initializeClass() { IRuby runtime = getRuntime(); RubyString separator = runtime.newString("/"); separator.freeze(); defineConstant("SEPARATOR", separator); defineConstant("Separator", separator); RubyString altSeparator = runtime.newString(File.separatorChar ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9b8da3e92c02d78b126497a639c83020447163a0/FileMetaClass.java/clean/src/org/jruby/runtime/builtin/meta/FileMetaClass.java
public IRubyObject lstat(IRubyObject filename) { RubyString name = RubyString.stringValue(filename); return getRuntime().newRubyFileStat(new NormalizedFile(name.getValue())); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9b8da3e92c02d78b126497a639c83020447163a0/FileMetaClass.java/clean/src/org/jruby/runtime/builtin/meta/FileMetaClass.java
public void marshalTo(MarshalStream output) throws java.io.IOException {
public void marshalTo(MarshalStream output) throws IOException { output.writeIVar(this, output); output.writeUserClass(this, getRuntime().getClass("Hash"), output);
public void marshalTo(MarshalStream output) throws java.io.IOException { output.write('{'); output.dumpInt(getValueMap().size()); for (Iterator iter = entryIterator(); iter.hasNext();) { Map.Entry entry = (Map.Entry) iter.next(); output.dumpObject((IRubyObject) entry.getKey()); output.dumpObject((IRubyOb...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d70012034b8795a6917f9e3b903281a59f12d372/RubyHash.java/buggy/src/org/jruby/RubyHash.java
if (!getMetaClass().equals(getRuntime().getClass("Hash"))) { output.writeInstanceVars(this, output); }
public void marshalTo(MarshalStream output) throws java.io.IOException { output.write('{'); output.dumpInt(getValueMap().size()); for (Iterator iter = entryIterator(); iter.hasNext();) { Map.Entry entry = (Map.Entry) iter.next(); output.dumpObject((IRubyObject) entry.getKey()); output.dumpObject((IRubyOb...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d70012034b8795a6917f9e3b903281a59f12d372/RubyHash.java/buggy/src/org/jruby/RubyHash.java
public static RubyHash unmarshalFrom(UnmarshalStream input) throws java.io.IOException {
public static RubyHash unmarshalFrom(UnmarshalStream input) throws IOException {
public static RubyHash unmarshalFrom(UnmarshalStream input) throws java.io.IOException { RubyHash result = newHash(input.getRuntime()); input.registerLinkTarget(result); int size = input.unmarshalInt(); for (int i = 0; i < size; i++) { IRubyObject key = input.unmarshalObject()...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d70012034b8795a6917f9e3b903281a59f12d372/RubyHash.java/buggy/src/org/jruby/RubyHash.java
input.register(result);
public static RubyModule unmarshalFrom(UnmarshalStream input) throws java.io.IOException { String name = input.unmarshalString(); Ruby ruby = input.getRuntime(); RubyModule result = ruby.getClasses().getClassFromPath(name); if (result == null) { throw new NameError(ruby, "unin...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/9db4d278a734c4fdfd9a83ed95575a45577f1e1b/RubyModule.java/buggy/org/jruby/RubyModule.java
if ( element == null ) throw new IllegalArgumentException( "Null elements are not allowed " + "in parameter collections" );
public void errorIfInvalid(QueryParameter parameter) { super.errorIfInvalid( parameter ); if ( ! optional && ((Collection) parameter.value).size() < 1 ) throw new IllegalArgumentException( "Requried collection parameters may not be empty." );...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b0d9b08448464cb80e12bda271a852daf0e5bd6a/QueryParameterDef.java/clean/components/server/src/ome/services/query/QueryParameterDef.java
self.checkArgumentCount(args,1,1);
public IRubyObject method3(ThreadContext tc, IRubyObject self, IRubyObject[] args) { //GREP List arr = eachToList(tc,self,module); List result = new ArrayList(); IRubyObject pattern = args[0]; if(!tc.isBlockGiven()) { for(Iterator iter = arr....
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/bd851bce1bc725dc2c1084a0842dfd0fa37907ee/RubyEnumerable.java/buggy/src/org/jruby/RubyEnumerable.java
return "</color>";
return "</font>";
protected String renderColorEnd() { return "</color>"; }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/3b3eb520f27d3c9af235ee5b06769be73322daec/HTMLPageRenderer.java/clean/wiki/src/org/tcdi/opensource/wiki/renderer/HTMLPageRenderer.java
private void generateSourceFile(SourceFileData sourceFileData) throws IOException { String filename = sourceFileData.getNormalizedName() + ".html"; File file = new File(destinationDir, filename); PrintStream out = null; try { out = new PrintStream(new FileOutputStream(file)); out.println("<html>"); out.pr...
50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/e554a91dcb997ac716f6bbc702c152a7fa5040ca/HTMLReport.java/clean/cobertura/src/net/sourceforge/cobertura/reporting/html/HTMLReport.java
SortedMap sortedSourceFiles = new TreeMap(); for (Iterator iter = sourceFiles.iterator(); iter.hasNext();) { SourceFileData sourceFileData = (SourceFileData)iter.next(); sortedSourceFiles.put(sourceFileData.getBaseName(), sourceFileData); }
Vector sortedSourceFiles = new Vector(); sortedSourceFiles.addAll(sourceFiles); Collections.sort(sortedSourceFiles, new SourceFileDataBaseNameComparator());
private void generateSourceFileList(PackageData packageData) throws IOException { String filename; SortedSet sourceFiles; if (packageData == null) { filename = "frame-sourcefiles.html"; sourceFiles = projectData.getSourceFiles(); } else { filename = "frame-sourcefiles-" + packageData.getName() + ".html"...
50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/e554a91dcb997ac716f6bbc702c152a7fa5040ca/HTMLReport.java/clean/cobertura/src/net/sourceforge/cobertura/reporting/html/HTMLReport.java
for (Iterator iter = sortedSourceFiles.values().iterator(); iter
for (Iterator iter = sortedSourceFiles.iterator(); iter
private void generateSourceFileList(PackageData packageData) throws IOException { String filename; SortedSet sourceFiles; if (packageData == null) { filename = "frame-sourcefiles.html"; sourceFiles = projectData.getSourceFiles(); } else { filename = "frame-sourcefiles-" + packageData.getName() + ".html"...
50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/e554a91dcb997ac716f6bbc702c152a7fa5040ca/HTMLReport.java/clean/cobertura/src/net/sourceforge/cobertura/reporting/html/HTMLReport.java
throws DSOutOfServiceException, DSAccessException
throws DSOutOfServiceException, DSAccessException
public List retrieveImagesInUserDatasetsNotInCategoryGroup( CategoryGroupData group) throws DSOutOfServiceException, DSAccessException { Iterator i = group.getCategories().iterator(); Map ids = new HashMap(); CategorySummary cs; Iterator k; Object obj; ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a82d641ae8b6aae180291dcfe5e2b1c45e55ea11/STSAdapter.java/clean/SRC/org/openmicroscopy/shoola/env/data/STSAdapter.java
Iterator i = group.getCategories().iterator(); Map ids = new HashMap(); CategorySummary cs; Iterator k; Object obj; while (i.hasNext()) { cs = (CategorySummary) i.next(); k = cs.getImages().iterator(); while (k.hasNext()) { obj = k.next(); ids.put(obj, obj); } } List images = new ArrayList(); List userImages = registry...
return retrieveImagesInUserDatasetsNotInCategoryGroup(group, null);
public List retrieveImagesInUserDatasetsNotInCategoryGroup( CategoryGroupData group) throws DSOutOfServiceException, DSAccessException { Iterator i = group.getCategories().iterator(); Map ids = new HashMap(); CategorySummary cs; Iterator k; Object obj; ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a82d641ae8b6aae180291dcfe5e2b1c45e55ea11/STSAdapter.java/clean/SRC/org/openmicroscopy/shoola/env/data/STSAdapter.java
PixelsService service = PixelsService.getInstance();
PixelsService service = new PixelsService(PixelsService.ROOT_DEFAULT);
protected void setUp() { pixels = new Pixels(); pixels.setId(1L); pixels.setSizeX(512); pixels.setSizeY(512); pixels.setSizeZ(64); pixels.setSizeC(3); pixels.setSizeT(50); PixelsType type = new PixelsType(); pixels.setPixelsType(type)...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ae0b01fad17fcacba3ec0999ca1ad645f389b5f9/LargePixelBufferUnitTest.java/clean/components/omeio-nio/test/ome/io/nio/utests/LargePixelBufferUnitTest.java
public void displaysImagesName() {
public void displaysImagesName() {
public void displaysImagesName() { if (model.getState() == DISCARDED) throw new IllegalStateException("This method cannot be invoked "+ "in the DISCARDED state."); PartialNameVisitor v = new PartialNameVisitor(view.isPartialName()); accept(v, TreeImageDisplayVisitor.TREEIMAGE_NODE_ONLY); vie...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9794ffbd035a4de717ee211573b4844dd0eb3371/BrowserComponent.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/browser/BrowserComponent.java
public boolean isMainTree() { // TODO Auto-generated method stub return model.isMainTree(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9794ffbd035a4de717ee211573b4844dd0eb3371/BrowserComponent.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/browser/BrowserComponent.java
if (display != null) { if (display.containsImages()) { controller.getAction(BrowserControl.FORWARD_NAV).setEnabled(!v); } else { controller.getAction(BrowserControl.FORWARD_NAV).setEnabled(v); } controller.getAction(BrowserControl.BACKWARD_NAV).setEnabled(!v); long id = -1; if (model.getGoIntoNode() != null) id = model...
if (display == null) return; if (display.containsImages()) { controller.getAction(BrowserControl.FORWARD_NAV).setEnabled(!v); } else { controller.getAction(BrowserControl.FORWARD_NAV).setEnabled(v); } controller.getAction(BrowserControl.BACKWARD_NAV).setEnabled(!v); long id = -1; if (model.getGoIntoNode() != null) id =...
public void navigate(boolean v) { TreeImageDisplay display = getLastSelectedDisplay(); if (display != null) { //shouldn't happen if (display.containsImages()) { controller.getAction(BrowserControl.FORWARD_NAV).setEnabled(!v); } else { controller.g...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9794ffbd035a4de717ee211573b4844dd0eb3371/BrowserComponent.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/browser/BrowserComponent.java
setSelectedNode();
public void refreshEdition(DataObject object, int op) { switch (model.getState()) { case NEW: case READY: break; default: new IllegalStateException("This method can only be invoked " + "in the NEW or READY state."); ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9794ffbd035a4de717ee211573b4844dd0eb3371/BrowserComponent.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/browser/BrowserComponent.java
hasDataToSave(display);
public void setSelectedDisplay(TreeImageDisplay display) { switch (model.getState()) { //case LOADING_DATA: //case LOADING_LEAVES: case DISCARDED: throw new IllegalStateException( "This method cannot be invoked in the LOADING_DATA, "+ ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9794ffbd035a4de717ee211573b4844dd0eb3371/BrowserComponent.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/browser/BrowserComponent.java
hasDataToSave(display);
public void setSelectedDisplays(TreeImageDisplay[] nodes) { if (nodes.length == 0) return; TreeImageDisplay oldDisplay = model.getLastSelectedDisplay(); TreeImageDisplay display = nodes[nodes.length-1]; if (oldDisplay != null && oldDisplay.equals(display)) return; model.setSele...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/9794ffbd035a4de717ee211573b4844dd0eb3371/BrowserComponent.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/browser/BrowserComponent.java
if (runtime.getRubyClass().isSingleton()) { singletonClass = (MetaClass)threadContext.popClass();
if (containingClass.isSingleton()) { singletonClass = (MetaClass) threadContext.popClass();
public void visitDefnNode(DefnNode iVisited) { RubyModule containingClass = threadContext.getRubyClass(); if (containingClass == null) { throw new TypeError(runtime, "No class to add method."); } String name = iVisited.getName(); if (containingClass == runtime.getClasse...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/94499f739863f7ae6ae84bc6d48e9c07463792d2/EvaluateVisitor.java/buggy/src/org/jruby/evaluator/EvaluateVisitor.java
*/
public void visitDefnNode(DefnNode iVisited) { RubyModule containingClass = threadContext.getRubyClass(); if (containingClass == null) { throw new TypeError(runtime, "No class to add method."); } String name = iVisited.getName(); if (containingClass == runtime.getClasse...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/94499f739863f7ae6ae84bc6d48e9c07463792d2/EvaluateVisitor.java/buggy/src/org/jruby/evaluator/EvaluateVisitor.java
public Collection saveAndReturnCollection(Collection graph)
public Collection saveAndReturnCollection( @Validate(IObject.class) Collection graph)
public Collection saveAndReturnCollection(Collection graph) { throw new RuntimeException("Not implemented yet."); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/3dc2e49ad9f90e9d8a6fe3bc4d15d5ade782b071/UpdateImpl.java/clean/components/server/src/ome/logic/UpdateImpl.java
public void saveCollection(Collection graph)
public void saveCollection(@Validate(IObject.class) Collection graph)
public void saveCollection(Collection graph) { beforeSave(); for (Object _object : graph) { IObject obj = (IObject) _object; obj = internalSave(obj); } afterSave(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/3dc2e49ad9f90e9d8a6fe3bc4d15d5ade782b071/UpdateImpl.java/clean/components/server/src/ome/logic/UpdateImpl.java
public RubyScope getScope() { return rubyScope;
public ScopeStack getScope() { return scope;
public RubyScope getScope() { return rubyScope; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/e774974ded4f5d3e83d7f3e7d5f152a6de3fffee/Ruby.java/clean/org/jruby/Ruby.java
rubyScope.push();
getScope().push();
public void init() { if (initialized) { return; } initialized = true; setIter(new RubyIter()); // ruby_iter = &iter; rubyFrame = topFrame = new RubyFrame(this); // rb_origenviron = environ; // Init_stack(0); // Init_heap(); rubyScope.push(); ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/e774974ded4f5d3e83d7f3e7d5f152a6de3fffee/Ruby.java/clean/org/jruby/Ruby.java
topScope = rubyScope;
topScope = (Scope)getScope().getTop();
public void init() { if (initialized) { return; } initialized = true; setIter(new RubyIter()); // ruby_iter = &iter; rubyFrame = topFrame = new RubyFrame(this); // rb_origenviron = environ; // Init_stack(0); // Init_heap(); rubyScope.push(); ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/e774974ded4f5d3e83d7f3e7d5f152a6de3fffee/Ruby.java/clean/org/jruby/Ruby.java
rubyScope.pop(); rubyScope = topScope;
getScope().pop(); getScope().push(topScope);
public void init() { if (initialized) { return; } initialized = true; setIter(new RubyIter()); // ruby_iter = &iter; rubyFrame = topFrame = new RubyFrame(this); // rb_origenviron = environ; // Init_stack(0); // Init_heap(); rubyScope.push(); ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/e774974ded4f5d3e83d7f3e7d5f152a6de3fffee/Ruby.java/clean/org/jruby/Ruby.java
RubyScope oldScope = getScope(); setScope(tmpBlock.scope);
Scope oldScope = (Scope)getScope().getTop(); getScope().setTop(tmpBlock.scope);
public RubyObject yield0(RubyObject value, RubyObject self, RubyModule klass, boolean acheck) { if (!isBlockGiven()) { throw new RaiseException(this, "LocalJumpError", "yield called out of block"); } RubyVarmap.push(this); pushClass(); RubyBlock tmpBlock = block.getTmp(...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/e774974ded4f5d3e83d7f3e7d5f152a6de3fffee/Ruby.java/clean/org/jruby/Ruby.java
setScope(oldScope);
getScope().setTop(oldScope);
public RubyObject yield0(RubyObject value, RubyObject self, RubyModule klass, boolean acheck) { if (!isBlockGiven()) { throw new RaiseException(this, "LocalJumpError", "yield called out of block"); } RubyVarmap.push(this); pushClass(); RubyBlock tmpBlock = block.getTmp(...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/e774974ded4f5d3e83d7f3e7d5f152a6de3fffee/Ruby.java/clean/org/jruby/Ruby.java
String s = doBasic.getNameText(); if (s == null || s.length() == 0) { doBasic.resetNameArea(); handleEmptyNameArea(); return; }
private void finish() { switch (model.getEditorType()) { case Editor.CREATE_EDITOR: controller.createObject(fillDataObject()); break; case Editor.PROPERTIES_EDITOR: finishEdit(); } }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/bde0d9ea0ad5bcb7ca080ea7ee82bc689e6bd9da/EditorUI.java/clean/SRC/org/openmicroscopy/shoola/agents/treeviewer/editors/EditorUI.java
throw getRuntime().newNameError("`" + varName + "' is not allowable as an instance variable name");
throw getRuntime().newNameError("`" + varName + "' is not allowable as an instance variable name", varName);
public IRubyObject instance_variable_get(IRubyObject var) { String varName = var.asSymbol(); if (!varName.startsWith("@")) { throw getRuntime().newNameError("`" + varName + "' is not allowable as an instance variable name"); } IRubyObject variable = getInstanceVariable(varName); // Pickaxe ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1278c5bb3507a052d150d814f15453542ae41aed/RubyObject.java/clean/src/org/jruby/RubyObject.java
throw getRuntime().newNameError("`" + varName + "' is not allowable as an instance variable name");
throw getRuntime().newNameError("`" + varName + "' is not allowable as an instance variable name", varName);
public IRubyObject instance_variable_set(IRubyObject var, IRubyObject value) { String varName = var.asSymbol(); if (!varName.startsWith("@")) { throw getRuntime().newNameError("`" + varName + "' is not allowable as an instance variable name"); } return setInstanceVariable(var.asSymbol(), value)...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1278c5bb3507a052d150d814f15453542ae41aed/RubyObject.java/clean/src/org/jruby/RubyObject.java
throw getRuntime().newNameError(msg);
throw getRuntime().newNameError(msg, name);
public IRubyObject method_missing(IRubyObject[] args) { if (args.length == 0) { throw getRuntime().newArgumentError("no id given"); } String name = args[0].asSymbol(); String description = callMethod(getRuntime().getCurrentContext(), "inspect").toString(); boolean noCla...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1278c5bb3507a052d150d814f15453542ae41aed/RubyObject.java/clean/src/org/jruby/RubyObject.java
throw getRuntime().newNoMethodError(msg);
throw getRuntime().newNoMethodError(msg, name);
public IRubyObject method_missing(IRubyObject[] args) { if (args.length == 0) { throw getRuntime().newArgumentError("no id given"); } String name = args[0].asSymbol(); String description = callMethod(getRuntime().getCurrentContext(), "inspect").toString(); boolean noCla...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1278c5bb3507a052d150d814f15453542ae41aed/RubyObject.java/clean/src/org/jruby/RubyObject.java
throw getRuntime().newNameError("wrong instance variable name " + id);
throw getRuntime().newNameError("wrong instance variable name " + id, id);
public IRubyObject remove_instance_variable(IRubyObject name) { String id = name.asSymbol(); if (!IdUtil.isInstanceVariable(id)) { throw getRuntime().newNameError("wrong instance variable name " + id); } if (!isTaint() && getRuntime().getSafeLevel() >= 4) { throw getRuntim...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1278c5bb3507a052d150d814f15453542ae41aed/RubyObject.java/clean/src/org/jruby/RubyObject.java
throw getRuntime().newNameError("instance variable " + id + " not defined");
throw getRuntime().newNameError("instance variable " + id + " not defined", id);
public IRubyObject remove_instance_variable(IRubyObject name) { String id = name.asSymbol(); if (!IdUtil.isInstanceVariable(id)) { throw getRuntime().newNameError("wrong instance variable name " + id); } if (!isTaint() && getRuntime().getSafeLevel() >= 4) { throw getRuntim...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/1278c5bb3507a052d150d814f15453542ae41aed/RubyObject.java/clean/src/org/jruby/RubyObject.java
for (int i = 0; i < pixs.getSizeC().intValue(); i++) { setQuantizationMap(i, getChannelFamily(i), getChannelCurveCoefficient(i), false); }
RenderingControlProxy(RenderingEngine servant, PixelsDimensions pixDims, List m, int sizeCache) { if (servant == null) throw new NullPointerException("No rendering engine."); if (pixDims == null) throw new NullPointerException("No pixels dimensions.");...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/2264b41cad5f5a8f753df78c8ae071e93710a6ec/RenderingControlProxy.java/buggy/SRC/org/openmicroscopy/shoola/env/rnd/RenderingControlProxy.java
if (args == null || args.length == 0) { throw recv.getRuntime().newArgumentError(args.length, 1); }
public static IRubyObject eval(IRubyObject recv, IRubyObject[] args) { RubyString src = args[0].convertToString(); IRubyObject scope = null; String file = "(eval)"; if (args.length > 1) { if (!args[1].isNil()) { scope = args[1]; } ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/10adf39a2aa5c73c2bb52dd3eced57b70daca628/RubyKernel.java/buggy/src/org/jruby/RubyKernel.java
return "RenderingSetting"+(attributeId==null ? ":Hash"+this.hashCode() : ":"+attributeId);
return "RenderingSetting"+(attributeId==null ? ":Hash_"+this.hashCode() : ":Id_"+attributeId);
public String toString(){ return "RenderingSetting"+(attributeId==null ? ":Hash"+this.hashCode() : ":"+attributeId); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/51a3c546dfc7a7a98b29771a459df19094fc5b51/RenderingSetting.java/buggy/components/common/src/ome/model/RenderingSetting.java
return delegate.getAvailableFamilies();
List<Family> families = delegate.getAvailableFamilies(); List result = new ArrayList(); for (Family family : families) { result.add( copyFamily(family) ); } return result;
public List getAvailableFamilies() { return delegate.getAvailableFamilies(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/d5f70f979d40e800343124ec8c28a1f184e2acc8/RenderingBean.java/clean/components/ejb/src/ome/ro/ejb/RenderingBean.java
return delegate.getAvailableModels();
List<RenderingModel> models = delegate.getAvailableModels(); List result = new ArrayList(); for (RenderingModel model : models) { result.add( copyRenderingModel(model)); } return result;
public List getAvailableModels() { return delegate.getAvailableModels(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/d5f70f979d40e800343124ec8c28a1f184e2acc8/RenderingBean.java/clean/components/ejb/src/ome/ro/ejb/RenderingBean.java
return delegate.getChannelFamily(arg0);
Family family = delegate.getChannelFamily(arg0); return copyFamily(family);
public Family getChannelFamily(int arg0) { return delegate.getChannelFamily(arg0); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/d5f70f979d40e800343124ec8c28a1f184e2acc8/RenderingBean.java/clean/components/ejb/src/ome/ro/ejb/RenderingBean.java
return delegate.getModel();
return copyRenderingModel(delegate.getModel());
public RenderingModel getModel() { return delegate.getModel(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/d5f70f979d40e800343124ec8c28a1f184e2acc8/RenderingBean.java/clean/components/ejb/src/ome/ro/ejb/RenderingBean.java