source
stringlengths 13
1.73k
| decompiled
stringlengths 17
2.86k
|
---|---|
val _counter = MutableStateFlow(a)
val counter = _counter.asStateFlow()
fun inc() {
_counter.update { count -> count + 1 }
} | Object valueOf = Integer.valueOf(i5);
if (valueOf == null) {
valueOf = androidx.activity.m.f76m;
}
new r(valueOf); |
annotation class Suspendable
val f = @Suspendable { println("well") } | public @interface Suspendable {
}
|
class TownSquare : Room("Town Square") {
override val dangerLevel = super.dangerLevel - 3
private var bellSound = "GWONG"
override fun load() = "The villagers rally and cheer as you enter!\n${ringBell()}"
private fun ringBell() = "The bell tower announces your arrival. $bellSound"
} | public final class TownSquare extends Room {
public final int c;
public String f3583d;
public TownSquare() {
super("Town Square");
this.c = super.getDangerLevel() - 3;
this.f3583d = "GWONG";
}
@Override
public int getDangerLevel() {
return this.c;
}
@Override
public String load() {
StringBuilder e5 = e.e("The villagers rally and cheer as you enter!\n");
StringBuilder e6 = e.e("The bell tower announces your arrival. ");
e6.append(this.f3583d);
e5.append(e6.toString());
return e5.toString();
}
}
|
data class User(val name: String, val age: Int)
| public final class User {
public final String f3584a;
public final int f3585b;
public User(String str, int i5) {
i.e("name", str);
this.f3584a = str;
this.f3585b = i5;
}
public static User copy$default(User user, String str, int i5, int i6, Object obj) {
if ((i6 & 1) != 0) {
str = user.f3584a;
}
if ((i6 & 2) != 0) {
i5 = user.f3585b;
}
return user.copy(str, i5);
}
public final String component1() {
return this.f3584a;
}
public final int component2() {
return this.f3585b;
}
public final User copy(String str, int i5) {
i.e("name", str);
return new User(str, i5);
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj instanceof User) {
User user = (User) obj;
return i.a(this.f3584a, user.f3584a) && this.f3585b == user.f3585b;
}
return false;
}
public final int getAge() {
return this.f3585b;
}
public final String getName() {
return this.f3584a;
}
public int hashCode() {
return Integer.hashCode(this.f3585b) + (this.f3584a.hashCode() * 31);
}
public String toString() {
StringBuilder e5 = e.e("User(name=");
e5.append(this.f3584a);
e5.append(", age=");
e5.append(this.f3585b);
e5.append(')');
return e5.toString();
}
}
|
class Version(val major: Int, val minor: Int): Comparable<Version> {
override fun compareTo(other: Version): Int {
if (this.major != other.major) {
return this.major - other.major
}
return this.minor - other.minor
}
} | public final class Version implements Comparable<Version> {
public final int f3586a;
public final int f3587b;
public Version(int i5, int i6) {
this.f3586a = i5;
this.f3587b = i6;
}
public final int getMajor() {
return this.f3586a;
}
public final int getMinor() {
return this.f3587b;
}
@Override
public int compareTo(Version version) {
i.e("other", version);
int i5 = this.f3586a;
int i6 = version.f3586a;
return i5 != i6 ? i5 - i6 : this.f3587b - version.f3587b;
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.