Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
55,100 | void () {} | f2 |
55,101 | void () {} | f3 |
55,102 | void () { super.f1(); } | f1 |
55,103 | void () { super.f1(); } | f1 |
55,104 | void () { } | f |
55,105 | void (String[] args) { boolean a = true; boolean b = true; boolean c = true; boolean d = true; boolean e = true; if (a = b |= c = d &= e) ; while (a = b) ; do {} while (a ^= b); System.out.println(a &= b = c); System.out.println(a = b != c); } | main |
55,106 | void (String[] args) { long a[] = {0}; int b = 0; a[0] += b; } | main |
55,107 | void (String[] args) { boolean a = true; boolean b = true; boolean c = true; boolean d = true; boolean e = true; if (a = b |= (c) = ((d &= e))) ; while ((((((a = b)))))) ; do { } while ((((a) ^= (b)))); int i = 1; System.out.println(i = i + 1); } | main |
55,108 | void (String[] args) { int a = 0; int b = 0; int c = 0; int d = 0; int e = 0; a = b += c = d *= e; //----- a = b; //----- a += b; //----- a += b = c; //----- a = b += c; } | main |
55,109 | void (int value) { int v = field = value; field = field2 = value; int j; int i = j = 0; } | assign |
55,110 | void (char c, byte b, short s, int i, long l, float f, double d) { char cc = 1; cc += c; cc += b; cc += s; cc += i; cc += l; cc += f; cc += d; cc -= d; cc *= f; cc /= d; cc %= f + d + f; // byte bb = 1; bb += c; bb += b; bb += s; bb += i; bb += l; bb += f; bb += d; bb -= d; bb *= f; bb /= d; bb %= f + d + f; // short s... | testField |
55,111 | void (char c, byte b, short s, int i, long l, float f, double d) { // in K1 this currently results in a NO_SET_METHOD error (KT-11272), which should be fixed in K2 char[] charArr = {1}; // <KT-11272> charArr[0] += c; charArr[0] += b; charArr[0] += s; charArr[0] += i; charArr[0] += l; // </KT-11272> charArr[0] += f; cha... | testArrayAccess |
55,112 | void (String[] args) { int a = 0, b = 1, c = 2; c ^= a & b; System.out.print(c); } | main |
55,113 | void (String[] args) { int a = 0; int b = 0; int c = 0; int d = 0; int e = 0; //----- int f = a = b += c = d *= e; //----- int g = a; //----- int h = a = b; //----- int i = a += b; //----- int j = a += b = c; } | main |
55,114 | void (String[] args) { boolean a = false, b = true, c = false; c &= a || b; System.out.print(c); } | main |
55,115 | void (String[] args) { int a = 0; int b = 0; int c = 0; int d = 0; int e = 0; a = b += (c) = ((d *= e)); //----- a = (((b))); //----- a += (b); //----- a += b = (c); //----- a = ((b) += (c)); } | main |
55,116 | String (@Nullable String s) { return ""; } | foo |
55,117 | String (String s) { return s != null ? s + 1 : null; } | bar |
55,118 | String (Object o) { return ""; } | zoo |
55,119 | String (String s) { return s; } | nya |
55,120 | String (String s) { return ""; } | nya |
55,121 | String (String s) { return ""; } | foo |
55,122 | String (String s) { return ""; } | bar |
55,123 | String (Object o) { return ""; } | zoo |
55,124 | String (String s) { return ""; } | nya |
55,125 | String (String s) { return s; } | foo |
55,126 | String () { if (Math.random() > 0.999) { return "a string"; } return null; } | nullableString |
55,127 | void (@NotNull String s) { System.out.println(s.substring(1)); } | takesNotNullString |
55,128 | void () { String aString; if (nullableString() != null) { aString = nullableString(); if (aString != null) { for (int i = 0; i < 10; i++) { takesNotNullString(aString); // Bang-bang here aString = nullableString(); } } else { aString = "aaa"; } } else { aString = "bbbb"; } } | aVoid |
55,129 | String () { return null; } | get |
55,130 | void (@Nullable Object obj) { if (true) { notNullInitializerFieldNullableUsage = (String) obj; notNullInitializerFieldNotNullUsage = "str"; notNullInitializerFieldNullableUsage.charAt(1); notNullInitializerFieldNotNullUsage.charAt(1); } else { nullInitializerFieldNullableUsage = (String) obj; nullInitializerFieldNotNul... | testNotNull |
55,131 | String (int p) { return "response"; } | notNullString |
55,132 | void () { notNullInitializerField.charAt(0); notNullInitializerPublicField.charAt(0); } | testProperty |
55,133 | void () { String notNullInitializerVal = notNullString(3); notNullInitializerVal.charAt(0); } | testLocalVariable |
55,134 | void (String s) {} | foo |
55,135 | void (String s) {} | foo |
55,136 | String (int p) { return p > 0 ? "response" : null; } | nullableString |
55,137 | void () { nullableInitializerField = "aaa" nullableInitializerField.charAt(0); nullableInitializerFieldFinal.charAt(0); nullableInitializerPublicField.charAt(0); } | testProperty |
55,138 | void () { String nullableInitializerVal = nullableString(3); nullableInitializerVal.charAt(0); } | testLocalVariable |
55,139 | String[] (int size) { return new String[size]; } | createArrayFailure |
55,140 | String[] (int size) { return new String[] {}; } | createArraySuccess |
55,141 | void (String s) {} | foo |
55,142 | void (String s) {} | foo |
55,143 | void (String s) {} | foo |
55,144 | void () { myProp = ""; myIntProp = 1; } | onCreate |
55,145 | void () { foo1(myProp); } | test1 |
55,146 | void () { foo2(myProp); } | test2 |
55,147 | void () { foo3(myProp); } | test3 |
55,148 | void () { myProp.charAt(myIntProp); System.out.println(myProp); } | test4 |
55,149 | void () { boolean b = "aaa".equals(myProp); String s = "aaa" + myProp; } | test5 |
55,150 | void () { myProp.compareToIgnoreCase(myProp); } | test6 |
55,151 | void () { List<Integer> list = new ArrayList<Integer>(); list.remove(myIntProp); } | test7 |
55,152 | void (@NotNull String s) { } | foo1 |
55,153 | void (String s) { } | foo2 |
55,154 | void (@Nullable String s) { } | foo3 |
55,155 | Object (int p) { return p > 0 ? "response" : null; } | nullableObj |
55,156 | void () { nullableInitializerFieldCast.charAt(0); nullableInitializerPrivateFieldCast.charAt(0); } | testProperty |
55,157 | void () { String nullableInitializerValCast = (String) nullableObj(3); nullableInitializerValCast.charAt(0); } | testLocalVariable |
55,158 | PassParent (int p) { return p > 0 ? new PassChild() : null; } | provideNullable |
55,159 | void () { PassParent pass = provideNullable(1); assert pass != null; accept1((PassChild) pass); } | test1 |
55,160 | void () { PassParent pass = provideNullable(1); if (1 == 2) { assert pass != null; accept2((PassChild) pass); } accept2((PassChild) pass); } | test2 |
55,161 | void (PassChild p) { } | accept1 |
55,162 | void (PassChild p) { } | accept2 |
55,163 | String () { return x(); } | getString |
55,164 | void () { } | usageInConstructor |
55,165 | int () { return 1; } | usageInPropertyInitializer |
55,166 | void () { } | usageInStaticInit |
55,167 | void () { } | usageInMethod |
55,168 | void () { } | foo |
55,169 | void () { DerivedSuperSamePackage derived = new DerivedSuperSamePackage(); derived.foo(); int i = derived.i; } | usage1 |
55,170 | void () { } | foo |
55,171 | void () { new BaseInheritorSamePackage(1); } | foo |
55,172 | void () { BaseInheritorSamePackage base = new BaseInheritorSamePackage(); base.foo(); int i = base.i; } | usage1 |
55,173 | void () { } | foo |
55,174 | void () { BaseSamePackage base = new BaseSamePackage(); base.foo(); int i = base.i; } | usage1 |
55,175 | void (int i) { int x; if (i == 1) { System.out.println(1); x = 1; } else if (i == 2) { System.out.println(2); x = 2; } else { x = 3; } } | test |
55,176 | int () { return height; } | getHeight |
55,177 | int () { return width; } | getWidth |
55,178 | int () { return size; } | getSize |
55,179 | int (int i) { return data[i]; } | getData |
55,180 | void (int i, int value) { data[i] = value; } | putData |
55,181 | int (Bar o1, Bar o2) { if (null == o1 || null == o1.bar()) return -1; if (o2 == null || o2.bar() == null) return 1; return o1.bar().compareTo(o2.bar()); } | compare |
55,182 | void (int i) { int x; if (i == 1) { x = 1; } else if (i == 2) { x = 2; } else { x = 3; } } | test |
55,183 | int (int i) { switch (i) { case 0: System.out.println(0); return 0; case 1: System.out.println(1); return 1; default: return -1; } } | getInt |
55,184 | boolean (Object obj) { return obj instanceof String[]; } | testObject |
55,185 | boolean (Object[] array) { return array instanceof String[]; } | testArray |
55,186 | void (C c) { } | consume1 |
55,187 | void (C c) { } | consume2 |
55,188 | void (List<C> cList) { for (Iterator iter = cList.iterator(); iter.hasNext();) { C c = (C) iter.next(); consume1(c); consume2(c); } } | foo |
55,189 | String () { return getField() + foo(); } | method |
55,190 | String (Map<Integer, String> map) { return map.getOrDefault(1, "bar"); } | foo |
55,191 | String (int i) { if (i == 0) return "zero"; if (i == 1) return "one"; if (i == 2) return "two"; return "many"; } | test |
55,192 | void () { System.out.println("a"); } | run |
55,193 | void () { Base other = Base(); int value = other.getProperty() + getProperty(); other.setProperty(1); setProperty(other.getProperty() + value); getBase(getProperty()).setProperty(0); } | f |
55,194 | Base (int i) { return new Base(); } | getBase |
55,195 | int (int i) { switch (i) { case 0: return 0; case 1: return 1; default: return -1; } } | getInt |
55,196 | void (Preference l, Preference pm) { l.setOnPreferenceClickListener((p) -> true); pm.setOnPreferenceClickListener(new OnPreferenceClickListener() { public boolean onPreferenceClick(Preference preference) { return true; } }); } | foo |
55,197 | boolean (Preference preference) { return true; } | onPreferenceClick |
55,198 | void (Preference l) { l.setOnPreferenceClickListener((p) -> true); } | bar |
55,199 | void () { } | windowClosing |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.