bugged
stringlengths
6
599k
fixed
stringlengths
6
40.8M
__index_level_0__
int64
0
3.24M
void setCurMax(int v) { curMax = "end: "+v; super.repaint(0, 0, leftBorder, HEIGHT); }
void setCurMax(int v) { curMax = "end: "+v; super.repaint(0, 0, leftBorder, HEIGHT); }
3,238,648
void setCurMin(int v) { curMin = "start: "+v; super.repaint(0, 0, leftBorder, HEIGHT); }
void setCurMin(int v) { curMin = "start: "+v; super.repaint(0, 0, leftBorder, HEIGHT); }
3,238,649
public void gt() { System.err.println ("build: >"); newData (); _currentData.setType (WikiDataTypes.GT); }
public void gt() { newData (); _currentData.setType (WikiDataTypes.GT); }
3,238,650
public void lt() { System.err.println ("build: <"); newData (); _currentData.setType (WikiDataTypes.LT); }
public void lt() { newData (); _currentData.setType (WikiDataTypes.LT); }
3,238,651
public RubyObject eval(Ruby ruby, RubyObject self) { // TMP_PROTECT; if (ruby.getRubyFrame().getLastClass() == null) { throw new RubyNameException("superclass method '" + ruby.getRubyFrame().getLastFunc().toName() + "' disabled"); } RubyBloc...
public RubyObject eval(Ruby ruby, RubyObject self) { // TMP_PROTECT; if (ruby.getRubyFrame().getLastClass() == null) { throw new RubyNameException("superclass method '" + ruby.getRubyFrame().getLastFunc().toName() + "' disabled"); } RubyBloc...
3,238,653
public RubyObject eval(Ruby ruby, RubyObject self) { // TMP_PROTECT; if (ruby.getRubyFrame().getLastClass() == null) { throw new RubyNameException("superclass method '" + ruby.getRubyFrame().getLastFunc().toName() + "' disabled"); } RubyBloc...
public RubyObject eval(Ruby ruby, RubyObject self) { // TMP_PROTECT; if (ruby.getRubyFrame().getLastClass() == null) { throw new RubyNameException("superclass method '" + ruby.getRubyFrame().getLastFunc().toName() + "' disabled"); } RubyBloc...
3,238,654
private void addTransport(final Transport transport) { final StatusBar statusBar = SparkManager.getWorkspace().getStatusBar(); final JPanel commandPanel = statusBar.getCommandPanel(); final boolean isRegistered = TransportManager.isRegistered(SparkManager.getConnection(), transport); fin...
private void addTransport(final Transport transport) { final StatusBar statusBar = SparkManager.getWorkspace().getStatusBar(); final JPanel commandPanel = statusBar.getCommandPanel(); final RolloverButton button = new RolloverButton(); if (!isRegistered) { button.setIco...
3,238,655
private void addTransport(final Transport transport) { final StatusBar statusBar = SparkManager.getWorkspace().getStatusBar(); final JPanel commandPanel = statusBar.getCommandPanel(); final boolean isRegistered = TransportManager.isRegistered(SparkManager.getConnection(), transport); fin...
private void addTransport(final Transport transport) { final StatusBar statusBar = SparkManager.getWorkspace().getStatusBar(); final JPanel commandPanel = statusBar.getCommandPanel(); final boolean isRegistered = TransportManager.isRegistered(SparkManager.getConnection(), transport); fin...
3,238,656
private void addTransport(final Transport transport) { final StatusBar statusBar = SparkManager.getWorkspace().getStatusBar(); final JPanel commandPanel = statusBar.getCommandPanel(); final boolean isRegistered = TransportManager.isRegistered(SparkManager.getConnection(), transport); fin...
private void addTransport(final Transport transport) { final StatusBar statusBar = SparkManager.getWorkspace().getStatusBar(); final JPanel commandPanel = statusBar.getCommandPanel(); final boolean isRegistered = TransportManager.isRegistered(SparkManager.getConnection(), transport); fin...
3,238,657
private void addTransport(final Transport transport) { final StatusBar statusBar = SparkManager.getWorkspace().getStatusBar(); final JPanel commandPanel = statusBar.getCommandPanel(); final boolean isRegistered = TransportManager.isRegistered(SparkManager.getConnection(), transport); fin...
private void addTransport(final Transport transport) { final StatusBar statusBar = SparkManager.getWorkspace().getStatusBar(); final JPanel commandPanel = statusBar.getCommandPanel(); final boolean isRegistered = TransportManager.isRegistered(SparkManager.getConnection(), transport); fin...
3,238,658
public void actionPerformed(ActionEvent e) { boolean reg = TransportManager.isRegistered(SparkManager.getConnection(), transport); if (!reg) { TransportRegistrationDialog regDialog = new TransportRegistrationDialog(transport.getServiceName()); ...
public void actionPerformed(ActionEvent e) { boolean reg = TransportUtils.isRegistered(SparkManager.getConnection(), transport); if (!reg) { TransportRegistrationDialog regDialog = new TransportRegistrationDialog(transport.getServiceName()); ...
3,238,660
public void actionPerformed(ActionEvent e) { boolean reg = TransportManager.isRegistered(SparkManager.getConnection(), transport); if (!reg) { TransportRegistrationDialog regDialog = new TransportRegistrationDialog(transport.getServiceName()); ...
public void actionPerformed(ActionEvent e) { boolean reg = TransportManager.isRegistered(SparkManager.getConnection(), transport); if (!reg) { TransportRegistrationDialog regDialog = new TransportRegistrationDialog(transport.getServiceName()); ...
3,238,661
public Icon getIcon(String jid) { Roster roster = SparkManager.getConnection().getRoster(); Presence presence = roster.getPresence(jid); String domain = StringUtils.parseServer(jid); Transport transport = TransportManager.getTransport(domain); if (transport != null) { i...
public Icon getIcon(String jid) { Roster roster = SparkManager.getConnection().getRoster(); Presence presence = roster.getPresence(jid); String domain = StringUtils.parseServer(jid); Transport transport = TransportUtils.getTransport(domain); if (transport != null) { if ...
3,238,662
public boolean handlePresence(ContactItem item, Presence presence) { if (presence != null) { String domain = StringUtils.parseServer(presence.getFrom()); Transport transport = TransportManager.getTransport(domain); if (transport != null) { if (presence.getType(...
public boolean handlePresence(ContactItem item, Presence presence) { if (presence != null) { String domain = StringUtils.parseServer(presence.getFrom()); Transport transport = TransportUtils.getTransport(domain); if (transport != null) { if (presence.getType() ...
3,238,663
public void initialize() { SwingWorker thread = new SwingWorker() { public Object construct() { try { populateTransports(SparkManager.getConnection()); for (final Transport transport : TransportManager.getTransports()) { a...
public void initialize() { SwingWorker thread = new SwingWorker() { public Object construct() { try { populateTransports(SparkManager.getConnection()); for (final Transport transport : TransportUtils.getTransports()) { add...
3,238,664
public void initialize() { SwingWorker thread = new SwingWorker() { public Object construct() { try { populateTransports(SparkManager.getConnection()); for (final Transport transport : TransportManager.getTransports()) { a...
public void initialize() { SwingWorker thread = new SwingWorker() { public Object construct() { try { populateTransports(SparkManager.getConnection()); for (final Transport transport : TransportManager.getTransports()) { a...
3,238,665
public Object construct() { try { populateTransports(SparkManager.getConnection()); for (final Transport transport : TransportManager.getTransports()) { addTransport(transport); } } c...
public Object construct() { try { populateTransports(SparkManager.getConnection()); for (final Transport transport : TransportUtils.getTransports()) { addTransport(transport); } } cat...
3,238,666
public void finished() { Boolean transportExists = (Boolean)get(); if (!transportExists) { return; } // Register presences. registerPresences(); }
public void finished() { Boolean transportExists = (Boolean)get(); if (!transportExists) { return; } // Register presences. registerPresenceListener(); }
3,238,667
private void populateTransports(XMPPConnection con) throws Exception { ServiceDiscoveryManager discoveryManager = ServiceDiscoveryManager.getInstanceFor(con); DiscoverItems discoItems = SparkManager.getSessionManager().getDiscoveredItems(); DiscoverItems.Item item; DiscoverInfo info; ...
private void populateTransports(XMPPConnection con) throws Exception { ServiceDiscoveryManager discoveryManager = ServiceDiscoveryManager.getInstanceFor(con); DiscoverItems discoItems = SparkManager.getSessionManager().getDiscoveredItems(); DiscoverItems.Item item; DiscoverInfo info; ...
3,238,668
private void populateTransports(XMPPConnection con) throws Exception { ServiceDiscoveryManager discoveryManager = ServiceDiscoveryManager.getInstanceFor(con); DiscoverItems discoItems = SparkManager.getSessionManager().getDiscoveredItems(); DiscoverItems.Item item; DiscoverInfo info; ...
private void populateTransports(XMPPConnection con) throws Exception { ServiceDiscoveryManager discoveryManager = ServiceDiscoveryManager.getInstanceFor(con); DiscoverItems discoItems = SparkManager.getSessionManager().getDiscoveredItems(); DiscoverItems.Item item; DiscoverInfo info; ...
3,238,669
private void populateTransports(XMPPConnection con) throws Exception { ServiceDiscoveryManager discoveryManager = ServiceDiscoveryManager.getInstanceFor(con); DiscoverItems discoItems = SparkManager.getSessionManager().getDiscoveredItems(); DiscoverItems.Item item; DiscoverInfo info; ...
private void populateTransports(XMPPConnection con) throws Exception { ServiceDiscoveryManager discoveryManager = ServiceDiscoveryManager.getInstanceFor(con); DiscoverItems discoItems = SparkManager.getSessionManager().getDiscoveredItems(); DiscoverItems.Item item; DiscoverInfo info; ...
3,238,670
private void populateTransports(XMPPConnection con) throws Exception { ServiceDiscoveryManager discoveryManager = ServiceDiscoveryManager.getInstanceFor(con); DiscoverItems discoItems = SparkManager.getSessionManager().getDiscoveredItems(); DiscoverItems.Item item; DiscoverInfo info; ...
private void populateTransports(XMPPConnection con) throws Exception { ServiceDiscoveryManager discoveryManager = ServiceDiscoveryManager.getInstanceFor(con); DiscoverItems discoItems = SparkManager.getSessionManager().getDiscoveredItems(); DiscoverItems.Item item; DiscoverInfo info; ...
3,238,671
public void processPacket(Packet packet) { Presence presence = (Presence)packet; Transport transport = TransportManager.getTransport(packet.getFrom()); if (transport != null) { boolean registered = presence != null && presence.getMode() != null...
public void processPacket(Packet packet) { Presence presence = (Presence)packet; Transport transport = TransportUtils.getTransport(packet.getFrom()); if (transport != null) { boolean registered = presence != null && presence.getMode() != null; ...
3,238,672
public void fromColor(Color c) { float min, max, delta; min = findMin(c.getRed(), c.getGreen(), c.getBlue()); max = findMax(c.getRed(), c.getGreen(), c.getBlue()); v = max; delta = max-min; if (max != 0.0f) s = delta/max; else ...
public void fromColor(Color c) { float min, max, delta; min = findMin(c.getRed(), c.getGreen(), c.getBlue()); max = findMax(c.getRed(), c.getGreen(), c.getBlue()); v = max; delta = max-min; if (max != 0.0f) s = delta/max; else ...
3,238,674
private void buildGUI(JComponent filterComponent) { JPanel contentPanel = new JPanel(); contentPanel.setBorder(BorderFactory.createCompoundBorder( BorderFactory.createEtchedBorder(), BorderFactory.createEmptyBorder(5, 5, 15, 10))); contentPanel.setLayout(new Box...
private void buildGUI(JComponent filterComponent) { JPanel contentPanel = new JPanel(); contentPanel.setBorder(BorderFactory.createCompoundBorder( BorderFactory.createEtchedBorder(), BorderFactory.createEmptyBorder(5, 5, 15, 10))); contentPanel.setLayout(new Box...
3,238,675
private JToolBar buildLeftToolBar() { JToolBar bar = new JToolBar(); bar.setRollover(true); bar.setBorder(null); bar.setFloatable(false); bar.add(selectAll); bar.add(Box.createRigidArea(H_SPACER_SIZE)); bar.add(clearAll); return bar; }
private JPanel buildLeftToolBar() { JToolBar bar = new JToolBar(); bar.setRollover(true); bar.setBorder(null); bar.setFloatable(false); bar.add(selectAll); bar.add(Box.createRigidArea(H_SPACER_SIZE)); bar.add(clearAll); return bar; }
3,238,676
private JToolBar buildLeftToolBar() { JToolBar bar = new JToolBar(); bar.setRollover(true); bar.setBorder(null); bar.setFloatable(false); bar.add(selectAll); bar.add(Box.createRigidArea(H_SPACER_SIZE)); bar.add(clearAll); return bar; }
private JToolBar buildLeftToolBar() { JToolBar bar = new JToolBar(); bar.setRollover(true); bar.setBorder(null); bar.setFloatable(false); bar.add(selectAll); bar.add(Box.createRigidArea(H_SPACER_SIZE)); bar.add(clearAll); return bar; }
3,238,677
private JToolBar buildLeftToolBar() { JToolBar bar = new JToolBar(); bar.setRollover(true); bar.setBorder(null); bar.setFloatable(false); bar.add(selectAll); bar.add(Box.createRigidArea(H_SPACER_SIZE)); bar.add(clearAll); return bar; }
private JToolBar buildLeftToolBar() { JToolBar bar = new JToolBar(); bar.setRollover(true); bar.setBorder(null); bar.add(selectAll); bar.add(Box.createRigidArea(H_SPACER_SIZE)); bar.add(clearAll); return bar; }
3,238,678
private JToolBar buildRightToolBar() { JToolBar bar = new JToolBar(); bar.setRollover(true); bar.setBorder(null); bar.setFloatable(false); bar.add(setButton); bar.add(Box.createRigidArea(H_SPACER_SIZE)); bar.add(cancelButton); return bar; }
private JPanel buildRightToolBar() { JToolBar bar = new JToolBar(); bar.setRollover(true); bar.setBorder(null); bar.setFloatable(false); bar.add(setButton); bar.add(Box.createRigidArea(H_SPACER_SIZE)); bar.add(cancelButton); return bar; }
3,238,679
private JToolBar buildRightToolBar() { JToolBar bar = new JToolBar(); bar.setRollover(true); bar.setBorder(null); bar.setFloatable(false); bar.add(setButton); bar.add(Box.createRigidArea(H_SPACER_SIZE)); bar.add(cancelButton); return bar; }
private JToolBar buildRightToolBar() { JToolBar bar = new JToolBar(); bar.setRollover(true); bar.setBorder(null); bar.setFloatable(false); bar.add(setButton); bar.add(Box.createRigidArea(H_SPACER_SIZE)); bar.add(cancelButton); return bar; }
3,238,680
private JToolBar buildRightToolBar() { JToolBar bar = new JToolBar(); bar.setRollover(true); bar.setBorder(null); bar.setFloatable(false); bar.add(setButton); bar.add(Box.createRigidArea(H_SPACER_SIZE)); bar.add(cancelButton); return bar; }
private JToolBar buildRightToolBar() { JToolBar bar = new JToolBar(); bar.setRollover(true); bar.setBorder(null); bar.add(setButton); bar.add(Box.createRigidArea(H_SPACER_SIZE)); bar.add(cancelButton); return bar; }
3,238,681
private String getContainerString() { switch (containerType) { case DATASET: return DATASET_MSG; case CATEGORY: return CATEGORY_MSG; } return ""; }
private String getContainerString() { switch (containerType) { case DATASET: return DATASET_MSG; case CATEGORY: return CATEGORY_MSG; } return ""; }
3,238,682
public void initialize() { ProviderManager.addExtensionProvider("phone-event", "http://jivesoftware.com/xmlns/phone", new PhoneEventPacketExtensionProvider()); ProviderManager.addIQProvider("phone-action", "http://jivesoftware.com/xmlns/phone", new PhoneActionIQProvider()); final XMPPConnection...
public void initialize() { ProviderManager.addExtensionProvider("phone-event", "http://jivesoftware.com/xmlns/phone", new PhoneEventPacketExtensionProvider()); ProviderManager.addIQProvider("phone-action", "http://jivesoftware.com/xmlns/phone", new PhoneActionIQProvider()); final XMPPConnection...
3,238,683
public Object construct() { try { phoneClient = new PhoneClient(con); // Add BaseListener phoneClient.addEventListener(new PhoneListener()); } catch (Exception e) { // Ignore because the ...
public Object construct() { try { phoneClient = new PhoneClient(con); // Add BaseListener phoneClient.addEventListener(new PhoneListener()); } catch (Exception e) { // Ignore because the ...
3,238,684
public Arity getArity() { if (getNode() instanceof AttrSetNode) { return Arity.singleArgument(); } else if (getNode() instanceof InstVarNode) { return Arity.noArguments(); } else { // FIXME: Not sure this case can happen. // Should do polymorphic call...
public Arity getArity() {if (getNode() instanceof AttrSetNode) {return Arity.singleArgument();} else if (getNode() instanceof InstVarNode) {return Arity.noArguments();} else {// FIXME: Not sure this case can happen.// Should do polymorphic call to node instead anyway.return Arity.optional();}}
3,238,686
public String getChildElementXML() { StringBuffer buf = new StringBuffer(); buf.append("<query xmlns=\"" + NAMESPACE + "\">"); buf.append("<prompt>derek.demoro@hotmail.com</prompt>"); buf.append("</query>"); return buf.toString(); }
public String getChildElementXML() { StringBuffer buf = new StringBuffer(); buf.append("<query xmlns=\"" + NAMESPACE + "\">"); buf.append("<prompt>" + username + "</prompt>"); buf.append("</query>"); return buf.toString(); }
3,238,688
public void removeMappingFor(Widget source) { srcToEvtToMethod.remove(source); }
public void removeMappingFor(Widget source) { srcToEvtToMethod.remove(source); }
3,238,690
public RubyHash each() { for (Iterator iter = entryIterator(); iter.hasNext();) { checkRehashing(); Map.Entry entry = (Map.Entry) iter.next(); getRuntime().getCurrentContext().yieldCurrentBlock(getRuntime().newArray((IRubyObject)entry.getKey(), (IRubyObject)entry.getValue()), null, nu...
public RubyHash each() { for (Iterator iter = entryIterator(); iter.hasNext();) { checkRehashing(); Map.Entry entry = (Map.Entry) iter.next(); getRuntime().getCurrentContext().yield(getRuntime().newArray((IRubyObject)entry.getKey(), (IRubyObject)entry.getValue())); } re...
3,238,691
public static void main(String args[]) { //@START int N = Integer.parseInt(args[0]); System.out.println(fib(N)); //@END }
public static void main(String args[]) { //@START int N = Integer.parseInt(args[0]); System.out.println(fib(N)); //@END }
3,238,692
private void buildToolBar() { setFloatable(false); setLayout(new FlowLayout(FlowLayout.LEFT, 0, 5)); putClientProperty("JToolBar.isRollover", new Boolean(true)); add(greyButton); add(rgbButton); add(hsbButton); add(separator); add(resetButton); //add(saveButton); }
privateadd(saveButton); voidadd(saveButton); buildToolBar() { setFloatable(false); setLayout(newadd(saveButton); FlowLayout(FlowLayout.LEFT,add(saveButton); 0,add(saveButton); 5)); putClientProperty("JToolBar.isRollover",add(saveButton); newadd(saveButton); Boolean(true)); add(greyButton); add(rgbButton); add(hs...
3,238,693
public RubyObject getConstant(RubyId id) { boolean mod_retry = false; RubyModule tmp = this; while (true) { while (tmp != null) { if (tmp.getInstanceVariables().get(id) != null) { return (RubyObject) tmp.getInstanceVariables().get(id); ...
public RubyObject getConstant(RubyId id) { boolean mod_retry = false; RubyModule tmp = this; while (true) { while (tmp != null) { if (tmp.getInstanceVariables().get(id) != null) { return (RubyObject) tmp.getInstanceVariables().get(id); ...
3,238,694
public IParser borrowParser() { synchronized (pool) { Iterator iter = pool.iterator(); while (iter.hasNext()) { IParser parser = (IParser) ((Reference) iter.next()).get(); if (parser != null) { return parser; } else { ...
public IParser borrowParser() { synchronized (pool) { Iterator iter = pool.iterator(); while (iter.hasNext()) { IParser parser = (IParser) ((Reference) iter.next()).get(); if (parser != null) { return parser; } else { ...
3,238,695
void setSelectedPane(int index) { tabPane.setSelectedIndex(index); }
void setSelectedPane(int index) { tabPane.setSelectedIndex(index); }
3,238,696
protected void checkManagedState( IObject obj ) { if ( obj.getId() == null) throw new ValidationException( "Id required on all detached instances."); // Throws an exception if does not exist IObject original = (IObject) ht.load( Utils...
protected void checkManagedState( IObject obj ) { if ( obj.getId() == null) throw new ValidationException( "Id required on all detached instances."); // Throws an exception if does not exist IObject original = (IObject) ht.load( Utils...
3,238,697
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,238,698
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,238,699
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,238,700
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,238,701
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,238,702
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,238,703
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,238,704
public void init() { int state; if (initialized) { return; } initialized = true; topFrame = getRubyFrame(); rubyIter = new Iter(); // rb_origenviron = environ; // Init_stack(0); // Init_heap(); getRuby().rubyScope.push();//...
public void init() { int state; if (initialized) { return; } initialized = true; topFrame = getRubyFrame(); rubyIter = new Iter(); // rb_origenviron = environ; // Init_stack(0); // Init_heap(); getRuby().rubyScope.push();//...
3,238,705
public boolean isBlockGiven() { return rubyFrame.getIter() != Iter.ITER_NOT; }
public boolean isBlockGiven() { return getRubyFrame().getIter() != Iter.ITER_NOT; }
3,238,706
public boolean isFBlockGiven() { return (rubyFrame.getPrev() != null) && (rubyFrame.getPrev().getIter() != Iter.ITER_NOT); }
public boolean isFBlockGiven() { return (getRubyFrame().getPrev() != null) && (getRubyFrame().getPrev().getIter() != Iter.ITER_NOT); }
3,238,707
public RubyObject setupModule(RubyModule module, NODE n) { NODE node = n; // String file = ruby_sourcefile; // int line = ruby_sourceline; // TMP_PROTECT; Frame frame = rubyFrame; frame.setTmp(rubyFrame); rubyFrame = frame; pushClass(); ...
public RubyObject setupModule(RubyModule module, NODE n) { NODE node = n; // String file = ruby_sourcefile; // int line = ruby_sourceline; // TMP_PROTECT; Frame frame = rubyFrame; frame.setTmp(rubyFrame); rubyFrame = frame; pushClass(); ...
3,238,708
public RubyObject setupModule(RubyModule module, NODE n) { NODE node = n; // String file = ruby_sourcefile; // int line = ruby_sourceline; // TMP_PROTECT; Frame frame = rubyFrame; frame.setTmp(rubyFrame); rubyFrame = frame; pushClass(); ...
public RubyObject setupModule(RubyModule module, NODE n) { NODE node = n; // String file = ruby_sourcefile; // int line = ruby_sourceline; // TMP_PROTECT; Frame frame = rubyFrame; frame.setTmp(rubyFrame); rubyFrame = frame; pushClass(); ...
3,238,709
public RubyObject yield0(RubyObject value, RubyObject self, RubyModule klass, boolean acheck) { RubyObject result = ruby.getNil(); if (!(isBlockGiven() || isFBlockGiven()) || (rubyBlock == null)) { throw new RuntimeException("yield called out of block"); } Ruby...
public RubyObject yield0(RubyObject value, RubyObject self, RubyModule klass, boolean acheck) { RubyObject result = ruby.getNil(); if (!(isBlockGiven() || isFBlockGiven()) || (rubyBlock == null)) { throw new RuntimeException("yield called out of block"); } Ruby...
3,238,710
public RubyObject yield0(RubyObject value, RubyObject self, RubyModule klass, boolean acheck) { RubyObject result = ruby.getNil(); if (!(isBlockGiven() || isFBlockGiven()) || (rubyBlock == null)) { throw new RuntimeException("yield called out of block"); } Ruby...
public RubyObject yield0(RubyObject value, RubyObject self, RubyModule klass, boolean acheck) { RubyObject result = ruby.getNil(); if (!(isBlockGiven() || isFBlockGiven()) || (rubyBlock == null)) { throw new RuntimeException("yield called out of block"); } Ruby...
3,238,711
public RubyObject yield0(RubyObject value, RubyObject self, RubyModule klass, boolean acheck) { RubyObject result = ruby.getNil(); if (!(isBlockGiven() || isFBlockGiven()) || (rubyBlock == null)) { throw new RuntimeException("yield called out of block"); } Ruby...
public RubyObject yield0(RubyObject value, RubyObject self, RubyModule klass, boolean acheck) { RubyObject result = ruby.getNil(); if (!(isBlockGiven() || isFBlockGiven()) || (rubyBlock == null)) { throw new RuntimeException("yield called out of block"); } Ruby...
3,238,712
public static RubyObject m_load_class(Ruby ruby, RubyModule rubyClass, RubyString className, RubyObject[] args) { String javaName = className.getString(); String rubyName = javaName.substring(javaName.lastIndexOf('.') + 1); if (args.length > 0) { rubyName = ((RubyString)args[0]).getS...
public static RubyObject m_load_class(Ruby ruby, RubyObject recv, RubyString className, RubyObject[] args) { String javaName = className.getString(); String rubyName = javaName.substring(javaName.lastIndexOf('.') + 1); if (args.length > 0) { rubyName = ((RubyString)args[0]).getString...
3,238,713
public static RubyObject m_load_class(Ruby ruby, RubyModule rubyClass, RubyString className, RubyObject[] args) { String javaName = className.getString(); String rubyName = javaName.substring(javaName.lastIndexOf('.') + 1); if (args.length > 0) { rubyName = ((RubyString)args[0]).getS...
public static RubyObject m_load_class(Ruby ruby, RubyModule rubyClass, RubyString className, RubyObject[] args) { String javaName = className.getString(); String rubyName = javaName.substring(javaName.lastIndexOf('.') + 1); if (args.length > 0) { rubyName = ((RubyString)args[0]).getS...
3,238,714
public static RubyObject m_load_class(Ruby ruby, RubyModule rubyClass, RubyString className, RubyObject[] args) { String javaName = className.getString(); String rubyName = javaName.substring(javaName.lastIndexOf('.') + 1); if (args.length > 0) { rubyName = ((RubyString)args[0]).getS...
public static RubyObject m_load_class(Ruby ruby, RubyModule rubyClass, RubyString className, RubyObject[] args) { String javaName = className.getString(); String rubyName = javaName.substring(javaName.lastIndexOf('.') + 1); if (args.length > 0) { rubyName = ((RubyString)args[0]).getS...
3,238,715
public static RubyObject m_load_class(Ruby ruby, RubyModule rubyClass, RubyString className, RubyObject[] args) { String javaName = className.getString(); String rubyName = javaName.substring(javaName.lastIndexOf('.') + 1); if (args.length > 0) { rubyName = ((RubyString)args[0]).getS...
public static RubyObject m_load_class(Ruby ruby, RubyModule rubyClass, RubyString className, RubyObject[] args) { String javaName = className.getString(); String rubyName = javaName.substring(javaName.lastIndexOf('.') + 1); if (args.length > 0) { rubyName = ((RubyString)args[0]).getS...
3,238,716
public static RubyObject m_load_class(Ruby ruby, RubyModule rubyClass, RubyString className, RubyObject[] args) { String javaName = className.getString(); String rubyName = javaName.substring(javaName.lastIndexOf('.') + 1); if (args.length > 0) { rubyName = ((RubyString)args[0]).getS...
public static RubyObject m_load_class(Ruby ruby, RubyModule rubyClass, RubyString className, RubyObject[] args) { String javaName = className.getString(); String rubyName = javaName.substring(javaName.lastIndexOf('.') + 1); if (args.length > 0) { rubyName = ((RubyString)args[0]).getS...
3,238,717
private static TreeImageDisplay transformCategoryGroup(CategoryGroupData data) { if (data == null) throw new IllegalArgumentException("Cannot be null"); TreeImageSet group = new TreeImageSet(data); Set categories = data.ge...
private static TreeImageDisplay transformCategoryGroup(CategoryGroupData data) { if (data == null) throw new IllegalArgumentException("Cannot be null"); TreeImageSet group = new TreeImageSet(data); Set categories = data.ge...
3,238,718
private static TreeImageDisplay transformProject(ProjectData data) { if (data == null) throw new IllegalArgumentException("Cannot be null"); TreeImageSet project = new TreeImageSet(data); Set datasets = data.getDatasets(); Iterator i = datasets.iterator(); while (i.h...
private static TreeImageDisplay transformProject(ProjectData data) { if (data == null) throw new IllegalArgumentException("Cannot be null"); TreeImageSet project = new TreeImageSet(data); Set datasets = data.getDatasets(); Iterator i = datasets.iterator(); while (i.h...
3,238,719
public int getChannelFamily(int w);
public int getChannelFamily(int w);
3,238,720
public int getModel();
public int getModel();
3,238,721
public void setModel(int model);
public void setModel(int model);
3,238,722
public void setQuantizationMap(int w, int family, double coefficient, boolean noiseReduction);
public void setQuantizationMap(int w, Family family, double coefficient, boolean noiseReduction);
3,238,723
private static void defineGlobal(IRuby runtime, String name, boolean value) { runtime.getGlobalVariables().defineReadonly(name, new ValueAccessor(value ? runtime.getTrue() : runtime.getNil())); }
private void defineGlobal(IRuby runtime, String name, boolean value) { runtime.getGlobalVariables().defineReadonly(name, new ValueAccessor(value ? runtime.getTrue() : runtime.getNil())); }
3,238,724
private static void defineGlobalVERBOSE(final IRuby runtime) { // $VERBOSE can be true, false, or nil. Any non-false-nil value will get stored as true runtime.getGlobalVariables().define("$VERBOSE", new IAccessor() { public IRubyObject getValue() { return runtime.getVerbos...
private void defineGlobalVERBOSE(final IRuby runtime) { // $VERBOSE can be true, false, or nil. Any non-false-nil value will get stored as true runtime.getGlobalVariables().define("$VERBOSE", new IAccessor() { public IRubyObject getValue() { return runtime.getVerbose(); ...
3,238,725
private static Node getParsedScript(IRuby runtime, Reader reader, String filename) { Node result = runtime.parse(reader, filename); if (commandline.isAssumePrinting()) { result = new ParserSupport().appendPrintToBlock(result); } if (commandline.isAssumeLoop()) { res...
private Node getParsedScript(IRuby runtime, Reader reader, String filename) { Node result = runtime.parse(reader, filename); if (commandline.isAssumePrinting()) { result = new ParserSupport().appendPrintToBlock(result); } if (commandline.isAssumeLoop()) { result = n...
3,238,726
private static void initializeRuntime(final IRuby runtime, String filename) { IRubyObject argumentArray = runtime.newArray(JavaUtil.convertJavaArrayToRuby(runtime, commandline.getScriptArguments())); runtime.setVerbose(runtime.newBoolean(commandline.isVerbose())); defineGlobalVERBOSE(runtime); ...
private void initializeRuntime(final IRuby runtime, String filename) { IRubyObject argumentArray = runtime.newArray(JavaUtil.convertJavaArrayToRuby(runtime, commandline.getScriptArguments())); runtime.setVerbose(runtime.newBoolean(commandline.isVerbose())); defineGlobalVERBOSE(runtime); ...
3,238,727
public static void main(String[] args) { commandline = new CommandlineParser(args, System.out); if (commandline.isShowVersion()) { showVersion(); } if (! commandline.shouldRunInterpreter()) { return; } long now = -1; if (commandline.isBenchmarki...
public static void main(String[] args) { commandline = new CommandlineParser(args, System.out); if (commandline.isShowVersion()) { showVersion(); } if (! commandline.shouldRunInterpreter()) { return; } long now = -1; if (commandline.isBenchmarki...
3,238,728
public static void printUsage(PrintStream printStream) { if (!hasPrintedUsage) { printStream.println("Usage: jruby [switches] [--] [rubyfile.rb] [arguments]"); printStream.println(" -e 'command' one line of script. Several -e's allowed. Omit [programfile]"); printStream.println(" -b ...
public void printUsage() { if (!hasPrintedUsage) { printStream.println("Usage: jruby [switches] [--] [rubyfile.rb] [arguments]"); printStream.println(" -e 'command' one line of script. Several -e's allowed. Omit [programfile]"); printStream.println(" -b benchmark mode, times the s...
3,238,729
public static void printUsage(PrintStream printStream) { if (!hasPrintedUsage) { printStream.println("Usage: jruby [switches] [--] [rubyfile.rb] [arguments]"); printStream.println(" -e 'command' one line of script. Several -e's allowed. Omit [programfile]"); printStream.println(" -b ...
public static void printUsage(PrintStream printStream) { if (!hasPrintedUsage) { printStream.println("Usage: jruby [switches] [--] [rubyfile.rb] [arguments]"); printStream.println(" -e 'command' one line of script. Several -e's allowed. Omit [programfile]"); printStream.println(" -b ...
3,238,730
private static int runInterpreter(Reader reader, String filename) { IRuby runtime = Ruby.getDefaultInstance(); try { runInterpreter(runtime, reader, filename); return 0; } catch (JumpException je) { if (je.getJumpType() == JumpException.JumpType.RaiseJump) { Rub...
private static int runInterpreter(Reader reader, String filename) { IRuby runtime = Ruby.getDefaultInstance(); try { runInterpreter(runtime, reader, filename); return 0; } catch (JumpException je) { if (je.getJumpType() == JumpException.JumpType.RaiseJump) { Rub...
3,238,731
private static void showVersion() { System.out.print("ruby "); System.out.print(Constants.RUBY_VERSION); System.out.print(" ("); System.out.print(Constants.COMPILE_DATE); System.out.print(") ["); System.out.print("java"); System.out.println("]"); }
private static void showVersion() { System.out.print("ruby "); System.out.print(Constants.RUBY_VERSION); System.out.print(" ("); System.out.print(Constants.COMPILE_DATE); System.out.print(") ["); System.out.print("java"); System.out.println("]"); }
3,238,732
public IRubyObject invoke(RubyString self, IRubyObject[] args) { return self.getRuntime().newFixnum(self.getValue().hashCode()); }
public IRubyObject invoke(RubyString self, IRubyObject[] args) { return self.getRuntime().newFixnum(self.toString().hashCode()); }
3,238,733
public IRubyObject invoke(RubyString self, IRubyObject[] args) { IRubyObject other = args[0]; if (other == self) { return self.getRuntime().getTrue(); } else if (!(other instanceof RubyString)) { return self.getRuntime().getNil(); ...
public IRubyObject invoke(RubyString self, IRubyObject[] args) { IRubyObject other = args[0]; if (other == self) { return self.getRuntime().getTrue(); } else if (!(other instanceof RubyString)) { return self.getRuntime().getFalse(); ...
3,238,734
public IRubyObject invoke(RubyString self, IRubyObject[] args) { IRubyObject other = args[0]; if (other == self) { return self.getRuntime().getTrue(); } else if (!(other instanceof RubyString)) { return self.getRuntime().getNil(); ...
public IRubyObject invoke(RubyString self, IRubyObject[] args) { IRubyObject other = args[0]; if (other == self) { return self.getRuntime().getTrue(); } else if (!(other instanceof RubyString)) { return self.getRuntime().getNil(); ...
3,238,735
public IRubyObject invoke(RubyString self, IRubyObject[] args) { IRubyObject other = args[0]; RubyString str = RubyString.stringValue(other); return (RubyString) self.newString(self.getValue() + str.getValue()).infectBy(str); }
public IRubyObject invoke(RubyString self, IRubyObject[] args) { IRubyObject other = args[0]; RubyString str = RubyString.stringValue(other); return (RubyString) self.newString(self.toString() + str.toString()).infectBy(str); }
3,238,736
public IRubyObject invoke(RubyString self, IRubyObject[] args) { IRubyObject arg = args[0]; if (arg instanceof RubyArray) { Object[] args2 = new Object[((RubyArray) arg).getLength()]; for (int i = 0; i < args2.length; i++) { args...
public IRubyObject invoke(RubyString self, IRubyObject[] args) { IRubyObject arg = args[0]; if (arg instanceof RubyArray) { Object[] args2 = new Object[((RubyArray) arg).getLength()]; for (int i = 0; i < args2.length; i++) { args...
3,238,737
public IRubyObject invoke(RubyString self, IRubyObject[] args) { IRubyObject arg = args[0]; if (arg instanceof RubyArray) { Object[] args2 = new Object[((RubyArray) arg).getLength()]; for (int i = 0; i < args2.length; i++) { args...
public IRubyObject invoke(RubyString self, IRubyObject[] args) { IRubyObject arg = args[0]; if (arg instanceof RubyArray) { Object[] args2 = new Object[((RubyArray) arg).getLength()]; for (int i = 0; i < args2.length; i++) { args...
3,238,738
protected void initializeClass() { includeModule(getRuntime().getModule("Comparable")); includeModule(getRuntime().getModule("Enumerable")); addMethod("<=>", op_cmp); addMethod("==", equal); addMethod("===", veryEqual); addMethod("+", op_plus); ...
protected void initializeClass() { includeModule(getRuntime().getModule("Comparable")); includeModule(getRuntime().getModule("Enumerable")); addMethod("<=>", op_cmp); addMethod("==", equal); addMethod("===", veryEqual); addMethod("+", op_plus); ...
3,238,739
public IRubyObject method_missing(IRubyObject[] args) { if (args.length == 0) { throw getRuntime().newArgumentError("no id given"); } String name = args[0].asSymbol(); String description = callMethod("inspect").toString(); boolean noClass = description.charAt(0) == '#';...
public IRubyObject method_missing(IRubyObject[] args) { if (args.length == 0) { throw getRuntime().newArgumentError("no id given"); } String name = args[0].asSymbol(); String description = callMethod("inspect").toString(); boolean noClass = description.length() > 0 && d...
3,238,740
public boolean onPreUpdate(PreUpdateEvent event) { Object entity = event.getEntity(); if ( entity instanceof IObject ) { int[] dirty = event.getPersister().findDirty( event.getState(), event.getOldState(), event.getEntity(), event.getSource()); if (dirty == null||d...
public boolean onPreUpdate(PreUpdateEvent event) { Object entity = event.getEntity(); if ( entity instanceof IObject ) { int[] dirty = event.getPersister().findDirty( event.getState(), event.getOldState(), event.getEntity(), event.getSource()); if (dirty == null||d...
3,238,742
public int getArity() { return 0; }
public int getArity() { return -1; }
3,238,743
public int getArity() { return 0; }
public int getArity() { return -1; }
3,238,744
public int getArity() { return 0; }
public int getArity() { return -1; }
3,238,745
public RubyClass newSubClass(String name, RubyModule parent) { return new BignumMetaClass(name, this, parent); }
public RubyClass newSubClass(String name, RubyModule parent) { return new BignumMetaClass(name, this, parent); }
3,238,746
public static RubyObject stderr(Ruby ruby, RubyClass rubyClass) { RubyIO io = new RubyIO(ruby, rubyClass); io.outStream = ruby.getRuntime().getErrorStream(); io.writeable = true; return io; }
public static RubyObject stderr(Ruby ruby, RubyClass rubyClass, OutputStream errStream) { RubyIO io = new RubyIO(ruby, rubyClass); io.outStream = ruby.getRuntime().getErrorStream(); io.writeable = true; return io; }
3,238,747
public static RubyObject stderr(Ruby ruby, RubyClass rubyClass) { RubyIO io = new RubyIO(ruby, rubyClass); io.outStream = ruby.getRuntime().getErrorStream(); io.writeable = true; return io; }
public static RubyObject stderr(Ruby ruby, RubyClass rubyClass) { RubyIO io = new RubyIO(ruby, rubyClass); io.outStream = errStream; io.writeable = true; return io; }
3,238,748
public static RubyObject stdin(Ruby ruby, RubyClass rubyClass) { RubyIO io = new RubyIO(ruby, rubyClass); io.inStream = new RubyInputStream(ruby.getRuntime().getInputStream()); io.readable = true; return io; }
public static RubyObject stdin(Ruby ruby, RubyClass rubyClass, InputStream inStream) { RubyIO io = new RubyIO(ruby, rubyClass); io.inStream = new RubyInputStream(ruby.getRuntime().getInputStream()); io.readable = true; return io; }
3,238,749
public static RubyObject stdin(Ruby ruby, RubyClass rubyClass) { RubyIO io = new RubyIO(ruby, rubyClass); io.inStream = new RubyInputStream(ruby.getRuntime().getInputStream()); io.readable = true; return io; }
public static RubyObject stdin(Ruby ruby, RubyClass rubyClass) { RubyIO io = new RubyIO(ruby, rubyClass); io.inStream = new RubyInputStream(inStream); io.readable = true; return io; }
3,238,750
public static RubyObject stdout(Ruby ruby, RubyClass rubyClass) { RubyIO io = new RubyIO(ruby, rubyClass); io.outStream = ruby.getRuntime().getOutputStream(); io.writeable = true; return io; }
public static RubyObject stdout(Ruby ruby, RubyClass rubyClass, OutputStream outStream) { RubyIO io = new RubyIO(ruby, rubyClass); io.outStream = ruby.getRuntime().getOutputStream(); io.writeable = true; return io; }
3,238,751
public static RubyObject stdout(Ruby ruby, RubyClass rubyClass) { RubyIO io = new RubyIO(ruby, rubyClass); io.outStream = ruby.getRuntime().getOutputStream(); io.writeable = true; return io; }
public static RubyObject stdout(Ruby ruby, RubyClass rubyClass) { RubyIO io = new RubyIO(ruby, rubyClass); io.outStream = outStream; io.writeable = true; return io; }
3,238,752
private int generateID(DBRow row) throws Exception { Integer id = (Integer) idGenerationMap.get(row.getClass()); if (id == null) { DBManager dbm = DBManager.getInstance(); PreparedStatement ps = dbm.getPreparedStatement(MAX_ID_QUERY); //ps.setString(1, row.getIDColumnName()); //ps.setString(2, row.getTableN...
private int generateID(DBRow row) throws Exception { Integer id = (Integer) idGenerationMap.get(row.getClass()); if (id == null) { DBManager dbm = DBManager.getInstance(); PreparedStatement ps = dbm.getPreparedStatement(MAX_ID_QUERY); //ps.setString(1, row.getIDColumnName()); //ps.setString(2, row.getTableN...
3,238,755
public static Criteria buildBasicCriteria(String g, int id) { Criteria c = new Criteria(); fillBasic(c, g, id); return c; }
public static Criteria buildBasicCriteria(String g, int id) { Criteria c = new Criteria(); c.addWantedField("Valid"); String column = (String) STSMapper.granularities.get(g); if (column != null) c.addFilter(column, new Integer(id)); return c; }
3,238,756