path stringlengths 4 280 | owner stringlengths 2 39 | repo_id int64 21.1k 879M | is_fork bool 2
classes | languages_distribution stringlengths 13 1.95k ⌀ | content stringlengths 7 482k | issues int64 0 13.9k | main_language stringclasses 121
values | forks stringlengths 1 5 | stars int64 0 111k | commit_sha stringlengths 40 40 | size int64 7 482k | name stringlengths 1 100 | license stringclasses 93
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
android/app/src/reactactivitydelegate-0.75/java/com/microsoft/reacttestapp/component/ComponentActivityDelegate.kt | microsoft | 235,106,543 | false | {"JavaScript": 333666, "C++": 63835, "Kotlin": 51912, "Swift": 48724, "Ruby": 47921, "TypeScript": 13070, "Objective-C": 8960, "Shell": 4420, "C": 2679, "Objective-C++": 1936, "CMake": 1560, "PowerShell": 684, "Java": 220} | package com.microsoft.reacttestapp.component
import android.os.Bundle
import com.facebook.react.ReactActivity
import com.facebook.react.ReactActivityDelegate
import com.microsoft.reacttestapp.BuildConfig
class ComponentActivityDelegate(
activity: ReactActivity,
mainComponentName: String?
) : ReactActivityDele... | 18 | JavaScript | 82 | 548 | 2a5bdd484a29751de54377b778f722aa3f8a0bd1 | 617 | react-native-test-app | MIT License |
composenav/src/test/java/com/adamkobus/compose/navigation/intent/NavIntentHistoryTest.kt | AdamKobus | 453,682,860 | false | null | package com.adamkobus.compose.navigation.intent
import com.adamkobus.compose.navigation.error.NavIntentCycleDetectedError
import junit.framework.TestCase.assertEquals
import org.junit.Assert.assertThrows
import org.junit.Test
class NavIntentHistoryTest {
private val testSubject = NavIntentHistory(INITIAL_ACTION)... | 14 | Kotlin | 0 | 5 | a7dae0f6e2254ad074206eeee1d971e9d82ae741 | 1,708 | compose-navigation | MIT License |
src/jsMain/kotlin/socket/ServerSocket.kt | davidepianca98 | 235,132,697 | false | null | package socket
import await
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.launch
import mqtt.broker.Broker
import mqtt.broker.ClientConnection
import mqtt.broker.cluster.ClusterConnection
import setTimeout
import socket.tcp.Socket
import socket.tcp.WebSocket
impo... | 1 | Kotlin | 12 | 56 | 94a2719eca49269543837f233bd3440bfa7313d9 | 3,102 | KMQTT | MIT License |
ui-reading-list/src/androidTest/java/io/github/reactivecircus/streamlined/readinglist/ReadingListScreenTest.kt | DigitalKoi | 255,433,794 | true | {"Kotlin": 339346} | package io.github.reactivecircus.streamlined.readinglist
import androidx.test.filters.LargeTest
import io.github.reactivecircus.streamlined.readinglist.di.ReadingListTestAppComponent
import io.github.reactivecircus.streamlined.testing.BaseScreenTest
import org.junit.Test
@LargeTest
class ReadingListScreenTest : BaseS... | 0 | null | 0 | 1 | 58366bc4bd86a35b4825975120b6366d8273ae12 | 586 | streamlined | Apache License 2.0 |
partiql-lang/src/test/kotlin/org/partiql/lang/util/LongExtensionsTest.kt | partiql | 186,474,394 | false | {"Kotlin": 6791850, "HTML": 103438, "ANTLR": 34531, "Inno Setup": 3838, "Java": 1949, "Shell": 748} | package org.partiql.lang.util
import org.junit.Test
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Assertions.assertThrows
import org.junit.jupiter.api.assertDoesNotThrow
import java.lang.IllegalStateException
class LongExtensionsTest {
@Test
fun `int too high`() {
... | 311 | Kotlin | 60 | 539 | ac6cdfff46ba5749d4fc850b1a30bf625034bfc9 | 977 | partiql-lang-kotlin | Apache License 2.0 |
src/main/kotlin/org/hiatusuk/obsidian/threads/ThreadSubmitter.kt | poblish | 612,371,934 | false | null | package org.hiatusuk.obsidian.threads
import java.util.concurrent.Future
interface ThreadSubmitter {
fun submitThread(task: () -> Unit): Future<*>
}
| 0 | Kotlin | 0 | 0 | 67a62560c865de0fd751365b091bfb60b5f12f34 | 155 | obsidian | Apache License 2.0 |
app/src/main/java/com/utradia/catalogueappv2/module/orderdetail/OrderDetailActivty.kt | Sunfocus | 164,079,839 | false | {"Gradle": 7, "Java Properties": 3, "Text": 1, "Shell": 1, "Ignore List": 6, "Batchfile": 1, "Git Attributes": 1, "Markdown": 1, "JSON": 3, "Proguard": 5, "XML": 265, "Java": 103, "Kotlin": 254} | package com.utradia.catalogueappv2.module.orderdetail
import android.content.Context
import android.content.Intent
import android.os.Bundle
import androidx.recyclerview.widget.LinearLayoutManager
import android.view.View
import androidx.recyclerview.widget.RecyclerView
import com.utradia.catalogueappv2.R
import com.ut... | 0 | Kotlin | 0 | 1 | 684f0a2621ef7b906c8b19d6b003a704d6edca1c | 5,808 | Utradia-Catlog- | Apache License 2.0 |
app/src/main/java/com/example/alexmelnikov/coinspace/di/module/ActivityModule.kt | millerovv | 141,981,951 | false | null | package com.example.alexmelnikov.coinspace.di.module
import android.app.Activity
import com.example.alexmelnikov.coinspace.ui.main.MainContract
import com.example.alexmelnikov.coinspace.ui.main.MainPresenter
import dagger.Module
import dagger.Provides
@Module
class ActivityModule {
@Provides
fun provideMai... | 0 | Kotlin | 1 | 0 | f2bfad76ec826349bd15db12969ca57b7691e05d | 377 | CoinSpace | MIT License |
library-checkingmobileservices/src/main/java/ru/fabit/checkingmobileservices/api/MobileServicesProvider.kt | FabitMobile | 328,593,974 | false | null | package ru.fabit.checkingmobileservices.api
import android.content.Context
import ru.fabit.checkingmobileservices.domain.entity.MobileServices
import ru.fabit.checkingmobileservices.domain.entity.MobileServicesType
import ru.fabit.checkingmobileservices.domain.entity.MobileServicesType.UNKNOWN
import ru.fabit.checking... | 1 | Kotlin | 0 | 0 | cb865383ae08c15a13e93c8abe9f54c2f9dd474e | 2,191 | checking-mobile-services | MIT License |
src/main/kotlin/com/adi3000/cloud/nextcloud/model/NextcloudProperties.kt | Adi3000 | 548,244,043 | false | {"Kotlin": 12458} | package com.adi3000.cloud.nextcloud.model
class NextcloudProperties {
lateinit var users:List<NextcloudUser>
lateinit var folder:String
lateinit var server:String
} | 1 | Kotlin | 1 | 0 | 661232cd3eba26668e6a41df72b15a6b91a52d63 | 177 | cloud-bridge | MIT License |
reakt-core/src/main/kotlin/tz/co/asoft/css.kt | cybernetics | 348,602,660 | true | {"Kotlin": 688419, "HTML": 3240, "JavaScript": 1700} | package tz.co.asoft
import kotlinx.css.*
import kotlinx.css.properties.boxShadow
import org.w3c.dom.css.CSS
inline fun CSSBuilder.centerContent() {
alignItems = Align.center
alignContent = Align.center
textAlign = TextAlign.center
justifyItems = JustifyContent.center
justifyContent = JustifyConten... | 0 | null | 0 | 0 | 3a35469e575c4c832e17c368fefa644dd8649ebb | 622 | reakt-1 | MIT License |
android/PetAdoptSampleApp/app/src/main/java/laurenyew/petadoptsampleapp/database/favorite/FavoritesFilterDatabaseProvider.kt | laurenyew | 239,209,623 | false | {"Kotlin": 152078, "Swift": 55338, "Objective-C": 581, "Ruby": 424} | package laurenyew.petadoptsampleapp.database.favorite
import laurenyew.petadoptsampleapp.ui.features.favorites.FavoritesFilter
interface FavoritesFilterDatabaseProvider {
suspend fun getFavoritesFilter(): FavoritesFilter?
suspend fun updateFavoritesFilter(favoritesFilter: FavoritesFilter)
} | 0 | Kotlin | 0 | 6 | d558514cabcc1a54a3436726f4493eb33d5952e1 | 302 | PetAdoptSampleApp | MIT License |
codegen/smithy-kotlin-codegen/src/test/kotlin/software/amazon/smithy/kotlin/codegen/rendering/waiters/WaiterGeneratorTest.kt | smithy-lang | 294,823,838 | false | null | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
package software.amazon.smithy.kotlin.codegen.rendering.waiters
import io.kotest.matchers.string.shouldContain
import io.kotest.matchers.string.shouldContainOnlyOnce
import software.amazon.smithy.codeg... | 36 | null | 26 | 82 | ad18e2fb043f665df9add82083c17877a23f8610 | 3,711 | smithy-kotlin | Apache License 2.0 |
yangxj96-serve/yangxj96-serve-platform/src/main/kotlin/com/yangxj96/saas/server/platform/controller/RouteController.kt | yangxj96 | 574,967,993 | false | {"Kotlin": 144319} | package com.yangxj96.saas.server.platform.controller
import com.yangxj96.saas.bean.system.Route
import com.yangxj96.saas.common.base.BaseController
import com.yangxj96.saas.server.platform.service.RouteService
import org.springframework.validation.annotation.Validated
import org.springframework.web.bind.annotation.*
... | 0 | Kotlin | 0 | 0 | 0f4d208498a14a7bf7f7a53324d235623795eb84 | 888 | yangxj96-saas-api | MIT License |
app/src/main/java/com/cursosant/android/stores/mainModule/MainActivity.kt | yiras46 | 407,497,450 | false | null | package com.cursosant.android.stores.mainModule
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import android.view.View
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.isVisible
import androidx.lifecycle.ViewModelProvider
import andro... | 0 | Kotlin | 0 | 0 | 560288c180d5fef035248a2dfd33184a9070c313 | 5,603 | Stores-MVVM | MIT License |
2021/02/07/beomjo/algorithm/BOJ/kotlin/17298.kt | Road-of-CODEr | 323,110,862 | false | null | import java.util.*
fun main() {
val N = readLine()!!.toInt()
val input = readLine()!!.split(" ").map { it.toInt() }
val stack = Stack<NGE>()
val answer = MutableList(N) { -1 }
repeat(N) { i ->
val number = input[i]
while (!stack.isEmpty() && number > stack.peek().element) {
... | 1 | null | 27 | 23 | cae1df83ac110519a5f5d6b940fa3e90cebb48c1 | 516 | stupid-week-2021 | MIT License |
app/src/main/java/com/yilmaz/hybridtranslationapp/GlossaryDatabaseHelper.kt | burraaook | 679,711,808 | false | null | package com.yilmaz.hybridtranslationapp
import android.annotation.SuppressLint
import android.content.ContentValues
import android.content.Context
import android.database.sqlite.SQLiteDatabase
import android.database.sqlite.SQLiteOpenHelper
import java.nio.charset.StandardCharsets
import java.security.MessageDigest
c... | 0 | Kotlin | 0 | 0 | b26cb47f15da05c2734e3d2e88e17eb82f85755e | 7,538 | hybrid-translation-app | MIT License |
src/main/kotlin/darkarch/item/Items.kt | toby7002 | 701,758,899 | false | {"Kotlin": 33166, "Java": 524} | package darkarch.item
import darkarch.DarkArch
import darkarch.item.necklace.AirNecklace
import darkarch.item.necklace.EarthNecklace
import darkarch.item.necklace.FireNecklace
import darkarch.item.necklace.WaterNecklace
import darkarch.item.pearl.FirePearl
import darkarch.item.pearl.GummyPearl
import darkarch.item.pea... | 0 | Kotlin | 1 | 0 | e39d5e466b33cf130efe7648f87403783e7fbded | 1,408 | DarkArch | MIT License |
app/src/main/java/com/ksusha/weather/viewmodel/MainViewModel.kt | KsushaLad | 537,848,540 | false | null | package com.ksusha.weather.viewmodel
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.ksusha.weather.model.WeatherModel
class MainViewModel : ViewModel() {
val liveDataCurrent = MutableLiveData<WeatherModel>()
val liveDataList = MutableLiveData<List<WeatherModel>>()
} | 0 | Kotlin | 0 | 0 | 32d22d50eb1259330d1fc88dba43fe8de35987ee | 320 | Weather | MIT License |
src/main/kotlin/com/yaroslavzghoba/utils/KeyGeneratorImpl.kt | papagei-service | 855,958,312 | false | {"Kotlin": 119170} | package com.yaroslavzghoba.utils
import kotlin.random.Random
/**
* Provides methods for generating random strings that can be used as keys.
*/
class KeyGeneratorImpl : KeyGenerator {
override fun generate(length: Int): String =
CharArray(length) { Random.nextChar() }.joinToString(separator = "")
} | 0 | Kotlin | 0 | 0 | 17db32d17138935d33585dc03d2277d5820e7ee9 | 315 | backend | MIT License |
src/main/kotlin/com/github/lppedd/cc/CCApplicationLoadListener.kt | lppedd | 208,670,987 | false | null | package com.github.lppedd.cc
import com.github.lppedd.cc.annotation.Compatibility
import com.intellij.ide.ApplicationLoadListener
import com.intellij.ide.plugins.PluginInstaller
import com.intellij.openapi.application.Application
import java.nio.file.Path
import kotlin.io.path.absolutePathString
/**
* @author <NAME>... | 22 | Kotlin | 15 | 277 | f7a600b6346565a7c12a0075f5e4e723885353eb | 549 | idea-conventional-commit | MIT License |
app/src/main/java/com/example/hiltdogapi/fragments/HomeFragment.kt | marcobevacqua | 543,188,159 | false | {"Kotlin": 20627} | package com.example.hiltdogapi.fragments
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.navigation.fragment.findNavController
import com.example.hiltdogapi.R
import com.example.hiltdogapi.databindi... | 0 | Kotlin | 0 | 0 | d9499d19d422d871e3b713f898c723835bc33db4 | 1,274 | DogApi | MIT License |
monkeytail-core/src/commonMain/kotlin/com/sksamuel/monkeytail/core/validation/validated.kt | sksamuel | 10,692,938 | false | null | package com.sksamuel.monkeytail.core.validation
sealed class Validated<out E, out A> {
abstract val isValid: Boolean
abstract val isInvalid: Boolean
data class Invalid<E>(val errors: List<E>) : Validated<E, Nothing>() {
override val isInvalid: Boolean = true
override val isValid: Boolean = false... | 0 | Kotlin | 16 | 87 | 8a87d3a3641b138851d771b783bc8c7e63de95ea | 3,190 | elasticsearch-river-redis | Apache License 2.0 |
src/main/kotlin/dev/shtanko/algorithms/leetcode/CountBalls.kt | ashtanko | 203,993,092 | false | null | /*
* Copyright 2022 Oleksii Shtanko
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | 4 | null | 0 | 19 | 776159de0b80f0bdc92a9d057c852b8b80147c11 | 2,056 | kotlab | Apache License 2.0 |
src/test/kotlin/geobroker/LocationTest.kt | simra-project | 368,455,568 | false | {"Java": 69985, "Kotlin": 58269, "Shell": 14489} | /**
*
* Copied from the GeoBroker project (https://github.com/MoeweX/geobroker)
*/
package geobroker
import org.apache.logging.log4j.LogManager
import org.junit.Assert
import org.junit.Before
import org.junit.Test
private val logger = LogManager.getLogger()
class LocationTest {
private var location: Locatio... | 3 | null | 1 | 1 | dd7fe0817657d97435061ab2b1121a4a7598a820 | 2,221 | osmColoring | Apache License 2.0 |
hive-common/src/test/kotlin/com/amazon/ionhiveserde/objectinspectors/IonFloatToDoubleObjectInspectorTest.kt | amazon-ion | 145,019,226 | false | {"Gradle": 3, "Java Properties": 5, "Markdown": 10, "Shell": 5, "Text": 1, "Ignore List": 1, "Batchfile": 1, "XML": 4, "Gradle Kotlin DSL": 9, "Kotlin": 51, "Java": 78, "INI": 1, "YAML": 2, "Dotenv": 1, "Dockerfile": 1} | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package com.amazon.ionhiveserde.objectinspectors
import com.amazon.ion.IonFloat
import com.amazon.ionhiveserde.ION
import junitparams.Parameters
import org.apache.hadoop.io.DoubleWritable
import org.junit.Test... | 19 | Java | 12 | 28 | f8e9b0c0d7692c7dded75413ffe3f36fbc8fd2b0 | 1,040 | ion-hive-serde | Apache License 2.0 |
compiler/testData/codegen/box/inlineClasses/inlineClassPropertyReferenceGetAndSetGeneric.kt | JetBrains | 3,432,266 | false | {"Kotlin": 79571273, "Java": 6776465, "Swift": 4063829, "C": 2609744, "C++": 1957654, "Objective-C++": 175279, "JavaScript": 130754, "Python": 59855, "Shell": 34920, "Objective-C": 21463, "Lex": 21452, "Batchfile": 11382, "CSS": 11368, "Ruby": 10470, "Dockerfile": 9907, "Groovy": 7092, "EJS": 5241, "CMake": 4473, "HTML... | // WITH_STDLIB
// WORKS_WHEN_VALUE_CLASS
// LANGUAGE: +ValueClasses, +GenericInlineClassParameter
OPTIONAL_JVM_INLINE_ANNOTATION
value class Foo<T: String>(val z: T)
var f = Foo("zzz")
fun box(): String {
(::f).set(Foo("OK"))
return (::f).get().z
} | 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 259 | kotlin | Apache License 2.0 |
keel-core/src/main/kotlin/com/netflix/spinnaker/keel/core/api/UID.kt | spinnaker | 107,462,081 | false | null | package com.netflix.spinnaker.keel.core.api
import de.huxhorn.sulky.ulid.ULID
import java.time.Instant
typealias UID = ULID.Value
private val idGenerator by lazy { ULID() }
fun randomUID(): UID = idGenerator.nextValue()
fun parseUID(ulid: String): UID = ULID.parseULID(ulid)
fun UID.timestampAsInstant() = Instant.... | 13 | Kotlin | 132 | 99 | 6115964c42e863cfd269616a836145b883f165f3 | 346 | keel | Apache License 2.0 |
app/src/main/java/com/jawad/newsapp/data/local/Converter.kt | Jawad52 | 247,662,918 | false | {"Gradle": 3, "Java Properties": 1, "Text": 1, "Markdown": 1, "Proguard": 1, "Ignore List": 1, "Kotlin": 53, "XML": 16, "Java": 1, "JSON": 1} | package com.jawad.newsapp.data.local
import androidx.room.TypeConverter
import com.google.gson.Gson
import com.google.gson.reflect.TypeToken
import com.jawad.newsapp.data.remote.dto.Multimedia
import java.lang.reflect.Type
/**
* The class Converter
*
* @author <NAME>
* @web www.jawadusman.com
* @version 1.0
*... | 1 | null | 1 | 1 | 261929c52377f75502af000660d8fd2b229e39c3 | 710 | News-App | Apache License 2.0 |
app/src/main/java/com/technorapper/boiler/di/builder/ServiceBuilder.kt | HaneetGH | 228,811,463 | false | null | package com.technorapper.boiler.di.builder
import dagger.Module
@Module
public abstract class ServiceBuilder {} | 1 | Kotlin | 5 | 9 | 14abab83d47749ebe8ca4b57b89e096b3c8c6abb | 114 | KotlinAndroidBase | Apache License 2.0 |
JetStreamCompose/jetstream/src/main/java/com/google/jetstream/data/repositories/TvDataSource.kt | android | 192,011,831 | false | {"Kotlin": 902548, "Java": 783880, "Python": 72375, "TypeScript": 47533, "HTML": 9379, "JavaScript": 6342, "CSS": 5928} | /*
* Copyright 2023 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 46 | Kotlin | 325 | 998 | dba6602e2543ad467b7d4b44e99d118635c21c97 | 1,359 | tv-samples | Apache License 2.0 |
Common/src/main/java/at/petrak/hexcasting/common/casting/operators/lists/OpRemove.kt | tynberry | 555,974,628 | true | {"Java Properties": 1, "Groovy": 1, "Text": 3, "Gradle": 5, "Shell": 1, "Markdown": 2, "Git Attributes": 1, "Batchfile": 1, "Ignore List": 1, "INI": 4, "Kotlin": 178, "Java": 281, "JSON": 1012, "GLSL": 1, "YAML": 1, "HTML": 1, "Python": 1, "TOML": 1} | package at.petrak.hexcasting.common.casting.operators.lists
import at.petrak.hexcasting.api.spell.*
import at.petrak.hexcasting.api.spell.casting.CastingContext
object OpRemove : ConstManaOperator {
override val argc: Int
get() = 2
override fun execute(args: List<SpellDatum<*>>, ctx: CastingContext):... | 0 | null | 0 | 0 | fada64d770cc013285815139470188f0d4c72753 | 615 | HexMod | MIT License |
src/patterns/creational/factoryMethod/App.kt | mithileshrane | 220,797,096 | false | null | package patterns.creational.factoryMethod
class App {
fun main(args: Array<String>) {
// batchProcessor.processBatch(args.first())
println("Done")
}
} | 1 | null | 1 | 1 | 05d12df972e94b8dde1046a4e45971fc32a553c2 | 176 | DesignPatterns | MIT License |
compiler/testData/codegen/box/boxingOptimization/boxedPrimitivesAreEqual.kt | JakeWharton | 99,388,807 | false | null | inline fun eq(a: Any, b: Any) = a == b
inline fun ne(a: Any, b: Any) = a != b
val ONE = 1
val ONEL = 1L
fun box(): String {
return when {
eq(ONE, 2) -> "Fail 1"
!eq(ONE, 1) -> "Fail 2"
!ne(ONE, 2) -> "Fail 3"
ne(ONE, 1) -> "Fail 4"
eq(ONEL, 42L) -> "Fail 1L"
!eq(ON... | 179 | null | 5640 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 440 | kotlin | Apache License 2.0 |
app/src/main/java/com/example/kotweather/common/AppExt.kt | xiaokai666666 | 335,008,972 | false | null | package com.example.kotweather.common
import android.app.Activity
import androidx.appcompat.app.AppCompatActivity
import androidx.fragment.app.Fragment
import com.example.kotweather.base.BaseApplication
import com.example.kotweather.module.app.AppViewModel
import com.example.kotweather.module.app.AppEventViewModel
//... | 0 | Kotlin | 0 | 0 | 70ff241dbfdedd45ea6b37c0667622860c7c1bcf | 840 | KotWeather | Apache License 2.0 |
utility/src/main/java/org/oppia/android/util/networking/NetworkConnectionUtil.kt | oppia | 148,093,817 | false | null | package org.oppia.android.util.networking
/** Utility to get the current connection status of the device. */
interface NetworkConnectionUtil {
/** Enum to distinguish different connection statuses for the device. */
enum class ProdConnectionStatus : ConnectionStatus {
/** Connected to WIFI or Ethernet. */
... | 595 | null | 309 | 156 | 6e50236a4384189cd59b40cb128decbf125bdd26 | 591 | oppia-android | Apache License 2.0 |
qcode/src/main/java/com/frameworks/test/SplashPicIdPresenter.kt | zqMyself | 183,880,364 | false | null | package com.frameworks.test
import com.frameworks.base.core.BaseEntry
import com.frameworks.base.http.ErrorHandleSubscriber
import com.frameworks.base.mvp.BasePresenter
import io.reactivex.android.schedulers.AndroidSchedulers
import io.reactivex.schedulers.Schedulers
import javax.inject.Inject
/**
* Created by zengq... | 0 | Kotlin | 0 | 0 | 7c3490326b223a53aca6012c3e618dea9d2906c6 | 1,387 | qcode | Apache License 2.0 |
Diceprogram-Assignment-2/app/src/main/java/com/example/diceprogram/MainActivity.kt | smartinternz02 | 688,908,147 | false | {"Kotlin": 230328} | package com.example.diceprogram
import android.os.Bundle
import android.widget.Button
import android.widget.ImageView
import android.widget.TextView
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.mater... | 0 | Kotlin | 1 | 0 | 9aec61591ced3ce00c991a861e2f00fd1e42ab65 | 1,674 | SI-GuidedProject-580240-1694171221 | MIT License |
app/src/main/java/com/rafay/gallery/common/ViewKtx.kt | rafayali | 336,757,542 | false | null | package com.rafay.gallery.common
import android.view.LayoutInflater
import android.view.ViewGroup
val ViewGroup.layoutInflater: LayoutInflater
get() = LayoutInflater.from(this.context)
| 0 | Kotlin | 1 | 1 | e5614032d391a6a4719a701010ff8141c8b6c3ce | 191 | PixabayGallery | MIT License |
app/src/main/java/retrofit2/converter/ogson/OGsonResponseBodyConverter.kt | OpenEvel | 769,700,139 | false | {"Kotlin": 66066} | package retrofit2.converter.ogson
import com.google.gson.Gson
import com.google.gson.JsonElement
import com.google.gson.JsonNull
import com.google.gson.JsonParser
import com.google.gson.TypeAdapter
import com.google.gson.stream.JsonReader
import okhttp3.ResponseBody
import retrofit2.Converter
import retrofit2.converte... | 0 | Kotlin | 0 | 0 | f21082af8a52f0c96b85c88b79106fa8073e13fb | 1,253 | Books | MIT License |
app/src/main/java/retrofit2/converter/ogson/OGsonResponseBodyConverter.kt | OpenEvel | 769,700,139 | false | {"Kotlin": 66066} | package retrofit2.converter.ogson
import com.google.gson.Gson
import com.google.gson.JsonElement
import com.google.gson.JsonNull
import com.google.gson.JsonParser
import com.google.gson.TypeAdapter
import com.google.gson.stream.JsonReader
import okhttp3.ResponseBody
import retrofit2.Converter
import retrofit2.converte... | 0 | Kotlin | 0 | 0 | f21082af8a52f0c96b85c88b79106fa8073e13fb | 1,253 | Books | MIT License |
src/test/kotlin/com/redissi/trakt/services/CalendarsTest.kt | IliasRedissi | 235,675,675 | true | {"Kotlin": 307912} | package com.redissi.trakt.services
import com.redissi.trakt.BaseTestCase
import com.redissi.trakt.entities.CalendarMovieEntry
import com.redissi.trakt.entities.CalendarShowEntry
import kotlinx.coroutines.runBlocking
import org.amshove.kluent.shouldNotBeNull
import org.junit.Test
import java.io.IOException
class Calen... | 4 | Kotlin | 0 | 0 | c980c5c428edd8ba2d4b147be5e247e6e1356574 | 4,425 | trakt-kotlin | The Unlicense |
src/main/kotlin/org/agoranomic/assessor/lib/report/Rewards.kt | AgoraNomic | 98,589,628 | false | null | package org.agoranomic.assessor.lib.report
import kotlinx.collections.immutable.ImmutableMap
import kotlinx.collections.immutable.toImmutableMap
import org.agoranomic.assessor.lib.Person
import org.agoranomic.assessor.lib.Persons
import org.agoranomic.assessor.lib.proposal.*
import org.agoranomic.assessor.lib.resolve.... | 1 | Kotlin | 0 | 0 | bd9338e546e10116e991439a419fdde87b78e6f9 | 6,082 | assessor | MIT License |
app/src/main/java/io/sentry/replay/android/proto/TranslateCommandKt.kt | markushi | 673,454,888 | false | null | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: replay.proto
// Generated files should ignore deprecation warnings
@file:Suppress("DEPRECATION")
package io.sentry.replay.android.proto;
@kotlin.jvm.JvmName("-initializetranslateCommand")
public inline fun translateCommand(block: io.sentry.replay.a... | 0 | Kotlin | 0 | 0 | f3284584f89f49e7942024f7dfa46b22f7664c38 | 2,714 | session-replay-android | MIT License |
summary/src/commonMain/kotlin/com/langdroid/summary/prompts/PromptTemplate.kt | DimaBrody | 753,802,287 | false | {"Kotlin": 81106} | package com.langdroid.summary.prompts
import com.langdroid.core.ChatPrompt
import com.langdroid.core.ChatRole
internal const val DEFAULT_SYSTEM_MESSAGE = "You are expert in a discussed field"
public class PromptTemplate public constructor(
private val prompt: String,
private val systemMessage: String = DEFAU... | 0 | Kotlin | 0 | 2 | adc8691f9d80857e4a533d8de306e5e53499e717 | 1,333 | LangDroid | MIT License |
app/src/main/java/com/greedygame/sample/sdk/showcasemenu/ShowcaseMenu.kt | GreedyGame | 225,863,628 | false | {"Gradle": 3, "Java Properties": 2, "Shell": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "Proguard": 1, "Kotlin": 16, "XML": 41, "Java": 1} | package com.greedygame.sample.sdk.showcasemenu
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import android.view.View
import com.greedygame.core.GreedyGameAds
import com.greedygame.core.interfaces.GreedyGameAdsEventsListener
import com.greedygame.core.models.general.InitErrors
import co... | 0 | Kotlin | 2 | 3 | 026b025bf0d3445c33c6ba3a898c9035ad5d5af0 | 2,336 | gg-android-sample | MIT License |
kcrud-employment/src/main/kotlin/kcrud/domain/employment/di/EmploymentInjection.kt | perracodex | 682,128,013 | false | null | /*
* Copyright (c) 2024-Present Perraco Labs. All rights reserved.
* This work is licensed under the terms of the MIT license.
* For a copy, see <https://opensource.org/licenses/MIT>
*/
package kcrud.domain.employment.injection
import kcrud.base.env.SessionContext
import kcrud.domain.employment.repository.Employm... | 0 | null | 0 | 2 | 9e65f0bce554d754fff4a5d8d91c09e40f9a76e0 | 1,698 | Kcrud | MIT License |
src/main/kotlin/counters/minter/grpc/client/StakeMoveEventKt.kt | counters | 424,713,046 | false | {"Kotlin": 940649, "Java": 183428} | //Generated by the protocol buffer compiler. DO NOT EDIT!
// source: events.proto
package counters.minter.grpc.client;
@kotlin.jvm.JvmName("-initializestakeMoveEvent")
public inline fun stakeMoveEvent(block: counters.minter.grpc.client.StakeMoveEventKt.Dsl.() -> kotlin.Unit): counters.minter.grpc.client.StakeMoveEven... | 0 | Kotlin | 0 | 2 | 7f431b1551732cad28b471ad667cd18691e2e209 | 3,428 | jvm-minter-grpc-class | Apache License 2.0 |
src/main/java/playground/threading/CombineLatestThreading.kt | ExpensiveBelly | 104,675,798 | false | null | package playground.threading
import io.reactivex.Observable
import io.reactivex.rxkotlin.Observables
import io.reactivex.schedulers.Schedulers
import java.util.concurrent.Executors
import java.util.concurrent.TimeUnit
class CombineLatestThreading {
/**
* Which thread will be printed?
*
* Always th... | 0 | Kotlin | 11 | 19 | e07a3aea09f9235077d6d0dd553af2cfe782b393 | 1,596 | RxKata | MIT License |
design/src/main/java/lee/module/design/base/presenter/view/BaseComposeActivity.kt | longdt57 | 499,034,488 | false | {"Kotlin": 81554} | package lee.module.design.base.presenter.view
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.viewModels
import androidx.annotation.CallSuper
import androidx.compose.runtime.Composable
import androidx.compose.runtime.collectAsStat... | 0 | Kotlin | 0 | 0 | 826ab02f839388daf2a78c1e60bd981090b1cbce | 1,352 | Android-Template | Apache License 2.0 |
mvvm/src/main/java/com/xtensolution/sample/mvvm/ui/viewmodel/UserViewModel.kt | riontech-xten | 324,560,473 | false | null | package com.xtensolution.sample.mvvm.ui.viewmodel
import android.app.Application
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.xtensolution.core.DataResultStatus
import com.xtensolution.core.ioThread
import com.xtensolution.core.dat... | 0 | Kotlin | 0 | 0 | ef35e89336ecc43d17831bace773e152708206fe | 1,714 | kotlinsamples | Apache License 2.0 |
mvvm/src/main/java/com/xtensolution/sample/mvvm/ui/viewmodel/UserViewModel.kt | riontech-xten | 324,560,473 | false | null | package com.xtensolution.sample.mvvm.ui.viewmodel
import android.app.Application
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.xtensolution.core.DataResultStatus
import com.xtensolution.core.ioThread
import com.xtensolution.core.dat... | 0 | Kotlin | 0 | 0 | ef35e89336ecc43d17831bace773e152708206fe | 1,714 | kotlinsamples | Apache License 2.0 |
app/src/main/java/gads2020/damolaolarewaju/testprojectgads/adapters/LearningLeaderAdapter.kt | DeonWaju | 294,778,056 | false | null | package gads2020.damolaolarewaju.testprojectgads.adapters
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import kotlinx.android.synthetic.main.leader_learner_item.view.*
import gads2020.damolaolarewaju.testprojectgads.R
... | 0 | Kotlin | 0 | 1 | f6079a897b19e5da257b2c1f76caf3382b62275a | 1,441 | Gads2020-Android-Project | MIT License |
data/src/main/java/tgo1014/listofbeers/data/models/BeerData.kt | Tgo1014 | 433,974,074 | false | {"Kotlin": 89548} | package tgo1014.listofbeers.data.models
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
data class BeerData(
@SerialName("id")
val id: Int? = 0,
@SerialName("name")
val name: String? = "",
@SerialName("tagline")
val tagline: String? = "",
@Se... | 0 | Kotlin | 0 | 0 | ada222b8c5128281ee36aa10fae055bf00e543ce | 1,496 | listOfBeers | Apache License 2.0 |
app/src/main/java/com/ctech/eaty/widget/transition/TransitionListener.kt | dbof10 | 116,687,959 | false | null | package com.ctech.eaty.widget.transition
import android.support.transition.Transition
open class TransitionListener : Transition.TransitionListener {
override fun onTransitionEnd(transition: Transition) {
}
override fun onTransitionResume(transition: Transition) {
}
override fun onTransitionP... | 2 | null | 11 | 49 | 2e3445debaedfea03f9b44ab62744046fe07f1cc | 499 | hunt-android | Apache License 2.0 |
quicktools/src/main/java/com/rzahr/quicktools/extensions/QuickUIExtentions.kt | alaaosman20 | 175,372,077 | false | null | @file:Suppress("unused")
package com.rzahr.quicktools.extensions
import android.app.Activity
import android.content.Context
import android.view.View
import android.view.inputmethod.InputMethodManager
import androidx.appcompat.app.AlertDialog
import androidx.constraintlayout.widget.ConstraintLayout
import androidx.con... | 1 | null | 1 | 1 | eda045f17e8e1893baf9e70bccff229b8f0c3170 | 5,723 | QuickTools | MIT License |
quicktools/src/main/java/com/rzahr/quicktools/extensions/QuickUIExtentions.kt | alaaosman20 | 175,372,077 | false | null | @file:Suppress("unused")
package com.rzahr.quicktools.extensions
import android.app.Activity
import android.content.Context
import android.view.View
import android.view.inputmethod.InputMethodManager
import androidx.appcompat.app.AlertDialog
import androidx.constraintlayout.widget.ConstraintLayout
import androidx.con... | 1 | null | 1 | 1 | eda045f17e8e1893baf9e70bccff229b8f0c3170 | 5,723 | QuickTools | MIT License |
cx-phrases/src/test/kotlin/io/nuvalence/cx/tools/phrases/SsmlKtTest.kt | Nuvalence | 641,553,939 | false | null | package io.nuvalence.cx.tools.phrases
import org.junit.jupiter.api.Test
internal class SsmlKtTest {
@Test
fun testProcessNumber() {
var ssmlNumber = """. <break time="300ms"/><prosody rate="90%">1 2 3 4 5 zero</prosody> ."""
assert(ssmlNumber == processNumber("123450"))
var ssmlNumber... | 1 | Kotlin | 0 | 0 | 72faa6227584c3e42cc3470b3ffe21bff7c5279f | 876 | dialogflow-cx-tools | MIT License |
philarios-structurizr/src/generated/kotlin/io/philarios/structurizr/StructurizrSpec.kt | philarios | 144,709,168 | false | null | // The builder interfaces needed to create type-safe specs.
//
// The specs and builders are located one layer below the model. While they need to reference the model classes
// for obvious reasons, they should still be as un-opinionated as possible and should not depend on any
// implementation details. This allows yo... | 17 | Kotlin | 1 | 2 | e1cba40d90204da3889b0b217448e97765e244b6 | 18,843 | philarios | MIT License |
src/test/kotlin/uk/gov/justice/digital/hmpps/prisonertonomisupdate/adjudications/HearingsToNomisIntTest.kt | ministryofjustice | 445,140,246 | false | {"Kotlin": 1753644, "Mustache": 1803, "Dockerfile": 1118} | package uk.gov.justice.digital.hmpps.prisonertonomisupdate.adjudications
import com.github.tomakehurst.wiremock.client.WireMock
import org.assertj.core.api.Assertions
import org.awaitility.kotlin.await
import org.awaitility.kotlin.matches
import org.awaitility.kotlin.untilAsserted
import org.awaitility.kotlin.untilCal... | 0 | Kotlin | 0 | 2 | d43b96c60238f8ea55c284caa71c97396ecc7fd2 | 15,495 | hmpps-prisoner-to-nomis-update | MIT License |
app/src/test/java/com/dicoding/storyappsubmission/data/Dummy.kt | arvandha121 | 635,779,989 | false | null | package com.dicoding.storyappsubmission.data
import com.dicoding.storyappsubmission.remote.response.login.Login
import com.dicoding.storyappsubmission.remote.response.login.LoginResponse
import com.dicoding.storyappsubmission.remote.response.story.getstory.ListStory
import java.util.Random
import java.util.UUID
objec... | 0 | Kotlin | 0 | 0 | fd2fb62ccae7fc782135d097d48d733268a9f06b | 1,277 | StoryAppSubmission | MIT License |
debop4k-spring/src/main/kotlin/debop4k/spring/beans/BeanFactoryx.kt | debop | 60,844,667 | false | null | /*
* Copyright (c) 2016. <NAME> <<EMAIL>>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | 1 | Kotlin | 10 | 40 | 5a621998b88b4d416f510971536abf3bf82fb2f0 | 1,118 | debop4k | Apache License 2.0 |
app/src/main/java/com/shema102/spacextracker/di/factory/RoadsterViewModelFactory.kt | shema102 | 294,646,424 | false | null | package com.shema102.spacextracker.di.factory
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.shema102.spacextracker.data.provider.UnitProvider
import com.shema102.spacextracker.data.repository.SpacexRepository
import com.shema102.spacextracker.ui.launches.roadster.RoadsterVi... | 0 | Kotlin | 0 | 0 | 129b7be95c10382cef3d3cbd3d59fbd02ae6149d | 769 | SpacexTracker | Apache License 2.0 |
app_wordteacher/src/main/java/com/aglushkov/wordteacher/features/definitions/vm/DefinitionsVM.kt | soniccat | 28,707,156 | false | null | package com.aglushkov.wordteacher.features.definitions.vm
import android.app.Application
import android.util.Log
import androidx.lifecycle.*
import com.aglushkov.modelcore.resource.*
import com.aglushkov.modelcore_ui.extensions.getErrorString
import com.aglushkov.wordteacher.di.AppComponentOwner
import com.aglushkov.w... | 1 | null | 1 | 1 | 0e0fa442e16d5544f7694042cf40cafde3672173 | 2,399 | android-taskmanager | MIT License |
sdk/core/src/main/java/com/rocbillow/core/base/BaseDialogFragment.kt | wptdxii | 278,525,387 | false | null | package com.rocbillow.core.base
import androidx.annotation.LayoutRes
import androidx.fragment.app.DialogFragment
/**
* @author rocbillow
* @date 2020-08-07
*/
abstract class BaseDialogFragment(@LayoutRes resId: Int) : DialogFragment(resId) {
constructor() : this(0)
}
| 0 | Kotlin | 0 | 0 | 33fe10f5686664f99b1b0e37c9391562e81e56bf | 276 | kit-android | Apache License 2.0 |
src/jvmMain/kotlin/com/github/thamid_gamer/locatereborn/backend/db/tables/User.kt | tahmid-23 | 459,855,199 | false | {"Kotlin": 76370, "CSS": 2272} | package com.github.thamid_gamer.locatereborn.backend.db.tables
import org.jetbrains.exposed.sql.Table
object User : Table() {
val username = varchar("username", 100)
val email = varchar("email", 25).nullable()
override val primaryKey = PrimaryKey(username, name = "PK_USERS_ID")
} | 0 | Kotlin | 0 | 0 | c6d0195389c0c39558076af093fe0bbad4ffdeda | 298 | LocateReborn | MIT License |
app/src/main/java/com/ramanie/crypto/presentation/coin_detail_fragment/CoinInfoFragment.kt | kennjr | 565,745,969 | false | {"Kotlin": 41475} | package com.ramanie.crypto.presentation.coin_detail_fragment
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.material3.CircularProgressIndicator
import androidx.compose.material3.Divider
import androidx.compose.material3.MaterialTheme
import androi... | 0 | Kotlin | 0 | 0 | f4d4e75eb95a4c618bb2799f962d9460922320bf | 5,994 | Crypto | MIT License |
And Rz Android Kotlin AdMob/appusagesexample/src/main/java/com/rzandroidgit/appusagesexample/ActivityProAdMob.kt | rzrasel | 464,049,087 | false | {"Kotlin": 73547, "Shell": 535, "Batchfile": 417} | package com.rzandroidgit.appusagesexample
import android.app.Activity
import android.content.Context
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import android.widget.Button
import com.rzandkotlingit.proadmob.ProAdMobManager
import com.rzandkotlingit.proadmob.ProCo... | 0 | Kotlin | 0 | 0 | 0171d49543e0a0f6af7995b2bb0649a9096f27ce | 3,314 | rz-android-sdk-git-kotlin | MIT License |
shape/d2v-shape-common/src/main/kotlin/io/data2viz/shape/curve/BasisClosed.kt | tokou | 126,399,742 | true | {"Kotlin": 1455567, "HTML": 45831, "JavaScript": 9282} | package io.data2viz.shape.curve
import io.data2viz.path.PathAdapter
import io.data2viz.shape.Curve
class BasisClosed(override val context: PathAdapter): Curve {
private var x0 = -1.0
private var y0 = -1.0
private var x1 = -1.0
private var y1 = -1.0
private var x2 = -1.0
private var y2 = -1.0
... | 0 | Kotlin | 0 | 0 | 19144c32304c27266a299864ae414355fe34c7d7 | 2,263 | data2viz | Apache License 2.0 |
translation/src/main/java/catmoe/fallencrystal/translation/executor/bungee/BungeeConsole.kt | CatMoe | 638,486,044 | false | {"Kotlin": 764903} | /*
* Copyright 2023. CatMoe / FallenCrystal
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... | 2 | Kotlin | 0 | 21 | 5a0f321eafffd1247a84e4a7e12d4efb50226368 | 1,587 | MoeFilter | Apache License 2.0 |
src/main/kotlin/d9/D9.kt | MTender | 734,007,442 | false | {"Kotlin": 108628} | package d9
fun parseInput(lines: List<String>): List<List<Int>> {
return lines.map { line -> line.split(" ").map { it.toInt() } }
} | 0 | Kotlin | 0 | 0 | a6eec4168b4a98b73d4496c9d610854a0165dbeb | 136 | aoc2023-kotlin | MIT License |
backend/src/main/kotlin/loader/QuoteLoader.kt | Kneke | 175,188,803 | false | {"Kotlin": 89367, "Swift": 13981, "Dart": 10584, "JavaScript": 7751, "HTML": 3824, "Ruby": 3260, "Dockerfile": 511, "SCSS": 466, "Shell": 224, "Objective-C": 38} | package loader
import de.kneke.common.data.quote.Quote
import de.kneke.common.util.logger.log
import kotlinx.serialization.UnstableDefault
import kotlinx.serialization.json.Json.Companion.parse
import kotlinx.serialization.list
import java.lang.Exception
class QuoteLoader {
@UnstableDefault
fun getQuotesFrom... | 22 | Kotlin | 0 | 2 | 35b0d4447ab42dedaed54509e73a1ae794199d3c | 15,214 | kotlin_multiplatform_quotes | Apache License 2.0 |
bottom-sheet-alert-dialog/src/main/java/com/sixtyninefourtwenty/bottomsheetalertdialog/misc/ConvenienceStuff.kt | unbiaseduser-github | 804,437,923 | false | {"Kotlin": 39630} | @file:JvmSynthetic
@file:Suppress("unused")
package com.sixtyninefourtwenty.bottomsheetalertdialog.misc
import android.content.Context
import android.view.View
import com.google.android.material.bottomsheet.BottomSheetDialogFragment
import com.sixtyninefourtwenty.bottomsheetalertdialog.BottomSheetAlertDialogActions
i... | 0 | Kotlin | 0 | 0 | 25808f9307b80ec1d38fb594553627c2eccf2a0c | 1,497 | bottom-sheet-alert-dialog | Apache License 2.0 |
aTalk/src/main/java/org/atalk/hmos/gui/contactlist/UIContactDetailImpl.kt | cmeng-git | 704,328,019 | false | {"Kotlin": 14364024, "Java": 2718723, "C": 275021, "Shell": 49203, "Makefile": 28273, "C++": 13642, "HTML": 7793, "CSS": 3127, "JavaScript": 2758, "AIDL": 375} | /*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required b... | 0 | Kotlin | 0 | 0 | 90e83dd8c054a5f480d03e8b0b1912b41bd79b0c | 2,955 | atalk-hmos_kotlin | Apache License 2.0 |
pensjon-brevbaker/src/test/kotlin/no/nav/pensjon/brev/template/dsl/TemplateTest.kt | navikt | 375,334,697 | false | {"Kotlin": 1610249, "TypeScript": 143482, "TeX": 12814, "Shell": 8303, "CSS": 5964, "Python": 4661, "Dockerfile": 2199, "JavaScript": 1890, "HTML": 380} | package no.nav.pensjon.brev.template.dsl
import no.nav.pensjon.brev.template.*
import no.nav.pensjon.brev.template.ContentOrControlStructure.*
import no.nav.pensjon.brev.template.dsl.SomeDtoSelectors.name
import no.nav.pensjon.brev.template.dsl.expression.*
import org.junit.jupiter.api.Assertions.assertEquals
import o... | 2 | Kotlin | 3 | 1 | e06a35438c6eafeaba4539965953c3f0dd3453f9 | 8,046 | pensjonsbrev | MIT License |
src/main/kotlin/com/pretzel/core/ast/expr/MemberAccess.kt | compiler-hacker-gal | 392,916,416 | false | null | /*
* MemberAccess.kt
*
* Copyright 2021 apachejuice
* This file is part of Pretzel
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* <http://www.apache.org/licenses/LICENSE-2.... | 0 | Kotlin | 0 | 7 | 36814b5912c4b06b0cd94637cd7aaf55d47192b4 | 1,871 | pretzel | Apache License 2.0 |
listener-log/src/main/java/com/rarible/ethereum/listener/log/block/NewBlockSubscriber.kt | rarible | 358,506,329 | false | null | package com.rarible.ethereum.listener.log.block
import io.daonomic.rpc.domain.Word
import reactor.core.publisher.Flux
import scalether.domain.response.Block
interface NewBlockSubscriber {
fun newHeads(): Flux<Block<Word>>
} | 1 | Kotlin | 7 | 6 | f71615888db1a092867baef0fbf95292e50a1672 | 229 | ethereum-core | MIT License |
EventManager/enclave/src/test/kotlin/me/gendal/conclave/eventmanager/enclave/EventManagerEnclaveTest.kt | R3Conclave | 351,032,160 | false | null | package me.gendal.conclave.eventmanager.enclave
import com.r3.conclave.common.EnclaveInstanceInfo
import com.r3.conclave.host.EnclaveHost
import com.r3.conclave.host.MailCommand
import com.r3.conclave.mail.Curve25519PrivateKey
import com.r3.conclave.mail.PostOffice
import kotlinx.serialization.ExperimentalSerializatio... | 5 | Kotlin | 8 | 5 | d88bc2a9c9c1bde3ad69e55ab11a95aef8df84de | 8,670 | conclave-samples | Apache License 2.0 |
app/src/androidTest/java/ru/vdv/myapp/myreadersdiary/ExampleInstrumentedTest.kt | stdimensiy | 420,496,623 | false | {"Kotlin": 234686} | package ru.vdv.myapp.myreadersdiary
import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.ext.junit.runners.AndroidJUnit4
import org.junit.Test
import org.junit.runner.RunWith
import org.junit.Assert.*
/**
* Instrumented test, which will execute on an Android device.
*
* See [testing doc... | 18 | Kotlin | 2 | 3 | 51ac3e76ade2d3c15b839376490878cb0a3bacf7 | 681 | My_Readers_Diary_DA | MIT License |
core/types/src/main/kotlin/org/timemates/backend/types/timers/TimerState.kt | timemates | 575,534,781 | false | {"Kotlin": 367950, "Dockerfile": 859} | package org.timemates.backend.types.timers
import com.timemates.backend.time.UnixTime
import org.timemates.backend.fsm.State
import kotlin.time.Duration
import kotlin.time.Duration.Companion.minutes
/**
* Sealed class representing different states of a TimeMates entity.
*
* @property endsAt The time when the state... | 12 | Kotlin | 1 | 8 | bdf5fb92950493ab651156c5d67734f698e5d960 | 3,053 | backend | MIT License |
app/src/main/java/me/kofesst/android/shoppinglist/ui/components/TextFields.kt | kofesst | 513,660,159 | false | {"Kotlin": 162181} | package me.kofesst.android.shoppinglist.ui.components
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.text.KeyboardActions
import androidx.compose.foundation.text.KeyboardOpti... | 0 | Kotlin | 0 | 0 | 04ef1ebc9bf5a3819a7a85dc42101e736c5c1274 | 7,676 | shopping-list-app | Apache License 2.0 |
android/engine/src/test/java/org/smartregister/fhircore/engine/domain/model/LanguageTest.kt | opensrp | 339,242,809 | false | {"Kotlin": 3034140, "Java": 4967, "JavaScript": 3548, "CSS": 459} | /*
* Copyright 2021-2023 Ona Systems, Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law o... | 192 | Kotlin | 56 | 56 | 64a55e6920cb6280cf02a0d68152d9c03266518d | 914 | fhircore | Apache License 2.0 |
app/src/main/kotlin/com/gasparaitis/owncommunity/domain/alerts/model/AlertItem.kt | ownevery | 666,709,725 | false | {"Kotlin": 188322} | package com.gasparaiciukas.owncommunity.domain.alerts.model
import androidx.annotation.DrawableRes
import androidx.annotation.StringRes
import com.gasparaiciukas.owncommunity.R
import java.util.UUID
data class AlertItem(
val id: String,
val section: Section,
val type: Type,
val title: String,
val ... | 14 | Kotlin | 0 | 1 | ff0b05c061233c5a837d3df89f114e5eba9fe3f3 | 1,162 | owncommunity | MIT License |
dsl/src/main/kotlin/com/faendir/awscdkkt/generated/services/iotwireless/CfnWirelessDeviceImportTaskDsl.kt | F43nd1r | 643,016,506 | false | null | package com.faendir.awscdkkt.generated.services.iotwireless
import com.faendir.awscdkkt.AwsCdkDsl
import javax.`annotation`.Generated
import kotlin.String
import kotlin.Unit
import software.amazon.awscdk.services.iotwireless.CfnWirelessDeviceImportTask
import software.amazon.awscdk.services.iotwireless.CfnWirelessDevi... | 1 | Kotlin | 0 | 0 | b22e397ff37c5fce365a5430790e5d83f0dd5a64 | 1,124 | aws-cdk-kt | Apache License 2.0 |
Application/app/src/main/java/com/thephoenix/rockpaperscissors/presentation/screen/game/online_multiplayer/OnlineMultiplayerGameViewModel.kt | Samuelk0nrad | 729,453,053 | false | {"Kotlin": 444709, "JavaScript": 1179} | package com.thephoenix.rockpaperscissors.presentation.screen.game.online_multiplayer
import android.content.Context
import android.util.Log
import androidx.lifecycle.ViewModel
import com.thephoenix.rockpaperscissors.R
import com.thephoenix.rockpaperscissors.data.SelectionType
import com.thephoenix.rockpaperscissors.pr... | 0 | Kotlin | 0 | 0 | 841fbf78fcb11116fee1058545a5472185c2cf9a | 7,060 | Rock-Paper-Scissors | Boost Software License 1.0 |
data/src/test/kotlin/com/hubtwork/clean_android/data/ExampleUnitTest.kt | wkchae | 576,075,411 | false | {"Kotlin": 86734} | package com.hubtwork.clean_android.data
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Test
/**
* Example local unit test, which will execute on the development machine (host).
*
* See [testing documentation](http://d.android.com/tools/testing).
*/
class ExampleUnitTest {
@... | 0 | null | 0 | 0 | a7ac7a6180b1d14aedf4ebef963fa58646b8a43f | 433 | Android-CleanArchitecture-Template | Apache License 2.0 |
src/main/kotlin/commands/UpdateCommand.kt | Chousik | 764,806,161 | false | {"Kotlin": 48844} | package org.chousik.commands
import org.chousik.handlers.ICollectionController
import org.chousik.handlers.RunHandler
class UpdateCommand(private val collectionController: ICollectionController<*>) :
ACommand("update", "команда позволяет обновить элемент с введенным айди", 1) {
override fun execute(args: Ar... | 0 | Kotlin | 0 | 0 | 7b7a59bcf366ec149a4f0ab0e4da7bd9e5c4dfde | 549 | Lab5_Kotlin | MIT License |
app/src/main/java/com/developersbreach/composeactors/ui/movieDetail/MovieDetailViewModel.kt | RajashekarRaju | 437,301,550 | false | null | package com.developersbreach.composeactors.ui.movieDetail
import android.app.Application
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.ViewModel
import androidx.lifecy... | 0 | Kotlin | 2 | 35 | 09903f422f9f489efdb91973a60bdc8657d180ad | 2,390 | compose-actors | Apache License 2.0 |
src/test/kotlin/platform/mixin/AccessorMixinTest.kt | minecraft-dev | 42,327,118 | false | null | /*
* Minecraft Dev for IntelliJ
*
* https://minecraftdev.org
*
* Copyright (c) 2023 minecraft-dev
*
* MIT License
*/
package com.demonwav.mcdev.platform.mixin
import com.demonwav.mcdev.framework.EdtInterceptor
import com.demonwav.mcdev.platform.mixin.inspection.MixinAnnotationTargetInspection
import com.demon... | 204 | null | 152 | 1,154 | 36cc3d47f7f39c847c0ebdcbf84980bc7262dab7 | 11,847 | MinecraftDev | MIT License |
app/src/main/kotlin/com/ybj366533/yycamera/base/utils/NetworkUtils.kt | ybj366533 | 131,370,409 | false | null | package com.ybj366533.yycamera.base.utils
import android.content.Context
import android.net.ConnectivityManager
import android.telephony.TelephonyManager
/**
* 网络工具类
* Created by summer on 2017/11/27.
*/
// 是否有网络连接
val Context.isNetWorkConnected
get() = run {
connectivityManager.activeNetworkInfo?.run... | 0 | null | 3 | 19 | 08d6b4818173293f3f56409f2f4e79dec76e3aa5 | 1,993 | YY-Camera | Apache License 2.0 |
src/main/kotlin/ui/composable/elements/window/NavWindow.kt | jskako | 686,469,615 | false | {"Kotlin": 127369, "VBScript": 410, "Batchfile": 108} | package ui.composable.elements.window
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Scaffold
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
impor... | 7 | Kotlin | 1 | 16 | 19b7dff7ef4725bc0c327b2d2321139c5c6e47cf | 2,819 | DroidSense | Apache License 2.0 |
app/src/main/java/com/ave/vastgui/app/activity/IntentActivity.kt | SakurajimaMaii | 353,212,367 | false | null | /*
* Copyright 2022 VastGui <EMAIL>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 2 | Kotlin | 4 | 36 | 94ec3bf55dc0e30f05bd5f48f96b6a2502fd336e | 4,414 | Android-Vast-Extension | Apache License 2.0 |
ooxml-spreadsheet/src/main/kotlin/io/github/nillerr/ooxml/spreadsheet/serializers/URISerializer.kt | Nillerr | 657,676,368 | false | {"Kotlin": 59525} | package io.github.nillerr.ooxml.spreadsheet.serializers
import io.github.nillerr.ooxml.spreadsheet.CellSerializer
import io.github.nillerr.ooxml.spreadsheet.CellSerializerRegistry
import io.github.nillerr.ooxml.spreadsheet.CellWriter
import io.github.nillerr.ooxml.spreadsheet.Hyperlink
import java.net.URI
import kotli... | 0 | Kotlin | 0 | 2 | a184fbaa4b75011e9dd78904fea8f9677c4133b4 | 709 | ooxml-kotlin | MIT License |
app/src/main/java/com/gmail/eamosse/imdb/parcelable/VideoParcelable.kt | CamillePERES | 430,618,871 | true | {"Kotlin": 95660} | package com.gmail.eamosse.imdb.parcelable
import android.os.Parcelable
import kotlinx.parcelize.Parcelize
@Parcelize
data class VideoParcelable(val key: String): Parcelable {
} | 0 | Kotlin | 0 | 1 | 1c292171b41f035c53d932cd7dae2b0cbdb79a2a | 178 | the-movie-app | Apache License 2.0 |
sdk/adaptive/src/main/java/com/ibm/security/verifysdk/adaptive/AssessmentFactor.kt | ibm-security-verify | 430,929,749 | false | {"Kotlin": 366062} | /*
* Copyright contributors to the IBM Security Verify Adaptive SDK for Android project
*/
package com.ibm.security.verifysdk.adaptive
import java.io.Serializable
/**
* The [AssessmentFactor] is used to represent factors in a [RequiresAssessmentResult.factors].
*
* @since 3.0.0
*/
interface AssessmentFactor : ... | 0 | Kotlin | 1 | 1 | fd09a6d0c6586059e5d1cd00451b32dfbfe6e36a | 2,132 | verify-sdk-android | MIT License |
src/main/kotlin/no/nav/amt/person/service/person/PersonRepository.kt | navikt | 618,357,446 | false | {"Kotlin": 316483, "PLpgSQL": 635, "Dockerfile": 92} | package no.nav.amt.person.service.person
import no.nav.amt.person.service.person.dbo.PersonDbo
import no.nav.amt.person.service.person.model.Person
import no.nav.amt.person.service.person.model.Rolle
import no.nav.amt.person.service.utils.getUUID
import no.nav.amt.person.service.utils.sqlParameters
import org.springfr... | 0 | Kotlin | 0 | 0 | 7561bffc14cf5e4b43b0bd91177df1ad458a3e56 | 3,633 | amt-person-service | MIT License |
src/main/kotlin/com/kcrud/domain/entities/employee/types/MaritalStatus.kt | perracolabs | 682,128,013 | false | {"Kotlin": 183169, "HTML": 583} | /*
* Copyright (c) 2023 <NAME>. All rights reserved.
* This work is licensed under the terms of the MIT license.
* For a copy, see <https://opensource.org/licenses/MIT>
*/
package com.kcrud.domain.entities.employee.types
@Suppress("unused")
enum class MaritalStatus {
MARRIED,
SINGLE,
DIVORCED,
UNK... | 0 | Kotlin | 0 | 2 | db1a4763931e5aa02b72a2b58dae423737b11187 | 326 | Kcrud | MIT License |
feature/movie/src/main/java/com/irfanirawansukirman/movie/presentation/movies/MoviesVM.kt | irfanirawansukirman | 396,818,181 | false | null | package com.irfanirawansukirman.movie.presentation.movies
import android.app.Application
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import com.irfanirawansukirman.core.base.BaseVM
import com.irfanirawansukirman.core.ui.UIState
import com.irfanirawansukirman.core.util.coroutine.Corouti... | 1 | null | 1 | 1 | eba1434be922af3f8ade235a25e720d656d28721 | 5,725 | awesome-app | Apache License 2.0 |
app/src/main/java/com/lai/whiteboard/widget/WhiteboardTextureView.kt | laishujie | 332,860,675 | false | null | package com.lai.whiteboard.widget
import android.content.Context
import android.graphics.*
import android.util.AttributeSet
import android.util.Log
import android.view.MotionEvent
import android.view.Surface
import android.view.TextureView
import com.lai.whiteboard.ShaderNative
import com.lai.whiteboard.pen.IPen
impor... | 1 | C++ | 22 | 58 | 5470abf2e401d633125894aaa9a2c135eff3db6a | 12,076 | Whiteboard | Apache License 2.0 |
vuesaxicons/src/commonMain/kotlin/moe/tlaster/icons/vuesax/vuesaxicons/linear/Boxadd.kt | Tlaster | 560,394,734 | false | {"Kotlin": 25133302} | package moe.tlaster.icons.vuesax.vuesaxicons.linear
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
import androidx.... | 0 | Kotlin | 0 | 2 | b8a8231e6637c2008f675ae76a3423b82ee53950 | 5,120 | VuesaxIcons | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.