Unnamed: 0
int64
0
305k
body
stringlengths
7
52.9k
name
stringlengths
1
185
10,600
BuilderWithTolerateBuilder (String s) { return this.value(Integer.parseInt(s)); }
value
10,601
BuilderWithTolerate () { return new BuilderWithTolerate(this.value); }
build
10,602
MultipleMethodBuilderWithExistedClass (long id) { return new MultipleMethodBuilderWithExistedClass(id, ""); }
builderB
10,603
MultipleMethodBuilderWithExistedClass (String name) { return new MultipleMethodBuilderWithExistedClass(0L, name); }
builderA
10,604
MultipleMethodBuilderWithExistedClass () { return MultipleMethodBuilderWithExistedClass.builderA(this.name); }
build
10,605
MultipleMethodBuilderWithExistedClass () { return MultipleMethodBuilderWithExistedClass.builderB(this.id); }
build
10,606
BuilderExampleCustomized () { return new BuilderExampleCustomized(this.name, this.age); }
execute
10,607
BuilderSimpleProtected<T> () { return new BuilderSimpleProtected<T>(this.also); }
build
10,608
BuilderExample () { return new BuilderExample(this.name, this.age); }
build
10,609
BuilderWithAccessors () { return new BuilderWithAccessors(this.plower, this.upper, this.foo, this._bar); }
build
10,610
BuilderSingularSetsWithSetterPrefix<T> () { java.util.Set<T> dangerMice; switch (this.dangerMice == null ? 0 : this.dangerMice.size()) { case 0: dangerMice = java.util.Collections.emptySet(); break; case 1: dangerMice = java.util.Collections.singleton(this.dangerMice.get(0)); break; default: dangerMice = new java.util....
build
10,611
BuilderSimple<T> () { return new BuilderSimple<T>(this.yes, this.also); }
build
10,612
BuilderSingularLists<T> () { java.util.List<T> children; switch (this.children == null ? 0 : this.children.size()) { case 0: children = java.util.Collections.emptyList(); break; case 1: children = java.util.Collections.singletonList(this.children.get(0)); break; default: children = java.util.Collections.unmodifiableLis...
build
10,613
BuilderWithNoBuilderMethod () { return new BuilderWithNoBuilderMethod(this.a); }
build
10,614
void (String[] args) { try { builder().i(2).build(); } catch (Exception ignore) { } }
main
10,615
BuilderWithToBuilderOnConstructor<T> () { return new BuilderWithToBuilderOnConstructor<T>(this.one, this.bar); }
build
10,616
String (int show, final int yes, List<T> also, int $andMe) { return "" + show + yes + also + $andMe; }
create
10,617
String () { return BuilderInstanceMethod.this.create(this.show, this.yes, this.also, this.$andMe); }
build
10,618
BuilderSingularSets<T> () { java.util.Set<T> dangerMice; switch (this.dangerMice == null ? 0 : this.dangerMice.size()) { case 0: dangerMice = java.util.Collections.emptySet(); break; case 1: dangerMice = java.util.Collections.singleton(this.dangerMice.get(0)); break; default: dangerMice = new java.util.LinkedHashSet<T>...
build
10,619
BuilderSingularNoAuto () { java.util.List<String> things; switch (this.things == null ? 0 : this.things.size()) { case 0: things = java.util.Collections.emptyList(); break; case 1: things = java.util.Collections.singletonList(this.things.get(0)); break; default: things = java.util.Collections.unmodifiableList(new java....
build
10,620
BuilderWithToBuilder<T> () { java.util.List<T> bars; switch (this.bars == null ? 0 : this.bars.size()) { case 0: bars = java.util.Collections.emptyList(); break; case 1: bars = java.util.Collections.singletonList(this.bars.get(0)); break; default: bars = java.util.Collections.unmodifiableList(new java.util.ArrayList<T>...
build
10,621
ConstructorWithToBuilder<T> () { return new ConstructorWithToBuilder<T>(this.mOne, this.bar); }
build
10,622
BuilderWithAccessorsWithSetterPrefix () { return new BuilderWithAccessorsWithSetterPrefix(this.plower, this.upper, this.foo, this._bar); }
build
10,623
void (boolean arg) { }
arg2
10,624
BuilderAndValue () { return new BuilderAndValue(); }
build
10,625
int () { return this.zero; }
getZero
10,626
boolean (final java.lang.Object o) { if (o == this) return true; if (!(o instanceof BuilderAndValue)) return false; final BuilderAndValue other = (BuilderAndValue) o; if (this.getZero() != other.getZero()) return false; return true; }
equals
10,627
int () { final int PRIME = 59; int result = 1; result = result * PRIME + this.getZero(); return result; }
hashCode
10,628
BuilderAndData () { return new BuilderAndData(); }
build
10,629
int () { return this.zero; }
getZero
10,630
boolean (final java.lang.Object o) { if (o == this) return true; if (!(o instanceof BuilderAndData)) return false; final BuilderAndData other = (BuilderAndData) o; if (!other.canEqual((java.lang.Object) this)) return false; if (this.getZero() != other.getZero()) return false; return true; }
equals
10,631
boolean (final java.lang.Object other) { return other instanceof BuilderAndData; }
canEqual
10,632
int () { final int PRIME = 59; int result = 1; result = result * PRIME + this.getZero(); return result; }
hashCode
10,633
BuilderWithDeprecatedField () { java.util.List<String> xyzs; switch (this.xyzs == null ? 0 : this.xyzs.size()) { case 0: xyzs = java.util.Collections.emptyList(); break; case 1: xyzs = java.util.Collections.singletonList(this.xyzs.get(0)); break; default: xyzs = java.util.Collections.unmodifiableList(new java.util.Arra...
build
10,634
BuilderWithBuilderClassName () { return new BuilderWithBuilderClassName(this.name, this.age); }
build
10,635
String () { return this.name; }
getName
10,636
int () { return this.age; }
getAge
10,637
boolean (final java.lang.Object o) { if (o == this) return true; if (!(o instanceof BuilderWithBuilderClassName)) return false; final BuilderWithBuilderClassName other = (BuilderWithBuilderClassName)o; final Object this$name = this.getName(); final Object other$name = other.getName(); if (this$name == null ? other$name...
equals
10,638
int () { final int PRIME = 59; int result = 1; final Object $name = this.getName(); result = result * PRIME + ($name == null ? 43 : $name.hashCode()); result = result * PRIME + this.getAge(); return result; }
hashCode
10,639
BuilderSingularWithPrefixes () { java.util.List<String> elems; switch (this.elems == null ? 0 : this.elems.size()) { case 0: elems = java.util.Collections.emptyList(); break; case 1: elems = java.util.Collections.singletonList(this.elems.get(0)); break; default: elems = java.util.Collections.unmodifiableList(new java.u...
build
10,640
void () { BuilderComplex.<T>testVoidWithGenerics(this.number, this.arg2, this.arg3, this.selfRef); }
execute
10,641
BarBar<T> () { return new BarBar<T>(this.content); }
build
10,642
void (String[] args) { BarBar<BigDecimal> barBar = BarBar.<BigDecimal>builder().content(BigDecimal.ONE).build(); }
main
10,643
void (String[] args) { System.out.println(builder().first(2).second(2.0F).build()); }
main
10,644
BuilderMultipleConstructorException () { return new BuilderMultipleConstructorException(this.first, this.second); }
build
10,645
BuilderWithFieldAccessors () { return new BuilderWithFieldAccessors(this.upper, this.foo, this.bar); }
build
10,646
void (String[] args) { try { builder().i(2).build(); } catch (Exception ignore) { } }
main
10,647
BuilderSingularGuavaListsSets<T> () { com.google.common.collect.ImmutableList<T> cards = this.cards == null ? com.google.common.collect.ImmutableList.<T>of() : this.cards.build(); com.google.common.collect.ImmutableCollection<Number> frogs = this.frogs == null ? com.google.common.collect.ImmutableList.<Number>of() : th...
build
10,648
ObjectApiResponse<T> () { return new ObjectApiResponse<T>(this.response); }
build
10,649
K () { return this.response; }
getResponse
10,650
void (final K response) { this.response = response; }
setResponse
10,651
boolean (final java.lang.Object o) { if (o == this) return true; if (!(o instanceof ObjectApiResponse)) return false; final ObjectApiResponse<?> other = (ObjectApiResponse<?>) o; if (!other.canEqual((java.lang.Object) this)) return false; final java.lang.Object this$response = this.getResponse(); final java.lang.Object...
equals
10,652
boolean (final java.lang.Object other) { return other instanceof ObjectApiResponse; }
canEqual
10,653
int () { final int PRIME = 59; int result = 1; final java.lang.Object $response = this.getResponse(); result = result * PRIME + ($response == null ? 43 : $response.hashCode()); return result; }
hashCode
10,654
BuilderSingularRedirectToGuava () { java.util.Set<String> dangerMice; switch (this.dangerMice == null ? 0 : this.dangerMice.size()) { case 0: dangerMice = java.util.Collections.emptySet(); break; case 1: dangerMice = java.util.Collections.singleton(this.dangerMice.get(0)); break; default: dangerMice = new java.util.Lin...
build
10,655
record (String name) { public static PersonBuilder builder() { return new Person.PersonBuilder(); } public static class PersonBuilder { private String name; PersonBuilder() { } public PersonBuilder name(String name) { this.name = name; return this; } public Person build() { return new Person(this.name); } public String...
Person
10,656
PersonBuilder () { return new Person.PersonBuilder(); }
builder
10,657
PersonBuilder (String name) { this.name = name; return this; }
name
10,658
Person () { return new Person(this.name); }
build
10,659
String () { return "Person.PersonBuilder(name=" + this.name + ")"; }
toString
10,660
BuilderAndAllArgsConstructor () { return new BuilderAndAllArgsConstructor(this.field1, this.field2); }
build
10,661
BuilderWithBuilderClassNameOnConstructor () { return new BuilderWithBuilderClassNameOnConstructor(this.name, this.age); }
build
10,662
String () { return this.name; }
getName
10,663
int () { return this.age; }
getAge
10,664
boolean (final java.lang.Object o) { if (o == this) return true; if (!(o instanceof BuilderWithBuilderClassNameOnConstructor)) return false; final BuilderWithBuilderClassNameOnConstructor other = (BuilderWithBuilderClassNameOnConstructor)o; final Object this$name = this.getName(); final Object other$name = other.getNam...
equals
10,665
int () { final int PRIME = 59; int result = 1; final Object $name = this.getName(); result = result * PRIME + ($name == null ? 43 : $name.hashCode()); result = result * PRIME + this.getAge(); return result; }
hashCode
10,666
BuilderWithToBuilderOnClass<T> () { return new BuilderWithToBuilderOnClass<T>(this.one, this.two, this.foo, this.bar); }
build
10,667
Builder (String value) { secret = value.getBytes(); return this; }
withSecret
10,668
Builder (byte[] value) { secret = value; return this; }
withSecret
10,669
Builder (String name) { this.name = Optional.of(name); return this; }
withName
10,670
BuilderWithSetterPrefixAndExistedMethods () { return new BuilderWithSetterPrefixAndExistedMethods(this.secret, this.name); }
build
10,671
void (String[] args) { BuilderWithSetterPrefixAndExistedMethods obj = BuilderWithSetterPrefixAndExistedMethods.builder().withSecret("Secret").withName(Optional.of("aaa")).build(); BuilderWithSetterPrefixAndExistedMethods rtn = obj.toBuilder().build(); System.out.println(rtn); }
main
10,672
byte[] () { return this.secret; }
getSecret
10,673
Optional<String> () { return this.name; }
getName
10,674
void (final Optional<String> name) { this.name = name; }
setName
10,675
boolean (final java.lang.Object o) { if (o == this) return true; if (!(o instanceof BuilderWithSetterPrefixAndExistedMethods)) return false; final BuilderWithSetterPrefixAndExistedMethods other = (BuilderWithSetterPrefixAndExistedMethods) o; if (!other.canEqual((java.lang.Object) this)) return false; if (!java.util.Arr...
equals
10,676
boolean (final java.lang.Object other) { return other instanceof BuilderWithSetterPrefixAndExistedMethods; }
canEqual
10,677
int () { final int PRIME = 59; int result = 1; result = result * PRIME + java.util.Arrays.hashCode(this.getSecret()); final java.lang.Object $name = this.getName(); result = result * PRIME + ($name == null ? 43 : $name.hashCode()); return result; }
hashCode
10,678
BuilderWithDefaultInnerFieldsBuilder (Object bar) { this.bar$value = bar; this.bar$set = true; return this; }
barManual
10,679
BuilderWithDefaultInnerFields () { Object bar$value = this.bar$value; if (!this.bar$set) { bar$value = BuilderWithDefaultInnerFields.$default$bar(); } return new BuilderWithDefaultInnerFields(bar$value); }
build
10,680
void (String[] args) { }
main
10,681
void (String[] args) { }
main
10,682
void (String[] args) { }
main
10,683
void (String[] args) { }
main
10,684
SingularGuavaSet<T> () { com.google.common.collect.ImmutableSet<java.lang.Object> rawTypes = this.rawTypes == null ? com.google.common.collect.ImmutableSet.<java.lang.Object>of() : this.rawTypes.build(); com.google.common.collect.ImmutableSet<Integer> integers = this.integers == null ? com.google.common.collect.Immutab...
build
10,685
void (String[] args) { }
main
10,686
SingularGuavaCollection<T> () { com.google.common.collect.ImmutableCollection<java.lang.Object> rawTypes = this.rawTypes == null ? com.google.common.collect.ImmutableList.<java.lang.Object>of() : this.rawTypes.build(); com.google.common.collect.ImmutableCollection<Integer> integers = this.integers == null ? com.google....
build
10,687
void (String[] args) { }
main
10,688
void (String[] args) { }
main
10,689
SingularGuavaList<T> () { com.google.common.collect.ImmutableList<java.lang.Object> rawTypes = this.rawTypes == null ? com.google.common.collect.ImmutableList.<java.lang.Object>of() : this.rawTypes.build(); com.google.common.collect.ImmutableList<Integer> integers = this.integers == null ? com.google.common.collect.Imm...
build
10,690
void (String[] args) { }
main
10,691
SingularGuavaSortedSet<T> () { com.google.common.collect.ImmutableSortedSet<java.lang.Object> rawTypes = this.rawTypes == null ? com.google.common.collect.ImmutableSortedSet.<java.lang.Object>of() : this.rawTypes.build(); com.google.common.collect.ImmutableSortedSet<Integer> integers = this.integers == null ? com.googl...
build
10,692
void (String[] args) { }
main
10,693
void (String[] args) { }
main
10,694
void (String[] args) { }
main
10,695
SingularList<T> () { java.util.List<java.lang.Object> rawTypes; switch (this.rawTypes == null ? 0 : this.rawTypes.size()) { case 0: rawTypes = java.util.Collections.emptyList(); break; case 1: rawTypes = java.util.Collections.singletonList(this.rawTypes.get(0)); break; default: rawTypes = java.util.Collections.unmodifi...
build
10,696
SingularNavigableSet<T> () { java.util.NavigableSet<java.lang.Object> rawTypes = new java.util.TreeSet<java.lang.Object>(); if (this.rawTypes != null) rawTypes.addAll(this.rawTypes); rawTypes = java.util.Collections.unmodifiableNavigableSet(rawTypes); java.util.NavigableSet<Integer> integers = new java.util.TreeSet<Int...
build
10,697
SingularSortedSet<T> () { java.util.SortedSet<java.lang.Object> rawTypes = new java.util.TreeSet<java.lang.Object>(); if (this.rawTypes != null) rawTypes.addAll(this.rawTypes); rawTypes = java.util.Collections.unmodifiableSortedSet(rawTypes); java.util.SortedSet<Integer> integers = new java.util.TreeSet<Integer>(); if ...
build
10,698
void (String[] args) { }
main
10,699
SingularCollection<T> () { java.util.Collection<java.lang.Object> rawTypes; switch (this.rawTypes == null ? 0 : this.rawTypes.size()) { case 0: rawTypes = java.util.Collections.emptyList(); break; case 1: rawTypes = java.util.Collections.singletonList(this.rawTypes.get(0)); break; default: rawTypes = java.util.Collecti...
build