Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
54,900 | void () { int a = 1; /* comment */ if (a == 0) { System.out.println(""); } /* comment 2 */ int b = 2; /* comment 3 */ int c = 3; /* comment 4 */ int d = 4; /* comment 5 */ System.out.println(""); } | test2 |
54,901 | void () { int a = 1; /* * comment * comment */ if (a == 0) { System.out.println(""); } /* * comment 2 * comment 2 */ int b = 2; /* * comment 3 * comment 3 */ int c = 3; /* * comment 4 * comment 4 */ int d = 4; /* * comment 5 * comment 5 */ System.out.println(""); } | test3 |
54,902 | void (Integer state) { //some comment 1 someInt = state; //some comment 2 if (state == 2) System.out.println("2"); } | setState |
54,903 | Integer () { return someInt; } | getState |
54,904 | void () { System.out.println(); // comment // comment 2 // comment 3 } | foo |
54,905 | void (Integer state) { /*some comment 1/*/ /*some comment 2/*/ /*some comment 3/*/ /*some comment 4/*/ } | setState |
54,906 | void (Integer state) { /*some comment 1/*/ /*some comment 2/*/ /*some comment 3/*/ /*some comment 4/*/ } | setState2 |
54,907 | void () { } | foo |
54,908 | void (String[] args) { System.out // Comment .println(); Test // Comment1 .foo() // Comment2 .indexOf("s"); } | main |
54,909 | String () { return ""; } | foo |
54,910 | void () { //noinspection RedundantStringConstructorCall Integer d = (Integer) (Object)(new String()); } | a |
54,911 | void (String param1, String param2, String param3) {} | foo |
54,912 | void (int n) { int otp = n % SOME; } | test |
54,913 | String () { return '"' + value + '"'; } | test |
54,914 | long () { return 5L; } | makeLong |
54,915 | void () { boolean b = makeLong() == 0; } | context |
54,916 | void (Function0<String> r) { } | foo0 |
54,917 | void (Function1<Integer, String> r) { } | foo1 |
54,918 | void (Function2<Integer, Integer, String> r) { } | foo2 |
54,919 | void () { } | helper |
54,920 | void () { foo0(() -> "42"); foo0(() -> { return "42"; }); foo0(() -> { helper(); return "42"; }); foo1((i) -> "42"); foo1(i -> { return "42"; }); foo1((Integer i) -> { helper(); if (i > 1) { return null; } return "43"; }); foo2((i, j) -> "42"); foo2((Integer i, Integer j) -> { helper(); return "42"; }); Function2<Integ... | foo |
54,921 | void () { String message = B.vararg( "first", "second" ); } | test |
54,922 | String (String key, Object... params) { return ""; } | vararg |
54,923 | void () { } | f1 |
54,924 | void () { } | f5 |
54,925 | void (String[] args) { // normal case: trailing comma is preserved int[] i = { 1, 2, }; // all on one line: trailing comma is removed by Kotlin formatter int[] j = {1, 2,}; // weird case with empty array: comma is removed (this syntax is invalid in Kotlin) int[][] k = {{,}, {,}}; } | main |
54,926 | void () { } | f1 |
54,927 | void () { } | f2 |
54,928 | void () { } | f3 |
54,929 | void () { int[] array = new int[10]; for (int i : array); System.out.println("Done"); } | aVoid |
54,930 | void (String[] args) {} | main |
54,931 | void (String[] args) {} | main |
54,932 | void (String[] args) { OuterLoop1: OuterLoop2: for (int i = 1; i < 1000; i *= 2) { InnerLoop: for (int j = 1; j < 100; j *= 3) { if (j == 3) continue InnerLoop; if (i == j) continue OuterLoop1; System.err.println(j); if (j == 9) continue; } } } | main |
54,933 | void (String[] args) { for (int i = 0; i < 1 << 1; i++) { } } | main |
54,934 | void (String[] args) { for (int i = 0; i < 10; ++i) { if (i == 4 || i == 8) { i++; continue; } System.err.println(i); } } | main |
54,935 | void (String[] args) { for (int i = 0; i < 1 + 1; i++) { } } | main |
54,936 | void () { for (int i = 0; i < 10; i++); System.out.println("Done"); } | aVoid |
54,937 | int () { return 5; } | size |
54,938 | void (String[] args) { for (int i = 0; i < 10.5; i++) { System.out.println(i); } for (int j = 0; j < 10.5f; j++) { System.out.println(j); } for (int k = 0; k < '5'; k++) { System.out.println(k); } } | main |
54,939 | void (String[] args) { for (int i = 0, j = 1; i < 10; ++i, j *= 2) { if (i == 4 || i == 8) { i++; continue; } System.err.println(j); } } | main |
54,940 | void (String[] args) { Map<String, String> resultMap = new HashMap<String, String>(); for (final Map.Entry<String, String> entry : resultMap.entrySet()) { String key = entry.getKey(); String type = entry.getValue(); if (key.equals("myKey")) { System.out.println(type); } } } | main |
54,941 | void () { int lastIndex = 5; for (int i = 0; i < lastIndex; i++) { lastIndex--; System.out.println(lastIndex); } } | test1 |
54,942 | void () { int lastIndex = 5; for (int i = 0; i < (1 + 2 + lastIndex); i++) { lastIndex--; System.out.println(lastIndex); } } | test2 |
54,943 | void (String[] args) { for (int i = 1; i < 1000; i *= 2) { if (i == 4 || i == 8) continue; System.err.println(i); } } | main |
54,944 | boolean () { return true; } | c |
54,945 | boolean () { return true; } | isD |
54,946 | int () { return 1; } | getG |
54,947 | void () { foo(a, this.b, c(), isD(), e.ee, new F().f, getG()); } | foo |
54,948 | void (boolean a, boolean b, boolean c, boolean isD, boolean e, boolean f, int g) { } | foo |
54,949 | void () { bar(a, a, b); } | bar |
54,950 | void (boolean a, boolean e, boolean f) { } | bar |
54,951 | void () { baz(!a, ++x, x++, x + x + 1); } | baz |
54,952 | void (boolean a, int x, int y, int z) { } | baz |
54,953 | Object () { return bar1(null); } | bar1 |
54,954 | void () { f(1); } | f |
54,955 | void (int p) { System.out.println("p = " + p); } | f |
54,956 | void (int p) { System.out.println("p = [" + p + "]"); } | foo |
54,957 | int () { return 0; } | calcSomething |
54,958 | void (int i, char c, String s) { System.out.println("foo" + i + c + s); } | foo |
54,959 | void (int i, char c) { foo(i, c, ""); } | foo |
54,960 | void (int i) { foo(i, 'a', ""); } | foo |
54,961 | void () { bar(1); } | bar |
54,962 | void (int i) {} | bar |
54,963 | void () { x(1); } | x |
54,964 | void (int i) {} | x |
54,965 | void () { y(1); } | y |
54,966 | void (int i) {} | y |
54,967 | void () { super.x(); } | x |
54,968 | void (int i) { super.y(i); } | y |
54,969 | void () { foo(1); } | foo |
54,970 | int () { return field; } | getField |
54,971 | void (int field) { this.field = field; } | setField |
54,972 | void () { setField(0); } | setField |
54,973 | int (String s) { System.out.println("s = " + s); return 0; } | bar |
54,974 | int () { return bar(null); } | bar |
54,975 | void () { problem(); new Runnable() { static final int x = 0; static int y = 0; @Override public void run() { x + y; problem(); } }; } | run |
54,976 | void () { x + y; problem(); } | run |
54,977 | void () { } | problem |
54,978 | void () { x + y; problem(); } | run |
54,979 | void () { } | problem |
54,980 | void () { Runnable someRunnable = new Runnable() { @Override public void run() { someRunnable.run(); } }; } | someMethod |
54,981 | void () { someRunnable.run(); } | run |
54,982 | void () { someRunnable.run(); } | run |
54,983 | void () { someRunnable.run(); } | run |
54,984 | void (Runnable r, long time) {} | postDelayed |
54,985 | void () { handler.postDelayed(someRunnable, 1000); } | run |
54,986 | void () {} | util1 |
54,987 | void () {} | util2 |
54,988 | Integer (String value) {return new Integer(value);} | valueOf |
54,989 | void () { Integer.valueOf("1"); test.Integer.valueOf("1"); java.lang.Integer.valueOf("1"); } | test |
54,990 | void () {} | bar |
54,991 | void () {} | util1 |
54,992 | void () {} | util2 |
54,993 | void () {} | publicMethod |
54,994 | void () {} | protectedMethod |
54,995 | void () {} | packageMethod |
54,996 | void () {} | privateMethod |
54,997 | void (int arg1, int arg2, int arg3) { } | init |
54,998 | void (double ax, double ay, double cy, double denom) { System.out.println((ay - ax - (cy * ax)) / denom); } | foo |
54,999 | void () {} | publicMethod |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.