Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
56,000 | void (int p1, int p2) { } | foo3 |
56,001 | void ( int p1, int p2, int p3, int p4 ) { } | foo4 |
56,002 | String () { return ""; } | getString |
56,003 | void () {} | test |
56,004 | void (Function0<String> r) { } | foo0 |
56,005 | void (Function1<Integer, String> r) { } | foo1 |
56,006 | void (Function2<Integer, Integer, String> r) { } | foo2 |
56,007 | void () { } | helper |
56,008 | 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 "42"; } return "43"; }); foo2((i, j) -> "42"); foo2((Integer i, Integer j) -> { helper(); return "42"; }); Function2<Integ... | foo |
56,009 | boolean (Object o) { return super.equals(o); } | equals |
56,010 | boolean (Object o) { return super.equals(o); } | equals |
56,011 | void (String[] args) {} | main |
56,012 | void () {} | test |
56,013 | void () {} | f1 |
56,014 | void () {} | f2 |
56,015 | void () {} | f3 |
56,016 | void () { super.f1(); } | f1 |
56,017 | void () { super.f1(); } | f1 |
56,018 | void () { } | f |
56,019 | void (int value) { int v = field = value; field = field2 = value; int j; int i = j = 0; } | assign |
56,020 | String (@Nullable String s) { return ""; } | foo |
56,021 | String (String s) { return s != null ? s + 1 : null; } | bar |
56,022 | String (Object o) { return ""; } | zoo |
56,023 | String (String s) { return ""; } | foo |
56,024 | String (String s) { return ""; } | bar |
56,025 | String (Object o) { return ""; } | zoo |
56,026 | String (String s) { return s; } | foo |
56,027 | String () { if (Math.random() > 0.999) { return "a string"; } return null; } | nullableString |
56,028 | void (@NotNull String s) { System.out.println(s.substring(1)); } | takesNotNullString |
56,029 | 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 |
56,030 | String () { return null; } | get |
56,031 | void (@Nullable Object obj) { if (true) { notNullInitializerFieldNullableUsage = (String) obj; notNullInitializerFieldNotNullUsage = "str"; notNullInitializerFieldNullableUsage.charAt(1); notNullInitializerFieldNotNullUsage.charAt(1); } else { nullInitializerFieldNullableUsage = (String) obj; nullInitializerFieldNotNul... | testNotNull |
56,032 | String (int p) { return "response"; } | notNullString |
56,033 | void () { notNullInitializerField.charAt(0); notNullInitializerPublicField.charAt(0); } | testProperty |
56,034 | void () { String notNullInitializerVal = notNullString(3); notNullInitializerVal.charAt(0); } | testLocalVariable |
56,035 | void (String s) {} | foo |
56,036 | void (String s) {} | foo |
56,037 | String (int p) { return p > 0 ? "response" : null; } | nullableString |
56,038 | void () { nullableInitializerField = "aaa" nullableInitializerField.charAt(0); nullableInitializerFieldFinal.charAt(0); nullableInitializerPublicField.charAt(0); } | testProperty |
56,039 | void () { String nullableInitializerVal = nullableString(3); nullableInitializerVal.charAt(0); } | testLocalVariable |
56,040 | void (String s) {} | foo |
56,041 | void (String s) {} | foo |
56,042 | void (String s) {} | foo |
56,043 | void () { myProp = ""; myIntProp = 1; } | onCreate |
56,044 | void () { foo1(myProp); } | test1 |
56,045 | void () { foo2(myProp); } | test2 |
56,046 | void () { foo3(myProp); } | test3 |
56,047 | void () { myProp.charAt(myIntProp); System.out.println(myProp); } | test4 |
56,048 | void () { boolean b = "aaa".equals(myProp); String s = "aaa" + myProp; } | test5 |
56,049 | void () { myProp.compareToIgnoreCase(myProp); } | test6 |
56,050 | void () { List<Integer> list = new ArrayList<Integer>(); list.remove(myIntProp); } | test7 |
56,051 | void (@NotNull String s) { } | foo1 |
56,052 | void (String s) { } | foo2 |
56,053 | void (@Nullable String s) { } | foo3 |
56,054 | Object (int p) { return p > 0 ? "response" : null; } | nullableObj |
56,055 | void () { nullableInitializerFieldCast.charAt(0); nullableInitializerPrivateFieldCast.charAt(0); } | testProperty |
56,056 | void () { String nullableInitializerValCast = (String) nullableObj(3); nullableInitializerValCast.charAt(0); } | testLocalVariable |
56,057 | PassParent (int p) { return p > 0 ? new PassChild() : null; } | provideNullable |
56,058 | void () { PassParent pass = provideNullable(1); assert pass != null; accept1((PassChild) pass); } | test1 |
56,059 | void () { PassParent pass = provideNullable(1); if (1 == 2) { assert pass != null; accept2((PassChild) pass); } accept2((PassChild) pass); } | test2 |
56,060 | void (PassChild p) { } | accept1 |
56,061 | void (PassChild p) { } | accept2 |
56,062 | String () { return x(); } | getString |
56,063 | void () { } | usageInConstructor |
56,064 | int () { return 1; } | usageInPropertyInitializer |
56,065 | void () { } | usageInStaticInit |
56,066 | void () { } | usageInMethod |
56,067 | void () { } | foo |
56,068 | void () { DerivedSuperSamePackage derived = new DerivedSuperSamePackage(); derived.foo(); int i = derived.i; } | usage1 |
56,069 | void () { } | foo |
56,070 | void () { new BaseInheritorSamePackage(1); } | foo |
56,071 | void () { BaseInheritorSamePackage base = new BaseInheritorSamePackage(); base.foo(); int i = base.i; } | usage1 |
56,072 | void () { } | foo |
56,073 | void () { BaseSamePackage base = new BaseSamePackage(); base.foo(); int i = base.i; } | usage1 |
56,074 | void (C c) { } | consume1 |
56,075 | void (C c) { } | consume2 |
56,076 | void (List<C> cList) { for (Iterator iter = cList.iterator(); iter.hasNext();) { C c = (C) iter.next(); consume1(c); consume2(c); } } | foo |
56,077 | void () { System.out.println("a"); } | run |
56,078 | void () { Base other = Base(); int value = other.getProperty() + getProperty(); other.setProperty(1); setProperty(other.getProperty() + value); getBase(getProperty()).setProperty(0); } | f |
56,079 | Base (int i) { return new Base(); } | getBase |
56,080 | void () { } | windowClosing |
56,081 | void (WindowListener listener) {} | addWindowListener |
56,082 | void () { } | windowClosing |
56,083 | void () { } | windowClosing |
56,084 | void (@NotNull Bar barNotNull, Bar barNullable) { barNotNull.fooNotNull.execute(); barNotNull.fooNullable.execute(); barNullable.fooNotNull.execute(); barNullable.fooNullable.execute(); } | test |
56,085 | int () { return id; } | getId |
56,086 | void (int id) { this.id = id } | setId |
56,087 | void (@NotNull String str) { // UNNECESSARY_NOT_NULL_ASSERTION heuristic does not work any more, instead we can skip generating !! altogether System.out.println(str); } | sout |
56,088 | String (@NotNull String str) { return str; } | dummy |
56,089 | void () { sout("String"); @NotNull String test = "String2"; sout(test); sout(dummy(test)); new Test(test); } | test |
56,090 | void (@Nullable String str) { System.out.println(str); } | sout |
56,091 | String (@Nullable String str) { return str; } | dummy |
56,092 | void () { sout("String"); @Nullable String test = "String2"; sout(test); sout(dummy(test)); new Test(test); } | test |
56,093 | Object (T t) { return Collections.nCopies(1, t.set); } | foo |
56,094 | void () {} | deprecatedMethod |
56,095 | int () { return x; } | getX |
56,096 | void (int x) { this.x = x; } | setX |
56,097 | void () { setX(getX() + 1); } | foo |
56,098 | void (AAA other) { other.setX(other.getX() + 1); } | bar |
56,099 | String () { return x; } | getX |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.