Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
10,800 | int () { final int PRIME = 59; int result = 1; result = result * PRIME + this.getX(); final java.lang.Object $name = this.getName(); result = result * PRIME + ($name == null ? 43 : $name.hashCode()); return result; } | hashCode |
10,801 | int () { return this.x; } | getX |
10,802 | int () { return this.y; } | getY |
10,803 | boolean (final java.lang.Object o) { if (o == this) return true; if (!(o instanceof Value3)) return false; final Value3 other = (Value3) o; if (this.getX() != other.getX()) return false; if (this.getY() != other.getY()) return false; return true; } | equals |
10,804 | int () { final int PRIME = 59; int result = 1; result = result * PRIME + this.getX(); result = result * PRIME + this.getY(); return result; } | hashCode |
10,805 | void (String[] args) { final ValueStaticConstructor test = ValueStaticConstructor.of(1); System.out.println(test); } | main |
10,806 | ValueStaticConstructor (final int privateInt) { return new ValueStaticConstructor(privateInt); } | of |
10,807 | int () { return this.privateInt; } | getPrivateInt |
10,808 | boolean (final Object o) { if (o == this) return true; if (!(o instanceof ValueStaticConstructor)) return false; final ValueStaticConstructor other = (ValueStaticConstructor) o; if (this.getPrivateInt() != other.getPrivateInt()) return false; return true; } | equals |
10,809 | int () { final int PRIME = 59; int result = 1; result = result * PRIME + this.getPrivateInt(); return result; } | hashCode |
10,810 | String () { return "ValueStaticConstructor(privateInt=" + this.getPrivateInt() + ")"; } | toString |
10,811 | void () { this.withMyField(""); } | methodCallingWith |
10,812 | String () { return this.myField; } | getMyField |
10,813 | boolean (Object o) { if (o == this) return true; if (!(o instanceof ValueAndWither)) return false; final ValueAndWither other = (ValueAndWither) o; final Object this$myField = this.myField; final Object other$myField = other.myField; if (this$myField == null ? other$myField != null : !this$myField.equals(other$myField)) return false; return true; } | equals |
10,814 | int () { final int PRIME = 59; int result = 1; final Object $myField = this.myField; result = result * PRIME + ($myField == null ? 43 : $myField.hashCode()); return result; } | hashCode |
10,815 | String () { return "ValueAndWither(myField=" + this.myField + ")"; } | toString |
10,816 | ValueAndWither (String myField) { return this.myField == myField ? this : new ValueAndWither(myField); } | withMyField |
10,817 | void (String[] args) { System.out.println(new Foo("one")); } | main |
10,818 | String () { return this.one; } | getOne |
10,819 | String () { return this.two; } | getTwo |
10,820 | boolean (final java.lang.Object o) { if (o == this) return true; if (!(o instanceof Foo)) return false; final Foo other = (Foo) o; final java.lang.Object this$one = this.getOne(); final java.lang.Object other$one = other.getOne(); if (this$one == null ? other$one != null : !this$one.equals(other$one)) return false; final java.lang.Object this$two = this.getTwo(); final java.lang.Object other$two = other.getTwo(); if (this$two == null ? other$two != null : !this$two.equals(other$two)) return false; return true; } | equals |
10,821 | int () { final int PRIME = 59; int result = 1; final java.lang.Object $one = this.getOne(); result = result * PRIME + ($one == null ? 43 : $one.hashCode()); final java.lang.Object $two = this.getTwo(); result = result * PRIME + ($two == null ? 43 : $two.hashCode()); return result; } | hashCode |
10,822 | Zoo () { return new Zoo("tomon", "pumbaa"); } | create |
10,823 | ZooBuilder (final String meerkat) { this.meerkat = meerkat; return this; } | meerkat |
10,824 | ZooBuilder (final String warthog) { this.warthog = warthog; return this; } | warthog |
10,825 | Zoo () { return new Zoo(meerkat, warthog); } | build |
10,826 | ZooBuilder () { return new ZooBuilder(); } | builder |
10,827 | String () { return this.meerkat; } | getMeerkat |
10,828 | String () { return this.warthog; } | getWarthog |
10,829 | boolean (final java.lang.Object o) { if (o == this) return true; if (!(o instanceof Zoo)) return false; final Zoo other = (Zoo) o; final java.lang.Object this$meerkat = this.getMeerkat(); final java.lang.Object other$meerkat = other.getMeerkat(); if (this$meerkat == null ? other$meerkat != null : !this$meerkat.equals(other$meerkat)) return false; final java.lang.Object this$warthog = this.getWarthog(); final java.lang.Object other$warthog = other.getWarthog(); if (this$warthog == null ? other$warthog != null : !this$warthog.equals(other$warthog)) return false; return true; } | equals |
10,830 | int () { final int PRIME = 59; int result = 1; final java.lang.Object $meerkat = this.getMeerkat(); result = result * PRIME + ($meerkat == null ? 43 : $meerkat.hashCode()); final java.lang.Object $warthog = this.getWarthog(); result = result * PRIME + ($warthog == null ? 43 : $warthog.hashCode()); return result; } | hashCode |
10,831 | void () { this.withMyField(""); } | methodCallingWith |
10,832 | String () { return this.myField; } | getMyField |
10,833 | boolean (final java.lang.Object o) { if (o == this) return true; if (!(o instanceof ValueAndWither)) return false; final ValueAndWither other = (ValueAndWither) o; final java.lang.Object this$myField = this.getMyField(); final java.lang.Object other$myField = other.getMyField(); if (this$myField == null ? other$myField != null : !this$myField.equals(other$myField)) return false; return true; } | equals |
10,834 | int () { final int PRIME = 59; int result = 1; final java.lang.Object $myField = this.getMyField(); result = result * PRIME + ($myField == null ? 43 : $myField.hashCode()); return result; } | hashCode |
10,835 | ValueAndWither (final String myField) { return this.myField == myField ? this : new ValueAndWither(myField); } | withMyField |
10,836 | boolean (final java.lang.Object o) { if (o == this) return true; if (!(o instanceof ValueExperimentalStarImport)) return false; return true; } | equals |
10,837 | int () { int result = 1; return result; } | hashCode |
10,838 | boolean (final Object o) { if (o == this) return true; if (!(o instanceof ValueWithNonDefaultConstructor)) return false; final ValueWithNonDefaultConstructor other = (ValueWithNonDefaultConstructor) o; return true; } | equals |
10,839 | int () { int result = 1; return result; } | hashCode |
10,840 | String () { return "ValueWithNonDefaultConstructor()"; } | toString |
10,841 | void (String[] args) { ValueBuilder builder = new ValueBuilder("1", 2, 3.0); System.out.println(builder); } | main |
10,842 | ValueBuilderBuilder (final String o1) { this.o1 = o1; return this; } | o1 |
10,843 | ValueBuilderBuilder (final int o2) { this.o2 = o2; return this; } | o2 |
10,844 | ValueBuilderBuilder (final double o3) { this.o3 = o3; return this; } | o3 |
10,845 | ValueBuilder () { return new ValueBuilder(o1, o2, o3); } | build |
10,846 | ValueBuilderBuilder () { return new ValueBuilderBuilder(); } | builder |
10,847 | String () { return this.o1; } | getO1 |
10,848 | int () { return this.o2; } | getO2 |
10,849 | double () { return this.o3; } | getO3 |
10,850 | boolean (final java.lang.Object o) { if (o == this) return true; if (!(o instanceof ValueBuilder)) return false; final ValueBuilder other = (ValueBuilder) o; final java.lang.Object this$o1 = this.getO1(); final java.lang.Object other$o1 = other.getO1(); if (this$o1 == null ? other$o1 != null : !this$o1.equals(other$o1)) return false; if (this.getO2() != other.getO2()) return false; if (java.lang.Double.compare(this.getO3(), other.getO3()) != 0) return false; return true; } | equals |
10,851 | int () { final int PRIME = 59; int result = 1; final java.lang.Object $o1 = this.getO1(); result = result * PRIME + ($o1 == null ? 43 : $o1.hashCode()); result = result * PRIME + this.getO2(); final long $o3 = java.lang.Double.doubleToLongBits(this.getO3()); result = result * PRIME + (int) ($o3 >>> 32 ^ $o3); return result; } | hashCode |
10,852 | void () { Val val = new Val("otherFinal"); } | test |
10,853 | String () { return this.nonFinal; } | getNonFinal |
10,854 | String () { return this.otherFinal; } | getOtherFinal |
10,855 | boolean (final java.lang.Object o) { if (o == this) return true; if (!(o instanceof Val)) return false; final Val other = (Val) o; final java.lang.Object this$nonFinal = this.getNonFinal(); final java.lang.Object other$nonFinal = other.getNonFinal(); if (this$nonFinal == null ? other$nonFinal != null : !this$nonFinal.equals(other$nonFinal)) return false; final java.lang.Object this$otherFinal = this.getOtherFinal(); final java.lang.Object other$otherFinal = other.getOtherFinal(); if (this$otherFinal == null ? other$otherFinal != null : !this$otherFinal.equals(other$otherFinal)) return false; return true; } | equals |
10,856 | int () { final int PRIME = 59; int result = 1; final java.lang.Object $nonFinal = this.getNonFinal(); result = result * PRIME + ($nonFinal == null ? 43 : $nonFinal.hashCode()); final java.lang.Object $otherFinal = this.getOtherFinal(); result = result * PRIME + ($otherFinal == null ? 43 : $otherFinal.hashCode()); return result; } | hashCode |
10,857 | boolean (final Object o) { if (o == this) return true; if (!(o instanceof EqualsAndHashCodeConfigKeys1Parent)) return false; final EqualsAndHashCodeConfigKeys1Parent other = (EqualsAndHashCodeConfigKeys1Parent) o; if (!other.canEqual((Object) this)) return false; return true; } | equals |
10,858 | boolean (final Object other) { return other instanceof EqualsAndHashCodeConfigKeys1Parent; } | canEqual |
10,859 | int () { int result = 1; return result; } | hashCode |
10,860 | boolean (final Object o) { if (o == this) return true; if (!(o instanceof EqualsAndHashCodeConfigKeys1)) return false; final EqualsAndHashCodeConfigKeys1 other = (EqualsAndHashCodeConfigKeys1) o; if (!other.canEqual((Object) this)) return false; if (this.x != other.x) return false; return true; } | equals |
10,861 | boolean (final Object other) { return other instanceof EqualsAndHashCodeConfigKeys1; } | canEqual |
10,862 | int () { final int PRIME = 59; int result = 1; result = result * PRIME + this.x; return result; } | hashCode |
10,863 | boolean (final Object o) { if (o == this) return true; if (!(o instanceof EqualsAndHashCodeConfigKeys2Object)) return false; final EqualsAndHashCodeConfigKeys2Object other = (EqualsAndHashCodeConfigKeys2Object) o; if (!other.canEqual((Object) this)) return false; return true; } | equals |
10,864 | boolean (final Object other) { return other instanceof EqualsAndHashCodeConfigKeys2Object; } | canEqual |
10,865 | int () { int result = 1; return result; } | hashCode |
10,866 | boolean (final Object o) { if (o == this) return true; if (!(o instanceof EqualsAndHashCodeConfigKeys2Parent)) return false; final EqualsAndHashCodeConfigKeys2Parent other = (EqualsAndHashCodeConfigKeys2Parent) o; if (!other.canEqual((Object) this)) return false; return true; } | equals |
10,867 | boolean (final Object other) { return other instanceof EqualsAndHashCodeConfigKeys2Parent; } | canEqual |
10,868 | int () { int result = 1; return result; } | hashCode |
10,869 | boolean (final Object o) { if (o == this) return true; if (!(o instanceof EqualsAndHashCodeConfigKeys2)) return false; final EqualsAndHashCodeConfigKeys2 other = (EqualsAndHashCodeConfigKeys2) o; if (!other.canEqual((Object) this)) return false; if (!super.equals(o)) return false; if (this.x != other.x) return false; return true; } | equals |
10,870 | boolean (final Object other) { return other instanceof EqualsAndHashCodeConfigKeys2; } | canEqual |
10,871 | int () { final int PRIME = 59; int result = super.hashCode(); result = result * PRIME + this.x; return result; } | hashCode |
10,872 | boolean (final java.lang.Object o) { if (o == this) return true; if (!(o instanceof EqualsAndHashCode)) return false; final EqualsAndHashCode other = (EqualsAndHashCode) o; if (!other.canEqual((java.lang.Object) this)) return false; return true; } | equals |
10,873 | boolean (final java.lang.Object other) { return other instanceof EqualsAndHashCode; } | canEqual |
10,874 | int () { int result = 1; return result; } | hashCode |
10,875 | boolean (final java.lang.Object o) { if (o == this) return true; if (!(o instanceof EqualsAndHashCode2)) return false; final EqualsAndHashCode2 other = (EqualsAndHashCode2) o; return true; } | equals |
10,876 | int () { int result = 1; return result; } | hashCode |
10,877 | boolean (final Object o) { if (o == this) return true; if (!(o instanceof EqualsAndHashCodeWithGenericsOnInners.Inner)) return false; final EqualsAndHashCodeWithGenericsOnInners<A>.Inner<?> other = (EqualsAndHashCodeWithGenericsOnInners<A>.Inner<?>) o; if (!other.canEqual((Object) this)) return false; if (this.x != other.x) return false; return true; } | equals |
10,878 | boolean (final Object other) { return other instanceof EqualsAndHashCodeWithGenericsOnInners.Inner; } | canEqual |
10,879 | int () { final int PRIME = 59; int result = 1; result = result * PRIME + this.x; return result; } | hashCode |
10,880 | boolean (final Object o) { if (o == this) return true; if (!(o instanceof EqualsAndHashCodeExplicitInclude)) return false; final EqualsAndHashCodeExplicitInclude other = (EqualsAndHashCodeExplicitInclude) o; if (!other.canEqual((Object) this)) return false; return true; } | equals |
10,881 | boolean (final Object other) { return other instanceof EqualsAndHashCodeExplicitInclude; } | canEqual |
10,882 | int () { int result = 1; return result; } | hashCode |
10,883 | boolean (final Object o) { if (o == this) return true; if (!(o instanceof EqualsAndHashCodeAutoExclude)) return false; final EqualsAndHashCodeAutoExclude other = (EqualsAndHashCodeAutoExclude) o; if (!other.canEqual((Object) this)) return false; if (this.x != other.x) return false; return true; } | equals |
10,884 | boolean (final Object other) { return other instanceof EqualsAndHashCodeAutoExclude; } | canEqual |
10,885 | int () { final int PRIME = 59; int result = 1; result = result * PRIME + this.x; return result; } | hashCode |
10,886 | boolean (final Object o) { if (o == this) return true; if (!(o instanceof EqualsAndHashCodeAutoExclude2)) return false; final EqualsAndHashCodeAutoExclude2 other = (EqualsAndHashCodeAutoExclude2) o; if (!other.canEqual((Object) this)) return false; if (this.x != other.x) return false; final Object this$$a = this.$a; final Object other$$a = other.$a; if (this$$a == null ? other$$a != null : !this$$a.equals(other$$a)) return false; final Object this$b = this.b; final Object other$b = other.b; if (this$b == null ? other$b != null : !this$b.equals(other$b)) return false; return true; } | equals |
10,887 | boolean (final Object other) { return other instanceof EqualsAndHashCodeAutoExclude2; } | canEqual |
10,888 | int () { final int PRIME = 59; int result = 1; result = result * PRIME + this.x; final Object $$a = this.$a; result = result * PRIME + ($$a == null ? 43 : $$a.hashCode()); final Object $b = this.b; result = result * PRIME + ($b == null ? 43 : $b.hashCode()); return result; } | hashCode |
10,889 | boolean (final Object o) { if (o == this) return true; if (!(o instanceof EqualsAndHashCode)) return false; final EqualsAndHashCode other = (EqualsAndHashCode) o; if (!other.canEqual((Object) this)) return false; if (this.x != other.x) return false; if (!java.util.Arrays.equals(this.y, other.y)) return false; if (!java.util.Arrays.deepEquals(this.z, other.z)) return false; final Object this$a = this.a; final Object other$a = other.a; if (this$a == null ? other$a != null : !this$a.equals(other$a)) return false; final Object this$b = this.b; final Object other$b = other.b; if (this$b == null ? other$b != null : !this$b.equals(other$b)) return false; return true; } | equals |
10,890 | boolean (final Object other) { return other instanceof EqualsAndHashCode; } | canEqual |
10,891 | int () { final int PRIME = 59; int result = 1; result = result * PRIME + this.x; result = result * PRIME + java.util.Arrays.hashCode(this.y); result = result * PRIME + java.util.Arrays.deepHashCode(this.z); final Object $a = this.a; result = result * PRIME + ($a == null ? 43 : $a.hashCode()); final Object $b = this.b; result = result * PRIME + ($b == null ? 43 : $b.hashCode()); return result; } | hashCode |
10,892 | boolean (final Object o) { if (o == this) return true; if (!(o instanceof EqualsAndHashCode2)) return false; final EqualsAndHashCode2 other = (EqualsAndHashCode2) o; if (this.x != other.x) return false; if (this.y != other.y) return false; if (Float.compare(this.f, other.f) != 0) return false; if (Double.compare(this.d, other.d) != 0) return false; if (this.b != other.b) return false; return true; } | equals |
10,893 | int () { final int PRIME = 59; int result = 1; result = result * PRIME + this.x; final long $y = this.y; result = result * PRIME + (int) ($y >>> 32 ^ $y); result = result * PRIME + Float.floatToIntBits(this.f); final long $d = Double.doubleToLongBits(this.d); result = result * PRIME + (int) ($d >>> 32 ^ $d); result = result * PRIME + (this.b ? 79 : 97); return result; } | hashCode |
10,894 | boolean (final Object o) { if (o == this) return true; if (!(o instanceof EqualsAndHashCode3)) return false; final EqualsAndHashCode3 other = (EqualsAndHashCode3) o; if (!other.canEqual((Object) this)) return false; return true; } | equals |
10,895 | boolean (final Object other) { return other instanceof EqualsAndHashCode3; } | canEqual |
10,896 | int () { int result = 1; return result; } | hashCode |
10,897 | boolean (final Object o) { if (o == this) return true; if (!(o instanceof EqualsAndHashCode4)) return false; final EqualsAndHashCode4 other = (EqualsAndHashCode4) o; if (!other.canEqual((Object) this)) return false; if (!super.equals(o)) return false; return true; } | equals |
10,898 | boolean (final Object other) { return other instanceof EqualsAndHashCode4; } | canEqual |
10,899 | int () { int result = super.hashCode(); return result; } | hashCode |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.