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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
src/main/kotlin/io/tree/SymmetricTree.kt | jffiorillo | 138,075,067 | false | null | package io.tree
import java.util.*
//https://leetcode.com/explore/learn/card/data-structure-tree/17/solve-problems-recursively/536/
class SymmetricTree {
fun <T> execute(tree: BinaryTree<T>): Boolean {
val stack = Stack<List<BinaryTree<T>?>>()
stack.push(listOf(tree))
while (stack.isNotEmpty()) {
... | 1 | null | 1 | 1 | f093c2c19cd76c85fab87605ae4a3ea157325d43 | 762 | coding | MIT License |
core/ui/src/main/kotlin/de/tum/informatics/www1/artemis/native_app/core/ui/LocalWindowSizeClass.kt | ls1intum | 537,104,541 | false | null | package de.tum.informatics.www1.artemis.native_app.core.ui
import androidx.compose.material3.windowsizeclass.WindowSizeClass
import androidx.compose.runtime.Composable
import androidx.compose.runtime.compositionLocalOf
val LocalWindowSizeClassProvider = compositionLocalOf<WindowSizeClassProvider> { error("No LocalWin... | 1 | Kotlin | 0 | 2 | d9a0833905cdad14da0f9cf4863b6cf85747941d | 570 | artemis-android | Apache License 2.0 |
dsl/src/main/kotlin/io/cloudshiftdev/awscdkdsl/services/fsx/CfnDataRepositoryAssociationAutoImportPolicyPropertyDsl.kt | cloudshiftinc | 667,063,030 | false | {"Kotlin": 63959868} | @file:Suppress(
"RedundantVisibilityModifier",
"RedundantUnitReturnType",
"RemoveRedundantQualifierName",
"unused",
"UnusedImport",
"ClassName",
"REDUNDANT_PROJECTION",
"DEPRECATION"
)
package io.cloudshiftdev.awscdkdsl.services.fsx
import io.cloudshiftdev.awscdkdsl.common.CdkDslMarker... | 4 | Kotlin | 0 | 3 | c59c6292cf08f0fc3280d61e7f8cff813a608a62 | 3,421 | awscdk-dsl-kotlin | Apache License 2.0 |
core/src/com/mygdx/game/Algorand/Verification.kt | freddyblockchain | 791,340,797 | false | {"Kotlin": 132447, "OpenEdge ABL": 2029, "Java": 835} | import com.mygdx.game.Algorand.AlgorandManager
import com.mygdx.game.Models.VerificationData
class VerificationManager {
companion object {
var serverUUID = "random_string"
fun getVerificationData(messageToSign: String = serverUUID): VerificationData {
val signatureBytes = AlgorandManag... | 0 | Kotlin | 0 | 0 | fe938937d9758116ee4cdea24b32ae2149201ee7 | 516 | Elemental-Brawl-Online | The Unlicense |
compiler/testData/diagnostics/tests/controlFlowAnalysis/uninitializedCompanionOfEnum_after.kt | JetBrains | 3,432,266 | false | null | // LANGUAGE: +ProhibitAccessToEnumCompanionMembersInEnumConstructorCall
// ISSUE: KT-49110
enum class SomeEnum(val x: Int) {
A(<!UNINITIALIZED_ENUM_COMPANION!>companionFun()<!>.length),// UNINITIALIZED_ENUM_COMPANION
B(<!UNINITIALIZED_ENUM_COMPANION, UNINITIALIZED_VARIABLE!>companionProp<!>.length), // UNINITI... | 157 | Kotlin | 5209 | 42,102 | 65f712ab2d54e34c5b02ffa3ca8c659740277133 | 1,608 | kotlin | Apache License 2.0 |
app/src/main/java/com/aleqsanbr/confirmatio/practices/BrainStorm.kt | aleqsanbr | 700,928,127 | false | {"Kotlin": 311823} | package com.aleqsanbr.confirmatio.practices
import androidx.compose.foundation.ScrollState
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.founda... | 0 | Kotlin | 0 | 3 | 37bfc8751e2c0181f6d332b51953d708b1627e91 | 2,990 | confirmatio | Apache License 2.0 |
libraries/cache/src/main/kotlin/io/plastique/core/cache/CacheEntryRepository.kt | plastiqueapp | 150,879,887 | false | null | package io.plastique.core.cache
import javax.inject.Inject
@Suppress("NOTHING_TO_INLINE")
class CacheEntryRepository @Inject constructor(
private val dao: CacheEntryDao
) {
fun getEntryByKey(key: CacheKey): CacheEntry? {
return dao.getEntryByKey(key.value)?.toCacheEntry()
}
fun setEntry(entry... | 0 | Kotlin | 2 | 9 | 9271853f3741add18822858cbad9d4f8e8104f54 | 807 | plastique | Apache License 2.0 |
compiler/testData/diagnostics/tests/j+k/collectorInference.fir.kt | ujjwalagrawal17 | 227,870,357 | true | {"Kotlin": 42629167, "Java": 7628229, "JavaScript": 197545, "HTML": 75183, "Lex": 23805, "TypeScript": 21613, "CSS": 9144, "Shell": 7220, "Groovy": 6940, "Batchfile": 5362, "Swift": 2253, "Ruby": 668, "Objective-C": 293, "Scala": 80} | // !WITH_NEW_INFERENCE
// !CHECK_TYPE
// SKIP_TXT
// FULL_JDK
import java.util.stream.Collectors
import java.util.stream.Stream
fun test(a: Stream<String>) {
a.<!INAPPLICABLE_CANDIDATE!>collect<!>(Collectors.toList()) <!INAPPLICABLE_CANDIDATE!>checkType<!> { <!UNRESOLVED_REFERENCE!>_<!><MutableList<String>>() }
... | 0 | null | 0 | 1 | 5b8be16f13b5c9960c72fe8be7746009170f09ec | 521 | kotlin | Apache License 2.0 |
app/src/main/java/com/jaimegc/covid19tracker/data/api/config/ServerApiClient.kt | EtsTest-AndroidApps | 458,004,956 | true | {"Kotlin": 1318013} | package com.jaimegc.covid19tracker.data.api.config
open class ServerApiClient(private val serverApiConfig: ServerApiConfig) {
fun <T> getApi(apiRest: Class<T>): T =
serverApiConfig.retrofit.create(apiRest)
} | 0 | Kotlin | 0 | 0 | 5600c758b6b80db17da3cfd911b3eb5f3231edf0 | 221 | Covid19Tracker | Apache License 2.0 |
retrofit/src/main/java/com/xmartlabs/bigbang/retrofit/module/RestServiceModule.kt | xmartlabs | 50,346,596 | false | {"Kotlin": 232568, "Shell": 834} | package com.xmartlabs.bigbang.retrofit.module
import android.content.Context
import com.google.gson.Gson
import com.xmartlabs.bigbang.core.module.OkHttpModule
import com.xmartlabs.bigbang.retrofit.common.DefaultServiceStringConverter
import com.xmartlabs.bigbang.retrofit.common.ServiceStringConverter
import dagger.Mod... | 1 | Kotlin | 11 | 51 | 74827bec72f607d909fcc923f53cf19d0152e732 | 1,846 | bigbang | Apache License 2.0 |
app/src/main/java/ca/hojat/gamehub/core/domain/entities/Website.kt | hojat72elect | 574,228,468 | false | {"Kotlin": 912868, "Shell": 539} | package ca.hojat.gamehub.core.domain.entities
data class Website(
val id: Int,
val url: String,
val category: WebsiteCategory
)
| 0 | Kotlin | 8 | 14 | 0d89fb6e48ea00eb2063b9c415c924730be0a29a | 141 | GameHub | MIT License |
app/src/main/java/org/simple/clinic/registration/register/RegistrationLoadingEvent.kt | simpledotorg | 132,515,649 | false | null | package org.simple.clinic.registration.register
import org.simple.clinic.user.User
import org.simple.clinic.widgets.UiEvent
sealed class RegistrationLoadingEvent : UiEvent
data class UserRegistrationCompleted(val result: RegisterUserResult) : RegistrationLoadingEvent()
object RegisterErrorRetryClicked : Registratio... | 7 | null | 74 | 236 | ff699800fbe1bea2ed0492df484777e583c53714 | 513 | simple-android | MIT License |
sample/src/main/java/boringyuri/sample/test/StringTestUriData.kt | anton-novikau | 252,574,617 | false | null | /*
* Copyright 2020 <NAME>
*
* 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 in... | 3 | Kotlin | 1 | 9 | 15b3eeb5ad905c3ad630bc343a3667b8d2e0107f | 1,266 | boringYURI | Apache License 2.0 |
server/src/main/com/broll/gainea/server/core/cards/impl/play/C_FightMonster.kt | Rolleander | 253,573,579 | false | {"Kotlin": 502373, "Java": 305905, "HTML": 1714, "CSS": 1069, "Shell": 104, "Batchfile": 100, "JavaScript": 24} | package com.broll.gainea.server.core.cards.impl.play
import com.broll.gainea.server.core.cards.Card
import com.broll.gainea.server.core.objects.Soldier
import com.broll.gainea.server.core.utils.UnitControl.spawn
import com.broll.gainea.server.core.utils.selectWildMonster
class C_FightMonster : Card(83, "Drachenjäger"... | 0 | Kotlin | 0 | 3 | aa69f0b030ae8feb64c221faa0f7749c7670c458 | 964 | Gainea | MIT License |
src/main/kotlin/io/zhudy/duic/server/Application.kt | pypwxh | 120,691,780 | true | {"Kotlin": 73032, "Vue": 58131, "JavaScript": 19644, "CSS": 10699, "HTML": 1063} | package io.zhudy.duic.server
import com.auth0.jwt.algorithms.Algorithm
import io.zhudy.duic.Config
import org.springframework.boot.Banner
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.autoconfigure.dao.PersistenceExceptionTranslationAutoConfiguration
import org.spr... | 0 | Kotlin | 0 | 0 | 90c1e231801c81bb8d676dc8a0c445765ae55d87 | 3,328 | duic | Apache License 2.0 |
src/test/kotlin/TestInMemoryByteChannel.kt | b8b | 130,209,244 | false | {"Kotlin": 72233, "Shell": 5012} | import org.cikit.syslog.InMemoryByteChannel
import org.junit.Assert.assertEquals
import org.junit.Assert.assertNull
import org.junit.Test
import java.nio.ByteBuffer
class TestInMemoryByteChannel {
@Test
fun testGetSet() {
val x = InMemoryByteChannel()
x[10_000] = 1
assertEquals(0.toByt... | 0 | Kotlin | 0 | 0 | b3721ac6ccf43499761c40de81f324d07091f557 | 1,023 | cikit-syslog | Apache License 2.0 |
json/json-common/src/main/kotlin/ru/tinkoff/kora/json/common/JsonKotlin.kt | Squiry | 772,475,645 | true | {"Java Properties": 1, "Gradle": 98, "Shell": 1, "EditorConfig": 1, "Markdown": 3, "Batchfile": 1, "Text": 2, "Ignore List": 1, "Java": 1446, "Kotlin": 467, "XML": 8, "JSON": 17, "INI": 10, "YAML": 5, "SQL": 3, "OASv3-yaml": 11, "HTML": 2, "OASv2-yaml": 1, "Mustache": 32, "Protocol Buffer": 3} | package ru.tinkoff.kora.json.common
object JsonKotlin {
@Suppress("UNCHECKED_CAST")
fun <T> writerForNullable(writer: JsonWriter<T>): JsonWriter<T?> {
return writer as JsonWriter<T?>
}
@Suppress("UNCHECKED_CAST")
fun <T> readerForNullable(reader: JsonReader<T>): JsonReader<T?> {
re... | 0 | null | 0 | 0 | c26f794e60e903a358b0c1ffac9a865507415ff6 | 358 | kora | Apache License 2.0 |
src/main/kotlin/net/notjustanna/psi/executor/service/WrapperExecutorService.kt | NotJustAnna | 202,241,367 | false | null | package pw.aru.psi.executor.service
import java.util.concurrent.AbstractExecutorService
import java.util.concurrent.TimeUnit
class WrapperExecutorService(private val service: TaskExecutorService) : AbstractExecutorService() {
override fun execute(command: Runnable) {
service.queue(null, command::run)
... | 1 | null | 1 | 1 | dbf06eb87a74a92aad7c7d9c9af417fa383e01fe | 668 | psi-framework | Apache License 2.0 |
lawnchair/src/app/lawnchair/data/iconoverride/IconOverrideRepository.kt | LawnchairLauncher | 83,799,439 | false | null | package app.lawnchair.data.iconoverride
import android.content.Context
import app.lawnchair.data.AppDatabase
import app.lawnchair.icons.IconPickerItem
import com.android.launcher3.LauncherAppState
import com.android.launcher3.util.ComponentKey
import com.android.launcher3.util.MainThreadInitializedObject
import kotlin... | 388 | null | 1200 | 9,200 | d91399d2e4c6acbeef9c0704043f269115bb688b | 2,269 | lawnchair | Apache License 2.0 |
subprojects/gradle/tech-budget/src/test/kotlin/com/avito/tech_budget/warnings/UploadWarningsBatcherTest.kt | avito-tech | 230,265,582 | false | null | package com.avito.tech_budget.warnings
import com.avito.android.tech_budget.internal.dump.DumpInfo
import com.avito.android.tech_budget.internal.dump.DumpResponse
import com.avito.android.tech_budget.internal.warnings.upload.UploadWarningsApi
import com.avito.android.tech_budget.internal.warnings.upload.UploadWarnings... | 8 | null | 50 | 414 | bc94abf5cbac32ac249a653457644a83b4b715bb | 4,565 | avito-android | MIT License |
app/src/main/java/com/jonnyhsia/composer/page/main/inbox/InboxFragment.kt | jonnyhsia | 130,314,804 | false | null | package com.jonnyhsia.composer.page.main.inbox
import android.os.Handler
import android.support.v4.content.ContextCompat
import android.support.v7.widget.LinearLayoutManager
import android.view.View
import androidx.core.os.postDelayed
import androidx.core.view.setPadding
import com.dinuscxj.itemdecoration.PinnedHeader... | 0 | Kotlin | 0 | 4 | 07fcc842a6b4695352231bf6b5b74b446b59b500 | 5,490 | composer | Apache License 2.0 |
j2k/new/tests/testData/newJ2k/superExpression/kotlinSuperClassWithImplicitConstructor.external.kt | JetBrains | 278,369,660 | false | null | open class EmptyTest {
} | 0 | null | 30 | 82 | cc81d7505bc3e9ad503d706998ae8026c067e838 | 24 | intellij-kotlin | Apache License 2.0 |
src/main/kotlin/com/krillsson/sysapi/graphql/FileSystemResolver.kt | Krillsson | 40,235,586 | false | null | package com.krillsson.sysapi.graphql
import com.krillsson.sysapi.core.domain.filesystem.FileSystem
import com.krillsson.sysapi.core.metrics.Metrics
import org.springframework.graphql.data.method.annotation.QueryMapping
import org.springframework.graphql.data.method.annotation.SchemaMapping
import org.springframework.s... | 9 | null | 3 | 97 | bfac764b9fbf3633755e8a045e9d18c5b0b488f8 | 579 | sys-API | Apache License 2.0 |
HelpfulSense/locationsms/src/main/java/com/andruid/magic/locationsms/util/Prefs.kt | death14stroke | 194,371,172 | false | {"Text": 1, "Markdown": 1, "Gradle": 6, "Java Properties": 2, "Shell": 1, "Ignore List": 4, "Batchfile": 1, "Proguard": 3, "XML": 59, "Java": 11, "JSON": 1, "Kotlin": 50, "INI": 1} | package com.andruid.magic.locationsms.util
import android.content.Context
import androidx.fragment.app.Fragment
import androidx.preference.PreferenceManager
import com.andruid.magic.locationsms.R
/**
* Get shake threshold from preferences
* @return shake threshold
* @receiver context of the calling component
*/
f... | 0 | Kotlin | 2 | 4 | 6134b138ebd858c9ef2bb1bfcd77e0addf1402c2 | 1,895 | helpful-sense | Apache License 2.0 |
app/src/test/java/com/example/app/UseCaseThreadTestRule.kt | G0retZ | 288,515,732 | false | null | package com.example.app
import io.reactivex.plugins.RxJavaPlugins
import io.reactivex.schedulers.Schedulers
import org.junit.rules.TestRule
import org.junit.runner.Description
import org.junit.runners.model.Statement
/**
* Test Rule, that sets Trampoline schedulers for UseCases.
*/
class UseCaseThreadTestRule : Tes... | 0 | Kotlin | 0 | 1 | 4c6d1fcace89b1eec169dd271edd06c39045c668 | 756 | Android-app-example | Apache License 2.0 |
app/src/main/java/com/clean/lbg/domain/usecase/cats/GetFavCatsUseCaseImpl.kt | P-C-Data | 766,525,035 | false | {"Gradle Kotlin DSL": 3, "Java Properties": 9, "Shell": 1, "Text": 30, "Batchfile": 1, "Markdown": 1, "TOML": 1, "Proguard": 1, "Kotlin": 82, "XML": 275, "JSON": 360, "Java": 12, "INI": 7, "Motorola 68K Assembly": 3, "SQL": 9, "HTML": 6, "CSS": 4, "JavaScript": 2, "Protocol Buffer Text Format": 1, "PureBasic": 2} | package com.clean.lbg.domain.usecase.cats
import com.clean.lbg.data.NetworkResult
import com.clean.lbg.domain.mappers.mapFavCatsDataItems
import com.clean.lbg.domain.mappers.models.CatDataModel
import com.clean.lbg.domain.repositories.CatsRepository
import com.clean.lbg.utils.Constants
import kotlinx.coroutines.flow.c... | 0 | Java | 0 | 1 | 13462ee23e252ab8af068e296542be6c150fc9fb | 1,115 | LBG-MVVM-Clean-Koin | Apache License 2.0 |
lib_base/src/main/java/com/lib/base/event/common/BaseActivityEvent.kt | bayshier | 460,763,625 | false | {"Java": 657314, "Kotlin": 419884} | package com.lib.base.event.common
import com.lib.base.event.BaseEvent
open class BaseActivityEvent<T>(code: Int) : BaseEvent<T>(code)
| 0 | Java | 1 | 3 | 15660c4cabadcb8ea1688385aca219e79ee1824d | 137 | MvvmBaseDemo | Apache License 2.0 |
src/main/kotlin/no/skotbuvel/portal/config/HerokuPostgresConfig.kt | apgv | 119,103,169 | false | {"Java": 113114, "Vue": 61421, "Kotlin": 42367, "JavaScript": 12781, "HTML": 352, "CSS": 63} | package codes.foobar.wedapp.config
import java.net.URI
class HerokuPostgresConfig(private val uri: URI) {
fun username() = uri.userInfo.split(":")[0]
fun password() = uri.userInfo.split(":")[1]
fun host() = uri.host!!
fun port() = uri.port
fun database() = uri.path.substring(1)
} | 1 | null | 1 | 1 | f5006f446f758c0a79f6bd7db97b46390580c1eb | 302 | wedapp | MIT License |
compiler/testData/debug/stepping/whenSubject.kt | JetBrains | 3,432,266 | false | null | // FILE: test.kt
fun foo(x: Int) {
when (x) {
21 -> foo(42)
42 -> foo(63)
else -> 1
}
val t = when (x) {
21 -> foo(42)
42 -> foo(63)
else -> 1
}
}
fun box() {
foo(21)
}
// JVM_IR stops on line 8 when exiting the first when.
// LINENUMBERS
// t... | 132 | null | 5074 | 40,992 | 57fe6721e3afb154571eb36812fd8ef7ec9d2026 | 1,576 | kotlin | Apache License 2.0 |
app/src/main/java/com/nistruct/sportstat/usecase/RegisterTrainerUseCase.kt | StefanT997Dev | 366,730,025 | false | null | package com.nistruct.sportstat.usecase
import com.nistruct.sportstat.data.models.ui_models.Trainer
import com.nistruct.sportstat.repository.login.UserRepository
import com.nistruct.sportstat.repository.register.UserRegisterRepository
import com.nistruct.sportstat.usecase.result.DataResult
import kotlinx.coroutines.Cor... | 0 | Kotlin | 0 | 0 | 69a2fbd6c994bff99db10796248228e1a8da8986 | 1,242 | SportStat | Apache License 2.0 |
lib/src/main/java/com/sd/lib/dldmgr/DownloadError.kt | zj565061763 | 196,186,521 | false | {"Java": 97972, "Kotlin": 43858} | package com.sd.lib.dldmgr
enum class DownloadError {
/** 创建临时文件失败 */
CreateTempFile,
/** 提交下载任务失败 */
SubmitFailed,
/** 临时文件不存在 */
TempFileNotExists,
/** 创建下载文件失败 */
CreateDownloadFile,
/** 临时文件重命名为下载文件失败 */
RenameFile,
/** Http请求异常 */
Http,
/** 下载被取消 */
Can... | 1 | Java | 1 | 4 | 702806133b7fd58e6a0757dddc30e7816f844cf2 | 355 | download-manager | MIT License |
app/src/main/java/com/shpak/stormalert/data/repository/local/AppNotificationSettingsRepository.kt | ashpakouski | 687,397,412 | false | {"Kotlin": 69848} | package com.shpak.stormalert.data.repository.local
import android.content.Context
import androidx.datastore.core.DataStore
import androidx.datastore.preferences.core.Preferences
import androidx.datastore.preferences.core.booleanPreferencesKey
import androidx.datastore.preferences.preferencesDataStore
import com.shpak.... | 0 | Kotlin | 0 | 0 | 4d69e913c3781748c1bc961085da4871d3427107 | 1,518 | StormForecast-Android | MIT License |
common/src/main/java/com/freshdigitable/yttt/data/model/TwitchVideos.kt | akihito104 | 613,290,086 | false | {"Kotlin": 413976} | package com.freshdigitable.yttt.data.model
import java.time.Instant
interface TwitchVideo<T : TwitchVideo.TwitchVideoId> {
val id: T
val user: TwitchUser
val title: String
val url: String
val thumbnailUrlBase: String
val viewCount: Int
val language: String
interface TwitchVideoId : Tw... | 12 | Kotlin | 0 | 0 | d29be7c950b288e0e4ada096168cd39e075a11a9 | 2,875 | yttt | Apache License 2.0 |
app/src/main/java/com/gno/erbs/erbs/stats/model/erbs/rank/Rank.kt | GNO-byte | 385,933,393 | false | {"Kotlin": 228643} | package com.gno.erbs.erbs.stats.model.erbs.rank
import com.google.gson.annotations.SerializedName
data class Rank(
val mmr: Int,
val nickname: String,
@SerializedName("rank")
val rankNumber: Int,
val userNum: Int,
var rankTierImageWebLink: String?
) | 0 | Kotlin | 0 | 1 | d29384afc19fd4829215a985226320bbb0f2bd50 | 276 | ERBSStats | Apache License 2.0 |
app/src/main/java/com/gno/erbs/erbs/stats/model/erbs/rank/Rank.kt | GNO-byte | 385,933,393 | false | {"Kotlin": 228643} | package com.gno.erbs.erbs.stats.model.erbs.rank
import com.google.gson.annotations.SerializedName
data class Rank(
val mmr: Int,
val nickname: String,
@SerializedName("rank")
val rankNumber: Int,
val userNum: Int,
var rankTierImageWebLink: String?
) | 0 | Kotlin | 0 | 1 | d29384afc19fd4829215a985226320bbb0f2bd50 | 276 | ERBSStats | Apache License 2.0 |
app/src/main/java/com/minosai/oneclick/util/listener/LoginLogoutListener.kt | MINOSai | 140,918,008 | false | null | package com.minosai.oneclick.util.listener
import com.minosai.oneclick.network.WebService.Companion.RequestType
interface LoginLogoutListener {
fun onLoggedListener(requestType: RequestType, isLogged: Boolean, responseString: String)
} | 0 | Kotlin | 3 | 10 | d7e9c7ede7b25bfbd5fb0dec8d281a337d6b6ed9 | 243 | One-Click | Apache License 2.0 |
shared/core-di/src/commonMain/kotlin/org/gdglille/devfest/PlatformModule.kt | GerardPaligot | 444,230,272 | false | {"Kotlin": 887764, "Swift": 125581, "Shell": 1148, "Dockerfile": 542, "HTML": 338, "CSS": 102} | package org.gdglille.devfest
import org.koin.core.module.Module
const val IsDebugNamed = "IsDebug"
const val ApplicationIdNamed = "ApplicationId"
const val AcceptLanguageNamed = "Accept-Language"
const val Conference4HallBaseUrlNamed = "Conference4HallBaseUrl"
expect val platformModule: Module
| 9 | Kotlin | 5 | 141 | d6e23529843f956d0c4c1ca7cca6a275422d3c22 | 298 | conferences4hall | Apache License 2.0 |
BasicApplication - Android/app/src/main/java/com/basicapplication/ui/compose/components/compose_basics/GreetingsList.kt | alonsd | 303,970,988 | false | null | package com.basicapplication.ui.compose.components.compose_basics
import android.content.res.Configuration.UI_MODE_NIGHT_NO
import android.content.res.Configuration.UI_MODE_NIGHT_YES
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.... | 0 | Kotlin | 7 | 43 | 4dc342bb775469dd5ac6f2836c5b19a6650285ab | 1,129 | BasicApplication | Apache License 2.0 |
app/src/main/java/com/example/simpel/tracks/Image.kt | SamuelTaiwo | 301,402,719 | false | null | package com.example.simpel.tracks
import com.google.gson.annotations.SerializedName
data class Image (
@SerializedName("#text")
val text : String,
val size : String
)
| 0 | Kotlin | 0 | 0 | 9492acf13e91954180a7ddaf572b44095525484d | 172 | SimpEl | MIT License |
app/src/main/java/com/example/simpel/tracks/Image.kt | SamuelTaiwo | 301,402,719 | false | null | package com.example.simpel.tracks
import com.google.gson.annotations.SerializedName
data class Image (
@SerializedName("#text")
val text : String,
val size : String
)
| 0 | Kotlin | 0 | 0 | 9492acf13e91954180a7ddaf572b44095525484d | 172 | SimpEl | MIT License |
kudos-compiler/src/main/java/com/kanyun/kudos/compiler/k2/KudosFirSupertypeGenerationExtension.kt | kanyun-inc | 696,169,460 | false | {"Kotlin": 126383, "Java": 21534} | /*
* Copyright (C) 2023 Kanyun, 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 or agreed... | 0 | Kotlin | 2 | 49 | cfa6aa66e65bf65fc05158d9c4164d9582abeccc | 4,434 | Kudos | Apache License 2.0 |
app/src/test/java/com/voltek/newsfeed/domain/use_case/BaseUseCaseTest.kt | Tisanthan | 136,953,514 | true | {"Kotlin": 130062} | package com.voltek.newsfeed.domain.use_case
import com.voltek.newsfeed.CurrentThreadExecutor
import io.reactivex.schedulers.Schedulers
abstract class BaseUseCaseTest {
protected val scheduler = Schedulers.from(CurrentThreadExecutor())
}
| 0 | Kotlin | 0 | 0 | 78640bd9f2fb2fb4841b3341e635047b929a820b | 244 | News-Feed-App | Apache License 2.0 |
app/src/main/java/com/epikron/countriesandflags/util/ConnectivityObserver.kt | divingpixel | 817,696,087 | false | {"Kotlin": 240723} | package com.epikron.countriesandflags.util
import android.content.Context
import android.net.ConnectivityManager
import android.net.Network
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow
import kotlinx.coroutines.flow.asStateFlow
object ConnectivityObserver {
private var... | 0 | Kotlin | 0 | 0 | 0aa9326cc280eca0ab2a369ba0e59fdbc69a89ae | 1,439 | CountriesAndFlags | Apache License 2.0 |
src/main/kotlin/com/example/msproduct/dto/request/StockDtoRequest.kt | Yissx | 699,865,371 | false | {"Kotlin": 39476} | package com.example.msproduct.dto.request
import jakarta.validation.constraints.NotNull
data class StockDtoRequest(
@NotNull
var stock : Int = 0
) | 0 | Kotlin | 0 | 0 | 764df7be7d94e972839a9df720084d17de8038ac | 156 | spring-product-producer | MIT License |
app/src/main/java/com/mrneumann/vibcam/MainActivity.kt | CherepanovAleksei | 130,865,071 | false | null | package com.mrneumann.vibcam
import android.Manifest.permission.CAMERA
import android.Manifest.permission.WRITE_EXTERNAL_STORAGE
import android.annotation.SuppressLint
import android.app.Activity
import android.app.Service
import android.content.Context
import android.content.Intent
import android.graphics.*
import an... | 0 | Kotlin | 0 | 0 | 5d49903f347783baf17cdb03667291516c41992f | 36,049 | VibCam2 | Apache License 2.0 |
src/main/kotlin/org/teamvoided/dusk_autumn/data/gen/structure/StructureSetCreator.kt | TeamVoided | 737,359,498 | false | {"Kotlin": 361125, "Java": 3800} | package org.teamvoided.dusk_autumn.data.gen.structure
import net.minecraft.registry.BootstrapContext
import net.minecraft.registry.RegistryKeys
import net.minecraft.structure.RandomSpreadStructurePlacement
import net.minecraft.structure.RandomSpreadType
import net.minecraft.world.gen.structure.StructureSet
import org.... | 0 | Kotlin | 0 | 0 | ad953436fb5aa692d897d635c052b646a94a5aa9 | 992 | DuskBlocks | MIT License |
muzik-processor/src/main/java/me/longv/muzik/FactoryProcessor.kt | longv | 217,900,119 | false | {"Kotlin": 24852} | package me.longv.muzik
import javax.annotation.processing.AbstractProcessor
import javax.annotation.processing.RoundEnvironment
import javax.annotation.processing.Messager
import javax.annotation.processing.Filer
import javax.lang.model.util.Elements
import javax.lang.model.util.Types
import javax.annotation.processin... | 0 | Kotlin | 0 | 0 | c2fa262aa07b3251574d5ec92e31cdecabab7442 | 5,389 | plagro | Apache License 2.0 |
app/src/main/java/dev/marcos/droidnotes/data/NotesDataSource.kt | mrcsxsiq | 387,312,753 | false | null | package dev.marcos.droidnotes.data
import dev.marcos.droidnotes.data.network.GrpcService
import dev.marcos.droidnotes.data.storage.NotesDao
import dev.marcos.droidnotes.domain.Note
import io.grpc.ManagedChannel
import kotlinx.coroutines.flow.Flow
class NotesDataSource(
private val noteDao: NotesDao,
private v... | 0 | Kotlin | 5 | 50 | af66004cd36ce9b3926a1bff8c5d88f32d44ecdc | 1,341 | DroidNotes | Apache License 2.0 |
wings/faceless-flywave/src/main/kotlin/pro/fessional/wings/faceless/flywave/impl/DefaultInteractiveManager.kt | trydofor | 195,168,031 | false | {"Java": 3032783, "Kotlin": 199250, "Shell": 58898, "CSS": 36, "HTML": 30} | package pro.fessional.wings.faceless.flywave.impl
import org.slf4j.Logger
import org.slf4j.event.Level
import pro.fessional.wings.faceless.database.helper.DatabaseChecker
import pro.fessional.wings.faceless.flywave.InteractiveManager
import pro.fessional.wings.faceless.util.FlywaveInteractiveTty
import java.util.concu... | 16 | Java | 10 | 87 | 08057f7fdbf474ecf2bf2e7e353a378aeb981200 | 3,207 | professional-wings | Apache License 2.0 |
prime-router/src/test/kotlin/azure/BlobAccessTests.kt | CDCgov | 304,423,150 | false | null | package gov.cdc.prime.router.azure
import assertk.assertThat
import assertk.assertions.isEqualTo
import assertk.assertions.isNotNull
import assertk.fail
import org.junit.jupiter.api.Test
import java.net.MalformedURLException
class BlobAccessTests {
@Test
fun `blob info filename`() {
var filename = Blo... | 829 | Kotlin | 34 | 35 | 2d9551487ce5b352a9043cd677b67ab7711ea509 | 1,019 | prime-reportstream | Creative Commons Zero v1.0 Universal |
app/src/main/java/com/example/gowalk/presentation/MainViewModel.kt | moemaair | 711,874,379 | false | {"Kotlin": 53906} | package com.example.gowalk.presentation
import androidx.compose.runtime.MutableState
import androidx.compose.runtime.State
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
import androidx.compose.ui... | 0 | Kotlin | 0 | 1 | f7ec78165e469a20b9f2f201b472f051d1cf6467 | 613 | Gowalk | MIT License |
examples/src/tl/td/SuggestedAction.kt | andreypfau | 719,064,910 | false | {"Kotlin": 62259} | // This file is generated by TLGenerator.kt
// Do not edit manually!
package tl.td
import io.github.andreypfau.tl.serialization.TLCombinatorId
import kotlin.jvm.JvmName
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import kotlinx.serialization.json.JsonClassDiscriminator
@Serializa... | 0 | Kotlin | 0 | 1 | 11f05ad1f977235e3e360cd6f6ada6f26993208e | 2,330 | tl-kotlin | MIT License |
src/main/kotlin/uk/gov/justice/hmpps/architecture/export/backstage/BackstageExporter.kt | ministryofjustice | 272,753,130 | false | {"Kotlin": 197063, "Shell": 1167} | package uk.gov.justice.hmpps.architecture.export.backstage
import com.fasterxml.jackson.databind.ObjectMapper
import com.fasterxml.jackson.dataformat.yaml.YAMLFactory
import com.fasterxml.jackson.module.kotlin.KotlinModule
import com.structurizr.Workspace
import com.structurizr.model.Container
import com.structurizr.m... | 5 | Kotlin | 3 | 17 | fa0cdff7ca4679a9a5d223b0213a8899d955c057 | 6,289 | hmpps-architecture-as-code | MIT License |
app/src/main/java/com/dfr/weather/domain/repository/implementation/WeatherProviderRemoteRepositoryImpl.kt | danielfranklinr | 784,951,150 | false | {"Kotlin": 65620} | package com.dfr.weather.domain.repository.implementation
import android.content.Context
import com.dfr.weather.data.datasource.WeatherProviderRemoteDatasource
import com.dfr.weather.domain.model.WeatherCityDTO
import com.dfr.weather.domain.model.WeatherDataDTO
import com.dfr.weather.domain.repository.WeatherProviderRe... | 0 | Kotlin | 0 | 0 | ae8efbf4d6e6d03e7f518d42b98d19cc08bffe2d | 1,288 | weather-forecast | Apache License 2.0 |
src/main/kotlin/com/github/pemistahl/lingua/internal/Constant.kt | pemistahl | 157,676,060 | false | null | /*
* Copyright © 2018-today <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 agr... | 8 | null | 47 | 477 | 4ca58ead2d2ce6bad6d85574b7efd5b3ca29aa4b | 6,469 | lingua | Apache License 2.0 |
ARYS/app/src/main/java/org/example/arys/data/Advertisement.kt | tarikkizilcik | 186,050,226 | false | null | package org.example.arys.data
import com.google.android.gms.maps.model.LatLng
import com.google.firebase.firestore.FieldValue
data class Advertisement(
var firmName: String,
var firmLocation: LatLng,
var promotionContent: String,
var promotionDuration: Long,
var timestamp: FieldValue = FieldValue.... | 0 | Kotlin | 0 | 0 | 4a8707aae8935bfb2b46b81f5c429325fbaaa4b3 | 340 | arys | MIT License |
kamp-core/src/main/kotlin/ch/leadrian/samp/kamp/core/api/command/annotation/ErrorHandler.kt | Double-O-Seven | 142,487,686 | false | {"Kotlin": 3854710, "C": 23964, "C++": 23699, "Java": 4753, "Dockerfile": 769, "Objective-C": 328, "Batchfile": 189} | package ch.leadrian.samp.kamp.core.api.command.annotation
import ch.leadrian.samp.kamp.core.api.command.CommandErrorHandler
import kotlin.reflect.KClass
/**
* Defines the [CommandErrorHandler] for the [ch.leadrian.samp.kamp.core.api.command.Commands] class or the command function.
* If no annotation is present, the... | 1 | Kotlin | 1 | 7 | af07b6048210ed6990e8b430b3a091dc6f64c6d9 | 645 | kamp | Apache License 2.0 |
compose-preferences/src/main/java/com/uzential/compose_preferences/data/preferences/BasePreference.kt | ambers-emu | 672,780,455 | false | null | package com.uzential.compose_preferences.data.preferences
import android.content.Context
import androidx.datastore.core.DataStore
import androidx.datastore.preferences.core.Preferences
import com.uzential.compose_preferences.data.Preference
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.distinctUnt... | 0 | Kotlin | 0 | 1 | 8d71ce6365426c6202e4dbbe5f985254be4d8d6a | 910 | ambers | MIT License |
src/main/kotlin/eu/nullstack/kidlike/kyu8/StringRepeat.kt | Kidlike | 156,749,177 | false | null | package eu.nullstack.kidlike.kyu8
/**
* https://www.codewars.com/kata/string-repeat/train/kotlin
*/
fun repeatStr(r: Int, str: String): String = str.repeat(r)
| 2 | null | 1 | 1 | 185b5c7048878ab3891e5c21cad5464817f6c62e | 162 | codewars | The Unlicense |
daemon/src/main/kotlin/dev/krud/boost/daemon/utils/_constants.kt | krud-dev | 576,882,508 | false | null | package dev.krud.boost.daemon.utils
const val DEFAULT_COLOR = "inherited"
const val ACTUATOR_REDACTED_STRING = "******"
/* Time constants */
const val ONE_SECOND = 1000L
const val ONE_MINUTE = 60 * ONE_SECOND
const val ONE_HOUR = 60 * ONE_MINUTE
const val ONE_DAY = 24 * ONE_HOUR
const val ONE_WEEK = 7 * ONE_DAY
con... | 41 | TypeScript | 6 | 251 | 1f3db028ac7d60faa6c30daabbb41482e814d23f | 386 | ostara | Apache License 2.0 |
fxgl/src/test/kotlin/com/almasb/fxgl/dsl/components/EffectComponentTest.kt | AlmasB | 32,761,091 | false | null | /*
* FXGL - JavaFX Game Library. The MIT License (MIT).
* Copyright (c) AlmasB (<EMAIL>).
* See LICENSE for details.
*/
package com.almasb.fxgl.entity
import com.almasb.fxgl.app.FXGL
import com.almasb.fxgl.app.FXGLMock
import com.almasb.fxgl.entity.component.TimeComponent
import com.almasb.fxgl.entity.control.Eff... | 138 | null | 546 | 4,315 | c0eaf4b0af29cf062867a37f3424a4ac37e8dcca | 3,454 | FXGL | MIT License |
TestApp/src/main/java/com/see/component/FragmentD.kt | XiaoSeee | 107,637,882 | false | null | package com.see.component
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import com.alibaba.android.arouter.facade.annotation.Route
/**
* @author by <EMAIL> on 2020/11/19.
*/
@Route(path = "/app/fragment/d")
cl... | 0 | Kotlin | 1 | 0 | 37e2397cf590d0f418f9f07bd9e95c6b8c02a513 | 808 | SeeComponent | Apache License 2.0 |
DessertClicker-Starter/app/src/main/java/com/example/android/dessertclicker/ClickerApplication.kt | ngstyle | 311,285,352 | true | {"Kotlin": 419330} | package com.example.android.dessertclicker
import android.app.Application
import timber.log.Timber
/**
* Created by chon on 2020/11/9.
* Hedge.
*/
class ClickerApplication: Application() {
override fun onCreate() {
super.onCreate()
Timber.plant(Timber.DebugTree())
}
} | 0 | Kotlin | 0 | 0 | d65e2259303db56cff11c04e61edd31f2aa8783c | 298 | android-kotlin-fundamentals-starter-apps | Apache License 2.0 |
clikt/src/jvmMain/kotlin/com/github/ajalt/clikt/output/CliktConsoleJVM.kt | ajalt | 128,975,548 | false | null | package com.github.ajalt.clikt.output
import java.io.Console
import java.io.IOException
class InteractiveCliktConsole(private val console: Console) : CliktConsole {
override fun promptForLine(prompt: String, hideInput: Boolean) = when {
hideInput -> console.readPassword(prompt)?.let { String(it) }
... | 18 | Kotlin | 112 | 2,125 | 4c6437bbcec237c018cbf74617ac1086b694be19 | 1,267 | clikt | Apache License 2.0 |
app/src/main/java/com/ksnk/radio/base/BaseViewModel.kt | Ksnk-dm | 482,930,083 | false | null | package com.ksnk.radio.base
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
open class BaseViewModel : ViewModel() {
private val loadingStatus: MutableLiveData<Boolean> = MutableLiveData()
@JvmName("getLoadingStatus1")
fun getLoadingStatus(): MutableLiveData<Boolean>? {
... | 2 | Kotlin | 1 | 0 | eee36f663a8165d0769ae60243afee0a0b068035 | 352 | Radio | Apache License 2.0 |
app/src/main/java/com/ryz/coffee/user/fragment/order/tab/tab3/SentAdapter.kt | MhmmdRFadhil | 389,970,934 | false | null | package com.ryz.coffee.user.fragment.order.tab.tab3
import android.util.Log
import android.view.*
import android.widget.Button
import android.widget.ImageView
import android.widget.TextView
import android.widget.Toast
import androidx.recyclerview.widget.RecyclerView
import com.google.firebase.auth.FirebaseAuth
import ... | 0 | Kotlin | 1 | 0 | ab74247f8cd5207c92239365dc86c93a3bfd3b67 | 5,999 | Coffee-Shop-App | MIT License |
music/player/src/main/kotlin/dev/schlaubi/mikmusic/autocomplete/YouTubeAutoComplete.kt | DRSchlaubi | 409,332,765 | false | {"Kotlin": 340065, "Java": 5426, "Dockerfile": 201, "Shell": 197, "PowerShell": 96} | package dev.schlaubi.mikmusic.autocomplete
const val AUTOCOMPLETE_QUERY_OPTION = "query"
| 16 | Kotlin | 12 | 36 | b55964735b109ae3e4dba4f34621bbabaf256e1b | 90 | mikbot | MIT License |
core/src/jsMain/kotlin/com/huanshankeji/js/commonjs/Require.kt | huanshankeji | 407,303,262 | false | {"Kotlin": 95484} | package com.huanshankeji.js.commonjs
// see: https://stackoverflow.com/questions/40270731/what-does-require-actually-return-the-file-or-the-function#:~:text=The%20require(...),case%20its%20the%20Profile%20function.
external fun require(module: String): dynamic
| 4 | Kotlin | 0 | 5 | d552d73f8db2596049491158557267540bbf7dab | 262 | kotlin-common | Apache License 2.0 |
app/src/main/java/com/hbs/newfaceproject02/Utils/MakeUserDb.kt | ggujangi | 263,495,236 | false | null | package com.hbs.newfaceproject02.Utils
import android.app.Activity
import android.content.Context
import android.content.Intent
import com.google.firebase.auth.FirebaseAuth
import com.google.firebase.database.DataSnapshot
import com.google.firebase.database.DatabaseError
import com.google.firebase.database.FirebaseDat... | 0 | Kotlin | 0 | 0 | f7bd5c9cf75a8e7a9e6bc91ff534d753a6b2d279 | 3,443 | ggu.kisa-2018 | Apache License 2.0 |
src/main/kotlin/com/kraktun/servilio/explorer/FileAnalyzer.kt | Kraktun | 199,174,398 | false | null | package com.kraktun.servilio.explorer
import java.io.BufferedInputStream
import java.io.File
import java.security.MessageDigest
import java.security.DigestInputStream
import java.io.FileInputStream
import java.nio.file.Files
/**
* Get MD5 of file and stop to calculate hash at target size.
* @param file file. Must b... | 0 | Kotlin | 0 | 0 | eac76104e45de9fb3ef86332b7f90572b6aa70f6 | 1,956 | Servilio | MIT License |
app/src/androidTest/java/nic/goi/aarogyasetu/views/HomeActivityTest.kt | niharika2810 | 288,159,939 | false | null | package nic.goi.aarogyasetu.views
import android.accessibilityservice.AccessibilityService
import android.content.Intent
import androidx.test.espresso.Espresso
import androidx.test.espresso.action.ViewActions
import androidx.test.espresso.assertion.ViewAssertions
import androidx.test.espresso.intent.Intents
import and... | 0 | null | 2 | 3 | b81f31a4a1e1c7c20159a608fc305de402deff4b | 2,355 | AarogyaSetu_Android | Apache License 2.0 |
core/src/main/java/com/costular/atomtasks/core/di/DispatcherProviderModule.kt | costular | 379,913,052 | false | {"Kotlin": 603365, "HTML": 7918} | package com.costular.atomtasks.core.di
import com.costular.atomtasks.core.net.AppDispatcherProvider
import com.costular.atomtasks.core.net.DispatcherProvider
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
@Module
@InstallIn(SingletonComponent:... | 0 | Kotlin | 0 | 9 | 2bb2e9e09d515d583711c857e5e5e3e862ee1393 | 461 | atom-tasks | Apache License 2.0 |
app/src/main/java/com/wisnu/kurniawan/wallee/features/account/detail/ui/AccountDetailScreen.kt | wisnukurniawan | 502,203,866 | false | {"Kotlin": 546472} | package com.wisnu.kurniawan.wallee.features.account.detail.ui
import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.gestures.detectTapGestures
import androidx.compose.foundation.interaction.MutableIn... | 11 | Kotlin | 17 | 168 | 0076eebb25846bbab772accfb2a4e49ffa7be3d5 | 13,522 | Compose-Expense | Apache License 2.0 |
src/Sibnet.kt | SkyfaceD | 360,674,733 | false | null | import java.net.HttpURLConnection
import java.net.URL
import javax.net.ssl.HttpsURLConnection
/**
* Connect to passed [stringUrl] and return valid url if redirect found.
*
* @return
* entry url if [stringUrl] host not sibnet.ru or if status code [HttpURLConnection.HTTP_OK],
* null if location header not found or ... | 0 | Kotlin | 0 | 0 | 89dc2814ace22fb9af5b469503e6831b4037c585 | 1,195 | shikimori-embed-urls | MIT License |
server/src/main/kotlin/io/rsbox/server/net/login/LoginDecoder.kt | mediapastor | 244,746,327 | true | {"Kotlin": 192300} | package io.rsbox.server.net.login
import io.netty.buffer.ByteBuf
import io.netty.buffer.Unpooled
import io.netty.channel.ChannelFutureListener
import io.netty.channel.ChannelHandlerContext
import io.rsbox.server.Launcher
import io.rsbox.api.ServerResultType
import io.rsbox.server.net.StatefulFrameDecoder
import io.rsb... | 0 | null | 0 | 0 | 5e201539f9ef598067040bc370689c31493bc400 | 7,760 | rsbox | MIT License |
common-lint-test/src/main/kotlin/team/duckie/quackquack/common/lint/test/util/runIf.kt | duckie-team | 523,387,054 | false | null | /*
* Designed and developed by Duckie Team, 2022
*
* Licensed under the MIT.
* Please see full license: https://github.com/duckie-team/quack-quack-android/blob/master/LICENSE
*/
@file:Suppress("unused")
package team.duckie.quackquack.common.lint.test.util
/**
* [condition] 이 참이면 [run] 을 실행합니다.
*
* @param con... | 8 | Kotlin | 4 | 33 | 1b024100a4a51f588ade982ce564ba8e53cfbb17 | 846 | quack-quack-android | MIT License |
src/main/kotlin/org/cryptobiotic/eg/decrypt/DecryptingTrusteeIF.kt | JohnLCaron | 760,153,500 | false | {"Kotlin": 1060239, "C": 26235} | package org.cryptobiotic.eg.decrypt
import org.cryptobiotic.eg.core.*
/** The interface to a DecryptingTrustee. */
interface DecryptingTrusteeIF {
/** Guardian id. */
fun id(): String
/** Guardian x coordinate */
fun xCoordinate(): Int
/** The guardian's public key = K_i. */
fun guardianP... | 16 | Kotlin | 0 | 0 | adb818bd5886f36d0568ec3184b5bfce04d2ceda | 1,080 | egk-ec | MIT License |
src/main/kotlin/uy/kohesive/elasticsearch/dataimport/AlgoliaDataImportHandler.kt | shockwavemk | 176,933,128 | true | {"Kotlin": 56038, "Java": 980} | package uy.kohesive.elasticsearch.dataimport
import com.algolia.search.APIClient
import com.algolia.search.ApacheAPIClientBuilder
import com.fasterxml.jackson.module.kotlin.readValue
import org.apache.spark.TaskContext
import org.apache.spark.sql.Dataset
import org.apache.spark.sql.Row
import org.apache.spark.sql.type... | 0 | Kotlin | 0 | 0 | 029412ffef2169a34a80ce7b516e019687238c0b | 5,326 | elasticsearch-data-import-handler | Apache License 2.0 |
app/src/main/java/com/simples/j/worldtimealarm/support/ColorGridAdapter.kt | Hot6ix | 125,185,241 | false | null | package com.simples.j.worldtimealarm.support
import android.content.Context
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Button
import androidx.constraintlayout.widget.ConstraintLayout
import androidx.recyclerview.widget.RecyclerView
import com.simples... | 3 | null | 1 | 6 | a628de6e447cbd2460d7a80f6416040c97c6d895 | 2,240 | WorldTimeAlarm | Apache License 2.0 |
mbmobilesdk/src/main/java/com/daimler/mbmobilesdk/serviceactivation/precondition/ServicePreconditionType.kt | rafalzawadzki | 208,997,288 | true | {"Kotlin": 1297852, "Groovy": 4489} | package com.daimler.mbmobilesdk.serviceactivation.precondition
import com.daimler.mbmobilesdk.serviceactivation.views.FieldResolvable
sealed class ServicePreconditionType :
MissingFieldCreatable,
PreconditionInputResolvable {
class SignUserAgreement : ServicePreconditionType() {
override fun res... | 0 | null | 0 | 0 | 1a924f70fbde5d731cdfde275e724e6343ee6ebe | 4,231 | MBSDK-Mobile-Android | MIT License |
BootMybatis/src/main/kotlin/com/lv/config/druid/DruidConfiguration.kt | lvtanxi | 84,889,161 | false | {"Java": 125404, "Kotlin": 33946, "CSS": 24488, "Shell": 21174, "Batchfile": 15018, "HTML": 11500, "JavaScript": 10247} | package com.lv.config.druid
import com.alibaba.druid.pool.DruidDataSource
import com.alibaba.druid.support.http.StatViewServlet
import com.alibaba.druid.support.http.WebStatFilter
import org.springframework.boot.context.properties.ConfigurationProperties
import org.springframework.boot.web.servlet.FilterRegistrationBe... | 1 | null | 1 | 1 | eee69d7a5d141143acb1057fb8c074837ea9ac45 | 3,829 | Study | Apache License 2.0 |
ktor/koin-ktor/src/main/kotlin/org/koin/ktor/plugin/KoinPlugin.kt | InsertKoinIO | 93,515,203 | false | null | /*
* Copyright 2017-2019 the original author or authors.
*
* 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 ap... | 79 | Kotlin | 634 | 8,170 | 31af085fe1f68c9029bff1d2863ec160913b0f5a | 1,703 | koin | Apache License 2.0 |
app/src/test/java/com/shokworks/shokworksdemo/data/repository/NewsRepositoryImplTest.kt | hdlm | 514,979,991 | false | {"Kotlin": 113614} | package com.shokworks.shokworksdemo.data.repository
import com.shokworks.shokworksdemo.di.Modules
import org.junit.After
import org.junit.Before
import org.koin.core.component.inject
import org.junit.Test
import org.koin.android.ext.koin.androidLogger
import org.koin.core.component.KoinComponent
import org.koin.core.c... | 0 | Kotlin | 0 | 0 | edb3744614b0b9ac1bfa4b743d71b83a64bbbb83 | 1,171 | newsviewer | MIT License |
Frontend/Android/app/src/main/java/com/team03/cocktailrecipesapp/ui/login/LoggedInUserView.kt | sw21-tug | 360,055,070 | true | {"Kotlin": 112063, "JavaScript": 14290, "Java": 627, "Dockerfile": 173, "Shell": 139} | package com.team03.cocktailrecipesapp.ui.login
import android.content.SharedPreferences
/**
* User details post authentication that is exposed to the UI
*/
public class LoggedInUserView(
//val sharedPreferences: SharedPreferences = this.sharedPreferences(String)
//... other data fields that may be accessible... | 3 | Kotlin | 8 | 0 | 1ed95e56d5587bd397049b20300980635128ff91 | 333 | Team_03 | MIT License |
app/src/main/java/me/rerere/tension/TensionApp.kt | re-ovo | 466,048,649 | false | {"Kotlin": 41958} | package me.rerere.tension
import android.app.Application
import android.content.Context
import me.rerere.tension.di.networkModule
import me.rerere.tension.di.viewModelModule
import org.koin.android.ext.koin.androidContext
import org.koin.android.ext.koin.androidLogger
import org.koin.core.context.startKoin
class Tens... | 0 | Kotlin | 1 | 11 | d10f554fd749e6aa8985567d7cfe178c41d6779f | 882 | Tension | Apache License 2.0 |
sykepenger-api/src/main/kotlin/no/nav/helse/spleis/graphql/dto/GraphQLTidslinjeperiode.kt | navikt | 193,907,367 | false | null | package no.nav.helse.spleis.graphql.dto
import com.apurebase.kgraphql.schema.dsl.SchemaBuilder
import com.fasterxml.jackson.annotation.JsonTypeInfo
import java.time.LocalDate
import java.time.LocalDateTime
import java.util.UUID
import no.nav.helse.serde.api.dto.Utbetalingtype
internal fun SchemaBuilder.tidslinjeperio... | 2 | Kotlin | 6 | 5 | a1d4ace847a123e6bf09754ea0640116caf6ceb7 | 8,155 | helse-spleis | MIT License |
feature-account-impl/src/main/java/com/dfinn/wallet/feature_account_impl/presentation/exporting/json/password/di/ValidationsModule.kt | finn-exchange | 500,972,990 | false | null | package com.dfinn.wallet.feature_account_impl.presentation.exporting.json.password.di
import dagger.Module
import dagger.Provides
import dagger.multibindings.IntoSet
import com.dfinn.wallet.common.di.scope.ScreenScope
import com.dfinn.wallet.common.validation.from
import com.dfinn.wallet.feature_account_impl.domain.ac... | 0 | Kotlin | 0 | 0 | 6cc7a0a4abb773daf3da781b7bd1dda5dbf9b01d | 1,019 | dfinn-android-wallet | Apache License 2.0 |
modules/debug_menu/src/main/kotlin/kekmech/ru/debug_menu/presentation/navigation/BackStackRootNode.kt | tonykolomeytsev | 203,239,594 | false | null | package kekmech.ru.mpeiapp.demo
import androidx.compose.runtime.Composable
import androidx.compose.runtime.CompositionLocalProvider
import androidx.compose.runtime.remember
import androidx.compose.ui.Modifier
import com.bumble.appyx.core.composable.Children
import com.bumble.appyx.core.modality.BuildContext
import com... | 19 | Kotlin | 4 | 28 | 6140acd24b25a21820341cc741105ad5cb8d592f | 1,618 | mpeiapp | MIT License |
app/src/main/java/com/example/yinyuetaiplaykt/net/NetManager.kt | swordman20 | 326,163,061 | false | null | package com.example.yinyuetaiplaykt.net
import com.example.yinyuetaiplaykt.util.ThreadUtil
import okhttp3.*
import java.io.IOException
/**
* author : hades
* date : 2021/1/3
* desc :发送网络请求的类
* 使用单例模式
*/
class NetManager private constructor() {
private val client by lazy { OkHttpClient() } //初... | 0 | Kotlin | 0 | 0 | 9433c85b01f974824a9b4eef512dd0a35be6007b | 1,275 | YinYueTaiPlayKT | Apache License 2.0 |
idea/testData/intentions/branched/ifThenToElvis/conditionNotBinaryExpr.kt | chashnikov | 44,854,854 | true | {"Java": 14526655, "Kotlin": 6831811, "JavaScript": 897073, "Groovy": 43935, "CSS": 14421, "Shell": 9248} | // IS_APPLICABLE: false
// ERROR: <html>Type mismatch.<table><tr><td>Required:</td><td>kotlin.Boolean</td></tr><tr><td>Found:</td><td>kotlin.Int</td></tr></table></html>
// ERROR: Condition must be of type kotlin.Boolean, but is of type kotlin.Int
// ERROR: Infix call corresponds to a dot-qualified call 'foo.times(10)'... | 0 | Java | 0 | 1 | 88a261234860ff0014e3c2dd8e64072c685d442d | 549 | kotlin | Apache License 2.0 |
src/main/kotlin/modelo/Objetivo/ObjetivoConquistar.kt | joaqogomez | 646,572,458 | false | null | package modelo.Objetivo
import modelo.Batalla.Pais
import modelo.JuegoYJugador.Jugador
import java.util.*
class ObjetivoConquistar(var primario: Continente,var secundario: Continente,var cantidadAConquistarSecundario : Int) : Objetivo {
private fun contadorDePaisesSecundarios(paises: ArrayList<Pais>): Int {
... | 0 | Kotlin | 0 | 0 | 3af2d91168053940f8e9e52994da958a782bb9e8 | 1,039 | 75.31-TDL | MIT License |
guides/micronaut-error-handling/kotlin/src/main/kotlin/example/micronaut/MessageSource.kt | micronaut-projects | 326,986,278 | false | null | /*
* Copyright 2017-2024 original authors
*
* 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 agr... | 209 | null | 31 | 36 | 9f04eb978f4882e883adffb6c95d6a6928d79b29 | 1,115 | micronaut-guides | Creative Commons Attribution 4.0 International |
feature/schedule/src/main/kotlin/rt/cccl/schedule/ui/track/01_SimpleTrackComposables.kt | queencodemonkey | 840,896,614 | false | {"Kotlin": 195780} | /*
* MIT License
*
* Copyright (c) 2024 Randomly Typing
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, ... | 0 | Kotlin | 0 | 1 | 1ad60898776b6bfa8a92bfaa59199ac0c3e741ff | 17,371 | creating-custom-compose-layouts | MIT License |
app/src/main/java/am/falconry/quote/interventions/QuoteInterventionsViewModel.kt | AlbericMartel | 249,507,809 | false | null | package am.falconry.quote.interventions
import am.falconry.database.quote.QuoteRepository
import androidx.lifecycle.ViewModel
import kotlinx.coroutines.*
import java.time.LocalDate
class QuoteInterventionsViewModel(
quoteId: Long,
date: LocalDate,
private val quoteRepository: QuoteRepository
) : ViewModel... | 5 | Kotlin | 0 | 0 | d9452442e39aac7e3a77524045b18db31eafc447 | 956 | falconery | MIT License |
app/src/main/kotlin/io/getstream/android/video/chat/compose/ui/join/CallJoinViewModel.kt | GetStream | 792,097,214 | false | null | /*
* Copyright (c) 2014-2023 Stream.io Inc. All rights reserved.
*
* Licensed under the Stream License;
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://github.com/GetStream/stream-video-android/blob/main/LICENSE
*
* Unless required by ... | 8 | null | 8 | 73 | e358f24f4e356df9ddb8dc2d74a1d38fa118f41a | 4,631 | android-video-chat | Apache License 2.0 |
data/src/main/java/co/nimblehq/data/api/response/survey/SurveyDetailsResponse.kt | minhnimble | 295,922,281 | false | {"Gemfile.lock": 1, "Gradle": 6, "Java Properties": 2, "YAML": 1, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 4, "Ruby": 2, "Proguard": 2, "XML": 90, "XSLT": 1, "JSON": 5, "Kotlin": 185, "INI": 1, "Java": 2} | package co.nimblehq.data.api.response.survey
import com.squareup.moshi.Json
import moe.banana.jsonapi2.HasMany
import moe.banana.jsonapi2.JsonApi
import moe.banana.jsonapi2.Resource
@JsonApi(type = "survey")
data class SurveyDetailsResponse(
@field: Json(name = "title") var title: String? = null,
@field: Json... | 1 | null | 1 | 1 | 98266e2455f5f5c5f532830faab19402e56e71cc | 640 | internal-certification-surveys-android | MIT License |
core/network/src/main/java/com/yapp/moa/network/service/gifticon/response/GifticonCountResponse.kt | Team-BuddyCon | 668,488,769 | false | {"Kotlin": 448366} | package com.yapp.moa.network.service.gifticon.response
data class GifticonCountResponse(
val status: Int,
val message: String,
val body: GifticonCountResponseBody
)
data class GifticonCountResponseBody(
val count: Int
)
| 4 | Kotlin | 0 | 2 | 820edec5c0572cfb20f75c83860d5c98f294f6f9 | 238 | MOA | Apache License 2.0 |
module-server/src/main/kotlin/de/twomartens/timetable/bahnApi/model/db/BahnTimetable.kt | 2martens | 710,476,767 | false | {"Kotlin": 125409, "HTML": 2568} | package de.twomartens.timetable.bahnApi.model.db
import de.twomartens.timetable.bahnApi.model.Eva
import de.twomartens.timetable.bahnApi.model.dto.BahnStationStop
import de.twomartens.timetable.types.HourAtDay
import de.twomartens.timetable.types.NonEmptyString
import org.bson.types.ObjectId
import org.springframework... | 0 | Kotlin | 0 | 0 | e0e793ae1e70ea27dae9d909ced0e980d649844d | 1,080 | tsw-timetable | Apache License 2.0 |
src/me/anno/remsstudio/objects/particles/ParticleState.kt | AntonioNoack | 266,471,164 | false | null | package me.anno.objects.particles
import org.joml.Vector3f
// could be encapsulated into joint vectors for probably better performance
data class ParticleState(
val position: Vector3f,
val dPosition: Vector3f,
val rotation: Vector3f,
val dRotation: Vector3f
) | 0 | Kotlin | 1 | 8 | e5f0bb17202552fa26c87c230e31fa44cd3dd5c6 | 277 | RemsStudio | Apache License 2.0 |
compiler/testData/cli/jvm/firErrorOnLastLine.kt | JetBrains | 3,432,266 | false | null | val x = this
val y = this // EOL AFTER THIS LINE!
| 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 50 | kotlin | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.