bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public ImageInspector(ViewerCtrl control, ImageCanvas canvas, double magFactor) { super(control.getReferenceFrame(), "Image inspector"); init(control, canvas, magFactor); setJMenuBar(menuBar); buildGUI(); pack(); } | public ImageInspector(ViewerCtrl control, ImageCanvas canvas, double magFactor) { super(control.getReferenceFrame(), "Image inspector"); init(control, canvas, magFactor, w, h); setJMenuBar(menuBar); buildGUI(); pack(); } | 3,230,316 |
private void init(ViewerCtrl control, ImageCanvas canvas, double magFactor) { Registry reg = control.getRegistry(); manager = new ImageInspectorManager(this, control, magFactor); BufferedImage img = control.getBufferedImage(); manager.setImageDimension(img.getWidth(), img.getHeight())... | private void init(ViewerCtrl control, ImageCanvas canvas, double magFactor, int w, int h) { Registry reg = control.getRegistry(); manager = new ImageInspectorManager(this, control, magFactor); BufferedImage img = control.getBufferedImage(); manager.setImageDimension(img.getWidth(), im... | 3,230,317 |
private void init(ViewerCtrl control, ImageCanvas canvas, double magFactor) { Registry reg = control.getRegistry(); manager = new ImageInspectorManager(this, control, magFactor); BufferedImage img = control.getBufferedImage(); manager.setImageDimension(img.getWidth(), img.getHeight())... | private void init(ViewerCtrl control, ImageCanvas canvas, double magFactor) { Registry reg = control.getRegistry(); manager = new ImageInspectorManager(this, control, magFactor); BufferedImage img = control.getBufferedImage(); manager.setImageDimension(img.getWidth(), img.getHeight())... | 3,230,318 |
MenuBar(ImageInspectorManager manager, double magFactor) { zoomMenu = new ZoomMenu(manager, magFactor); add(zoomMenu); } | MenuBar(ImageInspectorManager manager, double magFactor) { zoomMenu = new ZoomMenu(manager, magFactor); add(zoomMenu); } | 3,230,320 |
public ToolBar(Registry registry, ImageInspectorManager manager, double magFactor) { setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); putClientProperty("JToolBar.isRollover", new Boolean(true)); zoomBar = new ZoomBar(registry, manager, magFactor); lensBar = new Le... | public ToolBar(Registry registry, ImageInspectorManager manager, double magFactor, int w, int h) { setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); putClientProperty("JToolBar.isRollover", new Boolean(true)); zoomBar = new ZoomBar(registry, manager, magFactor); le... | 3,230,321 |
public ToolBar(Registry registry, ImageInspectorManager manager, double magFactor) { setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); putClientProperty("JToolBar.isRollover", new Boolean(true)); zoomBar = new ZoomBar(registry, manager, magFactor); lensBar = new Le... | public ToolBar(Registry registry, ImageInspectorManager manager, double magFactor) { setLayout(new BoxLayout(this, BoxLayout.Y_AXIS)); putClientProperty("JToolBar.isRollover", new Boolean(true)); zoomBar = new ZoomBar(registry, manager, magFactor); lensBar = new Le... | 3,230,322 |
public static void main(String args[]) throws IOException { //@START int n = Integer.parseInt(args[0]); for (int i=0; i<n; i++) { some_function(i); } System.out.println("Exceptions: HI=" + Hi + " / LO=" + Lo); //@END } | public static void main(String args[]) throws IOException { //@START int n = Integer.parseInt(args[0]); for (int i=0; i<n; i++) { some_function(i); } System.out.println("Exceptions: HI=" + Hi + " / LO=" + Lo); //@END } | 3,230,323 |
public Object[] toArray() { int len = size(); Object[] array = new Object[len]; System.arraycopy(super.toArray(), position, array, 0, len); return array; } | public Object[] toArray() { int len = size(); Object[] array = new Object[len]; System.arraycopy(delegate.toArray(), position, array, 0, len); return array; } | 3,230,326 |
public static RubyModule createKernelModule(IRuby runtime) { RubyModule module = runtime.defineModule("Kernel"); CallbackFactory callbackFactory = runtime.callbackFactory(RubyKernel.class); CallbackFactory objectCallbackFactory = runtime.callbackFactory(RubyObject.class); module.defineMo... | module.defineModuleFunction("abort", callbackFactory.getOptSingletonMethod("abort")); public static RubyModule createKernelModule(IRuby runtime) {module.defineModuleFunction("abort", callbackFactory.getOptSingletonMethod("abort")); module.defineModuleFunction("abort", callbackFactory.getOptSingletonMethod("abort")); ... | 3,230,327 |
private void addFilenames(String[] filenames) { if (filenames.length == 0) { return; } for (int i = 0; i < filenames.length; i++) { getProject().log("Adding " + filenames[i] + " to list", Project.MSG_VERBOSE); addArg(filenames[i]); } Header.print(System.out); System.out.println("instrumenting " + fil... | private void addFilenames(String[] filenames) { if (filenames.length == 0) { return; } for (int i = 0; i < filenames.length; i++) { getProject().log("Adding " + filenames[i] + " to list", Project.MSG_VERBOSE); addArg(filenames[i]); } Header.print(System.out); System.out.println("instrumenting " + fil... | 3,230,328 |
private void handleFilesets() { Set filenames = new HashSet(); Iterator iter = fileSets.iterator(); while (iter.hasNext()) { FileSet fileSet = (FileSet)iter.next(); addArg("--basedir"); addArg(baseDir(fileSet)); filenames.addAll(Arrays.asList(getFilenames(fileSet))); } addFilenames((String[])filenames.to... | private void handleFilesets() { Set filenames = new HashSet(); Iterator iter = fileSets.iterator(); while (iter.hasNext()) { FileSet fileSet = (FileSet)iter.next(); addArg("--basedir"); addArg(baseDir(fileSet)); filenames.addAll(Arrays.asList(getFilenames(fileSet))); } addFilenames((String[])filenames.to... | 3,230,329 |
private void handleFilesets() { Set filenames = new HashSet(); Iterator iter = fileSets.iterator(); while (iter.hasNext()) { FileSet fileSet = (FileSet)iter.next(); addArg("--basedir"); addArg(baseDir(fileSet)); filenames.addAll(Arrays.asList(getFilenames(fileSet))); } addFilenames((String[])filenames.to... | private void handleFilesets() { Set filenames = new HashSet(); Iterator iter = fileSets.iterator(); while (iter.hasNext()) { FileSet fileSet = (FileSet)iter.next(); addArg("--basedir"); addArg(baseDir(fileSet)); filenames.addAll(Arrays.asList(getFilenames(fileSet))); } addFilenames((String[])filenames.to... | 3,230,330 |
private void handleFilesets() { Set filenames = new HashSet(); Iterator iter = fileSets.iterator(); while (iter.hasNext()) { FileSet fileSet = (FileSet)iter.next(); addArg("--basedir"); addArg(baseDir(fileSet)); filenames.addAll(Arrays.asList(getFilenames(fileSet))); } addFilenames((String[])filenames.to... | private void handleFilesets() { Set filenames = new HashSet(); Iterator iter = fileSets.iterator(); while (iter.hasNext()) { FileSet fileSet = (FileSet)iter.next(); addArg("--basedir"); addArg(baseDir(fileSet)); filenames.addAll(Arrays.asList(getFilenames(fileSet))); } addFilenames((String[])filenames.to... | 3,230,331 |
public void commit() { delegate.commit(); } | public void commit() { localUpdate.commit(); } | 3,230,332 |
public void create() { super.create(); delegate = (LocalUpdate) applicationContext.getBean( IUpdate.class.getName()); } | public void create() { super.create(); delegate = (LocalUpdate) applicationContext.getBean( IUpdate.class.getName()); } | 3,230,333 |
public void deleteObject(IObject row) { delegate.deleteObject(row); } | public void deleteObject(IObject row) { localUpdate.deleteObject(row); } | 3,230,334 |
public void destroy() { delegate = null; super.destroy(); } | public void destroy() { localUpdate = null; super.destroy(); } | 3,230,335 |
public void flush() { delegate.flush(); } | public void flush() { localUpdate.flush(); } | 3,230,336 |
public Object invoke( InvocationContext context ) throws Exception { return wrap( context, "&updateService" ); } | public Object invoke( InvocationContext context ) throws Exception { return wrap( context, IUpdate.class ); } | 3,230,337 |
public void rollback() { delegate.rollback(); } | public void rollback() { localUpdate.rollback(); } | 3,230,338 |
public IObject[] saveAndReturnArray(IObject[] graph) { return delegate.saveAndReturnArray(graph); } | public IObject[] saveAndReturnArray(IObject[] graph) { return localUpdate.saveAndReturnArray(graph); } | 3,230,339 |
public Collection saveAndReturnCollection(Collection graph) { return delegate.saveAndReturnCollection(graph); } | public Collection saveAndReturnCollection(Collection graph) { return localUpdate.saveAndReturnCollection(graph); } | 3,230,340 |
public Map saveAndReturnMap(Map map) { return delegate.saveAndReturnMap(map); } | public Map saveAndReturnMap(Map map) { return localUpdate.saveAndReturnMap(map); } | 3,230,341 |
public IObject saveAndReturnObject(IObject graph) { return delegate.saveAndReturnObject(graph); } | public IObject saveAndReturnObject(IObject graph) { return localUpdate.saveAndReturnObject(graph); } | 3,230,342 |
public void saveArray(IObject[] arg0) { delegate.saveArray(arg0); } | public void saveArray(IObject[] arg0) { localUpdate.saveArray(arg0); } | 3,230,343 |
public void saveCollection(Collection arg0) { delegate.saveCollection(arg0); } | public void saveCollection(Collection arg0) { localUpdate.saveCollection(arg0); } | 3,230,344 |
public void saveMap(Map arg0) { delegate.saveMap(arg0); } | public void saveMap(Map arg0) { localUpdate.saveMap(arg0); } | 3,230,345 |
public void saveObject(IObject graph) { delegate.saveObject(graph); } | public void saveObject(IObject graph) { localUpdate.saveObject(graph); } | 3,230,346 |
public static IRubyObject parse(IRubyObject recv, IRubyObject arg1, IRubyObject arg2) { RubyString content = arg1.convertToString(); RubyString filename = arg2.convertToString(); return Java.java_to_ruby(recv, JavaObject.wrap(recv.getRuntime(), recv.getRuntime().parse(content.getVal... | public static IRubyObject parse(IRubyObject recv, IRubyObject arg1, IRubyObject arg2) { RubyString content = arg1.convertToString(); RubyString filename = arg2.convertToString(); return Java.java_to_ruby(recv, JavaObject.wrap(recv.getRuntime(), recv.getRuntime().parse(content.toStri... | 3,230,347 |
public WebContext(final Broker broker) { super(broker); try { String tools = (String) broker.getValue("config","TemplateTools"); addTools(tools); } catch (InvalidTypeException it) { _log.exception(it); _log.error("config type not registered with broker!"); } cat... | public WebContext(final Broker broker) { super(broker); try { String tools = (String) broker.getValue("config","TemplateTools"); registerTools(tools); } catch (InvalidTypeException it) { _log.exception(it); _log.error("config type not registered with broker!"); ... | 3,230,348 |
public RubyObject call0(RubyObject recv, RubyId id, RubyObject[] args, NODE body, boolean noSuper) { // ... RubyInterpreter interpreter = getRuby().getInterpreter(); interpreter.getRubyFrame().push(); // HACK +++ interpreter.getRubyIter().push(Iter.ITER_NOT... | public RubyObject call0(RubyObject recv, RubyId id, RubyObject[] args, NODE body, boolean noSuper) { // ... RubyInterpreter interpreter = getRuby().getInterpreter(); getRuby().getRubyFrame().push(); // HACK +++ interpreter.getRubyIter().push(Iter.ITER_NOT);... | 3,230,349 |
public RubyObject call0(RubyObject recv, RubyId id, RubyObject[] args, NODE body, boolean noSuper) { // ... RubyInterpreter interpreter = getRuby().getInterpreter(); interpreter.getRubyFrame().push(); // HACK +++ interpreter.getRubyIter().push(Iter.ITER_NOT... | public RubyObject call0(RubyObject recv, RubyId id, RubyObject[] args, NODE body, boolean noSuper) { // ... RubyInterpreter interpreter = getRuby().getInterpreter(); interpreter.getRubyFrame().push(); // HACK +++ interpreter.getRubyIter().push(Iter.ITER_NOT... | 3,230,350 |
public RubyObject call0(RubyObject recv, RubyId id, RubyObject[] args, NODE body, boolean noSuper) { // ... RubyInterpreter interpreter = getRuby().getInterpreter(); interpreter.getRubyFrame().push(); // HACK +++ interpreter.getRubyIter().push(Iter.ITER_NOT... | public RubyObject call0(RubyObject recv, RubyId id, RubyObject[] args, NODE body, boolean noSuper) { // ... RubyInterpreter interpreter = getRuby().getInterpreter(); interpreter.getRubyFrame().push(); // HACK +++ interpreter.getRubyIter().push(Iter.ITER_NOT... | 3,230,351 |
public RubyObject call0(RubyObject recv, RubyId id, RubyObject[] args, NODE body, boolean noSuper) { // ... RubyInterpreter interpreter = getRuby().getInterpreter(); interpreter.getRubyFrame().push(); // HACK +++ interpreter.getRubyIter().push(Iter.ITER_NOT... | public RubyObject call0(RubyObject recv, RubyId id, RubyObject[] args, NODE body, boolean noSuper) { // ... RubyInterpreter interpreter = getRuby().getInterpreter(); interpreter.getRubyFrame().push(); // HACK +++ interpreter.getRubyIter().push(Iter.ITER_NOT... | 3,230,352 |
public RubyObject call0(RubyObject recv, RubyId id, RubyObject[] args, NODE body, boolean noSuper) { // ... RubyInterpreter interpreter = getRuby().getInterpreter(); interpreter.getRubyFrame().push(); // HACK +++ interpreter.getRubyIter().push(Iter.ITER_NOT... | public RubyObject call0(RubyObject recv, RubyId id, RubyObject[] args, NODE body, boolean noSuper) { // ... RubyInterpreter interpreter = getRuby().getInterpreter(); interpreter.getRubyFrame().push(); // HACK +++ interpreter.getRubyIter().push(Iter.ITER_NOT... | 3,230,353 |
public RubyObject call0(RubyObject recv, RubyId id, RubyObject[] args, NODE body, boolean noSuper) { // ... RubyInterpreter interpreter = getRuby().getInterpreter(); interpreter.getRubyFrame().push(); // HACK +++ interpreter.getRubyIter().push(Iter.ITER_NOT... | public RubyObject call0(RubyObject recv, RubyId id, RubyObject[] args, NODE body, boolean noSuper) { // ... RubyInterpreter interpreter = getRuby().getInterpreter(); interpreter.getRubyFrame().push(); // HACK +++ interpreter.getRubyIter().push(Iter.ITER_NOT... | 3,230,354 |
public ShiftableList(Object[] args) { if (args == null) { this.delegate = new ArrayList(); } else { this.delegate = new ArrayList(args.length); delegate.addAll(Arrays.asList(args)); } } | public ShiftableList(Object[] args) { if (args == null) { this.delegate = new ArrayList(); } else { this.delegate = new ArrayList(args.length); delegate.addAll(Arrays.asList(args)); } } | 3,230,355 |
public RubyObject eval(RubyObject self, NODE n) { NODE node = n; RubyBoolean cond = null; RubyObject[] args = null; RubyObject value = null; RubyObject result = null; RubyModule rubyClass = null; // int state; // RubyOriginalMethods rom = getRu... | public RubyObject eval(RubyObject self, NODE n) { NODE node = n; RubyBoolean cond = null; RubyObject[] args = null; RubyObject value = null; RubyObject result = null; RubyModule rubyClass = null; // int state; // RubyOriginalMethods rom = getRu... | 3,230,356 |
private void buildGUI() { setBorder(BorderFactory.createEmptyBorder(5, 10, 5, 10)); GridBagLayout gridbag = new GridBagLayout(); setLayout(gridbag); GridBagConstraints c = new GridBagConstraints(); JLabel label = new JLabel(" Wavelength"); c.ipadx = RenderingAgt.H_SP... | private void buildGUI() { setBorder(BorderFactory.createEmptyBorder(5, 10, 5, 10)); GridBagLayout gridbag = new GridBagLayout(); setLayout(gridbag); GridBagConstraints c = new GridBagConstraints(); JLabel label = new JLabel(" Wavelength"); c.ipadx = RenderingAgt.H_SP... | 3,230,358 |
public String toString(){ return "AnalysisChainExecution"+(analysisChainExecutionId==null ? ":Hash"+this.hashCode() : ":"+analysisChainExecutionId); } | public String toString(){ return "AnalysisChainExecution"+(analysisChainExecutionId==null ? ":Hash_"+this.hashCode() : ":Id_"+analysisChainExecutionId); } | 3,230,359 |
public void fileOpen(Event e) { FileDialog fileDialog = new FileDialog(dd.getShell(), SWT.OPEN); String filePath = fileDialog.open(); if (filePath != null) { File file = new File(filePath); dd.getTree().loadTree(dd.getDocument().loadNotes(file)); dd.getShell().setText(file.getName() + " - Koala Notes"); } ... | publicvoidfileOpen(Evente){ FileDialogfileDialog=newFileDialog(dd.getShell(),SWT.OPEN); StringfilePath=fileDialog.open(); if(filePath!=null){ Filefile=newFile(filePath); dd.getTree().loadTree(dd.getDocument().loadNotes(file)); dd.getShell().setText(file.getName()+"-KoalaNotes"); } } | 3,230,360 |
public void fileSave(Event e) { updateNotesFromOpenNoteTabs(); dd.getDocument().saveNotes(); } | public void fileSave(Event e) { updateNotesFromOpenNoteTabs(); dd.getDocument().saveNotes(); } | 3,230,361 |
public void fileSaveAs(Event e) { FileDialog fileDialog = new FileDialog(dd.getShell(), SWT.SAVE); String filePath = fileDialog.open(); if (filePath != null) { File file = new File(filePath); updateNotesFromOpenNoteTabs(); dd.getDocument().saveNotes(file); dd.getShell().setText(file.getName() + " - Koala No... | public void fileSaveAs(Event e) { FileDialog fileDialog = new FileDialog(dd.getShell(), SWT.SAVE); String filePath = fileDialog.open(); if (filePath != null) { File file = new File(filePath); updateNotesFromOpenNoteTabs(); dd.getDocument().saveNotes(file); dd.getShell().setText(file.getName() + " - Koala No... | 3,230,362 |
public Note loadNotes(File file) { this.file = file; return loadNotes(); } | public Note loadNotes(File file) { this.file = file; return loadNotes(); } | 3,230,363 |
public void actionPerformed(ActionEvent e) { int index = -1; try { index = Integer.parseInt(e.getActionCommand()); switch (index) { case PLAY_CMD: handlePlay(); break; case PAUSE_CMD: handlePause(); break; ... | public void actionPerformed(ActionEvent e) { try { index = Integer.parseInt(e.getActionCommand()); switch (index) { case PLAY_CMD: handlePlay(); break; case PAUSE_CMD: handlePause(); break; ... | 3,230,364 |
public void actionPerformed(ActionEvent e) { int index = -1; try { index = Integer.parseInt(e.getActionCommand()); switch (index) { case PLAY_CMD: handlePlay(); break; case PAUSE_CMD: handlePause(); break; ... | public void actionPerformed(ActionEvent e) { int index = -1; try { int index = Integer.parseInt(e.getActionCommand()); switch (index) { case PLAY_CMD: handlePlay(); break; case PAUSE_CMD: handlePause(); break;... | 3,230,365 |
public void actionPerformed(ActionEvent e) { int index = -1; try { index = Integer.parseInt(e.getActionCommand()); switch (index) { case PLAY_CMD: handlePlay(); break; case PAUSE_CMD: handlePause(); break; ... | public void actionPerformed(ActionEvent e) { int index = -1; try { index = Integer.parseInt(e.getActionCommand()); switch (index) { case PLAY_CMD: handlePlay(); break; case PAUSE_CMD: handlePause(); break; ... | 3,230,366 |
public void actionPerformed(ActionEvent e) { int index = -1; try { index = Integer.parseInt(e.getActionCommand()); switch (index) { case PLAY_CMD: handlePlay(); break; case PAUSE_CMD: handlePause(); break; ... | public void actionPerformed(ActionEvent e) { int index = -1; try { index = Integer.parseInt(e.getActionCommand()); switch (index) { case PLAY_CMD: handlePlay(); break; case PAUSE_CMD: handlePause(); break; ... | 3,230,367 |
private void attachListeners() { JTextField editor = view.getEditor(); editor.addActionListener(this); editor.setActionCommand(""+EDITOR_CMD); //JButton attachButtonListener(view.getPlay(), PLAY_CMD); attachButtonListener(view.getPause(), PAUSE_CMD); attac... | private void attachListeners() { JTextField editor = view.editor; editor.addActionListener(this); editor.setActionCommand(""+EDITOR_CMD); //JButton attachButtonListener(view.getPlay(), PLAY_CMD); attachButtonListener(view.getPause(), PAUSE_CMD); attachButt... | 3,230,368 |
private void attachListeners() { JTextField editor = view.getEditor(); editor.addActionListener(this); editor.setActionCommand(""+EDITOR_CMD); //JButton attachButtonListener(view.getPlay(), PLAY_CMD); attachButtonListener(view.getPause(), PAUSE_CMD); attac... | private void attachListeners() { JTextField editor = view.getEditor(); editor.addActionListener(this); editor.setActionCommand(""+EDITOR_CMD); //JButton attachButtonListener(view.getPlay(), PLAY_CMD); attachButtonListener(view.getPause(), PAUSE_CMD); attac... | 3,230,369 |
private void attachListeners() { JTextField editor = view.getEditor(); editor.addActionListener(this); editor.setActionCommand(""+EDITOR_CMD); //JButton attachButtonListener(view.getPlay(), PLAY_CMD); attachButtonListener(view.getPause(), PAUSE_CMD); attac... | private void attachListeners() { JTextField editor = view.getEditor(); editor.addActionListener(this); editor.setActionCommand(""+EDITOR_CMD); //JButton attachButtonListener(view.getPlay(), PLAY_CMD); attachButtonListener(view.getPause(), PAUSE_CMD); attac... | 3,230,370 |
private void attachListeners() { JTextField editor = view.getEditor(); editor.addActionListener(this); editor.setActionCommand(""+EDITOR_CMD); //JButton attachButtonListener(view.getPlay(), PLAY_CMD); attachButtonListener(view.getPause(), PAUSE_CMD); attac... | private void attachListeners() { JTextField editor = view.getEditor(); editor.addActionListener(this); editor.setActionCommand(""+EDITOR_CMD); //JButton attachButtonListener(view.getPlay(), PLAY_CMD); attachButtonListener(view.getPause(), PAUSE_CMD); attac... | 3,230,371 |
private void editorActionHandler() { //playerUIMng.stopTimer(); //freeze boolean valid = false; int val = Player.FPS_MIN; try { val = Integer.parseInt(view.getEditor().getText()); if (Player.FPS_MIN <= val && val <= maxValue) { valid = true; ... | private void editorActionHandler() { //playerUIMng.stopTimer(); //freeze boolean valid = false; int val = Player.FPS_MIN; try { val = Integer.parseInt(view.editor.getText()); if (Player.FPS_MIN <= val && val <= maxValue) { valid = true; ... | 3,230,372 |
private void editorActionHandler() { //playerUIMng.stopTimer(); //freeze boolean valid = false; int val = Player.FPS_MIN; try { val = Integer.parseInt(view.getEditor().getText()); if (Player.FPS_MIN <= val && val <= maxValue) { valid = true; ... | private void editorActionHandler() { //playerUIMng.stopTimer(); //freeze boolean valid = false; int val = Player.FPS_MIN; try { val = Integer.parseInt(view.getEditor().getText()); if (Player.FPS_MIN <= val && val <= maxValue) { valid = true; ... | 3,230,373 |
public void focusLost(FocusEvent e) { String edit = view.getEditor().getText(), ed = ""+curRate; if (edit == null || !edit.equals(ed)) view.getEditor().setText(ed); } | public void focusLost(FocusEvent e) { String edit = view.getEditor().getText(), ed = ""+curRate; if (edit == null || !edit.equals(ed)) view.getEditor().setText(ed); } | 3,230,374 |
private void handlePause() { view.getPlay().setBorderPainted(false); playerUIMng.pause(); } | private void handlePause() { view.play.setBorderPainted(false); playerUIMng.pause(); } | 3,230,375 |
private void handlePlay() { view.getPlay().setBorderPainted(true); playerUIMng.play(); } | private void handlePlay() { view.play.setBorderPainted(true); playerUIMng.play(); } | 3,230,376 |
private void handleStop() { view.getPlay().setBorderPainted(false); playerUIMng.stop(); } | private void handleStop() { view.play.setBorderPainted(false); playerUIMng.stop(); } | 3,230,377 |
public void stateChanged(ChangeEvent e) { int v = ((Integer) view.getFPS().getValue()).intValue(); view.getEditor().setText(""+v); if (v != curRate) synchSpinner(v); } | public void stateChanged(ChangeEvent e) { int v = ((Integer) view.getFPS().getValue()).intValue(); view.getEditor().setText(""+v); if (v != curRate) synchSpinner(v); } | 3,230,378 |
private void synchSpinner(int val) { curRate = val; view.getFPS().setValue(new Integer(val)); view.getEditor().setText(""+val); playerUIMng.setTimerDelay(curRate); } | private void synchSpinner(int val) { curRate = val; view.getFPS().setValue(new Integer(val)); view.getEditor().setText(""+val); playerUIMng.setTimerDelay(curRate); } | 3,230,379 |
public void preprocess(SpringApplicationContext applicationContext, XmlBeanDefinitionReader reader, Document document) { // determine the classLoader ClassLoader classLoader; NodeList classpathElements = document.getDocumentElement().getElementsByTagName("classpath"); if (classpathElemen... | public void preprocess(SpringApplicationContext applicationContext, XmlBeanDefinitionReader reader, Document document) { // determine the classLoader ClassLoader classLoader; NodeList classpathElements = document.getDocumentElement().getElementsByTagName("classpath"); if (classpathElemen... | 3,230,380 |
protected static void runInterpreter(Reader iReader2Eval, String iFileName, String[] args) { // Initialize Runtime Ruby ruby = Ruby.getDefaultInstance(sRegexpAdapter); // Parse and interpret file IRubyObject lArgv = JavaUtil.convertJavaToRuby(ruby, args); ruby.setVerbose(warning);... | protected static void runInterpreter(Reader iReader2Eval, String iFileName, String[] args) { // Initialize Runtime Ruby ruby = Ruby.getDefaultInstance(sRegexpAdapter); // Parse and interpret file IRubyObject lArgv = JavaUtil.convertJavaToRuby(ruby, args); ruby.setVerbose(warning);... | 3,230,383 |
public void copy(IObject model, ModelMapper mapper) { if (model instanceof Category) { Category c = (Category) model; super.copy(model,mapper); // Details Details details = c.getDetails(); if (details!=null){ this.setOwner((ExperimenterData) mapper.findTarget(... | public void copy(IObject model, ModelMapper mapper) { if (model instanceof Category) { Category c = (Category) model; super.copy(model,mapper); // Details Details details = c.getDetails(); if (details!=null){ this.setOwner((ExperimenterData) mapper.findTarget(... | 3,230,384 |
public void testDuplicateImages() { OMEData data = (OMEData) applicationContext.getBean("data"); Set result = hb.findPDIHierarchies(data.imgsPDI); Set test = Utils.getImagesinPID(result); assertTrue("Images in should eq. images out",data.imgsPDI.size()==test.size()); Set n... | public void testDuplicateImages() { OMEData data = (OMEData) applicationContext.getBean("data"); Set result = hb.findPDIHierarchies(data.imgsPDI); Set test = Utils.getImagesinPDI(result); assertTrue("Images in should eq. images out",data.imgsPDI.size()==test.size()); Set n... | 3,230,386 |
public void testImageThumbnailExplodsOnHessianSerialization() { Set imgIds = new HashSet(); imgIds.add(new Integer(1191)); imgIds.add(new Integer(4665)); imgIds.add(new Integer(1304)); imgIds.add(new Integer(4977)); imgIds.add(new Integer(3540)); imgIds.add(new Integ... | public void testImageThumbnailExplodsOnHessianSerialization() { Set imgIds = new HashSet(); imgIds.add(new Integer(1191)); imgIds.add(new Integer(4665)); imgIds.add(new Integer(1304)); imgIds.add(new Integer(4977)); imgIds.add(new Integer(3540)); imgIds.add(new Integ... | 3,230,387 |
public static void main (String args[]) { System.out.println(); System.out.println("----------------------------------------------------"); System.out.println("--- WARNING this is an ALPHA version of JRuby!!! ---"); System.out.println("----------------------------------------------------... | public static void main (String args[]) { System.out.println(); System.out.println("----------------------------------------------------"); System.out.println("--- WARNING this is an ALPHA version of JRuby!!! ---"); System.out.println("----------------------------------------------------... | 3,230,388 |
public IRubyObject initialize_copy(IRubyObject original) { if (this != original) { checkFrozen(); if (!getClass().equals(original.getClass()) || getMetaClass().getRealClass() != original.getMetaClass().getRealClass()) { throw getRuntime().newTypeError("initialize_copy should take same c... | public IRubyObject initialize_copy(IRubyObject original) { if (this != original) { checkFrozen(); if (!getClass().equals(original.getClass()) || getMetaClass().getRealClass() != original.getMetaClass().getRealClass()) { throw getRuntime().newTypeError("initialize_copy should take same c... | 3,230,390 |
private void setupArgs(Node node) { lineNumber(node); if (node == null) { mv.visitInsn(Opcodes.ICONST_0); mv.visitTypeInsn(Opcodes.ANEWARRAY, IRUBYOBJECT); } else if (node instanceof ArrayNode) { int count = ((ArrayNode)node).size(); mv.visitLdcInsn(n... | private void setupArgs(Node node) { if (node == null) { mv.visitInsn(Opcodes.ICONST_0); mv.visitTypeInsn(Opcodes.ANEWARRAY, IRUBYOBJECT); } else if (node instanceof ArrayNode) { int count = ((ArrayNode)node).size(); mv.visitLdcInsn(new Integer(count))... | 3,230,391 |
public Instruction visitConstNode(ConstNode iVisited) { throw new NotCompilableException("Node not supported: " + iVisited.toString()); } | public Instruction visitConstNode(ConstNode iVisited) { lineNumber(iVisited); loadThreadContext(); mv.visitLdcInsn(iVisited.getName()); invokeThreadContext("getConstant", "(Ljava/lang/String;)Lorg/jruby/runtime/builtin/IRubyObject;"); return null; } | 3,230,393 |
public Instruction visitUntilNode(UntilNode iVisited) { throw new NotCompilableException("Node not supported: " + iVisited.toString()); } | public Instruction visitUntilNode(UntilNode iVisited) { lineNumber(iVisited); loadRuntime(); invokeIRuby("getNil", "()Lorg/jruby/runtime/builtin/IRubyObject;"); if (iVisited.getBodyNode() != null) { Label l1 = new Label(); Label l2 = new Label(); mv.visitLabel(l1); iVisited.getConditionNode().accept(t... | 3,230,394 |
public Instruction visitVCallNode(VCallNode iVisited) { throw new NotCompilableException("Node not supported: " + iVisited.toString()); } | public Instruction visitVCallNode(VCallNode iVisited) { lineNumber(iVisited); loadSelf(); mv.visitLdcInsn(iVisited.getName()); mv.visitFieldInsn(Opcodes.GETSTATIC, "org/jruby/runtime/builtin/IRubyObject", "NULL_ARRAY", "[Lorg/jruby/runtime/builtin/IRubyObject;"); mv.visitFieldInsn(Opcodes.GETSTATIC, "org/j... | 3,230,395 |
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,230,396 |
public void loadDataset(int datasetID) { BrowserManager manager = env.getBrowserManager(); int index; if((index = manager.hasBrowser(datasetID)) != BrowserManager.NOT_FOUND) { manager.setActiveBrowser(index); return; } DataManagementServi... | public void loadDataset(int datasetID) { BrowserManager manager = env.getBrowserManager(); int index; if((index = manager.hasBrowser(datasetID)) != BrowserManager.NOT_FOUND) { manager.setActiveBrowser(index); return; } DataManagementServi... | 3,230,397 |
public RenderingServiceException(String message, Throwable cause) { super(message, cause); } | public RenderingServiceException(String message, Throwable cause) { super(message, cause); } | 3,230,400 |
public void activate() { topFrame.addToDesktop(presentation, TopFrame.PALETTE_LAYER); presentation.setVisible(true); } | public void activate() { topFrame.addToDesktop(presentation, TopFrame.PALETTE_LAYER); presentation.setVisible(true); } | 3,230,401 |
public DatasetSummary createDataset(List projectSummaries, List imageSummaries, DatasetData retVal) throws DSOutOfServiceException, DSAccessException; | public DatasetSummary createDataset(List projectSummaries, List imageSummaries, DatasetData retVal) throws DSOutOfServiceException, DSAccessException; | 3,230,402 |
public DatasetSummary createDataset(List projectSummaries, List imageSummaries, DatasetData retVal) throws DSOutOfServiceException, DSAccessException; | public DatasetSummary createDataset(List projectSummaries, List imageSummaries, DatasetData retVal) throws DSOutOfServiceException, DSAccessException; | 3,230,403 |
public ProjectSummary createProject(ProjectData retVal) throws DSOutOfServiceException, DSAccessException; | public ProjectSummary createProject(ProjectData retVal) throws DSOutOfServiceException, DSAccessException; | 3,230,404 |
public ImageData retrieveImage(int id) throws DSOutOfServiceException, DSAccessException; | public ImageData retrieveImage(int id) throws DSOutOfServiceException, DSAccessException; | 3,230,405 |
public ProjectData retrieveProject(int projectID) throws DSOutOfServiceException, DSAccessException; | public ProjectData retrieveProject(int projectID) throws DSOutOfServiceException, DSAccessException; | 3,230,406 |
public List retrieveUserDatasets() throws DSOutOfServiceException, DSAccessException; | public List retrieveUserDatasets() throws DSOutOfServiceException, DSAccessException; | 3,230,407 |
public List retrieveUserImages() throws DSOutOfServiceException, DSAccessException; | public List retrieveUserImages() throws DSOutOfServiceException, DSAccessException; | 3,230,408 |
public List retrieveUserProjects() throws DSOutOfServiceException, DSAccessException; | public List retrieveUserProjects() throws DSOutOfServiceException, DSAccessException; | 3,230,409 |
public ZlibDeflate(IRubyObject caller, int level, int win_bits, int memlevel, int strategy) { super(); flater = new Deflater(level); flater.setStrategy(strategy); collected = new StringBuffer(); runtime = caller.getRuntime(); } | public ZlibDeflate(IRubyObject caller, int level, int win_bits, int memlevel, int strategy) { super(); flater = new Deflater(level,true); flater.setStrategy(strategy); collected = new StringBuffer(); runtime = caller.getRuntime(); } | 3,230,411 |
public IRubyObject deflate(String str, Long flush_x) throws IOException { int flush = flush_x.intValue(); if (null == str) { StringBuffer result = new StringBuffer(); byte[] outp = new byte[1024]; byte[] buf = collected.toString().getBytes("ISO8859_1"); ... | public IRubyObject deflate(String str, Long flush_x) throws IOException { int flush = flush_x.intValue(); if (null == str) { StringBuffer result = new StringBuffer(); byte[] outp = new byte[1024]; byte[] buf = collected.toString().getBytes("ISO8859_1"); ... | 3,230,412 |
public IRubyObject deflate(String str, Long flush_x) throws IOException { int flush = flush_x.intValue(); if (null == str) { StringBuffer result = new StringBuffer(); byte[] outp = new byte[1024]; byte[] buf = collected.toString().getBytes("ISO8859_1"); ... | public IRubyObject deflate(String str, Long flush_x) throws IOException { int flush = flush_x.intValue(); if (null == str) { StringBuffer result = new StringBuffer(); byte[] outp = new byte[1024]; byte[] buf = collected.toString().getBytes("ISO8859_1"); ... | 3,230,413 |
public void finish() { flater.finish(); } | public IRubyObject finish() throws Exception { StringBuffer result = new StringBuffer(); byte[] outp = new byte[1024]; byte[] buf = collected.toString().getBytes("ISO8859_1"); collected = new StringBuffer(); flater.setInput(buf); flater.finish(); } | 3,230,414 |
public IRubyObject flush(Long flush) throws IOException { return deflate("", flush); } | public IRubyObject flush(int flush) throws IOException { return deflate("", flush); } | 3,230,416 |
public static IRubyObject s_deflate(IRubyObject caller, String str, int level) throws UnsupportedEncodingException, DataFormatException, IOException { ZlibDeflate zstream = new ZlibDeflate(caller, level, MAX_WBITS, DEF_MEM_LEVEL, Deflater.DEFAULT_STRATEGY); IRubyObject result = zstream.deflate(st... | public static IRubyObject s_deflate(IRubyObject caller, String str, int level) throws UnsupportedEncodingException, DataFormatException, IOException { ZlibDeflate zstream = new ZlibDeflate(caller, level, MAX_WBITS, DEF_MEM_LEVEL, Deflater.DEFAULT_STRATEGY); IRubyObject result = zstream.deflate(st... | 3,230,417 |
public String toString(){ return "SemanticElement"+(semanticElementId==null ? ":Hash"+this.hashCode() : ":"+semanticElementId); } | public String toString(){ return "SemanticElement"+(semanticElementId==null ? ":Hash_"+this.hashCode() : ":Id_"+semanticElementId); } | 3,230,418 |
public String toString() { StringBuffer sb = new StringBuffer(128); sb.append("Details:{"); sb.append("user=");sb.append(_owner.getId()); sb.append(";group=");sb.append(_group.getId()); sb.append(";perm=");sb.append(Arrays.toString(_perms.getBytes())); sb.append(";create... | public String toString() { StringBuffer sb = new StringBuffer(128); sb.append("Details:{"); sb.append("user=");sb.append(_owner.getId()); sb.append(";group=");sb.append(_group.getId()); sb.append(";perm=");sb.append(Arrays.toString(_perms.getBytes())); sb.append(";create... | 3,230,419 |
private Downloads() { ChatFrame frame = SparkManager.getChatManager().getChatContainer().getChatFrame(); dlg = new JDialog(SparkManager.getMainWindow(), "Downloads", false); dlg.setContentPane(mainPanel); dlg.pack(); dlg.setSize(400, 400); dlg.setResizable(true); dlg... | private Downloads() { ChatFrame frame = SparkManager.getChatManager().getChatContainer().getChatFrame(); dlg = new JDialog(SparkManager.getMainWindow(), Res.getString("title.downloads"), false); dlg.setContentPane(mainPanel); dlg.pack(); dlg.setSize(400, 400); dlg.setResiza... | 3,230,420 |
public RubyString(IRuby runtime, String value) { this(runtime, runtime.getClass("String"), value); } | public RubyString(IRuby runtime, String value) { this(runtime, runtime.getClass("String"), value); } | 3,230,421 |
public IRubyObject aref(IRubyObject[] args) { if (checkArgumentCount(args, 1, 2) == 2) { return substr(RubyNumeric.fix2int(args[0]), RubyNumeric.fix2int(args[1])); } if (args[0] instanceof RubyFixnum) { int idx = RubyNumeric.fix2int(args[0]); if (idx < 0) { ... | public IRubyObject aref(IRubyObject[] args) { if (checkArgumentCount(args, 1, 2) == 2) { return substr(RubyNumeric.fix2int(args[0]), RubyNumeric.fix2int(args[1])); } if (args[0] instanceof RubyFixnum) { int idx = RubyNumeric.fix2int(args[0]); if (idx < 0) { ... | 3,230,422 |
public IRubyObject aref(IRubyObject[] args) { if (checkArgumentCount(args, 1, 2) == 2) { return substr(RubyNumeric.fix2int(args[0]), RubyNumeric.fix2int(args[1])); } if (args[0] instanceof RubyFixnum) { int idx = RubyNumeric.fix2int(args[0]); if (idx < 0) { ... | public IRubyObject aref(IRubyObject[] args) { if (checkArgumentCount(args, 1, 2) == 2) { return substr(RubyNumeric.fix2int(args[0]), RubyNumeric.fix2int(args[1])); } if (args[0] instanceof RubyFixnum) { int idx = RubyNumeric.fix2int(args[0]); if (idx < 0) { ... | 3,230,423 |
public IRubyObject aref(IRubyObject[] args) { if (checkArgumentCount(args, 1, 2) == 2) { return substr(RubyNumeric.fix2int(args[0]), RubyNumeric.fix2int(args[1])); } if (args[0] instanceof RubyFixnum) { int idx = RubyNumeric.fix2int(args[0]); if (idx < 0) { ... | public IRubyObject aref(IRubyObject[] args) { if (checkArgumentCount(args, 1, 2) == 2) { return substr(RubyNumeric.fix2int(args[0]), RubyNumeric.fix2int(args[1])); } if (args[0] instanceof RubyFixnum) { int idx = RubyNumeric.fix2int(args[0]); if (idx < 0) { ... | 3,230,424 |
public String asSymbol() { return getValue(); } | public String asSymbol() { return getValue(); } | 3,230,425 |
public IRubyObject aset(IRubyObject[] args) { testFrozen("class"); int strLen = getValue().length(); if (checkArgumentCount(args, 2, 3) == 3) { RubyString repl = stringValue(args[2]); int beg = RubyNumeric.fix2int(args[0]); int len = RubyNumeric.fix2int(args[1]); if (len < 0) { throw getRuntime().newInde... | public IRubyObject aset(IRubyObject[] args) { testFrozen("class"); int strLen = getValue().length(); if (checkArgumentCount(args, 2, 3) == 3) { RubyString repl = stringValue(args[2]); int beg = RubyNumeric.fix2int(args[0]); int len = RubyNumeric.fix2int(args[1]); if (len < 0) { throw getRuntime().newInde... | 3,230,426 |
public IRubyObject aset(IRubyObject[] args) { testFrozen("class"); int strLen = getValue().length(); if (checkArgumentCount(args, 2, 3) == 3) { RubyString repl = stringValue(args[2]); int beg = RubyNumeric.fix2int(args[0]); int len = RubyNumeric.fix2int(args[1]); if (len < 0) { throw getRuntime().newInde... | public IRubyObject aset(IRubyObject[] args) { testFrozen("class"); int strLen = getValue().length(); if (checkArgumentCount(args, 2, 3) == 3) { RubyString repl = stringValue(args[2]); int beg = RubyNumeric.fix2int(args[0]); int len = RubyNumeric.fix2int(args[1]); if (len < 0) { throw getRuntime().newInde... | 3,230,427 |
public IRubyObject capitalize_bang() { if (isEmpty()) { return getRuntime().getNil(); } StringBuffer buffer = new StringBuffer(getValue().toLowerCase()); char capital = buffer.charAt(0); if (Character.isLowerCase(capital)) { buffer.setCharAt(0, Character.toUpper... | public IRubyObject capitalize_bang() { if (isEmpty()) { return getRuntime().getNil(); } StringBuffer buffer = new StringBuffer(toString().toLowerCase()); char capital = buffer.charAt(0); if (Character.isLowerCase(capital)) { buffer.setCharAt(0, Character.toUpper... | 3,230,428 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.