Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
38,800 | int () { org.codehaus.groovy.runtime.DefaultGroovyMethods.print(this, "foo"); } | foo3 |
38,801 | int () {return 2;} | foo6 |
38,802 | int () { if (true)return 3; else return 4; } | foo8 |
38,803 | void () { if (true)3; else 4; } | foo9 |
38,804 | void () { if (true)return 3; else 4; } | foo10 |
38,805 | void () { org.codehaus.groovy.runtime.DefaultGroovyMethods.print(this, CONST); } | print |
38,806 | void (java.lang.Integer CONST) { Foo.CONST = CONST; } | setCONST |
38,807 | void (java.lang.String[] args) { new concurency(new groovy.lang.Binding(args)).run(); } | main |
38,808 | void (java.lang.Object it) { for(java.lang.Integer i : new groovy.lang.IntRange(1, 8)){ org.codehaus.groovy.runtime.DefaultGroovyStaticMethods.sleep(null, 30); out("thread loop " + java.lang.String.valueOf(i)); counter.incrementAndGet(); } } | doCall |
38,809 | void () { doCall(null); } | doCall |
38,810 | int () { return prop; } | getProp |
38,811 | void (int prop) { this.prop = prop; } | setProp |
38,812 | void (java.lang.String[] args) { new intPropAssignment(new groovy.lang.Binding(args)).run(); } | main |
38,813 | int (A propOwner, int prop) { propOwner.setProp(prop); return prop; } | setProp |
38,814 | void () { final groovy.lang.Reference<java.lang.Integer> x = new groovy.lang.Reference<java.lang.Integer>(2); new java.lang.Runnable(){ public void run() { x.set(4); org.codehaus.groovy.runtime.DefaultGroovyMethods.print(this, x.get()); } }.run(); } | foo |
38,815 | void () { x.set(4); org.codehaus.groovy.runtime.DefaultGroovyMethods.print(this, x.get()); } | run |
38,816 | void (java.util.LinkedHashMap<java.lang.Integer, java.lang.Integer> field) { this.field = field; } | setField |
38,817 | void (java.util.ArrayList<java.lang.Integer> second) { this.second = second; } | setSecond |
38,818 | void (java.lang.Integer a) { this.a = a; } | setA |
38,819 | void (java.lang.Integer b) { this.b = b; } | setB |
38,820 | void (java.util.LinkedHashMap<java.lang.Integer, java.lang.Integer> c) { this.c = c; } | setC |
38,821 | void (java.lang.Integer d) { this.d = d; } | setD |
38,822 | int () { return x; } | getX |
38,823 | void (int x) { this.x = x; } | setX |
38,824 | void () { java.lang.String b = """ this is "good\""""; java.lang.String c = "\"\""; java.lang.String d = " "; } | x |
38,825 | void (java.lang.String[] args) { new methodParamInClosureImplicitReturn(new groovy.lang.Binding(args)).run(); } | main |
38,826 | void (int x) {final groovy.lang.Reference<java.lang.Integer> i = new groovy.lang.Reference<java.lang.Integer>(x); org.codehaus.groovy.runtime.DefaultGroovyMethods.each(new java.util.ArrayList<java.lang.Integer>(java.util.Arrays.asList(1, 2, 3)), new groovy.lang.Closure<java.lang.Integer>(this, this) { public java.lang.... | foo |
38,827 | void () { for(int i = 0;i < 10;i++){} // multiple loop variables not yet supported // for (int i = 0, j = 0; i < 10; i++, j++) {} // for (def i = 0, b = true; i < 10; i++, b = !b) {} } | a |
38,828 | void (java.lang.Byte[] input, int offset, int len) {} | update |
38,829 | void (java.lang.String[] args) { new hash(new groovy.lang.Binding(args)).run(); } | main |
38,830 | void (java.lang.Byte[] buf, int bytesRead) { messageDigest.update(buf, 0, bytesRead); } | doCall |
38,831 | void (java.lang.String[] args) { java.lang.Integer i = 4; i++; assert i == 5; java.lang.Integer a = ++i + i++; assert i == 7; assert a == 12; } | main |
38,832 | void (java.lang.String[] args) { new anonymous(new groovy.lang.Binding(args)).run(); } | main |
38,833 | void () { org.codehaus.groovy.runtime.DefaultGroovyMethods.println(this, foo); } | run |
38,834 | void (java.lang.String[] args) { new removeTransformAnno(new groovy.lang.Binding(args)).run(); } | main |
38,835 | void (final java.lang.Object x) { java.lang.Object a; } | foo |
38,836 | void (String[] args) { new ChangeVisibilityAndName().foo("a"); } | main |
38,837 | void (String[] args) { new OneNewParameter().foo("5"); } | main |
38,838 | void (String[] args) { new RemoveParameter().foo(); } | main |
38,839 | void (String[] args) { new InsertParameter().foo("3", 5, 4) } | main |
38,840 | void (String[] args) { new AddException().foo(); } | main |
38,841 | void (String[] args) { new Foo(5) { public String toString(){return "";} } } | main |
38,842 | String () {return "";} | toString |
38,843 | void (String[] args) { new OneNewParameter().foo(); } | main |
38,844 | void (String[] args) { try { new AddException().foo(); } catch (java.io.IOException e) { throw new RuntimeException(e); } } | main |
38,845 | void (String[] args) { new ChangeVisibilityAndName().newName("a"); } | main |
38,846 | void (String[] args) { new RemoveParameter().foo(); } | main |
38,847 | void (String[] args) { new MoveVarArgParameters().foo("a", "b", "c") } | main |
38,848 | void (String[] args) { new Foo() { public String toString(){return "";} } } | main |
38,849 | String () {return "";} | toString |
38,850 | void (String[] args) { new InsertParameter().foo("3", 4); } | main |
38,851 | void (String[] args) { new MoveVarArgParameters().foo(new String[]{"b", "c"}, "a") } | main |
38,852 | void (int j, int i) { return i - j; } | method |
38,853 | void (String[] args) { System.out.println(new GroovyClass("any", <caret>666)); } | main |
38,854 | void (int i, int j) { return i - j; } | method |
38,855 | void (String[] args) { GroovyClass.foo("bar", <caret>2); } | main |
38,856 | int (byte blah) { return <selection>blah + 3</selection>; } | baz |
38,857 | void () { } | method |
38,858 | void () { System.out.println(<selection>1 + 2</selection>); System.out.println(anObject); } | method |
38,859 | void (int x, int y) { System.out.println(<selection>x+y</selection>); return x+1+y; } | foo |
38,860 | int (int x, int y) { return <selection>x+1</selection>+y; } | m |
38,861 | void () { System.out.println(<selection>MySingleton.INSTANCE</selection>); } | func |
38,862 | int () { return i; } | getI |
38,863 | int (int x, int y) { return <selection>x+1</selection>+y; } | m |
38,864 | int () { return i; } | getI |
38,865 | int (int a, int... values) { if(a > values.length) { return <selection>0</selection>; } else { return 0; } } | m |
38,866 | void (String[] args) { System.out.println(new X().<error descr="'x' has private access in 'X'">x</error>); } | main |
38,867 | void (String[] args) { for (MyEnum e : MyEnum.values()) { switch (e) { case E1: System.out.println("E1"); break; case <error descr="Cannot resolve symbol 'E4'">E4</error>: System.out.println("fail"); } } } | main |
38,868 | Object () {} | a |
38,869 | Object () {} | a |
38,870 | ProtectionDomain () { synchronized (myProtectionDomainMonitor) { return myProtectionDomain; } } | getProtectionDomain |
38,871 | String (@NotNull Attribute key) { return null; } | getValue |
38,872 | ProtectionDomain () { return null; } | getProtectionDomain |
38,873 | String () { return getURL().toString(); } | toString |
38,874 | boolean (int bits) { if ((bits & 1) == 0 || bits % 3 == 0) { return false; } int sqrt = (int)Math.sqrt(bits); for (int i = 6; i <= sqrt; i += 6) { if (bits % (i - 1) == 0 || bits % (i + 1) == 0) { return false; } } return true; } | isPrime |
38,875 | void (int prime, int prime2) { for (int i = 0; i < myHashFunctionCount; ++i) { int abs = Math.abs((i * prime + prime2 * (myHashFunctionCount - i)) % myBitsCount); elementSet[abs >> BITS_PER_ELEMENT] |= (1L << abs); } } | addIt |
38,876 | boolean (int prime, int prime2) { for(int i = 0; i < myHashFunctionCount; ++i) { int abs = Math.abs((i * prime + prime2 * (myHashFunctionCount - i)) % myBitsCount); if ((elementSet[abs >> BITS_PER_ELEMENT] & (1L << abs)) == 0) { return false; } } return true; } | maybeContains |
38,877 | void (@NotNull ByteBuffer buffer) { buffer.putInt(myHashFunctionCount); buffer.putInt(myBitsCount); buffer.asLongBuffer().put(elementSet); buffer.position(buffer.position() + elementSet.length * 8); } | save |
38,878 | boolean (@NotNull URL url) { String name = PathUtilRt.getFileName(url.getPath()); //noinspection SpellCheckingInspection return name.endsWith(".jar") && (name.startsWith("bcprov-") || name.startsWith("bcpkix-")); // BouncyCastle needs protection domain } | isUrlNeedsProtectionDomain |
38,879 | ClassPath () { return myClassPath; } | getClassPath |
38,880 | long[] () { return new long[]{ClassPath.getTotalTime(), ClassPath.getTotalRequests()}; } | getLoadingStats |
38,881 | Builder (@NotNull List<URL> urls) { myURLs = urls; return this; } | urls |
38,882 | Builder (@NotNull URL... urls) { myURLs = Arrays.asList(urls); return this; } | urls |
38,883 | Builder (ClassLoader classLoader) { if (classLoader instanceof URLClassLoader) { return urls(((URLClassLoader)classLoader).getURLs()); } String[] parts = System.getProperty("java.class.path").split(File.pathSeparator); myURLs = new ArrayList<>(parts.length); for (String s : parts) { try { myURLs.add(new File(s).toURI()... | urlsFromAppClassLoader |
38,884 | Builder (ClassLoader parent) { myParent = parent; return this; } | parent |
38,885 | Builder () { myLockJars = true; return this; } | allowLock |
38,886 | Builder () { myUseCache = true; return this; } | useCache |
38,887 | Builder () { myUsePersistentClasspathIndex = ourClassPathIndexEnabled; return this; } | usePersistentClasspathIndexForLocalClassDirectories |
38,888 | Builder (boolean allowBootstrapResources) { myAllowBootstrapResources = allowBootstrapResources; return this; } | allowBootstrapResources |
38,889 | Builder (boolean pleaseBeLazy) { myLazyClassloadingCaches = pleaseBeLazy; return this; } | useLazyClassloadingCaches |
38,890 | Builder () { Set<URL> result = new HashSet<>(); for (URL url : myURLs) { if (isUrlNeedsProtectionDomain(url)) { result.add(url); } } myURLsWithProtectionDomain = result; return this; } | autoAssignUrlsWithProtectionDomain |
38,891 | UrlClassLoader () { return new UrlClassLoader(this); } | get |
38,892 | UrlClassLoader (List<URL> urls) { return build().urls(urls).useCache().allowLock().get(); } | create |
38,893 | Builder () { return new Builder(); } | build |
38,894 | ClassPath (@NotNull Builder builder) { Set<URL> urlsWithProtectionDomain = builder.myURLsWithProtectionDomain; if (urlsWithProtectionDomain == null) { urlsWithProtectionDomain = Collections.emptySet(); } return new ClassPath(myURLs, builder.myLockJars, builder.myUseCache, builder.myUsePersistentClasspathIndex, true, bu... | createClassPath |
38,895 | void (@NotNull URL url) { getClassPath().addURL(url); myURLs.add(url); } | addURL |
38,896 | URL (String name) { if (ourSkipFindingResource.get() != null) { return null; } Resource res = findResourceImpl(name); return res == null ? null : res.getURL(); } | findResource |
38,897 | Resource (String name) { String n = FileUtilRt.toCanonicalPath(name, '/', false); Resource resource = getClassPath().getResource(n); if (resource == null && n.startsWith("/")) { // compatibility with existing code, non-standard classloader behavior resource = getClassPath().getResource(n.substring(1)); } return resourc... | findResourceImpl |
38,898 | InputStream (String name) { if (myAllowBootstrapResources) { ourSkipFindingResource.set(Boolean.TRUE); try { InputStream stream = super.getResourceAsStream(name); if (stream != null) { return stream; } } finally { ourSkipFindingResource.set(null); } } try { Resource res = findResourceImpl(name); return res == null ? nu... | getResourceAsStream |
38,899 | Enumeration<URL> (String name) { return getClassPath().getResources(name); } | findResources |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.