source
stringlengths
13
1.73k
decompiled
stringlengths
17
2.86k
intsHashSet.add(5) intsHashSet.remove(2) println(intsHashSet::class.java) return intsHashSet.elementAt(2)
Object obj; i4.i.e("intsHashSet", hashSet); hashSet.add(5); hashSet.remove(2); System.out.println(hashSet.getClass()); boolean z4 = hashSet instanceof List; if (z4) { obj = ((List) hashSet).get(2); } else { w3.i iVar = new w3.i(); if (z4) { List list = (List) hashSet; if (2 <= list.size() - 1) { obj = list.get(2); } else { iVar.g(2); throw null; } } else { int i5 = 0; for (Object obj2 : hashSet) { int i6 = i5 + 1; if (2 == i5) { obj = obj2; } else { i5 = i6; } } iVar.g(2); throw null; } } return ((Number) obj).intValue();
intSortedSet.add(6) intSortedSet.remove(1) println(intSortedSet::class.java) return intSortedSet
i4.i.e("intSortedSet", sortedSet); sortedSet.add(6); sortedSet.remove(1); System.out.println(sortedSet.getClass()); return sortedSet;
intLinkedHashSet.add(44) intLinkedHashSet.remove(2) println(intLinkedHashSet::class.java) return intLinkedHashSet
i4.i.e("intLinkedHashSet", linkedHashSet); linkedHashSet.add(44); linkedHashSet.remove(2); System.out.println(linkedHashSet.getClass()); return linkedHashSet;
intMutableSet.add(8) intMutableSet.remove(3) return intMutableSet::class.java
i4.i.e("intMutableSet", set); set.add(8); set.remove(3); return set.getClass();
val setB = mutableSetOf<String>("a","b","c","d") setB.addAll(setA) println(setB) return setB.union(setA)
i4.i.e("setA", set); String[] strArr = {"a", "b", "c", "d"}; LinkedHashSet linkedHashSet = new LinkedHashSet(androidx.activity.m.v(4)); for (int i5 = 0; i5 < 4; i5++) { linkedHashSet.add(strArr[i5]); } linkedHashSet.addAll(set); System.out.println(linkedHashSet); LinkedHashSet linkedHashSet2 = new LinkedHashSet(linkedHashSet); w3.g.N(set, linkedHashSet2); return linkedHashSet2;
fruits .filter { it.startsWith("Р°") } .sortedBy { it } .map { it.uppercase() } .forEach { println(it) } return fruits
i4.i.e("fruits", list); ArrayList arrayList = new ArrayList(); for (Object obj : list) { if (o4.g.v((String) obj, "Р°")) { arrayList.add(obj); } } List<String> P = w3.j.P(arrayList, new Comparator() { @Override public final int compare(T t5, T t6) { return androidx.activity.m.i((String) t5, (String) t6); } }); ArrayList arrayList2 = new ArrayList(w3.e.M(P)); for (String str : P) { String upperCase = str.toUpperCase(Locale.ROOT); i4.i.d("this as java.lang.String).toUpperCase(Locale.ROOT)", upperCase); arrayList2.add(upperCase); } Iterator it = arrayList2.iterator(); while (it.hasNext()) { System.out.println((Object) ((String) it.next())); } return list;
println("Number of elements: ${numbers.size}") println("Third element: ${numbers.get(2)}") println("Fourth element: ${numbers[3]}") return "Index of element \"two\" ${numbers.indexOf("two")}"
i4.i.e("numbers", list); System.out.println((Object) ("Number of elements: " + list.size())); System.out.println((Object) ("Third element: " + list.get(2))); System.out.println((Object) ("Fourth element: " + list.get(3))); return "Index of element \"two\" " + list.indexOf("two");
numbers.add("five") return numbers
i4.i.e("numbers", list); list.add("five"); return list;
numbers.add(5) numbers.removeAt(1) numbers[0] = 0 numbers.shuffle() return numbers
i4.i.e("numbers", list); list.add(5); list.remove(1); list.set(0, 0); Collections.shuffle(list); return list;
val associatedMap = cats.associate { Pair(cats[0], cats[1])} return associatedMap
i4.i.e("cats", list); int v = androidx.activity.m.v(w3.e.M(list)); if (v < 16) { v = 16; } LinkedHashMap linkedHashMap = new LinkedHashMap(v); for (Number number : list) { number.intValue(); linkedHashMap.put(list.get(0), list.get(1)); } return linkedHashMap;
val associatedMap = cats.associate { Pair(cats[0], cats[1])} val originalMap = mutableMapOf<Int, Int>() cats.associateTo(originalMap) { cats[0] to cats[1] } return originalMap
i4.i.e("cats", list); int v = androidx.activity.m.v(w3.e.M(list)); if (v < 16) { v = 16; } LinkedHashMap linkedHashMap = new LinkedHashMap(v); for (Number number : list) { number.intValue(); linkedHashMap.put(list.get(0), list.get(1)); } LinkedHashMap linkedHashMap2 = new LinkedHashMap(); for (Number number2 : list) { number2.intValue(); linkedHashMap2.put(list.get(0), list.get(1)); } return linkedHashMap2;
val result = listOf(cats, listOf(4, 5, 6)).flatMap { it } return result
i4.i.e("cats", list); List<List> u5 = androidx.activity.m.u(list, androidx.activity.m.u(4, 5, 6)); ArrayList arrayList = new ArrayList(); for (List list2 : u5) { w3.g.N(list2, arrayList); } return arrayList;
var dest = list.map { it * it } return dest.toString()
i4.i.e("list", list); ArrayList arrayList = new ArrayList(w3.e.M(list)); for (Number number : list) { int intValue = number.intValue(); arrayList.add(Integer.valueOf(intValue * intValue)); } return arrayList.toString();
return list.mapIndexed { index, i -> "$index: $i"}
i4.i.e("list", list); ArrayList arrayList = new ArrayList(w3.e.M(list)); int i5 = 0; for (Object obj : list) { int i6 = i5 + 1; if (i5 >= 0) { int intValue = ((Number) obj).intValue(); arrayList.add(i5 + ": " + intValue); i5 = i6; } else { throw new ArithmeticException("Index overflow has happened."); } } return arrayList;
return list.mapNotNull { }
i4.i.e("list", list); ArrayList arrayList = new ArrayList(); for (Number number : list) { number.intValue(); arrayList.add(m.f5692a); } return arrayList;
return cats.get(2)
i4.i.e("cats", list); return list.get(2).intValue();
return cats.getOrElse(2) { cats.first() }
Integer valueOf; i4.i.e("cats", list); if (2 <= list.size() - 1) { valueOf = list.get(2); } else if (!list.isEmpty()) { valueOf = Integer.valueOf(list.get(0).intValue()); } else { throw new NoSuchElementException("List is empty."); } return valueOf.intValue();
return cats.any { it % 2 == 0 }
boolean z4; i4.i.e("cats", list); if (!list.isEmpty()) { for (Number number : list) { if (number.intValue() % 2 == 0) { z4 = true; continue; } else { z4 = false; continue; } if (z4) { return true; } } } return false;
return cats.all { it < 11 }
boolean z4; i4.i.e("cats", list); if (!list.isEmpty()) { for (Number number : list) { if (number.intValue() < 11) { z4 = true; continue; } else { z4 = false; continue; } if (!z4) { return false; } } } return true;
return cats.none { it > 6 }
boolean z4; i4.i.e("cats", list); if (!list.isEmpty()) { for (Number number : list) { if (number.intValue() > 6) { z4 = true; continue; } else { z4 = false; continue; } if (z4) { return false; } } } return true;
return list.reduce { total, next -> total + next }
i4.i.e("list", list); Iterator<T> it = list.iterator(); if (it.hasNext()) { Object next = it.next(); while (it.hasNext()) { next = Integer.valueOf(((Number) next).intValue() + ((Number) it.next()).intValue()); } return ((Number) next).intValue(); } throw new UnsupportedOperationException("Empty collection can't be reduced.");
return list.maxOrNull()
java.lang.Comparable comparable; i4.i.e("list", list); Iterator<T> it = list.iterator(); if (!it.hasNext()) { comparable = null; } else { java.lang.Comparable comparable2 = (java.lang.Comparable) it.next(); while (it.hasNext()) { java.lang.Comparable comparable3 = (java.lang.Comparable) it.next(); if (comparable2.compareTo(comparable3) < 0) { comparable2 = comparable3; } } comparable = comparable2; } return (Integer) comparable;
return list.dropLastWhile { it > 4 }
boolean z4; boolean z5; i4.i.e("list", list); if (!list.isEmpty()) { ListIterator<Integer> listIterator = list.listIterator(list.size()); while (listIterator.hasPrevious()) { int i5 = 0; if (listIterator.previous().intValue() > 4) { z4 = true; continue; } else { z4 = false; continue; } if (!z4) { int nextIndex = listIterator.nextIndex() + 1; if (nextIndex >= 0) { z5 = true; } else { z5 = false; } if (z5) { if (nextIndex == 0) { return l.c; } if (nextIndex >= list.size()) { return w3.j.R(list); } if (nextIndex == 1) { if (!list.isEmpty()) { return androidx.activity.m.t(list.get(0)); } throw new NoSuchElementException("List is empty."); } ArrayList arrayList = new ArrayList(nextIndex); for (Object obj : list) { arrayList.add(obj); i5++; if (i5 == nextIndex) { break; } } return androidx.activity.m.x(arrayList); } throw new IllegalArgumentException(("Requested element count " + nextIndex + " is less than zero.").toString()); } } } return l.c;
return list.sortedDescending()
i4.i.e("list", list); return w3.j.P(list, y3.c.f5950a);
return list.sortWith( nullsLast(compareByDescending{it}))
i4.i.e("list", list); final ?? r0 = new Comparator() { @Override public final int compare(T t5, T t6) { return androidx.activity.m.i(Integer.valueOf(((Number) t6).intValue()), Integer.valueOf(((Number) t5).intValue())); } }; Comparator comparator = new Comparator() { @Override public final int compare(Object obj, Object obj2) { Comparator comparator2 = r0; i.e("$comparator", comparator2); if (obj == obj2) { return 0; } if (obj == null) { return 1; } if (obj2 == null) { return -1; } return comparator2.compare(obj, obj2); } }; if (list.size() > 1) { Collections.sort(list, comparator); }
return list.shuffle()
i4.i.e("list", list); Collections.shuffle(list);
for ((index, element) in list.withIndex()){ println("$index: $element") }
i4.i.e("list", list); int i5 = 0; for (Integer num : list) { int i6 = i5 + 1; int intValue = num.intValue(); System.out.println((Object) (i5 + ": " + intValue)); i5 = i6; }
list.forEach lit@{ if (it == 3) return@lit print(it) }
i4.i.e("list", list); for (Number number : list) { int intValue = number.intValue(); if (intValue != 3) { System.out.print(intValue); } }
list.forEach { if (it == 3) return@forEach it * 3 }
i4.i.e("list", list); for (Number number : list) { number.intValue(); }
run loop@{ list.forEach { if (it == 3) return@loop it * 3 } }
i4.i.e("list", list); Iterator<T> it = list.iterator(); while (it.hasNext() && ((Number) it.next()).intValue() != 3) { }
val cats = mutableListOf("vavd", "fbebe", "dva", "wrvw") val catSet = cats.toSet() return catSet
return w3.j.S(new ArrayList(new w3.b(new String[]{"vavd", "fbebe", "dva", "wrvw"})));
val catSet = cats.toSet() return catSet
i4.i.e("cats", list); return w3.j.S(list);
val catSet = cats.toSet() .toList() return catSet
i4.i.e("cats", list); return w3.j.R(w3.j.S(list));
return cats.mapNotNull { it.last() }
boolean z4; i4.i.e("cats", set); ArrayList arrayList = new ArrayList(); for (String str : set) { i4.i.e("<this>", str); if (str.length() == 0) { z4 = true; } else { z4 = false; } if (!z4) { arrayList.add(Character.valueOf(str.charAt(o4.j.w(str)))); } else { throw new NoSuchElementException("Char sequence is empty."); } } return arrayList;
return names.zip(sizes).toMap()
i4.i.e("names", list); i4.i.e("sizes", list2); return q.M(w3.j.T(list, list2));
for(s in strings) print("$s ") println()
i4.i.e("strings", collection); Iterator<String> it = collection.iterator(); while (it.hasNext()) { System.out.print((Object) (it.next() + ' ')); } System.out.println();
this.filterTo(shortWords) { it.length <= maxLength } val articles = setOf("a", "A", "an", "An", "the", "The") shortWords -= articles return shortWords
boolean z4; i4.i.e("<this>", list); i4.i.e("shortWords", list2); for (Object obj : list) { if (((String) obj).length() <= i5) { z4 = true; } else { z4 = false; } if (z4) { list2.add(obj); } } list2.removeAll(b3.d.l("a", "A", "an", "An", "the", "The")); return list2;
if (numbersMap.containsValue(1)) numbersMap.keys return numbersMap.values
i4.i.e("numbersMap", map); if (map.containsValue(1)) { map.keySet(); } return map.values();
return numbersMap == anotherMap
i4.i.e("numbersMap", map); i4.i.e("anotherMap", map2); return i4.i.a(map, map2);
numbersMap.put("three", 3) numbersMap["one"] = 11 return numbersMap
i4.i.e("numbersMap", map); map.put("three", 3); map.put("one", 11); return map;
for((alphabet,word) in numbersMap) { println(alphabet + " for " + word) }
i4.i.e("numbersMap", linkedHashMap); for (Map.Entry<String, Integer> entry : linkedHashMap.entrySet()) { int intValue = entry.getValue().intValue(); System.out.println((Object) (entry.getKey() + " for " + intValue)); }
numbersMap.putIfAbsent("Bluto", 3) for(key in numbersMap.keys) { println(key.toString() + " = " + numbersMap[key]) }
i4.i.e("numbersMap", linkedHashMap); linkedHashMap.putIfAbsent("Bluto", 3); for (String str : linkedHashMap.keySet()) { System.out.println((Object) (str + " = " + linkedHashMap.get(str))); }
return numbersMap.keys.firstOrNull() ?: ""
i4.i.e("numbersMap", linkedHashMap); Set<String> keySet = linkedHashMap.keySet(); i4.i.d("numbersMap.keys", keySet); Object obj = null; if (keySet instanceof List) { List list = (List) keySet; if (!list.isEmpty()) { obj = list.get(0); } } else { Iterator<T> it = keySet.iterator(); if (it.hasNext()) { obj = it.next(); } } String str = (String) obj; if (str == null) { return ""; } return str;
var max = a if (a < b) max = b return max
return i5 < i6 ? i6 : i5;
var max: Int if (a > b) { max = a } else { max = b } return max
return i5 > i6 ? i5 : i6;
val max = if (a > b) a else b return max
return i5 > i6 ? i5 : i6;
when (x) { 1 -> print("x == 1") 2 -> print("x == 2") else -> { print("x neither 1, nor 2") } }
if (i5 != 1) { if (i5 != 2) { System.out.print((Object) "x neither 1, nor 2"); return; } else { System.out.print((Object) "x == 2"); return; } } System.out.print((Object) "x == 1");
val numericValue = when (condition020(a, b)) { 0 -> Bit.ZERO 1 -> Bit.ONE else -> {} } return numericValue
int condition020 = condition020(i5, i6); if (condition020 != 0) { if (condition020 != 1) { return m.f5692a; } return Bit.ONE; } return Bit.ZERO;
when (x) { x.toInt() -> print("s encodes x") else -> print("s does not encode x") }
System.out.print((Object) "s encodes x");
val a = when (x) { in 1..10 -> true !in 10..20 -> true else -> false } return a
if (!(1 <= i5 && i5 < 11)) { if (10 <= i5 && i5 < 21) { return false; } } return true;
val a = when(x) { is String -> x.startsWith("prefix") else -> false } return a
i4.i.e("x", obj); if (obj instanceof String) { return o4.g.v((String) obj, "prefix"); } return false;
for (item in collection) print(item)
i4.i.e("collection", list); for (String str : list) { System.out.print((Object) str); }
for (i in 6 downTo a step 2) { println(i) }
int i6 = 6; int i7 = u1.a.i(6, i5, -2); if (i7 > 6) { return; } while (true) { System.out.println(i6); if (i6 != i7) { i6 -= 2; } else { return; } }
for ((index, value) in array.withIndex()) { println("the element at $index is $value") }
i4.i.e("array", numArr); int length = numArr.length; for (int i5 = 0; i5 < length; i5++) { int intValue = numArr[i5].intValue(); System.out.println((Object) ("the element at " + i5 + " is " + intValue)); }
var index = 0 while (index < items.size) { println("${index} - ${items[index]}") index++ }
i4.i.e("items", list); for (int i5 = 0; i5 < list.size(); i5++) { System.out.println((Object) (i5 + " - " + list.get(i5))); }
var a = when (obj) { 1 -> "One" "Hello" -> "Hi" is Long -> "Long" !is String -> "Not string" else -> "Unknown" } return a
i4.i.e("obj", obj); if (i4.i.a(obj, 1)) { return "One"; } if (i4.i.a(obj, "Hello")) { return "Hi"; } if (obj instanceof Long) { return "Long"; } if (!(obj instanceof String)) { return "Not string"; } return "Unknown";
val x = parseInt(arg1) val y = parseInt(arg2) if (x != null && y != null) { print(x * y) } else { println("'$arg1' or '$arg2'") }
i4.i.e("arg1", str); i4.i.e("arg2", str2); System.out.print(Integer.parseInt(str2) * Integer.parseInt(str));
val stream = Files.newInputStream(Paths.get("/some/file.txt")) stream.buffered().reader().use { reader -> println(reader.readText()) }
BufferedInputStream bufferedInputStream; InputStream newInputStream = Files.newInputStream(Paths.get("/some/file.txt", new String[0]), new OpenOption[0]); i4.i.d("stream", newInputStream); if (newInputStream instanceof BufferedInputStream) { bufferedInputStream = (BufferedInputStream) newInputStream; } else { bufferedInputStream = new BufferedInputStream(newInputStream, 8192); } InputStreamReader inputStreamReader = new InputStreamReader(bufferedInputStream, o4.a.f4627a); try { StringWriter stringWriter = new StringWriter(); char[] cArr = new char[8192]; for (int read = inputStreamReader.read(cArr); read >= 0; read = inputStreamReader.read(cArr)) { stringWriter.write(cArr, 0, read); } String stringWriter2 = stringWriter.toString(); i4.i.d("buffer.toString()", stringWriter2); System.out.println((Object) stringWriter2); b3.d.c(inputStreamReader, null); } finally { }
return IntArray(size).apply { fill(-1) }
int[] iArr = new int[i5]; Arrays.fill(iArr, 0, i5, -1); return iArr;
val data = MutableLiveData<String>().apply { postValue("hello") }
boolean z4; y yVar = new y(); synchronized (yVar.f1639a) { if (yVar.f1643f == LiveData.f1638k) { z4 = true; } else { z4 = false; } yVar.f1643f = "hello"; } if (z4) { j.a.w().x(yVar.f1647j); }
if (obj !is String) return null return obj.length
i4.i.e("obj", obj); if (!(obj instanceof String)) { return null; } return Integer.valueOf(((String) obj).length());
if (obj is String && obj.length > 0) { return obj.length } return null
i4.i.e("obj", obj); if (obj instanceof String) { String str = (String) obj; if (str.length() > 0) { return Integer.valueOf(str.length()); } return null; } return null;
var townSquare = obj var className = when(townSquare) { is Int -> "TownSquare" is String -> "Room" else -> throw IllegalArgumentException() } print(className)
String str; i4.i.e("obj", obj); if (obj instanceof Integer) { str = "TownSquare"; } else if (obj instanceof String) { str = "Room"; } else { throw new IllegalArgumentException(); } System.out.print((Object) str);
val isSourceOfBlessings = if (any is Integer) { any.toString() } else { (any as Room).name == "Fount of Blessings" } println("$any is a source of blessings: $isSourceOfBlessings")
Object valueOf; i4.i.e("any", obj); if (obj instanceof Integer) { valueOf = obj.toString(); } else { valueOf = Boolean.valueOf(i4.i.a(((Room) obj).getName(), "Fount of Blessings")); } System.out.println((Object) (obj + " is a source of blessings: " + valueOf));
val arg = "" return arg
i4.i.e("arg", str); return "";
if (something is List<*>) { something.forEach { it*3 } } return something
i4.i.e("something", list); for (Number number : list) { number.intValue(); } return list;
file.inputStream().use { TODO("run") }
i4.i.e("file", file); FileInputStream fileInputStream = new FileInputStream(file); try { throw new v3.c(); } finally { }
val intsDictionary: Map<String, Int> = f008(intsFile) as Map<String, Int> return intsDictionary
i4.i.e("intsFile", file); Map f008 = f008(file); i4.i.c("null cannot be cast to non-null type kotlin.collections.Map<kotlin.String, kotlin.Int>", f008); return f008;
if (x is String) { print(x.length) }
i4.i.e("x", obj); if (obj instanceof String) { System.out.print(((String) obj).length()); }
val repeatFun: String.(Int) -> String = { times -> this.repeat(times) } val twoParameters: (String, Int) -> String = repeatFun fun runTransformation(f: (String, Int) -> String): String { return f("hello", 3) } val result = runTransformation(repeatFun) println("result = $result")
System.out.println((Object) androidx.activity.e.c("result = ", i.f3576d.d("hello", 3)));
var sum = 0 ints.filter { it > 0 }.forEach { sum += it } return sum
int i5; i4.i.e("ints", list); ArrayList<Number> arrayList = new ArrayList(); Iterator<T> it = list.iterator(); while (true) { i5 = 0; if (!it.hasNext()) { break; } Object next = it.next(); if (((Number) next).intValue() > 0) { i5 = 1; } if (i5 != 0) { arrayList.add(next); } } for (Number number : arrayList) { i5 += number.intValue(); } return i5;
val result = Address() result.name = address.name result.street = address.street return result
i4.i.e("address", address); Address address2 = new Address(); address2.setName(address.getName()); address2.setStreet(address.getStreet()); return address2;
val objects: Source<Any> = strs return objects
i4.i.e("strs", source); return source;
x.compareTo(1.0) val y: Comparable<Double> = x return y
i4.i.e("x", comparable); comparable.compareTo(Double.valueOf(1.0d)); return comparable;
assert(from.size == to.size) for (i in from.indices) to[i] = from[i]
i4.i.e("from", objArr); i4.i.e("to", objArr2); int length = objArr.length; for (int i5 = 0; i5 < length; i5++) { objArr2[i5] = objArr[i5]; }
val lazyValue: String by lazy { println("computed!") "Hello" }
i4.i.e("w", str); i4.i.e("w1", str2);
object : ReadWriteProperty<Any?, Int> { var curValue = 0 override fun getValue(thisRef: Any?, property: kotlin.reflect.KProperty<*>): Int = curValue override fun setValue(thisRef: Any?, property: KProperty<*>, value: Int) { curValue = value } }
new Object() { public int f3581a; public final int getCurValue() { return this.f3581a; } public Object m9getValue(Object obj, m4.e eVar) { return getValue(obj, (m4.e<?>) eVar); } public final void setCurValue(int i5) { this.f3581a = i5; } public void setValue(Object obj, m4.e eVar, Object obj2) { setValue(obj, eVar, ((Number) obj2).intValue()); } public Integer getValue(Object obj, m4.e<?> eVar) { i.e("property", eVar); return Integer.valueOf(this.f3581a); } public void setValue(Object obj, m4.e<?> eVar, int i5) { i.e("property", eVar); this.f3581a = i5; } };
try{ val line = reader.readLine() return Integer.parseInt(line) } catch(e: NumberFormatException){ return null } finally{ reader.close() }
i4.i.e("reader", bufferedReader); try { return Integer.valueOf(Integer.parseInt(bufferedReader.readLine())); } catch (NumberFormatException unused) { return null; } finally { bufferedReader.close(); }
val a: Int? = try { input.toInt() } catch (e: NumberFormatException) { null }
i4.i.e("input", str); try { Integer.parseInt(str); } catch (NumberFormatException unused) { }
throw IllegalArgumentException(message)
i4.i.e("message", str); throw new IllegalArgumentException(str);
try { val firstNumber = 50 / 2 * 0 try { val secondNumber = 100 / firstNumber } catch (exception: ArithmeticException) { println("wow") } } catch (exception: NumberFormatException) { println("doublewow") }
try { try { int i5 = 100 / 0; } catch (ArithmeticException unused) { System.out.println((Object) "wow"); } } catch (NumberFormatException unused2) { System.out.println((Object) "doublewow"); }
val message = "Welcome to Kotlin Tutorials" if (message.length > 10) throw IllegalArgumentException("String is invalid") else return message.length
throw new IllegalArgumentException("String is invalid");
return filePath ?: throw IOException("File path is invalid")
i4.i.e("filePath", path); return path;
return try { Integer.parseInt(str) } catch (e: ArithmeticException) { 0 }
i4.i.e("str", str); try { return Integer.parseInt(str); } catch (ArithmeticException unused) { return 0; }
val helloWorld = object { val hello = "Hello" val world = "World" override fun toString() = "$hello $world" }
new Object() { public final String f3560a = "Hello"; public final String f3561b = "World"; public final String getHello() { return this.f3560a; } public final String getWorld() { return this.f3561b; } public String toString() { return this.f3560a + ' ' + this.f3561b; } };
ints.forEach { if (it == 0) return true } return false
i4.i.e("ints", list); for (Number number : list) { if (number.intValue() == 0) { return true; } } return false;
print(data["name"]) val data: Map<String, Any?> = mapOf( "name" to "putri", "div" to "m4th" )
i4.i.e("data", map); System.out.print(map.get("name")); v3.d[] dVarArr = {new v3.d("name", "putri"), new v3.d("div", "m4th")}; LinkedHashMap linkedHashMap = new LinkedHashMap(androidx.activity.m.v(2)); for (int i5 = 0; i5 < 2; i5++) { v3.d dVar = dVarArr[i5]; linkedHashMap.put(dVar.c, dVar.f5689d); }
val myMap = buildMap { putAll(baseMap) if (additionalEntry != null) { put(additionalEntry.first, additionalEntry.second) } }
i4.i.e("baseMap", map); x3.a aVar = new x3.a(); aVar.putAll(map); if (dVar != null) { aVar.put(dVar.c, dVar.f5689d); } aVar.c(); aVar.f5885n = true;
val convertedValue = Duration.convert( value = 3.0, sourceUnit = DurationUnit.DAYS, targetUnit = DurationUnit.HOURS ) return convertedValue
int i5 = p4.a.c; p4.c cVar = p4.c.DAYS; p4.c cVar2 = p4.c.HOURS; i4.i.e("sourceUnit", cVar); i4.i.e("targetUnit", cVar2); long convert = cVar2.c.convert(1L, cVar.c); if (convert > 0) { return 3.0d * convert; } return 3.0d / cVar.c.convert(1L, cVar2.c);
(1..10000).forEach { GlobalScope.launch { val threadName = Thread.currentThread().name println("\$it printed on thread \${threadName}") } } Thread.sleep(1000)
z3.g gVar; int i5; q4.a i1Var; Iterator<Integer> it = new l4.j(1, 10000).iterator(); while (((l4.i) it).f4326e) { ((o) it).nextInt(); h hVar = new h(null); if (true & true) { gVar = z3.g.c; } else { gVar = null; } boolean z4 = false; if (true & true) { i5 = 1; } else { i5 = 0; } z3.f a5 = q4.u.a(z3.g.c, gVar, true); w4.c cVar = h0.f5030a; if (a5 != cVar && a5.get(e.a.c) == null) { a5 = a5.plus(cVar); } if (i5 != 0) { if (i5 == 2) { z4 = true; } if (z4) { i1Var = new b1(a5, hVar); } else { i1Var = new i1(a5, true); } i1Var.R(i5, i1Var, hVar); } else { throw null; } } Thread.sleep(1000L);
liveData { collect { emit(it) } }
z3.g gVar; int i5; q4.a i1Var; Iterator<Integer> it = new l4.j(1, 10000).iterator(); while (((l4.i) it).f4326e) { ((o) it).nextInt(); h hVar = new h(null); if (true & true) { gVar = z3.g.c; } else { gVar = null; } boolean z4 = false; if (true & true) { i5 = 1; } else { i5 = 0; } z3.f a5 = q4.u.a(z3.g.c, gVar, true); w4.c cVar = h0.f5030a; if (a5 != cVar && a5.get(e.a.c) == null) { a5 = a5.plus(cVar); } if (i5 != 0) { if (i5 == 2) { z4 = true; } if (z4) { i1Var = new b1(a5, hVar); } else { i1Var = new i1(a5, true); } i1Var.R(i5, i1Var, hVar); } else { throw null; } } Thread.sleep(1000L);
var latest: Any? = NULL return flow { collectIndexed { index, value -> if (index != 0 || value !== latest) { emit(value) latest = value } } }
z3.g gVar; int i5; q4.a i1Var; Iterator<Integer> it = new l4.j(1, 10000).iterator(); while (((l4.i) it).f4326e) { ((o) it).nextInt(); h hVar = new h(null); if (true & true) { gVar = z3.g.c; } else { gVar = null; } boolean z4 = false; if (true & true) { i5 = 1; } else { i5 = 0; } z3.f a5 = q4.u.a(z3.g.c, gVar, true); w4.c cVar = h0.f5030a; if (a5 != cVar && a5.get(e.a.c) == null) { a5 = a5.plus(cVar); } if (i5 != 0) { if (i5 == 2) { z4 = true; } if (z4) { i1Var = new b1(a5, hVar); } else { i1Var = new i1(a5, true); } i1Var.R(i5, i1Var, hVar); } else { throw null; } } Thread.sleep(1000L);
coroutineScope<Unit> { launch { users.forEach { user -> println(user) } } }
Object a5 = q4.e.a(new g(list, null), dVar); return a5 == a4.a.COROUTINE_SUSPENDED ? a5 : m.f5692a;
val _sharedViewEffects = MutableSharedFlow<Int>( replay = 1, extraBufferCapacity = qefbnqoekrib("x"), onBufferOverflow = BufferOverflow.DROP_OLDEST) val sharedViewEffects = _sharedViewEffects.asSharedFlow() return sharedViewEffects
return new t4.k(androidx.activity.m.a(1, qefbnqoekrib("x"), s4.d.DROP_OLDEST));
shared.tryEmit(qefbnqoekrib("64g")) val state = shared.distinctUntilChanged() return state
i4.i.e("shared", iVar); iVar.b(Integer.valueOf(qefbnqoekrib("64g"))); if (!(iVar instanceof t4.q)) { v3.a aVar = t4.g.f5518d; t4.f fVar = t4.f.f5517d; if (iVar instanceof t4.b) { t4.b bVar = (t4.b) iVar; if (bVar.f5508d == aVar && bVar.f5509e == fVar) { return iVar; } } return new t4.b(iVar); } return iVar;
runBlocking { val testFlow = MutableSharedFlow<String>() testFlow.tryEmit("a") val job = testFlow .onEach { println(it) } .launchIn(this) delay(100) job.cancel() }
q4.e.c(z3.g.c, new b(null));
runBlocking { val testFlow = MutableSharedFlow<String>(replay = 1) testFlow.tryEmit("a") testFlow.tryEmit("b") val job = testFlow .onEach { println(it) } .launchIn(this) delay(100) val job2 = testFlow .onEach { println(it) } .launchIn(this) job.cancel() delay(100) job2.cancel() }
q4.e.c(z3.g.c, new c(null));
coroutineScope { launch(newSingleThreadContext("Custom Thread")) { println("cor: ${Thread.currentThread().name}") } println("fun: ${Thread.currentThread().name}") }
Object a5 = q4.e.a(new d(null), dVar); return a5 == a4.a.COROUTINE_SUSPENDED ? a5 : m.f5692a;
newSingleThreadContext("Ctx1").use { ctx1 -> newSingleThreadContext("Ctx2").use { ctx2 -> runBlocking(ctx1) { log(a) withContext(ctx2) { log(b) } log(0.0) } } }
p0 i5 = b3.d.i("Ctx1"); try { p0 i6 = b3.d.i("Ctx2"); ((Number) q4.e.c(i5, new e(d5, i6, d6, null))).doubleValue(); b3.d.c(i6, null); b3.d.c(i5, null); } finally { }
coroutineScope { val channel = Channel<Int>() launch { for (n in 1..a) { channel.send(n) } } }
Object a5 = q4.e.a(new f(i5, null), dVar); return a5 == a4.a.COROUTINE_SUSPENDED ? a5 : m.f5692a;