rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
meta
stringlengths
141
403
if (start <= end)
if ( start <= end)
public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String prop; Object nextProp = null; Accessor acc...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/7a63005219984b389eda2de9922300e67a035451/PropertyOperatorCache.java/clean/webmacro/src/org/webmacro/engine/PropertyOperatorCache.java
return _cache.getOperator(nextProp) .getProperty(context, nextProp, names, start, end);
return _cache.getOperator(nextPropValue) .getProperty(context, nextPropValue, names, start, end);
public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String prop; Object nextProp = null; Accessor acc...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/7a63005219984b389eda2de9922300e67a035451/PropertyOperatorCache.java/clean/webmacro/src/org/webmacro/engine/PropertyOperatorCache.java
return nextProp;
return nextPropValue;
public Object getProperty (final Context context, final Object instance, final Object[] names, int start, int end) throws PropertyException { String prop; Object nextProp = null; Accessor acc...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/7a63005219984b389eda2de9922300e67a035451/PropertyOperatorCache.java/clean/webmacro/src/org/webmacro/engine/PropertyOperatorCache.java
int parentPos = names.length - 1; int binPos = parentPos - 1;
int binPos = names.length - 2;
public boolean setProperty (Context context, Object instance, Object[] names, Object value, int pos) throws PropertyException, NoSuchMethodException { // names[pos] is wha...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/7a63005219984b389eda2de9922300e67a035451/PropertyOperatorCache.java/clean/webmacro/src/org/webmacro/engine/PropertyOperatorCache.java
public boolean setProperty (Context context, Object instance, Object[] names, Object value, int pos) throws PropertyException, NoSuchMethodException { // names[pos] is wha...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/7a63005219984b389eda2de9922300e67a035451/PropertyOperatorCache.java/clean/webmacro/src/org/webmacro/engine/PropertyOperatorCache.java
window.setVisible(false);
window.dispose();
public void mouseMoved(MouseEvent e) { if(e != null){ mouseEvent = e; } if(!canShowPopup){ return; } int loc = list.locationToIndex(e.getPoint()); Point point = list.indexToLocation(loc); ContactItem item ...
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/30107726addd789f577a8badda45d46e52d4851f/ContactGroup.java/clean/src/java/org/jivesoftware/spark/ui/ContactGroup.java
threadError = ruby.defineClass("ThreadError", standardError);
public void initDefaultExceptionClasses() { RubyClass exceptionClass = ruby.getClasses().getExceptionClass(); systemExit = ruby.defineClass("SystemExit", exceptionClass); fatal = ruby.defineClass("Fatal", exceptionClass); interrupt = ruby.defineClass("Interrupt", exceptionClass);...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/97a2e6c00e86a04f4922893e5ab540f1c1636188/RubyExceptions.java/buggy/org/jruby/runtime/RubyExceptions.java
toolBar = new ToolBar(control, registry, maxT, defaultT, maxZ, defaultZ);
initBars(registry, maxT, defaultT, maxZ, defaultZ);
ViewerUIF(ViewerCtrl control, Registry registry, PixelsDimensions pxsDims, int defaultT, int defaultZ) { super("", registry.getTaskBar()); active = false; this.control = control; im = IconManager.getInstance(registry); int maxT = pxsDims.sizeT-1; int maxZ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ff5419c429a530b7d53a76f42ded518c0b34b986/ViewerUIF.java/clean/SRC/org/openmicroscopy/shoola/agents/viewer/ViewerUIF.java
container.add(bottomBar, BorderLayout.SOUTH);
private void buildGUI() { Container container = getContentPane(); layer = new JLayeredPane(); drawingCanvas = new DrawingCanvas(); canvas = new ImageCanvas(this, control); layer.add(canvas, new Integer(Viewer.IMAGE_LEVEL)); scrollPane = new JScrollPane(layer); con...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ff5419c429a530b7d53a76f42ded518c0b34b986/ViewerUIF.java/clean/SRC/org/openmicroscopy/shoola/agents/viewer/ViewerUIF.java
void setDefaultZT(int t, int z, int sizeT, int sizeZ) { ToolBarManager tbm = toolBar.getManager(); tbm.onTChange(t); tbm.onZChange(z); int maxZ = sizeZ-1; int maxT = sizeT-1; tbm.setMaxT(maxT); tbm.setMaxZ(maxZ); toolBar.getZLabel().setText("/"+maxZ); ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ff5419c429a530b7d53a76f42ded518c0b34b986/ViewerUIF.java/clean/SRC/org/openmicroscopy/shoola/agents/viewer/ViewerUIF.java
void setDefaultZT(int t, int z, int sizeT, int sizeZ) { ToolBarManager tbm = toolBar.getManager(); tbm.onTChange(t); tbm.onZChange(z); int maxZ = sizeZ-1; int maxT = sizeT-1; tbm.setMaxT(maxT); tbm.setMaxZ(maxZ); toolBar.getZLabel().setText("/"+maxZ); ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ff5419c429a530b7d53a76f42ded518c0b34b986/ViewerUIF.java/clean/SRC/org/openmicroscopy/shoola/agents/viewer/ViewerUIF.java
RubyArray ary = (RubyArray)RubyArray.m_newArray(getRuby(), node.nd_alen()); for (int i = 0; node != null ; node = node.nd_next()) { ary.getArray().set(i++, eval(self, node.nd_head())); } return ary;
ArrayList ary = new ArrayList(node.nd_alen()); for (; node != null ; node = node.nd_next()) { ary.add(eval(self, node.nd_head())); } return RubyArray.m_newArray(getRuby(), ary);
public RubyObject eval(RubyObject self, NODE n) { NODE node = n; RubyBoolean cond = null; RubyObject[] args = null; RubyObject result = null; // int state; // RubyOriginalMethods rom = getRuby().getOriginalMethods(); while (true) { ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/12847c6fd28fea4e223d132ced46eb1b4cb9de9a/RubyInterpreter.java/clean/org/jruby/interpreter/RubyInterpreter.java
ruby_class.funcall(getRuby().intern("method_added"), ((RubyId)node.nd_mid()).toSymbol());
public RubyObject eval(RubyObject self, NODE n) { NODE node = n; RubyBoolean cond = null; RubyObject[] args = null; RubyObject result = null; // int state; // RubyOriginalMethods rom = getRuby().getOriginalMethods(); while (true) { ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/12847c6fd28fea4e223d132ced46eb1b4cb9de9a/RubyInterpreter.java/clean/org/jruby/interpreter/RubyInterpreter.java
if (superClass == null) { superClass = getRuby().getObjectClass(); } rubyClass = getRuby().defineClassId((RubyId)node.nd_cname(), (RubyClass)superClass); ruby_class.setConstant((RubyId)node.nd_cname(), rubyClass); rubyClass.setClassPath((RubyClass)ruby_class, ((RubyId)node.nd_cname()).toName());
public RubyObject eval(RubyObject self, NODE n) { NODE node = n; RubyBoolean cond = null; RubyObject[] args = null; RubyObject result = null; // int state; // RubyOriginalMethods rom = getRuby().getOriginalMethods(); while (true) { ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/12847c6fd28fea4e223d132ced46eb1b4cb9de9a/RubyInterpreter.java/clean/org/jruby/interpreter/RubyInterpreter.java
while (cbase != null && cbase.nd_next() != null) { RubyObject rubyClass = (RubyObject)cbase.nd_clss(); if (rubyClass.isNil()) {
protected RubyObject getConstant(NODE cref, RubyId id, RubyObject self) { NODE cbase = cref; // while (cbase != null && cbase.nd_next() != null) {// RubyObject rubyClass = (RubyObject)cbase.nd_clss();// if (rubyClass.isNil()) { return self.getRubyClass().get...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/12847c6fd28fea4e223d132ced46eb1b4cb9de9a/RubyInterpreter.java/clean/org/jruby/interpreter/RubyInterpreter.java
} else if (rubyClass.getInstanceVariables().get(id) != null) { return (RubyObject)rubyClass.getInstanceVariables().get(id); } cbase = cbase.nd_next(); } return ((RubyModule)cref.nd_clss()).getConstant(id);
protected RubyObject getConstant(NODE cref, RubyId id, RubyObject self) { NODE cbase = cref; // while (cbase != null && cbase.nd_next() != null) {// RubyObject rubyClass = (RubyObject)cbase.nd_clss();// if (rubyClass.isNil()) { return self.getRubyClass().get...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/12847c6fd28fea4e223d132ced46eb1b4cb9de9a/RubyInterpreter.java/clean/org/jruby/interpreter/RubyInterpreter.java
if (state != 0) {
/*if (state != 0) {
private RubyClass getSuperClass(RubyObject self, NODE node) { RubyObject obj; int state = 1; // unreachable // PUSH_TAG(PROT_NONE); // if ((state = EXEC_TAG()) == 0 ) { obj = eval(self, node); // } // POP_TAG(); if (state != 0) { ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/12847c6fd28fea4e223d132ced46eb1b4cb9de9a/RubyInterpreter.java/clean/org/jruby/interpreter/RubyInterpreter.java
throw new RubyTypeException("undefined superclass `" + ((RubyId)node.nd_mid()).toName() + "'");
throw new RubyTypeException("undefined superclass '" + ((RubyId)node.nd_mid()).toName() + "'");
private RubyClass getSuperClass(RubyObject self, NODE node) { RubyObject obj; int state = 1; // unreachable // PUSH_TAG(PROT_NONE); // if ((state = EXEC_TAG()) == 0 ) { obj = eval(self, node); // } // POP_TAG(); if (state != 0) { ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/12847c6fd28fea4e223d132ced46eb1b4cb9de9a/RubyInterpreter.java/clean/org/jruby/interpreter/RubyInterpreter.java
throw new RubyTypeException("undefined superclass `" + ((RubyId)node.nd_vid()).toName() + "'");
throw new RubyTypeException("undefined superclass '" + ((RubyId)node.nd_vid()).toName() + "'");
private RubyClass getSuperClass(RubyObject self, NODE node) { RubyObject obj; int state = 1; // unreachable // PUSH_TAG(PROT_NONE); // if ((state = EXEC_TAG()) == 0 ) { obj = eval(self, node); // } // POP_TAG(); if (state != 0) { ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/12847c6fd28fea4e223d132ced46eb1b4cb9de9a/RubyInterpreter.java/clean/org/jruby/interpreter/RubyInterpreter.java
}
}*/
private RubyClass getSuperClass(RubyObject self, NODE node) { RubyObject obj; int state = 1; // unreachable // PUSH_TAG(PROT_NONE); // if ((state = EXEC_TAG()) == 0 ) { obj = eval(self, node); // } // POP_TAG(); if (state != 0) { ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/12847c6fd28fea4e223d132ced46eb1b4cb9de9a/RubyInterpreter.java/clean/org/jruby/interpreter/RubyInterpreter.java
Frame frame = rubyFrame; frame.setTmp(rubyFrame); rubyFrame = frame;
public RubyObject setupModule(RubyModule module, NODE n) { NODE node = n; // String file = ruby_sourcefile; // int line = ruby_sourceline; // TMP_PROTECT; // frame = ruby_frame; // frame.tmp(ruby_frame); // ruby_frame = frame; // PUSH_CLASS(); ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/12847c6fd28fea4e223d132ced46eb1b4cb9de9a/RubyInterpreter.java/clean/org/jruby/interpreter/RubyInterpreter.java
pushClass();
public RubyObject setupModule(RubyModule module, NODE n) { NODE node = n; // String file = ruby_sourcefile; // int line = ruby_sourceline; // TMP_PROTECT; // frame = ruby_frame; // frame.tmp(ruby_frame); // ruby_frame = frame; // PUSH_CLASS(); ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/12847c6fd28fea4e223d132ced46eb1b4cb9de9a/RubyInterpreter.java/clean/org/jruby/interpreter/RubyInterpreter.java
getRuby().rubyScope.push();
public RubyObject setupModule(RubyModule module, NODE n) { NODE node = n; // String file = ruby_sourcefile; // int line = ruby_sourceline; // TMP_PROTECT; // frame = ruby_frame; // frame.tmp(ruby_frame); // ruby_frame = frame; // PUSH_CLASS(); ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/12847c6fd28fea4e223d132ced46eb1b4cb9de9a/RubyInterpreter.java/clean/org/jruby/interpreter/RubyInterpreter.java
PUSH_CREF(module);
public RubyObject setupModule(RubyModule module, NODE n) { NODE node = n; // String file = ruby_sourcefile; // int line = ruby_sourceline; // TMP_PROTECT; // frame = ruby_frame; // frame.tmp(ruby_frame); // ruby_frame = frame; // PUSH_CLASS(); ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/12847c6fd28fea4e223d132ced46eb1b4cb9de9a/RubyInterpreter.java/clean/org/jruby/interpreter/RubyInterpreter.java
POP_CREF();
public RubyObject setupModule(RubyModule module, NODE n) { NODE node = n; // String file = ruby_sourcefile; // int line = ruby_sourceline; // TMP_PROTECT; // frame = ruby_frame; // frame.tmp(ruby_frame); // ruby_frame = frame; // PUSH_CLASS(); ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/12847c6fd28fea4e223d132ced46eb1b4cb9de9a/RubyInterpreter.java/clean/org/jruby/interpreter/RubyInterpreter.java
getRuby().rubyScope.pop(); popClass();
public RubyObject setupModule(RubyModule module, NODE n) { NODE node = n; // String file = ruby_sourcefile; // int line = ruby_sourceline; // TMP_PROTECT; // frame = ruby_frame; // frame.tmp(ruby_frame); // ruby_frame = frame; // PUSH_CLASS(); ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/12847c6fd28fea4e223d132ced46eb1b4cb9de9a/RubyInterpreter.java/clean/org/jruby/interpreter/RubyInterpreter.java
rubyFrame = frame.getTmp();
public RubyObject setupModule(RubyModule module, NODE n) { NODE node = n; // String file = ruby_sourcefile; // int line = ruby_sourceline; // TMP_PROTECT; // frame = ruby_frame; // frame.tmp(ruby_frame); // ruby_frame = frame; // PUSH_CLASS(); ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/12847c6fd28fea4e223d132ced46eb1b4cb9de9a/RubyInterpreter.java/clean/org/jruby/interpreter/RubyInterpreter.java
pushClass();
public RubyObject yield0(RubyObject value, RubyObject self, RubyModule klass, boolean acheck) { RubyObject result = ruby.getNil(); if (!(isBlockGiven() || isFBlockGiven()) || (ruby_block == null)) { throw new RuntimeException("yield called out of block"); } Rub...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/12847c6fd28fea4e223d132ced46eb1b4cb9de9a/RubyInterpreter.java/clean/org/jruby/interpreter/RubyInterpreter.java
popClass();
public RubyObject yield0(RubyObject value, RubyObject self, RubyModule klass, boolean acheck) { RubyObject result = ruby.getNil(); if (!(isBlockGiven() || isFBlockGiven()) || (ruby_block == null)) { throw new RuntimeException("yield called out of block"); } Rub...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/12847c6fd28fea4e223d132ced46eb1b4cb9de9a/RubyInterpreter.java/clean/org/jruby/interpreter/RubyInterpreter.java
IRubyObject argumentArray = JavaUtil.convertJavaToRuby(runtime, commandline.scriptArguments);
IRubyObject argumentArray = RubyArray.newArray(runtime, JavaUtil.convertJavaArrayToRuby(runtime, commandline.scriptArguments));
private static void initializeRuntime(Ruby runtime, String filename) { IRubyObject argumentArray = JavaUtil.convertJavaToRuby(runtime, commandline.scriptArguments); runtime.setVerbose(commandline.verbose); defineGlobal(runtime, "$VERBOSE", commandline.verbose); runtime.defineGlobalConsta...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/05c7de156620b4e1926ea77f476287db1b42b4cc/Main.java/buggy/src/org/jruby/Main.java
runtime.defineReadonlyVariable("$*", argumentArray);
runtime.getGlobalVariables().defineReadonly("$*", new ValueAccessor(argumentArray));
private static void initializeRuntime(Ruby runtime, String filename) { IRubyObject argumentArray = JavaUtil.convertJavaToRuby(runtime, commandline.scriptArguments); runtime.setVerbose(commandline.verbose); defineGlobal(runtime, "$VERBOSE", commandline.verbose); runtime.defineGlobalConsta...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/05c7de156620b4e1926ea77f476287db1b42b4cc/Main.java/buggy/src/org/jruby/Main.java
public static void main (String args[]) {
public static void main(String args[]) {
public static void main (String args[]) { /* System.out.println(); System.out.println("----------------------------------------------------"); System.out.println("--- WARNING this is an ALPHA version of JRuby!!! ---"); System.out.println("-----------------------------------------...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/ec719ef82be7ea6956b3d139a2ce2d236eed4568/Main.java/buggy/org/jruby/Main.java
System.err.println("invalid argument " + i );
System.err.println("invalid argument " + i);
public static void main (String args[]) { /* System.out.println(); System.out.println("----------------------------------------------------"); System.out.println("--- WARNING this is an ALPHA version of JRuby!!! ---"); System.out.println("-----------------------------------------...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/ec719ef82be7ea6956b3d139a2ce2d236eed4568/Main.java/buggy/org/jruby/Main.java
ruby.getRuntime().setPrintBugs(printBugs);
protected static void runInterpreter(String iString2Eval, String iFileName, String[] args) { // Initialize Runtime Ruby ruby = new Ruby(); if (sRegexpAdapter == null) { try { sRegexpAdapter = Class.forName("org.jruby.regexp.GNURegexpAdapter"); } catch (Excep...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/ec719ef82be7ea6956b3d139a2ce2d236eed4568/Main.java/buggy/org/jruby/Main.java
StringBuffer sb = new StringBuffer((int)rubyFile.length());
StringBuffer sb = new StringBuffer((int) rubyFile.length());
protected static void runInterpreterOnFile(String fileName, String[] args) { File rubyFile = new File(fileName); if (!rubyFile.canRead()) { System.out.println("Cannot read Rubyfile: \"" + fileName + "\""); } else { try { StringBuffer sb = new StringBuffer((i...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/ec719ef82be7ea6956b3d139a2ce2d236eed4568/Main.java/buggy/org/jruby/Main.java
String klass = arg0.getName().substring( arg0.getPackage().getName().length() + 1); return klass;
String klass = arg0.getName(); int last = klass.lastIndexOf("."); if (last == -1) return klass; return klass.substring(last+1);
private String getClassName(final Class arg0) { if (arg0 ==null) throw new IllegalArgumentException("Class argument cannot be null."); String klass = arg0.getName().substring( arg0.getPackage().getName().length() + 1); return klass; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/51a3c546dfc7a7a98b29771a459df19094fc5b51/ContainerDaoHibernate.java/clean/components/server/src/ome/dao/hibernate/ContainerDaoHibernate.java
generateIDAttributeMapping(out, namespaceMapping, element);
private void generateElementMapping(PrintWriter out, NamespaceMapping namespaceMapping, ElementMapping element) { out.println(); out.println(" <!-- element for type: " + element.getClassName() + " -->"); String localName = element.getElementName(); out.println(" <xs:element name='" + l...
52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/a12f3fd6bb96b0ce9605599496383e842b9ca0c2/XsdGenerator.java/clean/xbean-spring-common/src/main/java/org/apache/xbean/spring/generator/XsdGenerator.java
IRubyObject[] scanArgs(IRuby runtime, IRubyObject[] args, int required, int optional);
IRubyObject[] scanArgs(IRubyObject[] args, int required, int optional);
IRubyObject[] scanArgs(IRuby runtime, IRubyObject[] args, int required, int optional);
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/510a41b06f3103200e881725915b7cc1a5a10b39/IRubyObject.java/clean/src/org/jruby/runtime/builtin/IRubyObject.java
NODE body = searchMethod(name); RubyModule origin = getMethodOrigin(name);
SearchMethodResult smr = searchMethod(name); NODE body = smr.getBody(); RubyModule origin = smr.getOrigin();
public void exportMethod(RubyId name, int noex) { if (this == getRuby().getClasses().getObjectClass()) { getRuby().secure(4); } NODE body = searchMethod(name); RubyModule origin = getMethodOrigin(name); if (body == null && isModule()) { body = getRuby...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/03950522a75c28f406bd4cb011cb1916a662366d/RubyModule.java/clean/org/jruby/RubyModule.java
body = getRuby().getClasses().getObjectClass().searchMethod(name); origin = getRuby().getClasses().getObjectClass().getMethodOrigin(name);
smr = getRuby().getClasses().getObjectClass().searchMethod(name); body = smr.getBody(); origin = smr.getOrigin();
public void exportMethod(RubyId name, int noex) { if (this == getRuby().getClasses().getObjectClass()) { getRuby().secure(4); } NODE body = searchMethod(name); RubyModule origin = getMethodOrigin(name); if (body == null && isModule()) { body = getRuby...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/03950522a75c28f406bd4cb011cb1916a662366d/RubyModule.java/clean/org/jruby/RubyModule.java
NODE body = searchMethod(id);
NODE body = searchMethod(id).getBody();
public RubyObject m_module_function(RubyObject[] args) { if (getRuby().getSecurityLevel() >= 4 && !isTaint()) { throw new RubySecurityException("Insecure: can't change method visibility"); } if (args.length == 0) { getRuby().getInterpreter().setActMethodScope(SCOPE...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/03950522a75c28f406bd4cb011cb1916a662366d/RubyModule.java/clean/org/jruby/RubyModule.java
RubyClass newClass = new RubyClass(getRuby(), getRuby().getClasses().getClassClass(), superClass);
RubyClass newClass = new RubyClass(getRuby(), superClass);
public RubyClass newIncludeClass(RubyModule superClass) { RubyClass newClass = new RubyClass(getRuby(), getRuby().getClasses().getClassClass(), superClass); newClass.setIncluded(true); newClass.setInstanceVariables(getInstanceVariables()); newClass.setMethods(getMethods()); ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/03950522a75c28f406bd4cb011cb1916a662366d/RubyModule.java/clean/org/jruby/RubyModule.java
} public void mouseReleased(MouseEvent e) { if (transcriptWindow.getSelectedText() == null) { getChatInputEditor().requestFocus(); }
protected ChatRoom() { chatPanel = new JPanel(new GridBagLayout()); transcriptWindow = new TranscriptWindow(); splitPane = new JSplitPane(); packetIDList = new ArrayList(); notificationLabel = new JLabel(); toolbar = new ChatToolBar(); bottomPanel = new JPanel(); ...
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/37d2c9c1910f8cad82e65ab912959a96c5121978/ChatRoom.java/clean/src/java/org/jivesoftware/spark/ui/ChatRoom.java
if (sScript != null) {
if (sScript.length() > 0) {
public static void main(String args[]) { /* System.out.println(); System.out.println("----------------------------------------------------"); System.out.println("--- WARNING this is an ALPHA version of JRuby!!! ---"); System.out.println("----------------------------------------------------"); Syst...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d7918aa9361c91d54b455cf39432e037c77360ae/Main.java/clean/org/jruby/Main.java
int sizeZ, int t, int z) { initTxtWidth(); initComponents(registry, sizeZ, sizeT); initTextFields(t, z, sizeT, sizeZ); manager = new ToolBarManager(control, this, sizeT, t, sizeZ, z); manager.attachListeners(); buildToolBar(); }
int sizeZ, int t, int z) { initTxtWidth(); initComponents(registry, sizeZ, sizeT); initTextFields(t, z, sizeT, sizeZ); manager = new ToolBarManager(control, this, sizeT, t, sizeZ, z); manager.attachListeners(); buildToolBar(); }
public ToolBar(ViewerCtrl control, Registry registry, int sizeT, int sizeZ, int t, int z) { initTxtWidth(); initComponents(registry, sizeZ, sizeT); initTextFields(t, z, sizeT, sizeZ); manager = new ToolBarManager(control, this, sizeT, t, sizeZ, z); manager.attachListeners(); buildToolBar(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a81a5a58f8e54d006d057455465766c8d3d72998/ToolBar.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/controls/ToolBar.java
{ JToolBar bar = new JToolBar(); bar.setFloatable(false); bar.add(render); bar.add(inspector); bar.add(viewer3D); bar.add(movie); bar.add(saveAs); bar.add(new JSeparator(SwingConstants.VERTICAL)); return bar; }
{ JToolBar bar = new JToolBar(); bar.setFloatable(false); bar.add(render); bar.add(inspector); bar.add(viewer3D); bar.add(movie); bar.add(roi); bar.add(saveAs); bar.add(new JSeparator(SwingConstants.VERTICAL)); return bar; }
private JToolBar buildBar() { JToolBar bar = new JToolBar(); bar.setFloatable(false); bar.add(render); bar.add(inspector); bar.add(viewer3D); bar.add(movie); bar.add(saveAs); bar.add(new JSeparator(SwingConstants.VERTICAL)); return bar; }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a81a5a58f8e54d006d057455465766c8d3d72998/ToolBar.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/controls/ToolBar.java
{ setLayout(new FlowLayout(FlowLayout.LEFT)); add(buildBar()); add(ztPanel); }
{ setLayout(new FlowLayout(FlowLayout.LEFT)); add(buildBar()); add(ztPanel); }
private void buildToolBar() { setLayout(new FlowLayout(FlowLayout.LEFT)); add(buildBar()); add(ztPanel); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a81a5a58f8e54d006d057455465766c8d3d72998/ToolBar.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/controls/ToolBar.java
{ IconManager im = IconManager.getInstance(registry); viewer3D = new JButton(im.getIcon(IconManager.VIEWER3D)); viewer3D.setToolTipText( UIUtilities.formatToolTipText("Bring up the image3D viewer.")); viewer3D.setEnabled(maxZ == 0); saveAs = new JButton(im.getIcon(IconManager.SAVEAS)); saveAs.setToolTipText( UIUtiliti...
{ IconManager im = IconManager.getInstance(registry); viewer3D = new JButton(im.getIcon(IconManager.VIEWER3D)); viewer3D.setToolTipText( UIUtilities.formatToolTipText("Bring up the image3D viewer.")); viewer3D.setEnabled(maxZ == 0); saveAs = new JButton(im.getIcon(IconManager.SAVEAS)); saveAs.setToolTipText( UIUtiliti...
private void initComponents(Registry registry, int maxZ, int maxT) { //buttons IconManager im = IconManager.getInstance(registry); viewer3D = new JButton(im.getIcon(IconManager.VIEWER3D)); viewer3D.setToolTipText( UIUtilities.formatToolTipText("Bring up the image3D viewer.")); viewer3D.setEnabled(maxZ == 0); ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a81a5a58f8e54d006d057455465766c8d3d72998/ToolBar.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/controls/ToolBar.java
if (maxT == 0 && maxZ == 0) movie.setEnabled(true); }
roi = new JButton(im.getIcon(IconManager.ROI)); roi.setToolTipText( UIUtilities.formatToolTipText("Bring up the roi panel.")); if (maxT == 0 && maxZ == 0) movie.setEnabled(true); }
private void initComponents(Registry registry, int maxZ, int maxT) { //buttons IconManager im = IconManager.getInstance(registry); viewer3D = new JButton(im.getIcon(IconManager.VIEWER3D)); viewer3D.setToolTipText( UIUtilities.formatToolTipText("Bring up the image3D viewer.")); viewer3D.setEnabled(maxZ == 0); ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a81a5a58f8e54d006d057455465766c8d3d72998/ToolBar.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/controls/ToolBar.java
{ zLabel = new JLabel("/"+maxZ); tLabel = new JLabel("/"+maxT); tField = new JTextField(""+t, (""+maxT).length()); tField.setEditable(maxT != 0); tField.setForeground(Viewer.STEELBLUE); tField.setToolTipText( UIUtilities.formatToolTipText("Enter a timepoint.")); zField = new JTextField(""+z, (""+maxZ).length()); zFiel...
{ zLabel = new JLabel("/"+maxZ); tLabel = new JLabel("/"+maxT); tField = new JTextField(""+t, (""+maxT).length()); tField.setEditable(maxT != 0); tField.setForeground(Viewer.STEELBLUE); tField.setToolTipText( UIUtilities.formatToolTipText("Enter a timepoint.")); zField = new JTextField(""+z, (""+maxZ).length()); zFiel...
private void initTextFields(int t, int z, int maxT, int maxZ) { zLabel = new JLabel("/"+maxZ); tLabel = new JLabel("/"+maxT); tField = new JTextField(""+t, (""+maxT).length()); //if (maxT == 0) tField.setEditable(false); tField.setEditable(maxT != 0); tField.setForeground(Viewer.STEELBLUE); tField.setToolTipTex...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a81a5a58f8e54d006d057455465766c8d3d72998/ToolBar.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/controls/ToolBar.java
{ FontMetrics metrics = getFontMetrics(getFont()); txtWidth = metrics.charWidth('m'); }
{ FontMetrics metrics = getFontMetrics(getFont()); txtWidth = metrics.charWidth('m'); }
private void initTxtWidth() { FontMetrics metrics = getFontMetrics(getFont()); txtWidth = metrics.charWidth('m'); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a81a5a58f8e54d006d057455465766c8d3d72998/ToolBar.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/controls/ToolBar.java
{ JPanel p = new JPanel(); JLabel l = new JLabel(" Z "); GridBagLayout gridbag = new GridBagLayout(); GridBagConstraints c = new GridBagConstraints(); p.setLayout(gridbag); c.gridx = 0; c.gridy = 0; c.fill = GridBagConstraints.NONE; c.anchor = GridBagConstraints.EAST; gridbag.setConstraints(l, c); p.add(l); c.gridx = 1...
{ JPanel p = new JPanel(); JLabel l = new JLabel(" Z "); GridBagLayout gridbag = new GridBagLayout(); GridBagConstraints c = new GridBagConstraints(); p.setLayout(gridbag); c.gridx = 0; c.gridy = 0; c.fill = GridBagConstraints.NONE; c.anchor = GridBagConstraints.EAST; gridbag.setConstraints(l, c); p.add(l); c.gridx = 1...
private JPanel textFieldsPanel(int zLength, int tLength) { JPanel p = new JPanel(); JLabel l = new JLabel(" Z "); GridBagLayout gridbag = new GridBagLayout(); GridBagConstraints c = new GridBagConstraints(); p.setLayout(gridbag); c.gridx = 0; c.gridy = 0; c.fill = GridBagConstraints.NONE; c.anchor = GridBagCo...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a81a5a58f8e54d006d057455465766c8d3d72998/ToolBar.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/controls/ToolBar.java
buildGUI();
AddWin(Set availablePaths) { super(availablePaths); initTree(); buildTreeNodes(); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/423006aa061b61c5fd6f0a1b95754e8a9a2c0fef/AddWin.java/clean/SRC/org/openmicroscopy/shoola/agents/hiviewer/clsf/AddWin.java
dup.toRubyObject().setRubyClass(type()); dup.toRubyObject().frozen = false;
dup.setInternalClass(type()); dup.setFrozen(false);
public IRubyObject dup() { IRubyObject dup = callMethod("clone"); if (!dup.getClass().equals(getClass())) { throw new TypeError(getRuntime(), "duplicated object must be same type"); } dup.toRubyObject().setRubyClass(type());// dup.infectObject(this); //Benoit done by c...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f235ab756f32ea9496f8f880066b46ad95ebb692/RubyObject.java/clean/org/jruby/RubyObject.java
return rubyClass;
return internalClass;
public RubyClass getInternalClass() { if (isNil()) { return getRuntime().getClasses().getNilClass(); } return rubyClass; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f235ab756f32ea9496f8f880066b46ad95ebb692/RubyObject.java/clean/org/jruby/RubyObject.java
setRubyClass(type);
setInternalClass(type);
public RubyClass makeMetaClass(RubyClass type) { type = type.newSingletonClass(); setRubyClass(type); type.attachSingletonClass(this); return type; }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f235ab756f32ea9496f8f880066b46ad95ebb692/RubyObject.java/clean/org/jruby/RubyObject.java
clone.toRubyObject().setupClone(this);
clone.setupClone(this);
public IRubyObject rbClone() { try { IRubyObject clone = (IRubyObject)clone(); clone.toRubyObject().setupClone(this); if (getInstanceVariables() != null) { clone.toRubyObject().setInstanceVariables(getInstanceVariables().cloneRubyMap()); } ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f235ab756f32ea9496f8f880066b46ad95ebb692/RubyObject.java/clean/org/jruby/RubyObject.java
clone.toRubyObject().setInstanceVariables(getInstanceVariables().cloneRubyMap());
((RubyObject)clone).setInstanceVariables(getInstanceVariables().cloneRubyMap());
public IRubyObject rbClone() { try { IRubyObject clone = (IRubyObject)clone(); clone.toRubyObject().setupClone(this); if (getInstanceVariables() != null) { clone.toRubyObject().setInstanceVariables(getInstanceVariables().cloneRubyMap()); } ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f235ab756f32ea9496f8f880066b46ad95ebb692/RubyObject.java/clean/org/jruby/RubyObject.java
setRubyClass(obj.getInternalClass().getSingletonClassClone());
setInternalClass(obj.getInternalClass().getSingletonClassClone());
public void setupClone(IRubyObject obj) { setRubyClass(obj.getInternalClass().getSingletonClassClone()); getInternalClass().attachSingletonClass(this); frozen = obj.isFrozen(); taint = obj.isTaint(); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f235ab756f32ea9496f8f880066b46ad95ebb692/RubyObject.java/clean/org/jruby/RubyObject.java
return ruby.yield(args[0], args[0], ruby.getRubyClass(), false).toRubyObject();
return ruby.yield(args[0], args[0], ruby.getRubyClass(), false);
public IRubyObject yieldUnder(RubyModule under) { return under.executeUnder(new Callback() { public IRubyObject execute(IRubyObject self, IRubyObject[] args) { // if () { Block oldBlock = ruby.getBlockStack().getCurrent().cloneBlock(); /* c...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f235ab756f32ea9496f8f880066b46ad95ebb692/RubyObject.java/clean/org/jruby/RubyObject.java
return ruby.yield(args[0], args[0], ruby.getRubyClass(), false).toRubyObject();
return ruby.yield(args[0], args[0], ruby.getRubyClass(), false);
public IRubyObject execute(IRubyObject self, IRubyObject[] args) { // if () { Block oldBlock = ruby.getBlockStack().getCurrent().cloneBlock(); /* copy the block to avoid modifying global data. */ ruby.getBlockStack().getCurrent().getFr...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f235ab756f32ea9496f8f880066b46ad95ebb692/RubyObject.java/clean/org/jruby/RubyObject.java
public RubyObject call(Ruby ruby, RubyObject recv, RubyId id, RubyObject[] args, boolean noSuper) {
public RubyObject call(Ruby ruby, RubyObject recv, RubyId id, RubyPointer args, boolean noSuper) {
public RubyObject call(Ruby ruby, RubyObject recv, RubyId id, RubyObject[] args, boolean noSuper) { return eval(ruby, recv); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f629550c5947df9c1dbe414645f3dc76bcb70df4/IVarNode.java/clean/org/jruby/nodes/IVarNode.java
FastWriter fw = new FastWriter(os, "UTF8");
FastWriter fw = new FastWriter(os, data.getEncoding());
public final Object evaluate(Context data) { try { ByteArrayOutputStream os = new ByteArrayOutputStream(512); FastWriter fw = new FastWriter(os, "UTF8"); write(fw,data); fw.flush(); return os.toString("UTF8"); } catch (IOException e) { _log.exception(e); _log...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/9dc4324fb914abcbf2ec188e4eb77b1bf503f330/WMTemplate.java/buggy/webmacro/src/org/webmacro/engine/WMTemplate.java
return os.toString("UTF8");
return os.toString(data.getEncoding());
public final Object evaluate(Context data) { try { ByteArrayOutputStream os = new ByteArrayOutputStream(512); FastWriter fw = new FastWriter(os, "UTF8"); write(fw,data); fw.flush(); return os.toString("UTF8"); } catch (IOException e) { _log.exception(e); _log...
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/9dc4324fb914abcbf2ec188e4eb77b1bf503f330/WMTemplate.java/buggy/webmacro/src/org/webmacro/engine/WMTemplate.java
public HttpMethodBase marshal()
public HttpMethod marshal()
public HttpMethodBase marshal() { //Create request. PostMethod request = new PostMethod(); //Marshal. request.addParameter(SESSION_KEY_FIELD, sessionKey); request.addParameter(METHOD_FIELD, method); request.addParameter(PIXELS_ID_FIELD, Long.toString(pixelsID)); ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/c0ee67611abddaf7c5a898ad8033ca4845e9d8fe/GetStackRequest.java/clean/SRC/org/openmicroscopy/shoola/omeis/proxy/GetStackRequest.java
showImages();
showImages(); break; case IMAGES_SELECTION: bringSelector(e); break;
public void actionPerformed(ActionEvent e) { int index = Integer.parseInt(e.getActionCommand()); try { switch (index) { case SAVE: saveSelection(); break; case ALL: selectAll(); break; case CANCEL: cancelSelection(); break; case SHOW_IMAGES: showImages(); }...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a82d641ae8b6aae180291dcfe5e2b1c45e55ea11/CategoryImagesDiffPaneManager.java/clean/SRC/org/openmicroscopy/shoola/agents/datamng/editors/category/CategoryImagesDiffPaneManager.java
attachBoxListeners(view.selections, IMAGES_SELECTION);
private void attachListeners() { attachButtonListener(view.selectButton, ALL); attachButtonListener(view.cancelButton, CANCEL); attachButtonListener(view.saveButton, SAVE); attachButtonListener(view.showImages, SHOW_IMAGES); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a82d641ae8b6aae180291dcfe5e2b1c45e55ea11/CategoryImagesDiffPaneManager.java/clean/SRC/org/openmicroscopy/shoola/agents/datamng/editors/category/CategoryImagesDiffPaneManager.java
case CategoryImagesDiffPane.IMAGES_USED: images = control.getImagesDiffInUserDatasets(); break;
private void showImages() { int selectedIndex = view.selections.getSelectedIndex(); if (selectedIndex != selectionIndex) { selectionIndex = selectedIndex; List images = null; switch (selectedIndex) { case CategoryImagesDiffPane.IMAGES_IMPORTED: ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a82d641ae8b6aae180291dcfe5e2b1c45e55ea11/CategoryImagesDiffPaneManager.java/clean/SRC/org/openmicroscopy/shoola/agents/datamng/editors/category/CategoryImagesDiffPaneManager.java
if (images == null || images.size() == 0) return; imagesDiff = images; view.showImages(images);
displayListImages(images);
private void showImages() { int selectedIndex = view.selections.getSelectedIndex(); if (selectedIndex != selectionIndex) { selectionIndex = selectedIndex; List images = null; switch (selectedIndex) { case CategoryImagesDiffPane.IMAGES_IMPORTED: ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a82d641ae8b6aae180291dcfe5e2b1c45e55ea11/CategoryImagesDiffPaneManager.java/clean/SRC/org/openmicroscopy/shoola/agents/datamng/editors/category/CategoryImagesDiffPaneManager.java
globalProjectData = new ProjectData();
public static ProjectData getGlobalProjectData() { if (globalProjectData != null) return globalProjectData; initialize(); globalProjectData = new ProjectData(); return globalProjectData; }
50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/edbadf596ee0053098884e80bfe34fad03d14803/ProjectData.java/clean/cobertura/src/net/sourceforge/cobertura/coveragedata/ProjectData.java
setAlwaysOnTop(true);
private void setWindowProperties() { setTitle(TITLE); setSize(DEFAULT_WIDTH, DEFAULT_HEIGHT); setModal(true); setResizable(false); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/43f8c678f03aa7cac6a19865461c28a00cf7eb2b/ColourPicker.java/buggy/SRC/org/openmicroscopy/shoola/util/ui/colourpicker/ColourPicker.java
public RubyClass newSubClass(String name, RubyModule parent) { return new NumericMetaClass(name, this, parent);
public RubyClass newSubClass(String name, SinglyLinkedList parentCRef) { return new NumericMetaClass(name, this, parentCRef);
public RubyClass newSubClass(String name, RubyModule parent) { return new NumericMetaClass(name, this, parent); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a1b8fc1d456e3d5c6e01579b88773383068aa85c/NumericMetaClass.java/buggy/src/org/jruby/runtime/builtin/meta/NumericMetaClass.java
} catch (BreakException bExcptn) {
} catch (BreakJump bExcptn) {
public RubyObject eval(Ruby ruby, RubyObject self) { RubyObject result; ruby.getBlock().push(getVarNode(), getBodyNode(), self); ruby.getIter().push(RubyIter.ITER_PRE); try { while (true) { try { return getIterNode().eval(ruby, self); ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/786cea08c1dd2092a02d1254b49fbee371ace5f9/IterNode.java/buggy/org/jruby/nodes/IterNode.java
Visibility visibility, RubyModule parent) {
Visibility visibility, SinglyLinkedList cref) {
public DefaultMethod(RubyModule implementationClass, ScopeNode body, ArgsNode argsNode, Visibility visibility, RubyModule parent) { super(implementationClass, visibility); this.body = body; this.argsNode = argsNode; this.parent = parent; assert body != null; assert argsNode != null...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a1b8fc1d456e3d5c6e01579b88773383068aa85c/DefaultMethod.java/buggy/src/org/jruby/internal/runtime/methods/DefaultMethod.java
this.parent = parent;
this.cref = cref;
public DefaultMethod(RubyModule implementationClass, ScopeNode body, ArgsNode argsNode, Visibility visibility, RubyModule parent) { super(implementationClass, visibility); this.body = body; this.argsNode = argsNode; this.parent = parent; assert body != null; assert argsNode != null...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a1b8fc1d456e3d5c6e01579b88773383068aa85c/DefaultMethod.java/buggy/src/org/jruby/internal/runtime/methods/DefaultMethod.java
return new DefaultMethod(getImplementationClass(), body, argsNode, getVisibility(), parent);
return new DefaultMethod(getImplementationClass(), body, argsNode, getVisibility(), cref);
public ICallable dup() { return new DefaultMethod(getImplementationClass(), body, argsNode, getVisibility(), parent); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a1b8fc1d456e3d5c6e01579b88773383068aa85c/DefaultMethod.java/buggy/src/org/jruby/internal/runtime/methods/DefaultMethod.java
context.preDefMethodInternalCall(implementationClass, recv, name, args, noSuper);
context.preDefMethodInternalCall(recv, name, args, noSuper, cref);
public void preMethod(IRuby runtime, RubyModule implementationClass, IRubyObject recv, String name, IRubyObject[] args, boolean noSuper) { ThreadContext context = runtime.getCurrentContext(); context.preDefMethodInternalCall(implementationClass, recv, name, args, noSuper); }
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a1b8fc1d456e3d5c6e01579b88773383068aa85c/DefaultMethod.java/buggy/src/org/jruby/internal/runtime/methods/DefaultMethod.java
try {
try {
public void load() { rwl.writeLock().lock(); try { errorIfNullPixels(); /* * TODO we could also allow for setting of the buffer! perhaps * better caching, etc. */ PixelBuffer buffer = pixDataSrv.getPixelBuffer(pixelsObj); ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/64e6d912272b039f986c1a36d1ca930cc5578578/RenderingBean.java/buggy/components/server/src/ome/services/RenderingBean.java
public void load() { rwl.writeLock().lock(); try { errorIfNullPixels(); /* * TODO we could also allow for setting of the buffer! perhaps * better caching, etc. */ PixelBuffer buffer = pixDataSrv.getPixelBuffer(pixelsObj); ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/64e6d912272b039f986c1a36d1ca930cc5578578/RenderingBean.java/buggy/components/server/src/ome/services/RenderingBean.java
} finally {
} finally {
public void load() { rwl.writeLock().lock(); try { errorIfNullPixels(); /* * TODO we could also allow for setting of the buffer! perhaps * better caching, etc. */ PixelBuffer buffer = pixDataSrv.getPixelBuffer(pixelsObj); ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/64e6d912272b039f986c1a36d1ca930cc5578578/RenderingBean.java/buggy/components/server/src/ome/services/RenderingBean.java
try { this.rendDefObj = pixMetaSrv.retrieveRndSettings(pixelsId); this.renderer = null;
try { rendDefObj = pixMetaSrv.retrieveRndSettings(pixelsId); renderer = null;
public void lookupRenderingDef(long pixelsId) { rwl.writeLock().lock(); try { this.rendDefObj = pixMetaSrv.retrieveRndSettings(pixelsId); this.renderer = null; if ( rendDefObj == null ) throw new ValidationException( ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/64e6d912272b039f986c1a36d1ca930cc5578578/RenderingBean.java/buggy/components/server/src/ome/services/RenderingBean.java
if ( rendDefObj == null ) throw new ValidationException( "RenderingDef for Pixels="+pixelsId+" not found."); } finally {
if (rendDefObj == null) { rendDefObj = Renderer.createNewRenderingDef(pixelsObj); Renderer.resetDefaults(rendDefObj, pixelsObj, pixMetaSrv); pixMetaSrv.saveRndSettings(rendDefObj); iUpdate.flush(); rendDefObj = pixMetaSrv.retrieveRndSettings(pixelsId); } } finally {
public void lookupRenderingDef(long pixelsId) { rwl.writeLock().lock(); try { this.rendDefObj = pixMetaSrv.retrieveRndSettings(pixelsId); this.renderer = null; if ( rendDefObj == null ) throw new ValidationException( ...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/64e6d912272b039f986c1a36d1ca930cc5578578/RenderingBean.java/buggy/components/server/src/ome/services/RenderingBean.java
iUpdate.flush();
public void resetDefaults() { rwl.writeLock().lock(); try { errorIfInvalidState(); renderer.resetDefaults(); } finally { rwl.writeLock().unlock(); } }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/64e6d912272b039f986c1a36d1ca930cc5578578/RenderingBean.java/buggy/components/server/src/ome/services/RenderingBean.java
System.out.println("Cannot read Rubyfile: \"" + fname.getValue() + "\""); System.out.println("IOEception: " + ioExcptn.getMessage());
getErrorStream().println("Cannot read Rubyfile: \"" + fname.getValue() + "\""); getErrorStream().println("IOEception: " + ioExcptn.getMessage());
public void loadFile(RubyString fname, boolean wrap) { // fname = findFile(fname); if (fname == null) { throw new RuntimeException("No such file to load -- " + fname.getValue()); } try { File rubyFile = new File(fname.getValue()); StringBuffer sou...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/2c6d31ae5651a0a0c68c2bb382ab68cea34c67d7/RubyRuntime.java/clean/org/jruby/runtime/RubyRuntime.java
excptn.printStackTrace();
excptn.printStackTrace(getErrorStream());
public void loadScript(RubyString scriptName, RubyString source, boolean wrap) { RubyObject self = ruby.getRubyTopSelf(); CRefNode savedCRef = ruby.getCRef(); // TMP_PROTECT; if (wrap && ruby.getSecurityLevel() >= 4) { // Check_Type(fname, T_STRING); } else { ...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/2c6d31ae5651a0a0c68c2bb382ab68cea34c67d7/RubyRuntime.java/clean/org/jruby/runtime/RubyRuntime.java
UserCredentials uc = splashScreen.getUserCredentials();
uc = splashScreen.getUserCredentials((max == index-1));
public void onEnd() { //Last update with total number of tasks executed. splashScreen.updateProgress(""); //Try to log onto OMEDS and retry upon failure for at most as many //times as specified in the Container's configuration. Registry reg = container.getRegistry(); LoginConfig cfg = new Log...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/84042cbca2e8aeaf65ca18c85ea2224ea4c04d55/SplashScreenInit.java/buggy/SRC/org/openmicroscopy/shoola/env/init/SplashScreenInit.java
splashScreen.close();
public void onEnd() { //Last update with total number of tasks executed. splashScreen.updateProgress(""); //Try to log onto OMEDS and retry upon failure for at most as many //times as specified in the Container's configuration. Registry reg = container.getRegistry(); LoginConfig cfg = new Log...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/84042cbca2e8aeaf65ca18c85ea2224ea4c04d55/SplashScreenInit.java/buggy/SRC/org/openmicroscopy/shoola/env/init/SplashScreenInit.java
splashScreen.close();
public void onEnd() { //Last update with total number of tasks executed. splashScreen.updateProgress(""); //Try to log onto OMEDS and retry upon failure for at most as many //times as specified in the Container's configuration. Registry reg = container.getRegistry(); LoginConfig cfg = new Log...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/84042cbca2e8aeaf65ca18c85ea2224ea4c04d55/SplashScreenInit.java/buggy/SRC/org/openmicroscopy/shoola/env/init/SplashScreenInit.java
public UserCredentials getUserCredentials();
public UserCredentials getUserCredentials(boolean init);
public UserCredentials getUserCredentials();
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/84042cbca2e8aeaf65ca18c85ea2224ea4c04d55/SplashScreen.java/buggy/SRC/org/openmicroscopy/shoola/env/ui/SplashScreen.java
protected DataLoader createHierarchyLoader()
protected DataLoader createHierarchyLoader(boolean refresh)
protected DataLoader createHierarchyLoader() { return new CategoryGroupLoader(component, ids); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/fb3743d6f75abbf12f788b3b2925f4a6f4606dd6/CategoryGroupModel.java/clean/SRC/org/openmicroscopy/shoola/agents/hiviewer/view/CategoryGroupModel.java
return new CategoryGroupLoader(component, ids);
return new CategoryGroupLoader(component, ids, refresh);
protected DataLoader createHierarchyLoader() { return new CategoryGroupLoader(component, ids); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/fb3743d6f75abbf12f788b3b2925f4a6f4606dd6/CategoryGroupModel.java/clean/SRC/org/openmicroscopy/shoola/agents/hiviewer/view/CategoryGroupModel.java
return "Group"+(attributeId==null ? ":Hash"+this.hashCode() : ":"+attributeId);
return "Group"+(attributeId==null ? ":Hash_"+this.hashCode() : ":Id_"+attributeId);
public String toString(){ return "Group"+(attributeId==null ? ":Hash"+this.hashCode() : ":"+attributeId); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/51a3c546dfc7a7a98b29771a459df19094fc5b51/Group.java/clean/components/common/src/ome/model/Group.java
assertStringTemplateEquals(tmpl, "");
public void testBinarySetBoolean() throws Exception { String tmpl = "#set $TestObject.Bool=true"; assertTrue(to.bool); }
52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/1cbef201fa09759e4ccbb18278b4bced8fe0a464/TestGetSet.java/clean/webmacro/test/unit/org/webmacro/template/TestGetSet.java
assertTrue(((RubyFixnum) lLoadA.nitems()).getValue() == 2);
assertTrue(RubyNumeric.num2long(lLoadA.nitems()) == 2);
public void testInitLoad() { ArrayList list = new ArrayList(); //check without a RubyHome and with one parameter System.setProperty("jruby.home", ""); list.add("toto"); ruby.initLoad(list); //check that the global vars are correctly valuated RubyObject lCol = ruby.ge...
50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/786cea08c1dd2092a02d1254b49fbee371ace5f9/TestRuby.java/buggy/org/jruby/test/TestRuby.java
System.err.println("viewing spots for execution..."+exec.getID());
private void handleViewSpots(ViewTrackSpotsEvent event) { ChainExecutionData exec = event.getChainExecution(); System.err.println("viewing spots for execution..."+exec.getID()); SpotsTrajectorySet trajectories = new SpotsTrajectorySet(registry,exec); if (trajectories.isEmpty()) { JOptionPane.showMessageDialog(...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/593fde2d2823cacc93db6467f8034ede1fe2bb45/Spots.java/clean/SRC/org/openmicroscopy/shoola/agents/spots/Spots.java
private void handleViewSpots(ViewTrackSpotsEvent event) { ChainExecutionData exec = event.getChainExecution(); System.err.println("viewing spots for execution..."+exec.getID()); SpotsTrajectorySet trajectories = new SpotsTrajectorySet(registry,exec); if (trajectories.isEmpty()) { JOptionPane.showMessageDialog(...
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/593fde2d2823cacc93db6467f8034ede1fe2bb45/Spots.java/clean/SRC/org/openmicroscopy/shoola/agents/spots/Spots.java
System.err.println("setting context for spots..");
public void setContext(Registry ctx) { System.err.println("setting context for spots.."); registry = ctx; //The container built our registry, store a reference. EventBus bus = registry.getEventBus(); bus.register(this,ViewTrackSpotsEvent.class); }
54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/593fde2d2823cacc93db6467f8034ede1fe2bb45/Spots.java/clean/SRC/org/openmicroscopy/shoola/agents/spots/Spots.java
public JContactItemField(List items, Window parentWindow) {
public JContactItemField(List items) {
public JContactItemField(List items, Window parentWindow) { setLayout(new BorderLayout()); this.items = items; add(textField, BorderLayout.CENTER); textField.addKeyListener(new KeyAdapter() { public void keyReleased(KeyEvent keyEvent) { char ch = keyEvent.getKey...
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/451ca5454333fabb40923ca0b6a307994410412c/JContactItemField.java/buggy/src/java/org/jivesoftware/spark/component/JContactItemField.java
list.addKeyListener(new KeyAdapter() { public void keyReleased(KeyEvent keyEvent) { if (keyEvent.getKeyCode() == KeyEvent.VK_ESCAPE) { textField.requestFocus(); } } }); popup = new JWindow(parentWindow);
popup = new JWindow();
public JContactItemField(List items, Window parentWindow) { setLayout(new BorderLayout()); this.items = items; add(textField, BorderLayout.CENTER); textField.addKeyListener(new KeyAdapter() { public void keyReleased(KeyEvent keyEvent) { char ch = keyEvent.getKey...
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/451ca5454333fabb40923ca0b6a307994410412c/JContactItemField.java/buggy/src/java/org/jivesoftware/spark/component/JContactItemField.java
public JContactItemField(List items, Window parentWindow) { setLayout(new BorderLayout()); this.items = items; add(textField, BorderLayout.CENTER); textField.addKeyListener(new KeyAdapter() { public void keyReleased(KeyEvent keyEvent) { char ch = keyEvent.getKey...
52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/451ca5454333fabb40923ca0b6a307994410412c/JContactItemField.java/buggy/src/java/org/jivesoftware/spark/component/JContactItemField.java