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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
kt/godot-library/src/main/kotlin/godot/gen/godot/GraphEdit.kt | utopia-rise | 289,462,532 | false | {"Kotlin": 1549917, "GDScript": 535642, "C++": 403741, "C": 13152, "C#": 10278, "Shell": 7406, "Java": 2165, "CMake": 939, "Python": 75} | // THIS FILE IS GENERATED! DO NOT EDIT IT MANUALLY!
@file:Suppress("PackageDirectoryMismatch", "unused", "FunctionName", "RedundantModalityModifier",
"UNCHECKED_CAST", "JoinDeclarationAndAssignment", "USELESS_CAST",
"RemoveRedundantQualifierName", "NOTHING_TO_INLINE", "NON_FINAL_MEMBER_IN_OBJECT",
"Redundan... | 69 | Kotlin | 39 | 580 | fd1af79075e7b918200aba3302496b70c76a2028 | 39,518 | godot-kotlin-jvm | MIT License |
src/test/kotlin/no/nav/helse/spout/AuditloggTest.kt | navikt | 617,935,079 | false | {"Kotlin": 23973, "HTML": 19781, "CSS": 5446, "JavaScript": 3846, "Dockerfile": 168} | package no.nav.helse.spout
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Test
import java.time.LocalDateTime
import java.util.UUID
internal class AuditloggTest {
@Test
fun `logger audit på rett format`() {
val tidspunkt = LocalDateTime.parse("2023-03-23T23:00:00.00... | 0 | Kotlin | 0 | 0 | 568e70c7b23b714a7f8840c86391f0eeb5805b7a | 970 | helse-spout | MIT License |
android-buddy-plugin/src/main/java/com/likethesalad/android/common/utils/Constants.kt | LikeTheSalad | 289,290,234 | false | null | package com.likethesalad.android.common.utils
object Constants {
const val LIBRARY_METADATA_DIR = "META-INF/android-buddy-plugins"
const val PLUGINS_METADATA_FILE_NAME = "library_definition"
const val PLUGINS_METADATA_FILE_EXT = "class"
} | 0 | Kotlin | 6 | 43 | 1089f89e1f8ad5fb9fdfb9195592cc8a7d04e299 | 251 | android-buddy | MIT License |
precompose/src/macosMain/kotlin/moe/tlaster/precompose/PreComposeWindow.kt | Tlaster | 349,750,473 | false | {"Kotlin": 191657} | package moe.tlaster.precompose
import androidx.compose.runtime.Composable
import androidx.compose.runtime.CompositionLocalProvider
import androidx.compose.runtime.ExperimentalComposeApi
import androidx.compose.runtime.remember
import androidx.compose.ui.window.Window
import moe.tlaster.precompose.lifecycle.LifecycleOw... | 40 | Kotlin | 49 | 849 | 276c933397d94b8dfc60b809942bc38b23d945bd | 2,053 | PreCompose | MIT License |
app/src/main/java/com/jetpack/composemotionlayout/MotionLayoutHeader.kt | MakeItEasyDev | 465,383,485 | false | {"Kotlin": 12544} | package com.jetpack.composemotionlayout
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.wrapContentHeight
import androidx.compose.materia... | 0 | Kotlin | 2 | 7 | 359e78f49bdc8934a3f8da04830de82e62691781 | 3,097 | Jetpack-Compose-Collapse-Toolbar-Motion-Layout | Apache License 2.0 |
app/src/main/java/com/gvkorea/gvktune/view/view/data/presenter/DataPresenter.kt | NewTurn2017 | 243,805,460 | false | null | package com.gvkorea.gvktune.view.view.data.presenter
import android.content.SharedPreferences
import android.os.Handler
import android.widget.Toast
import com.gvkorea.gvktune.MainActivity.Companion.isSelected_CH1
import com.gvkorea.gvktune.MainActivity.Companion.isSelected_CH2
import com.gvkorea.gvktune.MainActivity.C... | 1 | null | 1 | 1 | afaa1be61f6f1cc3fb6db213aaaa081483144ce5 | 15,836 | GVKTUNE | MIT License |
game-engine/src/main/kotlin/com/zenika/ageofdevsecops/infrastructure/challenge/JdbcPlayerScoreRepository.kt | zenika-open-source | 176,924,113 | false | null | package com.zenika.ageofdevsecops.infrastructure.challenge
import com.zenika.ageofdevsecops.domain.challenge.PlayerScore
import com.zenika.ageofdevsecops.domain.challenge.PlayerScoreRepository
import org.springframework.jdbc.core.JdbcTemplate
import org.springframework.stereotype.Repository
@Repository
class JdbcPlay... | 34 | Kotlin | 6 | 8 | be41076dd729649eff49633e20745fa917a544a4 | 1,234 | age-of-devsecops | Apache License 2.0 |
app/src/main/java/com/example/affirmations/MainActivity.kt | IvanRellanSan | 603,903,090 | false | null | /*
* Copyright (C) 2021 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 app... | 0 | Kotlin | 0 | 0 | 613b4a253a0fc1f9db65655613729b6c599030cd | 2,778 | ComposeTrainingAffirmations | Apache License 2.0 |
server/src/main/kotlin/com/example/Application.kt | egdegd | 411,764,804 | true | {"Kotlin": 8608, "HTML": 2815, "JavaScript": 907} | package com.example
import com.example.plugins.*
import io.ktor.application.*
import io.ktor.features.*
import io.ktor.serialization.*
fun main(args: Array<String>): Unit = io.ktor.server.netty.EngineMain.main(args)
val Application.secret: String
get() = environment.config.property("jwt.secret").getString()
val A... | 0 | null | 0 | 0 | eb606832c9e4ef104aec982764a980f39192f742 | 726 | memster | MIT License |
features/ranges-practice/domain/src/main/java/com/mctech/pokergrinder/ranges_practice/domain/usecases/ObserveRangePracticeResultUseCase.kt | MayconCardoso | 539,349,342 | false | null | package com.mctech.pokergrinder.ranges_practice.domain.usecases
import com.mctech.pokergrinder.ranges_practice.domain.RangesPracticeRepository
import com.mctech.pokergrinder.ranges_practice.domain.entities.RangePracticeResult
import kotlinx.coroutines.flow.Flow
import javax.inject.Inject
/**
* Used to observe all ra... | 7 | Kotlin | 0 | 7 | d4a6f48fa73c0259d87934873a8ccb63b53694f3 | 609 | poker-grinder | Apache License 2.0 |
app/src/main/kotlin/com/deviseworks/mcc/frontend/component/content/PlayerListTab.kt | rokuosan | 465,776,797 | false | {"Kotlin": 31673, "HTML": 471, "CSS": 417} | package com.deviseworks.mcc.frontend.component.content
import com.deviseworks.mcc.frontend.common.API
import com.deviseworks.mcc.frontend.entity.Player
import csstype.Display
import csstype.FlexWrap
import kotlinx.browser.window
import kotlinx.coroutines.MainScope
import kotlinx.coroutines.await
import kotlinx.corouti... | 0 | Kotlin | 0 | 0 | 5090f2cfe51d5e7926f5d408ac9fd2164fa2ecb0 | 1,852 | mcc-frontend | MIT License |
backend-integration/researchstack-adapter/src/main/kotlin/researchstack/backend/integration/adapter/outgoing/AppLogAdapter.kt | S-ResearchStack | 520,365,275 | false | {"Kotlin": 178868, "AIDL": 4785} | package researchstack.backend.integration.adapter.outgoing
import researchstack.backend.grpc.AppLog
import researchstack.backend.grpc.AppLogServiceGrpcKt.AppLogServiceCoroutineStub
import researchstack.backend.integration.outport.AppLogOutPort
import javax.inject.Inject
class AppLogAdapter @Inject constructor(
pr... | 0 | Kotlin | 20 | 26 | 58b4b9b64623a7d2a0865307d490a59a7538d7cd | 556 | app-sdk | Apache License 2.0 |
dsl/src/main/kotlin/io/cloudshiftdev/awscdkdsl/services/sam/CfnFunctionLogGroupSAMPTPropertyDsl.kt | cloudshiftinc | 667,063,030 | false | {"Kotlin": 70198112} | @file:Suppress(
"RedundantVisibilityModifier",
"RedundantUnitReturnType",
"RemoveRedundantQualifierName",
"unused",
"UnusedImport",
"ClassName",
"REDUNDANT_PROJECTION",
"DEPRECATION"
)
package io.cloudshiftdev.awscdkdsl.services.sam
import io.cloudshiftdev.awscdkdsl.common.CdkDslMarker... | 3 | Kotlin | 0 | 3 | 256ad92aebe2bcf9a4160089a02c76809dbbedba | 1,299 | awscdk-dsl-kotlin | Apache License 2.0 |
console/src/main/java/com/jraska/console/ConsoleController.kt | jraska | 46,227,952 | false | null | package com.jraska.console
import android.os.Handler
import android.os.Looper
import android.os.Message
import android.text.SpannableString
import android.widget.TextView
import java.lang.ref.WeakReference
import java.util.ArrayList
internal class ConsoleController {
val consoles: MutableList<WeakReference<Consol... | 1 | null | 16 | 129 | 0af968f742d9ed928288f69829df41033c187c29 | 2,097 | Console | Apache License 2.0 |
androidApp/src/main/java/gcu/production/stavlenta/android/domain/models/base/HomeModel.kt | Ilyandr | 576,032,482 | false | null | package gcu.production.stavlenta.android.domain.models.base
import androidx.annotation.StringRes
import gcu.production.stavlenta.repository.model.TapeModel
internal sealed class HomeModel {
object DefaultState: HomeModel()
object LoadingState: HomeModel()
data class SuccessLoadState(val data: List<Tap... | 0 | Kotlin | 0 | 1 | 4e797410e7482cffebdc5b988fa7819b3ebd4a77 | 418 | StavLenta-multiplatform | MIT License |
kotest-framework/kotest-framework-engine/src/commonMain/kotlin/io/kotest/engine/ConcurrentTestSuiteScheduler.kt | kotest | 47,071,082 | false | null | package io.kotest.engine
import io.kotest.common.ExperimentalKotest
import io.kotest.core.annotation.DoNotParallelize
import io.kotest.core.annotation.Isolate
import io.kotest.core.project.TestSuite
import io.kotest.core.spec.SpecRef
import io.kotest.engine.concurrency.defaultCoroutineDispatcherFactory
import io.kotes... | 98 | null | 648 | 4,435 | 2ce83d0f79e189c90e2d7bb3d16bd4f75dec9c2f | 3,224 | kotest | Apache License 2.0 |
modules/backend/discord/src/main/kotlin/com/lhwdev/bot/backend/discord/DiscordBackend.kt | lhwdev | 412,778,971 | false | {"Kotlin": 64983} | package com.lhwdev.bot.backend.discord
import com.lhwdev.bot.backend.BotBackend
import dev.kord.core.Kord
import dev.kord.core.behavior.reply
import dev.kord.core.event.interaction.InteractionCreateEvent
import dev.kord.core.event.message.MessageCreateEvent
import dev.kord.core.on
class DiscordBackend : BotBackend {... | 0 | Kotlin | 0 | 0 | 0f3c0ae152d4bb10e7883cb0fa6dc35fe08edcfb | 510 | lhwdev-bot | MIT License |
inputview-transform/src/main/kotlin/com/xiaocydx/inputview/transform/transformer/TransformerOwner.kt | xiaocydx | 586,406,251 | false | {"Kotlin": 492620} | /*
* Copyright 2023 xiaocydx
*
* 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... | 0 | Kotlin | 0 | 7 | 2006486734eefe98bbc3dd432bde44cac267dbee | 3,627 | InputView | Apache License 2.0 |
compiler/ir/backend.jvm/src/org/jetbrains/kotlin/backend/jvm/DeclarationOrigins.kt | android | 263,405,600 | false | null | /*
* Copyright 2010-2020 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.backend.jvm
import org.jetbrains.kotlin.ir.declarations.IrDeclarationOrigin
impo... | 1 | null | 37 | 316 | 74126637a097f5e6b099a7b7a4263468ecfda144 | 4,058 | kotlin | Apache License 2.0 |
voice/src/main/kotlin/com/algolia/instantsearch/voice/VoiceSpeechRecognizer.kt | algolia | 139,958,370 | false | null | package com.algolia.instantsearch.voice
import android.content.Context
import android.content.Intent
import android.speech.RecognitionListener
import android.speech.RecognizerIntent
import android.speech.SpeechRecognizer
class VoiceSpeechRecognizer(
context: Context,
private val maxResults: Int = 1,
priv... | 2 | Kotlin | 28 | 206 | 96e7d9c98fe40cbcd85afa0e8e1eeb33b374063f | 1,730 | voice-overlay-android | MIT License |
media/audio-ui/src/main/java/com/google/android/horologist/audio/ui/VolumePositionIndicator.kt | google | 451,563,714 | 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | 71 | null | 93 | 565 | bde87db14f63338904550fc1827d0141ebe24d9a | 2,596 | horologist | Apache License 2.0 |
app/src/main/java/com/kylix/submissionbfaa_2/activities/SplashActivity.kt | KylixEza | 291,975,162 | false | null | package com.kylix.submissionbfaa_2.activities
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.os.Handler
import com.kylix.submissionbfaa_2.databinding.ActivitySplashBinding
class SplashActivity : AppCompatActivity() {
private lateinit var splas... | 0 | Kotlin | 1 | 5 | 5408eca132e54cdddd740aa081059f6be0529cf4 | 825 | Submission-BFAA2-Dicoding | MIT License |
src/main/kotlin/no/nav/bakveientilarbeid/http/httpClient.kt | navikt | 434,142,476 | false | null | package no.nav.bakveientilarbeid.http
import io.ktor.client.*
import io.ktor.client.call.*
import io.ktor.client.request.*
import io.ktor.client.statement.*
import io.ktor.http.*
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext
import no.nav.bakveientilarbeid.auth.AccessToken
import java.net... | 0 | Kotlin | 0 | 0 | 40a279221f09d863237a5d6515adc2853fbec5b6 | 2,288 | bakveientilarbeid | MIT License |
src/main/kotlin/io/mverse/kslack/api/methods/request/channels/ChannelsUnarchiveRequest.kt | mverse | 161,946,116 | true | {"Kotlin": 403852} | package io.mverse.kslack.api.methods.request.channels
import io.mverse.kslack.api.methods.SlackApiRequest
data class ChannelsUnarchiveRequest(
/**
* Authentication token. Requires scope: `channels:write`
*/
override var token: String? = null,
/**
* Channel to unarchive
*/
val channel: String? = ... | 0 | Kotlin | 0 | 0 | 9ebf1dc13f6a3d89a03af11a83074a4d636cb071 | 342 | jslack | MIT License |
im-access/src/main/kotlin/com/qingzhu/imaccess/socketio/AckUtils.kt | nedphae | 322,789,778 | false | {"Kotlin": 744301, "ANTLR": 281490, "Java": 48298, "Dockerfile": 375} | package com.qingzhu.imaccess.socketio
import com.corundumstudio.socketio.AckCallback
import com.corundumstudio.socketio.AckRequest
import com.corundumstudio.socketio.SocketIOClient
import com.qingzhu.common.message.Header
import com.qingzhu.common.util.JsonUtils
import com.qingzhu.imaccess.domain.view.WebSocketRespons... | 1 | Kotlin | 18 | 42 | 217b4658508763133e1a5b6a96763a14e9f6f4ad | 3,727 | contact-center | Apache License 2.0 |
allure-android/src/espresso/kotlin/ru/tinkoff/allure/CrashTestActivity.kt | davidbugayov | 130,863,181 | false | null | package ru.tinkoff.allure
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.widget.Button
import rx.Observable
import rx.schedulers.Schedulers
class CrashTestActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedIns... | 0 | null | 0 | 1 | 7e9e0fbb09c682cd467e21269cb660b1e0e24421 | 1,015 | allure-android | Apache License 2.0 |
app/src/main/java/com/entelgy/marvel/data/model/imageformats/StandardImage.kt | Riflin | 479,453,421 | false | {"Kotlin": 260458} | package com.entelgy.marvel.data.model.imageformats
enum class StandardImage(private val format: String): ImageFormat {
Small("standard_small"),
Medium("standard_medium"),
Xlarge("standard_xlarge"),
Fantastic("standard_fantastic"),
Uncanny("standard_uncanny"),
Incredible("standard_incredib... | 0 | Kotlin | 0 | 0 | 62f8d9e49748412d65ef9d48808867a8c89f206e | 396 | marvel | Apache License 2.0 |
kt.kt | darian-catalin-cucer | 598,115,618 | false | null | fun knuthMorrisPratt(text: String, pattern: String): Int {
val n = text.length
val m = pattern.length
val lps = IntArray(m)
var j = 0
var i = 0
computeLPSArray(pattern, m, lps)
while (i < n) {
if (pattern[j] == text[i]) {
j++
i++
}
if (j == m... | 0 | Kotlin | 0 | 0 | e0733bd8986c3b71ac29161ac21f13c67c032e0e | 970 | kmp-algorithm | MIT License |
app/src/main/java/com/adematici/kotlincoroutines/CoroutineswithContext.kt | aticiadem | 340,420,090 | false | null | package com.adematici.kotlincoroutines
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch
import kotlinx.coroutines.runBlocking
import kotlinx.coroutines.withContext
fun main(){
runBlocking {
launch(Dispatchers.Default) {
println("Context: $coroutineContext")
wi... | 1 | null | 2 | 8 | 26566603cb66c26b0055d3d7a000e18eef0fc593 | 432 | KotlinCoroutines | MIT License |
tilbakekreving/infrastructure/src/main/kotlin/tilbakekreving/infrastructure/repo/oppdatertKravgrunnlag/OppdatertKravgrunnlagHendelse.kt | navikt | 227,366,088 | false | {"Kotlin": 9035699, "Shell": 4369, "TSQL": 1233, "Dockerfile": 800} | package tilbakekreving.infrastructure.repo.oppdatertKravgrunnlag
import no.nav.su.se.bakover.common.deserialize
import no.nav.su.se.bakover.common.ident.NavIdentBruker
import no.nav.su.se.bakover.common.serialize
import no.nav.su.se.bakover.common.tid.Tidspunkt
import no.nav.su.se.bakover.hendelse.domain.DefaultHendel... | 2 | Kotlin | 1 | 1 | 9ffc57c2d6c8c7138261186e1119ad7764bc40d3 | 1,981 | su-se-bakover | MIT License |
src/main/kotlin/adventofcode/day21.kt | Kvest | 163,103,813 | false | null | package adventofcode
import java.io.File
/*
r[5] = 123 seti 123 0 5
r[5] = r[5] and 456 bani 5 456 5
r[5] = if (r[5] == 72) 1 else 0 eqri 5 72 5
r[1] = r[5] + r[1] addr 5 1 1
r[1] = 0 seti 0 0 1
r[5] = 0 seti 0 3 5
r[4] = r[5] or 65536 bori 5 65536 4
r[5] = 13_... | 0 | Kotlin | 0 | 0 | d94b725575a8a5784b53e0f7eee6b7519ac59deb | 2,661 | aoc2018 | Apache License 2.0 |
app/src/main/java/com/example/sampledataapp/data/Repository.kt | ehsansouri23 | 228,077,782 | false | null | package com.example.sampledataapp.data
import com.example.sampledataapp.data.model.Address
import com.example.sampledataapp.network.Api
class Repository(private val api: Api) : BaseRepository() {
suspend fun getAddresses(): Result<List<Address>> = safeApiCall { api.getAddresses() }
suspend fun addAddress(ad... | 0 | Kotlin | 0 | 0 | 03221844ea1bfda7dd0bdce59465646eb7284da8 | 404 | sample-data-app | Apache License 2.0 |
bitcoincore/src/main/kotlin/io/definenulls/bitcoincore/managers/UnspentOutputProvider.kt | toEther | 677,363,684 | false | null | package io.definenulls.bitcoincore.managers
import io.definenulls.bitcoincore.core.IStorage
import io.definenulls.bitcoincore.core.PluginManager
import io.definenulls.bitcoincore.models.BalanceInfo
import io.definenulls.bitcoincore.storage.UnspentOutput
class UnspentOutputProvider(private val storage: IStorage, priva... | 0 | Kotlin | 0 | 0 | bbd7c809a027dd33c1fd393f6a53684d84dcbe14 | 1,590 | bitcoin-kit-android_s | MIT License |
app/src/main/java/com/babylon/wallet/android/presentation/wallet/WalletViewModel.kt | radixdlt | 513,047,280 | false | {"Kotlin": 4174674, "HTML": 215350, "Java": 18496, "Ruby": 2757, "Shell": 1962} | package com.babylon.wallet.android.presentation.wallet
import androidx.lifecycle.viewModelScope
import com.babylon.wallet.android.domain.common.onError
import com.babylon.wallet.android.domain.common.onValue
import com.babylon.wallet.android.domain.model.assets.AccountWithAssets
import com.babylon.wallet.android.domai... | 9 | Kotlin | 8 | 6 | 10eee604bc12b09f4326ce6d935a2848e363d74e | 11,166 | babylon-wallet-android | Apache License 2.0 |
src/commonMain/kotlin/com/github/dwursteisen/minigdx/ecs/components/text/SequentialTextEffect.kt | minigdx | 241,479,001 | false | null | package com.github.dwursteisen.minigdx.ecs.components.text
import com.github.dwursteisen.minigdx.Seconds
class SequentialTextEffect(private val sequence: List<TextEffect>) : TextEffect {
private var currentEffect = 0
override var isFinished: Boolean
get() = sequence.last().isFinished
set(_) ... | 2 | Kotlin | 5 | 98 | ca4065239c1d9e1f7f9a4d21f535e7a2f082c65a | 947 | minigdx | MIT License |
app/src/main/java/com/dscoding/awesomeuidesign/ui/theme/Color.kt | diogosantos41 | 528,414,629 | false | null | package com.dscoding.awesomeuidesign.ui.theme
import androidx.compose.ui.graphics.Color
val Purple200 = Color(0xFFBB86FC)
val Purple500 = Color(0xFF6200EE)
val Purple700 = Color(0xFF3700B3)
val Teal200 = Color(0xFF03DAC5)
val GreyDark = Color(0xFF333333)
val GreyLight = Color(0xFFEEEEEE)
val WhiteDirty = Color(0xFFF... | 0 | Kotlin | 0 | 0 | 4fa2312bc568109a969336c062e3949252a4931b | 488 | awesome-ui-design-android | MIT License |
rxmedia/src/main/java/com/featzima/rxmedia/video/RxVideoCodec.kt | featzima | 114,471,755 | false | null | package com.featzima.rxmedia.video
import android.annotation.SuppressLint
import android.graphics.Bitmap
import android.graphics.Rect
import android.media.MediaCodec
import android.media.MediaCodecInfo
import android.media.MediaFormat
import android.media.MediaFormat.*
import android.util.Log
import com.featzima.rxmed... | 0 | Kotlin | 0 | 5 | 773cea6717a923d6208892a8c799db39b7e003f3 | 6,810 | rxmedia | Apache License 2.0 |
sessionkotlin/lib/src/main/kotlin/com/github/sessionkotlin/lib/dsl/exception/UndefinedRecursionVariableException.kt | sessionkotlin | 467,159,660 | false | {"Kotlin": 365663, "Makefile": 1801} | package com.github.sessionkotlin.lib.dsl.exception
import com.github.sessionkotlin.lib.dsl.RecursionTag
/**
* Thrown when attempting to use recursion tag that is not defined.
*/
internal class UndefinedRecursionVariableException(i: RecursionTag) :
SessionKotlinDSLException("Recursion variable $i undefined.")
| 0 | Kotlin | 0 | 1 | 558837e9525987c9196e00f796489c041928a50d | 318 | sessionkotlin | MIT License |
sessionkotlin/lib/src/main/kotlin/com/github/sessionkotlin/lib/dsl/exception/UndefinedRecursionVariableException.kt | sessionkotlin | 467,159,660 | false | {"Kotlin": 365663, "Makefile": 1801} | package com.github.sessionkotlin.lib.dsl.exception
import com.github.sessionkotlin.lib.dsl.RecursionTag
/**
* Thrown when attempting to use recursion tag that is not defined.
*/
internal class UndefinedRecursionVariableException(i: RecursionTag) :
SessionKotlinDSLException("Recursion variable $i undefined.")
| 0 | Kotlin | 0 | 1 | 558837e9525987c9196e00f796489c041928a50d | 318 | sessionkotlin | MIT License |
src/main/kotlin/com/github/mrgaabriel/ayla/commands/CommandCategory.kt | MrGaabriel | 143,538,052 | false | null | package com.github.mrgaabriel.ayla.commands
enum class CommandCategory(val fancyName: String, val description: String, val showOnHelp: Boolean = true) {
CONFIG("Configuração", "Comandos relacionados a configuração dos módulos da Ayla no seu servidor"),
DEVELOPER("Desenvolvedor", "Comandos que só o desenvolved... | 20 | Kotlin | 1 | 4 | 51768344e6b0b53fbbb5fb298cb88dea848a5faa | 752 | Ayla | MIT License |
src/main/kotlin/net/meilcli/klinq/internal/Grouping.kt | MeilCli | 47,538,344 | false | null | package net.meilcli.klinq.internal
import net.meilcli.klinq.Enumerable
import net.meilcli.klinq.IGrouping
internal class Grouping<TKey, TElement> : Enumerable<TElement>, IGrouping<TKey, TElement> {
override var key: TKey
constructor(key: TKey, iterable: Iterable<TElement>) : super(iterable) {
this.k... | 0 | Kotlin | 0 | 2 | 1ceed0aeb6d7646ee66a9c3b0bf9f3b743f160b3 | 336 | KLinq | MIT License |
bot/storage-mongo/target/generated-sources/kapt/compile/fr/vsct/tock/translator/I18nLabel_.kt | sycomix | 141,590,702 | true | {"Kotlin": 2056557, "TypeScript": 333554, "HTML": 133330, "CSS": 31450, "JavaScript": 5174, "Shell": 1585} | package fr.vsct.tock.translator
import java.util.LinkedHashSet
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Collection
import kotlin.reflect.KProperty1
import org.litote.kmongo.Id
import org.litote.kmongo.property.KCollectionPropertyPath
import org.litote.kmongo.property.KPropertyPath
class I... | 0 | Kotlin | 0 | 0 | eaf43d68e8ab475707faa44d84911db717c74885 | 2,689 | tock | Apache License 2.0 |
src/main/kotlin/org/docksidestage/app/web/startup/StartupBean.kt | t-kameyama | 155,081,790 | true | {"Maven POM": 1, "XML": 21, "EditorConfig": 1, "Markdown": 7, "Text": 26, "Ignore List": 13, "INI": 5, "Kotlin": 75, "HTML": 37, "CSS": 6, "JavaScript": 5, "Java": 222, "Java Properties": 10, "JSON": 6, "JSON with Comments": 2, "Shell": 24, "Batchfile": 28, "SQL": 6, "Roff": 1, "Perl": 3, "Python": 1, "XSLT": 14} | package org.docksidestage.app.web.startup
import org.lastaflute.web.validation.Required
/**
* @author iwamatsu0430
* @author jflute
*/
class StartupBean(@field:Required
val projectPath: String)
| 0 | Java | 1 | 0 | a1544951284d5e2ed7b46583c5175c54045c08d3 | 217 | lastaflute-example-paradeplaza | Apache License 2.0 |
storage/src/main/java/com/nikitamaslov/storage/model/single/SingleForecastEntity.kt | nikitamasloff | 173,980,211 | false | null | package com.nikitamaslov.storage.model.single
import com.nikitamaslov.storage.model.common.WeatherEntity
import com.nikitamaslov.storage.model.def.TemperatureUnitEntity
import io.realm.RealmList
import io.realm.RealmObject
import io.realm.annotations.PrimaryKey
import io.realm.annotations.RealmField
internal open cla... | 0 | null | 0 | 0 | 110fb59984f7f376c982b68056efed91b6247b4b | 2,791 | weatherr | Apache License 2.0 |
idea/testData/intentions/usePropertyAccessSyntax/setAsExpressionBody.kt | JakeWharton | 99,388,807 | false | null | // WITH_RUNTIME
fun foo(thread: Thread) = thread.setName("<name>")<caret> | 0 | null | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 73 | kotlin | Apache License 2.0 |
01_KOTLIN/triple7/src/main/kotlin/lambda_04/Chapter5.kt | singhtwenty2 | 743,251,401 | false | {"Kotlin": 215510, "Java": 16634} | package lambda_04
// Higher Order Functions
fun main() {
/*
Higher order funs : Accpets one or more functions as parameters & also can return
a fun as a value it treats funs as first class objs.
*/
val addResult = operateOnNumbers(
a = 4,
b = 6
) { x, y -> x + y }
val subtr... | 0 | Kotlin | 0 | 1 | 37cf9cd2dd890ccd96f0691e250a2573f6e9df0d | 726 | AndroidWithKotlinJourney | MIT License |
app/src/main/java/org/wikipedia/suggestededits/SuggestedEditsTasksFragment.kt | xCBATMANx | 262,012,382 | false | {"INI": 2, "Shell": 7, "YAML": 1, "Gradle": 6, "Text": 2, "Markdown": 2, "Batchfile": 1, "Ignore List": 2, "XML": 561, "Java Properties": 3, "SVG": 1, "Python": 5, "Jinja": 1, "Proguard": 2, "JSON": 54, "Java": 619, "CSS": 2, "JavaScript": 3, "HTML": 1, "Kotlin": 65} | package org.wikipedia.suggestededits
import android.content.Intent
import android.os.Bundle
import android.view.*
import android.view.View.GONE
import android.view.View.VISIBLE
import android.widget.Toast
import androidx.core.widget.NestedScrollView
import androidx.fragment.app.Fragment
import androidx.recyclerview.wi... | 1 | null | 1 | 1 | f2e17e204f944b47ebef4b88888c48134bc4ae99 | 19,222 | apps-android-wikipedia | Apache License 2.0 |
crystal-map-connector/src/test/kotlin/ch/ergon/dope/extensions/type/stringfunction/MBPosition1Test.kt | ergon | 745,483,606 | false | {"Kotlin": 1598239} | package ch.ergon.dope.extensions.type.stringfunction
import ch.ergon.dope.DopeQueryManager
import ch.ergon.dope.extension.type.stringfunction.mbPosition1
import ch.ergon.dope.helper.ManagerDependentTest
import ch.ergon.dope.helper.someCMStringField
import ch.ergon.dope.helper.someString
import ch.ergon.dope.helper.som... | 5 | Kotlin | 0 | 6 | 68697444eff3f46c4293438d060fb69a8f4cde9f | 2,586 | dope-query-builder | MIT License |
model/src/test/kotlin/com/android/gradle/replicator/model/internal/ModuleAdapterTest.kt | Saiprasad16 | 366,004,003 | false | null | /*
* Copyright (C) 2020 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 app... | 0 | null | 0 | 1 | f011487876f47c13fe338544410b3231f834b415 | 4,040 | project-replicator | Apache License 2.0 |
android-npw/src/com/android/tools/idea/npw/model/NewTemplateRenderer.kt | JetBrains | 60,701,247 | false | null | /*
* Copyright (C) 2019 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 app... | 5 | null | 230 | 948 | 10110983c7e784122d94c7467e9d243aba943bf4 | 20,215 | android | Apache License 2.0 |
jb/src/main/kotlin/extensions/SelectionEvent.kt | TeamCodeStream | 148,423,109 | false | null | package com.codestream.extensions
import com.codestream.protocols.webview.EditorSelection
import com.intellij.openapi.editor.event.SelectionEvent
import org.eclipse.lsp4j.Range
val SelectionEvent.editorSelections: List<EditorSelection>
get() = newRanges.map {
EditorSelection(
editor.document.l... | 21 | null | 182 | 930 | 3989ca8f40ab33312f32887bf390262323676b5e | 661 | codestream | Apache License 2.0 |
stratum/server/src/main/kotlin/org/apache/tuweni/stratum/server/JsonRpc.kt | apache | 178,461,625 | false | null | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 6 | null | 78 | 171 | 0852e0b01ad126b47edae51b26e808cb73e294b1 | 1,796 | incubator-tuweni | Apache License 2.0 |
beagle/src/main/kotlin/br/com/zup/beagle/android/networking/HttpMethod.kt | ZupIT | 391,144,851 | false | null | /*
* Copyright 2020 ZUP IT SERVICOS EM TECNOLOGIA E INOVACAO SA
*
* 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... | 5 | null | 2 | 9 | 812a330777edd79a123495e9f678dc8f25a019f7 | 1,923 | beagle-android | Apache License 2.0 |
app/src/main/java/com/eyther/lumbridge/usecase/shopping/SaveShoppingListUseCase.kt | ruialmeida51 | 249,223,684 | false | {"Kotlin": 904675} | package com.eyther.lumbridge.usecase.shopping
import com.eyther.lumbridge.domain.repository.shopping.ShoppingRepository
import com.eyther.lumbridge.mapper.shopping.toDomain
import com.eyther.lumbridge.model.shopping.ShoppingListUi
import javax.inject.Inject
class SaveShoppingListUseCase @Inject constructor(
priva... | 6 | Kotlin | 0 | 7 | 5dd18b22448b2435f0238cccfc11a6826f200748 | 511 | lumbridge-android | MIT License |
feature-train/src/main/java/com/dragote/feature/train/training/domain/entity/Answers.kt | Dragote | 718,160,762 | false | {"Kotlin": 147679} | package com.dragote.feature.train.training.domain.entity
import com.dragote.shared.country.domain.entity.Country
data class Answers(
val correctCountry : Country,
val options: List<Country>
) | 0 | Kotlin | 0 | 2 | 59d44860a9a74bd8824e6e617f834102a3a1f7b1 | 201 | Flapp | MIT License |
compose-mds/src/main/java/ch/sbb/compose_mds/sbbicons/medium/SeatAisleReservationMedium.kt | SchweizerischeBundesbahnen | 853,290,161 | false | {"Kotlin": 6728512} | package ch.sbb.compose_mds.sbbicons.medium
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.EvenOdd
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Mi... | 0 | Kotlin | 0 | 1 | 090a66a40e1e5a44d4da6209659287a68cae835d | 3,631 | mds-android-compose | MIT License |
compose-mds/src/main/java/ch/sbb/compose_mds/sbbicons/medium/SeatAisleReservationMedium.kt | SchweizerischeBundesbahnen | 853,290,161 | false | {"Kotlin": 6728512} | package ch.sbb.compose_mds.sbbicons.medium
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.EvenOdd
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Mi... | 0 | Kotlin | 0 | 1 | 090a66a40e1e5a44d4da6209659287a68cae835d | 3,631 | mds-android-compose | MIT License |
aboutlibraries/src/main/java/com/mikepenz/aboutlibraries/ui/LibsSupportFragment.kt | mikepenz | 19,025,014 | false | null | package com.mikepenz.aboutlibraries.ui
import android.os.Bundle
import android.util.Log
import android.view.Gravity
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Filter
import android.widget.Filterable
import androidx.fragment.app.Fragment
import androi... | 6 | null | 419 | 3,604 | e8a4fe3aa5b963205c986d1e0f768ca96ede3c86 | 4,118 | AboutLibraries | Apache License 2.0 |
src/main/kotlin/org/imyuyu/idea/plugins/filesync/ui/config/ConfigPanel.kt | imyuyu | 495,438,091 | false | {"Kotlin": 164280} | package org.imyuyu.idea.plugins.filesync.ui.config
import com.intellij.ide.plugins.PluginManagerCore
import com.intellij.openapi.extensions.PluginId
import com.intellij.openapi.project.Project
import com.intellij.ui.components.JBLabel
import com.intellij.ui.components.JBPanel
import com.intellij.ui.components.JBTabbed... | 0 | Kotlin | 0 | 0 | 167b23f3850fdd6d4831b38a71af154b95767c8b | 2,855 | FileSyncPlugin | MIT License |
api/src/main/kotlin/org/jetbrains/kotlinx/dl/api/core/layer/reshaping/AbstractUpSampling.kt | JetBrains | 249,948,572 | false | null | /*
* Copyright 2021-2022 JetBrains s.r.o. and Kotlin Deep Learning project contributors. All Rights Reserved.
* Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE.txt file.
*/
package org.jetbrains.kotlinx.dl.api.core.layer.reshaping
import org.jetbrains.kotlinx.dl.api.c... | 81 | Kotlin | 79 | 806 | efaa1ebdf7bf9a131826d3ded42e1eb178e4fd19 | 3,040 | KotlinDL | Apache License 2.0 |
feature/system/src/main/java/io/github/droidkaigi/confsched2020/system/ui/viewmodel/SystemViewModel.kt | DroidKaigi | 202,978,106 | false | null | package io.github.droidkaigi.confsched2020.system.ui.viewmodel
import android.app.Activity
import android.content.ActivityNotFoundException
import android.content.Intent
import android.net.Uri
import android.provider.CalendarContract
import androidx.core.app.ShareCompat
import androidx.lifecycle.LiveData
import androi... | 46 | null | 331 | 785 | 4c5533e4611d4bf6007284dd1f61db2fc92eb0ae | 2,552 | conference-app-2020 | Apache License 2.0 |
app/src/main/java/com/gaurav/budgetplanner/features/expensetracker/presentation/Adapters/RecordAdapter.kt | gaurav822 | 631,181,621 | false | null | package com.gaurav.budgetplanner.features.expensetracker.presentation.Adapters
import android.annotation.SuppressLint
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import com.gaurav.budgetplanner.R
import com.gaurav.bud... | 0 | Kotlin | 0 | 0 | 0c4e874bb3eb80ffc9054fe105d8d594fdec627f | 2,329 | Budget-Planner | MIT License |
responses/src/commonMain/kotlin/ru/krindra/vkkt/responses/ads/AdsGetUploadURLResponse.kt | krindra | 780,080,411 | false | {"Kotlin": 1336107} | package ru.krindra.vkkt.responses.ads
import ru.krindra.vkkt.objects.ads.*
typealias AdsGetUploadURLResponse = String
| 0 | Kotlin | 0 | 1 | 58407ea02fc9d971f86702f3b822b33df65dd3be | 120 | VKKT | MIT License |
app/src/main/java/com/android_algo/presentation/randomwalk/RandomWalkViewModel.kt | julianczaja | 399,513,595 | false | null | package com.android_algo.presentation.randomwalk
import androidx.lifecycle.ViewModel
class RandomWalkViewModel : ViewModel() {
// TODO: Implement the ViewModel
} | 0 | Kotlin | 1 | 1 | de94518a3eb4440d56779c5106c669feb0a26167 | 167 | android_algo | MIT License |
kevs-rabbitmq/src/jvmMain/kotlin/io/kevs/station/rabbitmq/subscriber/EventSubscriberSpecification.kt | MikiLoz92 | 502,142,453 | false | null | package io.kevs.station.rabbitmq.subscriber
import kotlin.reflect.KClass
/**
* A class that is populated with all relevant information of an [EventSubscriber] in order for you to provide other
* relevant elements that are required for Kevs to function.
*/
data class EventSubscriberSpecification(
val clazz: KCl... | 0 | Kotlin | 0 | 0 | 861b0e117c6af98311983d6623882534ff32cebd | 379 | kevs | MIT License |
app/app/src/main/java/com/example/genshin_wiki/repository/dungeon_resource/DungeonResourceNetworkRepository.kt | SlavaPerryAyeKruchkovenko | 600,055,723 | false | null | package com.example.genshin_wiki.repository.dungeon_resource
import com.example.genshin_wiki.data.responses.DungeonResourceListResponse
import com.example.genshin_wiki.networks.RetrofitBuilder
import com.example.genshin_wiki.networks.repositories.IDungeonResourceNetworkRepository
import retrofit2.Response
class Dunge... | 0 | Kotlin | 0 | 0 | 644286da5dbd69b586ff8761e75ad80ede7a0cdf | 558 | Genshin_Wiki | MIT License |
library/src/main/java/com/magical/location/MagicalLocationManager.kt | raedev | 558,713,495 | false | {"Kotlin": 59040} | package com.magical.location
import android.annotation.SuppressLint
import android.content.Context
import android.location.Location
import android.location.LocationManager
import com.magical.location.LocationPermission.isPermissionGranted
import com.magical.location.internal.Log
/**
* 位置信息上下文
* @author RAE
* @date... | 1 | Kotlin | 0 | 2 | ad3b54f7959dd1253da00990b02b08d332d94ee3 | 1,971 | magical-location-client | Apache License 2.0 |
shared/src/commonTest/kotlin/com/inspiredandroid/braincup/Tests.kt | SimonSchubert | 189,719,690 | false | null | package com.inspiredandroid.braincup
import com.inspiredandroid.braincup.api.UserStorage
import com.inspiredandroid.braincup.games.*
import com.inspiredandroid.braincup.games.tools.Calculator
import kotlin.test.Test
import kotlin.test.assertEquals
class Tests {
@Test
fun calculator() {
assertEquals(3... | 2 | null | 7 | 145 | 2339863e22d95744dcd74fc7a3b5997e392ec1b3 | 3,338 | Braincup | Apache License 2.0 |
backend/src/test/kotlin/ch/uzh/ifi/seal/DTOs/ScheduleDTOTest.kt | sealuzh | 112,313,865 | false | null | package ch.uzh.ifi.seal.DTOs
import ch.uzh.ifi.seal.business_logic.findOverlappingEvents
import ch.uzh.ifi.seal.domain_classes.*
import org.junit.Assert.assertEquals
import org.junit.Test
import org.optaplanner.core.api.score.buildin.hardsoft.HardSoftScore
import java.time.LocalDate
import java.time.LocalTime
/**
* ... | 0 | Kotlin | 1 | 5 | 43c949b8d12c75edd72b4f055ba36cd025d5f6ff | 3,235 | DayO | MIT License |
src/main/kotlin/csense/idea/base/bll/kotlin/KtThrowExpression.kt | csense-oss | 226,373,994 | false | {"Kotlin": 152974} | @file:Suppress("unused")
package csense.idea.base.bll.kotlin
import csense.idea.base.bll.psiWrapper.`class`.*
import csense.idea.base.bll.psiWrapper.`class`.operations.*
import org.jetbrains.kotlin.psi.*
import org.jetbrains.kotlin.types.*
fun KtThrowExpression.resolveThrownTypeOrNull(): KtPsiClass? {
return tr... | 0 | Kotlin | 0 | 0 | f819f9497145d10e25e015fe9db4634a7c73798c | 905 | idea-kotlin-shared-base | MIT License |
src/main/kotlin/us/jwf/aoc2017/Day04Passphrases.kt | jasonwyatt | 318,073,137 | false | null | package us.jwf.aoc2017
import java.io.Reader
import us.jwf.aoc.Day
/**
* AoC 2017 - Day 4
*/
class Day04Passphrases : Day<Int, Int> {
override suspend fun executePart1(input: Reader): Int {
return input.readLines().count { it.noDuplicates() }
}
override suspend fun executePart2(input: Reader): Int {
... | 0 | Kotlin | 0 | 0 | 0c92a62ba324aaa1f21d70b0f9f5d1a2c52e6868 | 963 | AdventOfCode-Kotlin | Apache License 2.0 |
dokka-runners/dokka-gradle-plugin/src/main/kotlin/formats/DokkaPublication.kt | Kotlin | 21,763,603 | false | {"Kotlin": 4076594, "CSS": 63880, "JavaScript": 39656, "TypeScript": 16774, "SCSS": 8881, "HTML": 6860, "FreeMarker": 4120, "Shell": 3948, "Java": 1147} | /*
* Copyright 2014-2024 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
package org.jetbrains.dokka.gradle.formats
import org.gradle.api.Named
import org.gradle.api.file.ConfigurableFileCollection
import org.gradle.api.file.DirectoryProperty
import org.gradle.api.plugins.Extension... | 671 | Kotlin | 409 | 3,434 | ec28b78ee5b137ee989cd0203ef108b2a2ac4811 | 2,363 | dokka | Apache License 2.0 |
app/src/main/java/com/codepath/apps/twitterclone/ScrollAwareFABBehavior.kt | quocannguyen | 470,449,852 | false | {"Kotlin": 64385} | package com.codepath.apps.twitterclone
import android.content.Context
import android.util.AttributeSet
import android.view.View
import androidx.coordinatorlayout.widget.CoordinatorLayout
import androidx.core.view.ViewCompat
import com.google.android.material.floatingactionbutton.FloatingActionButton
import com.google.... | 1 | Kotlin | 0 | 0 | f6585274130d18d0b710225e9a4a5c2fdd946aaf | 1,992 | TwitterClone_RestClientTemplate | Apache License 2.0 |
app/src/main/java/uk/nhs/nhsx/sonar/android/app/registration/TokenRetriever.kt | nhsx | 261,523,644 | false | null | /*
* Copyright © 2020 NHSX. All rights reserved.
*/
package uk.nhs.nhsx.sonar.android.app.registration
import com.google.firebase.iid.FirebaseInstanceId
import timber.log.Timber
import javax.inject.Inject
import kotlin.coroutines.resume
import kotlin.coroutines.resumeWithException
import kotlin.coroutines.suspendCo... | 0 | Kotlin | 146 | 793 | ebcb3221b89333d9f555592aebc934d06608d784 | 1,630 | COVID-19-app-Android-BETA | MIT License |
core-starter/src/main/kotlin/com/labijie/application/localization/LocalizationMessageSource.kt | hongque-pro | 309,874,586 | false | {"Kotlin": 1044723, "Java": 72766} | package com.labijie.application.localization
import com.labijie.application.service.ILocalizationService
import org.slf4j.LoggerFactory
import org.springframework.context.*
import org.springframework.context.support.MessageSourceAccessor
import java.util.*
/**
* @author Anders Xiao
* @date 2023-12-06
*/
class Loca... | 0 | Kotlin | 0 | 8 | 33a2bdacbd3012343f51617ecfccd096e403db5f | 2,940 | application-framework | Apache License 2.0 |
shared/src/jvmMain/kotlin/com/prof18/feedflow/shared/domain/opml/OpmlOutput.kt | prof18 | 600,257,020 | false | {"Kotlin": 746513, "HTML": 182777, "Swift": 163455, "SCSS": 161629, "CSS": 16810, "Shell": 2392, "JavaScript": 1214} | package com.prof18.feedflow.shared.domain.opml
import java.io.File
actual data class OpmlOutput(
val file: File,
)
| 27 | Kotlin | 18 | 332 | 60c15c24c157e46625e05158c5d048d4ca4b7217 | 121 | feed-flow | Apache License 2.0 |
snapshots/sample/app/src/main/kotlin/com/emergetools/snapshots/sample/MainActivity.kt | EmergeTools | 645,957,551 | false | {"Kotlin": 255570} | package com.emergetools.snapshots.sample
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.layout.Column
import com.emergetools.snapshots.sample.ui.Greeting
import com.emergetools.snapshots.sample.ui.TextRowWithIcon
class... | 3 | Kotlin | 1 | 9 | 8174b9c6e2d7791e01363aabd4d287736bfa38c4 | 661 | emerge-android | Apache License 2.0 |
appholder/src/androidTest/java/com/android/mdl/app/selfsigned/SelfSignedScreenStateTest.kt | openwallet-foundation-labs | 248,844,077 | false | null | package com.android.mdl.app.selfsigned
import androidx.lifecycle.SavedStateHandle
import androidx.test.ext.junit.runners.AndroidJUnit4
import androidx.test.platform.app.InstrumentationRegistry
import com.android.identity.android.securearea.AndroidKeystoreSecureArea
import com.android.identity.android.storage.AndroidSt... | 99 | null | 83 | 163 | e6bf25766985521b9a39d4ed7999f22d57064db5 | 6,249 | identity-credential | Apache License 2.0 |
app/src/main/java/com/masterplus/trdictionary/features/category/presentation/components/SubCategoryItem.kt | Ramazan713 | 634,957,286 | false | {"Kotlin": 833205} | package com.masterplus.trdictionary.features.category.presentation.components
import androidx.annotation.DrawableRes
import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.f... | 0 | Kotlin | 0 | 1 | c60dfcf2d238fec26918b89e65d5f5075d2d3b68 | 2,697 | Turkce-ve-Osmanlica-Sozluk | Apache License 2.0 |
widgets-ktx/src/main/java/com/corphish/widgets/ktx/dialogs/MessageAlertDialog.kt | corphish | 230,289,421 | false | {"Gradle": 4, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 8, "Proguard": 2, "XML": 35, "JSON": 1, "Java": 1, "Kotlin": 25, "INI": 1} | /*
*
* Copyright (C) 2020 <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... | 0 | Kotlin | 1 | 0 | f1aebd6e7a71709ed12f07d9f65565ddcbbb5426 | 8,877 | widgets-ktx | Apache License 2.0 |
app/src/main/java/dev/patrickgold/florisboard/setup/SetupActivity.kt | hamedsj | 373,000,589 | false | null | package dev.patrickgold.florisboard.setup
import android.content.Context
import android.content.Intent
import android.os.Bundle
import android.view.View
import android.view.inputmethod.InputMethodManager
import androidx.appcompat.app.AppCompatActivity
import androidx.appcompat.app.AppCompatDelegate
import androidx.ap... | 0 | null | 0 | 1 | 671ff1d8b40f631aa68af30f47348608593fe891 | 6,365 | florisboard | Apache License 2.0 |
src/commonMain/kotlin/effect/CountdownText.kt | VANTAGAMES | 665,892,334 | false | null | package effect
import State
import korlibs.io.async.*
import korlibs.io.lang.*
import korlibs.korge.view.*
import korlibs.math.interpolation.*
import korlibs.time.*
fun State.countdownText() {
val count = 4
(1..count).forEach { num ->
txtWithFilter(if (num == count) "시작!" else " ${count - num} ") {
... | 6 | Kotlin | 0 | 3 | e9d5ee444646f99d43e25474d296c3393744ae17 | 2,927 | metronKt | MIT License |
feature/premieres/src/main/java/tech/dalapenko/premieres/di/PremieresModule.kt | dalapenko | 739,864,810 | false | {"Kotlin": 55397} | package tech.dalapenko.premieres.di
import dagger.Binds
import dagger.Module
import dagger.hilt.InstallIn
import dagger.hilt.android.components.ViewModelComponent
import tech.dalapenko.premieres.model.repository.PremiereRepository
import tech.dalapenko.premieres.model.repository.PremiereRepositoryImpl
@Module
@Instal... | 0 | Kotlin | 0 | 0 | db9e1fbb158681aabccfe9315ed63dfe7b73a20c | 479 | kinosearch | Apache License 2.0 |
aoc-2022/src/main/kotlin/aoc/aoc14.kts | triathematician | 576,590,518 | false | null | import aoc.AocParser.Companion.parselines
import aoc.AocRunner
import aoc.util.Coord
import aoc.print
val day = 14
val testInput = """
498,4 -> 498,6 -> 496,6
503,4 -> 502,4 -> 502,9 -> 494,9
""".parselines.map { it.split("->").map {
it.trim().split(",").let {
it[0].toInt() to it[1].toInt()
}
}}
val ... | 0 | Kotlin | 0 | 0 | c9d7309132e592c18aacda08b47baa0bdfc08c87 | 23,512 | advent-of-code | Apache License 2.0 |
app/src/main/java/com/waydroid/settings/fragments/SettingsFragment.kt | waydroid | 419,857,449 | false | {"Kotlin": 16891} | package com.waydroid.settings.fragments
import android.annotation.SuppressLint
import android.content.ComponentName
import android.content.Context
import android.content.Intent
import android.net.Uri
import android.os.Bundle
import android.util.Log
import androidx.preference.Preference
import androidx.preference.Prefe... | 0 | Kotlin | 2 | 1 | 778f3ef9c9f44f1b6811ed69f3b8c97f3069ddec | 6,935 | android_vendor_packages_apps_WaydroidSettings | Apache License 2.0 |
domain/src/main/java/com/tirgei/domain/models/Episode.kt | tirgei | 362,710,268 | false | null | package com.tirgei.domain.models
/**
* Model class for show episodes
*/
data class Episode(
val id: Int,
val name: String,
val airDate: String,
val episode: String,
val url: String,
val characters: List<Character>
)
| 0 | Kotlin | 0 | 1 | bcd982386c09c470da51c960ab38b4bdcc6a357f | 243 | rick-and-morty | The Unlicense |
src/test/kotlin/org/motivepick/web/TaskListServiceImplIntegrationTest.kt | motivepick | 143,636,614 | false | {"Kotlin": 96083, "Dockerfile": 433} | package org.motivepick.web
import com.github.springtestdbunit.annotation.DatabaseOperation.DELETE_ALL
import com.github.springtestdbunit.annotation.DatabaseSetup
import com.github.springtestdbunit.annotation.DatabaseTearDown
import com.github.springtestdbunit.annotation.DbUnitConfiguration
import org.assertj.core.api.... | 4 | Kotlin | 0 | 0 | 71d4214e21d2931b7753484784975fa84a3440e2 | 4,647 | motive-back-end | MIT License |
dsl/src/main/kotlin/io/cloudshiftdev/awscdkdsl/services/aps/CfnWorkspaceLoggingConfigurationPropertyDsl.kt | cloudshiftinc | 667,063,030 | false | null | @file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package cloudshift.awscdk.dsl.services.aps
import cloudshift.awscdk.common.CdkDslMarker
import kotlin.String
import software.amazon.awscdk.ser... | 4 | null | 0 | 3 | c59c6292cf08f0fc3280d61e7f8cff813a608a62 | 1,449 | awscdk-dsl-kotlin | Apache License 2.0 |
Controls/src/commonMain/kotlin/io/nacular/doodle/controls/list/MutableList.kt | nacular | 108,631,782 | false | null | package io.nacular.doodle.controls.list
import io.nacular.doodle.controls.EditOperation
import io.nacular.doodle.controls.IndexedItem
import io.nacular.doodle.controls.ItemVisualizer
import io.nacular.doodle.controls.ListModel
import io.nacular.doodle.controls.MutableListModel
import io.nacular.doodle.controls.Selecti... | 3 | null | 26 | 613 | f7414d4c30cdd7632992071234223653e52b978c | 8,962 | doodle | MIT License |
src/main/kotlin/org.domaintbn.sommd.core/musical/Duration.kt | user00e00 | 163,682,297 | false | null | package org.domaintbn.sommd.core.musical
class Duration(val mt: MusicTime, val isSilent: Boolean = false) {
constructor(num: Int, den: Int, isSilent: Boolean) : this(MusicTime(num, den), isSilent)
} | 0 | Kotlin | 2 | 0 | 60c6784e53eb38894272f74616c9484019cc3ab4 | 203 | sommd | MIT License |
android/FindingFalcone/app/src/main/java/com/pradyotprakash/findingfalcone/app/pages/splash/view/SplachView.kt | pradyotprksh | 385,586,594 | false | {"Kotlin": 2932498, "Dart": 1066884, "Python": 319755, "Rust": 180589, "Swift": 149003, "C++": 113494, "JavaScript": 103891, "CMake": 94132, "HTML": 57188, "Go": 45704, "CSS": 18615, "SCSS": 17864, "Less": 17245, "Ruby": 13609, "Dockerfile": 9772, "C": 8043, "Shell": 7657, "PowerShell": 3045, "Nix": 2616, "Makefile": 1... | package com.pradyotprakash.findingfalcone.app.pages.splash.view
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import andro... | 0 | Kotlin | 11 | 24 | a31e612a63e1dc42ed4cf2f50db90b8613fb5177 | 1,918 | development_learning | MIT License |
workflows/src/main/kotlin/com/r3/corda/lib/tokens/workflows/flows/evolvable/CreateEvolvableTokensFlow.kt | corda | 160,397,060 | false | {"Kotlin": 673352, "Java": 18696, "Dockerfile": 2031} | package com.r3.corda.lib.tokens.workflows.flows.evolvable
import co.paralleluniverse.fibers.Suspendable
import com.r3.corda.lib.tokens.contracts.states.EvolvableTokenType
import com.r3.corda.lib.tokens.workflows.internal.flows.finality.ObserverAwareFinalityFlow
import net.corda.core.contracts.TransactionState
import n... | 38 | Kotlin | 77 | 80 | 749483f691c2c6ca56d9caacdd73a9e6319a969e | 4,047 | token-sdk | Apache License 2.0 |
HacoCmsClient/src/main/java/com/hacocms/sdk/response/ApiMetaResponse.kt | hacocms | 560,726,757 | false | {"Kotlin": 25808} | package com.hacocms.sdk.response
data class ApiMetaResponse(
val total: Int,
val limit: Int,
val offset: Int
)
| 0 | Kotlin | 0 | 2 | d67dd6bf021f3a38b8b8b531486ed938a948a47a | 124 | hacocms-jvm-sdk | MIT License |
app/src/main/java/io/wookey/wallet/support/extensions/SharedPreferencesExt.kt | WooKeyWallet | 176,637,569 | false | null | package io.wookey.wallet.support.extensions
import android.content.Context
import android.content.SharedPreferences
import io.wookey.wallet.App
fun sharedPreferences(name: String = "default") = App.instance.getSharedPreferences(name, Context.MODE_PRIVATE)
?: throw IllegalStateException("SharedPreferences init... | 6 | null | 20 | 23 | 93d0d6a4743e95ab2455bb6ae24b2cc6b616bd90 | 1,187 | monero-wallet-android-app | MIT License |
app/src/main/java/com/ifanr/tangzhi/repository/baas/impl/BaasRepositoryImpl.kt | cyrushine | 224,551,311 | false | {"Kotlin": 673925, "Java": 59856, "Python": 795} | package com.ifanr.tangzhi.repository.baas.impl
import android.content.Context
import androidx.paging.PagedList
import com.google.gson.reflect.TypeToken
import com.ifanr.tangzhi.Const
import com.ifanr.tangzhi.Event
import com.ifanr.tangzhi.EventBus
import com.ifanr.tangzhi.R
import com.ifanr.tangzhi.exceptions.BaaSExce... | 0 | Kotlin | 0 | 0 | ab9a7a2eba7f53eca918e084da9d9907f7997cee | 30,135 | tangzhi_android | Apache License 2.0 |
HTTPShortcuts/framework/src/main/kotlin/ch/rmy/android/framework/extensions/ContextExtensions.kt | Waboodoo | 34,525,124 | false | null | package ch.rmy.android.framework.extensions
import android.content.ActivityNotFoundException
import android.content.Context
import android.content.Intent
import android.content.res.Configuration
import android.widget.Toast
import androidx.annotation.StringRes
import androidx.core.net.toUri
import androidx.fragment.app... | 36 | null | 94 | 645 | c78059462ad78d382bc12ff56cd0432b5fa78c96 | 1,302 | HTTP-Shortcuts | MIT License |
straight/src/commonMain/kotlin/me/localx/icons/straight/outline/Bank.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.straight.outline
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Mite... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 3,384 | icons | MIT License |
src/main/kotlin/com/iman/bnpl/actor/http/user/api/AuthController.kt | imancn | 849,339,456 | false | {"Kotlin": 88023} | package com.iman.bnpl.actor.http.user.api
import com.iman.bnpl.actor.http.user.payload.response.JwtResponse
import com.iman.bnpl.actor.http.user.payload.response.RefreshTokenResponse
import com.iman.bnpl.application.advice.*
import com.iman.bnpl.application.shared.util.Auth
import com.iman.bnpl.domain.user.data.reposi... | 0 | Kotlin | 0 | 0 | 88fa9b9c349e2a7aeefff0af7ffd7b00730f0fe1 | 6,397 | bnpl | Apache License 2.0 |
java/com/google/android/libraries/pcc/chronicle/api/operation/OperationLibrary.kt | google | 564,990,777 | false | null | /*
* Copyright 2022 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 0 | Kotlin | 6 | 24 | 2c1b7135980d5cf15dc6ecc9624be0125a792a5c | 1,405 | private-compute-libraries | Apache License 2.0 |
app/src/main/java/com/mospolytech/mospolyhelper/features/ui/account/payments/adapter/PagerAdapter.kt | mospolyhelper | 259,442,737 | false | {"Kotlin": 839539, "Batchfile": 69} | package com.mospolytech.mospolyhelper.features.ui.account.payments.adapter
import android.annotation.SuppressLint
import android.text.method.LinkMovementMethod
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.FrameLayout
import android.widget.TextView
impo... | 2 | Kotlin | 2 | 8 | 4f37c3617cf7523f22f03a22d7de2d7ecc74a098 | 3,437 | mospolyhelper-android | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.