bugged stringlengths 6 599k | fixed stringlengths 6 40.8M | __index_level_0__ int64 0 3.24M |
|---|---|---|
private JComponent buildCenterComponent() { switch (model.getEditorType()) { case Editor.CREATE_EDITOR: return doBasic; case Editor.PROPERTIES_EDITOR: IconManager im = IconManager.getInstance(); tabs = new JTabbedPane(JTabbedPane.TOP, ... | private JComponent buildCenterComponent() { switch (model.getEditorType()) { case Editor.CREATE_EDITOR: return doBasic; case Editor.PROPERTIES_EDITOR: IconManager im = IconManager.getInstance(); tabs = new JTabbedPane(JTabbedPane.TOP, ... | 3,227,338 |
void setEdit(boolean b) { edit = b; } | void setEdit(boolean b) { edit = b; } | 3,227,340 |
private void showErrorDialog(String title, String summary, String detail) { showMessengerDialog("", detail); } | private void showErrorDialog(String title, String summary, String detail) { Exception e; if (detail == null) e = new Exception(summary); else e = new Exception(detail); MessengerDialog d = new MessengerDialog(SHARED_FRAME, DEFAULT_COMMENT_TITLE, "", e); d.addPropertyChangeListener(manager); d.setModal(true);... | 3,227,341 |
public void submitMessage(String emailAddress) { showMessengerDialog(emailAddress, null); } | public void submitMessage(String emailAddress) { showMessengerDialog(emailAddress, null); } | 3,227,342 |
public void submitMessage(String emailAddress) { showMessengerDialog(emailAddress, null); } | public void submitMessage(String emailAddress) { showMessengerDialog(emailAddress, null); } | 3,227,343 |
public MessengerDialog(JFrame parent, String title, String emailAddress, Exception exception) { super(parent); this.emailAddress = emailAddress; this.exception = exception; initialize(title); } | public MessengerDialog(JFrame parent, String title, String emailAddress, Exception exception) { super(parent); this.emailAddress = emailAddress; this.exception = exception; initialize(title); } | 3,227,344 |
public MessengerDialog(JFrame parent, String title, String emailAddress, Exception exception) { super(parent); this.emailAddress = emailAddress; this.exception = exception; initialize(title); } | public MessengerDialog(JFrame parent, String title, String emailAddress, Exception exception) { super(parent); this.emailAddress = emailAddress; this.exception = exception; initialize(title); } | 3,227,345 |
public List getLoadedFeatures() { return loadedFeatures; } | public Set getLoadedFeatures() { return loadedFeatures; } | 3,227,346 |
public void initLog(Settings config) { String logFile = config.getSetting("LogFile"); if ((logFile == null || logFile.equals("")) && _config.getBooleanSetting("LogUsingServletLog")) _ls.addTarget(new ServletLog(_servletContext, _config)); else initLog(); } | public void initLog(Settings config) { String logFile = config.getSetting("LogFile"); if ((logFile == null || logFile.equals("")) && _config.getBooleanSetting("LogUsingServletLog")) addLogTarget(); else initLog(); } | 3,227,347 |
public Broker(Properties config, String name) throws InitException { _lm = new LogManager(config); _log = _lm.getLog("broker"); _log.notice("start: " + name); _name = name; if (config == null) { _log.error("no configuration: perhaps some config file is missing? "); thr... | public Broker(Properties config, String name) throws InitException { _lm = new LogManager(config); _log = _lm.getLog("broker"); _log.notice("start: " + name); _name = name; if (config == null) { _log.error("no configuration: perhaps some config file is missing? "); thr... | 3,227,348 |
public Broker(Properties config, String name) throws InitException { _lm = new LogManager(config); _log = _lm.getLog("broker"); _log.notice("start: " + name); _name = name; if (config == null) { _log.error("no configuration: perhaps some config file is missing? "); thr... | public Broker(Properties config, String name) throws InitException { _lm = new LogManager(config); _log = _lm.getLog("broker"); _log.notice("start: " + name); _name = name; if (config == null) { _log.error("no configuration: perhaps some config file is missing? "); thr... | 3,227,349 |
protected void onSetUp() throws Exception { super.onSetUp(); org.openmicroscopy.omero.logic.Utils.setUserAuth(); cd = (ContainerDao) applicationContext.getBean("containerDao"); gd = (GenericDao) applicationContext.getBean("genericDao"); cu = (DaoCleanUpHibernate) applicationContext.getB... | protected void onSetUp() throws Exception { super.onSetUp(); ome.security.Utils.setUserAuth(); cd = (ContainerDao) applicationContext.getBean("containerDao"); gd = (GenericDao) applicationContext.getBean("genericDao"); cu = (DaoCleanUpHibernate) applicationContext.getBean("daoCleanUp");... | 3,227,350 |
public String getSourceFileName() { String baseName; if (sourceFileName != null) baseName = sourceFileName; else { int firstDollarSign = getBaseName().indexOf('$'); if (firstDollarSign == -1) baseName = getBaseName() + ".java"; else baseName = getBaseName().substring(0, firstDollarSign) + ".java... | public String getSourceFileName() { String baseName; if (sourceFileName != null) baseName = sourceFileName; else { int firstDollarSign = getBaseName().indexOf('$'); if (firstDollarSign == -1) baseName = getBaseName() + ".java"; else baseName = getBaseName().substring(0, firstDollarSign) + ".java... | 3,227,352 |
public void annotateDataObjects(Set nodes) { if (model.getState() == DISCARDED) throw new IllegalStateException("This method cannot be invoked " + "in the DISCARDED state."); if (nodes == null) throw new IllegalArgumentException("No dataObject to annotate"); if (nodes.size() == 1) { ... | public void annotateDataObjects(Set nodes) { if (model.getState() == DISCARDED) throw new IllegalStateException("This method cannot be invoked " + "in the DISCARDED state."); if (nodes == null) throw new IllegalArgumentException("No dataObject to annotate"); if (nodes.size() == 1) { ... | 3,227,353 |
public void classifyImages(ImageData[] images, int mode) { if (model.getState() == DISCARDED) throw new IllegalStateException("This method cannot be invoked " + "in the DISCARDED state."); if (images == null || images.length == 0) throw new IllegalArgumentException("No image to classi... | public void classifyImages(ImageData[] images, int mode) { if (model.getState() == DISCARDED) throw new IllegalStateException("This method cannot be invoked " + "in the DISCARDED state."); if (images == null || images.length == 0) throw new IllegalArgumentException("No image to classi... | 3,227,354 |
public void execute() { boolean b = false; Browser browser = model.getBrowser(); if (node == null && browser != null) { node = browser.getLastSelectedDisplay(); b = true; } if (node == null) return; if (node.getHierarchyObject() == null... | public void execute() { boolean b = false; Browser browser = model.getBrowser(); if (node == null && browser != null) { node = browser.getLastSelectedDisplay(); b = true; } if (node == null) return; if (node.getHierarchyObject() == null... | 3,227,355 |
void scrollToNode(ImageDisplay node) { if (node == null) throw new IllegalArgumentException("No node."); ImageDisplay parent = node.getParentDisplay(); if (parent != null) scrollToNode(node.getBounds(), parent, (parent.getParentDisplay() == null)); } | private void scrollToNode(Rectangle childBounds, ImageDisplay parent, boolean isRoot) { if (node == null) throw new IllegalArgumentException("No node."); ImageDisplay parent = node.getParentDisplay(); if (parent != null) scrollToNode(node.getBounds(), parent, (p... | 3,227,357 |
void scrollToNode(ImageDisplay node) { if (node == null) throw new IllegalArgumentException("No node."); ImageDisplay parent = node.getParentDisplay(); if (parent != null) scrollToNode(node.getBounds(), parent, (parent.getParentDisplay() == null)); } | void scrollToNode(ImageDisplay node) { if (node == null) throw new IllegalArgumentException("No node."); ImageDisplay parent = node.getParentDisplay(); if (parent != null) scrollToNode(node.getBounds(), parent, (parent.getParentDisplay() == null)); } | 3,227,358 |
public static RubyHash newInstance(IRubyObject recv, IRubyObject[] args) { RubyHash hash = new RubyHash(recv.getRuntime()); hash.setRubyClass((RubyClass) recv); hash.callInit(args); return hash; } | public static RubyHash newInstance(IRubyObject recv, IRubyObject[] args) { RubyHash hash = new RubyHash(recv.getRuntime()); hash.setInternalClass((RubyClass) recv); hash.callInit(args); return hash; } | 3,227,359 |
public static RubyHash unmarshalFrom(UnmarshalStream input) throws java.io.IOException { RubyHash result = newHash(input.getRuby()); int size = input.unmarshalInt(); for (int i = 0; i < size; i++) { IRubyObject key = input.unmarshalObject(); IRubyObject value = input.unmar... | public static RubyHash unmarshalFrom(UnmarshalStream input) throws java.io.IOException { RubyHash result = newHash(input.getRuntime()); int size = input.unmarshalInt(); for (int i = 0; i < size; i++) { IRubyObject key = input.unmarshalObject(); IRubyObject value = input.un... | 3,227,360 |
public RubyObject(Ruby ruby, RubyClass rubyClass) { this(ruby, rubyClass, true); } | public RubyObject(Ruby ruby, RubyClass rubyClass) { this(ruby, rubyClass, true); } | 3,227,361 |
public static Callback getOptSingletonMethod(Class type, String method) { return new ReflectionCallbackMethod(type, method, true, true); } | public static Callback getOptSingletonMethod(Class type, String method) { return new ReflectionCallbackMethod(type, method, true, true); } | 3,227,362 |
public static Callback getOptMethod(Class type, String method) { return new ReflectionCallbackMethod(type, method, true); } | public static Callback getOptMethod(Class type, String method) { return new ReflectionCallbackMethod(type, method, new Class[]{RubyObject[].class}, true, false, -1); } | 3,227,363 |
public static Callback getMethod(Class type, String method) { return new ReflectionCallbackMethod(type, method); } | public static Callback getMethod(Class type, String method) { return new ReflectionCallbackMethod(type, method, new Class[0], false, false, 0); } | 3,227,364 |
public void dumpObject(IRubyObject value) throws IOException { depth++; if (depth > depthLimit) { throw new ArgumentError(ruby, "exceed depth limit"); } if (! shouldBeRegistered(value)) { writeDirectly(value); } else if (hasUserDefinedMarshaling(value)) { ... | public void dumpObject(IRubyObject value) throws IOException { depth++; if (depth > depthLimit) { throw new ArgumentError(runtime, "exceed depth limit"); } if (! shouldBeRegistered(value)) { writeDirectly(value); } else if (hasUserDefinedMarshaling(value)) { ... | 3,227,365 |
public IRubyObject unmarshalObject() throws IOException { int type = readUnsignedByte(); switch (type) { case '0' : return runtime.getNil(); case 'T' : return RubyBoolean.newBoolean(runtime, true); case 'F' : return RubyBool... | public IRubyObject unmarshalObject() throws IOException { int type = readUnsignedByte(); switch (type) { case '0' : return runtime.getNil(); case 'T' : return RubyBoolean.newBoolean(runtime, true); case 'F' : return RubyBool... | 3,227,366 |
public void execute(EvaluationState state, InstructionContext ctx) { LocalAsgnNode iVisited = (LocalAsgnNode)ctx; state.runtime.getCurrentContext().getCurrentScope().setValue(iVisited.getCount(), state.getResult()); } | public void execute(EvaluationState state, InstructionContext ctx) { LocalAsgnNode iVisited = (LocalAsgnNode)ctx; state.runtime.getCurrentContext().getCurrentScope().setValue(iVisited.getCount(), state.getResult()); } | 3,227,368 |
public String getName() { return name; } | public String getName() { return nameNode.getName(); } | 3,227,369 |
public static RubyRegexp newRegexp(Ruby ruby, String str, int options) { RubyRegexp re = new RubyRegexp(ruby); re.initialize(str, options); return re; } | public static RubyRegexp newRegexp(Ruby ruby, String str, int options) { RubyRegexp re = new RubyRegexp(ruby); re.initialize(str, options); return re; } | 3,227,370 |
public Parameters( Filter filter ) { this.filter = filter; } | public Parameters( Filter filter ) { this.filter = filter; } | 3,227,372 |
public Query(Definitions definitions, Parameters parameters) { this.defs = definitions; this.params = parameters; checkParameters(); } | public Query(Definitions definitions, Parameters parameters) { this.defs = definitions; this.params = parameters; checkParameters(); } | 3,227,373 |
public Permissions( Permissions p ) { if ( p == null ) { throw new IllegalArgumentException( "Permissions argument cannot be null."); } this.revokeAll(p); } | public Permissions( Permissions p ) { if ( p == null ) { throw new IllegalArgumentException( "Permissions argument cannot be null."); } this.revokeAll(p); } | 3,227,374 |
Experimenter userProxy( Long userId ); | Experimenter userProxy( Long userId ); | 3,227,375 |
public Log getLog(String type); | public Log getLog(String type); | 3,227,378 |
public WebContext(final Broker broker) { super(broker); try { String tools = (String) broker.getValue("config","TemplateTools"); registerTools(tools); } catch (InvalidTypeException it) { _log.exception(it); _log.error("config type not registered with broker!"); ... | public WebContext(final Broker broker) { super(broker); try { String tools = (String) broker.getValue("config","ContextTools"); registerTools(tools); } catch (InvalidTypeException it) { _log.exception(it); _log.error("config type not registered with broker!"); }... | 3,227,379 |
public void testGetSomethingThatsAlwaysThere() throws Exception { List l = q.getListByExample(new Experimenter()); assertTrue("Root has to exist.",l.size()>0); // Now let's try to map it. ExperimenterData expData = (ExperimenterData) mapper.map((Experimenter)l.get(... | public void testGetSomethingThatsAlwaysThere() throws Exception { List l = q.getListByExample(new Experimenter()); assertTrue("Root has to exist.",l.size()>0); // Now let's try to map it. ExperimenterData expData = (ExperimenterData) mapper.map((Experimenter)l.get(... | 3,227,380 |
public void testNowLetsTryToSaveSomething() throws Exception { // prepare data ImageData imgData = new ImageData(); imgData.setName("My test image"); imgData.setDescription("My test description"); // convert it Image img = (Image) reverse.map(imgData); img... | public void testNowLetsTryToSaveSomething() throws Exception { // prepare data ImageData imgData = new ImageData(); imgData.setName("My test image"); imgData.setDescription("My test description"); // convert it Image img = (Image) reverse.map(imgData); img... | 3,227,381 |
public byte[] encode(String s) { int hash = s.hashCode() % _size; if (hash < 0) hash = -hash; Bucket b = _cache[hash]; synchronized (b) { if (b.string1 == s) return b.bytes1; else if (b.string2 == s) return b.bytes2; else if (b.string3 == s) ... | public byte[] encode(String s) { int hash = s.hashCode() % _size; if (hash < 0) hash = -hash; Bucket b = _cache[hash]; synchronized (b) { if (b.string1 == s) return b.bytes1; else if (b.string2 == s) return b.bytes2; else if (b.string3 == s) ... | 3,227,382 |
public void top_local_setup() { int len = lvtbl.cnt(); //System.out.println("count = " + len); int i; if (len > 0) { i = ruby.getScope().getLocalNames() != null ? ruby.getScope().getLocalNames().size() : 0; if (i < len) { if (i == 0 || (ruby.getScope... | public void top_local_setup() { int len = lvtbl.cnt(); //System.out.println("count = " + len); int i; if (len > 0) { i = ruby.getScope().getLocalNames() != null ? ruby.getScope().getLocalNames().size() : 0; if (i < len) { if (i == 0 || (ruby.getScope... | 3,227,383 |
public void top_local_setup() { int len = lvtbl.cnt(); //System.out.println("count = " + len); int i; if (len > 0) { i = ruby.getScope().getLocalNames() != null ? ruby.getScope().getLocalNames().size() : 0; if (i < len) { if (i == 0 || (ruby.getScope... | public void top_local_setup() { int len = lvtbl.cnt(); //System.out.println("count = " + len); int i; if (len > 0) { i = ruby.getScope().getLocalNames() != null ? ruby.getScope().getLocalNames().size() : 0; if (i < len) { if (i == 0 || (ruby.getScope... | 3,227,384 |
private File[] locateBuildJars() throws Exception { File[] jars = new File[6]; jars[0] = new File(mavenPath("ant","ant","1.6.5")); jars[1] = new File(mavenPath("ant","ant-launcher","1.6.5")); jars[2] = new File(mavenPath("xml-apis","xml-apis","1.0.b2")); jars[3] = new File(mavenPath("xerces","xerce... | private File[] locateBuildJars() throws Exception { File[] jars = new File[6]; jars[0] = new File(mavenPath("ant","ant","1.6.5")); jars[1] = new File(mavenPath("ant","ant-launcher","1.6.5")); jars[2] = new File(mavenPath("xml-apis","xml-apis","1.0.b2")); jars[3] = new File(mavenPath("xerces","xerce... | 3,227,385 |
private int parse_regx(int term, int paren) { int c; char kcode = 0; boolean once = false; int nest = 0; int options = 0; int re_start = ruby_sourceline; NODE list = null; newtok(); regx_end: while ((c = nextc()) != -1) { if (c == term... | private int parse_regx(int term, int paren) { int c; char kcode = 0; boolean once = false; int nest = 0; int options = 0; int re_start = ruby_sourceline; NODE list = null; newtok(); regx_end: while ((c = nextc()) != -1) { if (c == term... | 3,227,387 |
void rb_backref_set(VALUE val) { if (ruby.rubyScope.getLocalVars() != null) { ruby.rubyScope.setLocalVars(1, val); } else { special_local_set('~', val); } } | void rb_backref_set(VALUE val) { if (ruby.rubyScope.getLocalVars() != null) { ruby.rubyScope.setLocalVars(1, val); } else { special_local_set('~', val); } } | 3,227,388 |
void rb_lastline_set(VALUE val) { if (ruby.rubyScope.getLocalVars() != null) { ruby.rubyScope.setLocalVars(0, val); } else { special_local_set('_', val); } } | void rb_lastline_set(VALUE val) { if (ruby.rubyScope.getLocalVars() != null) { ruby.rubyScope.setLocalVars(0, val); } else { special_local_set('_', val); } } | 3,227,389 |
private void special_local_set(char c, VALUE val) { top_local_init(); int cnt = local_cnt(c); top_local_setup(); ruby.rubyScope.setLocalVars(cnt, val); } | private void special_local_set(char c, VALUE val) { top_local_init(); int cnt = local_cnt(c); top_local_setup(); ruby.rubyScope.setLocalVars(cnt, (RubyObject)val); } | 3,227,390 |
private int tokadd_escape() { int c; switch (c = nextc()) { case '\n': return 0; /* just ignore */ case '0': case '1': case '2': case '3': /* octal constant */ case '4': case '5': case '6': case '7': { int i; tokadd('\\'); tokadd(c); ... | private int tokadd_escape(int term /* FIX 1.6.5*/) { int c; switch (c = nextc()) { case '\n': return 0; /* just ignore */ case '0': case '1': case '2': case '3': /* octal constant */ case '4': case '5': case '6': case '7': { int i; tokadd('\\'); ... | 3,227,391 |
private int tokadd_escape() { int c; switch (c = nextc()) { case '\n': return 0; /* just ignore */ case '0': case '1': case '2': case '3': /* octal constant */ case '4': case '5': case '6': case '7': { int i; tokadd('\\'); tokadd(c); ... | private int tokadd_escape() { int c; switch (c = nextc()) { case '\n': return 0; /* just ignore */ case '0': case '1': case '2': case '3': /* octal constant */ case '4': case '5': case '6': case '7': { int i; tokadd('\\'); tokadd(c); ... | 3,227,392 |
private int tokadd_escape() { int c; switch (c = nextc()) { case '\n': return 0; /* just ignore */ case '0': case '1': case '2': case '3': /* octal constant */ case '4': case '5': case '6': case '7': { int i; tokadd('\\'); tokadd(c); ... | private int tokadd_escape() { int c; switch (c = nextc()) { case '\n': return 0; /* just ignore */ case '0': case '1': case '2': case '3': /* octal constant */ case '4': case '5': case '6': case '7': { int i; tokadd('\\'); tokadd(c); ... | 3,227,393 |
private int tokadd_escape() { int c; switch (c = nextc()) { case '\n': return 0; /* just ignore */ case '0': case '1': case '2': case '3': /* octal constant */ case '4': case '5': case '6': case '7': { int i; tokadd('\\'); tokadd(c); ... | private int tokadd_escape() { int c; switch (c = nextc()) { case '\n': return 0; /* just ignore */ case '0': case '1': case '2': case '3': /* octal constant */ case '4': case '5': case '6': case '7': { int i; tokadd('\\'); tokadd(c); ... | 3,227,394 |
private int tokadd_escape() { int c; switch (c = nextc()) { case '\n': return 0; /* just ignore */ case '0': case '1': case '2': case '3': /* octal constant */ case '4': case '5': case '6': case '7': { int i; tokadd('\\'); tokadd(c); ... | private int tokadd_escape() { int c; switch (c = nextc()) { case '\n': return 0; /* just ignore */ case '0': case '1': case '2': case '3': /* octal constant */ case '4': case '5': case '6': case '7': { int i; if (c != term) { /* FIX 1.6.5*/ tokadd('... | 3,227,395 |
private void void_expr(NODE node) { String useless = null; if (!RTEST(ruby_verbose)) return; if (node == null) return; again:for(;;) { switch (nd_type(node)) { case NODE.NODE_NEWLINE: node = node.nd_next(); continue again; case NODE.NODE_CA... | private void void_expr(NODE node) { String useless = null; if (!RTEST(ruby_verbose)) return; if (node == null) return; again:for(;;) { switch (nd_type(node)) { case NODE.NODE_NEWLINE: node = node.nd_next(); continue again; case NODE.NODE_CA... | 3,227,396 |
private void void_expr(NODE node) { String useless = null; if (!RTEST(ruby_verbose)) return; if (node == null) return; again:for(;;) { switch (nd_type(node)) { case NODE.NODE_NEWLINE: node = node.nd_next(); continue again; case NODE.NODE_CA... | private void void_expr(NODE node) { String useless = null; if (!RTEST(ruby_verbose)) return; if (node == null) return; again:for(;;) { switch (nd_type(node)) { case NODE.NODE_NEWLINE: node = node.nd_next(); continue again; case NODE.NODE_CA... | 3,227,397 |
private int yylex() { int c; boolean space_seen = false; boolean cmd_state; kwtable kw; cmd_state = command_start; command_start = false; retry:for(;;) { switch (c = nextc()) { case '\0': /* NUL */ case '\004': /* ^D */ case '\032': /* ^Z */ case -1: /* end of... | private int yylex() { int c; boolean space_seen = false; boolean cmd_state; kwtable kw; cmd_state = command_start; command_start = false; retry:for(;;) { switch (c = nextc()) { case '\0': /* NUL */ case '\004': /* ^D */ case '\032': /* ^Z */ case -1: /* end of... | 3,227,398 |
public RubyFixnum(Ruby ruby, long value) { super(ruby, ruby.getClasses().getFixnumClass()); this.value = value; } | public RubyFixnum(Ruby ruby, long value) { super(ruby, ruby.getClasses().getFixnumClass()); this.value = value; } | 3,227,399 |
public void nd_head(NODE n) { u1 = n; } | public void nd_head(NODE n) { u1 = n; } | 3,227,400 |
private RubyId(Ruby ruby, int value) { super(); this.ruby = ruby; this.value = value; } | private RubyId(Ruby ruby, int value) { super(); this.ruby = ruby; this.value = value; } | 3,227,401 |
public void nd_end(NODE n) { u2 = n; } | public void nd_end(NODE n) { u2 = n; } | 3,227,402 |
public void nd_cnt(int i) { u3 = new Integer(i); } | public void nd_cnt(int i) { u3 = new Integer(i); } | 3,227,403 |
public RubyString(Ruby ruby, String str) { this(ruby, ruby.getClasses().getStringClass(), str); } | public RubyString(Ruby ruby, String str) { this(ruby, ruby.getClasses().getStringClass(), str); } | 3,227,404 |
public void nd_iter(NODE n) { u3 = n; } | public void nd_iter(NODE n) { u3 = n; } | 3,227,405 |
public void nd_nth(int i) { u2 = new Integer(i); } | public void nd_nth(int i) { u2 = new Integer(i); } | 3,227,406 |
public void nd_cflag(RubyId id) { u2 = id; } | public void nd_cflag(RubyId id) { u2 = id; } | 3,227,407 |
public static void print(int indent, Object o, Set visited) { if (o == null) return; if (visited.contains(o)) { indent(indent); System.out.println("(...@" + Integer.toHexString(o.hashCode()) + "...)"); } else if (o instanceof NODE) ((NODE)o).print(indent,... | public static void print(int indent, Object o, Set visited) { if (o == null) return; if (visited.contains(o)) { indent(indent); System.out.println("(...@" + Integer.toHexString(o.hashCode()) + "...)"); } else if (o instanceof NODE) ((NODE)o).print(indent,... | 3,227,408 |
public void nd_aid(RubyId id) { u3 = id; } | public void nd_aid(RubyId id) { u3 = id; } | 3,227,409 |
public void nd_noex(int i) { u1 = new Integer(i); } | public void nd_noex(int i) { u1 = new Integer(i); } | 3,227,410 |
public void testFavs() throws Exception { FavoriteService fs = (FavoriteService) getBean("favoriteService"); Map favorites = fs.getFavorites(); assertNotNull(favorites); assertEquals(1, favorites.size()); assertEquals("Grey Goose", favorites.get("Dan")); } | public void testFavs() throws Exception { FavoriteService fs = (FavoriteService) getBean("favoriteService"); Map favorites = fs.getFavorites(); assertNotNull(favorites); assertEquals(2, favorites.size()); assertEquals("Grey Goose", favorites.get("Dan")); } | 3,227,411 |
public static void main(String arg[]) { Log.traceExceptions(true); Log.setLevel(Log.ALL); Log.setTarget(System.err); if (arg.length != 0) { System.out.println("Enabling log types"); Log.enableTypes(arg); } // Build a context WebMacro wm = null; Context conte... | public static void main(String arg[]) { Log.traceExceptions(true); Log.setLevel(Log.ALL); Log.setTarget(System.err); if (arg.length != 0) { System.out.println("Enabling log types"); Log.enableTypes(arg); } // Build a context WebMacro wm = null; Context conte... | 3,227,413 |
private void addRow(GridBagLayout gridbag, GridBagConstraints c, JPanel main, int index, DataObject data) { //The image has not been created. if (data instanceof ImageSummary) { main.add(new JLabel("The selected image hasn't been classified")); return; ... | private void addRow(GridBagLayout gridbag, GridBagConstraints c, JPanel main, int index, DataObject data) { //The image has not been created. if (data instanceof ImageSummary) { main.add(new JLabel("The selected image hasn't been classified")); return; ... | 3,227,414 |
private void addRow(GridBagLayout gridbag, GridBagConstraints c, JPanel main, int index, DataObject data) { //The image has not been created. if (data instanceof ImageSummary) { main.add(new JLabel("The selected image hasn't been classified")); return; ... | private void addRow(GridBagLayout gridbag, GridBagConstraints c, JPanel main, int index, DataObject data) { //The image has not been created. if (data instanceof ImageSummary) { main.add(new JLabel(UNCLASSIFIED_TEXT)); return; } JCheckBox ... | 3,227,415 |
protected JComponent getClassifPanel() { JPanel main = new JPanel(); main.setBorder(BorderFactory.createEmptyBorder(5, 10, 5, 10)); GridBagLayout gridbag = new GridBagLayout(); main.setLayout(gridbag); GridBagConstraints cst = new GridBagConstraints(); cst.ipadx = Classi... | protected JComponent getClassifPanel() { JPanel main = new JPanel(); main.setBorder(BorderFactory.createEmptyBorder(5, 10, 5, 10)); GridBagLayout gridbag = new GridBagLayout(); main.setLayout(gridbag); GridBagConstraints cst = new GridBagConstraints(); cst.ipadx = Classi... | 3,227,416 |
protected JComponent getClassifPanel() { JPanel main = new JPanel(); main.setBorder(BorderFactory.createEmptyBorder(5, 10, 5, 10)); GridBagLayout gridbag = new GridBagLayout(); main.setLayout(gridbag); GridBagConstraints cst = new GridBagConstraints(); cst.ipadx = Classi... | protected JComponent getClassifPanel() { JPanel main = new JPanel(); main.setBorder(BorderFactory.createEmptyBorder(5, 10, 5, 10)); GridBagLayout gridbag = new GridBagLayout(); main.setLayout(gridbag); GridBagConstraints cst = new GridBagConstraints(); cst.ipadx = Classi... | 3,227,417 |
ClassifierWin(Set availablePaths) { super(); if (availablePaths == null) throw new IllegalArgumentException("no paths"); setModal(true); setTitle("Classification"); //AttachWindow Listener addWindowListener(new WindowAdapter() { public void ... | ClassifierWin(Set availablePaths) { super(); if (availablePaths == null) throw new IllegalArgumentException("no paths"); setModal(true); setTitle("Classification"); //AttachWindow Listener addWindowListener(new WindowAdapter() { public void ... | 3,227,418 |
private void buildGUI() { IconManager icons = IconManager.getInstance(); TitlePanel tp = new TitlePanel("Classification", getWinTitle(), getWinNote(), icons.getIcon(IconManager.CATEGORY_BIG)); //Set layout and add components setLayout(new BorderLayout(0, 0)); a... | protected void buildGUI() { IconManager icons = IconManager.getInstance(); TitlePanel tp = new TitlePanel("Classification", getWinTitle(), getWinNote(), icons.getIcon(IconManager.CATEGORY_BIG)); //Set layout and add components setLayout(new BorderLayout(0, 0)); ... | 3,227,419 |
private void buildGUI() { IconManager icons = IconManager.getInstance(); TitlePanel tp = new TitlePanel("Classification", getWinTitle(), getWinNote(), icons.getIcon(IconManager.CATEGORY_BIG)); //Set layout and add components setLayout(new BorderLayout(0, 0)); a... | private void buildGUI() { IconManager icons = IconManager.getInstance(); TitlePanel tp = new TitlePanel("Classification", getWinTitle(), getWinNote(), icons.getIcon(IconManager.CATEGORY_BIG)); //Set layout and add components setLayout(new BorderLayout(0, 0)); a... | 3,227,420 |
void setSelectedCategory(CategoryData category) { Object oldValue = selected_category; selected_category = category; firePropertyChange(SELECTED_CATEGORY_PROPERTY, oldValue, category); setClosed(); } | void setSelectedCategory(CategoryData category) { Object oldValue = selected_category; selected_category = category; firePropertyChange(SELECTED_CATEGORY_PROPERTY, oldValue, selected_category); setClosed(); } | 3,227,421 |
public static OmeroContext getClientContext( Properties props ) { if ( props == null ) throw new ApiUsageException( "Properties argument may not be null." ); Properties copy = new Properties( props ); ConstructorArgumentValues ctorArg... | public static OmeroContext getClientContext() { if ( props == null ) throw new ApiUsageException( "Properties argument may not be null." ); Properties copy = new Properties( props ); ConstructorArgumentValues ctorArg = new Constructor... | 3,227,423 |
public static OmeroContext getClientContext( Properties props ) { if ( props == null ) throw new ApiUsageException( "Properties argument may not be null." ); Properties copy = new Properties( props ); ConstructorArgumentValues ctorArg... | public static OmeroContext getClientContext( Properties props ) { if ( props == null ) throw new ApiUsageException( "Properties argument may not be null." ); Properties copy = new Properties( props ); ConstructorArgumentValues ctorArg... | 3,227,424 |
public static Callback getSingletonMethod(Class type, String method) { return new ReflectionCallbackMethod(type, method, false, true); } | public static Callback getSingletonMethod(Class type, String method) { return new ReflectionCallbackMethod(type, method, new Class[0], false, true, 0); } | 3,227,426 |
public static RubyException newException(Ruby ruby, RubyClass excptnClass, String msg) { RubyException newException = new RubyException(ruby, excptnClass); newException.setInstanceVar("mesg", RubyString.m_newString(ruby, msg)); return newException; } | public static RubyException newException(Ruby ruby, RubyClass excptnClass, String msg) { RubyException newException = new RubyException(ruby, excptnClass); newException.setInstanceVar("mesg", RubyString.m_newString(ruby, msg)); return newException; } | 3,227,427 |
public IRubyObject callMethod(String name, IRubyObject arg) { return callMethod(name, new IRubyObject[] { arg }); } | public IRubyObject callMethod(String name, IRubyObject arg) { return callMethod(name, new IRubyObject[] { arg }); } | 3,227,428 |
public static RubyProc newProc(IRuby runtime, boolean isLambda) { ThreadContext tc = runtime.getCurrentContext(); if (!tc.isBlockGiven() && !tc.isFBlockGiven()) { throw runtime.newArgumentError("tried to create Proc object without a block"); } if (isLambda && !... | public static RubyProc newProc(IRuby runtime, boolean isLambda) { ThreadContext tc = runtime.getCurrentContext(); if (!tc.isBlockGiven() && !tc.isFBlockGiven()) { throw runtime.newArgumentError("tried to create Proc object without a block"); } if (isLambda && !... | 3,227,429 |
public static RubyString newString(Ruby ruby, String str) { return new RubyString(ruby, str); } | public static RubyString newString(Ruby ruby, String str) { return new RubyString(ruby, str); } | 3,227,430 |
public StringBuffer format(Date date, StringBuffer toAppendTo, FieldPosition fieldPosition) { calendar.setTime(date); Iterator iter = compiledPattern.iterator(); while (iter.hasNext()) { Token token = (Token) iter.next(); switch (token.getFormat()) { ... | public StringBuffer format(Date date, StringBuffer toAppendTo, FieldPosition fieldPosition) { calendar.setTime(date); Iterator iter = compiledPattern.iterator(); while (iter.hasNext()) { Token token = (Token) iter.next(); switch (token.getFormat()) { ... | 3,227,432 |
public StringBuffer format(Date date, StringBuffer toAppendTo, FieldPosition fieldPosition) { calendar.setTime(date); Iterator iter = compiledPattern.iterator(); while (iter.hasNext()) { Token token = (Token) iter.next(); switch (token.getFormat()) { ... | public StringBuffer format(Date date, StringBuffer toAppendTo, FieldPosition fieldPosition) { calendar.setTime(date); Iterator iter = compiledPattern.iterator(); while (iter.hasNext()) { Token token = (Token) iter.next(); switch (token.getFormat()) { ... | 3,227,433 |
public static RubyObject convertJavaToRuby(Ruby ruby, Object object, Class javaClass) { if (object == null) { return ruby.getNil(); } if (javaClass == Boolean.TYPE || javaClass == Boolean.class) { return RubyBoolean.m_newBoolean(ruby, ((Boolean)object).booleanValue()); ... | public static RubyObject convertJavaToRuby(Ruby ruby, Object object, Class javaClass) { if (object == null) { return ruby.getNil(); } if (javaClass == Boolean.TYPE || javaClass == Boolean.class) { return RubyBoolean.m_newBoolean(ruby, ((Boolean)object).booleanValue()); ... | 3,227,434 |
public RubyJavaObject(Ruby ruby, RubyModule rubyClass, Object value) { super(ruby, rubyClass); this.value = value; } | public RubyJavaObject(Ruby ruby, RubyModule rubyClass, Object value) { super(ruby, rubyClass); this.value = value; } | 3,227,435 |
public void execute() throws BuildException { if (namespace == null) { throw new BuildException("'namespace' must be specified"); } if (srcDir == null) { throw new BuildException("'srcDir' must be specified"); } if (destFile == null) { throw new Bu... | public void execute() throws BuildException { if (namespace == null) { throw new BuildException("'namespace' must be specified"); } if (srcDir == null) { throw new BuildException("'srcDir' must be specified"); } if (destFile == null) { throw new Bu... | 3,227,436 |
public XmlMetadataGenerator(LogFacade log, String metaInfDir, File schema) { this.metaInfDir = metaInfDir; this.log = log; this.schema = schema; } | public XmlMetadataGenerator(String metaInfDir, File schema) { this.metaInfDir = metaInfDir; this.log = log; this.schema = schema; } | 3,227,438 |
public XmlMetadataGenerator(LogFacade log, String metaInfDir, File schema) { this.metaInfDir = metaInfDir; this.log = log; this.schema = schema; } | public XmlMetadataGenerator(LogFacade log, String metaInfDir, File schema) { this.metaInfDir = metaInfDir; this.schema = schema; } | 3,227,439 |
public DocumentationGenerator(LogFacade log, File destFile) { this.destFile = destFile; this.log = log; } | public DocumentationGenerator(File destFile) { this.destFile = destFile; this.log = log; } | 3,227,440 |
public DocumentationGenerator(LogFacade log, File destFile) { this.destFile = destFile; this.log = log; } | public DocumentationGenerator(LogFacade log, File destFile) { this.destFile = destFile; } | 3,227,441 |
public XsdGenerator(LogFacade log, File destFile) { this.destFile = destFile; this.log = log; } | public XsdGenerator(File destFile) { this.destFile = destFile; this.log = log; } | 3,227,442 |
public XsdGenerator(LogFacade log, File destFile) { this.destFile = destFile; this.log = log; } | public XsdGenerator(LogFacade log, File destFile) { this.destFile = destFile; } | 3,227,443 |
public Frame() { } | public Frame(Ruby ruby) { this.ruby = ruby; } | 3,227,444 |
public void push() { Frame oldFrame = new Frame(self, args, lastFunc, lastClass, cbase, prev, tmp, file, line, iter, flags); prev = oldFrame; tmp = null; // file = null // line = // iter = // cbase = cbase; ... | public void push() { Frame oldFrame = new Frame(ruby, self, args, lastFunc, lastClass, cbase, prev, tmp, file, line, iter, flags); prev = oldFrame; tmp = null; // file = null // line = // iter = // cbase = cba... | 3,227,445 |
public void push() { Frame oldFrame = new Frame(self, args, lastFunc, lastClass, cbase, prev, tmp, file, line, iter, flags); prev = oldFrame; tmp = null; // file = null // line = // iter = // cbase = cbase; ... | public void push() { Frame oldFrame = new Frame(self, args, lastFunc, lastClass, cbase, prev, tmp, file, line, iter, flags); prev = oldFrame; tmp = null; // file = null // line = // iter = // cbase = cbase; ... | 3,227,446 |
public void cameraResized(Rectangle2D cameraBounds) { // OK, so the hotspots will be the margins *unless* for some reason // someone was stupid enough to set the margins larger than the // bounds, in which case we'll do nothing because someone was stupid // enough to pull off that ... | public void cameraResized(Rectangle2D cameraBounds) { // OK, so the hotspots will be the margins *unless* for some reason // someone was stupid enough to set the margins larger than the // bounds, in which case we'll do nothing because someone was stupid // enough to pull off that ... | 3,227,447 |
public void setActiveRegion(Rectangle2D region) { if(region != null) { activeRegion = region; recalculatePanNodes(); } else { region = new Rectangle2D.Double(0,0,0,0); } } | public void setActiveRegion(Rectangle2D region) { if(region != null) { activeRegion = region; } else { region = new Rectangle2D.Double(0,0,0,0); } } | 3,227,448 |
public void stateChanged(ChangeEvent ce) { Object source = ce.getSource(); if (source instanceof HiViewer) { HiViewer parentModel = model.getParentModel(); if (parentModel.getState() == HiViewer.LOADING_THUMBNAILS) { parentModel.getBrowser().addPropertyChangeLis... | public void stateChanged(ChangeEvent ce) { Object source = ce.getSource(); if (source instanceof HiViewer) { HiViewer parentModel = model.getParentModel(); if (parentModel.getState() == HiViewer.READY) { parentModel.getBrowser().addPropertyChangeListener( ... | 3,227,449 |
private IRubyObject defaultObjectUnmarshal(IRubyObject proc) throws IOException { RubySymbol className = (RubySymbol) unmarshalObject(); // ... FIXME: handle if class doesn't exist ... RubyClass type = (RubyClass) runtime.getClassFromPath(className.asSymbol()); assert type != null : "typ... | private IRubyObject defaultObjectUnmarshal(IRubyObject proc) throws IOException { RubySymbol className = (RubySymbol) unmarshalObject(); // ... FIXME: handle if class doesn't exist ... RubyClass type = (RubyClass) runtime.getClassFromPath(className.asSymbol()); assert type != null : "typ... | 3,227,451 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.