Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
55,000 | void () {} | protectedMethod |
55,001 | void () {} | packageMethod |
55,002 | void () {} | privateMethod |
55,003 | void () {} | util1 |
55,004 | void () {} | util2 |
55,005 | void (String c) { color = c; } | setColor |
55,006 | String () { return color; } | getColor |
55,007 | void (int visibility) { int a = (visibility & 1) } | onChange |
55,008 | String () { return "a"; } | toString |
55,009 | String () { return null; } | nullableFun |
55,010 | String () { return ""; } | notNullableFun |
55,011 | int () { return 0; } | nonAbstractFun |
55,012 | void () { System.out.println("Run"); } | run |
55,013 | String (Object o, boolean b) { if (b) return (String) o; return ""; } | foo |
55,014 | int (int[] q, int[] a, int x, int len, int offset) { long xLong = x & LONG_MASK; long carry = 0; offset += len; for (int j=len-1; j >= 0; j--) { long product = (a[j] & LONG_MASK) * xLong + carry; long difference = q[offset--] - product; carry = (product >>> 32) + (((difference & LONG_MASK) > (((~(int)product) & LONG_MA... | mulsubBorrow |
55,015 | void () {} | foo2 |
55,016 | void () {} | foo3 |
55,017 | void () { } | foo |
55,018 | void () { int i = 1; String s = ""; } | foo |
55,019 | void (List<String> list) { int[] array = new int[10]; for (int i = 0; i < 10; i++){ array[i] = i; } for(String s : list) System.out.print(s); } | foo |
55,020 | void () { int i = 0; while(i++ < 10); System.out.println("Done"); } | aVoid |
55,021 | Iterator<String> () { return null; } | iterator |
55,022 | Iterator<String> (Iterator<String> i) { Iterator<String> j = i; return j; } | push |
55,023 | Iterator<String> () { return null; } | iterator |
55,024 | Iterator<String> (Iterator<String> i) { Iterator<String> j = i; return j; } | push |
55,025 | boolean () { return false; } | hasNext |
55,026 | String () { return null; } | next |
55,027 | void () { } | remove |
55,028 | void (String[] args) { List<String> x = new ArrayList<String>(); CollectionsKt.filter(x, new Function1<String, Boolean>() { @Override public Boolean invoke(String o) { return o.equals("a"); } }); Lazy<String> lazy = LazyKt.lazy(LazyThreadSafetyMode.NONE, new Function0<String>() { @Override public String invoke() { retu... | main |
55,029 | Boolean (String o) { return o.equals("a"); } | invoke |
55,030 | String () { return "aaa"; } | invoke |
55,031 | void (Function1<String, Unit> result) { result.invoke("a") } | f |
55,032 | Iterator<String> () { return null; } | iterator |
55,033 | Iterator<String> (Iterator<String> i) { Iterator<String> j = i; return j; } | push |
55,034 | void (boolean bool, char c, byte b, short s, int i, long l, float f, double d) { Boolean.toString(bool); Character.toString(c); Character.toString(i); Byte.toString(b); Short.toString(s); Integer.toString(i); Integer.toString(i, i); Integer.toString(i, 1); Integer.toString(i, 8); Integer.toString(i, 42.0); // invalid c... | foo |
55,035 | void (String[] args) { } | main |
55,036 | int () { return super.hashCode(); } | hashCode |
55,037 | boolean (Object o) { return super.equals(o); } | equals |
55,038 | String () { return super.toString(); } | toString |
55,039 | int () { return super.hashCode(); } | hashCode |
55,040 | boolean (Object o) { return super.equals(o); } | equals |
55,041 | String () { return super.toString(); } | toString |
55,042 | void () {} | foo |
55,043 | void () { super.foo(); } | foo |
55,044 | void (String[] args) { } | main |
55,045 | Java8Class () { return new Java8Class(); } | staticFun |
55,046 | int () {return 1;} | memberFun |
55,047 | String () { return "1"; } | testOverloads |
55,048 | String (int i) { return "2"; } | testOverloads |
55,049 | void () { Function0 staticFunFromSameClass = Java8Class::staticFun; staticFunFromSameClass.invoke(); Function0 staticFunFromAnotherClass = Test::staticFun; staticFunFromAnotherClass.invoke(); } | testStaticFunction |
55,050 | void () { Function1<Java8Class, Integer> memberFunFromClass = Java8Class::memberFun; memberFunFromClass.invoke(new Java8Class()); } | testMemberFunctionThroughClass |
55,051 | void () { Java8Class obj = new Java8Class(); Function0 memberFunFromSameClass = obj::memberFun; memberFunFromSameClass.invoke(); Test anotherObj = new Test(); Function0 memFunFromAnotherClass = anotherObj::memberFun; memFunFromAnotherClass.invoke(); Function0 memberFunThroughObj1 = field::memberFun; memberFunThroughObj... | testMemberFunctionThroughObject |
55,052 | void () { Function0 constructorSameClass = Java8Class::new; constructorSameClass.invoke(); Function0 qualifiedConstructorSameClass = test.Java8Class::new; qualifiedConstructorSameClass.invoke(); Function0 constructorAnotherClass = Test::new; constructorAnotherClass.invoke(); Function0 qualifiedConstructorAnotherClass =... | testConstructor |
55,053 | void () { Function1<String, Integer> memberFunFromClass = String::length; memberFunFromClass.invoke("str"); } | testLibraryFunctions |
55,054 | void () { Function0<String> constructorWithoutParams = Test::testOverloads; constructorWithoutParams.invoke(); Function1<Integer, String> constructorWithParam = Test::testOverloads; constructorWithParam.invoke(2) + 42; } | testOverloads |
55,055 | void () { Function0<List<String>> emptyList = Collections::emptyList; List<String> list = emptyList.invoke(); list.get(0); } | testGenericFunctions |
55,056 | int () { return 1; } | staticFun |
55,057 | int () { return 1; } | memberFun |
55,058 | int () { return super.hashCode(); } | hashCode |
55,059 | boolean (Object o) { return super.equals(o); } | equals |
55,060 | String () { return super.toString(); } | toString |
55,061 | double () { return foo(1, this::toDouble); } | nya |
55,062 | void () {} | test |
55,063 | int () { return super.hashCode(); } | hashCode |
55,064 | boolean (Object o) { return super.equals(o); } | equals |
55,065 | String () { return super.toString(); } | toString |
55,066 | void () { bar(Foo::getContent); } | test |
55,067 | void (Function<Foo, String> mapper) { } | bar |
55,068 | Java8Class () { return new Java8Class(); } | staticFun |
55,069 | int () { return 1; } | memberFun |
55,070 | String () { return "1"; } | testOverloads |
55,071 | String (int i) { return "2"; } | testOverloads |
55,072 | void () { JFunction0 staticFunFromSameClass = Java8Class::staticFun; staticFunFromSameClass.foo(); MethodReferenceHelperClass.staticFun0(Java8Class::staticFun); h.memberFun0(Java8Class::staticFun); JFunction0 staticFunFromAnotherClass = Test::staticFun; staticFunFromAnotherClass.foo(); MethodReferenceHelperClass.static... | testStaticFunction |
55,073 | void () { JFunction2<Java8Class, Integer> memberFunFromClass = Java8Class::memberFun; memberFunFromClass.foo(new Java8Class()); MethodReferenceHelperClass.staticFun2(Java8Class::memberFun); h.memberFun2(Java8Class::memberFun); } | testMemberFunctionThroughClass |
55,074 | void () { Java8Class obj = new Java8Class(); JFunction0 memberFunFromSameClass = obj::memberFun; memberFunFromSameClass.foo(); MethodReferenceHelperClass.staticFun0(obj::memberFun); h.memberFun0(obj::memberFun); Test anotherObj = new Test(); JFunction0 memFunFromAnotherClass = anotherObj::memberFun; memFunFromAnotherCl... | testMemberFunctionThroughObject |
55,075 | void () { JFunction0 constructorSameClass = Java8Class::new; constructorSameClass.foo(); MethodReferenceHelperClass.staticFun0(Java8Class::new); h.memberFun0(Java8Class::new); JFunction0 qualifiedConstructorSameClass = test.Java8Class::new; qualifiedConstructorSameClass.foo(); MethodReferenceHelperClass.staticFun0(test... | testConstructor |
55,076 | void () { JFunction2<String, Integer> memberFunFromClass = String::length; memberFunFromClass.foo("str"); new Thread(System.out::println).start(); ((Runnable) System.out::println).run(); } | testLibraryFunctions |
55,077 | void () { JFunction1<String> constructorWithoutParams = Test::testOverloads; constructorWithoutParams.foo(); MethodReferenceHelperClass.<String>staticFun1(Test::testOverloads); h.<String>memberFun1(Test::testOverloads); JFunction2<Integer, String> constructorWithParam = Test::testOverloads; constructorWithParam.foo(2);... | testOverloads |
55,078 | void () { JFunction1<List<String>> emptyList = Collections::emptyList; emptyList.foo(); MethodReferenceHelperClass.<List<String>>staticFun1(Collections::emptyList); h.<List<String>>memberFun1(Collections::emptyList); } | testGenericFunctions |
55,079 | int () { return 1; } | staticFun |
55,080 | int () { return 1; } | memberFun |
55,081 | void (int p1, int p2) { } | foo1 |
55,082 | void ( int p1, int p2) { } | foo2 |
55,083 | void (int p1, int p2) { } | foo3 |
55,084 | void ( int p1, int p2, int p3, int p4 ) { } | foo4 |
55,085 | String () { return ""; } | getString |
55,086 | void (String... args) { } | main |
55,087 | Q () { return value; } | unbox |
55,088 | String (List<Box<T>> list) { return list.stream().map(Box<T>::unbox).map(T::toString).reduce((s1,s2) -> s1 + ", " + s2 ).orElse(""); } | toStringAllBox |
55,089 | void () {} | test |
55,090 | void (String[] args) { List<String> names = Arrays.asList("A", "B"); List<Person> people = names.stream().map(Person::new).collect(Collectors.toList()); } | main |
55,091 | boolean (Object o) { return super.equals(o); } | equals |
55,092 | boolean (Object o) { return super.equals(o); } | equals |
55,093 | void (String[] args) {} | main |
55,094 | double () { //TODO explicitlly call apply here return foo(1, this::toDouble); } | nya |
55,095 | double () { return foo(1, this::toDouble); } | nya |
55,096 | void (int receiver) {} | foo |
55,097 | void (int receiver, String s, long l) {} | foo2 |
55,098 | void () {} | test |
55,099 | void () {} | f1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.