rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
boolean lcond = (l instanceof Condition); boolean rcond = (r instanceof Condition); | boolean lmacro = (l instanceof Macro); boolean rmacro = (r instanceof Macro); | public final Object build(BuildContext pc) throws BuildException { Object l, r; l = _l.build(pc); r = _r.build(pc); boolean lcond = (l instanceof Condition); boolean rcond = (r instanceof Condition); if (!lcond && !rcond) { if ((l == null) || (r == null)) { return (... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/4e82bcbfa0293596ccebd7abff0c093e9937d6ba/EqualConditionBuilder.java/buggy/webmacro/src/org/webmacro/engine/EqualConditionBuilder.java |
if (!lcond && !rcond) { | if (!lmacro && !rmacro) { | public final Object build(BuildContext pc) throws BuildException { Object l, r; l = _l.build(pc); r = _r.build(pc); boolean lcond = (l instanceof Condition); boolean rcond = (r instanceof Condition); if (!lcond && !rcond) { if ((l == null) || (r == null)) { return (... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/4e82bcbfa0293596ccebd7abff0c093e9937d6ba/EqualConditionBuilder.java/buggy/webmacro/src/org/webmacro/engine/EqualConditionBuilder.java |
if (lcond && rcond) { return new EqualCondition((Condition) l, (Condition) r); | if (lmacro && rmacro) { return new EqualCondition((Macro) l, (Macro) r); | public final Object build(BuildContext pc) throws BuildException { Object l, r; l = _l.build(pc); r = _r.build(pc); boolean lcond = (l instanceof Condition); boolean rcond = (r instanceof Condition); if (!lcond && !rcond) { if ((l == null) || (r == null)) { return (... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/4e82bcbfa0293596ccebd7abff0c093e9937d6ba/EqualConditionBuilder.java/buggy/webmacro/src/org/webmacro/engine/EqualConditionBuilder.java |
if (lcond) { return new EqualConstantCondition((Condition) l, r); | if (lmacro) { return new EqualConstantCondition((Macro) l, r); | public final Object build(BuildContext pc) throws BuildException { Object l, r; l = _l.build(pc); r = _r.build(pc); boolean lcond = (l instanceof Condition); boolean rcond = (r instanceof Condition); if (!lcond && !rcond) { if ((l == null) || (r == null)) { return (... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/4e82bcbfa0293596ccebd7abff0c093e9937d6ba/EqualConditionBuilder.java/buggy/webmacro/src/org/webmacro/engine/EqualConditionBuilder.java |
return new EqualConstantCondition((Condition) r, l); | return new EqualConstantCondition((Macro) r, l); | public final Object build(BuildContext pc) throws BuildException { Object l, r; l = _l.build(pc); r = _r.build(pc); boolean lcond = (l instanceof Condition); boolean rcond = (r instanceof Condition); if (!lcond && !rcond) { if ((l == null) || (r == null)) { return (... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/4e82bcbfa0293596ccebd7abff0c093e9937d6ba/EqualConditionBuilder.java/buggy/webmacro/src/org/webmacro/engine/EqualConditionBuilder.java |
EqualConstantCondition(Condition l, Object r) { _l = l; _r = r; } | EqualConstantCondition(Macro l, Object r) { _l = l; _r = r; } | EqualConstantCondition(Condition l, Object r) { _l = l; _r = r; } | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/4e82bcbfa0293596ccebd7abff0c093e9937d6ba/EqualConditionBuilder.java/buggy/webmacro/src/org/webmacro/engine/EqualConditionBuilder.java |
try { left = _l.evaluate(context); } catch (Exception e) { left = null; } | try { left = _l.evaluate(context); } catch (Exception e) { left = null; } | public final boolean test(Object context) { Object left; try { left = _l.evaluate(context); } catch (Exception e) { left = null; } if ((left == null) || (_r == null)) { return (left == _r); } return left.equals(_r); } | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/4e82bcbfa0293596ccebd7abff0c093e9937d6ba/EqualConditionBuilder.java/buggy/webmacro/src/org/webmacro/engine/EqualConditionBuilder.java |
state.setResult(state.runtime.getObject().getConstant(iVisited.getName())); | state.setResult(state.runtime.getObject().getConstantFrom(iVisited.getName())); | public void execute(EvaluationState state, InstructionContext ctx) { Colon2Node iVisited = (Colon2Node)ctx; Node leftNode = iVisited.getLeftNode(); // TODO: Made this more colon3 friendly because of cpath production // rule in grammar (it is convenient to think of them as the ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a1b8fc1d456e3d5c6e01579b88773383068aa85c/EvaluateVisitor.java/buggy/src/org/jruby/evaluator/EvaluateVisitor.java |
state.setResult(((RubyModule) state.getResult()).getConstantAtOrConstantMissing(iVisited.getName())); | state.setResult(((RubyModule) state.getResult()).getConstantFrom(iVisited.getName())); | public void execute(EvaluationState state, InstructionContext ctx) { Colon2Node iVisited = (Colon2Node)ctx; if (state.getResult() instanceof RubyModule) { state.setResult(((RubyModule) state.getResult()).getConstantAtOrConstantMissing(iVisited.getName())); } else { ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a1b8fc1d456e3d5c6e01579b88773383068aa85c/EvaluateVisitor.java/buggy/src/org/jruby/evaluator/EvaluateVisitor.java |
state.setResult(state.runtime.getObject().getConstant(iVisited.getName())); | state.setResult(state.runtime.getObject().getConstantFrom(iVisited.getName())); | public void execute(EvaluationState state, InstructionContext ctx) { Colon3Node iVisited = (Colon3Node)ctx; state.setResult(state.runtime.getObject().getConstant(iVisited.getName())); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a1b8fc1d456e3d5c6e01579b88773383068aa85c/EvaluateVisitor.java/buggy/src/org/jruby/evaluator/EvaluateVisitor.java |
state.getThreadContext().getRubyClass().setConstant(iVisited.getName(), state.getResult()); | ((RubyModule)state.getThreadContext().peekCRef().getValue()).setConstant(iVisited.getName(), state.getResult()); | public void execute(EvaluationState state, InstructionContext ctx) { ConstDeclNode iVisited = (ConstDeclNode)ctx; state.getThreadContext().getRubyClass().setConstant(iVisited.getName(), state.getResult()); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a1b8fc1d456e3d5c6e01579b88773383068aa85c/EvaluateVisitor.java/buggy/src/org/jruby/evaluator/EvaluateVisitor.java |
state.setResult(state.getThreadContext().getRubyClass().getConstant(iVisited.getName())); | state.setResult(state.getThreadContext().getConstant(iVisited.getName())); | public void execute(EvaluationState state, InstructionContext ctx) { ConstNode iVisited = (ConstNode)ctx; state.setResult(state.getThreadContext().getRubyClass().getConstant(iVisited.getName())); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a1b8fc1d456e3d5c6e01579b88773383068aa85c/EvaluateVisitor.java/buggy/src/org/jruby/evaluator/EvaluateVisitor.java |
state.getThreadContext().getRubyClass()); | state.getThreadContext().peekCRef()); | public void execute(EvaluationState state, InstructionContext ctx) { DefnNode iVisited = (DefnNode)ctx; RubyModule containingClass = state.getThreadContext().getRubyClass(); if (containingClass == null) { throw state.runtime.newTypeError("No class to add method."); ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a1b8fc1d456e3d5c6e01579b88773383068aa85c/EvaluateVisitor.java/buggy/src/org/jruby/evaluator/EvaluateVisitor.java |
state.getThreadContext().getRubyClass()); | state.getThreadContext().peekCRef()); | public void execute(EvaluationState state, InstructionContext ctx) { DefsNode iVisited = (DefsNode)ctx; IRubyObject receiver = state.begin(iVisited.getReceiverNode()); if (state.runtime.getSafeLevel() >= 4 && !receiver.isTaint()) { throw state.runtime.newSecurityError("Ins... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a1b8fc1d456e3d5c6e01579b88773383068aa85c/EvaluateVisitor.java/buggy/src/org/jruby/evaluator/EvaluateVisitor.java |
public SetDirective(Variable target, Object result) { this.target = target; this.result = result; } | public SetDirective() {} | public SetDirective(Variable target, Object result) { this.target = target; this.result = result; } | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/b96772967b07b6666a64ce480011c23dd7bdb94b/SetDirective.java/buggy/webmacro/src/org/webmacro/directive/SetDirective.java |
public RubyClass defineClass(String name, RubyClass superClass) { if (superClass == null) { superClass = getClasses().getObjectClass(); } RubyClass newClass = RubyClass.newClass(this, superClass, name); newClass.makeMetaClass(superClass.getMetaClass()); newClass.inherit... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/fffe7aa25510c5fa1f975232bea0ef0fd24762d7/Ruby.java/buggy/src/org/jruby/Ruby.java | ||
public RubyClass defineClass(String name, RubyClass superClass) { if (superClass == null) { superClass = getClasses().getObjectClass(); } RubyClass newClass = RubyClass.newClass(this, superClass, name); newClass.makeMetaClass(superClass.getMetaClass()); newClass.inherit... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/fffe7aa25510c5fa1f975232bea0ef0fd24762d7/Ruby.java/buggy/src/org/jruby/Ruby.java | ||
public RubyClass defineClass(String name, RubyClass superClass) { if (superClass == null) { superClass = getClasses().getObjectClass(); } RubyClass newClass = RubyClass.newClass(this, superClass, name); newClass.makeMetaClass(superClass.getMetaClass()); newClass.inherit... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/fffe7aa25510c5fa1f975232bea0ef0fd24762d7/Ruby.java/buggy/src/org/jruby/Ruby.java | ||
public RubyClass defineClass(String name, RubyClass superClass) { if (superClass == null) { superClass = getClasses().getObjectClass(); } RubyClass newClass = RubyClass.newClass(this, superClass, name); newClass.makeMetaClass(superClass.getMetaClass()); newClass.inherit... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/fffe7aa25510c5fa1f975232bea0ef0fd24762d7/Ruby.java/buggy/src/org/jruby/Ruby.java | ||
qf = new QueryFactory(); | protected void setUp() throws Exception { super.setUp(); qf = new QueryFactory(); impl = new PojosImpl(); impl.setQueryFactory( qf ); ProxyFactory factory = new ProxyFactory(impl); factory.addAdvice(new ServiceHandler()); manager = (IPojos) factory.getProxy(); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/59b11883b95c926d6706e6d30b4cdb898088683c/PojosConstraintsTest.java/clean/components/server/test/ome/server/utests/PojosConstraintsTest.java | |
impl.setQueryFactory( qf ); | protected void setUp() throws Exception { super.setUp(); qf = new QueryFactory(); impl = new PojosImpl(); impl.setQueryFactory( qf ); ProxyFactory factory = new ProxyFactory(impl); factory.addAdvice(new ServiceHandler()); manager = (IPojos) factory.getProxy(); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/59b11883b95c926d6706e6d30b4cdb898088683c/PojosConstraintsTest.java/clean/components/server/test/ome/server/utests/PojosConstraintsTest.java | |
t.blowup(false,new PojoOptions().exp(1L).map()); | public void testGetUserImages() throws Exception { T t = new T(ApiUsageException.class){ @Override public void doTest(Object[] arg) { manager.getUserImages((Map)arg[0]); } }; t.blowup(true,new PojoOptions().allExps().map()); t.blowup(false,new PojoOptions().exp(1L).map()); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/59b11883b95c926d6706e6d30b4cdb898088683c/PojosConstraintsTest.java/clean/components/server/test/ome/server/utests/PojosConstraintsTest.java | |
.addIds(null) | .addIds(Arrays.asList( doesntExist )) | public void test_simple_usage() throws Exception { Long doesntExist = -1L; q= new PojosLoadHierarchyQueryDefinition( new Parameters() .addIds(Arrays.asList( doesntExist )) .addOptions(null) .addClass(Project.class) ); ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0039ef3c66932163f0ec9bfa2b7f37eaa70abe47/LoadContainersQueryTest.java/clean/components/server/test/ome/server/itests/query/LoadContainersQueryTest.java |
active = false; | 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/cf83d7e74fdf42d9c4357c3e575c08395991a878/ViewerUIF.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/ViewerUIF.java | |
int maxT = pxsDims.sizeT-1; int maxZ = pxsDims.sizeZ-1; | windowWidth = DEFAULT_WINDOW_SIZE; windowHeight = DEFAULT_WINDOW_SIZE; active = false; int maxT = pxsDims.sizeT-1, maxZ = pxsDims.sizeZ-1; | 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/cf83d7e74fdf42d9c4357c3e575c08395991a878/ViewerUIF.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/ViewerUIF.java |
void resetLens() { canvas.resetLens(); } | void resetLens() { canvas.resetLens(); } | void resetLens() { canvas.resetLens(); //canvas.repaint(); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/cf83d7e74fdf42d9c4357c3e575c08395991a878/ViewerUIF.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/ViewerUIF.java |
int maxZ = sizeZ-1; int maxT = sizeT-1; | int maxZ = sizeZ-1, maxT = sizeT-1; | 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/cf83d7e74fdf42d9c4357c3e575c08395991a878/ViewerUIF.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/ViewerUIF.java |
int width = 7*(screenSize.width/10); int height = 7*(screenSize.height/10); | int width = 8*(screenSize.width/10); int height = 8*(screenSize.height/10); | private void setWindowSize(int w, int h) { Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); int width = 7*(screenSize.width/10); int height = 7*(screenSize.height/10); if (w > width) w = width; if (h > height) h = height; setSize(w, h); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/cf83d7e74fdf42d9c4357c3e575c08395991a878/ViewerUIF.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/ViewerUIF.java |
setSize(w, h); | windowWidth = w; windowHeight = h; | private void setWindowSize(int w, int h) { Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); int width = 7*(screenSize.width/10); int height = 7*(screenSize.height/10); if (w > width) w = width; if (h > height) h = height; setSize(w, h); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/cf83d7e74fdf42d9c4357c3e575c08395991a878/ViewerUIF.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/ViewerUIF.java |
ColorMapModel cml = new ColorMapModel(model); ColorMapManager cmm = env.getColorMapManager(); cmm.putColorMapModel(cml); cmm.updateModel(); | public void handle(RequestEvent request, ResponseEvent response) { if(!(request instanceof LoadCategories) || !(response instanceof CategoriesChanged)) { System.err.println("Invalid ACT types for CategoryChangeHandler"); return; } System.err.pri... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0e4e3c4b5f21d2217fc02b1e6846dac6de60570f/CategoryChangeHandler.java/buggy/SRC/org/openmicroscopy/shoola/agents/browser/events/CategoryChangeHandler.java | |
else if (!postedAdd) closePresentation(); postedAdd = false; | private void handleAddROICanvas(AddROICanvas response) { if (response.isOnOff()) bringUpPresentation(); else if (!postedAdd) closePresentation(); postedAdd = false; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/5cbb9d6f888b330df5f864404990e547ea4b385a/ROIAgt.java/clean/SRC/org/openmicroscopy/shoola/agents/roi/ROIAgt.java | |
singletonClass = runtime.getClass("True"); | singletonClass = runtime.getClass("TrueClass"); | private static IRubyObject evalInternal(ThreadContext context, Node node, IRubyObject self) { IRuby runtime = context.getRuntime(); bigloop: do { if (node == null) return runtime.getNil(); switch (node.nodeId) { case NodeTypes.ALIASNODE: { AliasNode ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/78ea4e1a09765b065cbaed6fdff38f911b4f1dd1/EvaluationState.java/clean/src/org/jruby/evaluator/EvaluationState.java |
singletonClass = runtime.getClass("False"); | singletonClass = runtime.getClass("FalseClass"); | private static IRubyObject evalInternal(ThreadContext context, Node node, IRubyObject self) { IRuby runtime = context.getRuntime(); bigloop: do { if (node == null) return runtime.getNil(); switch (node.nodeId) { case NodeTypes.ALIASNODE: { AliasNode ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/78ea4e1a09765b065cbaed6fdff38f911b4f1dd1/EvaluationState.java/clean/src/org/jruby/evaluator/EvaluationState.java |
if (commandline.assumePrinting) { | if (commandline.isAssumePrinting()) { | private static Node getParsedScript(Ruby runtime, Reader reader, String filename) { Node result = runtime.parse(reader, filename); if (commandline.assumePrinting) { result = new ParserSupport().appendPrintToBlock(result); } if (commandline.assumeLoop) { result = new... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/7fc9704f263fb0e26619a38cdcd58fae7692e4da/Main.java/clean/src/org/jruby/Main.java |
if (commandline.assumeLoop) { result = new ParserSupport().appendWhileLoopToBlock(result, commandline.processLineEnds, commandline.sDoSplit); | if (commandline.isAssumeLoop()) { result = new ParserSupport().appendWhileLoopToBlock(result, commandline.isProcessLineEnds(), commandline.isSplit()); | private static Node getParsedScript(Ruby runtime, Reader reader, String filename) { Node result = runtime.parse(reader, filename); if (commandline.assumePrinting) { result = new ParserSupport().appendPrintToBlock(result); } if (commandline.assumeLoop) { result = new... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/7fc9704f263fb0e26619a38cdcd58fae7692e4da/Main.java/clean/src/org/jruby/Main.java |
IRubyObject argumentArray = runtime.newArray(JavaUtil.convertJavaArrayToRuby(runtime, commandline.scriptArguments)); runtime.setVerbose(runtime.newBoolean(commandline.verbose)); | IRubyObject argumentArray = runtime.newArray(JavaUtil.convertJavaArrayToRuby(runtime, commandline.getScriptArguments())); runtime.setVerbose(runtime.newBoolean(commandline.isVerbose())); | private static void initializeRuntime(final Ruby runtime, String filename) { IRubyObject argumentArray = runtime.newArray(JavaUtil.convertJavaArrayToRuby(runtime, commandline.scriptArguments)); runtime.setVerbose(runtime.newBoolean(commandline.verbose)); defineGlobalVERBOSE(runtime); run... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/7fc9704f263fb0e26619a38cdcd58fae7692e4da/Main.java/clean/src/org/jruby/Main.java |
commandline.verbose ? runtime.getTrue() : runtime.getNil()); | commandline.isVerbose() ? runtime.getTrue() : runtime.getNil()); | private static void initializeRuntime(final Ruby runtime, String filename) { IRubyObject argumentArray = runtime.newArray(JavaUtil.convertJavaArrayToRuby(runtime, commandline.scriptArguments)); runtime.setVerbose(runtime.newBoolean(commandline.verbose)); defineGlobalVERBOSE(runtime); run... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/7fc9704f263fb0e26619a38cdcd58fae7692e4da/Main.java/clean/src/org/jruby/Main.java |
defineGlobal(runtime, "$-p", commandline.assumePrinting); defineGlobal(runtime, "$-n", commandline.assumeLoop); defineGlobal(runtime, "$-a", commandline.sDoSplit); defineGlobal(runtime, "$-l", commandline.processLineEnds); | defineGlobal(runtime, "$-p", commandline.isAssumePrinting()); defineGlobal(runtime, "$-n", commandline.isAssumeLoop()); defineGlobal(runtime, "$-a", commandline.isSplit()); defineGlobal(runtime, "$-l", commandline.isProcessLineEnds()); | private static void initializeRuntime(final Ruby runtime, String filename) { IRubyObject argumentArray = runtime.newArray(JavaUtil.convertJavaArrayToRuby(runtime, commandline.scriptArguments)); runtime.setVerbose(runtime.newBoolean(commandline.verbose)); defineGlobalVERBOSE(runtime); run... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/7fc9704f263fb0e26619a38cdcd58fae7692e4da/Main.java/clean/src/org/jruby/Main.java |
if (commandline.showVersion) { | if (commandline.isShowVersion()) { | public static void main(String[] args) { commandline = new CommandlineParser(args); if (commandline.showVersion) { showVersion(); } if (! commandline.shouldRunInterpreter()) { return; } long now = -1; if (commandline.isBenchmarking) { ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/7fc9704f263fb0e26619a38cdcd58fae7692e4da/Main.java/clean/src/org/jruby/Main.java |
if (commandline.isBenchmarking) { | if (commandline.isBenchmarking()) { | public static void main(String[] args) { commandline = new CommandlineParser(args); if (commandline.showVersion) { showVersion(); } if (! commandline.shouldRunInterpreter()) { return; } long now = -1; if (commandline.isBenchmarking) { ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/7fc9704f263fb0e26619a38cdcd58fae7692e4da/Main.java/clean/src/org/jruby/Main.java |
if (commandline.isBenchmarking) { | if (commandline.isBenchmarking()) { | public static void main(String[] args) { commandline = new CommandlineParser(args); if (commandline.showVersion) { showVersion(); } if (! commandline.shouldRunInterpreter()) { return; } long now = -1; if (commandline.isBenchmarking) { ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/7fc9704f263fb0e26619a38cdcd58fae7692e4da/Main.java/clean/src/org/jruby/Main.java |
public RubyArray singleton_methods() { | public RubyArray singleton_methods(IRubyObject[] args) { boolean all = true; if(checkArgumentCount(args,0,1) == 1) { all = args[0].isTrue(); } | public RubyArray singleton_methods() { RubyArray result = getRuntime().newArray(); for (RubyClass type = getMetaClass(); type != null && type instanceof MetaClass; type = type.getSuperClass()) { for (Iterator iter = type.getMethods().entrySet().iterator(); iter.hasNext(); ) { ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/7a32a4636ecb1df6caaf05de241ff89fc6fd721a/RubyObject.java/clean/src/org/jruby/RubyObject.java |
for (RubyClass type = getMetaClass(); type != null && type instanceof MetaClass; | for (RubyClass type = getMetaClass(); type != null && ((type instanceof MetaClass) || (all && type.isIncluded())); | public RubyArray singleton_methods() { RubyArray result = getRuntime().newArray(); for (RubyClass type = getMetaClass(); type != null && type instanceof MetaClass; type = type.getSuperClass()) { for (Iterator iter = type.getMethods().entrySet().iterator(); iter.hasNext(); ) { ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/7a32a4636ecb1df6caaf05de241ff89fc6fd721a/RubyObject.java/clean/src/org/jruby/RubyObject.java |
if (method.getImplementationClass() != type) { | if (method.getImplementationClass() != type && !(all && type.isIncluded())) { | public RubyArray singleton_methods() { RubyArray result = getRuntime().newArray(); for (RubyClass type = getMetaClass(); type != null && type instanceof MetaClass; type = type.getSuperClass()) { for (Iterator iter = type.getMethods().entrySet().iterator(); iter.hasNext(); ) { ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/7a32a4636ecb1df6caaf05de241ff89fc6fd721a/RubyObject.java/clean/src/org/jruby/RubyObject.java |
_tools = null; | public Context(final Broker broker) { _broker = broker; _bean = null; _tools = null; _toolbox = null; _locals = null; } | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/78a66b349748346624878ff04bb72f314bdac97c/Context.java/buggy/webmacro/src/org/webmacro/Context.java | |
_locals = null; | public Context(final Broker broker) { _broker = broker; _bean = null; _tools = null; _toolbox = null; _locals = null; } | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/78a66b349748346624878ff04bb72f314bdac97c/Context.java/buggy/webmacro/src/org/webmacro/Context.java | |
public void clear() { if (_tools != null) { _tools.clear(); _tools = null; } if (_locals != null) { _locals.clear(); _locals = null; } _bean = null; } | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/78a66b349748346624878ff04bb72f314bdac97c/Context.java/buggy/webmacro/src/org/webmacro/Context.java | ||
protected Object clone() { | public Object clone() { Context c = null; | protected Object clone() { try { return super.clone(); } catch (CloneNotSupportedException cnse) { return null; } } | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/78a66b349748346624878ff04bb72f314bdac97c/Context.java/buggy/webmacro/src/org/webmacro/Context.java |
return super.clone(); } catch (CloneNotSupportedException cnse) { return null; | c = (Context) super.clone(); } catch (CloneNotSupportedException e) { | protected Object clone() { try { return super.clone(); } catch (CloneNotSupportedException cnse) { return null; } } | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/78a66b349748346624878ff04bb72f314bdac97c/Context.java/buggy/webmacro/src/org/webmacro/Context.java |
c._localState = null; c._beanState = null; c._state = 0; c._locals = null; c._bean = null; return c; | protected Object clone() { try { return super.clone(); } catch (CloneNotSupportedException cnse) { return null; } } | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/78a66b349748346624878ff04bb72f314bdac97c/Context.java/buggy/webmacro/src/org/webmacro/Context.java | |
Object res = get(names[0]); if (names.length == 1) { return res; } return PropertyOperator.getProperty(this,get(names[0]),names,1); | return getLocal(names); | public final Object getProperty(final Object[] names) throws PropertyException, InvalidContextException { if (names.length == 0) { return null; } else if (_bean == null) { Object res = get(names[0]); if (names.length == 1) { return res; } return P... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/78a66b349748346624878ff04bb72f314bdac97c/Context.java/buggy/webmacro/src/org/webmacro/Context.java |
final public Object getTool(String name) | final public Object getTool(Object name) | final public Object getTool(String name) throws InvalidContextException { try { if (_toolbox == null) { return null; } Object ret = (_tools != null) ? _tools.get(name) : null; if (ret == null) { ContextTool tool = (ContextTool) _toolbox.get(name); ... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/78a66b349748346624878ff04bb72f314bdac97c/Context.java/buggy/webmacro/src/org/webmacro/Context.java |
if (names.length == 1) { put(names[0], value); return true; } return PropertyOperator.setProperty(this,get(names[0]),names,1,value); | return setLocal(names, value); | final public boolean setProperty(final Object[] names, final Object value) throws PropertyException, InvalidContextException { if (names.length == 0) { return false; } else if (_bean == null) { if (names.length == 1) { put(names[0], value); return true; ... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/78a66b349748346624878ff04bb72f314bdac97c/Context.java/buggy/webmacro/src/org/webmacro/Context.java |
public void setPaneIndex(int index); | public void setPaneIndex(int index, ImageDisplay node); | public void setPaneIndex(int index); | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b4992016524102ee0a5c7465d4cc7a94e9ffce2d/ClipBoard.java/clean/SRC/org/openmicroscopy/shoola/agents/hiviewer/clipboard/ClipBoard.java |
histogramPanel = new HistogramPanel(mini, maxi, start, end, yStart, yEnd, histogramData); | histogramPanel = new HistogramPanel(manager, mini, maxi, start, end, yStart, yEnd, histogramData); | HistogramDialog(QuantumPaneManager control, int mini, int maxi, int start, int end, PixelsStatsEntry[] histogramData) { super(control.getReferenceFrame(), "Histogram", true); manager = new HistogramDialogManager(this, control); int yStart, yEnd; yStart = manager.convertRealIntoGraphics(start); yEnd = manager... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/83f676753e39a506a8cb86c443c49fa697ec99eb/HistogramDialog.java/buggy/SRC/org/openmicroscopy/shoola/agents/rnd/pane/HistogramDialog.java |
if (list.size() == 0) | if (list.size() == 0) { | public void saveRenderingSettings(int pixelsID, int imageID, RenderingDef rDef) throws DSOutOfServiceException, DSAccessException { UserDetails uc = registry.getDataManagementService().getUserDetails(); Criteria c = ImageMapper.buildRenderingSettingsCr... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/c622334a979ccc7cf4d7a06543d34a9976a98145/STSAdapter.java/clean/SRC/org/openmicroscopy/shoola/env/data/STSAdapter.java |
else l = saveRS(rDef, list); | gateway.annotateAttributesData(l); } else l = saveRS(rDef, list); | public void saveRenderingSettings(int pixelsID, int imageID, RenderingDef rDef) throws DSOutOfServiceException, DSAccessException { UserDetails uc = registry.getDataManagementService().getUserDetails(); Criteria c = ImageMapper.buildRenderingSettingsCr... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/c622334a979ccc7cf4d7a06543d34a9976a98145/STSAdapter.java/clean/SRC/org/openmicroscopy/shoola/env/data/STSAdapter.java |
menu.add(new JMenuItem( controller.getAction(HiViewerControl.VIEW_CGCI))); | private JMenu createViewMenu() { JMenu menu = new JMenu("View"); menu.setMnemonic(KeyEvent.VK_V); //menu.add(new JMenuItem(controller.getAction(HiViewerControl.VIEW_PDI))); menu.add(new JMenuItem( controller.getAction(HiViewerControl.VIEW_CGCI))); //m... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ea7509babe2344eb702969105eb77096cc5b6bcf/HiViewerWin.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/view/HiViewerWin.java | |
return cBase; | return (RubyModule)getRubyFrame().getCbase().getClassValue(); | public RubyModule getCBase() { return cBase; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/b3fad11fe9fed3c3b955874e822c0e093e06dfc8/Ruby.java/buggy/org/jruby/Ruby.java |
this.cBase = cBase; | getRubyFrame().getCbase().setClassValue(cBase); | public void setCBase(RubyModule cBase) { this.cBase = cBase; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/b3fad11fe9fed3c3b955874e822c0e093e06dfc8/Ruby.java/buggy/org/jruby/Ruby.java |
private void processQueue() { // reference queue is sychronized, so no need to do it ourself Node node; while ((node = (Node)queue.poll()) != null) { int hash = (node.hash & 0x7FFFFFFF) % tab.length; Node last=null; synchronized (locks[hash]) { if... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/8a0f4a517aef2a2415967033ec13a7af56a3d52a/SimpleIdentityMap.java/buggy/webmacro/src/org/webmacro/util/SimpleIdentityMap.java | ||
private void onClick(MouseEvent me, boolean released) { Point p = me.getPoint(); JTree tree = getSelectedTree(); int row = tree.getRowForLocation(p.x, p.y); if (row != -1) { if (me.getClickCount() == 1) { model.setClickPoint(p); if (me.... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/38a31e9c570bc8c0bbfb871c8b12b0e52420f22c/BrowserUI.java/clean/SRC/org/openmicroscopy/shoola/agents/treeviewer/browser/BrowserUI.java | ||
if (value.isKindOf(runtime.getClass("JavaProxy"))) { | if (value.isKindOf(runtime.getClasses().getClass("JavaProxy"))) { | public IRubyObject setValue(IRubyObject value) { runtime.getLoadService().require("java"); if (value.isKindOf(runtime.getClass("JavaProxy"))) { value = value.getInstanceVariable("java_object"); } value = Java.primitive_to_java(value, value); ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/b131c179820af614acbf465c63fa6656693f4c1c/JRubyEngine.java/clean/src/org/jruby/javasupport/bsf/JRubyEngine.java |
if (value.isKindOf(runtime.getClass("JavaProxy"))) { | if (value.isKindOf(runtime.getClasses().getClass("JavaProxy"))) { | private Object convertToJava(IRubyObject value, Class type) { runtime.getLoadService().require("java"); if (value.isKindOf(runtime.getClass("JavaProxy"))) { value = value.getInstanceVariable("java_object"); } value = Java.primitive_to_java(value, value); return JavaUtil... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/b131c179820af614acbf465c63fa6656693f4c1c/JRubyEngine.java/clean/src/org/jruby/javasupport/bsf/JRubyEngine.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/ZSuperNode.java/clean/org/jruby/nodes/ZSuperNode.java |
List argsList = ruby.getRubyFrame().getArgs(); RubyObject[] argsObj = (RubyObject[])argsList.toArray(new RubyObject[argsList.size()]); | RubyPointer args = (RubyPointer)ruby.getRubyFrame().getArgs(); | public RubyObject eval(Ruby ruby, RubyObject self) { // TMP_PROTECT; if (ruby.getRubyFrame().getLastClass() == null) { throw new RubyNameException("superclass method '" + ruby.getRubyFrame().getLastFunc().toName() + "' disabled"); } List argsList = ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f629550c5947df9c1dbe414645f3dc76bcb70df4/ZSuperNode.java/clean/org/jruby/nodes/ZSuperNode.java |
ruby.getRubyFrame().getLastFunc(), argsObj, 3); | ruby.getRubyFrame().getLastFunc(), args, 3); | public RubyObject eval(Ruby ruby, RubyObject self) { // TMP_PROTECT; if (ruby.getRubyFrame().getLastClass() == null) { throw new RubyNameException("superclass method '" + ruby.getRubyFrame().getLastFunc().toName() + "' disabled"); } List argsList = ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f629550c5947df9c1dbe414645f3dc76bcb70df4/ZSuperNode.java/clean/org/jruby/nodes/ZSuperNode.java |
if (model.getTreeView() == null) return; model.showTreeView(!model.getTreeView().isDisplay()); | TreeView treeView = model.createTreeView(); model.showTreeView(!treeView.isDisplay()); | public void actionPerformed(ActionEvent e) { if (model.getTreeView() == null) return; model.showTreeView(!model.getTreeView().isDisplay()); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ea7509babe2344eb702969105eb77096cc5b6bcf/TreeViewAction.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/actions/TreeViewAction.java |
} else if (descriptor.getPropertyType().isAssignableFrom(QName[].class)) { String name = descriptor.getName(); MutablePropertyValues propertyValues = bd.getPropertyValues(); PropertyValue propertyValue = propertyValues.getPropertyValue(name); if (propertyValue != null) { Object value = propertyValue.getValue(); if (val... | public static void coerceNamespaceAwarePropertyValues(AbstractBeanDefinition bd, Element element, PropertyDescriptor[] descriptors, int i) { PropertyDescriptor descriptor = descriptors[i]; if (descriptor.getPropertyType().isAssignableFrom(QName.class)) { String name = descriptor.getName(); ... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/9f84d66432421d859c75d97009aa7e3b50bb9b82/QNameHelper.java/buggy/spring/src/main/java/org/xbean/spring/context/impl/QNameHelper.java | |
thumbnailLoaded = false; | protected EditorModel(TreeViewer parentModel, int editorType, DataObject hierarchyObject, TreeImageDisplay parent) { if (parentModel == null) throw new NullPointerException("No parent model."); if (editorType != Editor.CREATE_EDITOR && editorType... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/464efde90db6bc5095c0a7e5952f51ad0f37ca86/EditorModel.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/editors/EditorModel.java | |
private void createMenuBar() { menuBar = new JToolBar(); menuBar.setBorder(null); menuBar.setRollover(true); menuBar.setFloatable(false); JButton button = new JButton( controller.getAction(BrowserControl.BACKWARD_NAV)); button.setBorderPainted(false); ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/146920a8791fff71320ced0f240b9d8f3d319a13/BrowserUI.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/browser/BrowserUI.java | ||
private void createMenuBar() { menuBar = new JToolBar(); menuBar.setBorder(null); menuBar.setRollover(true); menuBar.setFloatable(false); JButton button = new JButton( controller.getAction(BrowserControl.BACKWARD_NAV)); button.setBorderPainted(false); ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/146920a8791fff71320ced0f240b9d8f3d319a13/BrowserUI.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/browser/BrowserUI.java | ||
private void createMenuBar() { menuBar = new JToolBar(); menuBar.setBorder(null); menuBar.setRollover(true); menuBar.setFloatable(false); JButton button = new JButton( controller.getAction(BrowserControl.BACKWARD_NAV)); button.setBorderPainted(false); ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/146920a8791fff71320ced0f240b9d8f3d319a13/BrowserUI.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/browser/BrowserUI.java | ||
partialButton = new JToggleButton( controller.getAction(BrowserControl.PARTIAL_NAME)); partialButton.setBorderPainted(true); menuBar.add(partialButton); | private void createMenuBar() { menuBar = new JToolBar(); menuBar.setBorder(null); menuBar.setRollover(true); menuBar.setFloatable(false); JButton button = new JButton( controller.getAction(BrowserControl.BACKWARD_NAV)); button.setBorderPainted(false); ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/146920a8791fff71320ced0f240b9d8f3d319a13/BrowserUI.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/browser/BrowserUI.java | |
public static File createTempFile(String prefix, String suffix) throws IOException { File file = File.createTempFile(prefix, suffix); | public static File createTempFile(String prefix, String suffix, File directory) throws IOException { File file = File.createTempFile(prefix, suffix, directory); | public static File createTempFile(String prefix, String suffix) throws IOException { File file = File.createTempFile(prefix, suffix); return new NormalizedFile(file.getPath()); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/c506a9979e35512d57d5f29f0d18b3da14ef2919/NormalizedFile.java/buggy/src/org/jruby/util/NormalizedFile.java |
Object[] args = (Object[]) argsBuilder.buildAsArray(bc); | Object[] args = argsBuilder.buildAsArray(bc); | public Object build(BuildContext bc) throws BuildException { MacroDefinition md = bc.getMacro(name); if (md == null) throw new BuildException("No such macro " + name); Object[] args = (Object[]) argsBuilder.buildAsArray(bc); return md.expand(args, bc); } | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/67f3bf2b9347218e8efc5ecece60bb5f03730152/MacroBuilder.java/clean/webmacro/src/org/webmacro/engine/MacroBuilder.java |
if (descriptor.getPropertyType() == null) { return; } | public static void coerceNamespaceAwarePropertyValues(AbstractBeanDefinition bd, Element element, PropertyDescriptor[] descriptors, int i) { PropertyDescriptor descriptor = descriptors[i]; if (descriptor.getPropertyType().isAssignableFrom(QName.class)) { String name = descriptor.getName(); ... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/7aefc79bab6c2fcfbc4fd52754e4f36f5daf79f5/QNameHelper.java/buggy/spring/src/main/java/org/xbean/spring/context/impl/QNameHelper.java | |
module.defineModuleFunction("trap", callbackFactory.getOptSingletonMethod("trap")); | public static RubyModule createKernelModule(IRuby runtime) { RubyModule module = runtime.defineModule("Kernel"); CallbackFactory callbackFactory = runtime.callbackFactory(RubyKernel.class); module.defineModuleFunction("Array", callbackFactory.getSingletonMethod("new_array", IRubyObject.class));... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a1b8fc1d456e3d5c6e01579b88773383068aa85c/RubyKernel.java/clean/src/org/jruby/RubyKernel.java | |
IRuby runtime = recv.getRuntime(); JumpException je = new JumpException(JumpException.JumpType.ThrowJump); String tag = args[0].asSymbol(); IRubyObject value = args.length > 1 ? args[1] : recv.getRuntime().getNil(); RubyException nameException = new RubyException(runtime, runtime.getClass("NameError"), "uncaught throw ... | IRuby runtime = recv.getRuntime(); JumpException je = new JumpException(JumpException.JumpType.ThrowJump); String tag = args[0].asSymbol(); IRubyObject value = args.length > 1 ? args[1] : recv.getRuntime().getNil(); RubyException nameException = new RubyException(runtime, runtime.getClass("NameError"), "uncaught throw ... | public static IRubyObject rbThrow(IRubyObject recv, IRubyObject[] args) { IRuby runtime = recv.getRuntime(); JumpException je = new JumpException(JumpException.JumpType.ThrowJump); String tag = args[0].asSymbol(); IRubyObject value = args.length > 1 ? args[1] : recv.getRuntime().getNil(); RubyEx... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a1b8fc1d456e3d5c6e01579b88773383068aa85c/RubyKernel.java/clean/src/org/jruby/RubyKernel.java |
public RubyClass newSubClass(String name, RubyModule parent) { return new IntegerMetaClass(name, this, parent); | public RubyClass newSubClass(String name, SinglyLinkedList parentCRef) { return new IntegerMetaClass(name, this, parentCRef); | public RubyClass newSubClass(String name, RubyModule parent) { return new IntegerMetaClass(name, this, parent); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a1b8fc1d456e3d5c6e01579b88773383068aa85c/IntegerMetaClass.java/buggy/src/org/jruby/runtime/builtin/meta/IntegerMetaClass.java |
password = JOptionPane.showInputDialog(null, "Enter Room Password", "Need Password", JOptionPane.QUESTION_MESSAGE); | password = JOptionPane.showInputDialog(null, Res.getString("message.enter.room.password"), Res.getString("title.password"), JOptionPane.QUESTION_MESSAGE); | public static void autoJoinConferenceRoom(final String roomName, String roomJID, String password) { ChatManager chatManager = SparkManager.getChatManager(); final MultiUserChat groupChat = new MultiUserChat(SparkManager.getConnection(), roomJID); LocalPreferences pref = SettingsManager.getLocal... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/19e17d68c2c9589c1eea9caba87ba9f18813b1c4/ConferenceUtils.java/buggy/src/java/org/jivesoftware/spark/ui/conferences/ConferenceUtils.java |
Header.print(System.out); getJava().createArg().setValue("--format"); getJava().createArg().setValue(format); | initArgs(); | public void execute() throws BuildException { Header.print(System.out); getJava().createArg().setValue("--format"); getJava().createArg().setValue(format); if (dataFile != null) { getJava().createArg().setValue("--datafile"); getJava().createArg().setValue(dataFile); } getJava().createArg().setValue("--dest... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/12464e2c222b85c4fe40070c50e015403ce5acfe/ReportTask.java/clean/cobertura/src/net/sourceforge/cobertura/ant/ReportTask.java |
getJava().createArg().setValue("--datafile"); getJava().createArg().setValue(dataFile); | addArg("--datafile"); addArg(dataFile); } addArg("--destination"); addArg(this.destDir.getAbsolutePath()); addArg("--format"); addArg(format); if (srcDir != null) { addArg("--basedir"); addArg(srcDir); | public void execute() throws BuildException { Header.print(System.out); getJava().createArg().setValue("--format"); getJava().createArg().setValue(format); if (dataFile != null) { getJava().createArg().setValue("--datafile"); getJava().createArg().setValue(dataFile); } getJava().createArg().setValue("--dest... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/12464e2c222b85c4fe40070c50e015403ce5acfe/ReportTask.java/clean/cobertura/src/net/sourceforge/cobertura/ant/ReportTask.java |
getJava().createArg().setValue("--destination"); getJava().createArg().setValue(destDir.toString()); | handleFilesets(); | public void execute() throws BuildException { Header.print(System.out); getJava().createArg().setValue("--format"); getJava().createArg().setValue(format); if (dataFile != null) { getJava().createArg().setValue("--datafile"); getJava().createArg().setValue(dataFile); } getJava().createArg().setValue("--dest... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/12464e2c222b85c4fe40070c50e015403ce5acfe/ReportTask.java/clean/cobertura/src/net/sourceforge/cobertura/ant/ReportTask.java |
getJava().createArg().setValue("--source"); getJava().createArg().setValue(src.toString()); | saveArgs(); | public void execute() throws BuildException { Header.print(System.out); getJava().createArg().setValue("--format"); getJava().createArg().setValue(format); if (dataFile != null) { getJava().createArg().setValue("--datafile"); getJava().createArg().setValue(dataFile); } getJava().createArg().setValue("--dest... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/12464e2c222b85c4fe40070c50e015403ce5acfe/ReportTask.java/clean/cobertura/src/net/sourceforge/cobertura/ant/ReportTask.java |
throw new BuildException("Error generating report. See messages above."); | throw new BuildException("Error running reports. See messages above."); | public void execute() throws BuildException { Header.print(System.out); getJava().createArg().setValue("--format"); getJava().createArg().setValue(format); if (dataFile != null) { getJava().createArg().setValue("--datafile"); getJava().createArg().setValue(dataFile); } getJava().createArg().setValue("--dest... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/12464e2c222b85c4fe40070c50e015403ce5acfe/ReportTask.java/clean/cobertura/src/net/sourceforge/cobertura/ant/ReportTask.java |
unInitArgs(); | public void execute() throws BuildException { Header.print(System.out); getJava().createArg().setValue("--format"); getJava().createArg().setValue(format); if (dataFile != null) { getJava().createArg().setValue("--datafile"); getJava().createArg().setValue(dataFile); } getJava().createArg().setValue("--dest... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/12464e2c222b85c4fe40070c50e015403ce5acfe/ReportTask.java/clean/cobertura/src/net/sourceforge/cobertura/ant/ReportTask.java | |
public void setDataFile(String dataFile) { | public void setDataFile(String dataFile) { | public void setDataFile(String dataFile) { this.dataFile = dataFile; } | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/12464e2c222b85c4fe40070c50e015403ce5acfe/ReportTask.java/clean/cobertura/src/net/sourceforge/cobertura/ant/ReportTask.java |
public void setDestDir(File destDir) { | public void setDestDir(File destDir) { | public void setDestDir(File destDir) { this.destDir = destDir; } | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/12464e2c222b85c4fe40070c50e015403ce5acfe/ReportTask.java/clean/cobertura/src/net/sourceforge/cobertura/ant/ReportTask.java |
public void setFormat(String format) { | public void setFormat(String format) { | public void setFormat(String format) { this.format = format; } | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/12464e2c222b85c4fe40070c50e015403ce5acfe/ReportTask.java/clean/cobertura/src/net/sourceforge/cobertura/ant/ReportTask.java |
public void setSrcDir(Path srcDir) { if (src == null) { src = srcDir; } else { src.append(srcDir); } | public void setSrcDir(String dir) { srcDir = dir; | public void setSrcDir(Path srcDir) { if (src == null) { src = srcDir; } else { src.append(srcDir); } } | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/12464e2c222b85c4fe40070c50e015403ce5acfe/ReportTask.java/clean/cobertura/src/net/sourceforge/cobertura/ant/ReportTask.java |
public static IRubyObject exit(IRubyObject recv, IRubyObject args[]) { int status = 0; if (args.length > 0) { status = RubyNumeric.fix2int(args[0]); } System.exit(status); return recv.getRuntime().getNil(); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d9317e0eeee3391f47aa759e650cc97132b1f4f7/KernelModule.java/clean/org/jruby/KernelModule.java | ||
System.exit(status); return recv.getRuntime().getNil(); | throw new SystemExit(recv.getRuntime(), status); | public static IRubyObject exit(IRubyObject recv, IRubyObject args[]) { int status = 0; if (args.length > 0) { status = RubyNumeric.fix2int(args[0]); } System.exit(status); return recv.getRuntime().getNil(); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d9317e0eeee3391f47aa759e650cc97132b1f4f7/KernelModule.java/clean/org/jruby/KernelModule.java |
public void propertyChange(PropertyChangeEvent pce) { String propName = pce.getPropertyName(); if (Browser.POPUP_POINT_PROPERTY.equals(propName)) { Browser browser = model.getBrowser(); if (browser == null) return; ImageDisplay d = browser.getLastSelectedDisplay();... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/39bb6f0c93c9752d3daacd9753b8402e6d393a78/HiViewerControl.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/view/HiViewerControl.java | ||
} | } else if (propName.equals(DataHandler.CLASSIFIED_PROPERTY)) { if (view.getDataHandler() == null) return; view.discardDataHandler(); } | public void propertyChange(PropertyChangeEvent pce) { String propName = pce.getPropertyName(); if (Browser.POPUP_POINT_PROPERTY.equals(propName)) { Browser browser = model.getBrowser(); if (browser == null) return; ImageDisplay d = browser.getLastSelectedDisplay();... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/39bb6f0c93c9752d3daacd9753b8402e6d393a78/HiViewerControl.java/buggy/SRC/org/openmicroscopy/shoola/agents/hiviewer/view/HiViewerControl.java |
public static void main(String args[]) throws IOException, MalformedPatternException { int n = Integer.parseInt(args[0]); LinkedList lines = new LinkedList(); try { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); String line; while ((line = in.readLine()) != null) { lin... | 53330 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53330/eb6c850277407b38bcaefb81155941da0f27b849/regexmatch.java/buggy/tests/shootout/java-start/regexmatch.java | ||
double domainMinScreenX = (domainMin/domainGlobalMax)*width; double domainMaxScreenX = (domainMax/domainGlobalMax)*width; | double domainMinScreenX = ((domainMin-domainGlobalMin)/ (domainGlobalMax-domainGlobalMin))*width; double domainMaxScreenX = ((domainMax-domainGlobalMin)/ (domainGlobalMax-domainGlobalMin))*width; | public void paintComponent(Graphics og) { super.paintComponent(og); Graphics2D g = (Graphics2D) og; g.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); double width = getWidth(); double height = getHeight(); g.setColor(FILLCOLOUR); g.fillRect(1, ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/04901a2ad1d2803c9892af547b391655856cae83/GraphicsPaneUI.java/buggy/SRC/org/openmicroscopy/shoola/agents/imviewer/rnd/GraphicsPaneUI.java |
showImages(); | showImages(); break; case IMAGES_SELECTION: bringSelector(e); break; | public void actionPerformed(ActionEvent e) { int index = -1; try { index = Integer.parseInt(e.getActionCommand()); switch (index) { case SAVE: saveSelection(); break; case ALL: selectAll(); break; case CANCEL: cancelSelection(); break; case SHOW_IMAGES: ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a82d641ae8b6aae180291dcfe5e2b1c45e55ea11/DatasetImagesDiffPaneManager.java/clean/SRC/org/openmicroscopy/shoola/agents/datamng/editors/dataset/DatasetImagesDiffPaneManager.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/DatasetImagesDiffPaneManager.java/clean/SRC/org/openmicroscopy/shoola/agents/datamng/editors/dataset/DatasetImagesDiffPaneManager.java | |
case DatasetImagesDiffPane.IMAGES_USED: images = control.getImagesInUserDatasetsDiff(); break; | private void showImages() { int selectedIndex = view.selections.getSelectedIndex(); if (selectedIndex != selectionIndex) { selectionIndex = selectedIndex; List images = null; switch (selectedIndex) { case DatasetImagesDiffPane.IMAGES_IMPORTED: ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a82d641ae8b6aae180291dcfe5e2b1c45e55ea11/DatasetImagesDiffPaneManager.java/clean/SRC/org/openmicroscopy/shoola/agents/datamng/editors/dataset/DatasetImagesDiffPaneManager.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.