bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
public IRubyObject newMethod(IRubyObject receiver, String name, boolean bound) { ICallable method = searchMethod(name); if (method.isUndefined()) { throw getRuntime().newNameError("undefined method `" + name + "' for class `" + this.getName() + "'"); } RubyMeth... | public IRubyObject newMethod(IRubyObject receiver, String name, boolean bound) { ICallable method = searchMethod(name); if (method.isUndefined()) { throw getRuntime().newNameError("undefined method `" + name + "' for class `" + this.getName() + "'"); } RubyMeth... | 3,237,253 |
public IRubyObject op_cmp(IRubyObject obj) { if (this == obj) { return getRuntime().newFixnum(0); } if (!(obj instanceof RubyModule)) { throw getRuntime().newTypeError( "<=> requires Class or Module (" + getMetaClass().getName() + " given)"); } R... | public IRubyObject op_cmp(IRubyObject obj) { if (this == obj) { return getRuntime().newFixnum(0); } if (!(obj instanceof RubyModule)) { throw getRuntime().newTypeError( "<=> requires Class or Module (" + getMetaClass().getName() + " given)"); } R... | 3,237,254 |
public IRubyObject op_cmp(IRubyObject obj) { if (this == obj) { return getRuntime().newFixnum(0); } if (!(obj instanceof RubyModule)) { throw getRuntime().newTypeError( "<=> requires Class or Module (" + getMetaClass().getName() + " given)"); } R... | public IRubyObject op_cmp(IRubyObject obj) { if (this == obj) { return getRuntime().newFixnum(0); } if (!(obj instanceof RubyModule)) { throw getRuntime().newTypeError( "<=> requires Class or Module (" + getMetaClass().getName() + " given)"); } R... | 3,237,255 |
public IRubyObject op_cmp(IRubyObject obj) { if (this == obj) { return getRuntime().newFixnum(0); } if (!(obj instanceof RubyModule)) { throw getRuntime().newTypeError( "<=> requires Class or Module (" + getMetaClass().getName() + " given)"); } R... | public IRubyObject op_cmp(IRubyObject obj) { if (this == obj) { return getRuntime().newFixnum(0); } if (!(obj instanceof RubyModule)) { throw getRuntime().newTypeError( "<=> requires Class or Module (" + getMetaClass().getName() + " given)"); } R... | 3,237,256 |
public IRubyObject op_le(IRubyObject obj) { if (!(obj instanceof RubyModule)) { throw getRuntime().newTypeError("compared with non class/module"); } if (isKindOfModule((RubyModule)obj)) { return getRuntime().getTrue(); } else if (((RubyModule)obj).isKindOfModule(thi... | public IRubyObject op_le(IRubyObject obj) { if (!(obj instanceof RubyModule)) { throw getRuntime().newTypeError("compared with non class/module"); } if (isKindOfModule((RubyModule)obj)) { return getRuntime().getTrue(); } else if (((RubyModule)obj).isKindOfModule(thi... | 3,237,257 |
public IRubyObject op_le(IRubyObject obj) { if (!(obj instanceof RubyModule)) { throw getRuntime().newTypeError("compared with non class/module"); } if (isKindOfModule((RubyModule)obj)) { return getRuntime().getTrue(); } else if (((RubyModule)obj).isKindOfModule(thi... | public IRubyObject op_le(IRubyObject obj) { if (!(obj instanceof RubyModule)) { throw getRuntime().newTypeError("compared with non class/module"); } if (isKindOfModule((RubyModule)obj)) { return getRuntime().getTrue(); } else if (((RubyModule)obj).isKindOfModule(thi... | 3,237,258 |
public IRubyObject op_lt(IRubyObject obj) { return obj == this ? getRuntime().getFalse() : op_le(obj); } | public IRubyObject op_lt(IRubyObject obj) { return obj == this ? getRuntime().getFalse() : op_le(obj); } | 3,237,259 |
public RubyArray public_instance_methods(IRubyObject[] args) { return instance_methods(args, Visibility.PUBLIC); } | public RubyArray public_instance_methods(IRubyObject[] args) { return instance_methods(args, Visibility.PUBLIC); } | 3,237,260 |
public void removeCachedMethod(String name) { getMethods().remove(name); } | public void removeCachedMethod(String name) { getMethods().remove(name); } | 3,237,261 |
public IRubyObject removeCvar(IRubyObject name) { // Wrong Parameter ? if (!IdUtil.isClassVariable(name.asSymbol())) { throw getRuntime().newNameError("wrong class variable name " + name.asSymbol()); } if (!isTaint() && getRuntime().getSafeLevel() >= 4) { throw getRuntime(... | public IRubyObject removeCvar(IRubyObject name) { // Wrong Parameter ? if (!IdUtil.isClassVariable(name.asSymbol())) { throw getRuntime().newNameError("wrong class variable name " + name.asSymbol(), name.asSymbol()); } if (!isTaint() && getRuntime().getSafeLevel() >= 4) { ... | 3,237,262 |
public IRubyObject removeCvar(IRubyObject name) { // Wrong Parameter ? if (!IdUtil.isClassVariable(name.asSymbol())) { throw getRuntime().newNameError("wrong class variable name " + name.asSymbol()); } if (!isTaint() && getRuntime().getSafeLevel() >= 4) { throw getRuntime(... | public IRubyObject removeCvar(IRubyObject name) { // Wrong Parameter ? if (!IdUtil.isClassVariable(name.asSymbol())) { throw getRuntime().newNameError("wrong class variable name " + name.asSymbol()); } if (!isTaint() && getRuntime().getSafeLevel() >= 4) { throw getRuntime(... | 3,237,263 |
public IRubyObject removeCvar(IRubyObject name) { // Wrong Parameter ? if (!IdUtil.isClassVariable(name.asSymbol())) { throw getRuntime().newNameError("wrong class variable name " + name.asSymbol()); } if (!isTaint() && getRuntime().getSafeLevel() >= 4) { throw getRuntime(... | public IRubyObject removeCvar(IRubyObject name) { // Wrong Parameter ? if (!IdUtil.isClassVariable(name.asSymbol())) { throw getRuntime().newNameError("wrong class variable name " + name.asSymbol()); } if (!isTaint() && getRuntime().getSafeLevel() >= 4) { throw getRuntime(... | 3,237,264 |
public void removeMethod(String name) { if (this == getRuntime().getObject()) { getRuntime().secure(4); } if (getRuntime().getSafeLevel() >= 4 && !isTaint()) { throw getRuntime().newSecurityError("Insecure: can't remove method"); } testFrozen("class/module");... | public void removeMethod(String name) { if (this == getRuntime().getObject()) { getRuntime().secure(4); } if (getRuntime().getSafeLevel() >= 4 && !isTaint()) { throw getRuntime().newSecurityError("Insecure: can't remove method"); } testFrozen("class/module");... | 3,237,265 |
public void removeMethod(String name) { if (this == getRuntime().getObject()) { getRuntime().secure(4); } if (getRuntime().getSafeLevel() >= 4 && !isTaint()) { throw getRuntime().newSecurityError("Insecure: can't remove method"); } testFrozen("class/module");... | public void removeMethod(String name) { if (this == getRuntime().getObject()) { getRuntime().secure(4); } if (getRuntime().getSafeLevel() >= 4 && !isTaint()) { throw getRuntime().newSecurityError("Insecure: can't remove method"); } testFrozen("class/module");... | 3,237,266 |
public IRubyObject remove_class_variable(IRubyObject name) { String id = name.asSymbol(); if (!IdUtil.isClassVariable(id)) { throw getRuntime().newNameError("wrong class variable name " + id); } if (!isTaint() && getRuntime().getSafeLevel() >= 4) { throw getRuntime(... | public IRubyObject remove_class_variable(IRubyObject name) { String id = name.asSymbol(); if (!IdUtil.isClassVariable(id)) { throw getRuntime().newNameError("wrong class variable name " + id, id); } if (!isTaint() && getRuntime().getSafeLevel() >= 4) { throw getRunt... | 3,237,267 |
public IRubyObject remove_class_variable(IRubyObject name) { String id = name.asSymbol(); if (!IdUtil.isClassVariable(id)) { throw getRuntime().newNameError("wrong class variable name " + id); } if (!isTaint() && getRuntime().getSafeLevel() >= 4) { throw getRuntime(... | public IRubyObject remove_class_variable(IRubyObject name) { String id = name.asSymbol(); if (!IdUtil.isClassVariable(id)) { throw getRuntime().newNameError("wrong class variable name " + id); } if (!isTaint() && getRuntime().getSafeLevel() >= 4) { throw getRuntime(... | 3,237,268 |
public IRubyObject remove_class_variable(IRubyObject name) { String id = name.asSymbol(); if (!IdUtil.isClassVariable(id)) { throw getRuntime().newNameError("wrong class variable name " + id); } if (!isTaint() && getRuntime().getSafeLevel() >= 4) { throw getRuntime(... | public IRubyObject remove_class_variable(IRubyObject name) { String id = name.asSymbol(); if (!IdUtil.isClassVariable(id)) { throw getRuntime().newNameError("wrong class variable name " + id); } if (!isTaint() && getRuntime().getSafeLevel() >= 4) { throw getRuntime(... | 3,237,269 |
public IRubyObject remove_class_variable(IRubyObject name) { String id = name.asSymbol(); if (!IdUtil.isClassVariable(id)) { throw getRuntime().newNameError("wrong class variable name " + id); } if (!isTaint() && getRuntime().getSafeLevel() >= 4) { throw getRuntime(... | public IRubyObject remove_class_variable(IRubyObject name) { String id = name.asSymbol(); if (!IdUtil.isClassVariable(id)) { throw getRuntime().newNameError("wrong class variable name " + id); } if (!isTaint() && getRuntime().getSafeLevel() >= 4) { throw getRuntime(... | 3,237,270 |
public IRubyObject remove_const(IRubyObject name) { String id = name.asSymbol(); if (!IdUtil.isConstant(id)) { throw getRuntime().newNameError("wrong constant name " + id); } if (!isTaint() && getRuntime().getSafeLevel() >= 4) { throw getRuntime().newSecurityError("... | public IRubyObject remove_const(IRubyObject name) { String id = name.asSymbol(); if (!IdUtil.isConstant(id)) { throw wrongConstantNameError(id); } if (!isTaint() && getRuntime().getSafeLevel() >= 4) { throw getRuntime().newSecurityError("Insecure: can't remove class... | 3,237,271 |
public IRubyObject remove_const(IRubyObject name) { String id = name.asSymbol(); if (!IdUtil.isConstant(id)) { throw getRuntime().newNameError("wrong constant name " + id); } if (!isTaint() && getRuntime().getSafeLevel() >= 4) { throw getRuntime().newSecurityError("... | public IRubyObject remove_const(IRubyObject name) { String id = name.asSymbol(); if (!IdUtil.isConstant(id)) { throw getRuntime().newNameError("wrong constant name " + id); } if (!isTaint() && getRuntime().getSafeLevel() >= 4) { throw getRuntime().newSecurityError("... | 3,237,272 |
public IRubyObject remove_const(IRubyObject name) { String id = name.asSymbol(); if (!IdUtil.isConstant(id)) { throw getRuntime().newNameError("wrong constant name " + id); } if (!isTaint() && getRuntime().getSafeLevel() >= 4) { throw getRuntime().newSecurityError("... | public IRubyObject remove_const(IRubyObject name) { String id = name.asSymbol(); if (!IdUtil.isConstant(id)) { throw getRuntime().newNameError("wrong constant name " + id); } if (!isTaint() && getRuntime().getSafeLevel() >= 4) { throw getRuntime().newSecurityError("... | 3,237,273 |
public ICallable searchMethod(String name) { for (RubyModule searchModule = this; searchModule != null; searchModule = searchModule.getSuperClass()) { // included modules use delegates methods for we need to synchronize on result of getMethods synchronized(searchModule.getMethods()) { ... | public ICallable searchMethod(String name) { for (RubyModule searchModule = this; searchModule != null; searchModule = searchModule.getSuperClass()) { // included modules use delegates methods for we need to synchronize on result of getMethods synchronized(searchModule.getMethods()) { ... | 3,237,274 |
public IRubyObject setClassVar(String name, IRubyObject value) { RubyModule module = getModuleWithInstanceVar(name); if (module == null) { module = this; } return module.setInstanceVariable(name, value, CVAR_TAINT_ERROR, CVAR_FREEZE_ERROR); } | public IRubyObject setClassVar(String name, IRubyObject value) { RubyModule module = getModuleWithInstanceVar(name); if (module == null) { module = this; } return module.setInstanceVariable(name, value, CVAR_TAINT_ERROR, CVAR_FREEZE_ERROR); } | 3,237,275 |
public IRubyObject setConstant(String name, IRubyObject value) { IRubyObject result = setInstanceVariable(name, value, "Insecure: can't set constant", "class/module"); // if adding a module under a constant name, set that module's basename to the constant name if (value ... | public IRubyObject setConstant(String name, IRubyObject value) { IRubyObject result = setInstanceVariable(name, value, "Insecure: can't set constant", "class/module"); // if adding a module under a constant name, set that module's basename to the constant name if (value ... | 3,237,276 |
public IRubyObject setConstant(String name, IRubyObject value) { IRubyObject result = setInstanceVariable(name, value, "Insecure: can't set constant", "class/module"); // if adding a module under a constant name, set that module's basename to the constant name if (value ... | public IRubyObject setConstant(String name, IRubyObject value) { IRubyObject result = setInstanceVariable(name, value, "Insecure: can't set constant", "class/module"); // if adding a module under a constant name, set that module's basename to the constant name if (value ... | 3,237,277 |
public void undef(String name) { IRuby runtime = getRuntime(); if (this == runtime.getObject()) { runtime.secure(4); } if (runtime.getSafeLevel() >= 4 && !isTaint()) { throw new SecurityException("Insecure: can't undef"); } testFrozen("module"); ... | public void undef(String name) { IRuby runtime = getRuntime(); if (this == runtime.getObject()) { runtime.secure(4); } if (runtime.getSafeLevel() >= 4 && !isTaint()) { throw new SecurityException("Insecure: can't undef"); } testFrozen("module"); ... | 3,237,278 |
public static RubyModule unmarshalFrom(UnmarshalStream input) throws java.io.IOException { String name = input.unmarshalString(); IRuby runtime = input.getRuntime(); RubyModule result = runtime.getClassFromPath(name); if (result == null) { throw runtime.newNameError("uninitial... | public static RubyModule unmarshalFrom(UnmarshalStream input) throws java.io.IOException { String name = input.unmarshalString(); IRuby runtime = input.getRuntime(); RubyModule result = runtime.getClassFromPath(name); if (result == null) { throw runtime.newNameError("uninitial... | 3,237,279 |
public static void createObjectClass(RubyModule objectClass) { objectClass.defineMethod("==", CallbackFactory.getMethod(RubyObject.class, "equal", RubyObject.class)); objectClass.defineMethod("=~", CallbackFactory.getFalseMethod()); objectClass.defineMethod("clone", CallbackFactory.getMethod(Ru... | public static void createObjectClass(RubyModule objectClass) { objectClass.defineMethod("==", CallbackFactory.getMethod(RubyObject.class, "equal", RubyObject.class)); objectClass.defineMethod("=~", CallbackFactory.getFalseMethod(1)); objectClass.defineMethod("clone", CallbackFactory.getMethod(R... | 3,237,280 |
public static void createObjectClass(RubyModule objectClass) { objectClass.defineMethod("==", CallbackFactory.getMethod(RubyObject.class, "equal", RubyObject.class)); objectClass.defineMethod("=~", CallbackFactory.getFalseMethod()); objectClass.defineMethod("clone", CallbackFactory.getMethod(Ru... | public static void createObjectClass(RubyModule objectClass) { objectClass.defineMethod("==", CallbackFactory.getMethod(RubyObject.class, "equal", RubyObject.class)); objectClass.defineMethod("=~", CallbackFactory.getFalseMethod()); objectClass.defineMethod("clone", CallbackFactory.getMethod(Ru... | 3,237,281 |
public static void createObjectClass(RubyModule objectClass) { objectClass.defineMethod("==", CallbackFactory.getMethod(RubyObject.class, "equal", RubyObject.class)); objectClass.defineMethod("=~", CallbackFactory.getFalseMethod()); objectClass.defineMethod("clone", CallbackFactory.getMethod(Ru... | public static void createObjectClass(RubyModule objectClass) { objectClass.defineMethod("==", CallbackFactory.getMethod(RubyObject.class, "equal", RubyObject.class)); objectClass.defineMethod("=~", CallbackFactory.getFalseMethod()); objectClass.defineMethod("clone", CallbackFactory.getMethod(Ru... | 3,237,282 |
public RubyBoolean respond_to(RubyObject methodName) { String name; if (methodName instanceof RubySymbol) { name = ((RubySymbol) methodName).toId(); } else if (methodName instanceof RubyString) { name = ((RubyString) methodName).getValue(); } else { throw... | public RubyBoolean respond_to(RubyObject methodName) { String name; if (methodName instanceof RubySymbol) { name = ((RubySymbol) methodName).toId(); } else if (methodName instanceof RubyString) { name = ((RubyString) methodName).getValue(); } else { throw... | 3,237,284 |
public boolean respondsTo(String methodName) { return respond_to(RubySymbol.newSymbol(getRuby(), methodName)).isTrue(); } | public boolean respondsTo(String methodName) { return respond_to(new RubyObject[]{RubySymbol.newSymbol(getRuby(), methodName)}).isTrue(); } | 3,237,285 |
public void visitColon2Node(Colon2Node iVisited) { Node node = iVisited.getLeftNode(); // TODO: Made this more colon3 friendly because of cpath production // rule in grammar (it is convenient to think of them as the same thing // at a grammar level even though evaluation is). if (... | public void visitColon2Node(Colon2Node iVisited) { Node node = iVisited.getLeftNode(); // TODO: Made this more colon3 friendly because of cpath production // rule in grammar (it is convenient to think of them as the same thing // at a grammar level even though evaluation is). if (... | 3,237,287 |
public void visitColon3Node(Colon3Node iVisited) { result = runtime.getClasses().getObjectClass().getConstant(iVisited.getName()); } | public void visitColon3Node(Colon3Node iVisited) { result = runtime.getClasses().getClass(iVisited.getName()); if (result == null) { result = runtime.getClasses().getObjectClass().getConstant(iVisited.getName()); } } | 3,237,288 |
final public Broker getBroker() { // this method can be unsynch. because the broker manages its own // state, plus the only time the _broker will be shutdown or null // is after the last servlet has shutdown--so why would anyone be // accessing us then? if they do the _broker will throw excepti... | final public Broker getBroker() { // this method can be unsynch. because the broker manages its own // state, plus the only time the _broker will be shutdown or null // is after the last servlet has shutdown--so why would anyone be // accessing us then? if they do the _broker will throw excepti... | 3,237,289 |
final public String getConfig(String key) throws NotFoundException { try { return (String) _broker.get("config", key); } catch (NotFoundException e) { throw e; } catch (ResourceException e) { throw new NotFoundException(e.toString(), e); } } | final public String getConfig(String key) throws NotFoundException { try { return (String) _broker.get("config", key); } catch (NotFoundException e) { throw e; } catch (ResourceException e) { throw new NotFoundException(e.toString(), e); } } | 3,237,290 |
final public String getConfig(String key) throws NotFoundException { try { return (String) _broker.get("config", key); } catch (NotFoundException e) { throw e; } catch (ResourceException e) { throw new NotFoundException(e.toString(), e); } } | final public String getConfig(String key) throws NotFoundException { try { return (String) _broker.get("config", key); } catch (NotFoundException e) { throw e; } catch (ResourceException e) { throw new NotFoundException(e.toString(), e); } } | 3,237,291 |
final public Template getTemplate(String key) throws ResourceException { return (Template) _tmplProvider.get(key); } | final public Template getTemplate(String key) throws ResourceException { return (Template) _tmplProvider.get(key); } | 3,237,292 |
final public Template getTemplate(String key) throws ResourceException { return (Template) _tmplProvider.get(key); } | final public Template getTemplate(String key) throws ResourceException { return (Template) _tmplProvider.get(key); } | 3,237,293 |
final public String getURL(String url) throws ResourceException { return (String) _urlProvider.get(url); } | final public String getURL(String url) throws ResourceException { return (String) _urlProvider.get(url); } | 3,237,294 |
final public WebContext getWebContext(HttpServletRequest req, HttpServletResponse resp) { Pool cpool = (Pool) _webContextCache.get(); WebContext c = (WebContext) cpool.get(); if (c == null) { c = _webContext.newInstance(req,resp); c.setPool(cpool); } else ... | final public WebContext getWebContext(HttpServletRequest req, HttpServletResponse resp) { Pool cpool = (Pool) _webContextCache.get(); WebContext c = (WebContext) cpool.get(); if (c == null) { c = _webContext.newInstance(req,resp); c.setPool(cpool); } else ... | 3,237,295 |
final public WebContext getWebContext(HttpServletRequest req, HttpServletResponse resp) { Pool cpool = (Pool) _webContextCache.get(); WebContext c = (WebContext) cpool.get(); if (c == null) { c = _webContext.newInstance(req,resp); c.setPool(cpool); } else ... | final public WebContext getWebContext(HttpServletRequest req, HttpServletResponse resp) { Pool cpool = (Pool) _webContextCache.get(); WebContext c = (WebContext) cpool.get(); if (c == null) { c = _webContext.newInstance(req,resp); c.setPool(cpool); } else ... | 3,237,296 |
final public void writeTemplate (String templateName, java.io.OutputStream out, Context context) throws java.io.IOException, ResourceException, PropertyException { writeTemplate (templateName, out, getConfig (WMConstants.TEMPLATE_OUTPUT_ENCODING), con... | final public void writeTemplate (String templateName, java.io.OutputStream out, Context context) throws java.io.IOException, ResourceException, PropertyException { writeTemplate (templateName, out, getConfig (WMConstants.TEMPLATE_OUTPUT_ENCODING), con... | 3,237,297 |
public List childNodes() { return Collections.EMPTY_LIST; } | public List childNodes() { return EMPTY_LIST; } | 3,237,299 |
protected void init () throws InitException { String eehClass; // Initialize the property operator cache _propertyOperators.init(this, _config); // Write out our properties as debug records if (_log.loggingDebug()) { String[] properties = _config.getKeys(); ... | protected void init () throws InitException { String eehClass; // Initialize the property operator cache _propertyOperators.init(this, _config); // Write out our properties as debug records if (_log.loggingDebug()) { String[] properties = _config.getKeys(); ... | 3,237,300 |
public static ProjectData getGlobalProjectData() { if (globalProjectData != null) return globalProjectData; File dataFile = CoverageDataFileHandler.getDefaultDataFile(); // Read projectData from the serialized file. if (dataFile.isFile()) { //System.out.println("Cobertura: Loading global project data from " +... | public static ProjectData getGlobalProjectData() { if (globalProjectData != null) return globalProjectData; File dataFile = CoverageDataFileHandler.getDefaultDataFile(); // Read projectData from the serialized file. if (dataFile.isFile()) { //System.out.println("Cobertura: Loading global project data from " +... | 3,237,301 |
public static ProjectData getGlobalProjectData() { if (globalProjectData != null) return globalProjectData; File dataFile = CoverageDataFileHandler.getDefaultDataFile(); // Read projectData from the serialized file. if (dataFile.isFile()) { //System.out.println("Cobertura: Loading global project data from " +... | public static ProjectData getGlobalProjectData() { if (globalProjectData != null) return globalProjectData; File dataFile = CoverageDataFileHandler.getDefaultDataFile(); // Read projectData from the serialized file. if (dataFile.isFile()) { //System.out.println("Cobertura: Loading global project data from " +... | 3,237,302 |
private RubyTime(IRuby runtime, RubyClass rubyClass) { super(runtime, rubyClass); } | public RubyTime(IRuby runtime, RubyClass rubyClass) { super(runtime, rubyClass); } | 3,237,303 |
public RubyArray to_a() { return getRuntime().newArray(new IRubyObject[] { sec(), min(), hour(), mday(), month(), year(), wday(), yday(), isdst(), zone() }); } | public RubyArray to_a() { return getRuntime().newArray(new IRubyObject[] { sec(), min(), hour(), mday(), month(), year(), wday(), yday(), isdst(), zone() }); } | 3,237,304 |
public Object evaluate (Context context) throws PropertyException { Object o = _object; // evaluate the _object reference down to its base object while (o instanceof Macro) o = ((Macro) o).evaluate(context); if (o == null) { // the Variable to check isn't ... | public Object evaluate (Context context) throws PropertyException { Object o = _object; // evaluate the _object reference down to its base object while (o instanceof Macro && o != UndefinedMacro.getInstance()) o = ((Macro) o).evaluate(context); if (o == null) { ... | 3,237,306 |
public Object evaluate (Context context) throws PropertyException { Object o = _object; // evaluate the _object reference down to its base object while (o instanceof Macro) o = ((Macro) o).evaluate(context); if (o == null) { // the Variable to check isn't ... | public Object evaluate (Context context) throws PropertyException { Object o = _object; // evaluate the _object reference down to its base object while (o instanceof Macro) o = ((Macro) o).evaluate(context); if (o == null || o == UndefinedMacro.getInstance()) { ... | 3,237,307 |
public static ResultSetDataTable create( Connection conn, String sql, int maxRows) throws SQLException { return create(conn, sql, maxRows, 0); } | public static ResultSetDataTable create( Connection conn, String sql) throws SQLException { return create(conn, sql, maxRows, 0); } | 3,237,310 |
public static ResultSetDataTable create( Connection conn, String sql, int maxRows) throws SQLException { return create(conn, sql, maxRows, 0); } | public static ResultSetDataTable create( Connection conn, String sql, int maxRows) throws SQLException { return create(conn, sql, DEFAULT_MAX_ROWS, 0); } | 3,237,311 |
protected void parseBeanDefinitions(Element root, BeanDefinitionParserDelegate delegate) { String namespaceUri = root.getNamespaceURI(); if (!DomUtils.nodeNameEquals(root, "beans") && !delegate.isDefaultNamespace(namespaceUri)) { delegate.parseCustomElement(root, false); ... | protected void parseBeanDefinitions(Element root, BeanDefinitionParserDelegate delegate) { String namespaceUri = root.getNamespaceURI(); if (!DomUtils.nodeNameEquals(root, "beans") && !delegate.isDefaultNamespace(namespaceUri)) { try { try { Method m = BeanDefinitionParserDelega... | 3,237,312 |
public void execute(PInputEvent e) { if(e.getCamera().getViewScale() < 1) { Thumbnail t = (Thumbnail)e.getPickedNode(); Image image = t.getImage(); SemanticZoomNode semanticNode = new SemanticZoomNode(t); ... | public void execute(PInputEvent e) { if(e.getCamera().getViewScale() < 1) { Thumbnail t = (Thumbnail)e.getPickedNode(); Image image = t.getImage(); SemanticZoomNode semanticNode = new SemanticZoomNode(t); ... | 3,237,313 |
public List childNodes() { return Collections.EMPTY_LIST; } | public List childNodes() { return EMPTY_LIST; } | 3,237,314 |
private void initActions(BrowserModel targetModel) { // theoretically shouldn't happen if(targetModel == null) { return; } defaultTDownActions = new MouseDownActions(); defaultTOverActions = new MouseOverActions(); selectThumbnailAction ... | private void initActions(BrowserModel targetModel) { // theoretically shouldn't happen if(targetModel == null) { return; } defaultTDownActions = new MouseDownActions(); defaultTOverActions = new MouseOverActions(); selectThumbnailAction ... | 3,237,317 |
public void modeChanged(String className, BrowserMode mode) { // boooooo. if(className == null) { return; } else if(className.equals(BrowserModel.PAN_MODE_NAME)) { if(mode == BrowserMode.HAND_MODE) { // TODO: change drag li... | public void modeChanged(String className, BrowserMode mode) { // boooooo. if(className == null) { return; } else if(className.equals(BrowserModel.PAN_MODE_NAME)) { if(mode == BrowserMode.HAND_MODE) { // TODO: change drag li... | 3,237,318 |
public void paintComponent(Graphics g) { Graphics2D g2 = (Graphics2D)g; // cheapo hack to prevent apparent delay in annotation loading if(firstTimeShown) { Font font = new Font(null,Font.PLAIN,10); AttributedString str = new AttributedString("hi"); g2.... | public void paintComponent(Graphics g) { Graphics2D g2 = (Graphics2D)g; // cheapo hack to prevent apparent delay in annotation loading if(firstTimeShown) { Font font = new Font(null,Font.PLAIN,10); AttributedString str = new AttributedString("hi"); g2.... | 3,237,319 |
private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 48; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << cu... | private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 48; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << cu... | 3,237,321 |
private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 48; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << cu... | private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 48; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << cu... | 3,237,322 |
private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 48; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << cu... | private final int jjMoveNfa_0(int startState, int curPos){ int[] nextStates; int startsAt = 0; jjnewStateCnt = 48; int i = 1; jjstateSet[0] = startState; int j, kind = 0x7fffffff; for (;;) { if (++jjround == 0x7fffffff) ReInitRounds(); if (curChar < 64) { long l = 1L << cu... | 3,237,323 |
public void testGetUserImages(Map options) { T t = new T(IllegalArgumentException.class){ @Override public void doTest(Object[] arg) { manager.getUserImages((Map)arg[0]); } }; t.blowup(true,new PojoOptions().allExps()); t.blowup(false,new PojoOptions().exp(1)); } | public void testGetUserImages(Map options) { T t = new T(IllegalArgumentException.class){ @Override public void doTest(Object[] arg) { manager.getUserImages((Map)arg[0]); } }; t.blowup(true,new PojoOptions().allExps()); t.blowup(false,new PojoOptions().exp(1)); } | 3,237,324 |
public IObject map(ModelBased source){ if (source == null) { return null; } else if (target2model.containsKey(source)){ return (IObject) target2model.get(source); } else { IObject model = source.asIObject(this); target2model.put(source,model); ... | public IObject map(ModelBased source){ if (source == null) { return null; } else if (target2model.containsKey(source)){ return (IObject) target2model.get(source); } else { IObject model = source.asIObject(this); target2model.put(source,model); ... | 3,237,325 |
public static IRubyObject grep_iter_i(IRubyObject blockArg, IRubyObject arg1, IRubyObject self) { IRubyObject matcher = ((RubyArray) arg1).entry(0); RubyArray resultArray = (RubyArray) ((RubyArray) arg1).entry(1); if (matcher.callMethod("===", blockArg).isTrue()) { resultArray.append... | public static IRubyObject grep_iter_i(IRubyObject blockArg, IRubyObject arg1, IRubyObject self) { IRubyObject matcher = ((RubyArray) arg1).entry(0); RubyArray resultArray = (RubyArray) ((RubyArray) arg1).entry(1); if (matcher.callMethod("===", blockArg).isTrue()) { resultArray.append... | 3,237,326 |
public static IRubyObject max_iter_i(IRubyObject blockArg, IRubyObject arg1, IRubyObject self) { IRubyObject maxItem = ((RubyArray) arg1).pop(); if (maxItem.isNil()) { ((RubyArray) arg1).append(blockArg); } else if (RubyFixnum.fix2int(self.getRuntime().yield(RubyArray.newArray(self.g... | public static IRubyObject max_iter_i(IRubyObject blockArg, IRubyObject arg1, IRubyObject self) { IRubyObject maxItem = ((RubyArray) arg1).pop(); if (maxItem.isNil()) { ((RubyArray) arg1).append(blockArg); } else if (RubyFixnum.fix2int(self.getRuntime().yield(RubyArray.newArray(self.g... | 3,237,327 |
public static IRubyObject min_iter_i(IRubyObject blockArg, IRubyObject arg1, IRubyObject self) { IRubyObject maxItem = ((RubyArray) arg1).pop(); if (maxItem.isNil()) { ((RubyArray) arg1).append(blockArg); } else if (RubyFixnum.fix2int(self.getRuntime().yield(RubyArray.newArray(self.g... | public static IRubyObject min_iter_i(IRubyObject blockArg, IRubyObject arg1, IRubyObject self) { IRubyObject maxItem = ((RubyArray) arg1).pop(); if (maxItem.isNil()) { ((RubyArray) arg1).append(blockArg); } else if (RubyFixnum.fix2int(self.getRuntime().yield(RubyArray.newArray(self.g... | 3,237,328 |
public void exchange(Request out, Reply in) throws ImageServiceException, IOException { //Sanity checks. if (out == null) throw new NullPointerException("No request."); if (in == null) throw new NullPointerException("No reply."); //Build HTTP request, send it, and wait... | public void exchange(Request out, Reply in) throws ImageServiceException, IOException { //Sanity checks. if (out == null) throw new NullPointerException("No request."); if (in == null) throw new NullPointerException("No reply."); //Build HTTP request, send it, and wait... | 3,237,329 |
private JToolBar buildMovieBar() { JToolBar tb = new JToolBar(); tb.setFloatable(false); tb.add(play); tb.add(pause); tb.add(stop); tb.add(rewind); tb.add(forward); tb.addSeparator(); JLabel label = new JLabel(" Rate "); tb.add(label); tb.add(fps); return tb; } | private JToolBar buildMovieBar() { JToolBar tb = new JToolBar(); tb.setFloatable(false); tb.add(play); tb.add(pause); tb.add(stop); tb.add(rewind); tb.add(forward); tb.addSeparator(); JLabel label = new JLabel(" Rate "); tb.add(label); tb.add(fps); return tb; } | 3,237,331 |
private JToolBar buildRenderingBar() { JToolBar tb = new JToolBar(); tb.setFloatable(false); tb.add(render); tb.addSeparator(); tb.add(inspector); tb.addSeparator(); tb.add(saveAs); return tb; } | private JToolBar buildRenderingBar() { JToolBar tb = new JToolBar(); tb.setFloatable(false); tb.add(render); tb.addSeparator(); tb.add(inspector); tb.addSeparator(); tb.add(saveAs); return tb; } | 3,237,333 |
private JToolBar buildTextFieldBar() { JToolBar tb = new JToolBar(); tb.setFloatable(false); JLabel label = new JLabel(" Z "); label.setForeground(STEELBLUE); tb.add(label); tb.add(zField); tb.add(zLabel); tb.addSeparator(); label = new JLabel(" T "); label.setForeground(STEELBLUE); tb.add(label); tb.add(t... | private JToolBar buildTextFieldBar() { JToolBar tb = new JToolBar(); tb.setFloatable(false); JLabel label = new JLabel(" Z "); label.setForeground(STEELBLUE); tb.add(label); tb.add(zField); tb.add(zLabel); tb.addSeparator(); label = new JLabel(" T "); label.setForeground(STEELBLUE); tb.add(label); tb.add(t... | 3,237,334 |
private JToolBar buildTextFieldBar() { JToolBar tb = new JToolBar(); tb.setFloatable(false); JLabel label = new JLabel(" Z "); label.setForeground(STEELBLUE); tb.add(label); tb.add(zField); tb.add(zLabel); tb.addSeparator(); label = new JLabel(" T "); label.setForeground(STEELBLUE); tb.add(label); tb.add(t... | private JToolBar buildTextFieldBar() { JToolBar tb = new JToolBar(); tb.setFloatable(false); JLabel label = new JLabel(" Z "); label.setForeground(STEELBLUE); tb.add(label); tb.add(zField); tb.add(zLabel); tb.addSeparator(); label = new JLabel(" T "); label.setForeground(STEELBLUE); tb.add(label); tb.add(t... | 3,237,335 |
private void buildToolBar() { setFloatable(false); setLayout(new BoxLayout(this, BoxLayout.X_AXIS)); add(buildTextFieldBar()); addSeparator(SEPARATOR); add(buildRenderingBar()); addSeparator(SEPARATOR); add(buildMovieBar()); addSeparator(SEPARATOR_END); } | private void buildToolBar() { setFloatable(false); setLayout(new BoxLayout(this, BoxLayout.X_AXIS)); add(buildTextFieldBar()); addSeparator(SEPARATOR); add(buildRenderingBar()); addSeparator(SEPARATOR); add(buildMovieBar()); addSeparator(SEPARATOR_END); } | 3,237,336 |
private void initMovieComponents(Registry registry, int maxT) { //buttons IconManager im = IconManager.getInstance(registry); saveAs = new JButton(im.getIcon(IconManager.SAVEAS)); saveAs.setToolTipText( UIUtilities.formatToolTipText("Bring up the save image window.")); inspector = new JButton(im.getIcon(Ic... | private void initMovieComponents(Registry registry, int maxT) { //buttons IconManager im = IconManager.getInstance(registry); saveAs = new JButton(im.getIcon(IconManager.SAVEAS)); saveAs.setToolTipText( UIUtilities.formatToolTipText("Bring up the save image window.")); inspector = new JButton(im.getIcon(Ic... | 3,237,337 |
private void initTextFields(int t, int z, int maxT, int maxZ) { zLabel = new JLabel("/"+maxZ); tLabel = new JLabel("/"+maxT); tField = new JTextField(); tField = new JTextField(""+t, (""+maxT).length()); if (maxT-1 == 0) tField.setEditable(false); tField.setForeground(STEELBLUE); tField.setToolTipText( UIUtil... | private void initTextFields(int t, int z, int maxT, int maxZ) { zLabel = new JLabel("/"+maxZ); tLabel = new JLabel("/"+maxT); tField = new JTextField(); tField = new JTextField(""+t, (""+maxT).length()); if (maxT-1 == 0) tField.setEditable(false); tField.setForeground(STEELBLUE); tField.setToolTipText( UIUtil... | 3,237,338 |
private void initTextFields(int t, int z, int maxT, int maxZ) { zLabel = new JLabel("/"+maxZ); tLabel = new JLabel("/"+maxT); tField = new JTextField(); tField = new JTextField(""+t, (""+maxT).length()); if (maxT-1 == 0) tField.setEditable(false); tField.setForeground(STEELBLUE); tField.setToolTipText( UIUtil... | private void initTextFields(int t, int z, int maxT, int maxZ) { zLabel = new JLabel("/"+maxZ); tLabel = new JLabel("/"+maxT); tField = new JTextField(); tField = new JTextField(""+t, (""+maxT).length()); if (maxT-1 == 0) tField.setEditable(false); tField.setForeground(STEELBLUE); tField.setToolTipText( UIUtil... | 3,237,339 |
public DatasetSummary createDataset(List projectSummaries, List imageSummaries, DatasetData retVal, DatasetSummary dProto) throws DSOutOfServiceException, DSAccessException { //Make a new proto if none was provided. if (dProto == null) dProto = new DatasetSummary(); //Create a new pro... | public DatasetSummary createDataset(List projectSummaries, List imageSummaries, DatasetData retVal, DatasetSummary dProto) throws DSOutOfServiceException, DSAccessException { //Make a new proto if none was provided. if (dProto == null) dProto = new DatasetSummary(); //Create a new pro... | 3,237,341 |
public List retrieveImages(int datasetID) throws DSOutOfServiceException, DSAccessException { //Define the criteria by which the object graph is pulled out. Criteria c = DatasetMapper.buildImagesCriteria(datasetID); //Load the graph defined by criteria. Dataset dataset = (Dataset) gateway.retrieveData(Da... | public List retrieveImages(int datasetID) throws DSOutOfServiceException, DSAccessException { //Define the criteria by which the object graph is pulled out. Criteria c = DatasetMapper.buildImagesCriteria(datasetID); //Load the graph defined by criteria. Dataset dataset = (Dataset) gateway.retrieveData(Da... | 3,237,342 |
public List retrieveImages(int datasetID) throws DSOutOfServiceException, DSAccessException { //Define the criteria by which the object graph is pulled out. Criteria c = DatasetMapper.buildImagesCriteria(datasetID); //Load the graph defined by criteria. Dataset dataset = (Dataset) gateway.retrieveData(Da... | public List retrieveImages(int datasetID) throws DSOutOfServiceException, DSAccessException { //Define the criteria by which the object graph is pulled out. Criteria c = DatasetMapper.buildImagesCriteria(datasetID); //Load the graph defined by criteria. Dataset dataset = (Dataset) gateway.retrieveData(Da... | 3,237,343 |
public List retrieveImages(int datasetID) throws DSOutOfServiceException, DSAccessException { //Define the criteria by which the object graph is pulled out. Criteria c = DatasetMapper.buildImagesCriteria(datasetID); //Load the graph defined by criteria. Dataset dataset = (Dataset) gateway.retrieveData(Da... | public List retrieveImages(int datasetID) throws DSOutOfServiceException, DSAccessException { //Define the criteria by which the object graph is pulled out. Criteria c = DatasetMapper.buildImagesCriteria(datasetID); //Load the graph defined by criteria. Dataset dataset = (Dataset) gateway.retrieveData(Da... | 3,237,344 |
public List retrieveImages(int datasetID) throws DSOutOfServiceException, DSAccessException { //Define the criteria by which the object graph is pulled out. Criteria c = DatasetMapper.buildImagesCriteria(datasetID); //Load the graph defined by criteria. Dataset dataset = (Dataset) gateway.retrieveData(Da... | public List retrieveImages(int datasetID) throws DSOutOfServiceException, DSAccessException { //Define the criteria by which the object graph is pulled out. Criteria c = DatasetMapper.buildImagesCriteria(datasetID); //Load the graph defined by criteria. Dataset dataset = (Dataset) gateway.retrieveData(Da... | 3,237,345 |
public RubyObject eval(Ruby ruby, RubyObject self) { ruby.setSourceLine(getLine()); Node x = getConditionNode(); if (getConditionNode().eval(ruby, self).isTrue()) { return self.eval(getBodyNode()); } else { return self.eval(getElseNode()); } } | public RubyObject eval(Ruby ruby, RubyObject self) { ruby.setSourceLine(getLine()); Node x = getConditionNode(); if (x.eval(ruby, self).isTrue()) { return self.eval(getBodyNode()); } else { return self.eval(getElseNode()); } } | 3,237,346 |
public IRubyObject getBackref() { if (getScope().hasLocalValues()) { return getScope().getValue(1); } return getNil(); } | public IRubyObject getBackref() { if (getScope().hasLocalVariables()) { return getScope().getValue(1); } return getNil(); } | 3,237,347 |
public IRubyObject getLastline() { if (getScope().hasLocalValues()) { return getScope().getValue(0); } return RubyString.nilString(this); } | public IRubyObject getLastline() { if (getScope().hasLocalVariables()) { return getScope().getValue(0); } return RubyString.nilString(this); } | 3,237,348 |
public void setBackref(IRubyObject match) { if (! getScope().hasLocalValues()) { getScope().setLocalNames(new ArrayList(Arrays.asList(new String[] { "_", "~" }))); } getScope().setValue(1, match); } | public void setBackref(IRubyObject match) { if (! getScope().hasLocalValues()) { getScope().setLocalNames(new ArrayList(Arrays.asList(new String[] { "_", "~" }))); } getScope().setValue(1, match); } | 3,237,349 |
public void setLastline(IRubyObject value) { if (! getScope().hasLocalValues()) { getScope().setLocalNames(new ArrayList(Arrays.asList(new String[] { "_", "~" }))); } getScope().setValue(0, value); } | public void setLastline(IRubyObject value) { if (! getScope().hasLocalValues()) { getScope().setLocalNames(new ArrayList(Arrays.asList(new String[] { "_", "~" }))); } getScope().setValue(0, value); } | 3,237,350 |
public RubyObject eval(Ruby ruby, RubyObject self) { if (ruby.getRubyClass() == null) { throw new TypeError(ruby, "no outer class/module"); } RubyModule superClass = null; if (getSuperNode() != null) { superClass = getSuperClass(ruby, self, getSuperNod... | public RubyObject eval(Ruby ruby, RubyObject self) { if (ruby.getRubyClass() == null) { throw new TypeError(ruby, "no outer class/module"); } RubyModule superClass = null; if (getSuperNode() != null) { superClass = getSuperClass(ruby, self, getSuperNod... | 3,237,351 |
public IRubyObject getpeername() { return JavaObject.wrap(getRuntime(), socket.getRemoteSocketAddress()); } | public IRubyObject getpeername() { if (socketChannel instanceof SocketChannel) { return JavaObject.wrap(getRuntime(), ((SocketChannel) socketChannel).socket().getRemoteSocketAddress()); } else { throw getRuntime().newIOError("Not Supported"); } } | 3,237,352 |
public IRubyObject getsockname() { return JavaObject.wrap(getRuntime(), socket.getLocalSocketAddress()); } | public IRubyObject getsockname() { if (socketChannel instanceof SocketChannel) { return JavaObject.wrap(getRuntime(), ((SocketChannel) socketChannel).socket().getLocalSocketAddress()); } else if (socketChannel instanceof ServerSocketChannel) { return JavaObject.wrap(getRuntime(), ((ServerSocketChannel) socke... | 3,237,353 |
public IRubyObject initialize(IRubyObject arg) { socket = extractSocket(arg); try { handler = new IOHandlerSocket(getRuntime(), socket.getInputStream(), socket.getOutputStream()); } catch (IOException e) { throw getRuntime().newIOError(e.getMessage()); } ... | public IRubyObject initialize(IRubyObject arg) { socketChannel = extractSocketChannel(arg); try { handler = new IOHandlerSocket(getRuntime(), socket.getInputStream(), socket.getOutputStream()); } catch (IOException e) { throw getRuntime().newIOError(e.getMessage()); ... | 3,237,354 |
public IRubyObject initialize(IRubyObject arg) { socket = extractSocket(arg); try { handler = new IOHandlerSocket(getRuntime(), socket.getInputStream(), socket.getOutputStream()); } catch (IOException e) { throw getRuntime().newIOError(e.getMessage()); } ... | public IRubyObject initialize(IRubyObject arg) { socket = extractSocket(arg); try { handler = new IOHandlerNio(getRuntime(), socketChannel); } catch (IOException e) { throw getRuntime().newIOError(e.getMessage()); } registerIOHandler(handler); mod... | 3,237,355 |
public IRubyObject recv(IRubyObject[] args) { try { return getRuntime().newString(((IOHandlerSocket) handler).recv(RubyNumeric.fix2int(args[0]))); } catch (IOHandler.BadDescriptorException e) { throw getRuntime().newErrnoEBADFError(); } catch (EOFException e) { ... | public IRubyObject recv(IRubyObject[] args) { try { return getRuntime().newString(((IOHandlerNio) handler).recv(RubyNumeric.fix2int(args[0]))); } catch (IOHandler.BadDescriptorException e) { throw getRuntime().newErrnoEBADFError(); } catch (EOFException e) { // ... | 3,237,356 |
public IRubyObject shutdown(IRubyObject[] args) { if (getRuntime().getSafeLevel() >= 4 && tainted().isFalse()) { throw getRuntime().newSecurityError("Insecure: can't shutdown socket"); } int how = args.length > 0 ? RubyNumeric.fix2int(args[0]) : SHUTDOWN_BOTH; if (how != SHUT... | public IRubyObject shutdown(IRubyObject[] args) { if (getRuntime().getSafeLevel() >= 4 && tainted().isFalse()) { throw getRuntime().newSecurityError("Insecure: can't shutdown socket"); } int how = args.length > 0 ? RubyNumeric.fix2int(args[0]) : SHUTDOWN_BOTH; if (how != SHUT... | 3,237,357 |
public IRubyObject shutdown(IRubyObject[] args) { if (getRuntime().getSafeLevel() >= 4 && tainted().isFalse()) { throw getRuntime().newSecurityError("Insecure: can't shutdown socket"); } int how = args.length > 0 ? RubyNumeric.fix2int(args[0]) : SHUTDOWN_BOTH; if (how != SHUT... | public IRubyObject shutdown(IRubyObject[] args) { if (getRuntime().getSafeLevel() >= 4 && tainted().isFalse()) { throw getRuntime().newSecurityError("Insecure: can't shutdown socket"); } int how = args.length > 0 ? RubyNumeric.fix2int(args[0]) : SHUTDOWN_BOTH; if (how != SHUT... | 3,237,358 |
private boolean login() { final SessionManager sessionManager = SparkManager.getSessionManager(); boolean hasErrors = false; String errorMessage = null; // Handle specifyed Workgroup String serverName = getServerName(); if (!hasErrors) { ... | private boolean login() { final SessionManager sessionManager = SparkManager.getSessionManager(); boolean hasErrors = false; String errorMessage = null; // Handle specifyed Workgroup String serverName = getServerName(); if (!hasErrors) { ... | 3,237,359 |
private boolean login() { final SessionManager sessionManager = SparkManager.getSessionManager(); boolean hasErrors = false; String errorMessage = null; // Handle specifyed Workgroup String serverName = getServerName(); if (!hasErrors) { ... | private boolean login() { final SessionManager sessionManager = SparkManager.getSessionManager(); boolean hasErrors = false; String errorMessage = null; // Handle specifyed Workgroup String serverName = getServerName(); if (!hasErrors) { ... | 3,237,360 |
EvalThread(String name, String script) { this.name = RubyString.newString(ruby, name); this.script = RubyString.newString(ruby, script); } | EvalThread(String name, String script) { this.name = RubyString.newString(ruby, name); this.script = RubyString.newString(ruby, script); } | 3,237,361 |
public void run() { ruby.getRuntime().loadScript(name, script, false); out.close(); } | public void run() { ruby.getRuntime().loadScript(name, script, false); out.close(); } | 3,237,362 |
public static void main(String args[]) { //@START int NUM = Integer.parseInt(args[0]); boolean [] flags = new boolean[8192 + 1]; int count = 0; while (NUM-- > 0) { count = 0; for (int i=2; i <= 8192; i++) { flags[i] = true; } for (int i=2; i <= 8192; i++) { if (flags[i]) { // remove all multi... | public static void main(String args[]) { //@START int NUM = Integer.parseInt(args[0]); boolean [] flags = new boolean[8192 + 1]; int count = 0; while (NUM-- > 0) { count = 0; for (int i=2; i <= 8192; i++) { flags[i] = true; } for (int i=2; i <= 8192; i++) { if (flags[i]) { // remove all multi... | 3,237,363 |
public void execute() { ZoomVisitor visitor = new ZoomVisitor(model); Browser browser = model.getBrowser(); ImageDisplay selectedDisplay = browser.getSelectedDisplay(); if (selectedDisplay.getParentDisplay() == null) //root browser.accept(visitor); else selectedDispl... | public void execute() { ZoomVisitor visitor = new ZoomVisitor(model); Browser browser = model.getBrowser(); ImageDisplay selectedDisplay = browser.getSelectedDisplay(); if (selectedDisplay.getParentDisplay() == null) //root browser.accept(visitor); else selectedDispl... | 3,237,364 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.