bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
public void addNote(Event e) { NoteTreeNode parentTreeNode = dd.getTree().getSelectedNode(); Note parentNote = parentTreeNode.getDisplayedNote().getNote(); Note newNote = new Note("new", parentNote, ""); parentTreeNode.addChild(newNote); }
public void addNote(Event e) { NoteTreeNode parentTreeNode = dd.getTree().getSelectedNode(); Note parentNote = parentTreeNode.getDisplayedNote().getNote(); Note newNote = new Note("new", parentNote, ""); parentTreeNode.addChild(newNote); }
3,236,596
public void removeNotes(Event e) { for (NoteTreeNode node : dd.getTree().getSelectedNodes()) { node.dispose(); } }
public void removeNotes(Event e) { for (NoteTreeNode node : dd.getTree().getSelectedNodes()) { node.dispose(); } }
3,236,597
public List childNodes() { return Collections.EMPTY_LIST; }
public List childNodes() { return EMPTY_LIST; }
3,236,600
public RubyArray(Ruby ruby) { this(ruby, new ArrayList()); }
public RubyArray(Ruby ruby) { this(ruby, new ArrayList()); }
3,236,601
public static RubyArray create(Ruby ruby, RubyObject recv, RubyObject[] args) { RubyArray array = newArray(ruby, Arrays.asList(args)); array.setRubyClass((RubyClass) recv); return array; }
public static RubyArray create(Ruby ruby, RubyObject recv, RubyObject[] args) { RubyArray array = newArray(ruby, Arrays.asList(args)); array.setRubyClass((RubyClass) recv); return array; }
3,236,602
public static RubyArray newArray(Ruby ruby, long len) { return new RubyArray(ruby, new ArrayList((int) len)); }
public static RubyArray newArray(Ruby ruby, long len) { return new RubyArray(ruby, new ArrayList((int) len)); }
3,236,603
public static RubyArray nilArray(Ruby ruby) { return new RubyArray(ruby) { public boolean isNil() { return true; } }; }
public static RubyArray nilArray(Ruby ruby) { return new RubyArray(ruby) { public boolean isNil() { return true; } }; }
3,236,604
public RubyObject subseq(long beg, long len) { int length = getLength(); if (beg > length) { return getRuby().getNil(); } if (beg < 0 || len < 0) { return getRuby().getNil(); } if (beg + len > length) { len = length - beg; } if (len < 0) { len = 0; } if (len == 0) { return newArray(getRuby(), 0); ...
public RubyObject subseq(long beg, long len) { int length = getLength(); if (beg > length) { return getRuby().getNil(); } if (beg < 0 || len < 0) { return getRuby().getNil(); } if (beg + len > length) { len = length - beg; } if (len < 0) { len = 0; } if (len == 0) { return newArray(getRuby(), 0); ...
3,236,605
public RubyObject subseq(long beg, long len) { int length = getLength(); if (beg > length) { return getRuby().getNil(); } if (beg < 0 || len < 0) { return getRuby().getNil(); } if (beg + len > length) { len = length - beg; } if (len < 0) { len = 0; } if (len == 0) { return newArray(getRuby(), 0); ...
public RubyObject subseq(long beg, long len) { int length = getLength(); if (beg > length) { return getRuby().getNil(); } if (beg < 0 || len < 0) { return getRuby().getNil(); } if (beg + len > length) { len = length - beg; } if (len < 0) { len = 0; } if (len == 0) { return newArray(getRuby(), 0); ...
3,236,606
public RubyObject subseq(long beg, long len) { int length = getLength(); if (beg > length) { return getRuby().getNil(); } if (beg < 0 || len < 0) { return getRuby().getNil(); } if (beg + len > length) { len = length - beg; } if (len < 0) { len = 0; } if (len == 0) { return newArray(getRuby(), 0); ...
public RubyObject subseq(long beg, long len) { int length = getLength(); if (beg > length) { return getRuby().getNil(); } if (beg < 0 || len < 0) { return getRuby().getNil(); } if (beg + len > length) { len = length - beg; } if (len < 0) { len = 0; } if (len == 0) { return newArray(getRuby(), 0); ...
3,236,607
public RubyObject subseq(long beg, long len) { int length = getLength(); if (beg > length) { return getRuby().getNil(); } if (beg < 0 || len < 0) { return getRuby().getNil(); } if (beg + len > length) { len = length - beg; } if (len < 0) { len = 0; } if (len == 0) { return newArray(getRuby(), 0); ...
public RubyObject subseq(long beg, long len) { int length = getLength(); if (beg > length) { return getRuby().getNil(); } if (beg < 0 || len < 0) { return getRuby().getNil(); } if (beg + len > length) { len = length - beg; } if (len < 0) { len = 0; } if (len == 0) { return newArray(getRuby(), 0); ...
3,236,608
private static int runInterpreter(Reader reader, String filename) { Ruby runtime = Ruby.getDefaultInstance(); int status = 0; try { initializeRuntime(runtime, filename); Node parsedScript = getParsedScript(runtime, reader, filename); runtime.eval(parsedScript); ...
private static int runInterpreter(Reader reader, String filename) { Ruby runtime = Ruby.getDefaultInstance(); try { initializeRuntime(runtime, filename); Node parsedScript = getParsedScript(runtime, reader, filename); runtime.eval(parsedScript); } catch ...
3,236,610
private static int runInterpreter(Reader reader, String filename) { Ruby runtime = Ruby.getDefaultInstance(); int status = 0; try { initializeRuntime(runtime, filename); Node parsedScript = getParsedScript(runtime, reader, filename); runtime.eval(parsedScript); ...
private static int runInterpreter(Reader reader, String filename) { Ruby runtime = Ruby.getDefaultInstance(); int status = 0; try { initializeRuntime(runtime, filename); Node parsedScript = getParsedScript(runtime, reader, filename); runtime.eval(parsedScript); ...
3,236,611
private static int runInterpreter(Reader reader, String filename) { Ruby runtime = Ruby.getDefaultInstance(); int status = 0; try { initializeRuntime(runtime, filename); Node parsedScript = getParsedScript(runtime, reader, filename); runtime.eval(parsedScript); ...
private static int runInterpreter(Reader reader, String filename) { Ruby runtime = Ruby.getDefaultInstance(); int status = 0; try { initializeRuntime(runtime, filename); Node parsedScript = getParsedScript(runtime, reader, filename); runtime.eval(parsedScript); ...
3,236,612
private static int runInterpreter(Reader reader, String filename) { Ruby runtime = Ruby.getDefaultInstance(); int status = 0; try { initializeRuntime(runtime, filename); Node parsedScript = getParsedScript(runtime, reader, filename); runtime.eval(parsedScript); ...
private static int runInterpreter(Reader reader, String filename) { Ruby runtime = Ruby.getDefaultInstance(); int status = 0; try { initializeRuntime(runtime, filename); Node parsedScript = getParsedScript(runtime, reader, filename); runtime.eval(parsedScript); ...
3,236,613
private static int runInterpreter(Reader reader, String filename) { Ruby runtime = Ruby.getDefaultInstance(); int status = 0; try { initializeRuntime(runtime, filename); Node parsedScript = getParsedScript(runtime, reader, filename); runtime.eval(parsedScript); ...
private static int runInterpreter(Reader reader, String filename) { Ruby runtime = Ruby.getDefaultInstance(); int status = 0; try { initializeRuntime(runtime, filename); Node parsedScript = getParsedScript(runtime, reader, filename); runtime.eval(parsedScript); ...
3,236,614
public static RubyClass createDirClass(Ruby ruby) { RubyClass dirClass = ruby.defineClass("Dir", ruby.getClasses().getObjectClass()); dirClass.includeModule(ruby.getRubyModule("Enumerable")); dirClass.defineSingletonMethod("new", CallbackFactory.getOptSingletonMethod(RubyDir.class, "newInstance")); ...
public static RubyClass createDirClass(Ruby ruby) { RubyClass dirClass = ruby.defineClass("Dir", ruby.getClasses().getObjectClass()); dirClass.includeModule(ruby.getRubyModule("Enumerable")); dirClass.defineSingletonMethod("new", CallbackFactory.getOptSingletonMethod(RubyDir.class, "newInstance")); ...
3,236,615
public static RubyClass createDirClass(Ruby ruby) { RubyClass dirClass = ruby.defineClass("Dir", ruby.getClasses().getObjectClass()); dirClass.includeModule(ruby.getRubyModule("Enumerable")); dirClass.defineSingletonMethod("new", CallbackFactory.getOptSingletonMethod(RubyDir.class, "newInstance")); ...
public static RubyClass createDirClass(Ruby ruby) { RubyClass dirClass = ruby.defineClass("Dir", ruby.getClasses().getObjectClass()); dirClass.includeModule(ruby.getRubyModule("Enumerable")); dirClass.defineSingletonMethod("new", CallbackFactory.getOptSingletonMethod(RubyDir.class, "newInstance")); ...
3,236,616
public static RubyArray glob(IRubyObject recv, RubyString pat) { // FIXME this is only a small subset of the functionallity of this function String pattern = pat.toString(); /*if (pattern.indexOf("**") != -1 || pattern.indexOf("?") != -1) { throw new NotImplementedErr...
public static RubyArray glob(IRubyObject recv, RubyString pat) {// FIXME this is only a small subset of the functionallity of this functionString pattern = pat.toString();/*if (pattern.indexOf("**") != -1 || pattern.indexOf("?") != -1) {throw new NotImplementedError();}*/String[] files = new Glob(pattern).getNames();//...
3,236,617
public static RubyArray glob(IRubyObject recv, RubyString pat) { // FIXME this is only a small subset of the functionallity of this function String pattern = pat.toString(); /*if (pattern.indexOf("**") != -1 || pattern.indexOf("?") != -1) { throw new NotImplementedErr...
public static RubyArray glob(IRubyObject recv, RubyString pat) { // FIXME this is only a small subset of the functionallity of this function String pattern = pat.toString(); /*if (pattern.indexOf("**") != -1 || pattern.indexOf("?") != -1) { throw new NotImplementedErr...
3,236,618
public static RubyArray glob(IRubyObject recv, RubyString pat) { // FIXME this is only a small subset of the functionallity of this function String pattern = pat.toString(); /*if (pattern.indexOf("**") != -1 || pattern.indexOf("?") != -1) { throw new NotImplementedErr...
public static RubyArray glob(IRubyObject recv, RubyString pat) {// FIXME this is only a small subset of the functionallity of this functionString pattern = pat.toString();/*if (pattern.indexOf("**") != -1 || pattern.indexOf("?") != -1) {throw new NotImplementedError();}*/String[] files = new Glob(pattern).getNames();//...
3,236,619
public RubyString read() { return new RubyString(getRuntime(), snapshot[pos++]); }
public RubyString read() { pos++; if (pos >= snapshot.length) { return RubyString.nilString(runtime); } return new RubyString(getRuntime(), snapshot[pos]); }
3,236,620
public RubyObject iterate(Callback iterateMethod, RubyObject data1, Callback blockMethod, RubyObject data2) { // VALUE self = ruby_top_self; getIterStack().push(Iter.ITER_PRE); getBlock().push(null, new IterateMethod(blockMethod, data2), getRubyTopSelf()); try { while (true) {...
public RubyObject iterate(Callback iterateMethod, RubyObject data1, Callback blockMethod, RubyObject data2) { // VALUE self = ruby_top_self; getIterStack().push(Iter.ITER_PRE); getBlockStack().push(null, new IterateMethod(blockMethod, data2), getRubyTopSelf()); try { while (tr...
3,236,621
public RubyObject iterate(Callback iterateMethod, RubyObject data1, Callback blockMethod, RubyObject data2) { // VALUE self = ruby_top_self; getIterStack().push(Iter.ITER_PRE); getBlock().push(null, new IterateMethod(blockMethod, data2), getRubyTopSelf()); try { while (true) {...
public RubyObject iterate(Callback iterateMethod, RubyObject data1, Callback blockMethod, RubyObject data2) { // VALUE self = ruby_top_self; getIterStack().push(Iter.ITER_PRE); getBlock().push(null, new IterateMethod(blockMethod, data2), getRubyTopSelf()); try { while (true) {...
3,236,622
public ChatRoomImpl(final String participantJID, String participantNickname, String title) { this.participantJID = participantJID; this.participantNickname = participantNickname; AndFilter presenceFilter = new AndFilter(new PacketTypeFilter(Presence.class), new FromContainsFilter(this.participa...
public ChatRoomImpl(final String participantJID, String participantNickname, String title) { this.participantJID = participantJID; this.participantNickname = participantNickname; AndFilter presenceFilter = new AndFilter(new PacketTypeFilter(Presence.class), new BareAddressFilter(participantJID)...
3,236,623
public ChatRoomImpl(final String participantJID, String participantNickname, String title) { this.participantJID = participantJID; this.participantNickname = participantNickname; AndFilter presenceFilter = new AndFilter(new PacketTypeFilter(Presence.class), new FromContainsFilter(this.participa...
public ChatRoomImpl(final String participantJID, String participantNickname, String title) { this.participantJID = participantJID; this.participantNickname = participantNickname; AndFilter presenceFilter = new AndFilter(new PacketTypeFilter(Presence.class), new FromContainsFilter(this.participa...
3,236,624
public void setUp() { ruby = Ruby.getDefaultInstance(null); rubyTime = ruby.getClasses().getTimeClass(); RubyObject[] args = new RubyObject[1]; args[0] = RubyFixnum.newFixnum(ruby, 18000000); nineTeenSeventy = RubyTime.s_at(ruby, rubyTime, args); }
public void setUp() { if (ruby == null) { ruby = Ruby.getDefaultInstance(null); } rubyTime = ruby.getClasses().getTimeClass(); RubyObject[] args = new RubyObject[1]; args[0] = RubyFixnum.newFixnum(ruby, 18000000); nineTeenSeventy = RubyTime.s_at(ruby, rubyTime, args); }
3,236,625
public void testTimeNow() { RubyTime myTime = RubyTime.s_new(ruby, rubyTime); try { Thread.sleep(1000); } catch (InterruptedException e) { fail("Unexpected InterruptedException"); } Date now = new Date(); assertTrue(now.after(myTime.getJavaDate())); ...
public void testTimeNow() { RubyTime myTime = RubyTime.s_new(ruby, rubyTime); try { Thread.sleep(100); } catch (InterruptedException e) { fail("Unexpected InterruptedException"); } Date now = new Date(); assertTrue(now.after(myTime.getJavaDate())); ...
3,236,626
ImViewerUI(String title) { super(title); loadingWindow = new LoadingWindow(this); createWindowsMenu(); }
ImViewerUI(String title) { super(title); loadingWindow = new LoadingWindow(this); }
3,236,627
private JMenuBar createMenuBar() { JMenuBar menuBar = new JMenuBar(); menuBar.add(createControlsMenu()); menuBar.add(createZoomMenu()); menuBar.add(createRatingMenu()); //menuBar.add(windowsMenu); //Adds windows menu to the task bar menu. TaskBar tb = ImViewerAge...
private JMenuBar createMenuBar() { JMenuBar menuBar = new JMenuBar(); menuBar.add(createControlsMenu()); menuBar.add(createZoomMenu()); menuBar.add(createRatingMenu()); //menuBar.add(windowsMenu); //Adds windows menu to the task bar menu. TaskBar tb = ImViewerAge...
3,236,628
public String onPrepareStatement(String sql) { // start StringBuilder sb = new StringBuilder(); String[] first = sql.split("\\sfrom\\s"); sb.append(first[0]); if (first.length == 1) { return sb.toString(); } else if (first.length == 2) { // from sb.append("\n from "); String[] second = first[1]...
publicStringonPrepareStatement(Stringsql){ //start StringBuildersb=newStringBuilder(); String[]first=sql.split("\\sfrom\\s"); sb.append(first[0]); if(first.length==1) { returnsb.toString(); } elseif(first.length==2) { //from sb.append("\nfrom"); String[]second=first[1].split("\\swhere\\s"); sb...
3,236,629
public String onPrepareStatement(String sql) { // start StringBuilder sb = new StringBuilder(); String[] first = sql.split("\\sfrom\\s"); sb.append(first[0]); if (first.length == 1) { return sb.toString(); } else if (first.length == 2) { // from sb.append("\n from "); String[] second = first[1]...
public String onPrepareStatement(String sql) { // start StringBuilder sb = new StringBuilder(); String[] first = sql.split("\\sfrom\\s"); sb.append(first[0]); if (first.length == 1) { return sb.toString(); } else if (first.length == 2) { // from sb.append("\n from "); String[] second = first[1]...
3,236,630
public String onPrepareStatement(String sql) { // start StringBuilder sb = new StringBuilder(); String[] first = sql.split("\\sfrom\\s"); sb.append(first[0]); if (first.length == 1) { return sb.toString(); } else if (first.length == 2) { // from sb.append("\n from "); String[] second = first[1]...
public String onPrepareStatement(String sql) { // start StringBuilder sb = new StringBuilder(); String[] first = sql.split("\\sfrom\\s"); sb.append(first[0]); if (first.length == 1) { return sb.toString(); } else if (first.length == 2) { // from sb.append("\n from "); String[] second = first[1]...
3,236,631
public String onPrepareStatement(String sql) { // start StringBuilder sb = new StringBuilder(); String[] first = sql.split("\\sfrom\\s"); sb.append(first[0]); if (first.length == 1) { return sb.toString(); } else if (first.length == 2) { // from sb.append("\n from "); String[] second = first[1]...
public String onPrepareStatement(String sql) { // start StringBuilder sb = new StringBuilder(); String[] first = sql.split("\\sfrom\\s"); sb.append(first[0]); if (first.length == 1) { return sb.toString(); } else if (first.length == 2) { // from sb.append("\n from "); String[] second = first[1]...
3,236,632
RGBBuffer render(Renderer ctx, PlaneDef planeDef) throws IOException, QuantizationException { //Set the context and retrieve objects we're gonna use. renderer = ctx; QuantumManager qManager = renderer.getQuantumManager(); PixelBuffer pixels = renderer.getPixels(); Pixels metadata = renderer.getMetadata(); ...
RGBBuffer render(Renderer ctx, PlaneDef planeDef) throws IOException, QuantizationException { //Set the context and retrieve objects we're gonna use. renderer = ctx; QuantumManager qManager = renderer.getQuantumManager(); PixelBuffer pixels = renderer.getPixels(); Pixels metadata = renderer.getMetadata(); ...
3,236,633
public void setNickname(String nickname){ nicknameLabel.setText(nickname); }
public void setNickname(String nickname) { nicknameLabel.setText(nickname); }
3,236,637
public Object invoke(MethodInvocation arg0) throws Throwable { secSys.setCurrentDetails(); Boolean readOnly = (Boolean) ht.execute(new CheckReadOnlyAction(secSys)); if ( readOnly != null && readOnly.booleanValue()) { if (log.isDebugEnabled()) { log.debug("Tx r...
public Object invoke(MethodInvocation arg0) throws Throwable { secSys.setCurrentDetails(); Boolean readOnly = (Boolean) ht.execute(new CheckReadOnlyAction(secSys)); if ( readOnly != null && readOnly.booleanValue()) { if (log.isDebugEnabled()) { log.debug("Tx r...
3,236,638
private void buildGUI() { //create and initialize the tabs tabs = new JTabbedPane(JTabbedPane.TOP, JTabbedPane.WRAP_TAB_LAYOUT); tabs.setAlignmentX(LEFT_ALIGNMENT); tabs.insertTab("Mapping", im.getIcon(IconManager.MAPPING), mappingPanel, null, POS_MAPPING); tabs.insertTab(control.getModelType()...
private void buildGUI() { //create and initialize the tabs tabs = new JTabbedPane(JTabbedPane.TOP, JTabbedPane.WRAP_TAB_LAYOUT); tabs.setAlignmentX(LEFT_ALIGNMENT); tabs.insertTab("Mapping", im.getIcon(IconManager.MAPPING), mappingPanel, null, POS_MAPPING); tabs.insertTab(control.getModelType()...
3,236,639
private void buildMappingPanel() { mappingPanel.setLayout(new BorderLayout(0, 0)); mappingPanel.add(quantumPane.getGRPane(), BorderLayout.NORTH); mappingPanel.add(quantumPane.getDomainPane(), BorderLayout.CENTER); }
private void buildMappingPanel() { mappingPanel.setLayout(new BorderLayout(0, 0)); mappingPanel.add(quantumPane.getGRPane(), BorderLayout.NORTH); mappingPanel.add(quantumPane.getDomainPane(), BorderLayout.CENTER); }
3,236,640
private JMenu createMenu() { JMenu menu = new JMenu("Controls"); /* JMenuItem menuItem = new JMenuItem("Save", im.getIcon(IconManager.SAVE_SETTINGS)); control.setMenuItemListener(menuItem, RenderingAgtCtrl.SAVE); menu.add(menuItem); */ JMenuItem menuItem = new JMenuItem("Reset defaults", im.get...
private JMenu createMenu() { JMenu menu = new JMenu("Controls"); /* JMenuItem menuItem = new JMenuItem("Save", im.getIcon(IconManager.SAVE_SETTINGS)); control.setMenuItemListener(menuItem, RenderingAgtCtrl.SAVE); menu.add(menuItem); */ JMenuItem menuItem = new JMenuItem("Reset defaults", im.get...
3,236,641
private JMenuBar createMenuBar() { JMenuBar menuBar = new JMenuBar(); menuBar.add(createModelMenu()); menuBar.add(createMenu()); return menuBar; }
private JMenuBar createMenuBar() { JMenuBar menuBar = new JMenuBar(); menuBar.add(createModelMenu()); menuBar.add(createMenu()); return menuBar; }
3,236,642
private JMenu createModelMenu() { JMenu menu = new JMenu("Model"); JMenuItem menuItem = new JMenuItem("GreyScale", im.getIcon(IconManager.GREYSCALE)); control.setMenuItemListener(menuItem, RenderingAgtCtrl.GREY); menu.add(menuItem); menuItem = new JMenuItem("RGB", im.getIcon(IconManager.RGB)); control.se...
private JMenu createModelMenu() { JMenu menu = new JMenu("Model"); JMenuItem menuItem = new JMenuItem("GreyScale", im.getIcon(IconManager.GREYSCALE)); control.setMenuItemListener(menuItem, RenderingAgtCtrl.GREY); menu.add(menuItem); menuItem = new JMenuItem("RGB", im.getIcon(IconManager.RGB)); control.se...
3,236,643
private void initPanes() { quantumPane = new QuantumPane(control); modelPane = control.getModelPane(); modelPane.buildComponent(); mappingPanel = new JPanel(); mappingPanel.setLayout(new BorderLayout(0, 10)); }
private void initPanes() { quantumPane = new QuantumPane(control); modelPane = control.getModelPane(); modelPane.buildComponent(); mappingPanel = new JPanel(); mappingPanel.setLayout(new BorderLayout(0, 10)); }
3,236,644
public ChannelButton(String text, Color color, int index, boolean selected) { super(text, color); if (color == null) throw new IllegalArgumentException("No color."); this.index = index; setSelected(selected); addMouseListener(new MouseAdapter...
public ChannelButton(String text, Color color, int index, boolean selected) { super(text, color); if (color == null) throw new IllegalArgumentException("No color."); this.index = index; setSelected(selected); addMouseListener(new MouseAdapter...
3,236,645
public ChannelButton(String text, Color color, int index, boolean selected) { super(text, color); if (color == null) throw new IllegalArgumentException("No color."); this.index = index; setSelected(selected); addMouseListener(new MouseAdapter...
public ChannelButton(String text, Color color, int index, boolean selected) { super(text, color); if (color == null) throw new IllegalArgumentException("No color."); this.index = index; setSelected(selected); addMouseListener(new MouseAdapter...
3,236,646
private void onClick(MouseEvent e) { onReleased(e); if (!e.isPopupTrigger()) setChannelSelected(); }
private void onClick(MouseEvent e) { onReleased(e); if (!e.isMetaDown()) setChannelSelected(); }
3,236,647
private void onReleased(MouseEvent e) { if (e.isPopupTrigger()) { if (popupMenu == null) popupMenu = new ChannelButtonPopupMenu(this); popupMenu.show(this, e.getX(), e.getY()); } }
privatevoidonReleased(MouseEvente){if(e.isPopupTrigger()){if(popupMenu==null)popupMenu=newChannelButtonPopupMenu(this);popupMenu.show(this,e.getX(),e.getY());}}
3,236,648
void showInfo() { firePropertyChange(INFO_PROPERTY, null, new Integer(index)); }
voidshowInfo(){firePropertyChange(INFO_PROPERTY,null,newInteger(index));}
3,236,649
public Object getById(final Class klazz, final int id) { return getHibernateTemplate().execute(new HibernateCallback() { public Object doInHibernate(Session session) throws HibernateException { OMEModel o = (OMEModel) session.load(klazz,id); BaseModelU...
public Object getById(final Class klazz, final int id) { return getHibernateTemplate().execute(new HibernateCallback() { public Object doInHibernate(Session session) throws HibernateException { OMEModel o = (OMEModel) session.load(klazz,id); ...
3,236,650
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); return o; }
3,236,651
void initStrategies(QuantumDef qd, PixelsType type, ChannelBinding[] waves) { QuantumStrategy stg; double gMin, gMax; List channels = this.metadata.getChannels(); int w = 0; Channel channel; for (Iterator i = channels.iterator(); i.hasNext();) { channel = (Channel) i.next(); stg = QuantumFactory.getStr...
void initStrategies(QuantumDef qd, PixelsType type, ChannelBinding[] waves) { QuantumStrategy stg; double gMin, gMax; List channels = this.metadata.getChannels(); int w = 0; Channel channel; for (Iterator i = channels.iterator(); i.hasNext();) { channel = (Channel) i.next(); stg = QuantumFactory.getStr...
3,236,652
public void accept(NodeVisitor iVisitor) { iVisitor.visitForNode(this); }
public void accept(NodeVisitor iVisitor) { iVisitor.visitForNode(this); }
3,236,653
public RubyObject eval(Ruby ruby, RubyObject self) { RubyObject result; ruby.getBlock().push(getVarNode(), getBodyNode(), self); ruby.getIter().push(RubyIter.ITER_PRE); while (true) { try { String file = ruby.getSourceFile(); int line = ru...
public RubyObject eval(Ruby ruby, RubyObject self) { RubyObject result; ruby.getBlock().push(getVarNode(), getBodyNode(), self); ruby.getIter().push(RubyIter.ITER_PRE); while (true) { try { String file = ruby.getSourceFile(); int line = ru...
3,236,654
public RubyObject eval(Ruby ruby, RubyObject self) { RubyObject result; ruby.getBlock().push(getVarNode(), getBodyNode(), self); ruby.getIter().push(RubyIter.ITER_PRE); while (true) { try { String file = ruby.getSourceFile(); int line = ru...
public RubyObject eval(Ruby ruby, RubyObject self) { RubyObject result; ruby.getBlock().push(getVarNode(), getBodyNode(), self); ruby.getIter().push(RubyIter.ITER_PRE); while (true) { try { String file = ruby.getSourceFile(); int line = ru...
3,236,655
public RubyObject eval(Ruby ruby, RubyObject self) { RubyObject result; ruby.getBlock().push(getVarNode(), getBodyNode(), self); ruby.getIter().push(RubyIter.ITER_PRE); while (true) { try { String file = ruby.getSourceFile(); int line = ru...
public RubyObject eval(Ruby ruby, RubyObject self) { RubyObject result; ruby.getBlock().push(getVarNode(), getBodyNode(), self); ruby.getIter().push(RubyIter.ITER_PRE); while (true) { try { String file = ruby.getSourceFile(); int line = ru...
3,236,656
public LoadService() { super(); }
public LoadService(Ruby runtime) { super(); }
3,236,657
public void init(Ruby runtime, List additionalDirectories) { this.runtime = runtime; for (Iterator iter = additionalDirectories.iterator(); iter.hasNext();) { loadPath.add(RubyString.newString(runtime, (String)iter.next())); } if (runtime.getSafeLevel() == 0) { load...
public void init(Ruby runtime, List additionalDirectories) { for (Iterator iter = additionalDirectories.iterator(); iter.hasNext();) { loadPath.add(RubyString.newString(runtime, (String)iter.next())); } if (runtime.getSafeLevel() == 0) { loadPath.add(RubyString.newSt...
3,236,659
public boolean require(String file) { if (!loadedFeatures.contains(file)) { if (load(file)) { loadedFeatures.add(file); return true; } } return false; }
public boolean require(String file) { RubyString name = RubyString.newString(runtime, file); if (!loadedFeatures.contains(name)) { if (load(file)) { loadedFeatures.add(file); return true; } } return false; }
3,236,660
public boolean require(String file) { if (!loadedFeatures.contains(file)) { if (load(file)) { loadedFeatures.add(file); return true; } } return false; }
public boolean require(String file) { if (!loadedFeatures.contains(file)) { if (load(file)) { loadedFeatures.add(name); return true; } } return false; }
3,236,661
public void testUnloadedEntityFieldOnDetachedPixels() throws Exception { // PREPARE ------------------------------------------------- // TODO or bool flag? p.setAcquisitionContext(new AcquisitionContext(-1l)); _up.saveAndReturnObject(p); flush(); clear(); ...
public void testUnloadedEntityFieldOnDetachedPixels() throws Exception { // PREPARE ------------------------------------------------- // TODO or bool flag? AcquisitionContext ac = new AcquisitionContext(); ac.setId(-1l); p.setAcquisitionContext(ac); _up.saveAndReturnObject(p); ...
3,236,662
public RubyString findClassPath() { return null; }
public RubyString findClassPath() { return null; }
3,236,663
public RubyString getClassname() { RubyString path = null; RubyModule rbModule = this; while (rbModule.isIncluded() || rbModule.isSingleton()) { rbModule = ((RubyClass)rbModule).getSuperClass(); } if (rbModule == null) { rbModule = getRuby().g...
public RubyString getClassname() { RubyString path = null; RubyModule rbModule = this; while (rbModule.isIncluded() || rbModule.isSingleton()) { rbModule = ((RubyClass)rbModule).getSuperClass(); } if (rbModule == null) { rbModule = getRuby().g...
3,236,664
public RubyString getClassname() { RubyString path = null; RubyModule rbModule = this; while (rbModule.isIncluded() || rbModule.isSingleton()) { rbModule = ((RubyClass)rbModule).getSuperClass(); } if (rbModule == null) { rbModule = getRuby().g...
public RubyString getClassname() { RubyString path = null; RubyModule rbModule = this; while (rbModule.isIncluded() || rbModule.isSingleton()) { rbModule = ((RubyClass)rbModule).getSuperClass(); } if (rbModule == null) { rbModule = getRuby().g...
3,236,665
public RubyString getClassname() { RubyString path = null; RubyModule rbModule = this; while (rbModule.isIncluded() || rbModule.isSingleton()) { rbModule = ((RubyClass)rbModule).getSuperClass(); } if (rbModule == null) { rbModule = getRuby().g...
public RubyString getClassname() { RubyString path = null; RubyModule rbModule = this; while (rbModule.isIncluded() || rbModule.isSingleton()) { rbModule = ((RubyClass)rbModule).getSuperClass(); } if (rbModule == null) { rbModule = getRuby().g...
3,236,666
public RubyString getClassname() { RubyString path = null; RubyModule rbModule = this; while (rbModule.isIncluded() || rbModule.isSingleton()) { rbModule = ((RubyClass)rbModule).getSuperClass(); } if (rbModule == null) { rbModule = getRuby().g...
public RubyString getClassname() { RubyString path = null; RubyModule rbModule = this; while (rbModule.isIncluded() || rbModule.isSingleton()) { rbModule = ((RubyClass)rbModule).getSuperClass(); } if (rbModule == null) { rbModule = getRuby().g...
3,236,667
public RubyString getClassname() { RubyString path = null; RubyModule rbModule = this; while (rbModule.isIncluded() || rbModule.isSingleton()) { rbModule = ((RubyClass)rbModule).getSuperClass(); } if (rbModule == null) { rbModule = getRuby().g...
public RubyString getClassname() { RubyString path = null; RubyModule rbModule = this; while (rbModule.isIncluded() || rbModule.isSingleton()) { rbModule = ((RubyClass)rbModule).getSuperClass(); } if (rbModule == null) { rbModule = getRuby().g...
3,236,668
public static PiccoloAction getZoomTo200Action(final BrowserModel model) { PiccoloAction action = new PiccoloAction() { public void execute() { model.setCurrentMode(BrowserModel.ZOOM_MODE_NAME, BrowserMode.ZOOM_200_MODE); ...
public static PiccoloAction getZoomTo200Action(final BrowserModel model) { PiccoloAction action = new PiccoloAction() { public void execute(PInputEvent e) { model.setCurrentMode(BrowserModel.ZOOM_MODE_NAME, BrowserMode.ZOOM_20...
3,236,669
public void execute() { model.setCurrentMode(BrowserModel.ZOOM_MODE_NAME, BrowserMode.ZOOM_200_MODE); }
public void execute(PInputEvent e) { model.setCurrentMode(BrowserModel.ZOOM_MODE_NAME, BrowserMode.ZOOM_200_MODE); }
3,236,670
public static PiccoloAction getZoomTo50Action(final BrowserModel model) { PiccoloAction action = new PiccoloAction() { public void execute() { model.setCurrentMode(BrowserModel.ZOOM_MODE_NAME, BrowserMode.ZOOM_50_MODE); ...
public static PiccoloAction getZoomTo50Action(final BrowserModel model) { PiccoloAction action = new PiccoloAction() { public void execute(PInputEvent e) { model.setCurrentMode(BrowserModel.ZOOM_MODE_NAME, BrowserMode.ZOOM_50_...
3,236,671
public void execute() { model.setCurrentMode(BrowserModel.ZOOM_MODE_NAME, BrowserMode.ZOOM_50_MODE); }
public void execute(PInputEvent e) { model.setCurrentMode(BrowserModel.ZOOM_MODE_NAME, BrowserMode.ZOOM_50_MODE); }
3,236,672
public static PiccoloAction getZoomTo75Action(final BrowserModel model) { PiccoloAction action = new PiccoloAction() { public void execute() { model.setCurrentMode(BrowserModel.ZOOM_MODE_NAME, BrowserMode.ZOOM_75_MODE); ...
public static PiccoloAction getZoomTo75Action(final BrowserModel model) { PiccoloAction action = new PiccoloAction() { public void execute(PInputEvent e) { model.setCurrentMode(BrowserModel.ZOOM_MODE_NAME, BrowserMode.ZOOM_75_...
3,236,673
public void execute() { model.setCurrentMode(BrowserModel.ZOOM_MODE_NAME, BrowserMode.ZOOM_75_MODE); }
public void execute(PInputEvent e) { model.setCurrentMode(BrowserModel.ZOOM_MODE_NAME, BrowserMode.ZOOM_75_MODE); }
3,236,675
public static PiccoloAction getZoomToActualAction(final BrowserModel model) { PiccoloAction action = new PiccoloAction() { public void execute() { model.setCurrentMode(BrowserModel.ZOOM_MODE_NAME, BrowserMode.ZOOM_ACTUAL_MODE)...
public static PiccoloAction getZoomToActualAction(final BrowserModel model) { PiccoloAction action = new PiccoloAction() { public void execute(PInputEvent e) { model.setCurrentMode(BrowserModel.ZOOM_MODE_NAME, BrowserMode.ZOOM...
3,236,677
public void execute() { model.setCurrentMode(BrowserModel.ZOOM_MODE_NAME, BrowserMode.ZOOM_ACTUAL_MODE); }
public void execute(PInputEvent e) { model.setCurrentMode(BrowserModel.ZOOM_MODE_NAME, BrowserMode.ZOOM_ACTUAL_MODE); }
3,236,678
public static PiccoloAction getZoomToFitAction(final BrowserModel model) { PiccoloAction action = new PiccoloAction() { public void execute() { model.setCurrentMode(BrowserModel.ZOOM_MODE_NAME, BrowserMode.ZOOM_TO_FIT_MODE); ...
public static PiccoloAction getZoomToFitAction(final BrowserModel model) { PiccoloAction action = new PiccoloAction() { public void execute(PInputEvent e) { model.setCurrentMode(BrowserModel.ZOOM_MODE_NAME, BrowserMode.ZOOM_TO...
3,236,679
public void execute() { model.setCurrentMode(BrowserModel.ZOOM_MODE_NAME, BrowserMode.ZOOM_TO_FIT_MODE); }
public void execute(PInputEvent e) { model.setCurrentMode(BrowserModel.ZOOM_MODE_NAME, BrowserMode.ZOOM_TO_FIT_MODE); }
3,236,680
public String getUserNicknameFromJID(String jid) { ContactList contactList = SparkManager.getWorkspace().getContactList(); ContactItem item = contactList.getContactItemByJID(jid); if (item != null) { return item.getNickname(); } return null; }
public String getUserNicknameFromJID(String jid) { ContactList contactList = SparkManager.getWorkspace().getContactList(); ContactItem item = contactList.getContactItemByJID(jid); if (item != null) { return item.getNickname(); } return jid; }
3,236,681
public final Object build(DirectiveBuilder builder, BuildContext bc) throws BuildException { Broker broker = bc.getBroker(); // build configuration key names, since they're based // on the configured name of this directive _directiveName = builder.getName(); TEMPLATE_EXTENSIONS_NAME = _direc...
_log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); _log = bc.getLog("IncludeDirective"); public_log = bc.getLog("IncludeDirective"); final_log = bc.getLog("IncludeDirective"); Object_log = bc.getLog("IncludeDirective"); build(DirectiveBuilder_log = bc.getLog("IncludeDirective"); builder,_log = ...
3,236,682
public void write(FastWriter out, Context context) throws PropertyException, IOException { Broker broker = context.getBroker(); // the filename arg passed to us was a Macro, so // evaluate and check it now if (_macFilename != null) { _strFilename = _macFilename.evaluate(context).toString(...
public void write(FastWriter out, Context context) throws PropertyException, IOException { Broker broker = context.getBroker(); // the filename arg passed to us was a Macro, so // evaluate and check it now if (_macFilename != null) { _strFilename = _macFilename.evaluate(context).toString(...
3,236,683
private UIComponent getCategoryEditContainer() { String ref = ARTICLE_ITEM_BEAN_ID + "."; String bref = WFPage.CONTENT_BUNDLE + "."; HtmlPanelGrid p = WFPanelUtil.getFormPanel(3); p.setId(CATEGORY_EDITOR_ID); p.getChildren().add(WFUtil.group(WFUtil.getTextVB(bref + "available_categories"), WFUtil.getText(":"))); ...
private UIComponent getCategoryEditContainer() { String ref = ARTICLE_ITEM_BEAN_ID + "."; String bref = WFPage.CONTENT_BUNDLE + "."; HtmlPanelGrid p = WFPanelUtil.getFormPanel(3); p.setId(CATEGORY_EDITOR_ID); p.getChildren().add(WFUtil.group(WFUtil.getTextVB(bref + "available_categories"), WFUtil.getText(":"))); ...
3,236,685
private UIComponent getCategoryEditContainer() { String ref = ARTICLE_ITEM_BEAN_ID + "."; String bref = WFPage.CONTENT_BUNDLE + "."; HtmlPanelGrid p = WFPanelUtil.getFormPanel(3); p.setId(CATEGORY_EDITOR_ID); p.getChildren().add(WFUtil.group(WFUtil.getTextVB(bref + "available_categories"), WFUtil.getText(":"))); ...
private UIComponent getCategoryEditContainer() { String ref = ARTICLE_ITEM_BEAN_ID + "."; String bref = WFPage.CONTENT_BUNDLE + "."; HtmlPanelGrid p = WFPanelUtil.getFormPanel(3); p.setId(CATEGORY_EDITOR_ID); p.getChildren().add(WFUtil.group(WFUtil.getTextVB(bref + "available_categories"), WFUtil.getText(":"))); ...
3,236,686
public void onSelectedDisplay() { switch (model.getState()) { case DISCARDED: case SAVE: throw new IllegalStateException("This method cannot be " + "invoked in the DISCARDED, SAVE state."); } int editor = model.getEditorType(); ...
public void onSelectedDisplay() { switch (model.getState()) { case DISCARDED: case SAVE: throw new IllegalStateException("This method cannot be " + "invoked in the DISCARDED, SAVE state."); } int editor = model.getEditorType(); ...
3,236,687
public void onSelectedDisplay() { switch (model.getState()) { case DISCARDED: case SAVE: throw new IllegalStateException("This method cannot be " + "invoked in the DISCARDED, SAVE state."); } int editor = model.getEditorType(); ...
public void onSelectedDisplay() { switch (model.getState()) { case DISCARDED: case SAVE: throw new IllegalStateException("This method cannot be " + "invoked in the DISCARDED, SAVE state."); } int editor = model.getEditorType(); ...
3,236,688
public void removeEditor() { switch (model.getState()) { case DISCARDED: //case SAVE: throw new IllegalStateException("This method cannot be " + "invoked in the DISCARDED, SAVE state."); } /* Editor editor = model.getEditor(...
public void removeEditor() { switch (model.getState()) { case DISCARDED: //case SAVE: throw new IllegalStateException("This method cannot be " + "invoked in the DISCARDED, SAVE state."); } /* Editor editor = model.getEditor(...
3,236,689
public void closeActiveRoom() { ChatRoom room = null; try { room = getActiveChatRoom(); } catch (ChatRoomNotFoundException e1) { // AgentLog.logError("Chat room not found", e1); } // Confirm end session boolean isGroupChat = room.getChatType() =...
public void closeActiveRoom() { ChatRoom room = null; try { room = getActiveChatRoom(); } catch (ChatRoomNotFoundException e1) { // AgentLog.logError("Chat room not found", e1); } // Confirm end session boolean isGroupChat = room.getChatType() =...
3,236,690
public void useTabDefault(final ChatRoom room) { // Check if room is stale boolean containsRoom = getStaleChatRooms().contains(room); if (containsRoom) { return; } final int index = indexOfComponent(room); if (index != -1) { SparkTab tab = getTabAt(ind...
public void useTabDefault(final ChatRoom room) { // Check if room is stale boolean containsRoom = getStaleChatRooms().contains(room); if (containsRoom) { return; } final int index = indexOfComponent(room); if (index != -1) { SparkTab tab = getTabAt(ind...
3,236,691
private void buildPresentation(String imageName) { control = new RenderingAgtCtrl(this); presentation = new RenderingAgtUIF(control, registry, imageName); control.setPresentation(presentation); }
private void buildPresentation(String imageName) { control = new RenderingAgtCtrl(this); presentation = new RenderingAgtUIF(control, registry, imageName); control.setPresentation(presentation); }
3,236,692
private void defaultInitChannelData() { for (int i = 0; i < pxsDims.sizeW; i++) channelData[i] = new ChannelData(i, i, i, "Wavelenth "+i, i, null); canUpdate = false; }
private void defaultInitChannelData() { for (int i = 0; i < pxsDims.sizeW; i++) channelData[i] = new ChannelData(i, i, i, "Wavelenth "+i, i, null); canUpdate = false; }
3,236,693
public void eventFired(AgentEvent e) { if (e instanceof ImageLoaded) handleImageLoaded((ImageLoaded) e); else if (e instanceof DisplayRendering) presentation.deIconify(); }
public void eventFired(AgentEvent e) { if (e instanceof ImageLoaded) handleImageLoaded((ImageLoaded) e); else if (e instanceof DisplayRendering) presentation.deIconify(); }
3,236,694
private void handleImageLoaded(ImageLoaded response) { LoadImage request = (LoadImage) response.getACT(); renderingControl = response.getProxy(); pxsDims = renderingControl.getPixelsDims(); pxsStats = renderingControl.getPixelsStats(); curImageID = request.getImageID(); curPixelsID = request.getPixelsID(); init...
private void handleImageLoaded(ImageLoaded response) { LoadImage request = (LoadImage) response.getACT(); renderingControl = response.getProxy(); pxsDims = renderingControl.getPixelsDims(); pxsStats = renderingControl.getPixelsStats(); curImageID = request.getImageID(); curPixelsID = request.getPixelsID(); init...
3,236,695
void initChannelData() { try { DataManagementService ds = registry.getDataManagementService(); channelData = ds.getChannelData(curImageID); if (channelData == null) defaultInitChannelData(); else { if (channelData.length != pxsDims.sizeW) defaultInitChannelData(); ...
void initChannelData() { try { DataManagementService ds = registry.getDataManagementService(); channelData = ds.getChannelData(curImageID); if (channelData == null) defaultInitChannelData(); else { if (channelData.length != pxsDims.sizeW) defaultInitChannelData(); ...
3,236,696
void initChannelData() { try { DataManagementService ds = registry.getDataManagementService(); channelData = ds.getChannelData(curImageID); if (channelData == null) defaultInitChannelData(); else { if (channelData.length != pxsDims.sizeW) defaultInitChannelData(); ...
void initChannelData() { try { DataManagementService ds = registry.getDataManagementService(); channelData = ds.getChannelData(curImageID); if (channelData == null) defaultInitChannelData(); else { if (channelData.length != pxsDims.sizeW) defaultInitChannelData(); ...
3,236,697
private void refreshImage() { RenderImage event = new RenderImage(curPixelsID); registry.getEventBus().post(event); }
private void refreshImage() { RenderImage event = new RenderImage(curPixelsID); registry.getEventBus().post(event); }
3,236,698
private void removePresentation() { control.disposeDialogs(); presentation.dispose(); control = null; presentation = null; }
private void removePresentation() { control.disposeDialogs(); presentation.dispose(); control = null; presentation = null; }
3,236,699
public void setContext(Registry ctx) { registry = ctx; canUpdate = true; EventBus bus = registry.getEventBus(); bus.register(this, ImageLoaded.class); bus.register(this, DisplayRendering.class); }
public void setContext(Registry ctx) { registry = ctx; canUpdate = true; EventBus bus = registry.getEventBus(); bus.register(this, ImageLoaded.class); bus.register(this, DisplayRendering.class); }
3,236,700
public void writeInstanceVars(IRubyObject obj, MarshalStream output) throws IOException { IRuby runtime = obj.getRuntime(); output.dumpInt(obj.getInstanceVariables().size()); for (Iterator iter = obj.instanceVariableNames(); iter.hasNext();) { String name = (String) iter.next();...
public void writeInstanceVars(IRubyObject obj, MarshalStream output) throws IOException { IRuby runtime = obj.getRuntime(); output.dumpInt(obj.getInstanceVariables().size()); for (Iterator iter = obj.instanceVariableNames(); iter.hasNext();) { String name = (String) iter.next();...
3,236,701
public void writeInstanceVars(IRubyObject obj, MarshalStream output) throws IOException { IRuby runtime = obj.getRuntime(); output.dumpInt(obj.getInstanceVariables().size()); for (Iterator iter = obj.instanceVariableNames(); iter.hasNext();) { String name = (String) iter.next();...
public void writeInstanceVars(IRubyObject obj, MarshalStream output) throws IOException { IRuby runtime = obj.getRuntime(); output.dumpInt(obj.getInstanceVariables().size()); for (Iterator iter = obj.instanceVariableNames(); iter.hasNext();) { String name = (String) iter.next();...
3,236,702
public void mouseDoubleClicked(GenericEventHandler handler, PInputEvent event) { try { if (ChainBuilderAgent.DEBUG) System.err.println("Saving chain snapshot..."); PBounds b = chainView.getFullBounds(); BufferedImage image = (BufferedImage) chainView.toImage((int) (b.getWidth()*2), (in...
public void mouseDoubleClicked(GenericEventHandler handler, PInputEvent event) { try { if (ChainBuilderAgent.DEBUG) System.err.println("Saving chain snapshot..."); PBounds b = chainView.getFullBounds(); BufferedImage image = (BufferedImage) chainView.toImage((int) (b.getWidth()*2), (in...
3,236,703
public void mouseDoubleClicked(GenericEventHandler handler, PInputEvent event) { try { if (ChainBuilderAgent.DEBUG) System.err.println("Saving chain snapshot..."); PBounds b = chainView.getFullBounds(); BufferedImage image = (BufferedImage) chainView.toImage((int) (b.getWidth()*2), (in...
public void mouseDoubleClicked(GenericEventHandler handler, PInputEvent event) { try { if (ChainBuilderAgent.DEBUG) System.err.println("Saving chain snapshot..."); PBounds b = chainView.getFullBounds(); BufferedImage image = (BufferedImage) chainView.toImage((int) (b.getWidth()*2), (in...
3,236,704
public void mouseDoubleClicked(GenericEventHandler handler, PInputEvent event) { try { if (ChainBuilderAgent.DEBUG) System.err.println("Saving chain snapshot..."); PBounds b = chainView.getFullBounds(); BufferedImage image = (BufferedImage) chainView.toImage((int) (b.getWidth()*2), (in...
public void mouseDoubleClicked(GenericEventHandler handler, PInputEvent event) { try { if (ChainBuilderAgent.DEBUG) System.err.println("Saving chain snapshot..."); PBounds b = chainView.getFullBounds(); BufferedImage image = (BufferedImage) chainView.toImage((int) (b.getWidth()*2), (in...
3,236,705