Unnamed: 0
int64
0
305k
body
stringlengths
7
52.9k
name
stringlengths
1
185
55,700
String () { return ""; }
foo
55,701
void (String[] args) { <selection>System.out.printf</selection>("nya") }
main
55,702
void (String[] args) { qualifier.<selection>reference(arg)</selection>; }
main
55,703
void (String[] args) { <selection>Foo</selection>.foo(); }
main
55,704
String () { return "#org.jetbrains.kotlin.idea.refactoring.safeDelete.KotlinOverridingDialog"; }
getDimensionServiceKey
55,705
ArrayList<UsageInfo> () { ArrayList<UsageInfo> result = new ArrayList<UsageInfo>(); for (int i = 0; i < myChecked.length; i++) { if (myChecked[i]) { result.add(myOverridingMethods.get(i)); } } return result; }
getSelected
55,706
void (String[] args) { System.out.println(args.length); }
main
55,707
void (String[]args) { a + <selection>b - c + d</selection> - e }
main
55,708
void (String[] args) { //sdasd }
main
55,709
void (String[] args) { <selection>qualifier</selection>.reference(arg); }
main
55,710
String () { return ""; }
foo
55,711
void (String[] args) { <selection>System.out.println</selection>("nya") }
main
55,712
void (String[] args) {}
main
55,713
void (String[]args) { <selection>if (x > 0) x = 2; else x = 3;</selection> }
main
55,714
String (CopiedCode code, PsiFile file) { <selection>List<PsiElement> buffer = getSelectedElements(code.getFile(), code.getStartOffsets(), code.getEndOffsets()); Project project = file.getProject(); Converter converter = new Converter(project, J2kPackage.getPluginSettings()); StringBuilder result = new StringBuilder(); ...
convertCopiedCodeToKotlin
55,715
void (String[] args) { <selection>String s = 1;</selection> }
main
55,716
void (String[] args) { }
main
55,717
void (String[] args) { }
main
55,718
void (File file) {}
memberFun
55,719
void (String[] args) { System.out.println("Hello, world!"); }
main
55,720
void (String[] args) { <selection>new A()</selection>; }
main
55,721
String () { return ""; }
getFromB1
55,722
String () { return ""; }
getFromB2
55,723
void (String value) { }
setFromB2
55,724
String () { return ""; }
getFromB3
55,725
void (String value) { }
setFromB3
55,726
String () { return ""; }
getFromB4
55,727
void (String value) { }
setFromB4
55,728
void (String value) { }
setFromB5
55,729
int () { return mySomething1; }
getSomething1
55,730
int () { return 0; }
getSomething2
55,731
int () { return 0; }
getSomething3
55,732
void (int value) { }
setSomething3
55,733
int () { return 0; }
getSomething4
55,734
void (int value) { }
setSomething5
55,735
int () { return mySomething6; }
getSomething6
55,736
void (int value) { mySomething6 = value; }
setSomething6
55,737
String () { return ""; }
getFromB5
55,738
void (String value) { super.setFromB5(value); }
setFromB5
55,739
int () { return x; }
getX
55,740
void (int xx) { this.x = xx; }
setX
55,741
void () { Pojo pojo = new Pojo("a", "b"); doSomething(pojo.getFieldB()); }
test
55,742
void (String myString) { }
doSomething
55,743
String () { return y; }
getYY
55,744
int () { return x; }
getX
55,745
void (int x) { this.x = x; }
setX
55,746
void () { setX(getX() + 1); }
foo
55,747
void (B b) { System.out.println(b.getYY()); }
bar
55,748
int () { return K.FOO; }
getType
55,749
int () { return myProperty; }
getProperty
55,750
void (JavaClass javaClass) { javaClass.field++; --javaClass.field; myProperty = javaClass.field; javaClass.field -= field; field = myProperty; field *= 2; field = field * 2; String s = JavaClass.NAME; }
foo
55,751
void (Acceptor acceptor) { acceptor.acceptFace(new Face() { @Override public void subject(String p) { System.out.println(p); } }); acceptor.setFace(new Face() { @Override public void subject(String p) { System.out.println(p); } }); }
context
55,752
void (String p) { System.out.println(p); }
subject
55,753
void (String p) { System.out.println(p); }
subject
55,754
Face () { return face; }
getFace
55,755
void (Face face) { this.face = face; }
setFace
55,756
void (Face face) { }
acceptFace
55,757
void () { }
foo
55,758
void () { }
bar
55,759
SomeService () { return SomeService.getInstanceNotNull(); }
getService
55,760
SomeService () { return SomeService.getInstanceNullable(); }
getServiceNullable
55,761
SomeService () { SomeService s = SomeService.getInstanceNullable(); return s == null ? SomeService.getInstanceNotNull() : s; }
getServiceNotNullByDataFlow
55,762
String () { return getServiceNullable().nullableString(); }
aString1
55,763
String () { return getService().nullableString(); }
aString2
55,764
String () { return getService().notNullString(); }
aString3
55,765
String () { return getServiceNotNullByDataFlow().nullableString(); }
aString4
55,766
String () { return getServiceNotNullByDataFlow().notNullString(); }
aString5
55,767
String () { SomeService s = getServiceNullable(); if (s != null) { return s.nullableString(); } else { return null; } }
aString6
55,768
SomeService () { return new SomeService(); }
getInstanceNotNull
55,769
SomeService () { if (Math.random() > 0.5) return null; return new SomeService(); }
getInstanceNullable
55,770
String () { if (Math.random() < 0.5) return null; return Math.random() + ""; }
nullableString
55,771
String () { String s = nullableString(); if (s != null) return s; return "null"; }
notNullString
55,772
String () { return name; }
getName
55,773
record (int x) { public int x() { return this.x < 100 ? this.x : 100; } }
J
55,774
int () { return this.x < 100 ? this.x : 100; }
x
55,775
void (String a, int b) {}
foo
55,776
void (int a, String b) {}
foo
55,777
void (String a, int b) {}
foo
55,778
void (int a, String b) {}
foo
55,779
void (SimpleClass a) {}
foo
55,780
void (SimpleClass a, SimpleClass b) {}
foo
55,781
void (String a, String b) {}
foo
55,782
void (String a) {}
foo
55,783
void (int... values) {}
foo
55,784
void () {}
foo
55,785
void (int... arguments) {}
foo
55,786
void (int argument) {}
foo
55,787
void (String a, int b) {}
foo
55,788
void (int a, String b) {}
foo
55,789
void () { ConvertMe1.foo("A", "B"); ConvertMe1.foo("A"); ConvertMe1.foo(1); }
ref1
55,790
void () { ConvertMe2.foo("A", 2); }
ref2
55,791
void () { ConvertMe3.foo(2, "A"); }
ref3
55,792
void () { ConvertMe4.foo("A", 2); ConvertMe4.foo(2, "A"); }
ref4
55,793
void () { ConvertMe5.foo(1); }
ref5
55,794
void () { SimpleClass simpleClass = new SimpleClass(); ConvertMe6.foo(simpleClass); }
ref6
55,795
void () { }
foo
55,796
void () { Object o = Bar.SET; }
foo
55,797
int () { return x; }
getX
55,798
void () { }
instanceMethod
55,799
void (int p) { }
staticMethod