rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k | meta stringlengths 141 403 |
|---|---|---|---|
loadTools("Tools"); | loadTools("ContextTools"); | protected void init () throws InitException { String eehClass; // Initialize the property operator cache _propertyOperators.init(this, _config); // Write out our properties as debug records if (_log.loggingDebug()) { String[] properties = _config.getKeys(); ... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/86f22592a0a5ea1975eed1be0d1773078688457f/Broker.java/buggy/webmacro/src/org/webmacro/Broker.java |
saveTimer = new SaveTimer(); Runtime.getRuntime().addShutdownHook(new Thread(saveTimer)); | saveTimer = new SaveTimer(); Runtime.getRuntime().addShutdownHook(new Thread(saveTimer)); | public static ProjectData getGlobalProjectData() { if (globalProjectData != null) return globalProjectData; File dataFile = CoverageDataFileHandler.getDefaultDataFile(); // Read projectData from the serialized file. if (dataFile.isFile()) { //System.out.println("Cobertura: Loading global project data from " +... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/474ef1a282117464c8f840f2d11adc10aa2dba27/ProjectData.java/clean/cobertura/src/net/sourceforge/cobertura/coveragedata/ProjectData.java |
} | public static ProjectData getGlobalProjectData() { if (globalProjectData != null) return globalProjectData; File dataFile = CoverageDataFileHandler.getDefaultDataFile(); // Read projectData from the serialized file. if (dataFile.isFile()) { //System.out.println("Cobertura: Loading global project data from " +... | 50197 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50197/474ef1a282117464c8f840f2d11adc10aa2dba27/ProjectData.java/clean/cobertura/src/net/sourceforge/cobertura/coveragedata/ProjectData.java | |
private RubyTime(IRuby runtime, RubyClass rubyClass) { | public RubyTime(IRuby runtime, RubyClass rubyClass) { | private RubyTime(IRuby runtime, RubyClass rubyClass) { super(runtime, rubyClass); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/70d0ac3914a10ee21018f230c9b0bbf1910d47a3/RubyTime.java/buggy/src/org/jruby/RubyTime.java |
return getRuntime().newArray(new IRubyObject[] { sec(), min(), hour(), mday(), month(), year(), wday(), yday(), isdst(), zone() }); | return getRuntime().newArray(new IRubyObject[] { sec(), min(), hour(), mday(), month(), year(), wday(), yday(), isdst(), zone() }); | public RubyArray to_a() { return getRuntime().newArray(new IRubyObject[] { sec(), min(), hour(), mday(), month(), year(), wday(), yday(), isdst(), zone() }); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/70d0ac3914a10ee21018f230c9b0bbf1910d47a3/RubyTime.java/buggy/src/org/jruby/RubyTime.java |
public static void main(String[] args) throws Exception { // lame hard coded log initialization Logger root = Logger.getRootLogger(); root.addAppender(new ConsoleAppender(new PatternLayout("%d{ABSOLUTE} %-5p [%c{1}] %m%n"))); root.setLevel(Level.INFO); log.info("Server startup beg... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/6a661ce4fbc3261ed4b3a744b1e1919df53cbbf7/Daemon.java/buggy/kernel/src/java/org/gbean/geronimo/Daemon.java | ||
while (o instanceof Macro) | while (o instanceof Macro && o != UndefinedMacro.getInstance()) | public Object evaluate (Context context) throws PropertyException { Object o = _object; // evaluate the _object reference down to its base object while (o instanceof Macro) o = ((Macro) o).evaluate(context); if (o == null) { // the Variable to check isn't ... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5551b1eeb5a1072aee091b3feb6697a1c6d3ef11/TypeDirective.java/clean/webmacro/src/org/webmacro/directive/TypeDirective.java |
if (o == null) | if (o == null || o == UndefinedMacro.getInstance()) | public Object evaluate (Context context) throws PropertyException { Object o = _object; // evaluate the _object reference down to its base object while (o instanceof Macro) o = ((Macro) o).evaluate(context); if (o == null) { // the Variable to check isn't ... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5551b1eeb5a1072aee091b3feb6697a1c6d3ef11/TypeDirective.java/clean/webmacro/src/org/webmacro/directive/TypeDirective.java |
case M_HASH: return hash(); | public RubyObject callIndexed(int index, RubyObject[] args) { switch (index) { case M_CLONE: return rbClone(); case M_DUP: return dup(); case M_OP_CMP: return op_cmp(args[0]); case M_EQUAL: return equal(args[0]); case M_OP_PLUS: ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/7f0907240b4b4a4379424377e971ed0ca23f1dcb/RubyString.java/buggy/org/jruby/RubyString.java | |
stringClass.defineMethod("hash", IndexedCallback.create(M_HASH, 0)); | public static RubyClass createStringClass(Ruby ruby) { RubyClass stringClass = ruby.defineClass("String", ruby.getClasses().getObjectClass()); stringClass.includeModule(ruby.getClasses().getComparableModule()); stringClass.includeModule(ruby.getClasses().getEnumerableModule()); stringClass.defineSingletonMethod("n... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/7f0907240b4b4a4379424377e971ed0ca23f1dcb/RubyString.java/buggy/org/jruby/RubyString.java | |
Connection conn, String sql, int maxRows) throws SQLException | Connection conn, String sql) throws SQLException | public static ResultSetDataTable create( Connection conn, String sql, int maxRows) throws SQLException { return create(conn, sql, maxRows, 0); } | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5729b41ccfce450fabc642c0d322460672dd0ddb/ResultSetDataTable.java/buggy/contrib/DataTable/org/webmacro/datatable/ResultSetDataTable.java |
return create(conn, sql, maxRows, 0); | return create(conn, sql, DEFAULT_MAX_ROWS, 0); | public static ResultSetDataTable create( Connection conn, String sql, int maxRows) throws SQLException { return create(conn, sql, maxRows, 0); } | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/5729b41ccfce450fabc642c0d322460672dd0ddb/ResultSetDataTable.java/buggy/contrib/DataTable/org/webmacro/datatable/ResultSetDataTable.java |
delegate.parseCustomElement(root, false); | try { try { Method m = BeanDefinitionParserDelegate.class.getMethod("parseCustomElement", new Class[] { Element.class }); m.invoke(delegate, new Object[] { root }); } catch (NoSuchMethodException e) { try { Method m = BeanDefinitionParserDelegate.class.getMethod("parseCustomElement", new Class[] { Element.class, boolea... | protected void parseBeanDefinitions(Element root, BeanDefinitionParserDelegate delegate) { String namespaceUri = root.getNamespaceURI(); if (!DomUtils.nodeNameEquals(root, "beans") && !delegate.isDefaultNamespace(namespaceUri)) { delegate.parseCustomElement(root, false); ... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/229fabc3f6789bc24d41b0cf252788ec82e9d725/XBeanBeanDefinitionDocumentReader.java/clean/xbean-spring-v2/src/main/java/org/apache/xbean/spring/context/v2/XBeanBeanDefinitionDocumentReader.java |
e.getCamera().addChild(semanticNode); | PCamera camera = e.getCamera(); for(int i=0; i<camera.getChildrenCount();i++) { Object child = camera.getChild(i); if(child instanceof SemanticZoomNode) { camera.removeChild((SemanticZoomNode)child); i = camera.getChildrenCount(); } } camera.addChild(0,semanticNode); | public void execute(PInputEvent e) { if(e.getCamera().getViewScale() < 1) { Thumbnail t = (Thumbnail)e.getPickedNode(); Image image = t.getImage(); SemanticZoomNode semanticNode = new SemanticZoomNode(t); ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a1f87afb3571b02f52d0f463a29be7fc2083f1d4/PiccoloActions.java/buggy/SRC/org/openmicroscopy/shoola/agents/browser/events/PiccoloActions.java |
return Collections.EMPTY_LIST; | return EMPTY_LIST; | public List childNodes() { return Collections.EMPTY_LIST; } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/b1293eda8454686e846e2a9837b348e2983bb423/SymbolNode.java/clean/src/org/jruby/ast/SymbolNode.java |
semanticLayer.nodeExited(); semanticLayer.hideSemanticNode(getCamera()); | private void init(BrowserTopModel topModel) { env = BrowserEnvironment.getInstance(); setBackground(new Color(192,192,192)); backgroundNode = new BackgroundNode(); foregroundNode = new ForegroundNode(); getLayer().addChild(backgroundNode); getLayer().addChild(for... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0e4e3c4b5f21d2217fc02b1e6846dac6de60570f/BrowserView.java/buggy/SRC/org/openmicroscopy/shoola/agents/browser/ui/BrowserView.java | |
semanticLayer.nodeExited(); semanticLayer.hideSemanticNode(getCamera()); | public void mouseExited(MouseEvent me) { for(Iterator iter = hoverSensitive.iterator(); iter.hasNext();) { HoverSensitive hover = (HoverSensitive)iter.next(); hover.contextExited(); } } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0e4e3c4b5f21d2217fc02b1e6846dac6de60570f/BrowserView.java/buggy/SRC/org/openmicroscopy/shoola/agents/browser/ui/BrowserView.java | |
PiccoloActionFactory.getSemanticEnterAction(this,semanticLayer); | PiccoloActionFactory.getSemanticEnterAction(browserModel, this,semanticLayer); | private void initActions(BrowserModel targetModel) { // theoretically shouldn't happen if(targetModel == null) { return; } defaultTDownActions = new MouseDownActions(); defaultTOverActions = new MouseOverActions(); selectThumbnailAction ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0e4e3c4b5f21d2217fc02b1e6846dac6de60570f/BrowserView.java/buggy/SRC/org/openmicroscopy/shoola/agents/browser/ui/BrowserView.java |
PiccoloActionFactory.getSemanticEnterAction(this,semanticLayer); | PiccoloActionFactory.getSemanticEnterAction(browserModel, this,semanticLayer); | public void modeChanged(String className, BrowserMode mode) { // boooooo. if(className == null) { return; } else if(className.equals(BrowserModel.PAN_MODE_NAME)) { if(mode == BrowserMode.HAND_MODE) { // TODO: change drag li... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0e4e3c4b5f21d2217fc02b1e6846dac6de60570f/BrowserView.java/buggy/SRC/org/openmicroscopy/shoola/agents/browser/ui/BrowserView.java |
System.err.println("repainting..."); | public void paintComponent(Graphics g) { Graphics2D g2 = (Graphics2D)g; // cheapo hack to prevent apparent delay in annotation loading if(firstTimeShown) { Font font = new Font(null,Font.PLAIN,10); AttributedString str = new AttributedString("hi"); g2.... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0e4e3c4b5f21d2217fc02b1e6846dac6de60570f/BrowserView.java/buggy/SRC/org/openmicroscopy/shoola/agents/browser/ui/BrowserView.java | |
registerEditor("java.util.Date", "org.apache.xbean.spring.context.impl.DateEditor"); | public static void registerCustomEditors() { registerEditor("java.io.File", "org.apache.xbean.spring.context.impl.FileEditor"); registerEditor("java.net.URI", "org.apache.xbean.spring.context.impl.URIEditor"); registerEditor("javax.management.ObjectName", "org.apache.xbean.spring.context.impl.O... | 52533 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52533/9f35d4961058296b13ca19f649a5cf27df03d5e9/PropertyEditorHelper.java/buggy/xbean-spring-common/src/main/java/org/apache/xbean/spring/context/impl/PropertyEditorHelper.java | |
if ((0x87ffe06000000000L & l) == 0L) | if ((0xa7ffe06000000000L & l) == 0L) | private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 48; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << cu... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/d78b2ad470cfc8d62a44e3115f3d7ec7fd49b132/WikiParserTokenManager.java/buggy/wiki/src/org/tcdi/opensource/wiki/parser/WikiParserTokenManager.java |
if ((0x87ffe06000000000L & l) == 0L) | if ((0xa7ffe06000000000L & l) == 0L) | private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 48; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << cu... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/d78b2ad470cfc8d62a44e3115f3d7ec7fd49b132/WikiParserTokenManager.java/buggy/wiki/src/org/tcdi/opensource/wiki/parser/WikiParserTokenManager.java |
if ((0x87ffe06000000000L & l) != 0L) | if ((0xa7ffe06000000000L & l) != 0L) | private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 48; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << cu... | 52513 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52513/d78b2ad470cfc8d62a44e3115f3d7ec7fd49b132/WikiParserTokenManager.java/buggy/wiki/src/org/tcdi/opensource/wiki/parser/WikiParserTokenManager.java |
t.blowup(false,new PojoOptions().exp(1)); | t.blowup(false,new PojoOptions().exp(1L)); | public void testGetUserImages(Map options) { T t = new T(IllegalArgumentException.class){ @Override public void doTest(Object[] arg) { manager.getUserImages((Map)arg[0]); } }; t.blowup(true,new PojoOptions().allExps()); t.blowup(false,new PojoOptions().exp(1)); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/0b36a8e77f5bacb7e122d76ffce01866205b09d7/PojosConstraintsTest.java/clean/components/server/test/ome/server/utests/PojosConstraintsTest.java |
IObject model = source.asIObject(this); target2model.put(source,model); return model; | IObject model = source.newIObject(); target2model.put( source, model ); source.fillIObject( model, this ); return model; | public IObject map(ModelBased source){ if (source == null) { return null; } else if (target2model.containsKey(source)){ return (IObject) target2model.get(source); } else { IObject model = source.asIObject(this); target2model.put(source,model); ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/5f68082026bcb57849846aaa0e4de7e32b6ebf72/ReverseModelMapper.java/buggy/components/common/src/ome/util/ReverseModelMapper.java |
resultArray.append(self.getRuntime().yield(blockArg).toRubyObject()); | resultArray.append(self.getRuntime().yield(blockArg)); | public static IRubyObject grep_iter_i(IRubyObject blockArg, IRubyObject arg1, IRubyObject self) { IRubyObject matcher = ((RubyArray) arg1).entry(0); RubyArray resultArray = (RubyArray) ((RubyArray) arg1).entry(1); if (matcher.callMethod("===", blockArg).isTrue()) { resultArray.append... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f235ab756f32ea9496f8f880066b46ad95ebb692/RubyEnumerable.java/buggy/org/jruby/RubyEnumerable.java |
} else if (RubyFixnum.fix2int(self.getRuntime().yield(RubyArray.newArray(self.getRuntime(), blockArg, maxItem)).toRubyObject()) > 0) { | } else if (RubyFixnum.fix2int(self.getRuntime().yield(RubyArray.newArray(self.getRuntime(), blockArg, maxItem))) > 0) { | public static IRubyObject max_iter_i(IRubyObject blockArg, IRubyObject arg1, IRubyObject self) { IRubyObject maxItem = ((RubyArray) arg1).pop(); if (maxItem.isNil()) { ((RubyArray) arg1).append(blockArg); } else if (RubyFixnum.fix2int(self.getRuntime().yield(RubyArray.newArray(self.g... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f235ab756f32ea9496f8f880066b46ad95ebb692/RubyEnumerable.java/buggy/org/jruby/RubyEnumerable.java |
} else if (RubyFixnum.fix2int(self.getRuntime().yield(RubyArray.newArray(self.getRuntime(), blockArg, maxItem)).toRubyObject()) < 0) { | } else if (RubyFixnum.fix2int(self.getRuntime().yield(RubyArray.newArray(self.getRuntime(), blockArg, maxItem))) < 0) { | public static IRubyObject min_iter_i(IRubyObject blockArg, IRubyObject arg1, IRubyObject self) { IRubyObject maxItem = ((RubyArray) arg1).pop(); if (maxItem.isNil()) { ((RubyArray) arg1).append(blockArg); } else if (RubyFixnum.fix2int(self.getRuntime().yield(RubyArray.newArray(self.g... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/f235ab756f32ea9496f8f880066b46ad95ebb692/RubyEnumerable.java/buggy/org/jruby/RubyEnumerable.java |
HttpMethodBase method = null; | HttpMethod method = null; | public void exchange(Request out, Reply in) throws ImageServiceException, IOException { //Sanity checks. if (out == null) throw new NullPointerException("No request."); if (in == null) throw new NullPointerException("No reply."); //Build HTTP request, send it, and wait... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/c0ee67611abddaf7c5a898ad8033ca4845e9d8fe/HttpChannel.java/buggy/SRC/org/openmicroscopy/shoola/omeis/transport/HttpChannel.java |
initTxtWidth(); | public ToolBar(ViewerCtrl control, Registry registry, int sizeT, int sizeZ, int t, int z) { initMovieComponents(registry, sizeT-1); 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/d646a60de63aef44547d7dc82610c8b0687c5f66/ToolBar.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/controls/ToolBar.java | |
tb.addSeparator(); | private JToolBar buildMovieBar() { JToolBar tb = new JToolBar(); tb.setFloatable(false); tb.add(play); tb.add(pause); tb.add(stop); tb.add(rewind); tb.add(forward); tb.addSeparator(); JLabel label = new JLabel(" Rate "); tb.add(label); tb.add(fps); return tb; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/d646a60de63aef44547d7dc82610c8b0687c5f66/ToolBar.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/controls/ToolBar.java | |
tb.addSeparator(); | private JToolBar buildMovieBar() { JToolBar tb = new JToolBar(); tb.setFloatable(false); tb.add(play); tb.add(pause); tb.add(stop); tb.add(rewind); tb.add(forward); tb.addSeparator(); JLabel label = new JLabel(" Rate "); tb.add(label); tb.add(fps); return tb; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/d646a60de63aef44547d7dc82610c8b0687c5f66/ToolBar.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/controls/ToolBar.java | |
tb.add(inspector); tb.addSeparator(); tb.add(saveAs); | private JToolBar buildRenderingBar() { JToolBar tb = new JToolBar(); tb.setFloatable(false); tb.add(render); tb.addSeparator(); tb.add(inspector); tb.addSeparator(); tb.add(saveAs); return tb; } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/d646a60de63aef44547d7dc82610c8b0687c5f66/ToolBar.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/controls/ToolBar.java | |
JLabel label = new JLabel(" Z "); label.setForeground(STEELBLUE); tb.add(label); tb.add(zField); tb.add(zLabel); | tb.add(zPanel); tb.add(tPanel); | private JToolBar buildTextFieldBar() { JToolBar tb = new JToolBar(); tb.setFloatable(false); JLabel label = new JLabel(" Z "); label.setForeground(STEELBLUE); tb.add(label); tb.add(zField); tb.add(zLabel); tb.addSeparator(); label = new JLabel(" T "); label.setForeground(STEELBLUE); tb.add(label); tb.add(t... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/d646a60de63aef44547d7dc82610c8b0687c5f66/ToolBar.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/controls/ToolBar.java |
label = new JLabel(" T "); label.setForeground(STEELBLUE); tb.add(label); tb.add(tField); tb.add(tLabel); | private JToolBar buildTextFieldBar() { JToolBar tb = new JToolBar(); tb.setFloatable(false); JLabel label = new JLabel(" Z "); label.setForeground(STEELBLUE); tb.add(label); tb.add(zField); tb.add(zLabel); tb.addSeparator(); label = new JLabel(" T "); label.setForeground(STEELBLUE); tb.add(label); tb.add(t... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/d646a60de63aef44547d7dc82610c8b0687c5f66/ToolBar.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/controls/ToolBar.java | |
addSeparator(SEPARATOR); add(buildRenderingBar()); addSeparator(SEPARATOR); add(buildMovieBar()); addSeparator(SEPARATOR_END); | addSeparator(Viewer.SEPARATOR_END); | private void buildToolBar() { setFloatable(false); setLayout(new BoxLayout(this, BoxLayout.X_AXIS)); add(buildTextFieldBar()); addSeparator(SEPARATOR); add(buildRenderingBar()); addSeparator(SEPARATOR); add(buildMovieBar()); addSeparator(SEPARATOR_END); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/d646a60de63aef44547d7dc82610c8b0687c5f66/ToolBar.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/controls/ToolBar.java |
editor.setEnabled(b); | editor.setEnabled(b); | private void initMovieComponents(Registry registry, int maxT) { //buttons IconManager im = IconManager.getInstance(registry); saveAs = new JButton(im.getIcon(IconManager.SAVEAS)); saveAs.setToolTipText( UIUtilities.formatToolTipText("Bring up the save image window.")); inspector = new JButton(im.getIcon(Ic... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/d646a60de63aef44547d7dc82610c8b0687c5f66/ToolBar.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/controls/ToolBar.java |
tField.setForeground(STEELBLUE); | tField.setForeground(Viewer.STEELBLUE); | private void initTextFields(int t, int z, int maxT, int maxZ) { zLabel = new JLabel("/"+maxZ); tLabel = new JLabel("/"+maxT); tField = new JTextField(); tField = new JTextField(""+t, (""+maxT).length()); if (maxT-1 == 0) tField.setEditable(false); tField.setForeground(STEELBLUE); tField.setToolTipText( UIUtil... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/d646a60de63aef44547d7dc82610c8b0687c5f66/ToolBar.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/controls/ToolBar.java |
zField.setForeground(STEELBLUE); | zField.setForeground(Viewer.STEELBLUE); | private void initTextFields(int t, int z, int maxT, int maxZ) { zLabel = new JLabel("/"+maxZ); tLabel = new JLabel("/"+maxT); tField = new JTextField(); tField = new JTextField(""+t, (""+maxT).length()); if (maxT-1 == 0) tField.setEditable(false); tField.setForeground(STEELBLUE); tField.setToolTipText( UIUtil... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/d646a60de63aef44547d7dc82610c8b0687c5f66/ToolBar.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/controls/ToolBar.java |
JLabel label = new JLabel(" Z "); zPanel = TextFieldPanel(label, zField, zLabel, ("/"+maxZ).length()); label = new JLabel(" T "); tPanel = TextFieldPanel(label, tField, tLabel, ("/"+maxT).length()); | private void initTextFields(int t, int z, int maxT, int maxZ) { zLabel = new JLabel("/"+maxZ); tLabel = new JLabel("/"+maxT); tField = new JTextField(); tField = new JTextField(""+t, (""+maxT).length()); if (maxT-1 == 0) tField.setEditable(false); tField.setForeground(STEELBLUE); tField.setToolTipText( UIUtil... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/d646a60de63aef44547d7dc82610c8b0687c5f66/ToolBar.java/buggy/SRC/org/openmicroscopy/shoola/agents/viewer/controls/ToolBar.java | |
public DatasetSummary createDataset(List projectSummaries, List imageSummaries, DatasetData retVal, DatasetSummary dProto) throws DSOutOfServiceException, DSAccessException { //Make a new proto if none was provided. if (dProto == null) dProto = new DatasetSummary(); //Create a new pro... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a43ad78503af4e7f39a04cb20cfba13e1c78b806/DMSAdapter.java/buggy/SRC/org/openmicroscopy/shoola/env/data/DMSAdapter.java | ||
public List retrieveImages(int datasetID) | public List retrieveImages(int datasetID, ImageSummary retVal) | public List retrieveImages(int datasetID) throws DSOutOfServiceException, DSAccessException { //Define the criteria by which the object graph is pulled out. Criteria c = DatasetMapper.buildImagesCriteria(datasetID); //Load the graph defined by criteria. Dataset dataset = (Dataset) gateway.retrieveData(Da... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a43ad78503af4e7f39a04cb20cfba13e1c78b806/DMSAdapter.java/buggy/SRC/org/openmicroscopy/shoola/env/data/DMSAdapter.java |
{ | { if (retVal == null) retVal = new ImageSummary(); | public List retrieveImages(int datasetID) throws DSOutOfServiceException, DSAccessException { //Define the criteria by which the object graph is pulled out. Criteria c = DatasetMapper.buildImagesCriteria(datasetID); //Load the graph defined by criteria. Dataset dataset = (Dataset) gateway.retrieveData(Da... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a43ad78503af4e7f39a04cb20cfba13e1c78b806/DMSAdapter.java/buggy/SRC/org/openmicroscopy/shoola/env/data/DMSAdapter.java |
Criteria c = DatasetMapper.buildImagesCriteria(datasetID); | Criteria c = DatasetMapper.buildImagesCriteria(datasetID); | public List retrieveImages(int datasetID) throws DSOutOfServiceException, DSAccessException { //Define the criteria by which the object graph is pulled out. Criteria c = DatasetMapper.buildImagesCriteria(datasetID); //Load the graph defined by criteria. Dataset dataset = (Dataset) gateway.retrieveData(Da... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a43ad78503af4e7f39a04cb20cfba13e1c78b806/DMSAdapter.java/buggy/SRC/org/openmicroscopy/shoola/env/data/DMSAdapter.java |
List images = null; if (dataset != null) images = DatasetMapper.fillListImages(dataset); return images; } | List images = null; if (dataset != null) images = DatasetMapper.fillListImages(dataset, retVal); return images; } | public List retrieveImages(int datasetID) throws DSOutOfServiceException, DSAccessException { //Define the criteria by which the object graph is pulled out. Criteria c = DatasetMapper.buildImagesCriteria(datasetID); //Load the graph defined by criteria. Dataset dataset = (Dataset) gateway.retrieveData(Da... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/a43ad78503af4e7f39a04cb20cfba13e1c78b806/DMSAdapter.java/buggy/SRC/org/openmicroscopy/shoola/env/data/DMSAdapter.java |
if (getConditionNode().eval(ruby, self).isTrue()) { | if (x.eval(ruby, self).isTrue()) { | public RubyObject eval(Ruby ruby, RubyObject self) { ruby.setSourceLine(getLine()); Node x = getConditionNode(); if (getConditionNode().eval(ruby, self).isTrue()) { return self.eval(getBodyNode()); } else { return self.eval(getElseNode()); } } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/beb697e8a074dd8aaf511daca2ed5f004100855d/IfNode.java/clean/org/jruby/nodes/IfNode.java |
if (getScope().hasLocalValues()) { | if (getScope().hasLocalVariables()) { | public IRubyObject getBackref() { if (getScope().hasLocalValues()) { return getScope().getValue(1); } return getNil(); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/6e143e1ded2275ed4da3449d4a13446b099f800d/Ruby.java/clean/src/org/jruby/Ruby.java |
if (getScope().hasLocalValues()) { | if (getScope().hasLocalVariables()) { | public IRubyObject getLastline() { if (getScope().hasLocalValues()) { return getScope().getValue(0); } return RubyString.nilString(this); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/6e143e1ded2275ed4da3449d4a13446b099f800d/Ruby.java/clean/src/org/jruby/Ruby.java |
if (! getScope().hasLocalValues()) { getScope().setLocalNames(new ArrayList(Arrays.asList(new String[] { "_", "~" }))); | if (! getScope().hasLocalVariables()) { getScope().resetLocalVariables(new ArrayList(Arrays.asList(new String[] { "_", "~" }))); | public void setBackref(IRubyObject match) { if (! getScope().hasLocalValues()) { getScope().setLocalNames(new ArrayList(Arrays.asList(new String[] { "_", "~" }))); } getScope().setValue(1, match); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/6e143e1ded2275ed4da3449d4a13446b099f800d/Ruby.java/clean/src/org/jruby/Ruby.java |
if (! getScope().hasLocalValues()) { getScope().setLocalNames(new ArrayList(Arrays.asList(new String[] { "_", "~" }))); | if (! getScope().hasLocalVariables()) { getScope().resetLocalVariables(new ArrayList(Arrays.asList(new String[] { "_", "~" }))); | public void setLastline(IRubyObject value) { if (! getScope().hasLocalValues()) { getScope().setLocalNames(new ArrayList(Arrays.asList(new String[] { "_", "~" }))); } getScope().setValue(0, value); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/6e143e1ded2275ed4da3449d4a13446b099f800d/Ruby.java/clean/src/org/jruby/Ruby.java |
rubyClass.getSingletonClass().includeModule(ruby.getWrapper()); | rubyClass.extendObject(ruby.getWrapper()); | public RubyObject eval(Ruby ruby, RubyObject self) { if (ruby.getRubyClass() == null) { throw new TypeError(ruby, "no outer class/module"); } RubyModule superClass = null; if (getSuperNode() != null) { superClass = getSuperClass(ruby, self, getSuperNod... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d31a76ee29d5978a9bec41e3ac9134cee024bcab/ClassNode.java/buggy/org/jruby/nodes/ClassNode.java |
return JavaObject.wrap(getRuntime(), socket.getRemoteSocketAddress()); | if (socketChannel instanceof SocketChannel) { return JavaObject.wrap(getRuntime(), ((SocketChannel) socketChannel).socket().getRemoteSocketAddress()); } else { throw getRuntime().newIOError("Not Supported"); } | public IRubyObject getpeername() { return JavaObject.wrap(getRuntime(), socket.getRemoteSocketAddress()); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/54e6b8da799629e0b7db879c45149399878f5f84/RubyBasicSocket.java/clean/src/org/jruby/RubyBasicSocket.java |
return JavaObject.wrap(getRuntime(), socket.getLocalSocketAddress()); | if (socketChannel instanceof SocketChannel) { return JavaObject.wrap(getRuntime(), ((SocketChannel) socketChannel).socket().getLocalSocketAddress()); } else if (socketChannel instanceof ServerSocketChannel) { return JavaObject.wrap(getRuntime(), ((ServerSocketChannel) socketChannel).socket().getLocalSocketAddress()); }... | public IRubyObject getsockname() { return JavaObject.wrap(getRuntime(), socket.getLocalSocketAddress()); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/54e6b8da799629e0b7db879c45149399878f5f84/RubyBasicSocket.java/clean/src/org/jruby/RubyBasicSocket.java |
socket = extractSocket(arg); | socketChannel = extractSocketChannel(arg); | public IRubyObject initialize(IRubyObject arg) { socket = extractSocket(arg); try { handler = new IOHandlerSocket(getRuntime(), socket.getInputStream(), socket.getOutputStream()); } catch (IOException e) { throw getRuntime().newIOError(e.getMessage()); } ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/54e6b8da799629e0b7db879c45149399878f5f84/RubyBasicSocket.java/clean/src/org/jruby/RubyBasicSocket.java |
handler = new IOHandlerSocket(getRuntime(), socket.getInputStream(), socket.getOutputStream()); | handler = new IOHandlerNio(getRuntime(), socketChannel); | public IRubyObject initialize(IRubyObject arg) { socket = extractSocket(arg); try { handler = new IOHandlerSocket(getRuntime(), socket.getInputStream(), socket.getOutputStream()); } catch (IOException e) { throw getRuntime().newIOError(e.getMessage()); } ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/54e6b8da799629e0b7db879c45149399878f5f84/RubyBasicSocket.java/clean/src/org/jruby/RubyBasicSocket.java |
return getRuntime().newString(((IOHandlerSocket) handler).recv(RubyNumeric.fix2int(args[0]))); | return getRuntime().newString(((IOHandlerNio) handler).recv(RubyNumeric.fix2int(args[0]))); | public IRubyObject recv(IRubyObject[] args) { try { return getRuntime().newString(((IOHandlerSocket) handler).recv(RubyNumeric.fix2int(args[0]))); } catch (IOHandler.BadDescriptorException e) { throw getRuntime().newErrnoEBADFError(); } catch (EOFException e) { ... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/54e6b8da799629e0b7db879c45149399878f5f84/RubyBasicSocket.java/clean/src/org/jruby/RubyBasicSocket.java |
int how = args.length > 0 ? RubyNumeric.fix2int(args[0]) : SHUTDOWN_BOTH; if (how != SHUTDOWN_RECEIVER && how != SHUTDOWN_SENDER && how != SHUTDOWN_BOTH) { | int how = 2; if (args.length > 0) { how = RubyNumeric.fix2int(args[0]); } if (how < 0 || 2 < how) { | public IRubyObject shutdown(IRubyObject[] args) { if (getRuntime().getSafeLevel() >= 4 && tainted().isFalse()) { throw getRuntime().newSecurityError("Insecure: can't shutdown socket"); } int how = args.length > 0 ? RubyNumeric.fix2int(args[0]) : SHUTDOWN_BOTH; if (how != SHUT... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/54e6b8da799629e0b7db879c45149399878f5f84/RubyBasicSocket.java/clean/src/org/jruby/RubyBasicSocket.java |
if (how != SHUTDOWN_BOTH) { | if (how != 2) { | public IRubyObject shutdown(IRubyObject[] args) { if (getRuntime().getSafeLevel() >= 4 && tainted().isFalse()) { throw getRuntime().newSecurityError("Insecure: can't shutdown socket"); } int how = args.length > 0 ? RubyNumeric.fix2int(args[0]) : SHUTDOWN_BOTH; if (how != SHUT... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/54e6b8da799629e0b7db879c45149399878f5f84/RubyBasicSocket.java/clean/src/org/jruby/RubyBasicSocket.java |
connection = new XMPPConnection(serverName); | connection = new SSLXMPPConnection(serverName); | private boolean login() { final SessionManager sessionManager = SparkManager.getSessionManager(); boolean hasErrors = false; String errorMessage = null; // Handle specifyed Workgroup String serverName = getServerName(); if (!hasErrors) { ... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/945d1e9320b8d07743672b585a318e9c18b70101/LoginDialog.java/buggy/src/java/org/jivesoftware/LoginDialog.java |
connection = new XMPPConnection(localPref.getXmppHost(), port, serverName); | connection = new SSLXMPPConnection(localPref.getXmppHost(), port, serverName); | private boolean login() { final SessionManager sessionManager = SparkManager.getSessionManager(); boolean hasErrors = false; String errorMessage = null; // Handle specifyed Workgroup String serverName = getServerName(); if (!hasErrors) { ... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/945d1e9320b8d07743672b585a318e9c18b70101/LoginDialog.java/buggy/src/java/org/jivesoftware/LoginDialog.java |
this.name = RubyString.newString(ruby, name); this.script = RubyString.newString(ruby, script); } | this.name = RubyString.newString(ruby, name); this.script = RubyString.newString(ruby, script); } | EvalThread(String name, String script) { this.name = RubyString.newString(ruby, name); this.script = RubyString.newString(ruby, script); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/774c5d3d592dfd020e3a8f961b73f629c4c55cf0/TestRubyBase.java/clean/org/jruby/test/TestRubyBase.java |
ruby.getRuntime().loadScript(name, script, false); out.close(); } | ruby.getRuntime().loadScript(name, script, false); out.close(); } | public void run() { ruby.getRuntime().loadScript(name, script, false); out.close(); } | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/774c5d3d592dfd020e3a8f961b73f629c4c55cf0/TestRubyBase.java/clean/org/jruby/test/TestRubyBase.java |
int NUM = Integer.parseInt(args[0]); | public static void main(String args[]) { //@START int NUM = Integer.parseInt(args[0]); boolean [] flags = new boolean[8192 + 1]; int count = 0; while (NUM-- > 0) { count = 0; for (int i=2; i <= 8192; i++) { flags[i] = true; } for (int i=2; i <= 8192; i++) { if (flags[i]) { // remove all multi... | 53330 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/53330/eb6c850277407b38bcaefb81155941da0f27b849/sieve.java/buggy/tests/shootout/java-start/sieve.java | |
if (selectedDisplay.getParentDisplay() == null) browser.accept(visitor); else selectedDisplay.accept(visitor); | if (selectedDisplay.getParentDisplay() == null) return; selectedDisplay.accept(visitor); if (selectedDisplay instanceof ImageSet) { Layout layout = LayoutFactory.createLayout( LayoutFactory.SQUARY_LAYOUT); layout.visit((ImageSet) selectedDisplay); } | public void execute() { ZoomVisitor visitor = new ZoomVisitor(model); Browser browser = model.getBrowser(); ImageDisplay selectedDisplay = browser.getSelectedDisplay(); if (selectedDisplay.getParentDisplay() == null) //root browser.accept(visitor); else selectedDispl... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/7a8e3ab291f958036f1839046f37dbdab1ea19a9/ZoomCmd.java/clean/SRC/org/openmicroscopy/shoola/agents/hiviewer/cmd/ZoomCmd.java |
int datasetID = actionTarget.getDataset().getID(); String name = actionTarget.getDataset().getName(); agent.loadCategories(datasetID,name); | ColorMapManager manager = env.getColorMapManager(); ColorMapUI ui = manager.getUI(); ui.setClosable(true); ui.setIconifiable(true); ui.setResizable(false); ui.setMaximizable(false); if(!ui.isShowing()) { tf.addToDesktop(ui,TopFrame.PALETTE_LAYER); ui.show(); } else { try { ui.setSelected(true); } catch(PropertyVetoExce... | public void actionPerformed(ActionEvent ae) { int datasetID = actionTarget.getDataset().getID(); String name = actionTarget.getDataset().getName(); agent.loadCategories(datasetID,name); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/f82d914fe97ef0c74bef944bf12ae4961776c814/BrowserMenuBar.java/buggy/SRC/org/openmicroscopy/shoola/agents/browser/ui/BrowserMenuBar.java |
if(e.getStateChange() == ItemEvent.SELECTED) | if(e.getStateChange() == ItemEvent.DESELECTED) | public void itemStateChanged(ItemEvent e) { if(e.getStateChange() == ItemEvent.SELECTED) { PiccoloAction magnifierOnAction = PiccoloActionFactory.getMagnifyOnAction(actionTarget); magnifierOnAction.execute(... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/f82d914fe97ef0c74bef944bf12ae4961776c814/BrowserMenuBar.java/buggy/SRC/org/openmicroscopy/shoola/agents/browser/ui/BrowserMenuBar.java |
PiccoloAction magnifierOnAction = PiccoloActionFactory.getMagnifyOnAction(actionTarget); magnifierOnAction.execute(); | public void itemStateChanged(ItemEvent e) { if(e.getStateChange() == ItemEvent.SELECTED) { PiccoloAction magnifierOnAction = PiccoloActionFactory.getMagnifyOnAction(actionTarget); magnifierOnAction.execute(... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/f82d914fe97ef0c74bef944bf12ae4961776c814/BrowserMenuBar.java/buggy/SRC/org/openmicroscopy/shoola/agents/browser/ui/BrowserMenuBar.java | |
else if(e.getStateChange() == ItemEvent.DESELECTED) | else if(e.getStateChange() == ItemEvent.SELECTED) | public void itemStateChanged(ItemEvent e) { if(e.getStateChange() == ItemEvent.SELECTED) { PiccoloAction magnifierOnAction = PiccoloActionFactory.getMagnifyOnAction(actionTarget); magnifierOnAction.execute(... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/f82d914fe97ef0c74bef944bf12ae4961776c814/BrowserMenuBar.java/buggy/SRC/org/openmicroscopy/shoola/agents/browser/ui/BrowserMenuBar.java |
PiccoloAction magnifierOffAction = PiccoloActionFactory.getMagnifyOffAction(actionTarget); magnifierOffAction.execute(); | public void itemStateChanged(ItemEvent e) { if(e.getStateChange() == ItemEvent.SELECTED) { PiccoloAction magnifierOnAction = PiccoloActionFactory.getMagnifyOnAction(actionTarget); magnifierOnAction.execute(... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/f82d914fe97ef0c74bef944bf12ae4961776c814/BrowserMenuBar.java/buggy/SRC/org/openmicroscopy/shoola/agents/browser/ui/BrowserMenuBar.java | |
ColorMapManager manager = env.getColorMapManager(); ColorMapUI ui = manager.getUI(); | HeatMapManager manager = env.getHeatMapManager(); HeatMapUI ui = manager.getUI(); | public void actionPerformed(ActionEvent ae) { ColorMapManager manager = env.getColorMapManager(); ColorMapUI ui = manager.getUI(); ui.setClosable(true); ui.setIconifiable(true); ui.setResizable(false); ui.se... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/f82d914fe97ef0c74bef944bf12ae4961776c814/BrowserMenuBar.java/buggy/SRC/org/openmicroscopy/shoola/agents/browser/ui/BrowserMenuBar.java |
actionTarget.removeOverlayMethod(OverlayMethods.ANNOTATION_METHOD); | actionTarget.removePaintMethod(PaintMethods.DRAW_WELLNO_METHOD, Thumbnail.FOREGROUND_PAINT_METHOD); | public void itemStateChanged(ItemEvent e) { if(e.getStateChange() == ItemEvent.DESELECTED) { actionTarget.removeOverlayMethod(OverlayMethods.ANNOTATION_METHOD); } else if(e.getStateChange() == ItemEvent.SELECTED) ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/f82d914fe97ef0c74bef944bf12ae4961776c814/BrowserMenuBar.java/buggy/SRC/org/openmicroscopy/shoola/agents/browser/ui/BrowserMenuBar.java |
actionTarget.addOverlayMethod(OverlayMethods.ANNOTATION_METHOD); | actionTarget.addPaintMethod(PaintMethods.DRAW_WELLNO_METHOD, Thumbnail.FOREGROUND_PAINT_METHOD); | public void itemStateChanged(ItemEvent e) { if(e.getStateChange() == ItemEvent.DESELECTED) { actionTarget.removeOverlayMethod(OverlayMethods.ANNOTATION_METHOD); } else if(e.getStateChange() == ItemEvent.SELECTED) ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/f82d914fe97ef0c74bef944bf12ae4961776c814/BrowserMenuBar.java/buggy/SRC/org/openmicroscopy/shoola/agents/browser/ui/BrowserMenuBar.java |
actionTarget.removeOverlayMethod(OverlayMethods.ANNOTATION_METHOD); | public void itemStateChanged(ItemEvent e) { if(e.getStateChange() == ItemEvent.DESELECTED) { // TODO add multidimension paint method } else if(e.getStateChange() == ItemEvent.SELECTED) { ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/f82d914fe97ef0c74bef944bf12ae4961776c814/BrowserMenuBar.java/buggy/SRC/org/openmicroscopy/shoola/agents/browser/ui/BrowserMenuBar.java | |
actionTarget.addOverlayMethod(OverlayMethods.ANNOTATION_METHOD); | public void itemStateChanged(ItemEvent e) { if(e.getStateChange() == ItemEvent.DESELECTED) { // TODO add multidimension paint method } else if(e.getStateChange() == ItemEvent.SELECTED) { ... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/f82d914fe97ef0c74bef944bf12ae4961776c814/BrowserMenuBar.java/buggy/SRC/org/openmicroscopy/shoola/agents/browser/ui/BrowserMenuBar.java | |
thumbnailImages[i] = agent.getResizedThumbnail(pix,compositeWidth, compositeHeight); | if(pix != null) { thumbnailImages[i] = agent.getResizedThumbnail(pix,compositeWidth, compositeHeight); } | public void loadCompositeImages() { BrowserEnvironment env = BrowserEnvironment.getInstance(); BrowserAgent agent = env.getBrowserAgent(); if(!multipleModeOn) { ThumbnailDataModel model = parentThumbnail.getModel(); Pixels pix = (Pixels)model.getAttribute... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/ad867bc3f360d4a9ce481731c0723126b9112b54/SemanticZoomNode.java/buggy/SRC/org/openmicroscopy/shoola/agents/browser/ui/SemanticZoomNode.java |
if (o instanceof DataObject) { | if (o instanceof ImageData) { | void viewDataObject() { TreeImageDisplay d = getLastSelectedDisplay(); if (d == null) return; Object o = d.getUserObject(); if (o instanceof DataObject) { ViewCmd cmd = new ViewCmd(parent, (DataObject) o); cmd.execute(); } } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/38a31e9c570bc8c0bbfb871c8b12b0e52420f22c/BrowserModel.java/clean/SRC/org/openmicroscopy/shoola/agents/treeviewer/browser/BrowserModel.java |
public void mousePressed(MouseEvent me) { ThumbWinPopupMenu.hideMenu(); } | public void mousePressed(MouseEvent me) { ThumbWinPopupMenu.hideMenu(); onClick(me); } | public void mousePressed(MouseEvent me) { ThumbWinPopupMenu.hideMenu(); } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/aa0097eff23f798d820afd9d111c6a0ad5d3a62c/ThumbWin.java/clean/SRC/org/openmicroscopy/shoola/agents/hiviewer/view/ThumbWin.java |
public void mouseReleased(MouseEvent me) { if (me.isPopupTrigger()) { popupPoint = me.getPoint(); ThumbWinPopupMenu.showMenuFor(this); } } | public void mouseReleased(MouseEvent me) { onClick(me); } | public void mouseReleased(MouseEvent me) { if (me.isPopupTrigger()) { popupPoint = me.getPoint(); ThumbWinPopupMenu.showMenuFor(this); } } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/aa0097eff23f798d820afd9d111c6a0ad5d3a62c/ThumbWin.java/clean/SRC/org/openmicroscopy/shoola/agents/hiviewer/view/ThumbWin.java |
Log.error(e); | public void initialize() { ProviderManager.addExtensionProvider("phone-event", "http://jivesoftware.com/xmlns/phone", new PhoneEventPacketExtensionProvider()); ProviderManager.addIQProvider("phone-action", "http://jivesoftware.com/xmlns/phone", new PhoneActionIQProvider()); final XMPPConnection... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/caf8563cc06ab68f1c251d173654deb6b4b1a77c/PhonePlugin.java/clean/src/java/org/jivesoftware/sparkimpl/plugin/phone/PhonePlugin.java | |
Log.error(e); | public Object construct() { try { phoneClient = new PhoneClient(con); // Add BaseListener phoneClient.addEventListener(new PhoneListener()); } catch (Exception e) { // Ignore because the ... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/caf8563cc06ab68f1c251d173654deb6b4b1a77c/PhonePlugin.java/clean/src/java/org/jivesoftware/sparkimpl/plugin/phone/PhonePlugin.java | |
abstraction.activate(); | showPresentation(); | public void actionPerformed(ActionEvent e) { String s = (String) e.getActionCommand(); try { int index = Integer.parseInt(s); switch (index) { case DM_VISIBLE: abstraction.activate(); break; case PROJECT_ITEM: createProject(); break; case DATASET_ITEM: createDataset();... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/e717f628b707987e5b693ea9d57b6ef34b300679/DataManagerCtrl.java/clean/SRC/org/openmicroscopy/shoola/agents/datamng/DataManagerCtrl.java |
debug = falseObject; | private void init() { ThreadContext tc = getCurrentContext(); nilObject = new RubyNil(this); trueObject = new RubyBoolean(this, true); falseObject = new RubyBoolean(this, false); verbose = falseObject; javaSupport = new JavaSupport(this); initLibrarie... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/a5d41074f98a47c0108b1a75c44775c0f6e4e87b/Ruby.java/buggy/src/org/jruby/Ruby.java | |
for (Transport transport : TransportManager.getTransports()) { if (TransportManager.isRegistered(SparkManager.getConnection(), transport)) { | for (Transport transport : TransportUtils.getTransports()) { if (TransportUtils.isRegistered(SparkManager.getConnection(), transport)) { | public List<AccountItem> getAccounts() { List<AccountItem> list = new ArrayList<AccountItem>(); for (Transport transport : TransportManager.getTransports()) { if (TransportManager.isRegistered(SparkManager.getConnection(), transport)) { AccountItem item = new AccountItem(tran... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/d039de56513c7dd0e3c5c2762f184ca886fb4900/RosterDialog.java/buggy/src/java/org/jivesoftware/spark/ui/RosterDialog.java |
} | } model.setEditor(null); | public void onDataObjectSave(DataObject data, int operation) { int state = model.getState(); if (operation == REMOVE_OBJECT && state != SAVE) throw new IllegalStateException("This method can only be " + "invoked in the SAVE state"); switch (state) { c... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/d6f445a04c526e987440c318c5240c4fad04549a/TreeViewerComponent.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/view/TreeViewerComponent.java |
model.setEditor(null); | public void onNodesRemoved() { if (model.getState()!= SAVE) throw new IllegalStateException("This method can only be " + "invoked in the SAVE state"); model.setState(READY); fireStateChange(); view.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR))... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/d6f445a04c526e987440c318c5240c4fad04549a/TreeViewerComponent.java/buggy/SRC/org/openmicroscopy/shoola/agents/treeviewer/view/TreeViewerComponent.java | |
try { final PipedInputStream pipeIn = new PipedInputStream(); final PipedOutputStream out = new PipedOutputStream(pipeIn); final PipedInputStream in = new PipedInputStream(); final PipedOutputStream pipeOut = new PipedOutputStream(in); final IRuby runtime = Ruby.newInstance(pipeIn, new PrintStream(pipeOut), new PrintSt... | final PipedInputStream pipeIn = new PipedInputStream(); setLayout(new BorderLayout()); JEditorPane text = new JTextPane(); text.setMargin(new Insets(8,8,8,8)); text.setCaretColor(new Color(0xa4, 0x00, 0x00)); text.setBackground(new Color(0xf2, 0xf2, 0xf2)); text.setForeground(new Color(0xa4, 0x00, 0x00)); Font font ... | public void start() { super.start(); try { final PipedInputStream pipeIn = new PipedInputStream(); final PipedOutputStream out = new PipedOutputStream(pipeIn); final PipedInputStream in = new PipedInputStream(); final PipedOutputStream pipeOut = new PipedOut... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d38821551a58969cd2593b463d93df5f32bf3c14/IRBApplet.java/clean/src/org/jruby/demo/IRBApplet.java |
byte[] buffer = new byte[256]; try { while (true) { int len = in.read(buffer); text.append(new String(buffer, 0, len)); text.setCaretPosition(text.getText().length()); } } catch (IOException ioe) { ioe.printStackTrace(); } } | runtime.evalScript("require 'irb'; require 'irb/completion'; IRB.start"); } | public void run() { byte[] buffer = new byte[256]; try { while (true) { int len = in.read(buffer); text.append(new String(buffer, 0, len)); text.setCaretPosition(... | 50661 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/50661/d38821551a58969cd2593b463d93df5f32bf3c14/IRBApplet.java/clean/src/org/jruby/demo/IRBApplet.java |
ds = (DatasetData) datasets[i]; | ds = (DatasetData) datasets[i]; | private DatasetsAddTableModel() { DatasetData ds; for (int i = 0; i < datasets.length; i++) { ds = (DatasetData) datasets[i]; data[i][0] = ds.getName(); data[i][1] = new Boolean(dats.contains(ds)); } } | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/1ed79437fda6d8f6b2566c6fe677bfaaf3352055/ProjectDatasetsPane.java/buggy/SRC/org/openmicroscopy/shoola/agents/datamng/editors/project/ProjectDatasetsPane.java |
System.err.println("value extracted ok"); | public static double[] extractValues(Attribute[] attributes, String elementName) throws IllegalArgumentException { if(attributes == null || elementName == null) { throw new IllegalArgumentException("Null parameters at " + "Abs... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b50398c0db3353156748a8d1155216615e5ba5d0/HeatMapUtils.java/clean/SRC/org/openmicroscopy/shoola/agents/browser/heatmap/HeatMapUtils.java | |
System.err.println("getting attribute ("+attribute+")"); | public static double parseElement(Attribute attribute, String elementName) throws IllegalArgumentException { if(attribute == null || elementName == null) { throw new IllegalArgumentException("Null parameters at " + "AbstractHeatMapMode.parseElement(Attribute,String)... | 54698 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/54698/b50398c0db3353156748a8d1155216615e5ba5d0/HeatMapUtils.java/clean/SRC/org/openmicroscopy/shoola/agents/browser/heatmap/HeatMapUtils.java | |
Rectangle r = new Rectangle(Math.min(prevX, x), Math.min(prevY, y), Math.abs(x - prevX), Math.abs(y - prevY)); g.drawRect(r.x, r.y, r.width, r.height); Color c = new Color(228, 228, 205); g.setPaint(c); g.fill(r); g.setPaint(Color.BLACK); g.draw(r); rect = r; | if (prevX != x && prevY != y) { Rectangle r = new Rectangle(Math.min(prevX, x), Math.min(prevY, y), Math.abs(x - prevX), Math.abs(y - prevY)); g.drawRect(r.x, r.y, r.width, r.height); Color c = new Color(228, 228, 205); g.setPaint(c); g.fill(r); g.setPaint(Color.BLACK); g.draw(r); rect = r; } | public void mouseDragged(MouseEvent evt) { if (dragging == false) return; int x = Math.min(evt.getX(), getSize().width - 1); x = Math.max(x, 0); int y = Math.min(evt.getY(), getSize().height - 1); y = Math.max(y, 0); paintComponent(g); Rectangle r = new Rectangle(Math.min(prevX, x), Math.min(prevY, y), Mat... | 52128 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52128/28c96f60591c1b90a990f7b2c1b87a91b077bc68/RectangleDrawerPanel.java/clean/RectangleOverlapSolver/placement/RectangleDrawerPanel.java |
rectangles.add(rect); | if (rect != null) rectangles.add(rect); | public void mouseReleased(MouseEvent evt) { if (dragging == false) return; dragging = false; g.dispose(); g = null; rectangles.add(rect); rect = null; } | 52128 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52128/28c96f60591c1b90a990f7b2c1b87a91b077bc68/RectangleDrawerPanel.java/clean/RectangleOverlapSolver/placement/RectangleDrawerPanel.java |
public void paintComponent(Graphics g) { // create the hardware accelerated image. createBackBuffer(); // Main rendering loop. Volatile images may lose their contents. // This loop will continually render to (and produce if neccessary) volatile images // until the rendering was completed successfully. do { //... | 52128 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52128/28c96f60591c1b90a990f7b2c1b87a91b077bc68/RectangleDrawerPanel.java/clean/RectangleOverlapSolver/placement/RectangleDrawerPanel.java | ||
public void paintComponent(Graphics g) { // create the hardware accelerated image. createBackBuffer(); // Main rendering loop. Volatile images may lose their contents. // This loop will continually render to (and produce if neccessary) volatile images // until the rendering was completed successfully. do { //... | 52128 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52128/28c96f60591c1b90a990f7b2c1b87a91b077bc68/RectangleDrawerPanel.java/clean/RectangleOverlapSolver/placement/RectangleDrawerPanel.java | ||
public void paintComponent(Graphics g) { // create the hardware accelerated image. createBackBuffer(); // Main rendering loop. Volatile images may lose their contents. // This loop will continually render to (and produce if neccessary) volatile images // until the rendering was completed successfully. do { //... | 52128 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52128/28c96f60591c1b90a990f7b2c1b87a91b077bc68/RectangleDrawerPanel.java/clean/RectangleOverlapSolver/placement/RectangleDrawerPanel.java | ||
render(getWidth(), getHeight(), offscreenGraphics); | render(getWidth(), getHeight(), offscreenGraphics); | public void paintComponent(Graphics g) { // create the hardware accelerated image. createBackBuffer(); // Main rendering loop. Volatile images may lose their contents. // This loop will continually render to (and produce if neccessary) volatile images // until the rendering was completed successfully. do { //... | 52128 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52128/28c96f60591c1b90a990f7b2c1b87a91b077bc68/RectangleDrawerPanel.java/clean/RectangleOverlapSolver/placement/RectangleDrawerPanel.java |
public void paintComponent(Graphics g) { // create the hardware accelerated image. createBackBuffer(); // Main rendering loop. Volatile images may lose their contents. // This loop will continually render to (and produce if neccessary) volatile images // until the rendering was completed successfully. do { //... | 52128 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52128/28c96f60591c1b90a990f7b2c1b87a91b077bc68/RectangleDrawerPanel.java/clean/RectangleOverlapSolver/placement/RectangleDrawerPanel.java | ||
constraints = ((QPRectanglePlacement) p).constraintGenerator.getConstraints(); | constraints = ((QPRectanglePlacement) p).constraintGenerator .getConstraints(); | public void update(Observable p, Object arg1) { constraints = ((QPRectanglePlacement) p).constraintGenerator.getConstraints(); paintComponent(getGraphics()); } | 52128 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52128/28c96f60591c1b90a990f7b2c1b87a91b077bc68/RectangleDrawerPanel.java/clean/RectangleOverlapSolver/placement/RectangleDrawerPanel.java |
configureMenu(); | buildMenu(); | private MainWindow(String title, ImageIcon icon) { // Initialize and dock the menus configureMenu(); // Add Workspace Container getContentPane().setLayout(new BorderLayout()); // Add menubar this.setJMenuBar(mainWindowBar); this.getContentPane().add(topBar, BorderLay... | 52006 /local/tlutelli/issta_data/temp/all_java5context/java/2006_temp/2006/52006/97917d876023996dcd3bd220e88b62b3f6dcb7fc/MainWindow.java/buggy/src/java/org/jivesoftware/MainWindow.java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.