bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
protected String renderQuotedBlock(String text) { StringBuffer sb = new StringBuffer (text.length()); sb.append ("<pre>") .append (replace (replace (text, "<", "<"), ">", ">")) .append ("</pre>"); return sb.toString (); } | protected String renderQuotedBlock(String text) { StringBuffer sb = new StringBuffer (text.length()); sb.append ("<pre>") .append (replace (replace (text, "<", "<"), ">", ">")) .append ("</pre>\n"); return sb.toString (); } | 3,229,439 |
protected String renderStartList() { return "<ul>"; } | protected String renderStartList() { return "<ul>\n"; } | 3,229,440 |
public JContactItemField(List items, Window parentWindow) { setLayout(new BorderLayout()); this.items = items; add(textField, BorderLayout.CENTER); textField.addKeyListener(new KeyAdapter() { public void keyReleased(KeyEvent keyEvent) { char ch = keyEvent.getKey... | public JContactItemField(List items, Window parentWindow) { setLayout(new BorderLayout()); this.items = items; add(textField, BorderLayout.CENTER); textField.addKeyListener(new KeyAdapter() { public void keyReleased(KeyEvent keyEvent) { char ch = keyEvent.getKey... | 3,229,441 |
public boolean require(String file) { String filestr = allPattern.matcher(file).replaceAll("$1"); if (loadedFeaturesInternal.contains(filestr)) { return false; } smartLoad(filestr); return true; } | public boolean require(String file) { String filestr = allPattern.matcher(file).replaceAll("$1"); if (loadedFeaturesInternal.contains(filestr)) { return false; } smartLoad(filestr); return true; } | 3,229,443 |
public void smartLoad(String file) { Library library = null; String loadName = file; String[] extensionsToSearch = null; // if an extension is specified, try more targetted searches if (file.indexOf('.') >= 0) { Matcher matcher = null; if ((matcher = ... | public boolean smartLoad(String file) { Library library = null; String loadName = file; String[] extensionsToSearch = null; // if an extension is specified, try more targetted searches if (file.indexOf('.') >= 0) { Matcher matcher = null; if ((matcher... | 3,229,444 |
public void smartLoad(String file) { Library library = null; String loadName = file; String[] extensionsToSearch = null; // if an extension is specified, try more targetted searches if (file.indexOf('.') >= 0) { Matcher matcher = null; if ((matcher = ... | public void smartLoad(String file) { Library library = null; String loadName = file; String[] extensionsToSearch = null; // if an extension is specified, try more targetted searches if (file.lastIndexOf('.') > file.lastIndexOf('/')) { Matcher matcher = null; ... | 3,229,445 |
public void smartLoad(String file) { Library library = null; String loadName = file; String[] extensionsToSearch = null; // if an extension is specified, try more targetted searches if (file.indexOf('.') >= 0) { Matcher matcher = null; if ((matcher = ... | public void smartLoad(String file) { Library library = null; String loadName = file; String[] extensionsToSearch = null; // if an extension is specified, try more targetted searches if (file.indexOf('.') >= 0) { Matcher matcher = null; if ((matcher = ... | 3,229,446 |
public void smartLoad(String file) { Library library = null; String loadName = file; String[] extensionsToSearch = null; // if an extension is specified, try more targetted searches if (file.indexOf('.') >= 0) { Matcher matcher = null; if ((matcher = ... | public void smartLoad(String file) { Library library = null; String loadName = file; String[] extensionsToSearch = null; // if an extension is specified, try more targetted searches if (file.indexOf('.') >= 0) { Matcher matcher = null; if ((matcher = ... | 3,229,447 |
public void smartLoad(String file) { Library library = null; String loadName = file; String[] extensionsToSearch = null; // if an extension is specified, try more targetted searches if (file.indexOf('.') >= 0) { Matcher matcher = null; if ((matcher = ... | public void smartLoad(String file) { Library library = null; String loadName = file; String[] extensionsToSearch = null; // if an extension is specified, try more targetted searches if (file.indexOf('.') >= 0) { Matcher matcher = null; if ((matcher = ... | 3,229,448 |
public void clean(OMEModel modelObject); | public void clean(OMEModel modelObject); | 3,229,449 |
public static final Object build(BuildContext rc, Object name, Macro block) throws BuildException { if (name instanceof Macro) { throw new BuildException( "Profile name must be a static string, not a dynamic macro"); } if (Flags.PROFILE) { return new ProfileDirective(... | public static final Object build(BuildContext rc, Object name, Macro block) throws BuildException { if (name instanceof Macro) { throw new BuildException( "Profile name must be a static string, not a dynamic macro"); } if (Flags.PROFILE) { return new ProfileDirective(... | 3,229,450 |
public void li() { if (!_list) { newData(); _currentData.setType(WikiDataTypes.START_LIST); _list = true; } newData(); _currentData.setType(WikiDataTypes.LI); } | public void li() { if (!_list) { newData(); _currentData.setType(WikiDataTypes.START_LIST); _list = true; } newData(); _currentData.setType(WikiDataTypes.LI); } | 3,229,451 |
public void paragraph() { finishFormatting (); if (_list) { newData(); _currentData.setType(WikiDataTypes.END_LIST); _list = false; } newData (); _currentData.setType (WikiDataTypes.PARAGRAPH_BREAK); } | public void paragraph() { finishFormatting (); if (_list) { newData(); _currentData.setType(WikiDataTypes.END_LIST); _list = false; } newData (); _currentData.setType (WikiDataTypes.PARAGRAPH_BREAK); } | 3,229,453 |
public IRubyObject newInstance(IRubyObject[] args) { RubyArray instance = getRuntime().newArray(); instance.setMetaClass(this); instance.callInit(args); return instance; } | public IRubyObject newInstance(IRubyObject[] args) { RubyArray instance = (RubyArray)allocateObject(); instance.setMetaClass(this); instance.callInit(args); return instance; } | 3,229,454 |
public void defineSingletonMethod(String name, Arity arity, String java_name) { assert name != null; assert arity != null; assert java_name != null; Visibility visibility = name.equals("initialize") ? Visibility.PRIVATE : Visibility.PUBLIC; getSingletonClass().addMethod( name, new ReflectedMethod(this, g... | public void defineSingletonMethod(String name, Arity arity, String java_name) { assert name != null; assert arity != null; assert java_name != null; Visibility visibility = name.equals("initialize") ? Visibility.PRIVATE : Visibility.PUBLIC; getSingletonClass().addMethod( name, new ReflectedMethod(this, g... | 3,229,455 |
void createUI() { createWheel(); createHSVSlider(); createAlphaSlider(); createAlphaTextbox(); JPanel container = new JPanel(); GridBagConstraints gbc = new GridBagConstraints(); container.setLayout(new GridBagLayout()); gbc.anchor = GridBagConstraints.WEST; gbc.weightx = 30.0; ... | void createUI() { createWheel(); createHSVSlider(); createAlphaSlider(); createAlphaTextbox(); JPanel container = new JPanel(); GridBagConstraints gbc = new GridBagConstraints(); container.setLayout(new GridBagLayout()); gbc.anchor = GridBagConstraints.WEST; gbc.weightx = 30.0; ... | 3,229,456 |
void init(Ruby runtime, List additionalDirectories); | void init(Ruby runtime, List additionalDirectories); | 3,229,458 |
public int sysread() throws IOException { return file.read(); } | public int sysread() throws IOException { if(!shouldReplace) { return file.read(); } else { int curr = file.read(); if (curr != '\r') { return curr; } else if (!isWin) { return '\n'; } else { int next = file.read(); if(next == '\n') { return next; } file.seek(file.getFilePointer() - 1); return curr; } } ... | 3,229,460 |
protected void checkWriteable() throws IOException, BadDescriptorException { if (!isOpen) { throw new BadDescriptorException(); } if (!modes.isWriteable()) { throw new IOException("not opened for writing"); } } | protected void checkWriteable() throws IOException, BadDescriptorException { if (!isOpen) { throw new BadDescriptorException(); } if (!modes.isWriteable()) { throw new IOException("not opened for writing"); } } | 3,229,461 |
protected void checkReadable() throws IOException, BadDescriptorException { if (!isOpen) { throw new BadDescriptorException(); } if (!modes.isReadable()) { throw new IOException("not opened for reading"); } } | protected void checkReadable() throws IOException, BadDescriptorException { if (!isOpen) { throw new BadDescriptorException(); } if (!modes.isReadable()) { throw new IOException("not opened for reading"); } } | 3,229,462 |
private byte[] loadClassBytes(String name) throws ClassNotFoundException { FileInputStream stream = null; try { String fileName = name.replaceAll("\\.", "/"); fileName += ".class"; File file = new File("build/classes/test", fileName); ... | private byte[] loadClassBytes(String name) throws ClassNotFoundException { InputStream stream = null; try { String fileName = name.replaceAll("\\.", "/"); fileName += ".class"; File file = new File("build/classes/test", fileName); ... | 3,229,463 |
private byte[] loadClassBytes(String name) throws ClassNotFoundException { FileInputStream stream = null; try { String fileName = name.replaceAll("\\.", "/"); fileName += ".class"; File file = new File("build/classes/test", fileName); ... | private byte[] loadClassBytes(String name) throws ClassNotFoundException { FileInputStream stream = null; try { String fileName = name.replaceAll("\\.", "/"); fileName += ".class"; File file = new File("build/classes/test", fileName); ... | 3,229,464 |
private void replace(byte[] classBytes, String find, String replaceWith) { byte[] findBytes = find.getBytes(); byte[] replaceBytes = replaceWith.getBytes(); for (int i=0; i<classBytes.length; i++) { boolean match = true; for (int j=0; j<findBytes.le... | private void replace(byte[] classBytes, String find, String replaceWith) { byte[] findBytes = find.getBytes(); byte[] replaceBytes = replaceWith.getBytes(); for (int i=0; i<classBytes.length; i++) { boolean match = true; for (int j=0; j<findBytes.le... | 3,229,465 |
public String dispatchObject(Object iObject) { if (iObject == null) { return null; } return iObject.toString(); } | public String dispatchObject(Object iObject) { if (iObject == null) { return null; } return iObject.toString(); } | 3,229,466 |
public static String getClassName(Class klass) { return klass.getName(); } | public static String getClassName(Class klass) { return klass.getName(); } | 3,229,467 |
public static IRubyObject loadAndCall(IRubyObject self, String name, byte[] javaClass, String methodName) throws Throwable { Loader loader = new Loader(); Class c = loader.loadClass(name, javaClass); Method method = c.getMethod(methodName, new Class[] { IRuby.class, IRubyObject.cl... | public static IRubyObject loadAndCall(IRubyObject self, String name, byte[] javaClass, String methodName) throws Throwable { Loader loader = new Loader(); Class c = loader.loadClass(name, javaClass); Method method = c.getMethod(methodName, new Class[] { IRuby.class, IRubyObject.cl... | 3,229,468 |
public static IRubyObject loadAndCall(IRubyObject self, String name, byte[] javaClass, String methodName) throws Throwable { Loader loader = new Loader(); Class c = loader.loadClass(name, javaClass); Method method = c.getMethod(methodName, new Class[] { IRuby.class, IRubyObject.cl... | public static IRubyObject loadAndCall(IRubyObject self, String name, byte[] javaClass, String methodName) throws Throwable { Loader loader = new Loader(); Class c = loader.loadClass(name, javaClass); Method method = c.getMethod(methodName, new Class[] { IRuby.class, IRubyObject.cl... | 3,229,469 |
public static void removeWarningsFromEclipse() { TestHelper helper = new TestHelper("A"); helper.privateMethod(); TestHelper.staticPrivateMethod(); } | public static void removeWarningsFromEclipse() { TestHelper helper = new TestHelper("A"); helper.privateMethod(); TestHelper.staticPrivateMethod(); } | 3,229,470 |
public String getName() { RubyModule module = this; while (module.isIncluded() || module.isSingleton()) { module = module.getSuperClass(); } if (classId == null) { return "<" + (isClass() ? "Class" : "Module") + " 01x" + Integer.toHexString(System.identi... | public String getName() { RubyModule module = this; while (module.isIncluded() || module.isSingleton()) { module = module.getSuperClass(); } if (classId == null) { return "#<" + (isClass() ? "Class" : "Module") + ":01x" + Integer.toHexString(System.ident... | 3,229,473 |
@RolesAllowed("user") public boolean checkProperty(String arg0, String arg1) { return delegate.checkProperty(arg0, arg1); } | @RolesAllowed("user") public boolean checkProperty(String arg0, String arg1) { return localQuery.checkProperty(arg0, arg1); } | 3,229,474 |
@RolesAllowed("user") public boolean checkType(String arg0) { return delegate.checkType(arg0); } | @RolesAllowed("user") public boolean checkType(String arg0) { return localQuery.checkType(arg0); } | 3,229,475 |
public void create() { super.create(); delegate = (LocalQuery) applicationContext.getBean( IQuery.class.getName()); } | public void create() { super.create(); delegate = (LocalQuery) applicationContext.getBean( IQuery.class.getName()); } | 3,229,476 |
public void destroy() { delegate = null; super.destroy(); } | public void destroy() { localQuery = null; super.destroy(); } | 3,229,477 |
@RolesAllowed("user") public void evict(Object arg0) { delegate.evict(arg0); } | @RolesAllowed("user") public void evict(Object arg0) { localQuery.evict(arg0); } | 3,229,478 |
@RolesAllowed("user") public Object execute(Query arg0) { return delegate.execute(arg0); } | @RolesAllowed("user") public Object execute(Query arg0) { return localQuery.execute(arg0); } | 3,229,479 |
@RolesAllowed("user") public IObject find(Class arg0, long arg1) { return delegate.find(arg0, arg1); } | @RolesAllowed("user") public IObject find(Class arg0, long arg1) { return localQuery.find(arg0, arg1); } | 3,229,480 |
@RolesAllowed("user") public List findAll(Class arg0, Filter arg1) { return delegate.findAll(arg0, arg1); } | @RolesAllowed("user") public List findAll(Class arg0, Filter arg1) { return localQuery.findAll(arg0, arg1); } | 3,229,481 |
@RolesAllowed("user") public List findAllByExample(IObject arg0, Filter arg1) { return delegate.findAllByExample(arg0, arg1); } | @RolesAllowed("user") public List findAllByExample(IObject arg0, Filter arg1) { return localQuery.findAllByExample(arg0, arg1); } | 3,229,482 |
@RolesAllowed("user") public List findAllByQuery(String arg0, Parameters arg1) { return delegate.findAllByQuery(arg0, arg1); } | @RolesAllowed("user") public List findAllByQuery(String arg0, Parameters arg1) { return localQuery.findAllByQuery(arg0, arg1); } | 3,229,483 |
@RolesAllowed("user") public List findAllByString(Class arg0, String arg1, String arg2, boolean arg3, Filter arg4) { return delegate.findAllByString(arg0, arg1, arg2, arg3, arg4); } | @RolesAllowed("user") public List findAllByString(Class arg0, String arg1, String arg2, boolean arg3, Filter arg4) { return localQuery.findAllByString(arg0, arg1, arg2, arg3, arg4); } | 3,229,484 |
@RolesAllowed("user") public IObject findByExample(IObject arg0) throws ApiUsageException { return delegate.findByExample(arg0); } | @RolesAllowed("user") public IObject findByExample(IObject arg0) throws ApiUsageException { return localQuery.findByExample(arg0); } | 3,229,485 |
@RolesAllowed("user") public IObject findByQuery(String arg0, Parameters arg1) throws ValidationException { return delegate.findByQuery(arg0, arg1); } | @RolesAllowed("user") public IObject findByQuery(String arg0, Parameters arg1) throws ValidationException { return localQuery.findByQuery(arg0, arg1); } | 3,229,486 |
@RolesAllowed("user") public IObject findByString(Class arg0, String arg1, String arg2) throws ApiUsageException { return delegate.findByString(arg0, arg1, arg2); } | @RolesAllowed("user") public IObject findByString(Class arg0, String arg1, String arg2) throws ApiUsageException { return localQuery.findByString(arg0, arg1, arg2); } | 3,229,487 |
@RolesAllowed("user") public IObject get(Class arg0, long arg1) throws ValidationException { return delegate.get(arg0, arg1); } | @RolesAllowed("user") public IObject get(Class arg0, long arg1) throws ValidationException { return localQuery.get(arg0, arg1); } | 3,229,488 |
@RolesAllowed("user") public void initialize(Object arg0) { delegate.initialize(arg0); } | @RolesAllowed("user") public void initialize(Object arg0) { localQuery.initialize(arg0); } | 3,229,489 |
public Object invoke( InvocationContext context ) throws Exception { return wrap( context, "&queryService" ); } | public Object invoke( InvocationContext context ) throws Exception { return wrap( context, IQuery.class ); } | 3,229,490 |
public void destroy() { super.destroy(); // id is the only thing passivated. ioService = null; file = null; try { buffer.close(); } catch (IOException e) { e.printStackTrace(); throw new ResourceError(e.getMessage()); } buffer = null; } | public void destroy() { super.destroy(); // id is the only thing passivated. ioService = null; file = null; try { buffer.close(); } catch (IOException e) { e.printStackTrace(); throw new ResourceError(e.getMessage()); } buffer = null; } | 3,229,491 |
public void setFileId(long fileId) { if (id == null || id.longValue() != fileId) { id = new Long(fileId); file = null; try { buffer.close(); } catch (IOException e) { e.printStackTrace(); throw new ResourceErro... | public void setFileId(long fileId) { if (id == null || id.longValue() != fileId) { id = new Long(fileId); file = null; try { if (buffer != null) buffer.close(); } catch (IOException e) { e.printStackTrace(); th... | 3,229,492 |
protected void onSetUp() throws Exception { ServiceFactory factory = new ServiceFactory( (OmeroContext) applicationContext ); iQuery = (LocalQuery) factory.getQueryService(); iUpdate = (LocalUpdate) factory.getUpdateService(); iAdmin = factory.getAdminService(); iAnalysis = factory.g... | protected void onSetUp() throws Exception { factory = new ServiceFactory( (OmeroContext) applicationContext ); iQuery = (LocalQuery) factory.getQueryService(); iUpdate = (LocalUpdate) factory.getUpdateService(); iAdmin = factory.getAdminService(); iAnalysis = factory.getAnalysisServi... | 3,229,493 |
public BrowserController getActiveBrowser() { return (BrowserController)browserList.get(0); } | public UIWrapper getActiveBrowser() { return (BrowserController)browserList.get(0); } | 3,229,495 |
public BrowserController getActiveBrowser() { return (BrowserController)browserList.get(0); } | public BrowserController getActiveBrowser() { return (UIWrapper)browserList.get(0); } | 3,229,496 |
protected void autoResize(int index) { if (!autoResize) { return; } else if (index < 0) { delegate.addAll(Collections.nCopies(-index, autoResizeObject)); position += -index; } else if (index >= delegate.size()) { for (int i = delegate.size... | protected void autoResize(int index) { if (!autoResize) { return; } else if (index < 0) { delegate.addAll(0, Collections.nCopies(-index, autoResizeObject)); position += -index; } else if (index >= delegate.size()) { for (int i = delegate.s... | 3,229,497 |
private RenderHSBWaveTask[] makeRndTasks(PlaneDef planeDef) { ArrayList tasks = new ArrayList(); //Get all objects we need to create the tasks. Plane2D wData; ChannelBinding[] cBindings = renderer.getChannelBindings(); CodomainChain cc = renderer.getCod... | private RenderHSBWaveTask[] makeRndTasks(PlaneDef planeDef) { ArrayList tasks = new ArrayList(); //Get all objects we need to create the tasks. Plane2D wData; ChannelBinding[] cBindings = renderer.getChannelBindings(); CodomainChain cc = renderer.getCod... | 3,229,499 |
public static RubyClass createFixnumClass(Ruby runtime) { RubyClass fixnumClass = runtime.defineClass("Fixnum", runtime.getClasses().getIntegerClass()); CallbackFactory callbackFactory = runtime.callbackFactory(RubyFixnum.class); fixnumClass.defineMethod("quo", callbackFactory.getMethod("quo", ... | public static RubyClass createFixnumClass(Ruby runtime) { RubyClass fixnumClass = runtime.defineClass("Fixnum", runtime.getClasses().getIntegerClass()); CallbackFactory callbackFactory = runtime.callbackFactory(RubyFixnum.class); fixnumClass.defineMethod("quo", callbackFactory.getMethod("quo", ... | 3,229,500 |
public RubyNumeric op_plus(RubyNumeric other) { if (other instanceof RubyFloat) { return ((RubyFloat)other).op_plus(this); } else if (other instanceof RubyBignum) { return ((RubyBignum)other).op_plus(this); } else { long otherValue = other.getLongValue(); ... | public IRubyObject op_plus(IRubyObject other) { if (other instanceof RubyFloat) { return ((RubyFloat)other).op_plus(this); } else if (other instanceof RubyBignum) { return ((RubyBignum)other).op_plus(this); } else { long otherValue = other.getLongValue(); ... | 3,229,501 |
public RubyNumeric op_plus(RubyNumeric other) { if (other instanceof RubyFloat) { return ((RubyFloat)other).op_plus(this); } else if (other instanceof RubyBignum) { return ((RubyBignum)other).op_plus(this); } else { long otherValue = other.getLongValue(); ... | public RubyNumeric op_plus(RubyNumeric other) { if (other instanceof RubyFloat) { return ((RubyFloat)other).op_plus(this); } else if (other instanceof RubyBignum) { return ((RubyBignum)other).op_plus(this); } else { long otherValue = other.getLongValue(); ... | 3,229,502 |
public RubyNumeric op_plus(RubyNumeric other) { if (other instanceof RubyFloat) { return ((RubyFloat)other).op_plus(this); } else if (other instanceof RubyBignum) { return ((RubyBignum)other).op_plus(this); } else { long otherValue = other.getLongValue(); ... | public RubyNumeric op_plus(RubyNumeric other) { if (other instanceof RubyFloat) { return ((RubyFloat)other).op_plus(this); } else if (other instanceof RubyBignum) { return ((RubyBignum)other).op_plus(this); } else { long otherValue = other.getLongValue(); ... | 3,229,503 |
public RubyNumeric op_plus(RubyNumeric other) { if (other instanceof RubyFloat) { return ((RubyFloat)other).op_plus(this); } else if (other instanceof RubyBignum) { return ((RubyBignum)other).op_plus(this); } else { long otherValue = other.getLongValue(); ... | public RubyNumeric op_plus(RubyNumeric other) { if (other instanceof RubyFloat) { return ((RubyFloat)other).op_plus(this); } else if (other instanceof RubyBignum) { return ((RubyBignum)other).op_plus(this); } else { long otherValue = other.getLongValue(); ... | 3,229,504 |
public void addPalette(BPalette palette) { if(palette == null) { return; } palettes.add(palette); camera.addChild(palette); } | public void addPalette(BPalette palette) { if(palette == null) { return; } palettes.add(palette); } | 3,229,506 |
private ThumbWinPopupMenu() { IconManager im = IconManager.getInstance(); JMenuItem properties = new JMenuItem("Properties", im.getIcon(IconManager.PROPERTIES)), annotate = new JMenuItem("Annotate", im.getIcon(Icon... | private ThumbWinPopupMenu() { IconManager im = IconManager.getInstance(); JMenuItem properties = new JMenuItem("Properties", im.getIcon(IconManager.PROPERTIES)), annotate = new JMenuItem("Annotate", im.getIcon(Icon... | 3,229,507 |
private ThumbWinPopupMenu() { IconManager im = IconManager.getInstance(); JMenuItem properties = new JMenuItem("Properties", im.getIcon(IconManager.PROPERTIES)), annotate = new JMenuItem("Annotate", im.getIcon(Icon... | private ThumbWinPopupMenu() { IconManager im = IconManager.getInstance(); JMenuItem properties = new JMenuItem("Properties", im.getIcon(IconManager.PROPERTIES)), annotate = new JMenuItem("Annotate", im.getIcon(Icon... | 3,229,508 |
private ThumbWinPopupMenu() { IconManager im = IconManager.getInstance(); JMenuItem properties = new JMenuItem("Properties", im.getIcon(IconManager.PROPERTIES)), annotate = new JMenuItem("Annotate", im.getIcon(Icon... | private ThumbWinPopupMenu() { IconManager im = IconManager.getInstance(); JMenuItem properties = new JMenuItem("Properties", im.getIcon(IconManager.PROPERTIES)), annotate = new JMenuItem("Annotate", im.getIcon(Icon... | 3,229,509 |
public void actionPerformed(ActionEvent ae) { new AnnotateCmd(currentWin.getDataObject()).execute(); } | public void actionPerformed(ActionEvent ae) { new AnnotateCmd(currentWin.getModel(), currentWin.getSelectedNode()).execute(); } | 3,229,511 |
public AbstractFileSystemService(String path) { log.info("Using root path: '" + path + "'"); this.root = path; File rootDirectory = new File(this.root); if ( ! rootDirectory.isDirectory() || ! rootDirectory.canRead() || ! rootDirec... | public AbstractFileSystemService(String path) { if ( log.isDebugEnabled() ) { log.debug("Using root path: '" + path + "'"); } this.root = path; File rootDirectory = new File(this.root); if ( ! rootDirectory.isDirectory() || ! rootDirectory.canRea... | 3,229,513 |
protected void setContent(Node node) throws ConfigException { try { if (node.hasChildNodes()) value = parseTag(node); } catch (DOMException dex) { rethrow("Can't parse OMERODS entry.", dex); } } | protected void setContent(Node node) throws ConfigException { try { if (node.hasChildNodes()) value = parseTag(node); } catch (DOMException dex) { rethrow("Can't parse OMERO entry.", dex); } } | 3,229,514 |
public void copy(IObject model, ModelMapper mapper) { if (model instanceof Project) { Project p = (Project) model; super.copy(model,mapper); // Details if (p.getDetails() != null){ this.setOwner((ExperimenterData) mapper.find... | public void copy(IObject model, ModelMapper mapper) { if (model instanceof Project) { Project p = (Project) model; super.copy(model,mapper); // Details if (p.getDetails() != null){ this.setOwner((ExperimenterData) mapper.find... | 3,229,515 |
public RubyModule(Ruby ruby, RubyModule rubyClass, RubyModule superClass) { super(ruby, rubyClass); this.superClass = superClass; } | public RubyModule(Ruby ruby, RubyModule rubyClass, RubyModule superClass) { super(ruby, rubyClass); this.superClass = superClass; } | 3,229,516 |
public void respondMouseExit(PInputEvent e) { System.err.println("exited"); getParent().removeChild(this); } | public void respondMouseExit(PInputEvent e) { getParent().removeChild(this); } | 3,229,517 |
public void paintComponent(Graphics g) { super.paintComponent(g); BufferedImage img = model.getDisplayedImage(); if (img == null) return; Graphics2D g2D = (Graphics2D) g; ImagePaintingFactory.setGraphicRenderingSettings(g2D); g2D.drawImage(img, null, 0, 0); if (m... | public void paintComponent(Graphics g) { super.paintComponent(g); BufferedImage img = model.getDisplayedImage(); if (img == null) return; Graphics2D g2D = (Graphics2D) g; ImagePaintingFactory.setGraphicRenderingSettings(g2D); g2D.drawImage(img, null, 0, 0); if (m... | 3,229,518 |
public String toString(){ return "ImagePixel"+(attributeId==null ? ":Hash"+this.hashCode() : ":"+attributeId); } | public String toString(){ return "ImagePixel"+(attributeId==null ? ":Hash_"+this.hashCode() : ":Id_"+attributeId); } | 3,229,520 |
public void propertyChange(PropertyChangeEvent pce) { String name = pce.getPropertyName(); if (name.equals(Browser.CANCEL_PROPERTY)) { Browser browser = model.getSelectedBrowser(); if (browser != null) browser.cancel(); } else if (name.equals(Browser.POPUP_MENU_PROPERTY... | public void propertyChange(PropertyChangeEvent pce) { String name = pce.getPropertyName(); if (name.equals(Browser.CANCEL_PROPERTY)) { Browser browser = model.getSelectedBrowser(); if (browser != null) browser.cancel(); } else if (name.equals(Browser.POPUP_MENU_PROPERTY... | 3,229,521 |
public org.openmicroscopy.omero.model.Image getImage() { return this.image; } | public Image getImage() { return this.image; } | 3,229,522 |
public void setImage(org.openmicroscopy.omero.model.Image image) { this.image = image; } | public void setImage(Image image) { this.image = image; } | 3,229,523 |
public org.openmicroscopy.omero.model.ModuleExecution getModuleExecution() { return this.moduleExecution; } | public ModuleExecution getModuleExecution() { return this.moduleExecution; } | 3,229,524 |
public void setModuleExecution(org.openmicroscopy.omero.model.ModuleExecution moduleExecution) { this.moduleExecution = moduleExecution; } | public void setModuleExecution(ModuleExecution moduleExecution) { this.moduleExecution = moduleExecution; } | 3,229,525 |
public TwoKnobsSlider(int min, int max, int start, int end) { model = new TwoKnobsSliderModel(max, min, start, end); uiDelegate = new TwoKnobsSliderUI(this, model); attachListeners(); setDefault(); } | public TwoKnobsSlider() { model = new TwoKnobsSliderModel(max, min, start, end); uiDelegate = new TwoKnobsSliderUI(this, model); attachListeners(); setDefault(); } | 3,229,527 |
public TwoKnobsSlider(int min, int max, int start, int end) { model = new TwoKnobsSliderModel(max, min, start, end); uiDelegate = new TwoKnobsSliderUI(this, model); attachListeners(); setDefault(); } | public TwoKnobsSlider(int min, int max, int start, int end) { model = new TwoKnobsSliderModel(max, min, start, end); uiDelegate = new TwoKnobsSliderUI(this, model); attachListeners(); setDefault(); } | 3,229,528 |
public MarshalStream(Ruby ruby, OutputStream out, int depthLimit) throws IOException { super(out); this.ruby = ruby; this.depthLimit = (depthLimit >= 0 ? depthLimit : Integer.MAX_VALUE); out.write(Constants.MARSHAL_MAJOR); out.write(Constants.MARSHAL_MINOR); } | public MarshalStream(Ruby ruby, OutputStream out, int depthLimit) throws IOException { super(out); this.runtime = ruby; this.depthLimit = (depthLimit >= 0 ? depthLimit : Integer.MAX_VALUE); out.write(Constants.MARSHAL_MAJOR); out.write(Constants.MARSHAL_MINOR); } | 3,229,529 |
private boolean shouldBeRegistered(IRubyObject value) { return (! value.isNil() && ! (value instanceof RubyBoolean)); } | private boolean shouldBeRegistered(IRubyObject value) { if (value.isNil()) { return false; } else if (value instanceof RubyBoolean) { return false; } else if (value instanceof RubyFixnum) { return false; } return true; } | 3,229,531 |
private void userMarshal(IRubyObject value) throws IOException { out.write('u'); dumpObject(RubySymbol.newSymbol(ruby, value.getInternalClass().getClassname())); RubyInteger depth = RubyFixnum.newFixnum(ruby, depthLimit); RubyString marshaled = (RubyString) value.callMethod("_dump", dept... | private void userMarshal(IRubyObject value) throws IOException { out.write('u'); dumpObject(RubySymbol.newSymbol(runtime, value.getInternalClass().getClassname())); RubyInteger depth = RubyFixnum.newFixnum(ruby, depthLimit); RubyString marshaled = (RubyString) value.callMethod("_dump", d... | 3,229,532 |
private void userMarshal(IRubyObject value) throws IOException { out.write('u'); dumpObject(RubySymbol.newSymbol(ruby, value.getInternalClass().getClassname())); RubyInteger depth = RubyFixnum.newFixnum(ruby, depthLimit); RubyString marshaled = (RubyString) value.callMethod("_dump", dept... | private void userMarshal(IRubyObject value) throws IOException { out.write('u'); dumpObject(RubySymbol.newSymbol(ruby, value.getInternalClass().getClassname())); RubyInteger depth = RubyFixnum.newFixnum(runtime, depthLimit); RubyString marshaled = (RubyString) value.callMethod("_dump", d... | 3,229,533 |
private void writeAndRegister(IRubyObject value) throws IOException { writeAndRegister(dumpedObjects, '@', value); } | private void writeAndRegister(IRubyObject value) throws IOException { if (cache.isRegistered(value)) { out.write(linkType(value)); dumpInt(cache.registeredIndex(value)); } else { cache.register(value); value.marshalTo(this); } } | 3,229,534 |
public static byte[] stringToBytes(String string) { try { return string.getBytes(encoding); } catch (java.io.UnsupportedEncodingException e) { throw new RubyBugException("unsupported encoding " + e); } } | public static byte[] stringToBytes(String string) { try { return string.getBytes(encoding); } catch (java.io.UnsupportedEncodingException e) { throw new RubyBugException("unsupported encoding " + e); } } | 3,229,535 |
public boolean isDefaultGroup(long groupID) throws IAdminException, UnknownException, PermissionsException { try { return (iAdmin.getDefaultGroup(currentUser).getId() == groupID); } catch(ome.conditions.ApiUsageException e) { ExceptionHandler.get().catchException(e); } return false; } | public boolean isDefaultGroup(long groupID) throws IAdminException, UnknownException, PermissionsException { try { return (iAdmin.getDefaultGroup(currentUser).getId() == groupID); } catch(ome.conditions.ApiUsageException e) { ExceptionHandler.get().catchException(e); } return false; } | 3,229,536 |
public boolean isDefaultGroup(long groupID) throws IAdminException, UnknownException, PermissionsException { try { return (iAdmin.getDefaultGroup(currentUser).getId() == groupID); } catch(ome.conditions.ApiUsageException e) { ExceptionHandler.get().catchException(e); } return false; } | public boolean isDefaultGroup(long groupID) throws IAdminException, UnknownException, PermissionsException { try { return (iAdmin.getDefaultGroup(currentUser).getId() == groupID); } catch(ome.conditions.ApiUsageException e) { ExceptionHandler.get().catchException(e); } return false; } | 3,229,537 |
public Repository(Integer attributeId, String imageServerUrl, String path, Boolean isLocal, org.openmicroscopy.omero.model.ModuleExecution moduleExecution, Set thumbnails, Set imagePixels) { this.attributeId = attributeId; this.imageServerUrl = imageServerUrl; this.path = path; this.isLo... | public Repository(Integer attributeId, String imageServerUrl, String path, Boolean isLocal, org.openmicroscopy.omero.model.ModuleExecution moduleExecution, Set thumbnails, Set imagePixels) { this.attributeId = attributeId; this.imageServerUrl = imageServerUrl; this.path = path; this.isLo... | 3,229,538 |
public org.openmicroscopy.omero.model.ModuleExecution getModuleExecution() { return this.moduleExecution; } | public ModuleExecution getModuleExecution() { return this.moduleExecution; } | 3,229,539 |
public void setModuleExecution(org.openmicroscopy.omero.model.ModuleExecution moduleExecution) { this.moduleExecution = moduleExecution; } | public void setModuleExecution(ModuleExecution moduleExecution) { this.moduleExecution = moduleExecution; } | 3,229,540 |
public void encodeBegin(FacesContext context) throws IOException { if(clearOnInit) { //WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "clear"); ArticleItemBean bean = getArticleItemBean(); if(bean!=null){ bean.clear(); } } // WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "updateLocale");// updateEditButtons(); super.e... | public void encodeBegin(FacesContext context) throws IOException { if(clearOnInit) { //WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "clear"); ArticleItemBean bean = getArticleItemBean(); if(bean!=null){ bean.clear(); } } // WFUtil.invoke(ARTICLE_ITEM_BEAN_ID, "updateLocale");// updateEditButtons(); super.e... | 3,229,541 |
private UIComponent getCategoryEditor() { UIComponent categoriesUi = findComponent(WebDAVCategories.CATEGORIES_BLOCK_ID); return categoriesUi; } | private UIComponent getCategoryEditor() { UIComponent categoriesUi = findComponent(WebDAVCategories.CATEGORIES_BLOCK_ID); return categoriesUi; } | 3,229,543 |
public UIComponent getEditContainer() { IWContext iwc = IWContext.getInstance(); WFResourceUtil localizer = WFResourceUtil.getResourceUtilArticle();// String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); mainContainer.setId(ARTICLE_EDITOR_ID); WFErrorMessages em = new WFErr... | public UIComponent getEditContainer() { IWContext iwc = IWContext.getInstance(); WFResourceUtil localizer = WFResourceUtil.getResourceUtilArticle();// String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); mainContainer.setId(ARTICLE_EDITOR_ID); WFErrorMessages em = new WFErr... | 3,229,544 |
public UIComponent getEditContainer() { IWContext iwc = IWContext.getInstance(); WFResourceUtil localizer = WFResourceUtil.getResourceUtilArticle();// String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); mainContainer.setId(ARTICLE_EDITOR_ID); WFErrorMessages em = new WFErr... | public UIComponent getEditContainer() { IWContext iwc = IWContext.getInstance(); WFResourceUtil localizer = WFResourceUtil.getResourceUtilArticle();// String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); mainContainer.setId(ARTICLE_EDITOR_ID); WFErrorMessages em = new WFErr... | 3,229,545 |
public UIComponent getEditContainer() { IWContext iwc = IWContext.getInstance(); WFResourceUtil localizer = WFResourceUtil.getResourceUtilArticle();// String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); mainContainer.setId(ARTICLE_EDITOR_ID); WFErrorMessages em = new WFErr... | public UIComponent getEditContainer() { IWContext iwc = IWContext.getInstance(); WFResourceUtil localizer = WFResourceUtil.getResourceUtilArticle();// String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); mainContainer.setId(ARTICLE_EDITOR_ID); WFErrorMessages em = new WFErr... | 3,229,546 |
public UIComponent getEditContainer() { IWContext iwc = IWContext.getInstance(); WFResourceUtil localizer = WFResourceUtil.getResourceUtilArticle();// String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); mainContainer.setId(ARTICLE_EDITOR_ID); WFErrorMessages em = new WFErr... | public UIComponent getEditContainer() { IWContext iwc = IWContext.getInstance(); WFResourceUtil localizer = WFResourceUtil.getResourceUtilArticle();// String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); mainContainer.setId(ARTICLE_EDITOR_ID); WFErrorMessages em = new WFErr... | 3,229,547 |
public UIComponent getEditContainer() { IWContext iwc = IWContext.getInstance(); WFResourceUtil localizer = WFResourceUtil.getResourceUtilArticle();// String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); mainContainer.setId(ARTICLE_EDITOR_ID); WFErrorMessages em = new WFErr... | public UIComponent getEditContainer() { IWContext iwc = IWContext.getInstance(); WFResourceUtil localizer = WFResourceUtil.getResourceUtilArticle();// String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); mainContainer.setId(ARTICLE_EDITOR_ID); WFErrorMessages em = new WFErr... | 3,229,548 |
public UIComponent getEditContainer() { IWContext iwc = IWContext.getInstance(); WFResourceUtil localizer = WFResourceUtil.getResourceUtilArticle();// String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); mainContainer.setId(ARTICLE_EDITOR_ID); WFErrorMessages em = new WFErr... | public UIComponent getEditContainer() { IWContext iwc = IWContext.getInstance(); WFResourceUtil localizer = WFResourceUtil.getResourceUtilArticle();// String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); mainContainer.setId(ARTICLE_EDITOR_ID); WFErrorMessages em = new WFErr... | 3,229,549 |
public UIComponent getEditContainer() { IWContext iwc = IWContext.getInstance(); WFResourceUtil localizer = WFResourceUtil.getResourceUtilArticle();// String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); mainContainer.setId(ARTICLE_EDITOR_ID); WFErrorMessages em = new WFErr... | public UIComponent getEditContainer() { IWContext iwc = IWContext.getInstance(); WFResourceUtil localizer = WFResourceUtil.getResourceUtilArticle();// String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); mainContainer.setId(ARTICLE_EDITOR_ID); WFErrorMessages em = new WFErr... | 3,229,550 |
public UIComponent getEditContainer() { IWContext iwc = IWContext.getInstance(); WFResourceUtil localizer = WFResourceUtil.getResourceUtilArticle();// String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); mainContainer.setId(ARTICLE_EDITOR_ID); WFErrorMessages em = new WFErr... | public UIComponent getEditContainer() { IWContext iwc = IWContext.getInstance(); WFResourceUtil localizer = WFResourceUtil.getResourceUtilArticle();// String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); mainContainer.setId(ARTICLE_EDITOR_ID); WFErrorMessages em = new WFErr... | 3,229,551 |
public UIComponent getEditContainer() { IWContext iwc = IWContext.getInstance(); WFResourceUtil localizer = WFResourceUtil.getResourceUtilArticle();// String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); mainContainer.setId(ARTICLE_EDITOR_ID); WFErrorMessages em = new WFErr... | public UIComponent getEditContainer() { IWContext iwc = IWContext.getInstance(); WFResourceUtil localizer = WFResourceUtil.getResourceUtilArticle();// String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); mainContainer.setId(ARTICLE_EDITOR_ID); WFErrorMessages em = new WFErr... | 3,229,552 |
public UIComponent getEditContainer() { IWContext iwc = IWContext.getInstance(); WFResourceUtil localizer = WFResourceUtil.getResourceUtilArticle();// String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); mainContainer.setId(ARTICLE_EDITOR_ID); WFErrorMessages em = new WFErr... | public UIComponent getEditContainer() { IWContext iwc = IWContext.getInstance(); WFResourceUtil localizer = WFResourceUtil.getResourceUtilArticle();// String bref = WFPage.CONTENT_BUNDLE + "."; WFContainer mainContainer = new WFContainer(); mainContainer.setId(ARTICLE_EDITOR_ID); WFErrorMessages em = new WFErr... | 3,229,553 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.