source stringlengths 13 1.73k | decompiled stringlengths 17 2.86k |
|---|---|
interface A {
fun funFromA() {}
}
| public interface A {
public static final class DefaultImpls {
public static void funFromA(A a5) {
}
}
void funFromA();
}
|
class Address {
var name: String = "Holmes, Sherlock"
var street: String = "Baker"
var city: String = "London"
var state: String? = null
var zip: String = "123456"
} | public final class Address {
public String f3481d;
public String f3479a = "Holmes, Sherlock";
public String f3480b = "Baker";
public String c = "London";
public String f3482e = "123456";
public final String getCity() {
return this.c;
}
public final Strin... |
object AnotherGame {
}
| public final class AnotherGame {
public static final AnotherGame INSTANCE = new AnotherGame();
}
|
class ArticleHeadline {
}
| public final class ArticleHeadline {
}
|
enum class Bit {
ZERO, ONE
} | public enum Bit {
ZERO,
ONE
}
|
open class Car {
val id: String
val type: String
constructor(id: String, type: String) {
this.id = id
this.type = type
}
} | public class Car {
public final String f3483a;
public final String f3484b;
public Car(String str, String str2) {
i.e("id", str);
i.e("type", str2);
this.f3483a = str;
this.f3484b = str2;
}
public final String getId() {
return this.f3483a;
}
... |
class Car12 (val id: String, val type: String) {
constructor(id: String): this(id, "unknown")
} | public final class Car12 {
public final String f3485a;
public final String f3486b;
public Car12(String str, String str2) {
i.e("id", str);
i.e("type", str2);
this.f3485a = str;
this.f3486b = str2;
}
public final String getId() {
return this.f3485... |
class Car56 {
fun getObject() = object {
val x: String = "x"
}
fun getObjectA() = object: A {
override fun funFromA() {}
val x: String = "x"
}
} | public final class Car56 {
public final Object getObject() {
return new Object() {
public final String f3487a = "x";
public final String getX() {
return this.f3487a;
}
};
}
public final A getObjectA() {
return new A(... |
interface Comparable<in T> {
operator fun compareTo(other: T): Int
} | public interface Comparable<T> {
int compareTo(T t5);
}
|
open class Constructors {
init {
println("Init block")
}
constructor(i: Int) {
println("Constructor $i")
}
} | public class Constructors {
public Constructors(int i5) {
System.out.println((Object) "Init block");
System.out.println((Object) ("Constructor " + i5));
}
}
|
annotation class Deprecated(
val message: String,
val replaceWith: ReplaceWith = ReplaceWith("")) | public @interface Deprecated {
String message();
e replaceWith() default @e(expression = "", imports = {});
}
|
enum class EnumClass : InterfaceEx | public enum EnumClass implements InterfaceEx {
}
|
open class Example (val map: Map<String, Any?>) {
val name: String by map
val age: Int by map
} | public class Example {
public static final e<Object>[] f3489b;
public final Map<String, Object> f3490a;
static {
n nVar = new n("name", "getName()Ljava/lang/String;");
q.f4126a.getClass();
f3489b = new e[]{nVar, new n("age", "getAge()I")};
}
public Example(Map<... |
annotation class Fancy(val why: String) | public @interface Fancy {
String why();
}
|
object Game {
init {
println("Welcome, adventurer.")
}
} | public final class Game {
public static final Game INSTANCE = new Game();
static {
System.out.println((Object) "Welcome, adventurer.");
}
}
|
class GameInput(arg: String?) {
private val input = arg ?: ""
val command = input.split(" ")[0]
val argument = input.split(" ").getOrElse(1, { "" })
private fun commandNotFound() = "I'm not quite sure what you're tryin to do!"
fun processCommand() = when (command.toLowerCase()) {
else -> c... | public final class GameInput {
public final String f3491a;
public final String f3492b;
public GameInput(String str) {
str = str == null ? "" : str;
this.f3491a = (String) j.C(str, new String[]{" "}).get(0);
List C = j.C(str, new String[]{" "});
this.f3492b = (Str... |
open class InitOrderDemo(name: String) {
val firstProperty = "First property: $name".also(::println)
init {
println("First initializer block that prints $name")
}
val secondProperty = "Second property: ${name.length}".also(::println)
init {
println("Second initializer block that p... | public class InitOrderDemo {
public final String f3493a;
public final String f3494b;
public InitOrderDemo(String str) {
i.e("name", str);
String c = e.c("First property: ", str);
System.out.println((Object) c);
this.f3493a = c;
System.out.println((Object)... |
sealed interface InterfaceEx | public interface InterfaceEx {
}
|
class KotlinConf : Application() {
override fun attachBaseContext(base: Context) {
super.attachBaseContext(base)
}
companion object {
@Volatile
lateinit var service: Mutex
}
} | public final class KotlinConf extends Application {
public static final Companion Companion = new Companion(null);
public static volatile Mutex service;
public static final class Companion {
public Companion() {
}
public Companion(e eVar) {
this();
}
... |
interface KProperty<T> {
}
| public interface KProperty<T> {
}
|
object MainRepository{
private var data:String? = null
fun loading(): ResultState {
val loadData = ResultState.LOADING
data = ""
return loadData
}
fun display (): ResultState {
val displayData = ResultState.SUCCESS(arrayOf(String))
data = null
return dis... | public final class MainRepository {
public static final MainRepository INSTANCE = new MainRepository();
public final ResultState display() {
return new ResultState.SUCCESS(new Object[]{d.f2344d});
}
public final ResultState error() {
return new ResultState.ERROR(null);
}
publi... |
sealed class Menu{
data class PIZZA(val quantity:Int, val size:String, val name: String):Menu()
object NotInTheMunu : Menu()
} | public abstract class Menu {
public static final class NotInTheMunu extends Menu {
public static final NotInTheMunu INSTANCE = new NotInTheMunu();
public NotInTheMunu() {
super(null);
}
}
public static final class PIZZA extends Menu {
public... |
class Mutex {
private val state = AtomicInteger(-1)
private val waiters = ConcurrentLinkedQueue<Waiter>()
suspend fun lock() {
if (state.compareAndSet(-1, 0)) return
return suspendCoroutineUninterceptedOrReturn sc@ { uc ->
val waiter = Waiter(uc.intercepted())
... | public final class Mutex {
public final AtomicInteger f3497a = new AtomicInteger(-1);
public final ConcurrentLinkedQueue<a> f3498b = new ConcurrentLinkedQueue<>();
public static final class a {
public final d<m> f3499a;
public boolean f3500b;
... |
class MyClass {
companion object : KProperty<MyClass> {
fun create(): MyClass = MyClass()
}
} | public final class MyClass {
public static final Companion Companion = new Companion(null);
public static final class Companion implements KProperty<MyClass> {
public Companion() {
}
public Companion(e eVar) {
this();
}
public final MyClass create() {... |
public class MyTest {
lateinit var subject: Rectangle
private var _table: Map<String, Int>? = null
public val table: Map<String, Int>
get() {
if (_table == null) {
_table = HashMap()
}
return _table ?: throw AssertionError("Set to null by another ... | public final class MyTest {
public HashMap f3501a;
public Rectangle subject;
public final Rectangle getSubject() {
Rectangle rectangle = this.subject;
if (rectangle != null) {
return rectangle;
}
i.i("subject");
throw null;
}
public final M... |
class Nama {
fun <T> flow(
block: suspend FlowCollector<T>.() -> Unit
) {
flow {
for (i in 1..3) {
delay(100)
println("Emit $i")
emit(i)
}
}
}
} | public final class Nama {
@e(c = "com.ptsecurity.deobfuscator.Nama$flow$1", f = "Nama.kt", l = {15, 17}, m = "invokeSuspend")
public static final class a extends g implements p<d<? super Integer>, z3.d<? super m>, Object> {
public int f3502g;
public int f3503h;
... |
value class Name(val s: String) {
init {
require(s.length > 0) { }
}
val length: Int
get() = s.length
fun greet() {
println("Hello, $s")
}
}
| public final class Name {
public final String f3505a;
public Name(String str) {
this.f3505a = str;
}
public static final Name m0boximpl(String str) {
return new Name(str);
}
public static String m1constructorimpl(String str) {
i.e("s", str);
i... |
class NewGameInput {
private val MAPS_FILEPATH = "nyethack.maps"
fun load() = File(MAPS_FILEPATH).readBytes()
} | public final class NewGameInput {
public final String f3506a = "nyethack.maps";
public final byte[] load() {
File file = new File(this.f3506a);
FileInputStream fileInputStream = new FileInputStream(file);
try {
long length = file.length();
if (length <= 214... |
interface NewsApi {
suspend fun fetchLatestNews(): List<ArticleHeadline>
} | public interface NewsApi {
Object fetchLatestNews(d<? super List<ArticleHeadline>> dVar);
}
|
class NewsRemoteDataSource(
private val newsApi: NewsApi,
private val refreshIntervalMs: Long = 5000
) {
val latestNews: Flow<List<ArticleHeadline>> = flow {
while(true) {
val latestNews = newsApi.fetchLatestNews()
emit(latestNews)
delay(refreshIntervalMs)
... | public final class NewsRemoteDataSource {
public final NewsApi f3507a;
public final long f3508b;
public final l c;
@e(c = "com.ptsecurity.deobfuscator.NewsRemoteDataSource$latestNews$1", f = "NewsRemoteDataSource.kt", l = {13, 14, 15}, m = "invokeSuspend")
public static final class... |
class NewsRepository(
private val newsRemoteDataSource: NewsRemoteDataSource,
private val userData: UserData
) {
val favoriteLatestNews: Flow<List<ArticleHeadline>> =
newsRemoteDataSource.latestNews
.onEach { news -> }
} | public final class NewsRepository {
public final h f3512a;
@e(c = "com.ptsecurity.deobfuscator.NewsRepository$favoriteLatestNews$1", f = "NewsRepository.kt", l = {}, m = "invokeSuspend")
public static final class a extends g implements p<List<? extends ArticleHeadline>, d<? super m>, Object> {
... |
sealed class Only{
object LOADING: Only()
data class SUCCESS(val viewData: Array<Any>): Only()
sealed class ERROR: Only() {
class InternalError(val errormessage: java.lang.InternalError): ERROR()
class UnknownError(val errormessage: java.lang.UnknownError): ERROR()
}
} | public abstract class Only {
public static abstract class ERROR extends Only {
public static final class InternalError extends ERROR {
public final java.lang.InternalError f3513a;
public InternalError(java.lang.InternalError internalError) ... |
class Outer {
private val bar: Int = 1
class Nested {
fun foo() = 2
}
interface KProperty
} | public final class Outer {
public interface KProperty {
}
public static final class Nested {
public final int foo() {
return 2;
}
}
}
|
class Outer1 {
private val bar: Int = 1
inner class Inner {
fun foo() = bar
}
} | public final class Outer1 {
public final int f3516a = 1;
public final class Inner {
public Inner() {
}
public final int foo() {
return Outer1.this.f3516a;
}
}
}
|
abstract class Person {
var age: Int = 40
fun displaySSN(ssn: Int) {
println("My SSN is $ssn.")
}
abstract fun displayJob(description: String)
} | public abstract class Person {
public int f3518a = 40;
public abstract void displayJob(String str);
public final void displaySSN(int i5) {
System.out.println((Object) ("My SSN is " + i5 + '.'));
}
public final int getAge() {
return this.f3518a;
}
public final void s... |
open class Person123 constructor(val name: String, val age: Int? = null) | public class Person123 {
public final String f3519a;
public final Integer f3520b;
public Person123(String str, Integer num) {
i.e("name", str);
this.f3519a = str;
this.f3520b = num;
}
public final Integer getAge() {
return this.f3520b;
}
public ... |
class Person14 (val firstName: String, val lastName: String, var isEmployed: Boolean = true) | public final class Person14 {
public final String f3521a;
public final String f3522b;
public boolean c;
public Person14(String str, String str2, boolean z4) {
i.e("firstName", str);
i.e("lastName", str2);
this.f3521a = str;
this.f3522b = str2;
this.c ... |
internal class PersonJava {
val name: String
val age: Int?
constructor(name: String) {
this.name = name
age = null
}
constructor(name: String, age: Int?) {
this.name = name
this.age = age
}
} | public final class PersonJava {
public final String f3523a;
public final Integer f3524b;
public PersonJava(String str) {
i.e("name", str);
this.f3523a = str;
this.f3524b = null;
}
public final Integer getAge() {
return this.f3524b;
}
public fina... |
open class Pir(val name: String = "") {
inline fun execute(action: () -> Unit) {
action()
}
inline fun executeAll(action1: () -> Unit, noinline action2: () -> Unit) {
action1()
action2()
}
} | public class Pir {
public final String f3525a;
public Pir() {
this(null, 1, null);
}
public Pir(String str) {
i.e("name", str);
this.f3525a = str;
}
public final void execute(a<m> aVar) {
i.e("action", aVar);
aVar.m();
}
public final void... |
class PremadeWorldMap {
companion object {
val age = 11
fun bar() {
println("Companion object called")
}
}
}
| public final class PremadeWorldMap {
public static final Companion Companion = new Companion(null);
public static final int f3526a = 11;
public static final class Companion {
public Companion() {
}
public Companion(e eVar) {
this();
}
public... |
sealed class ReadResult {
data class Number(val value: Int): ReadResult()
data class Text(val value: String): ReadResult()
}
| public abstract class ReadResult {
public static final class Number extends ReadResult {
public final int f3527a;
public Number(int i5) {
super(null);
this.f3527a = i5;
}
public static Number copy$default(Number number, int i5, int i6, Objec... |
class Rectangle(val width: Int, val height: Int) {
val area: Int
get() = this.width * this.height
var setterVisibility: String = "abc"
private set
var counter = 0
set(value) {
if (value >= 0)
field = value
}
} | public final class Rectangle {
public final int f3529a;
public final int f3530b;
public String c = "abc";
public int f3531d;
public Rectangle(int i5, int i6) {
this.f3529a = i5;
this.f3530b = i6;
}
public final int getArea() {
return this.f3529a * ... |
abstract class ResultState{
object LOADING: ResultState()
data class SUCCESS(val viewData: Array<Any>): ResultState()
data class ERROR(val errormessage: Throwable?): ResultState()
} | public abstract class ResultState {
public static final class ERROR extends ResultState {
public final Throwable f3532a;
public ERROR(Throwable th) {
this.f3532a = th;
}
public static ERROR copy$default(ERROR error, Throwable th, int i5, Object obj) {
... |
open class Room(val name: String) {
protected open val dangerLevel = 5
fun description() = "Room: $name\n" +
"Danger level: $dangerLevel"
open fun load() = "Nothing much to see here..."
}
| public class Room {
public final String f3534a;
public final int f3535b;
public Room(String str) {
i.e("name", str);
this.f3534a = str;
this.f3535b = 5;
}
public final String description() {
StringBuilder e5 = e.e("Room: ");
e5.append(this.f3534a... |
sealed class SealedClass {
class One(val value: Int) : SealedClass()
class Two(val x: Int, val y: Int) : SealedClass()
fun eval(e: SealedClass): Int =
when (e) {
is SealedClass.One -> e.value
is SealedClass.Two -> e.x + e.y
}
} | public abstract class SealedClass {
public static final class One extends SealedClass {
public final int f3536a;
public One(int i5) {
super(null);
this.f3536a = i5;
}
public final int getValue() {
return this.f3536a;
}
... |
class SomeTest {
private val dispatcher = Executors
.newSingleThreadExecutor()
.asCoroutineDispatcher()
fun testSomeUI() = runBlocking {
launch(Dispatchers.Main) {
}
}
} | public final class SomeTest {
@e(c = "com.ptsecurity.deobfuscator.SomeTest$testSomeUI$1", f = "SomeTest.kt", l = {}, m = "invokeSuspend")
public static final class a extends g implements p<z, d<? super u0>, Object> {
public Object f3539g;
@e(c = "com.ptsecurity.deobfuscator.Som... |
interface Source<out T> {
fun nextT(): T
} | public interface Source<T> {
T nextT();
}
|
val a: Byte = -10
return a | return (byte) -10; |
val a: Byte = -10
println(a) | System.out.println((Object) (byte) -10); |
val b: Short = 45
return b | return (short) 45; |
val b: Short = 45
println(b) | System.out.println((Object) (short) 45); |
val c: Int = -250
return c | return -250; |
val c: Int = -250
println(c) | System.out.println(-250); |
val c: Int = 0x0A1
return c | return 161; |
val c: Int = 0x0A1
println(c) | System.out.println(161); |
val c: Int = 0b0101
return c | return 5; |
val c: Int = 0b0101
println(c) | System.out.println(5); |
val c: Int = 1_000_000
return c | return 1000000; |
val c: Int = 1_000_000
println(c) | System.out.println(1000000); |
val c: Long = 0xFF_EC_DE_5E
return c | return 4293713502L; |
val c: Long = 1234_5678_9012_3456L
println(c) | System.out.println(1234567890123456L); |
val d: Long = 30000
return d | return 30000L; |
val d: Long = 30000
println(d) | System.out.println(30000L); |
val a: UByte = 10U
return a | return (byte) 10; |
val a: UByte = 10U
println(a) | System.out.println(new v3.h()); |
val b: UShort = 45U
return b | return (short) 45; |
val b: UShort = 45U
println(b) | System.out.println(new k()); |
val c: UInt = 250U
return c | return 250; |
val c: UInt = 250U
println(c) | System.out.println(new v3.i()); |
val d: ULong = 30000U
return d | return 30000L; |
val d: ULong = 30000U
println(d) | System.out.println(new v3.j()); |
val height: Double = 1.78
return height | return 1.78d; |
val height: Double = 1.78
println(height) | System.out.println(1.78d); |
val pi: Float = 3.14F
return pi | return 3.14f; |
val pi: Float = 3.14F
println(pi) | System.out.println(3.14f); |
val a: Boolean = true
return a | return true; |
val a: Boolean = true
println(a) | System.out.println(true); |
val a: Boolean = false
return a | return false; |
val a: Boolean = false
println(a) | System.out.println(false); |
val a: Char = 'A'
return a | return 'A'; |
val a: Char = 'A'
println(a) | System.out.println('A'); |
val a: Char = '\t'
return a | return '\t'; |
val a: Char = '\t'
println(a) | System.out.println('\t'); |
val name: String = "Eugene"
return name | return "Eugene"; |
val name: String = "AWQ"
println(name) | System.out.println((Object) "AWQ"); |
val name: String = """
SALT II was a series of talks between United States
and Soviet negotiators from 1972 to 1979.
It was a continuation of the SALT I talks.
"""
return name | return "\n SALT II was a series of talks between United States\n and Soviet negotiators from 1972 to 1979.\n It was a continuation of the SALT I talks.\n "; |
val name: String = """
SALT I was a series of talks between United States
and Soviet negotiators from 1972 to 1979.
It was a continuation of the SALT I talks.
"""
println(name) | System.out.println((Object) "\n SALT I was a series of talks between United States\n and Soviet negotiators from 1972 to 1979.\n It was a continuation of the SALT I talks.\n "); |
val firstName = "Tom"
val lastName = "Smith"
val welcome = "Hello, $firstName $lastName"
return welcome | return "Hello, Tom Smith"; |
val firstName = "Tom"
val welcome = "Hello, $firstName $lastName"
return welcome | i4.i.e("lastName", str);
return "Hello, Tom " + str; |
val firstName = "Tom"
val welcome = "Hello, $firstName $lastName"
return welcome | i4.i.e("lastName", obj);
return "Hello, Tom " + obj; |
val firstName = "Tom1"
val lastName = "Smith1"
val welcome = "Hello, $firstName $lastName"
println(welcome) | System.out.println((Object) "Hello, Tom1 Smith1"); |
val firstName = "Tom1"
val welcome = "Hello, $firstName $lastName"
println(welcome) | i4.i.e("lastName", str);
System.out.println((Object) ("Hello, Tom1 " + str)); |
val firstName = "Tom1"
val welcome = "Hello, $firstName $lastName"
println(welcome) | i4.i.e("lastName", obj);
System.out.println((Object) ("Hello, Tom1 " + obj)); |
val name = "Tom"
val age = 22
val userInfo = "Your name: $name Your age: $age"
return userInfo | return "Your name: Tom Your age: 22"; |
val name = "Tom"
val userInfo = "Your name: $name Your age: $age"
return userInfo | return "Your name: Tom Your age: " + i5; |
val name = "Tom"
val userInfo = "Your name: $name Your age: $age"
return userInfo | i4.i.e("age", obj);
return "Your name: Tom Your age: " + obj; |
val name = "Tom"
val age = 22
val userInfo = "Your name: $name Your age: $age"
println(userInfo) | System.out.println((Object) "Your name: Tom Your age: 22"); |
val i = 10
println("i = $i") | System.out.println((Object) "i = 10"); |
val s = "abc"
return "$s.length is ${s.length}" | return "abc.length is 3"; |
val price = """
${'$'}_9.99
"""
return price | return "\n $_9.99\n "; |
End of preview. Expand in Data Studio
No dataset card yet
- Downloads last month
- 4