bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
public void onZChange(int z, int t) { resetZSlider(z); abstraction.onPlaneSelected(z, t); }
public void onZChange(int z, int t) { resetZSlider(z); abstraction.onPlaneSelected(z, t); }
3,229,099
public void onZChange(int z, int t) { resetZSlider(z); abstraction.onPlaneSelected(z, t); }
public void onZChange(int z, int t) { resetZSlider(z); abstraction.onPlaneSelected(z, t); }
3,229,100
void removeProgressNotifier() { progressNotifier.dispose(); progressNotifier = null; }
void removeProgressNotifier() { progressNotifier.dispose(); progressNotifier = null; }
3,229,101
public void setMagFactor(double v) { magFactor = v; }
public void setMagFactor(double v) { magFactor = v; }
3,229,102
void setPresentation(ViewerUIF presentation) { this.presentation = presentation; }
void setPresentation(ViewerUIF presentation) { this.presentation = presentation; }
3,229,103
public void showDialog(JDialog dialog) { UIUtilities.centerAndShow(dialog); }
public void showDialog(JDialog dialog) { UIUtilities.centerAndShow(dialog); }
3,229,104
public void showImage3DViewer() { int model = getModel(); Viewer3D v3D = new Viewer3D(this, abstraction.getPixelsDims().sizeZ, model); if (v3D.isVisible()) UIUtilities.centerAndShow(v3D); else { //TODO: tempo around before fix bug #321 abstraction.setModel(model); ...
public void showImage3DViewer() { int model = getModel(); Viewer3D v3D = new Viewer3D(this, abstraction.getPixelsDims().sizeZ, model); if (v3D.isVisible()) UIUtilities.centerAndShow(v3D); else { //TODO: tempo around before fix bug #321 abstraction.setModel(model); ...
3,229,105
public void showImage3DViewer() { int model = getModel(); Viewer3D v3D = new Viewer3D(this, abstraction.getPixelsDims().sizeZ, model); if (v3D.isVisible()) UIUtilities.centerAndShow(v3D); else { //TODO: tempo around before fix bug #321 abstraction.setModel(model); ...
public void showImage3DViewer() { int model = getModel(); Viewer3D v3D = new Viewer3D(this, abstraction.getPixelsDims().sizeZ, model); if (v3D.isVisible()) UIUtilities.centerAndShow(v3D); else { //TODO: tempo around before fix bug #321 abstraction.setModel(model); ...
3,229,106
public void showImage3DViewer() { int model = getModel(); Viewer3D v3D = new Viewer3D(this, abstraction.getPixelsDims().sizeZ, model); if (v3D.isVisible()) UIUtilities.centerAndShow(v3D); else { //TODO: tempo around before fix bug #321 abstraction.setModel(model); ...
public void showImage3DViewer() { int model = getModel(); Viewer3D v3D = new Viewer3D(this, abstraction.getPixelsDims().sizeZ, model); if (v3D.isVisible()) UIUtilities.centerAndShow(v3D); else { //TODO: tempo around before fix bug #321 abstraction.setModel(model); ...
3,229,107
public void showImageSaver() { BufferedImage image = presentation.getDisplayImage(); if (image == null) { UserNotifier un = getRegistry().getUserNotifier(); un.notifyError("Save image", "No current image displayed"); } else new ImageSaver(this, image); }
public void showImageSaver() { BufferedImage image = presentation.getDisplayImage(); if (image == null) { UserNotifier un = getRegistry().getUserNotifier(); un.notifyError("Save image", "No current image displayed"); } else new ImageSaver(this, image); }
3,229,108
public void showImageSaver() { BufferedImage image = presentation.getDisplayImage(); if (image == null) { UserNotifier un = getRegistry().getUserNotifier(); un.notifyError("Save image", "No current image displayed"); } else new ImageSaver(this, image); }
public void showImageSaver() { BufferedImage image = presentation.getDisplayImage(); if (image == null) { UserNotifier un = getRegistry().getUserNotifier(); un.notifyError("Save image", "No current image displayed"); } else new ImageSaver(this, image); }
3,229,109
public void showInspector() { if (imageInspector == null) imageInspector = new ImageInspector(this, presentation.getCanvas(), magFactor); UIUtilities.centerAndShow(imageInspector); }
public void showInspector() { if (imageInspector == null) imageInspector = new ImageInspector(this, presentation.getCanvas(), magFactor); UIUtilities.centerAndShow(imageInspector); }
3,229,110
public void showInspector() { if (imageInspector == null) imageInspector = new ImageInspector(this, presentation.getCanvas(), magFactor); UIUtilities.centerAndShow(imageInspector); }
public void showInspector() { if (imageInspector == null) imageInspector = new ImageInspector(this, presentation.getCanvas(), magFactor); UIUtilities.centerAndShow(imageInspector); }
3,229,111
public void showMovie() { int maxZ = abstraction.getPixelsDims().sizeZ-1; int maxT = abstraction.getPixelsDims().sizeT-1; if (movieSettings == null) initMovieSettings(maxZ, maxT); if (moviePlayer == null) moviePlayer = new Player(this, maxT, maxZ, movieSettings); UIUtilities.cen...
public void showMovie() { int maxZ = abstraction.getPixelsDims().sizeZ-1; int maxT = abstraction.getPixelsDims().sizeT-1; if (movieSettings == null) initMovieSettings(maxZ, maxT); if (moviePlayer == null) moviePlayer = new Player(this, maxT, maxZ, movieSettings); UIUtilities.cen...
3,229,112
public void showMovie() { int maxZ = abstraction.getPixelsDims().sizeZ-1; int maxT = abstraction.getPixelsDims().sizeT-1; if (movieSettings == null) initMovieSettings(maxZ, maxT); if (moviePlayer == null) moviePlayer = new Player(this, maxT, maxZ, movieSettings); UIUtilities.cen...
public void showMovie() { int maxZ = abstraction.getPixelsDims().sizeZ-1; int maxT = abstraction.getPixelsDims().sizeT-1; if (movieSettings == null) initMovieSettings(maxZ, maxT); if (moviePlayer == null) moviePlayer = new Player(this, maxT, maxZ, movieSettings); UIUtilities.cen...
3,229,113
void showProgressNotifier(String imageName) { progressNotifier = new ProgressNotifier(this, imageName); UIUtilities.centerAndShow(progressNotifier); }
void showProgressNotifier(String imageName) { progressNotifier = new ProgressNotifier(this, imageName); UIUtilities.centerAndShow(progressNotifier); }
3,229,114
public void showRendering() { abstraction.showRendering(); }
public void showRendering() { abstraction.showRendering(); }
3,229,115
public void stateChanged(ChangeEvent e) { Object src = e.getSource(); int valT, valZ; valT = tSlider.getValue(); valZ = zSlider.getValue(); ToolBarManager tbm = presentation.getToolBar().getManager(); if (src == tSlider) tbm.onTChange(valT); else tbm.onZChange(valZ); abstraction.onPlaneSelected(valZ, valT); }
public void stateChanged(ChangeEvent e) { Object src = e.getSource(); int valT, valZ; valT = tSlider.getValue(); valZ = zSlider.getValue(); ToolBarManager tbm = presentation.getToolBar().getManager(); if (src == tSlider) tbm.onTChange(valT); else tbm.onZChange(valZ); abstraction.onPlaneSelected(valZ, valT); }
3,229,116
public void synchPlaneSelected(int z, int previousModel) { resetZSlider(z); resetZField(z); abstraction.setModel(previousModel); abstraction.onPlaneSelected(z); }
void synchPlaneSelected(int z, int model) { resetZSlider(z); resetZField(z); abstraction.setModel(previousModel); abstraction.onPlaneSelected(z); }
3,229,117
public void synchPlaneSelected(int z, int previousModel) { resetZSlider(z); resetZField(z); abstraction.setModel(previousModel); abstraction.onPlaneSelected(z); }
public void synchPlaneSelected(int z, int previousModel) { resetZSlider(z); resetZField(z); abstraction.setModel(model); abstraction.onPlaneSelected(z); }
3,229,118
public void onTChange(int t) { curT = t; view.getTField().setText(""+t); }
public void onTChange(int t) { curT = t; view.getTField().setText(""+t); }
3,229,119
public void onZChange(int z) { curZ = z; view.getZField().setText(""+z); }
public void onZChange(int z) { curZ = z; view.getZField().setText(""+z); }
3,229,120
public ImageInspector(ViewerCtrl control) { //super(control.getReferenceFrame(), "Image Inspector"); initFrame(IconManager.getInstance(control.getRegistry())); setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); init(control); setJMenuBar(menuBar); buildGUI(); }
public ImageInspector(ViewerCtrl control) { //super(control.getReferenceFrame(), "Image Inspector"); initFrame(IconManager.getInstance(control.getRegistry())); setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); init(control); setJMenuBar(menuBar); buildGUI(); }
3,229,121
public RenderingDef retrieveRndSettings(final long pixId) { final Long userId = getSecuritySystem() .getEventContext() .getCurrentUserId(); return (RenderingDef) iQuery.findByQuery( " select rdef from RenderingDef rdef where " + " rdef.pixe...
public RenderingDef retrieveRndSettings(final long pixId) { final Long userId = getSecuritySystem() .getEventContext() .getCurrentUserId(); return (RenderingDef) iQuery.findByQuery( " select rdef from RenderingDef rdef where " + " rdef.pixe...
3,229,123
void setLensVisible(boolean b) { if (lens==null) lens = new LensComponent(this); if (b==true) { if (model.getMaxX() < lens.getLensUI().getWidth() || model.getMaxY() < lens.getLensUI().getHeight()) return; if (firstTimeLensShow...
void setLensVisible(boolean b) { if (lens==null) lens = new LensComponent(this); if (b) { if (model.getMaxX() < lens.getLensUI().getWidth() || model.getMaxY() < lens.getLensUI().getHeight()) return; if (firstTimeLensShown) ...
3,229,124
void setLensVisible(boolean b) { if (lens==null) lens = new LensComponent(this); if (b==true) { if (model.getMaxX() < lens.getLensUI().getWidth() || model.getMaxY() < lens.getLensUI().getHeight()) return; if (firstTimeLensShow...
void setLensVisible(boolean b) { if (lens==null) lens = new LensComponent(this); if (b==true) { if (model.getMaxX() < lens.getLensUI().getWidth() || model.getMaxY() < lens.getLensUI().getHeight()) return; if (firstTimeLensShow...
3,229,125
void setLensVisible(boolean b) { if (lens==null) lens = new LensComponent(this); if (b==true) { if (model.getMaxX() < lens.getLensUI().getWidth() || model.getMaxY() < lens.getLensUI().getHeight()) return; if (firstTimeLensShow...
void setLensVisible(boolean b) { if (lens==null) lens = new LensComponent(this); if (b==true) { if (model.getMaxX() < lens.getLensUI().getWidth() || model.getMaxY() < lens.getLensUI().getHeight()) return; if (firstTimeLensShow...
3,229,126
public String getName() { return name; }
public String getName() { return name; }
3,229,127
public LensComponent(JFrame parent) { this(parent, null); }
public LensComponent(JFrame parent) { this(parent, null); }
3,229,130
public LensComponent(JFrame parent) { this(parent, null); }
public LensComponent(JFrame parent) { this(parent, null); }
3,229,131
final private void doRequest( HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { WebContext context = null; if (_problem != null) { init(); if (_problem != null) { try { resp.setContentType("text/html"); ...
final private void doRequest( HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { WebContext context = null; if (_problem != null) { init(); if (_problem != null) { try { resp.setContentType("text/html"); ...
3,229,132
final private void doRequest( HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { WebContext context = null; if (_problem != null) { init(); if (_problem != null) { try { resp.setContentType("text/html"); ...
final private void doRequest( HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { WebContext context = null; if (_problem != null) { init(); if (_problem != null) { try { resp.setContentType("text/html"); ...
3,229,133
final private void doRequest( HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { WebContext context = null; if (_problem != null) { init(); if (_problem != null) { try { resp.setContentType("text/html"); ...
final private void doRequest( HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { WebContext context = null; if (_problem != null) { init(); if (_problem != null) { try { resp.setContentType("text/html"); ...
3,229,134
final private void doRequest( HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { WebContext context = null; if (_problem != null) { init(); if (_problem != null) { try { resp.setContentType("text/html"); ...
final private void doRequest( HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { WebContext context = null; if (_problem != null) { init(); if (_problem != null) { try { resp.setContentType("text/html"); ...
3,229,135
final protected void execute(Template tmpl, WebContext c) { Writer out = null; try { c.startTiming("Template.write", tmpl); FastWriter fw; try { HttpServletResponse resp= c.getResponse(); fw = FastWriter.getInstance( resp.getOutputStream(), r...
final protected void execute(Template tmpl, WebContext c) { Writer out = null; try { if (timing) c.startTiming("Template.write", tmpl); FastWriter fw; try { HttpServletResponse resp= c.getResponse(); fw = FastWriter.getInstance( resp.getOutpu...
3,229,136
final protected void execute(Template tmpl, WebContext c) { Writer out = null; try { c.startTiming("Template.write", tmpl); FastWriter fw; try { HttpServletResponse resp= c.getResponse(); fw = FastWriter.getInstance( resp.getOutputStream(), r...
final protected void execute(Template tmpl, WebContext c) { Writer out = null; try { c.startTiming("Template.write", tmpl); FastWriter fw; try { HttpServletResponse resp= c.getResponse(); fw = FastWriter.getInstance( resp.getOutputStream(), r...
3,229,137
final protected void execute(Template tmpl, WebContext c) { Writer out = null; try { c.startTiming("Template.write", tmpl); FastWriter fw; try { HttpServletResponse resp= c.getResponse(); fw = FastWriter.getInstance( resp.getOutputStream(), r...
final protected void execute(Template tmpl, WebContext c) { Writer out = null; try { c.startTiming("Template.write", tmpl); FastWriter fw; try { HttpServletResponse resp= c.getResponse(); fw = FastWriter.getInstance( resp.getOutputStream(), r...
3,229,138
final protected void execute(Template tmpl, WebContext c) { Writer out = null; try { c.startTiming("Template.write", tmpl); FastWriter fw; try { HttpServletResponse resp= c.getResponse(); fw = FastWriter.getInstance( resp.getOutputStream(), r...
final protected void execute(Template tmpl, WebContext c) { Writer out = null; try { c.startTiming("Template.write", tmpl); FastWriter fw; try { HttpServletResponse resp= c.getResponse(); fw = FastWriter.getInstance( resp.getOutputStream(), r...
3,229,139
private void addInstrumentation(File file) { if (file.isDirectory()) { File[] contents = file.listFiles(); for (int i = 0; i < contents.length; i++) addInstrumentation(contents[i]); return; } if (!isClass(file)) { return; } if (logger.isDebugEnabled()) { logger.debug("instrumenting " + file.getAbs...
private void addInstrumentation(File file) { if (file.isDirectory()) { File[] contents = file.listFiles(); for (int i = 0; i < contents.length; i++) addInstrumentation(contents[i]); return; } if (!isClass(file)) { return; } if (logger.isDebugEnabled()) { logger.debug("instrumenting " + file.getAbs...
3,229,140
private Ruby() { nilObject = RubyObject.nilObject(this); trueObject = new RubyBoolean(this, true); falseObject = new RubyBoolean(this, false); javaSupport = new JavaSupport(this); }
private Ruby() { nilObject = new RubyNil(this); trueObject = new RubyBoolean(this, true); falseObject = new RubyBoolean(this, false); javaSupport = new JavaSupport(this); }
3,229,141
public void setSatisfied() { lock.lock(); try { condition.signalAll(); } finally { lock.unlock(); } }
public void setSatisfied() { lock.lock(); try { if (!satisfied) { satisfied = true; condition.signalAll(); } } finally { lock.unlock(); } }
3,229,142
public int getIntegerSetting(String key) { String snum = getSetting(key); try { return Integer.parseInt(key); } catch (Exception e) { return 0; } }
public int getIntegerSetting(String key) { String snum = getSetting(key); try { return Integer.parseInt(snum); } catch (Exception e) { return 0; } }
3,229,143
public PaletteModuleView(ChainModuleData module) { super(module); }
public PaletteModuleView(ChainModuleData module) { super(module); }
3,229,144
private ChainView getChainViewParent() { PNode p = getParent(); while (p != null) { if (p instanceof ChainView) return (ChainView) p; p = p.getParent(); } return null; }
private ChainView getChainViewParent() { PNode p = getParent(); while (p != null) { if (p instanceof ChainView) return (ChainView) p; p = p.getParent(); } return null; }
3,229,145
private ChainView getChainViewParent() { PNode p = getParent(); while (p != null) { if (p instanceof ChainView) return (ChainView) p; p = p.getParent(); } return null; }
private ChainView getChainViewParent() { PNode p = getParent(); while (p != null) { if (p instanceof ChainView) return (ChainView) p; p = p.getParent(); } return null; }
3,229,146
protected LinkTarget getLinkTarget() { LinkTarget link = super.getLinkTarget(); link.setPickable(false); return link; }
protected LinkTarget getLinkTarget() { LinkTarget link = super.getLinkTarget(); link.setPickable(false); return link; }
3,229,147
public void mouseClicked(GenericEventHandler handler) { ((ChainPaletteEventHandler) handler).animateToNode(this); ((ChainPaletteEventHandler) handler).setLastEntered(this); }
public void mouseClicked(GenericEventHandler handler) { ((ChainPaletteEventHandler) handler).animateToNode(this); ((ChainPaletteEventHandler) handler).setLastEntered(this); }
3,229,148
public void mousePopup(GenericEventHandler handler) { ChainView view = getChainViewParent(); ((ChainPaletteEventHandler) handler).animateToNode(view); ((ChainPaletteEventHandler) handler).setLastEntered(view); ((ChainPaletteEventHandler) handler).hideLastChainView(); }
public void mousePopup(GenericEventHandler handler) { ChainView view = getChainViewParent(); ((ChainPaletteEventHandler) handler).animateToNode(view); ((ChainPaletteEventHandler) handler).setLastEntered(view); ((ChainPaletteEventHandler) handler).hideLastChainView(); }
3,229,149
public void mousePopup(GenericEventHandler handler) { ChainView view = getChainViewParent(); ((ChainPaletteEventHandler) handler).animateToNode(view); ((ChainPaletteEventHandler) handler).setLastEntered(view); ((ChainPaletteEventHandler) handler).hideLastChainView(); }
public void mousePopup(GenericEventHandler handler) { ChainView view = getChainViewParent(); ((ChainPaletteEventHandler) handler).animateToNode(view); ((ChainPaletteEventHandler) handler).setLastEntered(view); ((ChainPaletteEventHandler) handler).hideLastChainView(); }
3,229,150
protected String[] getConfigLocations() { return new String[] { "WEB-INF/dao.xml", "WEB-INF/data.xml", "WEB-INF/config-test.xml" }; }
protected String[] getConfigLocations() { return new String[] { "WEB-INF/services.xml", "WEB-INF/dao.xml", "WEB-INF/data.xml", "WEB-INF/config-test.xml" }; }
3,229,151
public void testImageThumbnailExplodsOnHessianSerialization() { HierarchyBrowsingImpl hbv = new HierarchyBrowsingImpl(); SessionFactory sessions = (SessionFactory) this.applicationContext .getBean("sessionFactory"); // Mock Dao Mock containerDao = new Mock(ContainerDao.cla...
public void testImageThumbnailExplodsOnHessianSerialization() { HierarchyBrowsingImpl hbv = new HierarchyBrowsingImpl(); SessionFactory sessions = (SessionFactory) this.applicationContext .getBean("sessionFactory"); // Mock Dao Mock containerDao = new Mock(ContainerDao.cla...
3,229,152
public void testImageThumbnailExplodsOnHessianSerialization() { HierarchyBrowsingImpl hbv = new HierarchyBrowsingImpl(); SessionFactory sessions = (SessionFactory) this.applicationContext .getBean("sessionFactory"); // Mock Dao Mock containerDao = new Mock(ContainerDao.cla...
public void testImageThumbnailExplodsOnHessianSerialization() { HierarchyBrowsingImpl hbv = new HierarchyBrowsingImpl(); SessionFactory sessions = (SessionFactory) this.applicationContext .getBean("sessionFactory"); // Mock Dao Mock containerDao = new Mock(ContainerDao.cla...
3,229,153
public void testImageThumbnailExplodsOnHessianSerialization() { HierarchyBrowsingImpl hbv = new HierarchyBrowsingImpl(); SessionFactory sessions = (SessionFactory) this.applicationContext .getBean("sessionFactory"); // Mock Dao Mock containerDao = new Mock(ContainerDao.cla...
public void testImageThumbnailExplodsOnHessianSerialization() { HierarchyBrowsingImpl hbv = new HierarchyBrowsingImpl(); SessionFactory sessions = (SessionFactory) this.applicationContext .getBean("sessionFactory"); // Mock Dao Mock containerDao = new Mock(ContainerDao.cla...
3,229,154
public Object doInHibernate(Session session) throws HibernateException { Query q = session.createQuery("from Image as i join fetch i.datasets as ds join fetch ds.projects as prj "); return q.setMaxResults(1).uniqueResult(); }
public Object doInHibernate(Session session) throws HibernateException { Query q = session .createQuery("from Image as i join fetch i.datasets as ds join fetch ds.projects as prj "); return q.setMaxResults(1).uniqueResult(); }
3,229,155
public Object build(DirectiveBuilder builder, BuildContext bc) throws BuildException { Object c = builder.getArg(IF_COND, bc); boolean cMacro = (c instanceof Macro); int elseifCount; DirectiveArgs elseArgs; DirectiveArgs[] elseifArgs = null; // If condition is static and true...
public Object build(DirectiveBuilder builder, BuildContext bc) throws BuildException { Object c = builder.getArg(IF_COND, bc); boolean cMacro = (c instanceof Macro); int elseifCount; DirectiveArgs elseArgs; DirectiveArgs[] elseifArgs = null; // If condition is static and true...
3,229,156
public Object build(DirectiveBuilder builder, BuildContext bc) throws BuildException { Object c = builder.getArg(IF_COND, bc); boolean cMacro = (c instanceof Macro); int elseifCount; DirectiveArgs elseArgs; DirectiveArgs[] elseifArgs = null; // If condition is static and true...
public Object build(DirectiveBuilder builder, BuildContext bc) throws BuildException { Object c = builder.getArg(IF_COND, bc); boolean cMacro = (c instanceof Macro); int elseifCount; DirectiveArgs elseArgs; DirectiveArgs[] elseifArgs = null; // If condition is static and true...
3,229,157
public Object build(DirectiveBuilder builder, BuildContext bc) throws BuildException { Object c = builder.getArg(IF_COND, bc); boolean cMacro = (c instanceof Macro); int elseifCount; DirectiveArgs elseArgs; DirectiveArgs[] elseifArgs = null; // If condition is static and true...
public Object build(DirectiveBuilder builder, BuildContext bc) throws BuildException { Object c = builder.getArg(IF_COND, bc); boolean cMacro = (c instanceof Macro); int elseifCount; DirectiveArgs elseArgs; DirectiveArgs[] elseifArgs = null; // If condition is static and true...
3,229,158
public Object build(DirectiveBuilder builder, BuildContext bc) throws BuildException { Object c = builder.getArg(IF_COND, bc); boolean cMacro = (c instanceof Macro); int elseifCount; DirectiveArgs elseArgs; DirectiveArgs[] elseifArgs = null; // If condition is static and true...
public Object build(DirectiveBuilder builder, BuildContext bc) throws BuildException { Object c = builder.getArg(IF_COND, bc); boolean cMacro = (c instanceof Macro); int elseifCount; DirectiveArgs elseArgs; DirectiveArgs[] elseifArgs = null; // If condition is static and true...
3,229,159
public Object build(DirectiveBuilder builder, BuildContext bc) throws BuildException { Object c = builder.getArg(IF_COND, bc); boolean cMacro = (c instanceof Macro); int elseifCount; DirectiveArgs elseArgs; DirectiveArgs[] elseifArgs = null; // If condition is static and true...
public Object build(DirectiveBuilder builder, BuildContext bc) throws BuildException { Object c = builder.getArg(IF_COND, bc); boolean cMacro = (c instanceof Macro); int elseifCount; DirectiveArgs elseArgs; DirectiveArgs[] elseifArgs = null; // If condition is static and true...
3,229,160
public Object build(DirectiveBuilder builder, BuildContext bc) throws BuildException { Object c = builder.getArg(IF_COND, bc); boolean cMacro = (c instanceof Macro); int elseifCount; DirectiveArgs elseArgs; DirectiveArgs[] elseifArgs = null; // If condition is static and true...
public Object build(DirectiveBuilder builder, BuildContext bc) throws BuildException { Object c = builder.getArg(IF_COND, bc); boolean cMacro = (c instanceof Macro); int elseifCount; DirectiveArgs elseArgs; DirectiveArgs[] elseifArgs = null; // If condition is static and true...
3,229,161
int yPositionForValue(int value) { /* int min = model.getMinimum(); int max = model.getMaximum(); int trackLength = trackRect.height; double valueRange = (double)max -(double)min; double pixelsPerValue = trackLength/valueRange; int trackTop = trackRect.y; ...
int yPositionForValue(int value) { /* int min = model.getMinimum(); int max = model.getMaximum(); int trackLength = trackRect.height; double valueRange = (double)max -(double)min; double pixelsPerValue = trackLength/valueRange; int trackTop = trackRect.y; ...
3,229,162
int yValueForPosition(int yPosition) { /* int value; int minValue = model.getMinimum(); int maxValue = model.getMaximum(); int trackLength = trackRect.height; int trackTop = trackRect.y; int trackBottom = trackRect.y+trackRect.height; if (yPosition <= track...
int yValueForPosition(int yPosition) { /* int value; int minValue = model.getMinimum(); int maxValue = model.getMaximum(); int trackLength = trackRect.height; int trackTop = trackRect.y; int trackBottom = trackRect.y+trackRect.height; if (yPosition <= track...
3,229,163
public static IRubyObject backquote(IRubyObject recv, IRubyObject aString) { StringBuffer output = new StringBuffer(); IRuby runtime = recv.getRuntime(); runtime.getGlobalVariables().set("$?", runtime.newFixnum( runInShell(runtime, aString.toString(), output))); return...
public static IRubyObject backquote(IRubyObject recv, IRubyObject aString) { IRuby runtime = recv.getRuntime(); runtime.getGlobalVariables().set("$?", runtime.newFixnum( runInShell(runtime, aString.toString(), output))); return recv.getRuntime().newString(output.toStri...
3,229,164
public static IRubyObject backquote(IRubyObject recv, IRubyObject aString) { StringBuffer output = new StringBuffer(); IRuby runtime = recv.getRuntime(); runtime.getGlobalVariables().set("$?", runtime.newFixnum( runInShell(runtime, aString.toString(), output))); return...
public static IRubyObject backquote(IRubyObject recv, IRubyObject aString) { StringBuffer output = new StringBuffer(); IRuby runtime = recv.getRuntime(); runtime.getGlobalVariables().set("$?", runtime.newFixnum( runInShell(runtime, aString.toString(), output))); return...
3,229,165
private static String repairDirSeps(String command) { // TODO: This could be improved and optimized StringTokenizer toker = new StringTokenizer(command, " "); StringBuffer executable = new StringBuffer(); boolean insideQuotes = false; char quoteChar = 0; loop: while...
private static String repairDirSeps(String command) { // TODO: This could be improved and optimized StringTokenizer toker = new StringTokenizer(command, " "); StringBuffer executable = new StringBuffer(); boolean insideQuotes = false; char quoteChar = 0; loop: while...
3,229,166
private static String repairDirSeps(String command) { // TODO: This could be improved and optimized StringTokenizer toker = new StringTokenizer(command, " "); StringBuffer executable = new StringBuffer(); boolean insideQuotes = false; char quoteChar = 0; loop: while...
private static String repairDirSeps(String command) { // TODO: This could be improved and optimized StringTokenizer toker = new StringTokenizer(command, " "); StringBuffer executable = new StringBuffer(); boolean insideQuotes = false; char quoteChar = 0; loop: while...
3,229,167
private static String repairDirSeps(String command) { // TODO: This could be improved and optimized StringTokenizer toker = new StringTokenizer(command, " "); StringBuffer executable = new StringBuffer(); boolean insideQuotes = false; char quoteChar = 0; loop: while...
private static String repairDirSeps(String command) { // TODO: This could be improved and optimized StringTokenizer toker = new StringTokenizer(command, " "); StringBuffer executable = new StringBuffer(); boolean insideQuotes = false; char quoteChar = 0; loop: while...
3,229,168
private static String repairDirSeps(String command) { // TODO: This could be improved and optimized StringTokenizer toker = new StringTokenizer(command, " "); StringBuffer executable = new StringBuffer(); boolean insideQuotes = false; char quoteChar = 0; loop: while...
private static String repairDirSeps(String command) { // TODO: This could be improved and optimized StringTokenizer toker = new StringTokenizer(command, " "); StringBuffer executable = new StringBuffer(); boolean insideQuotes = false; char quoteChar = 0; loop: while...
3,229,169
private static int runInShell(IRuby runtime, String command, StringBuffer output) { try { String shell = System.getProperty("jruby.shell"); Process aProcess; String shellSwitch = "-c"; command = repairDirSeps(command); if (shell !...
private static int runInShell(IRuby runtime, IRubyObject[] rawArgs, OutputStream output) { try { String shell = System.getProperty("jruby.shell"); Process aProcess; String shellSwitch = "-c"; command = repairDirSeps(command); if (...
3,229,170
private static int runInShell(IRuby runtime, String command, StringBuffer output) { try { String shell = System.getProperty("jruby.shell"); Process aProcess; String shellSwitch = "-c"; command = repairDirSeps(command); if (shell !...
private static int runInShell(IRuby runtime, String command, StringBuffer output) { try { String shell = System.getProperty("jruby.shell"); Process aProcess; String shellSwitch = "-c"; command = repairDirSeps(command); if (shell !...
3,229,171
private static int runInShell(IRuby runtime, String command, StringBuffer output) { try { String shell = System.getProperty("jruby.shell"); Process aProcess; String shellSwitch = "-c"; command = repairDirSeps(command); if (shell !...
private static int runInShell(IRuby runtime, String command, StringBuffer output) { try { String shell = System.getProperty("jruby.shell"); Process aProcess; String shellSwitch = "-c"; if (isRubyCommand(rawArgs[0].toString())) { List args = parseCommand...
3,229,172
private static int runInShell(IRuby runtime, String command, StringBuffer output) { try { String shell = System.getProperty("jruby.shell"); Process aProcess; String shellSwitch = "-c"; command = repairDirSeps(command); if (shell !...
private static int runInShell(IRuby runtime, String command, StringBuffer output) { try { String shell = System.getProperty("jruby.shell"); Process aProcess; String shellSwitch = "-c"; command = repairDirSeps(command); if (shell !...
3,229,173
private static int runInShell(IRuby runtime, String command, StringBuffer output) { try { String shell = System.getProperty("jruby.shell"); Process aProcess; String shellSwitch = "-c"; command = repairDirSeps(command); if (shell !...
private static int runInShell(IRuby runtime, String command, StringBuffer output) { try { String shell = System.getProperty("jruby.shell"); Process aProcess; String shellSwitch = "-c"; command = repairDirSeps(command); if (shell !...
3,229,174
private static int runInShell(IRuby runtime, String command, StringBuffer output) { try { String shell = System.getProperty("jruby.shell"); Process aProcess; String shellSwitch = "-c"; command = repairDirSeps(command); if (shell !...
private static int runInShell(IRuby runtime, String command, StringBuffer output) { try { String shell = System.getProperty("jruby.shell"); Process aProcess; String shellSwitch = "-c"; command = repairDirSeps(command); if (shell !...
3,229,175
private static int runInShell(IRuby runtime, String command, StringBuffer output) { try { String shell = System.getProperty("jruby.shell"); Process aProcess; String shellSwitch = "-c"; command = repairDirSeps(command); if (shell !...
private static int runInShell(IRuby runtime, String command, StringBuffer output) { try { String shell = System.getProperty("jruby.shell"); Process aProcess; String shellSwitch = "-c"; command = repairDirSeps(command); if (shell !...
3,229,176
public static RubyBoolean system(IRubyObject recv, IRubyObject[] args) { IRuby runtime = recv.getRuntime(); if (args.length > 1) { throw runtime.newArgumentError("more arguments not yet supported"); } StringBuffer output = new StringBuffer(); int resultCode = runInShell...
public static RubyBoolean system(IRubyObject recv, IRubyObject[] args) { IRuby runtime = recv.getRuntime(); if (args.length > 1) { throw runtime.newArgumentError("more arguments not yet supported"); } StringBuffer output = new StringBuffer(); int resultCode = runInShell...
3,229,177
private RubyRegexp getPattern(IRubyObject[] args) { if (args.length == 0) { return RubyRegexp.newRegexp(runtime, "\\s+", 0); } if (args[0] instanceof RubyRegexp) { return RubyRegexp.regexpValue(args[0]); } else { RubyString stringPattern = RubyString.stri...
private RubyRegexp getPattern(IRubyObject[] args) { if (args.length == 0) { return RubyRegexp.newRegexp(runtime, "\\s+", 0); } if (args[0] instanceof RubyRegexp) { return RubyRegexp.regexpValue(args[0]); } else { RubyString stringPattern = RubyString.stri...
3,229,178
private RubyRegexp getPattern(IRubyObject[] args) { if (args.length == 0) { return RubyRegexp.newRegexp(runtime, "\\s+", 0); } if (args[0] instanceof RubyRegexp) { return RubyRegexp.regexpValue(args[0]); } else { RubyString stringPattern = RubyString.stri...
private RubyRegexp getPattern(IRubyObject[] args) { if (args.length == 0) { return RubyRegexp.newRegexp(runtime, "\\s+", 0); } if (args[0] instanceof RubyRegexp) { return RubyRegexp.regexpValue(args[0]); } else { RubyString stringPattern = RubyString.stri...
3,229,179
private void process() { if (limit == 1) { result.add(splitee); return; } int pos = 0; int beg = 0; int hits = 0; int len = splitee.length(); RubyString rubySplitee = RubyString.newString(runtime, splitee); while ((beg = pattern.search(rubySplitee, pos)) > -1) {...
private void process() { if (limit == 1) { result.add(splitee); return; } int pos = 0; int beg = 0; int hits = 0; int len = splitee.length(); RubyString rubySplitee = RubyString.newString(runtime, splitee); while ((beg = pattern.search(rubySplitee, pos)) > -1) {...
3,229,180
public Clazz(String longName) { if (longName == null) { throw new IllegalArgumentException("Class name can not be null."); } lines = new TreeMap(); packageName = ClassHelper.getPackageName(longName); name = ClassHelper.getBaseName(longName); numberOfBranches = 0; numberOfCoveredBranches = 0; numberOfCovered...
public Clazz(String longName) { if (longName == null) { throw new IllegalArgumentException("Class name can not be null."); } lines = new TreeMap(); packageName = ClassHelper.getPackageName(longName); name = ClassHelper.getBaseName(longName); numberOfBranches = 0; numberOfCoveredBranches = 0; numberOfCovered...
3,229,181
public Clazz(String longName) { if (longName == null) { throw new IllegalArgumentException("Class name can not be null."); } lines = new TreeMap(); packageName = ClassHelper.getPackageName(longName); name = ClassHelper.getBaseName(longName); numberOfBranches = 0; numberOfCoveredBranches = 0; numberOfCovered...
public Clazz(String longName) { if (longName == null) { throw new IllegalArgumentException("Class name can not be null."); } lines = new TreeMap(); packageName = ClassHelper.getPackageName(longName); name = ClassHelper.getBaseName(longName); numberOfBranches = 0; numberOfCoveredBranches = 0; numberOfCovered...
3,229,182
public int getNumberOfBranches() { return numberOfBranches; }
public int getNumberOfBranches() { return numberOfBranches; }
3,229,183
public int getNumberOfCoveredBranches() { return numberOfCoveredBranches; }
public int getNumberOfCoveredBranches() { return numberOfCoveredBranches; }
3,229,184
public int getNumberOfCoveredLines() { return numberOfCoveredLines; }
public int getNumberOfCoveredLines() { return numberOfCoveredLines; }
3,229,185
public int getNumberOfLines() { return numberOfLines; }
public int getNumberOfLines() { return numberOfLines; }
3,229,186
public final void setRawCoverageData(CoverageData rawCoverageData) { this.rawCoverageData = rawCoverageData; }
public final void setRawCoverageData(CoverageData rawCoverageData) { this.rawCoverageData = rawCoverageData; }
3,229,187
public static RubyClass createSymbolClass(Ruby ruby) { RubyClass symbolClass = ruby.defineClass("Symbol", ruby.getClasses().getObjectClass()); symbolClass.getRubyClass().undefMethod("new"); symbolClass.defineMethod("id", CallbackFactory.getMethod(RubySymbol.class, "id")); ...
public static RubyClass createSymbolClass(Ruby ruby) { RubyClass symbolClass = ruby.defineClass("Symbol", ruby.getClasses().getObjectClass()); symbolClass.getRubyClass().undefMethod("new"); symbolClass.defineMethod("id", CallbackFactory.getMethod(RubySymbol.class, "id")); ...
3,229,188
public LoadError(Ruby ruby, String msg) { super(ruby, ruby.getExceptions().getTypeError(), msg); }
public LoadError(Ruby ruby, String msg) { super(ruby, ruby.getExceptions().getLoadError(), msg); }
3,229,189
public int getEndT() { return Integer.parseInt(view.getMPane().getMovieEndT().getText()); }
public int getEndT() { return Integer.parseInt(view.mPane.movieEndT.getText()); }
3,229,190
public int getEndZ() { return Integer.parseInt(view.getMPane().getMovieEndZ().getText()); }
public int getEndZ() { return Integer.parseInt(view.mPane.movieEndZ.getText()); }
3,229,191
public int getStartT() { return Integer.parseInt(view.getMPane().getMovieStartT().getText()); }
public int getStartT() { return Integer.parseInt(view.mPane.movieStartT.getText()); }
3,229,192
public int getStartZ() { return Integer.parseInt(view.getMPane().getMovieStartZ().getText()); }
public int getStartZ() { return Integer.parseInt(view.mPane.movieStartZ.getText()); }
3,229,193
public void setBorderPlay(boolean b) { view.getCPane().getPlay().setBorderPainted(b); }
public void setBorderPlay(boolean b) { view.cPane.play.setBorderPainted(b); }
3,229,194
void setMovieType(int type) { if (!playerManager.isPlaying()) playerManager.setMovieType(type); }
void setMovieType(int type) { stop(); setBorderPlay(false); playerManager.setMovieType(type); }
3,229,195
void setTimerDelay(int rate) { if (!playerManager.isPlaying()) playerManager.setTimerDelay(rate); }
void setTimerDelay(int rate) { stop(); setBorderPlay(false); playerManager.setTimerDelay(rate); }
3,229,196
private void buildTable(List toSelect, String name) { table = new TableComponent(toSelect.size(), 3); JPanel p; ColoredButton button; int w = table.getColumnModel().getColumn(2).getPreferredWidth(); int h = table.getRowHeight(); Dimension d = new Dimension(Math.min(w, h)...
private void buildTable(List toSelect, String name) { table = new TableComponent(toSelect.size(), 3); JPanel p; ColoredButton button; int w = table.getColumnModel().getColumn(2).getPreferredWidth(); int h = table.getRowHeight(); Dimension d = new Dimension(Math.min(w, h)...
3,229,197
private void buildTable(List toSelect, String name) { table = new TableComponent(toSelect.size(), 3); JPanel p; ColoredButton button; int w = table.getColumnModel().getColumn(2).getPreferredWidth(); int h = table.getRowHeight(); Dimension d = new Dimension(Math.min(w, h)...
private void buildTable(List toSelect, String name) { table = new TableComponent(toSelect.size(), 3); JPanel p; ColoredButton button; int w = table.getColumnModel().getColumn(2).getPreferredWidth(); int h = table.getRowHeight(); Dimension d = new Dimension(Math.min(w, h)...
3,229,198
private void setTableHeader(String s) { IconManager im = IconManager.getInstance(getRegistry()); TableIconRenderer rnd = new TableIconRenderer(); TableColumnModel tcm = table.getTableHeader().getColumnModel(); Icon up = im.getIcon(IconManager.UP), down = im.getIcon(IconMan...
private void setTableHeader(String s) { IconManager im = IconManager.getInstance(getRegistry()); TableIconRenderer rnd = new TableIconRenderer(); TableColumnModel tcm = table.getTableHeader().getColumnModel(); Icon up = im.getIcon(IconManager.UP), down = im.getIcon(IconMan...
3,229,199
private void setTableHeader(String s) { IconManager im = IconManager.getInstance(getRegistry()); TableIconRenderer rnd = new TableIconRenderer(); TableColumnModel tcm = table.getTableHeader().getColumnModel(); Icon up = im.getIcon(IconManager.UP), down = im.getIcon(IconMan...
private void setTableHeader(String s) { IconManager im = IconManager.getInstance(getRegistry()); TableIconRenderer rnd = new TableIconRenderer(); TableColumnModel tcm = table.getTableHeader().getColumnModel(); Icon up = im.getIcon(IconManager.UP), down = im.getIcon(IconMan...
3,229,200
private void createWindowsMenuItems(JMenu menu) { Set viewers = ImViewerFactory.getViewers(); Iterator i = viewers.iterator(); menu.removeAll(); while (i.hasNext()) menu.add(new JMenuItem(new ActivationAction((ImViewer) i.next()))); }
privatevoidcreateWindowsMenuItems(JMenumenu){Setviewers=ImViewerFactory.getViewers();Iteratori=viewers.iterator();menu.removeAll();while(i.hasNext())menu.add(newJMenuItem(newActivationAction((ImViewer)i.next())));}
3,229,201