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
integration-tests/devtools/src/test/resources/__snapshots__/RESTClientCodestartTest/testContent/src_main_kotlin_ilove_quark_us_MyRemoteService.kt
loicmathieu
187,598,844
false
null
package ilove.quark.us import org.eclipse.microprofile.rest.client.inject.RegisterRestClient import javax.ws.rs.GET import javax.ws.rs.Path import javax.ws.rs.QueryParam /** * To use it via injection. * * {@code * @Inject * @RestClient * lateinit var myRemoteService: MyRemoteService * * fun do...
15
null
1
3
f29b28887af4b50e7484dd1faf252b15f1a9f61a
773
quarkus
Apache License 2.0
buildSrc/src/main/kotlin/com/luggsoft/codegen/generators/TupleCodeGenerator.kt
dan-lugg
403,679,356
false
{"Kotlin": 79335}
package com.luggsoft.codegen.generators import com.luggsoft.codegen.util.toTypes internal class TupleCodeGenerator( override val path: String, override val permutations: Int, ) : CodeGeneratorBase() { override fun generateCode(appendable: Appendable) { appendable.appendLine("@file:Suppress(\"P...
0
Kotlin
0
0
302dab250706204e91a998c31b70fe411eb28296
2,560
kt-common
MIT License
domain/src/main/java/com/mynimef/domain/AppRepository.kt
MYnimef
637,497,996
false
{"Kotlin": 266286}
package com.mynimef.domain import com.mynimef.domain.models.AccountModel import com.mynimef.domain.models.EAppState import com.mynimef.domain.models.ERole class AppRepository( private val storageRoot: IAppStorageRoot, private val networkRoot: IAppNetworkRoot ) { fun getAppState() = storageRoot.getAppStat...
0
Kotlin
1
0
7980d53f3605bbca6d89af6113297a89f5bf057e
1,288
FoodMood-Android
MIT License
app/src/main/java/xyz/teamgravity/dictionary/data/remote/dto/DefinitionDto.kt
raheemadamboev
466,416,651
false
{"Kotlin": 24032}
package xyz.teamgravity.dictionary.data.remote.dto import com.google.gson.annotations.SerializedName import xyz.teamgravity.dictionary.domain.model.DefinitionModel data class DefinitionDto( @SerializedName("antonyms") val antonyms: List<String>, @SerializedName("definition") val definition: String, @Seri...
0
Kotlin
0
0
c405fd8d19f45a32be785e8d9a26ef6e08569ea9
656
dictionary
Apache License 2.0
app/src/main/java/com/harunkor/motionmonitorapp/domain/usecase/move/AddMove.kt
harunkor
507,013,101
false
null
package com.harunkor.motionmonitorapp.domain.usecase.move import com.harunkor.motionmonitorapp.domain.model.MoveEntity import com.harunkor.motionmonitorapp.domain.repository.MoveRepository class AddMove(private val moveRepository: MoveRepository) { operator fun invoke(moveEntity: MoveEntity) = moveRepository.addM...
0
Kotlin
0
1
1fc0c8ff860a8f6ce40febe0235ddf4fb33c8877
337
MotionMonitorIceHockeyApp
The Unlicense
buildSrc/src/main/kotlin/korlibs/korge/gradle/util/MD5.kt
korlibs
80,095,683
false
{"Kotlin": 4210038, "C": 105670, "C++": 20878, "HTML": 3853, "Swift": 1371, "JavaScript": 1068, "Shell": 439, "CMake": 202, "Batchfile": 41, "CSS": 33}
package korlibs.korge.gradle.util import java.security.* fun ByteArray.md5String(): String { return MessageDigest.getInstance("MD5").digest(this).hex }
464
Kotlin
123
2,497
1a565007ab748e00a4d602fcd78f7d4032afaf0b
155
korge
Apache License 2.0
app/src/main/java/com/adityagupta/gdsc_nie/presentation/main/home/events/details/EventDetailsViewModel.kt
yat2k
415,939,124
true
{"Kotlin": 30019}
package com.adityagupta.gdsc_nie.presentation.main.home.events.details import androidx.lifecycle.ViewModel import androidx.lifecycle.liveData import com.adityagupta.gdsc_nie.domain.repository.EventDetailsRepository import dagger.hilt.android.lifecycle.HiltViewModel import kotlinx.coroutines.Dispatchers import javax.in...
0
Kotlin
0
0
a0f35eafbbcce7e945d25d5afb7d775dec0495cd
602
GDSC-NIE-Android
MIT License
app/src/main/kotlin/sakura/felica/felicahistory/EdyHistory.kt
ayatk
114,255,745
false
null
package sakura.felica.felicahistory /** * Edy履歴コード * 参考:http://jennychan.web.fc2.com/format/edy.html */ class EdyHistory { private var remain: Int = 0 private fun init(res: ByteArray, off: Int) { this.remain = toInt(res, off, 12, 13, 14, 15) //12-15: Edy残高 } private fun toInt(res: ByteArray, off: Int...
0
Kotlin
1
8
2ef3ec8e3ac8f95bef4db0f108f06fb0286fa006
703
FeliCaReader
MIT License
app/src/main/java/com/davipviana/chat/adapter/MessageAdapter.kt
davipviana
158,010,139
false
null
package com.davipviana.chat.adapter import android.content.Context import android.graphics.Color import android.support.v7.widget.RecyclerView import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import android.widget.ImageView import android.widget.TextView import com.davipviana.c...
0
Kotlin
0
0
4f22454fea3973ff56f0ebe1c672513df14bdcfd
1,873
chat-app
Apache License 2.0
src/main/kotlin/classiccsproblemskotlin/chapter2/Node.kt
nielsutrecht
327,268,239
false
{"Java": 172624, "Kotlin": 32198}
package classiccsproblemskotlin.chapter2 data class Node<T> ( val state: T, var parent: Node<T>?, var cost: Double = 0.0, val heuristic: Double = 0.0) : Comparable<Node<T>> { override fun compareTo(other: Node<T>): Int = (cost + heuristic).compareTo(other.cost + other.heuri...
1
null
1
1
30119ab5ecdb64d90e99e68a05fec9530a0dedc0
565
classiccsproblemskotlin
Apache License 2.0
api/src/commonMain/kotlin/lexi/LogStatus.kt
aSoft-Ltd
592,348,487
false
{"Kotlin": 43591}
package lexi enum class LogStatus { Started, Progressing, Passed, Failed }
0
Kotlin
0
0
6b78ddd6d3c5d860aa26016bf0d801e0b8c653be
79
lexi
MIT License
jupyter-lib/shared-compiler/src/main/kotlin/org/jetbrains/kotlinx/jupyter/messaging/comms/CommManagerInternal.kt
Kotlin
63,066,291
false
{"Kotlin": 924138, "JavaScript": 40044, "CSS": 16243, "Python": 14915, "Jupyter Notebook": 1290, "Shell": 74}
package org.jetbrains.kotlinx.jupyter.messaging.comms import org.jetbrains.kotlinx.jupyter.api.libraries.Comm import org.jetbrains.kotlinx.jupyter.api.libraries.CommManager import org.jetbrains.kotlinx.jupyter.messaging.CommClose import org.jetbrains.kotlinx.jupyter.messaging.CommMsg import org.jetbrains.kotlinx.jupyt...
71
Kotlin
108
1,034
9ba6d0009410c307f5b150483a9fb7a560cd577c
640
kotlin-jupyter
Apache License 2.0
composeApp/src/commonMain/kotlin/daily/GetDailyPokemon.kt
numq
785,492,262
false
{"Kotlin": 119523, "Swift": 594, "HTML": 304}
package daily import kotlinx.datetime.Clock import kotlinx.datetime.TimeZone import kotlinx.datetime.atStartOfDayIn import kotlinx.datetime.todayIn import pokemon.Pokemon import pokemon.PokemonRepository import usecase.UseCase import kotlin.random.Random class GetDailyPokemon( private val repository: PokemonRepos...
0
Kotlin
0
1
ed71deadb6b169effa8a59e61938eec122494973
736
reduce-and-conquer
MIT License
pillarbox-core-business/src/main/java/ch/srgssr/pillarbox/core/business/tracker/commandersact/CommandersActTracker.kt
SRGSSR
519,157,987
false
null
/* * Copyright (c) SRG SSR. All rights reserved. * License information is available from the LICENSE file. */ package ch.srgssr.pillarbox.core.business.tracker.commandersact import androidx.media3.exoplayer.ExoPlayer import ch.srgssr.pillarbox.analytics.commandersact.CommandersAct import ch.srgssr.pillarbox.player....
24
null
1
9
7209750736a47157f22dd939a17750d649172f0a
2,293
pillarbox-android
MIT License
formats/json-tests/commonTest/src/kotlinx/serialization/json/JsonModesTest.kt
Kotlin
97,827,246
false
null
/* * Copyright 2017-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. */ package kotlinx.serialization.json import kotlinx.serialization.* import kotlinx.serialization.test.* import kotlin.test.* class JsonModesTest : JsonTestBase() { @Test fun testNan() = parametrizedTe...
407
null
621
5,396
d4d066d72a9f92f06c640be5a36a22f75d0d7659
4,029
kotlinx.serialization
Apache License 2.0
src/main/kotlin/com/example/mediasamplekotlin/repositories/UserRepository.kt
pi0ne
165,431,884
false
{"Kotlin": 13146, "HTML": 3745}
package com.example.mediasamplekotlin.repositories import com.example.mediasamplekotlin.entities.User import org.springframework.data.jpa.repository.JpaRepository import org.springframework.stereotype.Repository @Repository interface UserRepository : JpaRepository<User, Long> { fun findByEmail(email: String): Use...
0
Kotlin
0
0
f450e4e5870078c2cdc34e231cd7575e2164f7c2
324
media-sample-kotlin
MIT License
px-checkout/src/main/java/com/mercadopago/android/px/internal/repository/PayerPaymentMethodRepository.kt
mercadopago
49,529,486
false
null
package com.mercadopago.android.px.internal.repository import com.mercadopago.android.px.model.CustomSearchItem internal interface PayerPaymentMethodRepository : LocalRepository<List<@kotlin.jvm.JvmSuppressWildcards CustomSearchItem>> { operator fun get(key: PayerPaymentMethodKey): CustomSearchItem? operator ...
38
null
69
94
f5cfa00ea5963f9153a237c3f329af5d2d6cd87f
418
px-android
MIT License
designsystem/src/main/java/com/ccc/ncs/designsystem/theme/Theme.kt
moonggae
810,632,720
false
{"Kotlin": 391495, "HTML": 262870}
package com.ccc.ncs.designsystem.theme import androidx.compose.foundation.isSystemInDarkTheme import androidx.compose.material3.MaterialTheme import androidx.compose.material3.darkColorScheme import androidx.compose.material3.lightColorScheme import androidx.compose.runtime.Composable private val DarkColorScheme = da...
1
Kotlin
0
0
fcb8793e3d07314c071ac5d215ca5a2adbea552d
1,687
NoCopyrightSounds-Android
X11 License
app/src/main/java/com/dede/android_eggs/util/TextViewExt.kt
hushenghao
306,645,388
false
null
package com.dede.android_eggs.util import android.graphics.drawable.ColorDrawable import android.graphics.drawable.Drawable import android.widget.TextView private val defaultCompoundDrawable = ColorDrawable(0) fun TextView.updateCompoundDrawablesRelative( start: Drawable? = defaultCompoundDrawable, top: Draw...
3
null
6
626
e1874513fbf03f7b1fbb2c89ce093dc97728e162
834
AndroidEasterEggs
Apache License 2.0
ktorfit-lib-common/src/commonMain/kotlin/de/jensklingenberg/ktorfit/converter/request/CoreResponseConverter.kt
Foso
203,655,484
false
null
package de.jensklingenberg.ktorfit.converter.request import de.jensklingenberg.ktorfit.internal.TypeData public interface CoreResponseConverter { /** * Check if this converter supports the return type * @param typeData is the typeData of the outer type of * the return type. e.g. for Flow<String> i...
21
null
25
985
77bdb11430e2c787eb69e3c48780eea99e8a75b4
449
Ktorfit
Apache License 2.0
idea/tests/test/org/jetbrains/kotlin/idea/quickfix/quickfixTestUtils.kt
JetBrains
278,369,660
false
null
/* * Copyright 2010-2019 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ package org.jetbrains.kotlin.idea.quickfix.utils import java.io.File fun findInspectionFile(startDir: File):...
0
Kotlin
30
82
cc81d7505bc3e9ad503d706998ae8026c067e838
610
intellij-kotlin
Apache License 2.0
app/src/main/java/com/flixclusive/data/repository/WatchlistRepositoryImpl.kt
rhenwinch
659,237,375
false
null
package com.flixclusive.data.repository import com.flixclusive.data.database.watchlist.WatchlistDao import com.flixclusive.di.IoDispatcher import com.flixclusive.domain.model.entities.WatchlistItem import com.flixclusive.domain.repository.WatchlistRepository import kotlinx.coroutines.CoroutineDispatcher import kotlinx...
2
Kotlin
2
18
2eef4c82655294eb3b277c00b3d8f7bea3f6961e
1,391
Flixclusive
MIT License
app/src/main/java/ru/n08i40k/polytechnic/next/ui/auth/TrySignUp.kt
N08I40K
857,687,777
false
{"Kotlin": 240310}
package ru.n08i40k.polytechnic.next.ui.auth import android.content.Context import com.android.volley.ClientError import com.android.volley.NoConnectionError import com.android.volley.TimeoutError import com.google.firebase.logger.Logger import kotlinx.coroutines.runBlocking import ru.n08i40k.polytechnic.next.model.Use...
0
Kotlin
0
1
c4444ff2ca63b3f53f4c5b962a373ddd4031a1d9
2,403
polytecnic-android
MIT License
UnrealMedia/app/src/main/java/com/qfleng/um/view/UriImageView.kt
Duke1
424,109,115
false
{"Text": 2, "Ignore List": 4, "Git Attributes": 1, "Markdown": 1, "Shell": 3, "C": 155, "Makefile": 1, "Gradle Kotlin DSL": 4, "Java Properties": 2, "Batchfile": 1, "CMake": 1, "Proguard": 1, "Kotlin": 59, "XML": 45, "C++": 7, "Java": 1}
package com.qfleng.um.view import android.content.Context import android.util.AttributeSet import com.facebook.drawee.generic.RoundingParams import com.facebook.drawee.view.SimpleDraweeView /** * ps:roundingBorderPadding解决白边问题 */ class UriImageView @JvmOverloads constructor(context: Context, attrs: AttributeSet...
0
C
0
1
a3154274937acf58e2bf42207414ff5e2984f553
1,363
UnrealMedia
MIT License
musicservice/src/main/java/com/gsfoxpro/musicservice/service/MusicService.kt
LetItPlay
113,900,291
false
{"Gradle": 4, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "Proguard": 2, "XML": 119, "Java": 3, "Kotlin": 151}
package com.gsfoxpro.musicservice.service import android.app.PendingIntent import android.app.Service import android.content.BroadcastReceiver import android.content.Context import android.content.Intent import android.content.IntentFilter import android.media.AudioAttributes import android.media.AudioFocusRequest imp...
8
Kotlin
1
0
74380c7cf5fe6ce8f307cd82d7e90f2e9704eacd
14,880
AndroidClient
Apache License 2.0
app/src/main/java/com/werb/moretype/complete/Complete.kt
werbhelius
96,016,727
false
null
package com.werb.moretype.complete /** * Created by wanbo on 2017/7/15. */ data class Complete(val name: String, val desc: String, val icon: String, val time: String, val text: String, val image: String, ...
0
null
22
192
371878a4003a58e4e708b6141def4ac4e5bf5f00
385
MoreType
Apache License 2.0
matrix-sdk-android/src/main/java/org/matrix/android/sdk/api/auth/registration/RegistrationResult.kt
matrix-org
287,466,066
false
null
/* * Copyright 2020 The Matrix.org Foundation C.I.C. * * 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 applica...
1
null
27
97
55cc7362de34a840c67b4bbb3a14267bc8fd3b9c
1,087
matrix-android-sdk2
Apache License 2.0
spigot/src/main/kotlin/com/tealcube/minecraft/bukkit/mythicdrops/loading/MythicConfigLoader.kt
MythicDrops
10,021,467
false
{"Kotlin": 1247884}
package com.tealcube.minecraft.bukkit.mythicdrops.loading import com.tealcube.minecraft.bukkit.mythicdrops.api.errors.LoadingErrorManager import com.tealcube.minecraft.bukkit.mythicdrops.api.items.CustomItemManager import com.tealcube.minecraft.bukkit.mythicdrops.api.items.ItemGroupManager import com.tealcube.minecraf...
60
Kotlin
43
40
e08d2ad3befda5e18bd763b6f30f00fa4ff44c35
18,218
MythicDrops
MIT License
app/src/main/java/com/balsikandar/github/data/db/DbEntityMapper.kt
balsikandar
255,555,406
false
null
package com.balsikandar.github.data.db import com.balsikandar.github.data.TrendingRepo object DbEntityMapper { fun convert(trendingRepoAPI: TrendingRepoDB): TrendingRepo { return TrendingRepo( trendingRepoAPI.author, trendingRepoAPI.name, trendingRepoAPI.description, ...
0
Kotlin
1
6
7a6f61a5390b68a023b8aafd19d1c25cd7eab1fe
498
MVIGithubSample
Apache License 2.0
glance/glance-appwidget/src/test/kotlin/androidx/glance/appwidget/translators/RadioButtonBackportTranslatorTest.kt
androidx
256,589,781
false
null
/* * Copyright 2022 The Android Open Source Project * * 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 applica...
29
null
937
5,321
98b929d303f34d569e9fd8a529f022d398d1024b
11,178
androidx
Apache License 2.0
app/src/main/java/kashyap/in/yajurvedaproject/base/BaseView.kt
KashyapBhat
249,988,816
false
null
package kashyap.`in`.yajurvedaproject.base /** * Created by <NAME> on 2019-12-18. */ interface BaseView { fun showLoading() fun hideLoading() fun showToast(title: String, actionText: String, runnable: Runnable?) }
1
null
1
1
0f4506f66de50a52969169cede63b3135fd6ef9f
228
QuarantineMe
Apache License 2.0
media/src/test/java/fr/nihilus/music/media/provider/MediaDaoTest.kt
ismailghedamsi
322,889,723
true
{"Kotlin": 987508, "Prolog": 57}
/* * Copyright 2019 Thibault Seisel * * 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
null
0
0
6ae2682be14bb1914ec1ffd3ba07db8b3f1f81c3
9,245
android-odeon
Apache License 2.0
libraries/tools/kotlin-gradle-plugin/src/main/kotlin/org/jetbrains/kotlin/gradle/targets/android/KotlinAndroidTargetPreset.kt
JetBrains
3,432,266
false
null
/* * Copyright 2010-2018 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ @file:Suppress("PackageDirectoryMismatch") // Old package for compatibility package org.jetbrains.kotlin.gradl...
125
null
4903
39,894
0ad440f112f353cd2c72aa0a0619f3db2e50a483
1,041
kotlin
Apache License 2.0
domain/src/main/java/com/mkdev/domain/model/BalanceUIModel.kt
msddev
469,005,380
false
null
package com.mkdev.domain.model sealed class BalanceUIModel : UiAwareModel() { object Loading : BalanceUIModel() data class Success(val data: List<Balance>) : BalanceUIModel() data class SuccessWithMessage(val data: Transaction) : BalanceUIModel() data class Error(var error: String) : BalanceUIModel() }...
0
Kotlin
0
0
ca6eacd6b5c6e4e612c766cf9b2df45f6b7ed9d0
321
Currency-Exchange
Apache License 2.0
src/main/kotlin/matt/nn/deephys/load/test/dtype/dtype.kt
mjgroth
518,764,053
false
{"Kotlin": 319138, "Python": 15494, "CSS": 778}
package matt.nn.deephys.load.test.dtype import kotlinx.serialization.Serializable import matt.collect.set.contents.Contents import matt.collect.set.contents.contentsOf import matt.lang.common.List2D import matt.math.arithmetic.sumOf import matt.math.numalg.matalg.multiarray.DoubleMultiArrayWrapper import matt.math.num...
0
Kotlin
0
1
ca027c489f84ae1c61dd04b49b649119f5d41b76
5,966
deephys
MIT License
gi/src/commonMain/kotlin/org/anime_game_servers/multi_proto/gi/data/activity/general/ActivityRecvGiftData.kt
Anime-Game-Servers
642,871,918
false
{"Kotlin": 1651536}
package org.anime_game_servers.multi_proto.gi.data.activity.general import org.anime_game_servers.core.base.Version.GI_2_7_0 import org.anime_game_servers.core.base.annotations.AddedIn import org.anime_game_servers.core.base.annotations.proto.ProtoModel import org.anime_game_servers.multi_proto.gi.data.general.Profile...
0
Kotlin
2
6
7639afe4f546aa5bbd9b4afc9c06c17f9547c588
546
anime-game-multi-proto
MIT License
src/main/kotlin/no/nav/arbeidsgiver/sykefravarsstatistikk/api/applikasjon/eksportering/EksporteringMetadataVirksomhetService.kt
navikt
201,881,144
false
{"Kotlin": 796531, "Shell": 1600, "Dockerfile": 213}
package no.nav.arbeidsgiver.sykefravarsstatistikk.api.applikasjon.eksportAvSykefraværsstatistikk import arrow.core.Either import arrow.core.left import arrow.core.right import no.nav.arbeidsgiver.sykefravarsstatistikk.api.applikasjon.fellesdomene.Bransjeprogram import no.nav.arbeidsgiver.sykefravarsstatistikk.api.appl...
2
Kotlin
2
0
fd3e4795c206dd0565fb8fc968504f0df5acae09
3,145
sykefravarsstatistikk-api
MIT License
app/src/main/java/com/example/health/ApolloActivity.kt
sachinraj-264
280,628,001
false
{"Kotlin": 34455}
package com.example.health import android.content.Intent import android.net.Uri import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import android.view.MenuItem import android.widget.PopupMenu import android.widget.Toast import kotlinx.android.synthetic.main.activity_apollo.* import kotlinx.androi...
0
Kotlin
0
0
d14b1ccd4a578b1a943e72b260fcdbbaae90b3d5
4,656
Arogya-Kavacha
MIT License
core/src/main/kotlin/dev/komu/kraken/model/item/food/Corpse.kt
komu
83,556,775
false
{"Kotlin": 225797}
package dev.komu.kraken.model.item.food import dev.komu.kraken.model.creature.Player import dev.komu.kraken.model.item.Food import dev.komu.kraken.model.item.Taste import dev.komu.kraken.utils.Expression import dev.komu.kraken.utils.rollDie class Corpse(name: String): Food(name) { var poisonDamage: Expression? =...
0
Kotlin
0
0
680362d8e27c475b4ef1e2d13b67cb87f67249f6
1,008
kraken
Apache License 2.0
core/src/main/kotlin/dev/komu/kraken/model/item/food/Corpse.kt
komu
83,556,775
false
{"Kotlin": 225797}
package dev.komu.kraken.model.item.food import dev.komu.kraken.model.creature.Player import dev.komu.kraken.model.item.Food import dev.komu.kraken.model.item.Taste import dev.komu.kraken.utils.Expression import dev.komu.kraken.utils.rollDie class Corpse(name: String): Food(name) { var poisonDamage: Expression? =...
0
Kotlin
0
0
680362d8e27c475b4ef1e2d13b67cb87f67249f6
1,008
kraken
Apache License 2.0
PlayBillingCodelab/start/src/main/java/com/sample/subscriptionscodelab/ui/MainState.kt
android
41,576,069
false
null
/* * Copyright 2022 Google, 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
218
null
1336
2,379
047d2eb8eef8fe32ec07a115580faea8eb865e43
1,096
play-billing-samples
Apache License 2.0
src/main/kotlin/com/skillw/pouvoir/api/feature/database/ContainerHolder.kt
Glom-c
396,683,163
false
null
package com.skillw.pouvoir.api.feature.database import com.skillw.pouvoir.api.plugin.map.LowerKeyMap /** * @className ContainerHolder * * 容器持有者,负责管理一种特定类型的容器 * * 包括此类型容器的创建 销毁 * * @author Glom * @date 2023/1/20 17:26 Copyright 2023 user. All rights reserved. */ abstract class ContainerHolder<C : BaseContaine...
3
null
8
9
35b93485f5f4c2d5c534a2765ff7cfb8f34dd737
889
Pouvoir
MIT License
lib/src/main/java/com/evdayapps/madassistant/clientlib/permission/PermissionManagerImpl.kt
Evdayapps
329,658,422
false
{"Kotlin": 110446}
package com.evdayapps.madassistant.clientlib.permission import android.util.Log import com.evdayapps.madassistant.clientlib.utils.Logger import com.evdayapps.madassistant.clientlib.utils.matches import com.evdayapps.madassistant.common.cipher.MADAssistantCipher import com.evdayapps.madassistant.common.models.exception...
0
Kotlin
0
5
6862cfca259ef21726a8e622ddd8294d0be09089
9,172
madassistant-clientsdk
Apache License 2.0
kjob-core/src/test/kotlin/it/justwrote/kjob/internal/scheduler/JobCleanupSchedulerSpec.kt
justwrote
260,458,357
false
null
package it.justwrote.kjob.internal.scheduler import io.kotest.core.spec.style.ShouldSpec import io.mockk.coEvery import io.mockk.coVerify import io.mockk.mockk import it.justwrote.kjob.job.JobStatus.* import it.justwrote.kjob.repository.JobRepository import it.justwrote.kjob.repository.LockRepository import kotlinx.co...
2
null
9
67
880b175516ce5f3e9edbb0b6fe7b50820c332026
2,328
kjob
Apache License 2.0
openai/clients-retrofit2/src/main/kotlin/io/bluetape4k/openai/clients/retrofit2/sync/CompletionSyncApi.kt
debop
625,161,599
false
{"Kotlin": 7504333, "HTML": 502995, "Java": 2273, "JavaScript": 1351, "Shell": 1301, "CSS": 444, "Dockerfile": 121, "Mustache": 82}
package io.bluetape4k.openai.clients.retrofit2.sync import io.bluetape4k.openai.api.models.completion.CompletionRequest import io.bluetape4k.openai.api.models.completion.CompletionResult import okhttp3.ResponseBody import retrofit2.Call import retrofit2.http.Body import retrofit2.http.POST import retrofit2.http.Stream...
0
Kotlin
0
1
ce3da5b6bddadd29271303840d334b71db7766d2
686
bluetape4k
MIT License
app/src/main/java/com/bernaferrari/changedetection/util/AppGlideModule.kt
bernaferrari
135,081,469
false
{"Kotlin": 423918, "Java": 60461}
package com.bernaferrari.changedetection.util import com.bumptech.glide.annotation.GlideModule import com.bumptech.glide.module.AppGlideModule @GlideModule internal class AppGlideModule : AppGlideModule()
22
Kotlin
97
696
4cb31aab20c321421347b3aad4ad86f516f136f0
207
ChangeDetection
Apache License 2.0
back-end/src/main/kotlin/com/apexdevs/backend/web/controller/api/ApiAdminController.kt
sanctuuary
360,515,462
false
null
/* * This program has been developed by students from the bachelor Computer Science at Utrecht University within the Software Project course. * © Copyright Utrecht University (Department of Information and Computing Sciences) */ package com.apexdevs.backend.web.controller.api import com.apexdevs.backend.persistence...
0
TypeScript
0
2
59611f01ff7bc89d7971b26f0354126e7bcde2d3
10,254
APE-Web
Apache License 2.0
src/test/kotlin/no/nav/fia/arbeidsgiver/sporreundersokelse/api/vert/SpørreundersøkelseVertTest.kt
navikt
644,356,194
false
{"Kotlin": 167056, "Dockerfile": 214}
package no.nav.fia.arbeidsgiver.sporreundersokelse.api.vert import HEADER_VERT_ID import io.kotest.assertions.shouldFail import io.kotest.inspectors.forAll import io.kotest.matchers.collections.shouldContainInOrder import io.kotest.matchers.collections.shouldHaveSize import io.kotest.matchers.shouldBe import io.kotest...
0
Kotlin
0
0
c6f2e8e6f84ed0ca50f6ee0c156ca897c71ec668
15,244
fia-arbeidsgiver
MIT License
app/src/test/java/com/kgurgul/cpuinfo/features/processes/PsProviderTest.kt
kamgurgul
105,620,694
false
null
/* * Copyright 2017 KG Soft * * 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 w...
27
null
88
468
c14870ef298bc6be2c1355d36698c355c1f5fc51
2,446
cpu-info
Apache License 2.0
compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-6/neg/1.2.kt
JetBrains
3,432,266
false
null
// SKIP_TXT /* * KOTLIN DIAGNOSTICS SPEC TEST (NEGATIVE) * * SPEC VERSION: 0.1-296 * PLACE: expressions, when-expression -> paragraph 6 -> sentence 1 * NUMBER: 2 * DESCRIPTION: 'When' with bound value and type test condition on the non-type operand of the type checking operator. * HELPERS: classes */ // TESTC...
181
null
5748
49,172
33eb9cef3d146062c103f9853d772f0a1da0450e
509
kotlin
Apache License 2.0
app-android/src/main/java/org/mtransit/android/ui/map/MapViewModel.kt
mtransitapps
24,649,585
false
null
package org.mtransit.android.ui.map import android.location.Location import androidx.collection.ArrayMap import androidx.core.content.edit import androidx.lifecycle.LiveData import androidx.lifecycle.MutableLiveData import androidx.lifecycle.SavedStateHandle import androidx.lifecycle.distinctUntilChanged import androi...
5
null
4
34
dccaac0fe7f1604a191eaa63b936ba476a9a0682
15,112
mtransit-for-android
Apache License 2.0
src/main/kotlin/no/nav/syfo/application/RerunCronJob.kt
navikt
257,523,904
false
null
package no.nav.syfo.application import net.logstash.logback.argument.StructuredArguments import no.nav.syfo.db.DatabaseInterface import no.nav.syfo.logger import no.nav.syfo.metrics.MESSAGES_STILL_FAIL_AFTER_1H import no.nav.syfo.persistering.db.hentIkkeFullforteDialogmeldinger import java.time.LocalDateTime class Re...
2
null
0
1
eff4595eb477829a9d7241466039c564a0a16bdf
1,606
padm2
MIT License
processor-kotlin/src/main/java/de/bwueller/environment/processor/actor/ActorManager.kt
Bw2801
131,579,843
false
null
package de.bwueller.environment.processor.actor import com.google.protobuf.GeneratedMessageV3 import de.bwueller.environment.processor.userManager import de.bwueller.environment.protocol.PlaySound import de.bwueller.environment.protocol.RegisterActor import de.bwueller.environment.protocol.serializePacket import org.j...
10
null
1
5
5a20724ea66102bcebd1fd71f598c81178f478fd
2,432
environment
Apache License 2.0
src/main/kotlin/no/nav/personbruker/dittnav/eventaggregator/common/database/Database.kt
navikt
189,239,389
false
null
package no.nav.personbruker.dittnav.brukernotifikasjonbestiller.common.database import com.zaxxer.hikari.HikariDataSource import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.withContext import no.nav.personbruker.dittnav.brukernotifikasjonbestiller.common.database.exception.RetriableDatabaseException impo...
1
null
0
1
a55db5d4c4f754454890cdd54d472227fa91a05d
3,567
dittnav-event-aggregator
MIT License
coincurrency/data/repository/MyCoinRepository.kt
EricMoin
658,075,629
false
null
package com.ericmoin.coincurrency.data.repository import com.ericmoin.coincurrency.data.remote.CoinPaprikaApi import com.ericmoin.coincurrency.data.remote.dto.CoinDetailDto import com.ericmoin.coincurrency.data.remote.dto.CoinDto import com.ericmoin.coincurrency.domain.repository.CoinRepository import javax.inject.Inj...
0
Kotlin
0
0
70418759e896dda2fcf930a196272a7f558c55c1
552
Jetpack-Compose-Learning
Apache License 2.0
libs/shape/src/test/kotlin/mono/shape/shape/LineTest.kt
tuanchauict
325,686,408
false
null
package mono.shape.shape import mono.graphics.geo.DirectedPoint import mono.graphics.geo.Point import mono.shape.serialization.SerializableLine import mono.shape.shape.line.LineHelper import kotlin.test.Test import kotlin.test.assertEquals import kotlin.test.assertFalse import kotlin.test.assertTrue /** * A test for...
15
null
9
91
21cef26b45c984eee31ea2c3ba769dfe5eddd92e
6,077
MonoSketch
Apache License 2.0
naver-map-compose/src/main/java/com/naver/maps/map/compose/FusedLocationSource.kt
fornewid
492,204,824
false
null
/* * Copyright 2023 SOUP * * 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 wri...
6
Kotlin
4
68
16847154a7175df8a62cc3d4a309a7b25f85d8a1
5,271
naver-map-compose
Apache License 2.0
sync/sync-settings-impl/src/test/java/com/duckduckgo/sync/settings/impl/SettingsSyncDataPersisterTest.kt
duckduckgo
78,869,127
false
null
/* * Copyright (c) 2023 DuckDuckGo * * 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 ...
67
null
901
3,823
6415f0f087a11a51c0a0f15faad5cce9c790417c
5,922
Android
Apache License 2.0
src/main/kotlin/org/easysql/visitor/output/OracleOutPutVisitor.kt
wz7982
537,805,512
false
null
package org.easysql.visitor.output import org.easysql.ast.limit.SqlLimit import org.easysql.ast.statement.upsert.SqlUpsert class OracleOutPutVisitor : OutPutVisitor() { override fun visitSqlLimit(sqlLimit: SqlLimit) { sqlBuilder.append("OFFSET ${sqlLimit.offset} ROWS FETCH FIRST ${sqlLimit.limit} ROWS ONL...
0
Kotlin
0
2
9098640d77a0c6be93a3331dfcbf92b9cfa81ff9
2,304
easysql-kt
Apache License 2.0
app/src/main/java/com/bhavnathacker/jettasks/presentation/theme/Color.kt
bhavnathacker
457,276,304
false
null
package com.bhavnathacker.jettasks.presentation.theme import androidx.compose.ui.graphics.Color //Used for Primary and It's variant val Purple200 = Color(0xFFCE93D8) val Purple400 = Color(0xFFAB47BC) val Purple600 = Color(0xFF8E24AA) val Purple800 = Color(0xFF6A1B9A) //Used for Secondary val Blue200 = Color(0xFF81D4...
0
Kotlin
5
23
764992c627876e9303d6edf7b4d837269fd8eee0
512
JetTasks
Apache License 2.0
platform/workspace/storage/tests/testSrc/com/intellij/platform/workspace/storage/tests/EntityStorageSerializationTest.kt
ingokegel
72,937,917
false
null
// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. package com.intellij.platform.workspace.storage.tests import com.intellij.platform.workspace.storage.SerializationResult import com.intellij.platform.workspace.storage.impl.EntityStorageSerializerIm...
233
null
4931
2
b07eabd319ad5b591373d63c8f502761c2b2dfe8
11,528
intellij-community
Apache License 2.0
service/src/main/java/com/upnetix/applicationservice/pushtoken/IPushTokenService.kt
scalefocus
255,062,459
false
null
package com.upnetix.applicationservice.pushtoken import com.upnetix.applicationservice.base.ResponseWrapper interface IPushTokenService { suspend fun sendPushToken(pushToken: String): ResponseWrapper<Unit> }
19
null
5
29
05c23fc5013b592c556997f2a54492ad9a0a0e75
212
virusafe-android
Apache License 2.0
source/service/src/test/kotlin/ketchup/service/controllers/ItemControllerTest.kt
arshvirc
771,191,483
false
{"Kotlin": 166407, "CSS": 71990}
package ketchup.service.controllers import ketchup.console.TodoItem import ketchup.service.Program import org.junit.jupiter.api.Assertions.* import org.junit.jupiter.api.Test import java.io.File import java.io.PrintWriter import java.sql.DriverManager import java.text.DateFormat import java.text.SimpleDateFormat impor...
0
Kotlin
0
0
15f965cf1e8e60cb928fbcc3a8769a1ff6ee301d
9,938
ketchup
MIT License
apps/etterlatte-vilkaarsvurdering/src/test/kotlin/no/nav/etterlatte/vilkaarsvurdering/VilkaarsvurderingRoutesTest.kt
navikt
417,041,535
false
{"Kotlin": 6309786, "TypeScript": 1570250, "Handlebars": 27542, "Shell": 12438, "HTML": 1734, "Dockerfile": 676, "CSS": 598, "PLpgSQL": 556}
package no.nav.etterlatte.vilkaarsvurdering import io.ktor.client.request.delete import io.ktor.client.request.get import io.ktor.client.request.header import io.ktor.client.request.post import io.ktor.client.request.setBody import io.ktor.client.statement.bodyAsText import io.ktor.http.ContentType import io.ktor.http...
9
Kotlin
0
6
e715675c319d4a0a826855615749573e45ae7a75
35,382
pensjon-etterlatte-saksbehandling
MIT License
kodein-di-erased/src/commonTest/kotlin/org/kodein/di/erased/ErasedTests_17_NewInstance.kt
Inego
229,547,014
true
{"Kotlin": 683683, "Java": 16368}
package org.kodein.di.erased import org.kodein.di.Kodein import org.kodein.di.newInstance import org.kodein.di.test.FixMethodOrder import org.kodein.di.test.MethodSorters import org.kodein.di.test.Person import kotlin.test.Test import kotlin.test.assertEquals @FixMethodOrder(MethodSorters.NAME_ASCENDING) class Erased...
0
null
0
0
7a25cde6fa8e998ddba2f9cb6275d902aa780b66
1,307
Kodein-DI
MIT License
app/src/main/java/sample/books/domain/dagger/BooksDomainModule.kt
annypatel
209,951,354
false
null
package sample.books.domain.dagger import sample.books.domain.FetchBooksUseCase import sample.books.domain.FetchBooksUseCaseImpl import sample.books.domain.FlattenBookGroupsUseCase import sample.books.domain.FlattenBookGroupsUseCaseImpl import sample.books.domain.GetBooksUseCase import sample.books.domain.GetBooksUseC...
0
Kotlin
0
0
9637b6158cbb8b78052919944c5fbf79076218d9
1,468
BooksSample
Apache License 2.0
data/src/test/java/com/me/data/quote/repository/QuoteRepositoryImplTest.kt
MohamedHatemAbdu
275,196,930
false
null
package com.me.data.quote.repository import com.me.data.quote.datasource.local.QuoteCacheDataSourceImpl import com.me.data.quote.datasource.remote.QuoteRemoteDataSourceImpl import com.me.data.quoteData import com.me.data.quoteEntity import io.reactivex.Completable import io.reactivex.Single import org.junit.Before imp...
0
Kotlin
0
0
b875c147a1a7ee0591f3e1d0610f78379d9a5473
3,672
random-quote
Apache License 2.0
app/src/main/java/com/kashif/newsapp/presentation/navGraph/Route.kt
kashifansari786
804,837,818
false
{"Kotlin": 91890}
package com.kashif.newsapp.presentation.navGraph /** * Created by <NAME> on 19,May,2024 */ sealed class Route(val route:String) { object OnBoardingScreen:Route(route = "onBoardingScreen") object HomeScreen:Route(route = "homeScreen") object SearchScreen:Route(route = "searchScreen") object BookmarkS...
0
Kotlin
0
0
e6da12dc856b620af5776a168ec60df092c4b900
607
newsAppCompose
MIT License
publish-component/src/main/java/com/kotlin/android/publish/component/widget/article/view/event/PEvent.kt
R-Gang-H
538,443,254
false
null
package com.kotlin.android.publish.component.widget.article.view.event /** * 键盘事件(删除/回车/完成关闭键盘) * * Created on 2022/4/1. * * @author o.s */ enum class PEvent { /** * 上一个 */ PRE, /** * 下一个 */ NEXT, /** * 完成:关闭键盘 */ DONE }
0
Kotlin
0
1
e63b1f9a28c476c1ce4db8d2570d43a99c0cdb28
284
Mtime
Apache License 2.0
app/src/main/java/dev/nynp/nothanks/NoThanksSettingsManager.kt
NewYearNewPhil
871,308,636
false
{"Kotlin": 22879}
package dev.nynp.nothanks import android.content.Context import kotlinx.coroutines.flow.MutableStateFlow import kotlinx.coroutines.flow.asStateFlow data class BlockedView( val id: String, val name: String, var isBlocked: Boolean ) object SettingsManager { private lateinit var sharedPreferences: andro...
2
Kotlin
0
1
50996f32ab45232edcc3d87b153f92b64b1ecb87
2,367
nothanks
MIT License
src/main/kotlin/jp/assasans/araumi/tx/server/ecs/IEntityTemplate.kt
AraumiTX
604,259,602
false
null
package jp.assasans.araumi.tx.server.ecs import kotlin.reflect.KClass import kotlin.reflect.full.findAnnotation import jp.assasans.araumi.tx.server.extensions.inject import jp.assasans.araumi.tx.server.protocol.ProtocolId interface IEntityTemplate val KClass<out IEntityTemplate>.templateId: Long get() = requireNot...
0
Kotlin
1
3
4828d26c8ff73b902015c0bf68996bbf4f4eb561
708
game-server
MIT License
src/main/kotlin/com/papsign/ktor/openapigen/modules/providers/ParameterProvider.kt
papsign
186,148,881
false
null
package com.papsign.ktor.openapigen.modules.providers import com.papsign.ktor.openapigen.OpenAPIGen import com.papsign.ktor.openapigen.model.operation.ParameterModel import com.papsign.ktor.openapigen.modules.ModuleProvider import com.papsign.ktor.openapigen.modules.OpenAPIModule interface ParameterProvider: OpenAPIM...
24
Kotlin
35
172
8362dafa8a8b701983ad7d0119a15a12b863953f
427
Ktor-OpenAPI-Generator
Apache License 2.0
app/src/main/java/com/keru/novelly/ui/components/BottomNavBar.kt
jordan-jakisa
758,352,302
false
null
package com.keru.novelly.ui.components import androidx.compose.material.icons.Icons import androidx.compose.material.icons.rounded.Explore import androidx.compose.material.icons.rounded.Home import androidx.compose.material.icons.rounded.LocalLibrary import androidx.compose.material.icons.rounded.Menu import androidx....
0
null
0
4
e0d6a13de40ff3e3c9cc4d2d78cba07bbc85be97
2,677
chapterly
MIT License
library/implementations/timber/src/main/java/timber/log/BaseTree.kt
MFlisar
71,460,539
false
{"Kotlin": 138941}
package timber.log import android.util.Log import com.michaelflisar.lumberjack.implementation.timber.TimberLogger import com.michaelflisar.lumberjack.implementation.timber.data.StackData import java.io.PrintWriter import java.io.StringWriter abstract class BaseTree : Timber.Tree() { open fun isConsoleLogger(): B...
2
Kotlin
7
42
5e97f50775d286f10e82599235bad788dbdccaf0
7,121
Lumberjack
Apache License 2.0
src/test/kotlin/tr/emreone/adventofcode/days/Day09Test.kt
EmRe-One
726,902,443
false
{"Kotlin": 91413, "Python": 18319}
package tr.emreone.adventofcode.days import org.junit.jupiter.api.Test import tr.emreone.kotlin_utils.Resources import tr.emreone.kotlin_utils.automation.solve internal class Day09Test { @Test fun `execute_tests`() { solve<Day09>(false) { Resources.resourceAsList("day09_example.txt") ...
0
Kotlin
0
0
516718bd31fbf00693752c1eabdfcf3fe2ce903c
391
advent-of-code-2023
Apache License 2.0
src/test/kotlin/uk/gov/justice/digital/hmpps/personrecord/integration/MultiNodeTestBase.kt
ministryofjustice
608,040,205
false
{"Kotlin": 215136, "PLpgSQL": 13812, "Shell": 2601, "Dockerfile": 1145, "Makefile": 160}
package uk.gov.justice.digital.hmpps.personrecord.integration import com.microsoft.applicationinsights.TelemetryClient import org.assertj.core.api.Assertions.assertThat import org.awaitility.kotlin.await import org.awaitility.kotlin.untilAsserted import org.junit.jupiter.api.AfterAll import org.junit.jupiter.api.Befor...
5
Kotlin
2
1
489b6d5c3d75bfc96bed2883a82b9990f97b92f9
3,378
hmpps-person-record
MIT License
app/src/main/java/com/skelterlabs/events/PurchaseStartEvent.kt
SkelterLabsInc
365,889,870
false
null
package com.skelterlabs.events import com.skelterlabs.client.CustomField class PurchaseStartEvent : Event { override val type: EventType = EventType.PURCHASE_START override fun makeEventSpecificCustomField(): CustomField = mapOf() }
0
Kotlin
0
1
cf4a80f69b2365f13b475232bd5434de7a2d8aaa
239
aware-android-sdk
Apache License 2.0
qr-code/src/commonMain/kotlin/in/procyk/compose/qrcode/options/dsl/InternalQrShapesBuilderScope.kt
avan1235
705,304,457
false
{"Kotlin": 203607}
/** * Based on QRose by <NAME> from [Github](https://github.com/alexzhirkevich/qrose) * * MIT License * * Copyright (c) 2023 <NAME> * * 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 ...
1
Kotlin
0
4
93b9ff7354194d3f9754e1f292cd1cfd4a1743c6
2,596
compose-extensions
MIT License
src/sorting/Main.kt
ArtemBotnev
136,745,749
false
{"Kotlin": 79256, "Shell": 292}
package sorting import heaps.SortHeap import utils.Timer import java.util.* import kotlin.math.sign fun main(args: Array<String>) { // source arrays val array = arrayOf(10, 123, 34, 205, 0, 75, 94, 75, -92, 345, 12, 73, 110, 542, 243, 315, -54) val bigArray = Array(5_000) { Random().nextInt(10_000) } ...
0
Kotlin
0
0
530c02e5d769ab0a49e7c3a66647dd286e18eb9d
1,694
Algorithms-and-Data-Structures
MIT License
compiler/util-klib-abi/src/org/jetbrains/kotlin/library/abi/LibraryAbi.kt
JetBrains
3,432,266
false
null
/* * Copyright 2010-2023 JetBrains s.r.o. and Kotlin Programming Language contributors. * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file. */ package org.jetbrains.kotlin.library.abi import org.jetbrains.kotlin.library.abi.impl.AbiSignatureVersions /...
181
null
5748
49,172
33eb9cef3d146062c103f9853d772f0a1da0450e
16,466
kotlin
Apache License 2.0
library-base/src/main/java/com/pp/library_base/adapter/DefaultBindingPagingDataAdapter.kt
PPQingZhao
548,315,946
false
null
package com.pp.library_base.adapter import android.view.LayoutInflater import android.view.ViewGroup import androidx.databinding.ViewDataBinding import androidx.recyclerview.widget.DiffUtil class DefaultBindingPagingDataAdapter<VB : ViewDataBinding, VM : Any, T : Any>( private val getItemViewType: (position: Int)...
0
null
0
5
904d9a980811d502f88479cb450c3a6e8d027f09
1,086
Eyepetizer
Apache License 2.0
BaseExtend/src/main/java/com/chen/baseextend/util/TimeTransUtil.kt
chen397254698
268,411,455
false
null
package com.chen.baseextend.util /** * Created by chen on 2019/9/24 **/ object TimeTransUtil { fun timeToTip(minute: Int? = 0): Pair<String, String> { return when (minute) { 30 -> Pair("30","分钟") 60 -> Pair("1","小时") 120 -> Pair("2","小时") 180 -> Pair("3",...
1
Kotlin
14
47
85ffc5e307c6171767e14bbfaf992b8d62ec1cc6
1,235
EasyAndroid
Apache License 2.0
src/main/kotlin/rui/leetcode/kt/q/Q1356.kt
ruislan
307,862,179
false
{"Kotlin": 78523}
package rui.leetcode.kt.q import org.junit.Assert.assertTrue import org.junit.Test class Q1356 { fun sortByBits(arr: IntArray): IntArray { // 方法1 // 因为数字大小范围在 0 <= arr[i] <= 10^4 // 创建数组长度10001,统计数字的频率 // 然后按从小数字到大数字的顺序统计二进制1的个数 // 最后将32位的数组中的数字取出来进行返回 // Passed 300...
0
Kotlin
0
1
55baacd5c536864bbc82536bb60ff892cd127aa8
2,092
leetcode-kotlin
MIT License
client/src/commonTest/kotlin/SearchTest.kt
DRSchlaubi
732,514,157
false
{"Kotlin": 15627}
import org.junit.jupiter.api.Test import kotlin.test.assertEquals class SearchTest { @Test fun `search for isrc`() = withClient { val result = search("gbdhc2227201") assertEquals(1, result.size) val track= result.first() assertEquals("AhTypsCd3dM", track.videoId) asser...
0
Kotlin
0
0
fbb35276ab0b614d1955641aba7035f63101e026
368
lyrics.kt
MIT License
app/src/main/java/com/rodrigodominguez/mixanimationsmotionlayout/storiesinstagram/scenes/InstagramStoryScene3Activity.kt
rodrigomartind
265,013,640
false
null
package com.rodrigodominguez.mixanimationsmotionlayout.storiesinstagram.scenes import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import com.rodrigodominguez.mixanimationsmotionlayout.R class InstagramStoryScene3Activity : AppCompatActivity() { override fun onCreate(savedInstanceState: Bundl...
1
Kotlin
63
610
17e3d8ad36a3b9806c828bd03cc71eb37af789dc
441
MixAnimationsMotionLayout
Apache License 2.0
app/src/main/java/com/domatix/yevbes/nucleus/sga/view/adapter/ProductDataViewHolder.kt
sm2x
234,568,179
true
{"Kotlin": 782306}
package com.domatix.yevbes.nucleus.sga.view.adapter import android.support.v7.widget.RecyclerView import com.domatix.yevbes.nucleus.databinding.ProductProductRowBinding class ProductDataViewHolder(val binding: ProductProductRowBinding) : RecyclerView.ViewHolder(binding.root)
0
null
0
0
237e9496b5fb608f543e98111269da9b91a06ed3
282
nucleus
MIT License
compiler/testData/codegen/box/properties/lateinit/privateSetterFromLambda.kt
JakeWharton
99,388,807
false
null
// IGNORE_BACKEND_FIR: JVM_IR class My { lateinit var x: String private set fun init(arg: String, f: (String) -> String) { x = f(arg) } } fun box(): String { val my = My() my.init("O") { it + "K" } return my.x }
181
null
5748
83
4383335168338df9bbbe2a63cb213a68d0858104
242
kotlin
Apache License 2.0
kotest-framework/kotest-framework-engine/src/commonMain/kotlin/io/kotest/engine/config/dump.kt
kotest
47,071,082
false
null
package io.kotest.engine.config import io.kotest.core.config.Configuration import io.kotest.engine.tags.runtimeTags import io.kotest.mpp.bestName fun Configuration.createConfigSummary(): String { val sb = StringBuilder() sb.buildOutput("Parallelization factor", parallelism.toString()) sb.buildOutput("Concu...
98
null
623
4,318
e7f7e52a732010fae899d1fcc4d074c055463e0b
2,694
kotest
Apache License 2.0
src/test/kotlin/org/rust/lang/core/completion/RustCompletionTestBase.kt
ujpv
68,909,564
true
{"Kotlin": 1020989, "Rust": 91489, "Java": 69391, "Lex": 19613, "HTML": 8841, "Shell": 377, "RenderScript": 229}
package org.rust.lang.core.completion import com.intellij.psi.PsiElement import org.intellij.lang.annotations.Language import org.rust.lang.RustTestCaseBase abstract class RustCompletionTestBase : RustTestCaseBase() { protected fun checkSingleCompletionByFile() = checkByFile { executeSoloCompletion() ...
0
Kotlin
0
0
2581d2b9e1b08ab0fa83b7e8b2e41186ccca721c
2,076
intellij-rust
MIT License
grammar/testData/grammar/annotations/nameAsUseSiteTargetPrefix/paramInBackticks.kt
Kotlin
39,459,058
false
null
class Foo(@`param` private val field: Int) {} class Foo { @ann @`param` var field: Int = 10 } class Foo(@`param` @ann protected val field: Int) {} class Foo { @ann @`param` var field: Int = 10 } class Foo(@ann @`param` val field: Int) {} class Foo(@`param` @ann val field: Int) {}
15
Kotlin
71
312
4411e49bb2b03f7d0d01d1c967723b901edd2105
294
kotlin-spec
Apache License 2.0
src/main/kotlin/dev/struggzard/samples/coroutines/HelloFlowSingle.kt
struggzard
349,768,186
false
null
package dev.struggzard.samples.coroutines import kotlinx.coroutines.GlobalScope import kotlinx.coroutines.flow.Flow import kotlinx.coroutines.flow.flowOf import kotlinx.coroutines.flow.single import kotlinx.coroutines.launch fun main() { GlobalScope.launch { getNumbers().single().forEach { number -> ...
0
Kotlin
0
0
e048a34c71af18807f52719be4c50d7769326200
466
coroutines-playground
The Unlicense
app/src/main/java/com/android/musicplayer/presentation/playlist/PlaylistAdapter.kt
ZahraHeydari
224,468,018
false
null
package com.android.musicplayer.presentation.playlist import android.util.Log import android.view.LayoutInflater import android.view.View import android.view.ViewGroup import androidx.core.content.ContextCompat import androidx.recyclerview.widget.RecyclerView import coil.api.load import coil.transform.CircleCropTransf...
2
null
85
549
a2c90b33df8b98aed4a1bd742d97a3364f77e822
3,181
MusicPlayer
Apache License 2.0
recycli/src/main/java/com/detmir/recycli/adapters/InfinityState.kt
detmir
358,579,304
false
null
package com.detmir.recycli.adapters import androidx.annotation.Keep @Keep data class InfinityState ( val items: List<RecyclerItem> = listOf(), val page: Int = 0, val endReached: Boolean = false, val requestState: Request = Request.IDLE ) { enum class Request { IDLE, LOADING, ERROR } ...
3
null
3
32
5e12ba06400f02f93441af9ed6a5b17c436cd67d
1,102
recycli
Apache License 2.0
appupdatewrapper/src/main/java/com/motorro/appupdatewrapper/ImmediateUpdateState.kt
motorro
198,185,007
false
{"Kotlin": 126024}
/* * Copyright 2019 <NAME> (motorro). * 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 w...
1
Kotlin
2
35
53f96f89b0dace51c46f34b9912007dd261d7596
6,702
AppUpdateWrapper
Apache License 2.0
src/section6/section6.5/app/src/main/java/com/nigelhenshaw/ktxwork/ColorWorkers.kt
PacktPublishing
139,799,019
false
{"Kotlin": 43640}
package com.nigelhenshaw.ktxwork import com.nigelhenshaw.ktxwork.MainActivity.Companion.KEY_GET_COLOR import com.nigelhenshaw.ktxwork.MainActivity.Companion.KEY_SET_COLOR /** * This collection will be used by both workers * which will either set the data or get the data */ private val colors by lazy { arrayOfN...
1
Kotlin
4
4
83b8bbf71cc67c156798c964c5b6134b10d267da
451
Kotlin-Tips-Tricks-and-Techniques
MIT License
cesium-kotlin/src/jsMain/kotlin/cesium/engine/CreditDisplay.kt
karakum-team
393,199,102
false
{"Kotlin": 6272741}
// Automatically generated - do not modify! @file:JsModule("@cesium/engine") @file:Suppress( "EXTERNAL_CLASS_CONSTRUCTOR_PROPERTY_PARAMETER", ) package cesium.engine import web.html.HTMLElement /** * The credit display is responsible for displaying credits on screen. * ``` * // Add a credit with a tooltip, ...
0
Kotlin
8
36
95b065622a9445caf058ad2581f4c91f9e2b0d91
4,983
types-kotlin
Apache License 2.0
feature/note/src/main/java/com/teamwiney/notecollection/components/NoteSortBottomSheet.kt
AdultOfNineteen
639,481,288
false
null
package com.teamwiney.notecollection.components import androidx.compose.foundation.background import androidx.compose.foundation.clickable import androidx.compose.foundation.layout.Arrangement import androidx.compose.foundation.layout.Column import androidx.compose.foundation.layout.Row import androidx.compose.foundat...
8
null
1
8
4bb17621738030f0234f1592036930cfb7172397
3,531
WINEY-Android
MIT License
src/commonTest/kotlin/responses/GetBookmarks.kt
MrNuggelz
866,645,099
false
{"Kotlin": 154248}
const val GetBookmarksResponse = """ { "subsonic-response": { "status": "ok", "version": "1.16.1", "type": "AwesomeServerName", "serverVersion": "0.1.3 (tag)", "openSubsonic": true, "bookmarks": { "bookmark": [ { "entry": { "id": "113bf5989ad15ce2cf1834ba962...
1
Kotlin
0
1
b822e7775c4f1271bc821db17e6b8ecc500d5346
2,800
OpenSubsonicClient
Apache License 2.0
plugins/kotlin/navigation/tests/test/org/jetbrains/kotlin/idea/k2/navigation/AbstractKotlinNavigationToLibrarySourceTest.kt
ingokegel
72,937,917
false
null
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. package org.jetbrains.kotlin.idea.k2.navigation import com.intellij.psi.PsiComment import com.intellij.psi.PsiElement import com.intellij.psi.PsiWhiteSpace import com.intellij.refactoring.suggested....
284
null
5162
2
b07eabd319ad5b591373d63c8f502761c2b2dfe8
3,260
intellij-community
Apache License 2.0
war/src/main/java/code/Controller.kt
benjefferies
103,452,581
false
null
package code import org.springframework.beans.factory.annotation.Autowired import org.springframework.stereotype.Controller import org.springframework.web.bind.annotation.RequestMapping import org.springframework.web.bind.annotation.RequestMethod import org.springframework.web.bind.annotation.ResponseBody import java....
5
Kotlin
1
0
97069026b4be3b801012709f7aed1a9a8163b394
865
tomcat-war-jndi
MIT License