bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
private IRubyObject unmarshalObjectDirectly(int type, IRubyObject proc) throws IOException { IRubyObject rubyObj = null; switch (type) { case '0' : rubyObj = runtime.getNil(); break; case 'T' : rubyObj = runtime.getTrue(); ... | private IRubyObject unmarshalObjectDirectly(int type, IRubyObject proc) throws IOException { IRubyObject rubyObj = null; switch (type) { case '0' : rubyObj = runtime.getNil(); break; case 'T' : rubyObj = runtime.getTrue(); ... | 3,227,452 |
public String[] countFields(){ return (String[]) options.get(FIELDS); } | public String[] countFields(){ return (String[]) options.get(FIELDS); } | 3,227,453 |
public PojoOptions(Map map){ if (null != map){ copy(map); } else { copy(new PojoOptions().map()); } } | public PojoOptions(Map map){ if (null != map){ copy(map); } else { copy(new PojoOptions().map()); } } | 3,227,455 |
public static Set invertPDI(Set imagesAll) { Set cleared = new HashSet(); Set hierarchies = new HashSet(); Iterator i = imagesAll.iterator(); while (i.hasNext()) { Image img = (Image) i.next(); Iterator d = img.iterateOverDatasetLinks(); if ( ! d.hasNext() ) { ... | public static Set invertPDI(Set imagesAll) { Set cleared = new HashSet(); Set hierarchies = new HashSet(); Iterator i = imagesAll.iterator(); while (i.hasNext()) { Image img = (Image) i.next(); Iterator d = img.linkedDatasetIterator(); if ( ! d.hasNext() ) { ... | 3,227,456 |
public static Set invertPDI(Set imagesAll) { Set cleared = new HashSet(); Set hierarchies = new HashSet(); Iterator i = imagesAll.iterator(); while (i.hasNext()) { Image img = (Image) i.next(); Iterator d = img.iterateOverDatasetLinks(); if ( ! d.hasNext() ) { ... | public static Set invertPDI(Set imagesAll) { Set cleared = new HashSet(); Set hierarchies = new HashSet(); Iterator i = imagesAll.iterator(); while (i.hasNext()) { Image img = (Image) i.next(); Iterator d = img.iterateOverDatasetLinks(); if ( ! d.hasNext() ) { ... | 3,227,457 |
public static Set invertCGCI(Set imagesAll) { Set cleared = new HashSet(); Set hierarchies = new HashSet(); Iterator i = imagesAll.iterator(); while (i.hasNext()) { Image img = (Image) i.next(); Iterator c = img.iterateOverCategoryLinks(); if ( !... | public static Set invertCGCI(Set imagesAll) { Set cleared = new HashSet(); Set hierarchies = new HashSet(); Iterator i = imagesAll.iterator(); while (i.hasNext()) { Image img = (Image) i.next(); Iterator c = img.linkedCategoryIterator(); if ( ! c... | 3,227,458 |
public static Set invertCGCI(Set imagesAll) { Set cleared = new HashSet(); Set hierarchies = new HashSet(); Iterator i = imagesAll.iterator(); while (i.hasNext()) { Image img = (Image) i.next(); Iterator c = img.iterateOverCategoryLinks(); if ( !... | public static Set invertCGCI(Set imagesAll) { Set cleared = new HashSet(); Set hierarchies = new HashSet(); Iterator i = imagesAll.iterator(); while (i.hasNext()) { Image img = (Image) i.next(); Iterator c = img.iterateOverCategoryLinks(); if ( !... | 3,227,459 |
public void testHTMLReportValidity() throws Exception { // Serialize the current coverage data to disk ProjectData.saveGlobalProjectData(); String dataFileName = CoverageDataFileHandler.getDefaultDataFile().getAbsolutePath(); // Then we need to generate the HTML report String[] args = new String[] { "--format", "... | public void testHTMLReportValidity() throws Exception { // Serialize the current coverage data to disk ProjectData.saveGlobalProjectData(); String dataFileName = CoverageDataFileHandler.getDefaultDataFile().getAbsolutePath(); // Then we need to generate the HTML report String[] args = new String[] { "--format", "... | 3,227,460 |
public static void main(String[] args) throws Exception { long startTime = System.currentTimeMillis(); LongOpt[] longOpts = new LongOpt[4]; longOpts[0] = new LongOpt("format", LongOpt.REQUIRED_ARGUMENT, null, 'f'); longOpts[1] = new LongOpt("instrumentation", LongOpt.REQUIRED_ARGUMENT, null, 'i'); longOpts[... | public static void main(String[] args) throws Exception { long startTime = System.currentTimeMillis(); LongOpt[] longOpts = new LongOpt[4]; longOpts[0] = new LongOpt("format", LongOpt.REQUIRED_ARGUMENT, null, 'f'); longOpts[1] = new LongOpt("instrumentation", LongOpt.REQUIRED_ARGUMENT, null, 'i'); longOpts[... | 3,227,461 |
private void closeSession() throws Exception { if (isSessionBoundToThread()) { debug("Session bound to thread. Closing."); Session session = sessionBoundToThread(); try { session.connection().commit(); sessionBoundToThread().... | private void closeSession() throws Exception { Session session = nullOrSessionBoundToThread(); if (session != null) { debug("Session bound to thread. Closing."); Session session = sessionBoundToThread(); try { session.connection().commit(); ... | 3,227,462 |
private void closeSession() throws Exception { if (isSessionBoundToThread()) { debug("Session bound to thread. Closing."); Session session = sessionBoundToThread(); try { session.connection().commit(); sessionBoundToThread().... | private void closeSession() throws Exception { if (isSessionBoundToThread()) { debug("Session bound to thread. Closing."); try { session.connection().commit(); sessionBoundToThread().close(); } ... | 3,227,463 |
private void closeSession() throws Exception { if (isSessionBoundToThread()) { debug("Session bound to thread. Closing."); Session session = sessionBoundToThread(); try { session.connection().commit(); sessionBoundToThread().... | private void closeSession() throws Exception { if (isSessionBoundToThread()) { debug("Session bound to thread. Closing."); Session session = sessionBoundToThread(); try { session.connection().commit(); session.close(); ... | 3,227,464 |
private void disconnectSession() throws HibernateException { if (isSessionBoundToThread() && sessionBoundToThread().isConnected()) { debug("Session bound to thread. Disconnecting."); sessionBoundToThread().disconnect(); } else { debug("No session bound to thr... | private void disconnectSession() throws HibernateException { Session session = nullOrSessionBoundToThread(); if ( session != null && session.isConnected()) { debug("Session bound to thread. Disconnecting."); sessionBoundToThread().disconnect(); } else { debug... | 3,227,465 |
private void disconnectSession() throws HibernateException { if (isSessionBoundToThread() && sessionBoundToThread().isConnected()) { debug("Session bound to thread. Disconnecting."); sessionBoundToThread().disconnect(); } else { debug("No session bound to thr... | private void disconnectSession() throws HibernateException { if (isSessionBoundToThread() && sessionBoundToThread().isConnected()) { debug("Session bound to thread. Disconnecting."); session.disconnect(); } else { debug("No session bound to thread. Can't disc... | 3,227,466 |
private void disconnectSession() throws HibernateException { if (isSessionBoundToThread() && sessionBoundToThread().isConnected()) { debug("Session bound to thread. Disconnecting."); sessionBoundToThread().disconnect(); } else { debug("No session bound to thr... | privatevoiddisconnectSession()throwsHibernateException{if(isSessionBoundToThread()&&sessionBoundToThread().isConnected()){debug("Sessionboundtothread.Disconnecting.");sessionBoundToThread().disconnect();}else{debug("Nosessionboundtothread.Can'tdisconnect.");}} | 3,227,467 |
private Object doStateful(MethodInvocation invocation) throws Throwable { Object result = null; try { newOrRestoredSession(invocation); result = invocation.proceed(); return result; } catch (Throwable e) { e.printStackTrace(); ... | private Object doStateful(MethodInvocation invocation) throws Throwable { Object result = null; try { status = newOrRestoredSession(invocation); status.session.setFlushMode( FlushMode.MANUAL ); result = invocation.proceed(); return result; } cat... | 3,227,468 |
private Object doStateful(MethodInvocation invocation) throws Throwable { Object result = null; try { newOrRestoredSession(invocation); result = invocation.proceed(); return result; } catch (Throwable e) { e.printStackTrace(); ... | private Object doStateful(MethodInvocation invocation) throws Throwable { Object result = null; try { newOrRestoredSession(invocation); result = invocation.proceed(); return result; } catch (Throwable e) { e.printStackTrace(); ... | 3,227,469 |
private SessionStatus newOrRestoredSession(MethodInvocation invocation) throws HibernateException { SessionStatus status = sessions.get(invocation.getThis()); Session previousSession = ! isSessionBoundToThread() ? null : sessionBoundToThread(); // a session is currently running... | private SessionStatus newOrRestoredSession(MethodInvocation invocation) throws HibernateException { SessionStatus status = sessions.get(invocation.getThis()); Session previousSession = ! isSessionBoundToThread() ? null : sessionBoundToThread(); // a session is currently running... | 3,227,470 |
public void testPrintErrorShouldOnlyPrintErrorMessageWhenBacktraceIsNil() { ByteArrayOutputStream err = new ByteArrayOutputStream(); IRuby ruby = Ruby.newInstance(System.in, System.out, new PrintStream(err), false); RubyException exception = new RubyException(ruby, ruby.getClass("NameError"), "... | public void testPrintErrorShouldOnlyPrintErrorMessageWhenBacktraceIsNil() { ByteArrayOutputStream err = new ByteArrayOutputStream(); IRuby ruby = Ruby.newInstance(System.in, System.out, new PrintStream(err), false); RubyException exception = new RubyException(ruby, ruby.getClass("NameError"), "... | 3,227,471 |
public TestRubyBase(String name) { super(name); } | public TestRubyBase(String name) { super(name); } | 3,227,472 |
public RubyException(Ruby ruby, RubyClass rubyClass) { super(ruby, rubyClass); } | public RubyException(Ruby ruby, RubyClass rubyClass) { super(ruby, rubyClass); } | 3,227,473 |
protected String eval(String script) { pipeIn = new PipedInputStream(); in = new BufferedReader(new InputStreamReader(pipeIn)); String output = null; StringBuffer result = new StringBuffer(); try { out = new PrintStream(new PipedOutputStream(pipeIn), true); // ruby.getRuntime().setOutputStream(out)... | protected String eval(String script) { pipeIn = new PipedInputStream(); in = new BufferedReader(new InputStreamReader(pipeIn)); String output = null; StringBuffer result = new StringBuffer(); try { out = new PrintStream(new PipedOutputStream(pipeIn), true); // ruby.getRuntime().setOutputStream(out)... | 3,227,474 |
protected String eval(String script) { pipeIn = new PipedInputStream(); in = new BufferedReader(new InputStreamReader(pipeIn)); String output = null; StringBuffer result = new StringBuffer(); try { out = new PrintStream(new PipedOutputStream(pipeIn), true); // ruby.getRuntime().setOutputStream(out)... | protected String eval(String script) { pipeIn = new PipedInputStream(); in = new BufferedReader(new InputStreamReader(pipeIn)); String output = null; StringBuffer result = new StringBuffer(); try { out = new PrintStream(new PipedOutputStream(pipeIn), true); // ruby.getRuntime().setOutputStream(out)... | 3,227,475 |
public RubyClass(Ruby ruby, RubyModule rubyClass, RubyModule superClass) { super(ruby, rubyClass, superClass); } | public RubyClass(Ruby ruby, RubyModule rubyClass, RubyModule superClass) { super(ruby, rubyClass, superClass); } | 3,227,476 |
public void initialize() { if (Spark.isMac()) { roomListener = new DockRoomListener(); SparkManager.getChatManager().addChatRoomListener(roomListener); // Remove the About Menu Item from the help menu MainWindow mainWindow = SparkManager.getMainWindow(); ... | connectMenu.remove(item); connectMenu.remove(item); connectMenu.remove(item); connectMenu.remove(item); publicconnectMenu.remove(item); voidconnectMenu.remove(item); initialize()connectMenu.remove(item); {connectMenu.remove(item); connectMenu.remove(item); connectMenu.remove(item); connectMenu.remove(item); connectMenu... | 3,227,477 |
public void initialize() { if (Spark.isMac()) { roomListener = new DockRoomListener(); SparkManager.getChatManager().addChatRoomListener(roomListener); // Remove the About Menu Item from the help menu MainWindow mainWindow = SparkManager.getMainWindow(); ... | application.setEnabledPreferencesMenu(true); application.addPreferencesMenuItem(); application.setEnabledPreferencesMenu(true); application.addPreferencesMenuItem(); public void initialize() {application.setEnabledPreferencesMenu(true); application.addPreferencesMenuItem(); application.setEnabledPreferencesMenu(true); ... | 3,227,478 |
public static boolean contentsEqual(File f1, File f2, boolean ignoreWhitespace) throws IOException { if (f1 == f2) return true; if (f1 == null && f2 == null) return true; if (f1 == null || f2 == null) return false; if (f1.exists() != f2.exists() && f1.isFile() != f2.isFile() && f1.isDirectory() != f2.is... | public static boolean contentsEqual(File f1, File f2, boolean ignoreWhitespace) throws IOException { if (f1 == f2) return true; if (f1 == null && f2 == null) return true; if (f1 == null || f2 == null) return false; if (f1.exists() != f2.exists() && f1.isFile() != f2.isFile() && f1.isDirectory() != f2.is... | 3,227,479 |
public void actionPerformed(ActionEvent arg0) { saveButton.setEnabled(false); cancelButton.setEnabled(false); control.newCategory(group,nameField.getText(), descriptionArea.getText()); parent.buildGroupList(); setVisibl... | public void actionPerformed(ActionEvent arg0) { saveButton.setEnabled(false); cancelButton.setEnabled(false); control.newCategory(group,nameField.getText(), descriptionArea.getText()); parent.buildCategoryList(group); s... | 3,227,480 |
public void visitSClassNode(SClassNode iVisited) { IRubyObject receiver = eval(iVisited.getReceiverNode()); RubyClass singletonClass; if (receiver.isNil()) { singletonClass = runtime.getClasses().getNilClass(); } else if (receiver == runtime.getTrue()) { singletonCl... | public void visitSClassNode(SClassNode iVisited) { IRubyObject receiver = eval(iVisited.getReceiverNode()); RubyClass singletonClass; if (receiver.isNil()) { singletonClass = runtime.getClasses().getNilClass(); } else if (receiver == runtime.getTrue()) { singletonCl... | 3,227,481 |
public RubyArray newArray(IRubyObject object) { return RubyArray.newArray(this, object); } | public RubyArray newArray(IRubyObject object) { return RubyArray.newArray(this, object); } | 3,227,482 |
public void aliasMethod(RubyId newId, RubyId oldId) { testFrozen(); if (oldId == newId) { return; } if (this == getRuby().getClasses().getObjectClass()) { getRuby().secure(4); } NODE orig = searchMethod(oldId); RubyModule... | public void aliasMethod(RubyId newId, RubyId oldId) { testFrozen(); if (oldId == newId) { return; } if (this == getRuby().getClasses().getObjectClass()) { getRuby().secure(4); } NODE orig = searchMethod(oldId); RubyModule... | 3,227,483 |
public void aliasMethod(RubyId newId, RubyId oldId) { testFrozen(); if (oldId == newId) { return; } if (this == getRuby().getClasses().getObjectClass()) { getRuby().secure(4); } NODE orig = searchMethod(oldId); RubyModule... | public void aliasMethod(RubyId newId, RubyId oldId) { testFrozen(); if (oldId == newId) { return; } if (this == getRuby().getClasses().getObjectClass()) { getRuby().secure(4); } NODE orig = searchMethod(oldId); RubyModule... | 3,227,484 |
public static RubyBignum newBignum(Ruby ruby, BigInteger value) { return new RubyBignum(ruby, value); } | public static RubyBignum newBignum(Ruby ruby, BigInteger value) { return new RubyBignum(ruby, value); } | 3,227,485 |
public RubyObject call(RubyObject recv, RubyId id, RubyObject[] args, int scope) { // ... NODE body = getMethodBody(id, scope); return call0(recv, id, args, body, false); } | public RubyObject call(RubyObject recv, RubyId mid, RubyObject[] args, int scope) { MethodCacheEntry ent = MethodCacheEntry.getEntry(getRuby(), this, mid); RubyModule klass = this; RubyId id = mid; int noex; NODE body; if (ent != null) { if (ent.getMethod() == null) { throw new RuntimeException("Undefined"); } k... | 3,227,486 |
public RubyObject call(RubyObject recv, RubyId id, RubyObject[] args, int scope) { // ... NODE body = getMethodBody(id, scope); return call0(recv, id, args, body, false); } | public RubyObject call(RubyObject recv, RubyId id, RubyObject[] args, int scope) { // ... NODE body = getMethodBody(id, scope); return call0(recv, id, args, body, false); } | 3,227,487 |
public IRubyObject callSuper(IRubyObject[] args) { Frame frame = getCurrentFrame(); if (frame.getLastClass() == null) { throw runtime.newNameError("superclass method '" + frame.getLastFunc() + "' must be enabled by enableSuper()."); } setNoBlockIfNoBlock(); try { ... | public IRubyObject callSuper(IRubyObject[] args) { Frame frame = getCurrentFrame(); if (frame.getLastClass() == null) { String name = frame.getLastFunc(); throw runtime.newNameError("superclass method '" + name + "' must be enabled by enableSuper().", name); } setNoBlockIfNo... | 3,227,488 |
public void undef(RubyId id) { if (this == getRuby().getClasses().getObjectClass()) { getRuby().secure(4); } if (getRuby().getSecurityLevel() >= 4 && !isTaint()) { throw new SecurityException("Insecure: can't undef"); } testFrozen(); if (id == getRuby... | public void undef(RubyId id) { if (this == getRuby().getClasses().getObjectClass()) { getRuby().secure(4); } if (getRuby().getSecurityLevel() >= 4 && !isTaint()) { throw new SecurityException("Insecure: can't undef"); } testFrozen(); if (id == getRuby... | 3,227,489 |
private void POP_CREF() { ruby_cref = ruby_cref.nd_next(); } | private void POP_CREF() { ruby.setRubyCRef(ruby.getRubyCRef().nd_next()); } | 3,227,490 |
private void PUSH_CREF(Object c) { ruby_cref = new NODE(NODE_CREF, c, null, ruby_cref); } | private void PUSH_CREF(Object c) { ruby.setRubyCRef(new NODE(NODE.NODE_CREF, c, null, ruby.getRubyCRef())); } | 3,227,491 |
public RubyInterpreter(Ruby ruby) { this.ruby = ruby; ruby.setRubyClass(ruby.getClasses().getObjectClass()); ruby_cbase = null; rubyBlock = new RubyBlock(ruby); } | public RubyInterpreter(Ruby ruby) { this.ruby = ruby; ruby.setRubyClass(ruby.getClasses().getObjectClass()); ruby_cbase = null; rubyBlock = new RubyBlock(ruby); } | 3,227,492 |
public RubyObject eval(RubyObject self, NODE n) { NODE node = n; RubyObject cond = null; RubyObject[] args = null; RubyObject value = null; RubyObject result = null; RubyModule rubyClass = null; // int state; // RubyOriginalMethods rom = getRub... | public RubyObject eval(RubyObject self, NODE n) { NODE node = n; RubyObject cond = null; RubyObject[] args = null; RubyObject value = null; RubyObject result = null; RubyModule rubyClass = null; // int state; // RubyOriginalMethods rom = getRub... | 3,227,493 |
public RubyObject eval(RubyObject self, NODE n) { NODE node = n; RubyObject cond = null; RubyObject[] args = null; RubyObject value = null; RubyObject result = null; RubyModule rubyClass = null; // int state; // RubyOriginalMethods rom = getRub... | public RubyObject eval(RubyObject self, NODE n) { NODE node = n; RubyObject cond = null; RubyObject[] args = null; RubyObject value = null; RubyObject result = null; RubyModule rubyClass = null; // int state; // RubyOriginalMethods rom = getRub... | 3,227,494 |
public RubyObject eval(RubyObject self, NODE n) { NODE node = n; RubyObject cond = null; RubyObject[] args = null; RubyObject value = null; RubyObject result = null; RubyModule rubyClass = null; // int state; // RubyOriginalMethods rom = getRub... | public RubyObject eval(RubyObject self, NODE n) { NODE node = n; RubyObject cond = null; RubyObject[] args = null; RubyObject value = null; RubyObject result = null; RubyModule rubyClass = null; // int state; // RubyOriginalMethods rom = getRub... | 3,227,495 |
public RubyObject eval(RubyObject self, NODE n) { NODE node = n; RubyObject cond = null; RubyObject[] args = null; RubyObject value = null; RubyObject result = null; RubyModule rubyClass = null; // int state; // RubyOriginalMethods rom = getRub... | public RubyObject eval(RubyObject self, NODE n) { NODE node = n; RubyObject cond = null; RubyObject[] args = null; RubyObject value = null; RubyObject result = null; RubyModule rubyClass = null; // int state; // RubyOriginalMethods rom = getRub... | 3,227,496 |
public RubyObject eval(RubyObject self, NODE n) { NODE node = n; RubyObject cond = null; RubyObject[] args = null; RubyObject value = null; RubyObject result = null; RubyModule rubyClass = null; // int state; // RubyOriginalMethods rom = getRub... | public RubyObject eval(RubyObject self, NODE n) { NODE node = n; RubyObject cond = null; RubyObject[] args = null; RubyObject value = null; RubyObject result = null; RubyModule rubyClass = null; // int state; // RubyOriginalMethods rom = getRub... | 3,227,497 |
public RubyObject eval(RubyObject self, NODE n) { NODE node = n; RubyObject cond = null; RubyObject[] args = null; RubyObject value = null; RubyObject result = null; RubyModule rubyClass = null; // int state; // RubyOriginalMethods rom = getRub... | public RubyObject eval(RubyObject self, NODE n) { NODE node = n; RubyObject cond = null; RubyObject[] args = null; RubyObject value = null; RubyObject result = null; RubyModule rubyClass = null; // int state; // RubyOriginalMethods rom = getRub... | 3,227,498 |
public RubyObject eval(RubyObject self, NODE n) { NODE node = n; RubyObject cond = null; RubyObject[] args = null; RubyObject value = null; RubyObject result = null; RubyModule rubyClass = null; // int state; // RubyOriginalMethods rom = getRub... | public RubyObject eval(RubyObject self, NODE n) { NODE node = n; RubyObject cond = null; RubyObject[] args = null; RubyObject value = null; RubyObject result = null; RubyModule rubyClass = null; // int state; // RubyOriginalMethods rom = getRub... | 3,227,499 |
public RubyObject eval(RubyObject self, NODE n) { NODE node = n; RubyObject cond = null; RubyObject[] args = null; RubyObject value = null; RubyObject result = null; RubyModule rubyClass = null; // int state; // RubyOriginalMethods rom = getRub... | public RubyObject eval(RubyObject self, NODE n) { NODE node = n; RubyObject cond = null; RubyObject[] args = null; RubyObject value = null; RubyObject result = null; RubyModule rubyClass = null; // int state; // RubyOriginalMethods rom = getRub... | 3,227,500 |
public RubyObject eval(RubyObject self, NODE n) { NODE node = n; RubyObject cond = null; RubyObject[] args = null; RubyObject value = null; RubyObject result = null; RubyModule rubyClass = null; // int state; // RubyOriginalMethods rom = getRub... | public RubyObject eval(RubyObject self, NODE n) { NODE node = n; RubyObject cond = null; RubyObject[] args = null; RubyObject value = null; RubyObject result = null; RubyModule rubyClass = null; // int state; // RubyOriginalMethods rom = getRub... | 3,227,501 |
public RubyObject eval(RubyObject self, NODE n) { NODE node = n; RubyObject cond = null; RubyObject[] args = null; RubyObject value = null; RubyObject result = null; RubyModule rubyClass = null; // int state; // RubyOriginalMethods rom = getRub... | public RubyObject eval(RubyObject self, NODE n) { NODE node = n; RubyObject cond = null; RubyObject[] args = null; RubyObject value = null; RubyObject result = null; RubyModule rubyClass = null; // int state; // RubyOriginalMethods rom = getRub... | 3,227,502 |
public RubyObject eval(RubyObject self, NODE n) { NODE node = n; RubyObject cond = null; RubyObject[] args = null; RubyObject value = null; RubyObject result = null; RubyModule rubyClass = null; // int state; // RubyOriginalMethods rom = getRub... | public RubyObject eval(RubyObject self, NODE n) { NODE node = n; RubyObject cond = null; RubyObject[] args = null; RubyObject value = null; RubyObject result = null; RubyModule rubyClass = null; // int state; // RubyOriginalMethods rom = getRub... | 3,227,503 |
public RubyObject eval(RubyObject self, NODE n) { NODE node = n; RubyObject cond = null; RubyObject[] args = null; RubyObject value = null; RubyObject result = null; RubyModule rubyClass = null; // int state; // RubyOriginalMethods rom = getRub... | public RubyObject eval(RubyObject self, NODE n) { NODE node = n; RubyObject cond = null; RubyObject[] args = null; RubyObject value = null; RubyObject result = null; RubyModule rubyClass = null; // int state; // RubyOriginalMethods rom = getRub... | 3,227,504 |
public RubyObject eval(RubyObject self, NODE n) { NODE node = n; RubyObject cond = null; RubyObject[] args = null; RubyObject value = null; RubyObject result = null; RubyModule rubyClass = null; // int state; // RubyOriginalMethods rom = getRub... | public RubyObject eval(RubyObject self, NODE n) { NODE node = n; RubyObject cond = null; RubyObject[] args = null; RubyObject value = null; RubyObject result = null; RubyModule rubyClass = null; // int state; // RubyOriginalMethods rom = getRub... | 3,227,505 |
public RubyObject eval(RubyObject self, NODE n) { NODE node = n; RubyObject cond = null; RubyObject[] args = null; RubyObject value = null; RubyObject result = null; RubyModule rubyClass = null; // int state; // RubyOriginalMethods rom = getRub... | public RubyObject eval(RubyObject self, NODE n) { NODE node = n; RubyObject cond = null; RubyObject[] args = null; RubyObject value = null; RubyObject result = null; RubyModule rubyClass = null; // int state; // RubyOriginalMethods rom = getRub... | 3,227,506 |
public org.jruby.Ruby getRuby() { return ruby; } | public Ruby getRuby() { return ruby; } | 3,227,507 |
public org.jruby.interpreter.RubyBlock getRubyBlock() { return rubyBlock; } | public RubyBlock getRubyBlock() { return rubyBlock; } | 3,227,508 |
public boolean isBlockGiven() { return getRubyFrame().getIter() != Iter.ITER_NOT; } | public boolean isBlockGiven() { return ruby.getRubyFrame().getIter() != Iter.ITER_NOT; } | 3,227,509 |
public boolean isFBlockGiven() { return (getRubyFrame().getPrev() != null) && (getRubyFrame().getPrev().getIter() != Iter.ITER_NOT); } | public boolean isFBlockGiven() { return (ruby.getRubyFrame().getPrev() != null) && (ruby.getRubyFrame().getPrev().getIter() != Iter.ITER_NOT); } | 3,227,510 |
public void setRuby(org.jruby.Ruby ruby) { this.ruby = ruby; } | public void setRuby(Ruby ruby) { this.ruby = ruby; } | 3,227,511 |
public void setRubyBlock(org.jruby.interpreter.RubyBlock rubyBlock) { this.rubyBlock = rubyBlock; } | public void setRubyBlock(RubyBlock rubyBlock) { this.rubyBlock = rubyBlock; } | 3,227,512 |
public RubyObject setupModule(RubyModule module, NODE n) { NODE node = n; // String file = ruby_sourcefile; // int line = ruby_sourceline; // TMP_PROTECT; Frame frame = getRubyFrame(); frame.setTmp(getRubyFrame()); 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 = getRubyFrame(); frame.setTmp(getRubyFrame()); rubyFrame = frame; pushClass(... | 3,227,513 |
public RubyObject setupModule(RubyModule module, NODE n) { NODE node = n; // String file = ruby_sourcefile; // int line = ruby_sourceline; // TMP_PROTECT; Frame frame = getRubyFrame(); frame.setTmp(getRubyFrame()); 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 = getRubyFrame(); frame.setTmp(getRubyFrame()); rubyFrame = frame; pushClass(... | 3,227,514 |
public RubyObject setupModule(RubyModule module, NODE n) { NODE node = n; // String file = ruby_sourcefile; // int line = ruby_sourceline; // TMP_PROTECT; Frame frame = getRubyFrame(); frame.setTmp(getRubyFrame()); 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 = getRubyFrame(); frame.setTmp(getRubyFrame()); rubyFrame = frame; pushClass(... | 3,227,515 |
public RubyObject setupModule(RubyModule module, NODE n) { NODE node = n; // String file = ruby_sourcefile; // int line = ruby_sourceline; // TMP_PROTECT; Frame frame = getRubyFrame(); frame.setTmp(getRubyFrame()); 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 = getRubyFrame(); frame.setTmp(getRubyFrame()); rubyFrame = frame; pushClass(... | 3,227,516 |
public RubyObject setupModule(RubyModule module, NODE n) { NODE node = n; // String file = ruby_sourcefile; // int line = ruby_sourceline; // TMP_PROTECT; Frame frame = getRubyFrame(); frame.setTmp(getRubyFrame()); 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 = getRubyFrame(); frame.setTmp(getRubyFrame()); rubyFrame = frame; pushClass(... | 3,227,517 |
public RubyObject setupModule(RubyModule module, NODE n) { NODE node = n; // String file = ruby_sourcefile; // int line = ruby_sourceline; // TMP_PROTECT; Frame frame = getRubyFrame(); frame.setTmp(getRubyFrame()); 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 = getRubyFrame(); frame.setTmp(getRubyFrame()); rubyFrame = frame; pushClass(... | 3,227,518 |
public RubyObject setupModule(RubyModule module, NODE n) { NODE node = n; // String file = ruby_sourcefile; // int line = ruby_sourceline; // TMP_PROTECT; Frame frame = getRubyFrame(); frame.setTmp(getRubyFrame()); 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 = getRubyFrame(); frame.setTmp(getRubyFrame()); rubyFrame = frame; pushClass(... | 3,227,519 |
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,227,520 |
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,227,521 |
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,227,522 |
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,227,523 |
public NODE(int type, Object u1, Object u2, Object u3) { nd_set_type(type); this.u1 = u1; this.u2 = u2; this.u3 = u3; } | public NODE(int type, Object u1, Object u2, Object u3) { nd_set_type(type); this.u1 = u1; this.u2 = u2; this.u3 = u3; } | 3,227,524 |
public RubyArray push(RubyObject value) { modify(); list.add(value); infectObject(value); return this; } | public RubyArray push(RubyObject value) { modify(); list.add(value); infectObject(value); return this; } | 3,227,525 |
public RubyArray push(RubyObject value) { modify(); list.add(value); infectObject(value); return this; } | public RubyArray push(RubyObject value) { modify(); list.add(value); infectObject(value); return this; } | 3,227,526 |
public void push(NODE v, NODE b, RubyObject newSelf) { RubyBlock oldBlock = new RubyBlock(var, body, self, frame, scope, klass, iter, vmode, flags, dynamicVars, origThread, prev, ruby); var = v; body = b... | public void push(NODE v, NODE b, RubyObject newSelf) { RubyBlock oldBlock = new RubyBlock(var, body, self, frame, scope, klass, iter, vmode, flags, dynamicVars, origThread, prev, ruby); var = v; body = b... | 3,227,527 |
public RubyNameException(String msg) { super(msg); } | public RubyNameException(String msg) { super(msg); } | 3,227,528 |
public RubyTypeException(String msg) { super(msg); } | public RubyTypeException(String msg) { super(msg); } | 3,227,529 |
public RubyArgumentException(String msg) { super(msg); } | public RubyArgumentException(String msg) { super(msg); } | 3,227,530 |
public RubySecurityException(String msg) { super(msg); } | public RubySecurityException(String msg) { super(msg); } | 3,227,531 |
public RubyFrozenException(String msg) { super(msg); } | public RubyFrozenException(String msg) { super(msg); } | 3,227,532 |
public static void push(Ruby ruby) { // HACK +++ if (oldMap.get(ruby) != null) { throw new RuntimeException("JRuby - BUG: Need Queue for oldMap in RubyVarmap"); } // HACK --- oldMap.put(ruby, ruby.getInterpreter().getDynamicVars()); ruby.getInterpreter().... | public static void push(Ruby ruby) { // HACK +++ if (oldMap.get(ruby) != null) { throw new RuntimeException("JRuby - BUG: Need Queue for oldMap in RubyVarmap"); } // HACK --- oldMap.put(ruby, ruby.getInterpreter().getDynamicVars()); ruby.getInterpreter().... | 3,227,533 |
public static void push(Ruby ruby) { // HACK +++ if (oldMap.get(ruby) != null) { throw new RuntimeException("JRuby - BUG: Need Queue for oldMap in RubyVarmap"); } // HACK --- oldMap.put(ruby, ruby.getInterpreter().getDynamicVars()); ruby.getInterpreter().... | public static void push(Ruby ruby) { // HACK +++ if (oldMap.get(ruby) != null) { throw new RuntimeException("JRuby - BUG: Need Queue for oldMap in RubyVarmap"); } // HACK --- ((RubyStack)oldMap.get(ruby)).push(ruby.getInterpreter().getDynamicVars()); ruby... | 3,227,534 |
public static void pop(Ruby ruby) { ruby.getInterpreter().setDynamicVars((RubyVarmap)oldMap.get(ruby)); } | public static void pop(Ruby ruby) { ruby.getInterpreter().setDynamicVars((RubyVarmap)((RubyStack)oldMap.get(ruby)).pop()); } | 3,227,535 |
private void loadThumbail(int index) { PixelsData pxd = images[index].getDefaultPixels(); int sizeX = maxWidth, sizeY = maxHeight; double ratio = (double) pxd.getSizeX()/pxd.getSizeY(); if (ratio < 1) sizeX *= ratio; else if (ratio > 1 && ratio != 0) sizeY *= 1/ratio; O... | privatevoidloadThumbail(intindex){PixelsDatapxd=images[index].getDefaultPixels();intsizeX=maxWidth,sizeY=maxHeight;doubleratio=(double)pxd.getSizeX()/pxd.getSizeY();if(ratio<1)sizeX*=ratio;elseif(ratio>1&&ratio!=0)sizeY*=1/ratio;OmeroImageServicerds=context.getImageService();BufferedImagethumbPix=null;try{thumbPix=rds.... | 3,227,536 |
public UnmarshalStream(Ruby ruby, InputStream in) throws IOException { super(in); this.ruby = ruby; in.read(); // Major in.read(); // Minor } | public UnmarshalStream(Ruby ruby, InputStream in) throws IOException { super(in); this.runtime = ruby; in.read(); // Major in.read(); // Minor } | 3,227,537 |
private IRubyObject defaultObjectUnmarshal() throws IOException { RubySymbol className = (RubySymbol) unmarshalObject(); int variableCount = unmarshalInt(); RubyMap variables = new RubyHashMap(variableCount); for (int i = 0; i < variableCount; i++) { RubySymbol name = (RubySym... | private IRubyObject defaultObjectUnmarshal() throws IOException { RubySymbol className = (RubySymbol) unmarshalObject(); int variableCount = unmarshalInt(); RubyMap variables = new RubyHashMap(variableCount); for (int i = 0; i < variableCount; i++) { RubySymbol name = (RubySym... | 3,227,538 |
private IRubyObject defaultObjectUnmarshal() throws IOException { RubySymbol className = (RubySymbol) unmarshalObject(); int variableCount = unmarshalInt(); RubyMap variables = new RubyHashMap(variableCount); for (int i = 0; i < variableCount; i++) { RubySymbol name = (RubySym... | private IRubyObject defaultObjectUnmarshal() throws IOException { RubySymbol className = (RubySymbol) unmarshalObject(); int variableCount = unmarshalInt(); RubyMap variables = new RubyHashMap(variableCount); for (int i = 0; i < variableCount; i++) { RubySymbol name = (RubySym... | 3,227,539 |
public IRubyObject unmarshalObject() throws IOException { int type = readUnsignedByte(); switch (type) { case '0' : return ruby.getNil(); case 'T' : return RubyBoolean.newBoolean(ruby, true); case 'F' : return RubyBoolean.ne... | public IRubyObject unmarshalObject() throws IOException { int type = readUnsignedByte(); switch (type) { case '0' : return runtime.getNil(); case 'T' : return RubyBoolean.newBoolean(ruby, true); case 'F' : return RubyBoolean... | 3,227,540 |
public IRubyObject unmarshalObject() throws IOException { int type = readUnsignedByte(); switch (type) { case '0' : return ruby.getNil(); case 'T' : return RubyBoolean.newBoolean(ruby, true); case 'F' : return RubyBoolean.ne... | public IRubyObject unmarshalObject() throws IOException { int type = readUnsignedByte(); switch (type) { case '0' : return ruby.getNil(); case 'T' : return RubyBoolean.newBoolean(runtime, true); case 'F' : return RubyBoolean... | 3,227,541 |
public IRubyObject unmarshalObject() throws IOException { int type = readUnsignedByte(); switch (type) { case '0' : return ruby.getNil(); case 'T' : return RubyBoolean.newBoolean(ruby, true); case 'F' : return RubyBoolean.ne... | public IRubyObject unmarshalObject() throws IOException { int type = readUnsignedByte(); switch (type) { case '0' : return ruby.getNil(); case 'T' : return RubyBoolean.newBoolean(ruby, true); case 'F' : return RubyBoolean.ne... | 3,227,542 |
private IRubyObject userUnmarshal() throws IOException { String className = ((RubySymbol) unmarshalObject()).toId(); String marshaled = unmarshalString(); RubyModule classInstance = ruby.getRubyModule(className); return classInstance.callMethod( "_load", RubyString.... | private IRubyObject userUnmarshal() throws IOException { String className = ((RubySymbol) unmarshalObject()).toId(); String marshaled = unmarshalString(); RubyModule classInstance = runtime.getRubyModule(className); return classInstance.callMethod( "_load", RubyStri... | 3,227,543 |
private IRubyObject userUnmarshal() throws IOException { String className = ((RubySymbol) unmarshalObject()).toId(); String marshaled = unmarshalString(); RubyModule classInstance = ruby.getRubyModule(className); return classInstance.callMethod( "_load", RubyString.... | private IRubyObject userUnmarshal() throws IOException { String className = ((RubySymbol) unmarshalObject()).toId(); String marshaled = unmarshalString(); RubyModule classInstance = ruby.getRubyModule(className); return classInstance.callMethod( "_load", RubyString.... | 3,227,544 |
public RubyArray to_a() { return RubyArray.newArray(ruby, Arrays.asList(values)); } | public RubyArray to_a() { return RubyArray.newArray(ruby, values); } | 3,227,546 |
public RubyString gets(RubyObject[] args) { RubyObject sepVal = getRuby().getGlobalEntry("$/").get(); if (args.length > 0) { sepVal = args[0]; } String separator = sepVal.isNil() ? null : ((RubyString) sepVal).getValue(); if (separator == null) { } else if (separ... | public RubyString gets(RubyObject[] args) { RubyObject sepVal = getRuby().getGlobalEntry("$/").get(); if (args.length > 0) { sepVal = args[0]; } String separator = sepVal.isNil() ? null : ((RubyString) sepVal).getValue(); if (separator == null) { } else if (separ... | 3,227,548 |
public RubyString gets(RubyObject[] args) { RubyObject sepVal = getRuby().getGlobalEntry("$/").get(); if (args.length > 0) { sepVal = args[0]; } String separator = sepVal.isNil() ? null : ((RubyString) sepVal).getValue(); if (separator == null) { } else if (separ... | public RubyString gets(RubyObject[] args) { RubyObject sepVal = getRuby().getGlobalEntry("$/").get(); if (args.length > 0) { sepVal = args[0]; } String separator = sepVal.isNil() ? null : ((RubyString) sepVal).getValue(); if (separator == null) { } else if (separ... | 3,227,549 |
protected void setMode(String mode) { if (mode.length() == 0) { throw new RubyArgumentException(getRuby(), "illegal access mode"); } switch (mode.charAt(0)) { case 'r' : readable = true; break; case 'w' : case 'a' : ... | protected void setMode(String mode) { if (mode.length() == 0) { throw new RubyArgumentException(getRuby(), "illegal access mode"); } switch (mode.charAt(0)) { case 'r' : readable = true; break; case 'w' : w... | 3,227,550 |
public void top_local_init() { local_push(); List lLocalNames = ruby.getScope().getLocalNames(); int lcnt = lLocalNames != null ? lLocalNames.size() : 0; if (lcnt > 0) { lvtbl.tbl = new ArrayList(); //ruby.getRubyScope().setLocalNames(lvtbl.tbl); //it should be th... | public void top_local_init() { local_push(); List lLocalNames = ruby.getScope().getLocalNames(); int lcnt = lLocalNames != null ? lLocalNames.size() : 0; if (lcnt > 0) { //ruby.getRubyScope().setLocalNames(lvtbl.tbl); //it should be the other way around, don't un... | 3,227,551 |
public void top_local_init() { local_push(); List lLocalNames = ruby.getScope().getLocalNames(); int lcnt = lLocalNames != null ? lLocalNames.size() : 0; if (lcnt > 0) { lvtbl.tbl = new ArrayList(); //ruby.getRubyScope().setLocalNames(lvtbl.tbl); //it should be th... | public void top_local_init() { local_push(); List lLocalNames = ruby.getScope().getLocalNames(); int lcnt = lLocalNames != null ? lLocalNames.size() : 0; if (lcnt > 0) { lvtbl.tbl = new ArrayList(); //ruby.getRubyScope().setLocalNames(lvtbl.tbl); //it should be th... | 3,227,552 |
public static Browser createBrowser(Set topNodes) { if (topNodes == null) throw new NullPointerException("No top nodes."); //Create the View. Add each visualization tree to the root display. RootDisplay view = new RootDisplay(); Iterator i = topNodes.iterator(); while ... | publicstaticBrowsercreateBrowser(SettopNodes){if(topNodes==null)thrownewNullPointerException("Notopnodes.");//CreatetheView.Addeachvisualizationtreetotherootdisplay.RootDisplayview=newRootDisplay();Iteratori=topNodes.iterator();while(i.hasNext())view.addChildDisplay((ImageDisplay)i.next());//NowtheModel.Inanidealworldt... | 3,227,553 |
public void create() { super.create(); delegate = (LocalUpdate) applicationContext.getBean("updateService"); } | public void create() { super.create(); delegate = (LocalUpdate) applicationContext.getBean( IUpdate.class.getName()); } | 3,227,554 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.