bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
public ListIterator reverseIterator() { return list == null ? Collections.EMPTY_LIST.listIterator() : list.listIterator(list.size()); }
public ListIterator reverseIterator() { return list == null ? Collections.EMPTY_LIST.listIterator() : list.listIterator(list.size()); }
3,229,877
public String toString() { if (list == null) { return ""; } StringBuffer b = new StringBuffer(); for (int i = 0; i < list.size(); i++) { b.append(list.get(i)); } return b.toString(); }
public String toString() { if (list == null) { return string + ": {}"; } StringBuffer b = new StringBuffer(); for (int i = 0; i < list.size(); i++) { b.append(list.get(i)); } return b.toString(); }
3,229,878
public String toString() { if (list == null) { return ""; } StringBuffer b = new StringBuffer(); for (int i = 0; i < list.size(); i++) { b.append(list.get(i)); } return b.toString(); }
public String toString() { if (list == null) { return ""; } StringBuffer b = new StringBuffer(); for (int i = 0; i < list.size(); i++) { b.append(list.get(i)); } return string + ": {" + b.toString() + "}"; }
3,229,879
public static RubyObject raise(Ruby ruby, RubyObject recv, RubyObject args[]) { switch (args.length) { case 0 : case 1 : throw new RaiseException(RubyException.newInstance(ruby, ruby.getExceptions().getRuntimeError(), args)); case 2 : RubyException excptn = (RubyExc...
public static RubyObject raise(Ruby ruby, RubyObject recv, RubyObject args[]) { switch (args.length) { case 0 : case 1 : if (args[0] instanceof RubyException) { throw new RaiseException((RubyException) args[0]); } else { throw new RaiseException(RubyException.newInstance(ruby, ruby.g...
3,229,880
public void setPlane(byte[] buffer, Integer z, Integer c, Integer t) throws IOException, DimensionsOutOfBoundsException, BufferOverflowException { Long offset = getPlaneOffset(z, c, t); Integer size = getPlaneSize(); setRegion(size, offset, buffer); }
public void setPlane(ByteBuffer buffer, Integer z, Integer c, Integer t) throws IOException, DimensionsOutOfBoundsException, BufferOverflowException { Long offset = getPlaneOffset(z, c, t); Integer size = getPlaneSize(); setRegion(size, offset, buffer); }
3,229,882
public void setPlane(byte[] buffer, Integer z, Integer c, Integer t) throws IOException, DimensionsOutOfBoundsException, BufferOverflowException { Long offset = getPlaneOffset(z, c, t); Integer size = getPlaneSize(); setRegion(size, offset, buffer); }
public void setPlane(byte[] buffer, Integer z, Integer c, Integer t) throws IOException, DimensionsOutOfBoundsException, BufferOverflowException { Long offset = getPlaneOffset(z, c, t); Integer size = getPlaneSize(); setRegion(size, offset, buffer); }
3,229,883
public void setStack(byte[] buffer, Integer z, Integer c, Integer t) throws IOException, DimensionsOutOfBoundsException, BufferOverflowException { Long offset = getStackOffset(c, t); Integer size = getStackSize(); setRegion(size, offset, buffer); }
public void setStack(ByteBuffer buffer, Integer z, Integer c, Integer t) throws IOException, DimensionsOutOfBoundsException, BufferOverflowException { Long offset = getStackOffset(c, t); Integer size = getStackSize(); setRegion(size, offset, buffer); }
3,229,884
public void setStack(byte[] buffer, Integer z, Integer c, Integer t) throws IOException, DimensionsOutOfBoundsException, BufferOverflowException { Long offset = getStackOffset(c, t); Integer size = getStackSize(); setRegion(size, offset, buffer); }
public void setStack(byte[] buffer, Integer z, Integer c, Integer t) throws IOException, DimensionsOutOfBoundsException, BufferOverflowException { Long offset = getStackOffset(c, t); Integer size = getStackSize(); setRegion(size, offset, buffer); }
3,229,885
public void setTimepoint(byte[] buffer, Integer t) throws IOException, DimensionsOutOfBoundsException, BufferOverflowException { Long offset = getTimepointOffset(t); Integer size = getTimepointSize(); setRegion(size, offset, buffer); }
public void setTimepoint(ByteBuffer buffer, Integer t) throws IOException, DimensionsOutOfBoundsException, BufferOverflowException { Long offset = getTimepointOffset(t); Integer size = getTimepointSize(); setRegion(size, offset, buffer); }
3,229,886
public void setTimepoint(byte[] buffer, Integer t) throws IOException, DimensionsOutOfBoundsException, BufferOverflowException { Long offset = getTimepointOffset(t); Integer size = getTimepointSize(); setRegion(size, offset, buffer); }
public void setTimepoint(byte[] buffer, Integer t) throws IOException, DimensionsOutOfBoundsException, BufferOverflowException { Long offset = getTimepointOffset(t); Integer size = getTimepointSize(); setRegion(size, offset, buffer); }
3,229,887
public DatasetBrowserCanvas(MainWindow mainWindow) { super(); this.mainWindow = mainWindow; layer = getLayer(); setDefaultRenderQuality(PPaintContext.HIGH_QUALITY_RENDERING); setInteractingRenderQuality(PPaintContext.HIGH_QUALITY_RENDERING); setAnimatingRenderQuality(PPaintContext.HIGH_QUALITY_RENDERING); set...
public DatasetBrowserCanvas(MainWindow mainWindow) { super(); this.mainWindow = mainWindow; layer = getLayer(); setDefaultRenderQuality(PPaintContext.HIGH_QUALITY_RENDERING); setInteractingRenderQuality(PPaintContext.HIGH_QUALITY_RENDERING); setAnimatingRenderQuality(PPaintContext.HIGH_QUALITY_RENDERING); set...
3,229,889
private void arrangeDisplay(Collection datasets) { // initialize and find clear out the layer layer.removeAllChildren(); if (datasets == null) { return; } // calculate the total area, adding nodes to the layer // as we go. totalArea = 0; Iterator iter = datasets.iterator(); while (iter.hasNext()) { Br...
private void arrangeDisplay(Collection datasets) { // initialize and find clear out the layer layer.removeAllChildren(); if (datasets == null) { return; } // calculate the total area, adding nodes to the layer // as we go. totalArea = 0; Iterator iter = datasets.iterator(); while (iter.hasNext()) { Br...
3,229,890
public void completeInitialization() { // set up listeners addInputEventListener(eventHandler); final PCamera camera = getCamera(); camera.addInputEventListener(new DatasetBrowserToolTipHandler(camera)); // center view eventHandler.animateToBounds(getBufferedBounds()); }
public void completeInitialization() { // set up listeners addInputEventListener(eventHandler); final PCamera camera = getCamera(); camera.addInputEventListener(new DatasetBrowserToolTipHandler(camera)); // center view eventHandler.animateToBounds(getBufferedBounds()); }
3,229,891
private void displayDatasets(Collection datasets) { doLayout(datasets); System.err.println("displaying datasets. animating to "+getBufferedBounds()); eventHandler.animateToBounds(getBufferedBounds()); }
private void displayDatasets(Collection datasets) { doLayout(datasets); System.err.println("displaying datasets. animating to "+getBufferedBounds()); eventHandler.animateToBounds(getBufferedBounds()); }
3,229,892
private void doLayout(Collection datasets) { if (datasets == null) return; layer.setScale(1.0); x = HGAP; y = 0; // strips is a vector of vectors. Each element in strips is a vector // that contains items from a given strip, as calculated by //arrangeDisplay() Iterator iter = strips.iterator(); double ma...
private void doLayout(Collection datasets) { if (datasets == null) return; layer.setScale(1.0); x = HGAP; y = 0; // strips is a vector of vectors. Each element in strips is a vector // that contains items from a given strip, as calculated by //arrangeDisplay() Iterator iter = strips.iterator(); double ma...
3,229,893
public void setSelectedProject(BrowserProjectSummary proj) { System.err.println("dataset browser ..set selected project to ..."+proj); if (proj == selectedProject) // no change return; selectedProject = proj; Collection datasetsToDisplay; // ok. what to do now? // cases: if (proj == null) { if (selectedD...
public void setSelectedProject(BrowserProjectSummary proj) { System.err.println("dataset browser ..set selected project to ..."+proj); if (proj == selectedProject) // no change return; selectedProject = proj; Collection datasetsToDisplay; // ok. what to do now? // cases: if (proj == null) { if (selectedD...
3,229,896
public void showService(String service) { if (serviceMap.containsKey(service)) { cardLayout.show(cardPanel, service); } else { // Create new Form SearchForm searchForm = new SearchForm(service); cardPanel.add(searchForm, service); serviceMa...
public void showService(String service) { if (serviceMap.containsKey(service)) { cardLayout.show(cardPanel, service); } else { // Create new Form SearchForm searchForm = new SearchForm(service); cardPanel.add(searchForm, service); serviceMa...
3,229,897
public void performSearch() { searchResults.clearTable(); SwingWorker worker = new SwingWorker() { ReportedData data; public Object construct() { try { Form answerForm = questionForm.getFilledForm(); data = searchManager.getSea...
publicvoidperformSearch(){searchResults.clearTable();SwingWorkerworker=newSwingWorker(){ReportedDatadata;publicObjectconstruct(){try{FormanswerForm=questionForm.getFilledForm();data=searchManager.getSearchResults(answerForm,serviceName);}catch(XMPPExceptione){Log.error("Unabletoloadsearchservice.",e);}returndata;}publi...
3,229,898
public void performSearch() { searchResults.clearTable(); SwingWorker worker = new SwingWorker() { ReportedData data; public Object construct() { try { Form answerForm = questionForm.getFilledForm(); data = searchManager.getSea...
public void performSearch() { searchResults.clearTable(); SwingWorker worker = new SwingWorker() { ReportedData data; public Object construct() { try { Form answerForm = questionForm.getFilledForm(); data = searchManager.getSea...
3,229,899
public Object doInHibernate(Session session) throws HibernateException { OMEModel o = (OMEModel) session.load(klazz,id); BaseModelUtils u = o.getUtils(); return o; }
public Object doInHibernate(Session session) throws HibernateException { OMEModel o = (OMEModel) session.load(klazz,id); BaseModelUtils u = o.getUtils(); return o; }
3,229,900
public Object doInHibernate(Session session) throws HibernateException { Criteria c = session.createCriteria(klazz); c.add(Expression.ilike("name",name,MatchMode.ANYWHERE)); return c.uniqueResult(); }
public Object doInHibernate(Session session) throws HibernateException { Criteria c = session.createCriteria(klazz); c.add(Expression.ilike("name",name,MatchMode.ANYWHERE)); return c.uniqueResult(); }
3,229,901
public Object doInHibernate(Session session) throws HibernateException { for (Object o : objects){ session.saveOrUpdate(o); } return null; }
public Object doInHibernate(Session session) throws HibernateException { for (Object o : objects){ session.saveOrUpdate(o); } return null; }
3,229,902
public static RubyBignum unmarshalFrom(UnmarshalStream input) throws IOException { int signum = (input.readUnsignedByte() == '+' ? 1 : -1); int shortLength = input.unmarshalInt(); byte[] digits = new byte[shortLength * 2]; for (int i = digits.length - 1; i >= 0; i--) { digits[...
public static RubyBignum unmarshalFrom(UnmarshalStream input) throws IOException { int signum = (input.readUnsignedByte() == '+' ? 1 : -1); int shortLength = input.unmarshalInt(); byte[] digits = new byte[shortLength * 2]; for (int i = digits.length - 1; i >= 0; i--) { digits[...
3,229,903
public List childNodes() { return Collections.EMPTY_LIST; }
public List childNodes() { return EMPTY_LIST; }
3,229,904
final public Object evaluate(Context context) throws ContextException { try { ByteArrayOutputStream os = new ByteArrayOutputStream(256); FastWriter fw = new FastWriter(os, "UTF8"); write(fw,context); fw.flush(); return os.toString("UTF8"); } catch(IOException ...
final public Object evaluate(Context context) throws ContextException { try { ByteArrayOutputStream os = new ByteArrayOutputStream(256); FastWriter fw = new FastWriter(os, context.getEncoding()); write(fw,context); fw.flush(); return os.toString("UTF8"); } cat...
3,229,905
final public Object evaluate(Context context) throws ContextException { try { ByteArrayOutputStream os = new ByteArrayOutputStream(256); FastWriter fw = new FastWriter(os, "UTF8"); write(fw,context); fw.flush(); return os.toString("UTF8"); } catch(IOException ...
final public Object evaluate(Context context) throws ContextException { try { ByteArrayOutputStream os = new ByteArrayOutputStream(256); FastWriter fw = new FastWriter(os, "UTF8"); write(fw,context); fw.flush(); return os.toString(context.getEncoding()); } cat...
3,229,906
public void setColumnNames(String[] colNames){ _colNames = colNames; }
public void setColumnNames(String[] colNames){ _colNames = colNames; }
3,229,907
public PixelsDimensions(int sizeX, int sizeY, int sizeZ, int sizeW, int sizeT, double pixelSizeX, double pixelSizeY, double pixelSizeZ) { if (sizeX <= 0 || sizeY <= 0 || sizeZ <= 0) throw new IllegalArgumentException( "Spatial dimensions must be positive."); if (sizeW < 1) ...
public PixelsDimensions(int sizeX, int sizeY, int sizeZ, int sizeW, int sizeT, double pixelSizeX, double pixelSizeY, double pixelSizeZ) { if (sizeX <= 0 || sizeY <= 0 || sizeZ <= 0) throw new IllegalArgumentException( "Spatial dimensions must be positive."); if (sizeW < 1) ...
3,229,910
public PixelsDimensions(int sizeX, int sizeY, int sizeZ, int sizeW, int sizeT, double pixelSizeX, double pixelSizeY, double pixelSizeZ) { if (sizeX <= 0 || sizeY <= 0 || sizeZ <= 0) throw new IllegalArgumentException( "Spatial dimensions must be positive."); if (sizeW < 1) ...
public PixelsDimensions(int sizeX, int sizeY, int sizeZ, int sizeW, int sizeT, double pixelSizeX, double pixelSizeY, double pixelSizeZ) { if (sizeX <= 0 || sizeY <= 0 || sizeZ <= 0) throw new IllegalArgumentException( "Spatial dimensions must be positive."); if (sizeW < 1) ...
3,229,911
public PixelsDimensions(int sizeX, int sizeY, int sizeZ, int sizeW, int sizeT, double pixelSizeX, double pixelSizeY, double pixelSizeZ) { if (sizeX <= 0 || sizeY <= 0 || sizeZ <= 0) throw new IllegalArgumentException( "Spatial dimensions must be positive."); if (sizeW < 1) ...
public PixelsDimensions(int sizeX, int sizeY, int sizeZ, int sizeW, int sizeT, double pixelSizeX, double pixelSizeY, double pixelSizeZ) { if (sizeX <= 0 || sizeY <= 0 || sizeZ <= 0) throw new IllegalArgumentException( "Spatial dimensions must be positive."); if (sizeW < 1) ...
3,229,912
public GatewayButton(final Transport transport) { setLayout(new GridBagLayout()); setOpaque(false); this.transport = transport; final StatusBar statusBar = SparkManager.getWorkspace().getStatusBar(); final JPanel commandPanel = statusBar.getCommandPanel(); button.setIcon(tr...
public GatewayButton(final Transport transport) { setLayout(new GridBagLayout()); setOpaque(false); this.transport = transport; final StatusBar statusBar = SparkManager.getWorkspace().getStatusBar(); final JPanel commandPanel = statusBar.getCommandPanel(); button.setIcon(tr...
3,229,914
private LoadServiceResource findFile(String name) { // try { if (name.startsWith("jar:")) { try { return new LoadServiceResource(new URL(name), name); } catch (MalformedURLException e) { throw runtime.newIOErrorFromExceptio...
private LoadServiceResource findFile(String name) { // try { if (name.startsWith("jar:")) { try { return new LoadServiceResource(new URL(name), name); } catch (MalformedURLException e) { throw runtime.newIOErrorFromExceptio...
3,229,915
private LoadServiceResource findFile(String name) { // try { if (name.startsWith("jar:")) { try { return new LoadServiceResource(new URL(name), name); } catch (MalformedURLException e) { throw runtime.newIOErrorFromExceptio...
try { try { private LoadServiceResource findFile(String name) {try { try { try { try { //try { try { try { try { try {try { try { try { try { try { try { if (name.startsWith("jar:")) {try { try { try { try { try { try { try { try { try {try { try { try { try { try { try { try { try { try { try { return new LoadServiceR...
3,229,916
private LoadServiceResource findFile(String name) { // try { if (name.startsWith("jar:")) { try { return new LoadServiceResource(new URL(name), name); } catch (MalformedURLException e) { throw runtime.newIOErrorFromExceptio...
private LoadServiceResource findFile(String name) { // try { if (name.startsWith("jar:")) { try { return new LoadServiceResource(new URL(name), name); } catch (MalformedURLException e) { throw runtime.newIOErrorFromExceptio...
3,229,917
private LoadServiceResource findFile(String name) { // try { if (name.startsWith("jar:")) { try { return new LoadServiceResource(new URL(name), name); } catch (MalformedURLException e) { throw runtime.newIOErrorFromExceptio...
private LoadServiceResource findFile(String name) { // try { if (name.startsWith("jar:")) { try { return new LoadServiceResource(new URL(name), name); } catch (MalformedURLException e) { throw runtime.newIOErrorFromExceptio...
3,229,918
private LoadServiceResource findFile(String name) { // try { if (name.startsWith("jar:")) { try { return new LoadServiceResource(new URL(name), name); } catch (MalformedURLException e) { throw runtime.newIOErrorFromExceptio...
private LoadServiceResource findFile(String name) { // try { if (name.startsWith("jar:")) { try { return new LoadServiceResource(new URL(name), name); } catch (MalformedURLException e) { throw runtime.newIOErrorFromExceptio...
3,229,919
private LoadServiceResource findFile(String name) { // try { if (name.startsWith("jar:")) { try { return new LoadServiceResource(new URL(name), name); } catch (MalformedURLException e) { throw runtime.newIOErrorFromExceptio...
private LoadServiceResource findFile(String name) { // try { if (name.startsWith("jar:")) { try { return new LoadServiceResource(new URL(name), name); } catch (MalformedURLException e) { throw runtime.newIOErrorFromExceptio...
3,229,920
private LoadServiceResource findFile(String name) { // try { if (name.startsWith("jar:")) { try { return new LoadServiceResource(new URL(name), name); } catch (MalformedURLException e) { throw runtime.newIOErrorFromExceptio...
try { try { private LoadServiceResource findFile(String name) {try { try { try { try { //try { try { try { try { try {try { try { try { try { try { try { if (name.startsWith("jar:")) {try { try { try { try { try { try { try { try { try {try { try { try { try { try { try { try { try { try { try { return new LoadServiceR...
3,229,921
private LoadServiceResource findFile(String name) { // try { if (name.startsWith("jar:")) { try { return new LoadServiceResource(new URL(name), name); } catch (MalformedURLException e) { throw runtime.newIOErrorFromExceptio...
private LoadServiceResource findFile(String name) { // try { if (name.startsWith("jar:")) { try { return new LoadServiceResource(new URL(name), name); } catch (MalformedURLException e) { throw runtime.newIOErrorFromExceptio...
3,229,922
private LoadServiceResource findFile(String name) { // try { if (name.startsWith("jar:")) { try { return new LoadServiceResource(new URL(name), name); } catch (MalformedURLException e) { throw runtime.newIOErrorFromExceptio...
private LoadServiceResource findFile(String name) { // try { if (name.startsWith("jar:")) { try { return new LoadServiceResource(new URL(name), name); } catch (MalformedURLException e) { throw runtime.newIOErrorFromExceptio...
3,229,923
private LoadServiceResource findFile(String name) { // try { if (name.startsWith("jar:")) { try { return new LoadServiceResource(new URL(name), name); } catch (MalformedURLException e) { throw runtime.newIOErrorFromExceptio...
private LoadServiceResource findFile(String name) { // try { if (name.startsWith("jar:")) { try { return new LoadServiceResource(new URL(name), name); } catch (MalformedURLException e) { throw runtime.newIOErrorFromExceptio...
3,229,924
public void init(List additionalDirectories) { for (Iterator iter = additionalDirectories.iterator(); iter.hasNext();) { addPath((String) iter.next()); } if (runtime.getSafeLevel() == 0) { String jrubyLib = System.getProperty("jruby.lib"); if (jrubyLib != null) { addPath...
public void init(List additionalDirectories) { for (Iterator iter = additionalDirectories.iterator(); iter.hasNext();) { addPath((String) iter.next()); } if (runtime.getSafeLevel() == 0) { String jrubyLib = System.getProperty("jruby.lib"); if (jrubyLib != null) { addPath...
3,229,925
public void init(List additionalDirectories) { for (Iterator iter = additionalDirectories.iterator(); iter.hasNext();) { addPath((String) iter.next()); } if (runtime.getSafeLevel() == 0) { String jrubyLib = System.getProperty("jruby.lib"); if (jrubyLib != null) { addPath...
public void init(List additionalDirectories) { for (Iterator iter = additionalDirectories.iterator(); iter.hasNext();) { addPath((String) iter.next()); } if (runtime.getSafeLevel() == 0) { String jrubyLib = System.getProperty("jruby.lib"); if (jrubyLib != null) { addPath...
3,229,926
private boolean isRequireable(URL loc) { if (loc != null) { if (loc.getProtocol().equals("file") && new java.io.File(loc.getFile()).isDirectory()) { return false; } try { loc.openConnection(); return true; } catch (Exc...
private boolean isRequireable(URL loc) { if (loc != null) { if (loc.getProtocol().equals("file") && new java.io.File(loc.getFile()).isDirectory()) { return false; } try { loc.openConnection(); return true; } catch (Exc...
3,229,927
private static NormalizedFile newFile(RubyString path) { NormalizedFile file = new NormalizedFile(path.getValue()); if (!file.isAbsolute()) { file = new NormalizedFile(path.getRuntime().getCurrentDirectory(), path.getValue()); } try { file = (NormalizedFile)file.getCanonicalFile(...
private static NormalizedFile newFile(RubyString path) { NormalizedFile file = new NormalizedFile(path.toString()); if (!file.isAbsolute()) { file = new NormalizedFile(path.getRuntime().getCurrentDirectory(), path.getValue()); } try { file = (NormalizedFile)file.getCanonicalFile(...
3,229,928
private static NormalizedFile newFile(RubyString path) { NormalizedFile file = new NormalizedFile(path.getValue()); if (!file.isAbsolute()) { file = new NormalizedFile(path.getRuntime().getCurrentDirectory(), path.getValue()); } try { file = (NormalizedFile)file.getCanonicalFile(...
private static NormalizedFile newFile(RubyString path) { NormalizedFile file = new NormalizedFile(path.getValue()); if (!file.isAbsolute()) { file = new NormalizedFile(path.getRuntime().getCurrentDirectory(), path.toString()); } try { file = (NormalizedFile)file.getCanonicalFile(...
3,229,929
public static IRubyObject size(IRubyObject recv, RubyString filename) { NormalizedFile file = newFile(filename); if (!file.exists()) { throw recv.getRuntime().newErrnoENOENTError("No such file: " + filename.getValue()); } return filename.getRuntime().newFixnum(file.len...
public static IRubyObject size(IRubyObject recv, RubyString filename) { NormalizedFile file = newFile(filename); if (!file.exists()) { throw recv.getRuntime().newErrnoENOENTError("No such file: " + filename); } return filename.getRuntime().newFixnum(file.length()); ...
3,229,930
public static XmlBeanDefinitionReader createBeanDefinitionReader( SpringApplicationContext applicationContext, BeanDefinitionRegistry registry, List xmlPreprocessors) { String version = SpringVersion.getVersion(); String className = "org.apache....
public static XmlBeanDefinitionReader createBeanDefinitionReader( SpringApplicationContext applicationContext, BeanDefinitionRegistry registry, List xmlPreprocessors) { String version = "2.0"; try { Class spring20Clazz = Class.forName("org.springfram...
3,229,931
public static void createGlobals(IRuby runtime) { // Version information: IRubyObject version = runtime.newString(Constants.RUBY_VERSION).freeze(); IRubyObject release = runtime.newString(Constants.COMPILE_DATE).freeze(); IRubyObject platform = runtime.newString(Constants.PLATFORM).freez...
public static void createGlobals(IRuby runtime) { // Version information: IRubyObject version = runtime.newString(Constants.RUBY_VERSION).freeze(); IRubyObject release = runtime.newString(Constants.COMPILE_DATE).freeze(); IRubyObject platform = runtime.newString(Constants.PLATFORM).freez...
3,229,932
private void initComponents() { createMenuBar(); createLeftMenuBar(); caseSensitive = new JCheckBox("Match case"); caseSensitive.addChangeListener(new ChangeListener() { public void stateChanged(ChangeEvent e) { JCheckBox source = (JCheckBox) e.getSource(); ...
private void initComponents() { createMenuBar(); createLeftMenuBar(); caseSensitive = new JCheckBox("Match case"); caseSensitive.addChangeListener(new ChangeListener() { public void stateChanged(ChangeEvent e) { JCheckBox source = (JCheckBox) e.getSource(); ...
3,229,933
public void stateChanged(ChangeEvent e) { JCheckBox source = (JCheckBox) e.getSource(); model.setCaseSensitive(source.isSelected()); }
public void stateChanged(ChangeEvent e) { JCheckBox source = (JCheckBox) e.getSource(); finder.setCaseSensitive(source.isSelected()); }
3,229,934
public Main(String[] args) { File dataFile = CoverageDataFileHandler.getDefaultDataFile(); String baseDir = "."; Vector filesToMerge = new Vector(); // Go through all the parameters for (int i = 0; i < args.length; i++) { if (args[i].equals("--datafile")) dataFile = new File(args[++i]); else if (args[i].e...
public Main(String[] args) { File dataFile = CoverageDataFileHandler.getDefaultDataFile(); String baseDir = "."; Vector filesToMerge = new Vector(); // Go through all the parameters for (int i = 0; i < args.length; i++) { if (args[i].equals("--datafile")) dataFile = new File(args[++i]); else if (args[i].e...
3,229,936
public Main(String[] args) { File dataFile = CoverageDataFileHandler.getDefaultDataFile(); String baseDir = "."; Vector filesToMerge = new Vector(); // Go through all the parameters for (int i = 0; i < args.length; i++) { if (args[i].equals("--datafile")) dataFile = new File(args[++i]); else if (args[i].e...
public Main(String[] args) { File dataFile = CoverageDataFileHandler.getDefaultDataFile(); String baseDir = "."; Vector filesToMerge = new Vector(); // Go through all the parameters for (int i = 0; i < args.length; i++) { if (args[i].equals("--datafile")) dataFile = new File(args[++i]); else if (args[i].e...
3,229,937
public Main(String[] args) { File dataFile = CoverageDataFileHandler.getDefaultDataFile(); String baseDir = "."; Vector filesToMerge = new Vector(); // Go through all the parameters for (int i = 0; i < args.length; i++) { if (args[i].equals("--datafile")) dataFile = new File(args[++i]); else if (args[i].e...
public Main(String[] args) { File dataFile = CoverageDataFileHandler.getDefaultDataFile(); String baseDir = "."; Vector filesToMerge = new Vector(); // Go through all the parameters for (int i = 0; i < args.length; i++) { if (args[i].equals("--datafile")) dataFile = new File(args[++i]); else if (args[i].e...
3,229,938
public Main(String[] args) { File dataFile = CoverageDataFileHandler.getDefaultDataFile(); String baseDir = "."; Vector filesToMerge = new Vector(); // Go through all the parameters for (int i = 0; i < args.length; i++) { if (args[i].equals("--datafile")) dataFile = new File(args[++i]); else if (args[i].e...
public Main(String[] args) { File dataFile = CoverageDataFileHandler.getDefaultDataFile(); String baseDir = "."; Vector filesToMerge = new Vector(); // Go through all the parameters for (int i = 0; i < args.length; i++) { if (args[i].equals("--datafile")) dataFile = new File(args[++i]); else if (args[i].e...
3,229,939
public Main(String[] args) { File dataFile = CoverageDataFileHandler.getDefaultDataFile(); String baseDir = "."; Vector filesToMerge = new Vector(); // Go through all the parameters for (int i = 0; i < args.length; i++) { if (args[i].equals("--datafile")) dataFile = new File(args[++i]); else if (args[i].e...
public Main(String[] args) { File dataFile = CoverageDataFileHandler.getDefaultDataFile(); String baseDir = "."; Vector filesToMerge = new Vector(); // Go through all the parameters for (int i = 0; i < args.length; i++) { if (args[i].equals("--datafile")) dataFile = new File(args[++i]); else if (args[i].e...
3,229,940
public void close() throws IOException { if (bufferedIO) { /* flush output buffer before close */ if (outBuffer.position() > 0) { outBuffer.flip(); flushOutBuffer(); } } channel.close(); }
public void close() throws IOException { if (bufferedIO) { /* flush output buffer before close */ if (outBuffer.position() > 0) { outBuffer.flip(); flushOutBuffer(); } } channel.close(); }
3,229,942
public void putc(int c) throws IOException, BadDescriptorException { checkWritable(); setupBufferedIO(); if (!outBuffer.hasRemaining()) { outBuffer.flip(); flushOutBuffer(); } outBuffer.put((byte) (c & 0xff)); }
public void putc(int c) throws IOException, BadDescriptorException { checkWritable(); if (!outBuffer.hasRemaining()) { outBuffer.flip(); flushOutBuffer(); } outBuffer.put((byte) (c & 0xff)); }
3,229,943
private void setupBufferedIO() { if (bufferedIO) { return; } outBuffer = ByteBuffer.allocate(BLOCK_SIZE); inBuffer = ByteBuffer.allocate(BLOCK_SIZE); flushInBuffer(); bufferedIO = true; }
private void setupBufferedIO() { if (bufferedIO) { return; } inBuffer = ByteBuffer.allocate(BLOCK_SIZE); flushInBuffer(); bufferedIO = true; }
3,229,944
public int syswrite(String string) throws BadDescriptorException, IOException { checkWritable(); checkBuffered(); ByteBuffer buffer = ByteBuffer.wrap(RubyString.stringToBytes(string)); while (buffer.hasRemaining()) { if (((WritableByteChannel) channel).write(buffer) < 0) { /...
public int syswrite(String string) throws BadDescriptorException, IOException { checkWritable(); checkBuffered(); ByteBuffer buffer = ByteBuffer.wrap(RubyString.stringToBytes(string)); while (buffer.hasRemaining()) { if (((WritableByteChannel) channel).write(buffer) < 0) { /...
3,229,945
public int write(String string) throws IOException, BadDescriptorException { setupBufferedIO(); checkWritable(); ByteBuffer buffer = ByteBuffer.wrap(RubyString.stringToBytes(string)); byte[] trigger; IRubyObject dollar_backslash = getRuntime().getGlobalVariables().get("$\\"); ...
public int write(String string) throws IOException, BadDescriptorException { checkWritable(); ByteBuffer buffer = ByteBuffer.wrap(RubyString.stringToBytes(string)); byte[] trigger; IRubyObject dollar_backslash = getRuntime().getGlobalVariables().get("$\\"); if (dollar_backs...
3,229,947
public EnumType(Properties attrs){super(attrs);}
public EnumType(Properties attrs){super(attrs);}
3,229,948
private JComponent buildCenterComponent() { switch (model.getEditorType()) { case Editor.CREATE_EDITOR: return doBasic; case Editor.PROPERTIES_EDITOR: IconManager im = IconManager.getInstance(); JTabbedPane tabs = new JTabbedPane(JTabbedPa...
private JComponent buildCenterComponent() { switch (model.getEditorType()) { case Editor.CREATE_EDITOR: return doBasic; case Editor.PROPERTIES_EDITOR: IconManager im = IconManager.getInstance(); JTabbedPane tabs = new JTabbedPane(JTabbedPa...
3,229,949
private JComponent buildCenterComponent() { switch (model.getEditorType()) { case Editor.CREATE_EDITOR: return doBasic; case Editor.PROPERTIES_EDITOR: IconManager im = IconManager.getInstance(); JTabbedPane tabs = new JTabbedPane(JTabbedPa...
private JComponent buildCenterComponent() { switch (model.getEditorType()) { case Editor.CREATE_EDITOR: return doBasic; case Editor.PROPERTIES_EDITOR: IconManager im = IconManager.getInstance(); JTabbedPane tabs = new JTabbedPane(JTabbedPa...
3,229,950
ZoomWindowUI(JFrame parent, LensComponent lensComponent) { super(parent); this.lensComponent = lensComponent; setTitle("Zoom Window"); setSize(300,300); setLocation(900,200); setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE); addWindowListener( new WindowAdapter() { public void windowClosing( WindowEvent...
ZoomWindowUI(JFrame parent, LensComponent lensComponent) { super(parent); this.lensComponent = lensComponent; setTitle("Zoom Window"); setSize(300,300); setLocation(900,200); setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE); addWindowListener( new WindowAdapter() { public void windowClosing( WindowEvent...
3,229,951
public void test_multi_txs() throws Exception { ReadWriteLock rwl = null; fail(); }
public void test_multi_txs() throws Exception { ReadWriteLock rwl = null; }
3,229,952
protected void buildQuery(Session session) throws HibernateException, SQLException { Criteria c = session.createCriteria((Class) value(CLASS)); c.setResultTransformer(Criteria.DISTINCT_ROOT_ENTITY); c.add(Restrictions.in("id",(Collection) value(IDS))); Hierarchy.fetchChildren(c,(C...
protected void buildQuery(Session session) throws HibernateException, SQLException { Criteria c = session.createCriteria(Image.class); c.setResultTransformer(Criteria.DISTINCT_ROOT_ENTITY); c.add(Restrictions.in("id",(Collection) value(IDS))); Hierarchy.fetchChildren(c,(Class) val...
3,229,953
protected void buildQuery(Session session) throws HibernateException, SQLException { Criteria c = session.createCriteria((Class) value(CLASS)); c.setResultTransformer(Criteria.DISTINCT_ROOT_ENTITY); c.add(Restrictions.in("id",(Collection) value(IDS))); Hierarchy.fetchChildren(c,(C...
protected void buildQuery(Session session) throws HibernateException, SQLException { Criteria c = session.createCriteria((Class) value(CLASS)); c.setResultTransformer(Criteria.DISTINCT_ROOT_ENTITY); c.add(Restrictions.in("id",(Collection) value(IDS))); Hierarchy.fetchChildren(c,(C...
3,229,954
public static IRubyObject newInstance(IRubyObject recv, IRubyObject[] args) { Cipher result = new Cipher(recv.getRuntime(), (RubyClass)recv); result.callMethod(recv.getRuntime().getCurrentContext(),"initialize",args); return result; }
public static IRubyObject newInstance(IRubyObject recv, IRubyObject[] args) { Cipher result = new Cipher(recv.getRuntime(), (RubyClass)recv); result.callInit(args); return result; }
3,229,955
public void showInspector() { if (imageInspector == null) imageInspector = new ImageInspector(this, presentation.getCanvas(), magFactor); presentation.getCanvas().getManager().setClick(true); UIUtilities.centerAndShow(imageInspector); ...
public void showInspector() { if (imageInspector == null) imageInspector = new ImageInspector(this, presentation.getCanvas(), magFactor, abstraction.getImageWidth(), abstraction.getImageHeight()); presentation.getCanvas().getManager().setClick(...
3,229,956
private void prepareArguments(ThreadContext context, IRuby runtime, Scope scope, IRubyObject receiver, IRubyObject[] args) { int expectedArgsCount = argsNode.getArgsCount(); int restArg = argsNode.getRestArg(); boolean hasOptArgs = argsNode.getOptArgs() != null; // FIXME: This seems redu...
private void prepareArguments(ThreadContext context, IRuby runtime, Scope scope, IRubyObject receiver, IRubyObject[] args) { int expectedArgsCount = argsNode.getArgsCount(); int restArg = argsNode.getRestArg(); boolean hasOptArgs = argsNode.getOptArgs() != null; // FIXME: This seems redu...
3,229,957
private String handleError( Variable variable, Context context, Exception problem ) { String strError; ArrayList arlErrors = null; PropertyException propEx = null; if (problem instanceof PropertyException) propEx = (PropertyException)problem; else { ...
private String handleError( Variable variable, Context context, Exception problem ) { String strError; ArrayList arlErrors = null; PropertyException propEx = null; if (problem instanceof PropertyException) propEx = (PropertyException)problem; else ...
3,229,958
private String handleError( Variable variable, Context context, Exception problem ) { String strError; ArrayList arlErrors = null; PropertyException propEx = null; if (problem instanceof PropertyException) propEx = (PropertyException)problem; else { ...
private String handleError( Variable variable, Context context, Exception problem ) { String strError; ArrayList arlErrors = null; PropertyException propEx = null; if (problem instanceof PropertyException) propEx = (PropertyException)problem; else { ...
3,229,959
public List getList() { return list; }
public ArrayList getList() { return list; }
3,229,960
public void testExperimenterShouldAlwaysExist() throws Exception { Experimenter root = (Experimenter) iQuery.findByQuery(Experimenter.class.getName(), new Parameters().addId(0L)); assertNotNull("Root has to be define.",root); // FIXME assertNotNull(...
public void testExperimenterShouldAlwaysExist() throws Exception { Experimenter root = (Experimenter) iQuery.findByQuery(Experimenter.class.getName(), new Parameters().addId(0L)); assertNotNull("Root has to be defined.",root); // FIXME assertNotNull...
3,229,961
public void setEnabled(boolean enabled) { if (this.enabled != enabled) { this.enabled = enabled; if (headingItem != null) headingItem.setEnabled(enabled); } }
public void setEnabled(boolean enabled) { if (this.enabled != enabled) { this.enabled = enabled; if (headingItem != null) headingItem.setEnabled(enabled); } }
3,229,962
public void update() { super.update(); if (headingItem != null && headingItem.isEnabled() != enabled) { headingItem.setEnabled(enabled); } }
public void update() { super.update(); if (headingItem != null && headingItem.isEnabled() != enabled) { headingItem.setEnabled(enabled); } }
3,229,963
public void updateAll(boolean arg0) { super.updateAll(arg0); if (headingItem != null && headingItem.isEnabled() != enabled) { headingItem.setEnabled(enabled); } }
public void updateAll(boolean arg0) { super.updateAll(arg0); if (headingItem != null && headingItem.isEnabled() != enabled) { headingItem.setEnabled(enabled); } }
3,229,964
public IRubyObject unmarshalObject() throws IOException { int type = readUnsignedByte(); IRubyObject result; if (type == '@') { result = cache.linkedByIndex(unmarshalInt()); } else if (type == ';') { result = cache.symbolByIndex(unmarshalInt()); } else { ...
public IRubyObject unmarshalObject() throws IOException { int type = readUnsignedByte(); IRubyObject result; if (type == '@') { result = cache.linkedByIndex(unmarshalInt()); } else if (type == ';') { result = cache.symbolByIndex(unmarshalInt()); } else { ...
3,229,966
private IRubyObject userUnmarshal() throws IOException { String className = ((RubySymbol) unmarshalObject()).toId(); String marshaled = unmarshalString(); RubyModule classInstance = runtime.getRubyModule(className); return classInstance.callMethod( "_load", RubyStri...
private IRubyObject userUnmarshal() throws IOException { String className = ((RubySymbol) unmarshalObject()).toId(); String marshaled = unmarshalString(); RubyModule classInstance = runtime.getRubyModule(className); IRubyObject result = classInstance.callMethod( "_load", ...
3,229,967
private static IRubyObject evalInternal(ThreadContext context, Node node, IRubyObject self) { IRuby runtime = context.getRuntime(); bigloop: do { if (node == null) return runtime.getNil(); switch (node.nodeId) { case NodeTypes.ALIASNODE: { AliasNode ...
private static IRubyObject evalInternal(ThreadContext context, Node node, IRubyObject self) { IRuby runtime = context.getRuntime(); bigloop: do { if (node == null) return runtime.getNil(); switch (node.nodeId) { case NodeTypes.ALIASNODE: { AliasNode ...
3,229,969
private static IRubyObject evalInternal(ThreadContext context, Node node, IRubyObject self) { IRuby runtime = context.getRuntime(); bigloop: do { if (node == null) return runtime.getNil(); switch (node.nodeId) { case NodeTypes.ALIASNODE: { AliasNode ...
private static IRubyObject evalInternal(ThreadContext context, Node node, IRubyObject self) { IRuby runtime = context.getRuntime(); bigloop: do { if (node == null) return runtime.getNil(); switch (node.nodeId) { case NodeTypes.ALIASNODE: { AliasNode ...
3,229,970
public DisplayOption(Integer attributeId, Boolean redOn, Integer ZStart, Boolean blueOn, String colorMap, Integer ZStop, Float zoom, Integer TStop, Integer TStart, Boolean greenOn, Boolean displayRgb, org.openmicroscopy.omero.model.Image image, org.openmicroscopy.omero.model.ImagePixel imagePixel, org.openmicroscop...
public DisplayOption(Integer attributeId, Boolean redOn, Integer ZStart, Boolean blueOn, String colorMap, Integer ZStop, Float zoom, Integer TStop, Integer TStart, Boolean greenOn, Boolean displayRgb, org.openmicroscopy.omero.model.Image image, org.openmicroscopy.omero.model.ImagePixel imagePixel, org.openmicroscop...
3,229,971
public org.openmicroscopy.omero.model.Image getImage() { return this.image; }
public Image getImage() { return this.image; }
3,229,972
public org.openmicroscopy.omero.model.ImagePixel getImagePixel() { return this.imagePixel; }
public ImagePixel getImagePixel() { return this.imagePixel; }
3,229,973
public org.openmicroscopy.omero.model.ModuleExecution getModuleExecution() { return this.moduleExecution; }
public ModuleExecution getModuleExecution() { return this.moduleExecution; }
3,229,974
public void setImage(org.openmicroscopy.omero.model.Image image) { this.image = image; }
public void setImage(Image image) { this.image = image; }
3,229,975
public void setImagePixel(org.openmicroscopy.omero.model.ImagePixel imagePixel) { this.imagePixel = imagePixel; }
public void setImagePixel(ImagePixel imagePixel) { this.imagePixel = imagePixel; }
3,229,976
public void setModuleExecution(org.openmicroscopy.omero.model.ModuleExecution moduleExecution) { this.moduleExecution = moduleExecution; }
public void setModuleExecution(ModuleExecution moduleExecution) { this.moduleExecution = moduleExecution; }
3,229,977
private void handleExit(String element){ if (Property.FIELDS.contains(element)){ if (null==property){ throw new IllegalStateException("Exiting non-extant property!\n"+"Element:"+element+"\nType:"+type+"\nProperty:"+property); } if (null==type){ throw new IllegalStateException("Inside of non-extant...
private void handleExit(String element){ if (Property.FIELDS.contains(element)){ if (null==property){ throw new IllegalStateException("Exiting non-extant property!\n"+"Element:"+element+"\nType:"+type+"\nProperty:"+property); } if (null==type){ throw new IllegalStateException("Inside of non-extant...
3,229,978
public Set process(){ return types; }
public Set process(){ return types; }
3,229,979
public SaxReader(String filename){ xmlFile = this.getClass().getClassLoader().getResource(filename); init(); }
public SaxReader(String filename){ xmlFile = this.getClass().getClassLoader().getResource(filename); init(); }
3,229,980
public Set parse(){ try { parser.parse(xmlFile.getPath(), handler); } catch (Exception e) { throw new RuntimeException( "Error parsing "+xmlFile+" :\n"+e.getMessage(),e); } return handler.process(); }
public Set parse(){ try { parser.parse(xmlFile.getPath(), handler); } catch (Exception e) { throw new RuntimeException( "Error parsing "+xmlFile+" :\n"+e.getMessage(),e); } return handler.process(); }
3,229,981
public Set parse(){ try { parser.parse(xmlFile.getPath(), handler); } catch (Exception e) { throw new RuntimeException( "Error parsing "+xmlFile+" :\n"+e.getMessage(),e); } return handler.process(); }
public Set parse(){ try { parser.parse(xmlFile.getPath(), handler); } catch (Exception e) { throw new RuntimeException( "Error parsing "+xmlFile+" :\n"+e.getMessage(),e); } return handler.process(); }
3,229,982
public Set getProperties() { return properties; }
public Set getProperties() { return properties; }
3,229,983
public abstract HttpMethodBase marshal() throws ImageServiceException;
public abstract HttpMethod marshal() throws ImageServiceException;
3,229,984
void saveROIResult(String format, String name, String msg) { UserNotifier un = control.getRegistry().getUserNotifier(); if (mng.getROIStats() == null) un.notifyError("Save ROI results", msg); else { name +="."+format; //Add extension File f = new File(name);...
void saveROIResult(String format, String name, String msg) { UserNotifier un = control.getRegistry().getUserNotifier(); if (mng.getROIStats() == null) un.notifyError("Save ROI results", msg); else { name +="."+format; //Add extension File f = new File(name);...
3,229,985
String[][] getROIStats() { return control.getROIStats(); }
String[][] getROIStats() { return control.getROIStats(); }
3,229,986
public void declare(JFormatter f) { if (jdoc != null) f.nl().g(jdoc); if (annotations != null){ for( int i=0; i<annotations.size(); i++ ) f.g(annotations.get(i)).nl(); } f.g(mods).p(classType.declarationToken).id(name).d(generifiable); if (supe...
public void declare(JFormatter f) { if (jdoc != null) f.nl().g(jdoc); if (annotations != null){ for( int i=0; i<annotations.size(); i++ ) f.g(annotations.get(i)).nl(); } f.g(mods).p(classType.declarationToken).id(name).d(generifiable); if (supe...
3,229,990
public JEnumConstant enumConstant(String name){ JEnumConstant ec = new JEnumConstant(this, name); enumConstantsByName.put(name, ec); return ec; }
public JEnumConstant enumConstant(String name){ JEnumConstant ec = new JEnumConstant(this, name); enumConstantsByName.put(name, ec); return ec; }
3,229,991