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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
data/src/main/java/app/tivi/data/repositories/lastrequests/GroupLastRequestStore.kt | chrisbanes | 100,624,553 | false | null | /*
* Copyright 2019 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 i... | 39 | Kotlin | 780 | 5,603 | bffa49f7c4a61b168317ea59f135699878960bdc | 1,682 | tivi | Apache License 2.0 |
android-test-framework/testSrc/com/android/tools/idea/res/ResourcesTestsUtil.kt | JetBrains | 60,701,247 | 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... | 5 | null | 230 | 948 | 10110983c7e784122d94c7467e9d243aba943bf4 | 8,442 | android | Apache License 2.0 |
app/src/main/java/com/tobibur/swipequotes/model/ApiRepo.kt | Tobibur | 141,177,971 | false | {"Kotlin": 9591} | package com.tobibur.swipequotes.model
import android.arch.lifecycle.LiveData
import android.arch.lifecycle.MutableLiveData
import com.tobibur.swipequotes.model.service.ApiClient
import com.tobibur.swipequotes.model.service.ApiInterface
import retrofit2.Call
import retrofit2.Callback
import retrofit2.Response
class A... | 0 | Kotlin | 3 | 9 | c27409e5661bc2c78a52854da48057d9dd1ba491 | 1,232 | Retrofit-Kotlin-Example | MIT License |
multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/dopeflix/DopeFlixGenerator.kt | aniyomiorg | 360,630,872 | false | null | package eu.kanade.tachiyomi.multisrc.dopeflix
import generator.ThemeSourceData.SingleLang
import generator.ThemeSourceGenerator
class DopeFlixGenerator : ThemeSourceGenerator {
override val themePkg = "dopeflix"
override val themeClass = "DopeFlix"
override val baseVersionCode = 19
override val sou... | 375 | null | 165 | 426 | 0064c5658da47bec8f0fc444a9994fe8c61bd6c0 | 660 | aniyomi-extensions | Apache License 2.0 |
shippedsuite/src/test/java/com/invisiblecommerce/shippedsuite/ui/WidgetViewTest.kt | InvisibleCommerce | 513,384,323 | false | null | package com.invisiblecommerce.shippedsuite.ui
import android.content.Context
import androidx.test.core.app.ApplicationProvider
import com.invisiblecommerce.shippedsuite.ShippedSuite
import com.invisiblecommerce.shippedsuite.model.ShippedCurrency
import com.invisiblecommerce.shippedsuite.model.ShippedFeeWithCurrency
im... | 0 | Kotlin | 0 | 0 | 9f97638d84cb25f4a3a3a7821ee71f7a674561ed | 6,645 | shipped-suite-android-client-sdk | MIT License |
tabler-icons/src/commonMain/kotlin/compose/icons/tablericons/Crop.kt | DevSrSouza | 311,134,756 | false | {"Kotlin": 36719092} | package compose.icons.tablericons
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
import androidx.compose.ui.graphic... | 17 | Kotlin | 25 | 571 | a660e5f3033e3222e3553f5a6e888b7054aed8cd | 1,991 | compose-icons | MIT License |
src/main/kotlin/spp/cli/util/ExitManager.kt | sourceplusplus | 423,649,113 | false | null | /*
* Source++, the continuous feedback platform for developers.
* Copyright (C) 2022-2023 CodeBrig, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/... | 2 | Kotlin | 1 | 1 | dd8739c3748b31bd338f200f9d9f59d16b387719 | 1,744 | interface-cli | Apache License 2.0 |
app/src/main/java/io/horizontalsystems/bankwallet/entities/EvmNetwork.kt | horizontalsystems | 142,825,178 | false | null | package io.horizontalsystems.bankwallet.entities
import io.horizontalsystems.bankwallet.core.managers.urls
import io.horizontalsystems.ethereumkit.models.Chain
import io.horizontalsystems.ethereumkit.models.RpcSource
data class EvmNetwork(
val name: String,
val chain: Chain,
val rpcSource: RpcSource
) {
... | 153 | null | 190 | 348 | fea4c5d96759a865408f92e661a13e10faa66226 | 510 | unstoppable-wallet-android | MIT License |
src/main/kotlin/dev/erdragh/erdbot/handlers/FAQHandler.kt | Erdragh | 723,352,761 | false | {"Kotlin": 16612} | package dev.erdragh.erdbot.handlers
import dev.erdragh.erdbot.LOGGER
import java.io.File
import java.nio.file.FileSystems
import java.nio.file.Path
import java.nio.file.StandardWatchEventKinds
import java.nio.file.WatchKey
import kotlin.io.path.extension
import kotlin.io.path.isDirectory
import kotlin.io.path.nameWith... | 0 | Kotlin | 0 | 0 | ff644f743bc7b76ecf6870ea8b836145accbf9c9 | 3,478 | AstralBot | MIT License |
base/domain/src/main/java/org/kafka/base/CoroutineDispatchers.kt | vipulyaara | 612,950,214 | false | {"Kotlin": 635130, "JavaScript": 440999, "HTML": 11959, "CSS": 7888, "Shell": 2974} | package org.kafka.base
import kotlinx.coroutines.CoroutineDispatcher
data class CoroutineDispatchers(
val io: CoroutineDispatcher,
val computation: CoroutineDispatcher,
val main: CoroutineDispatcher
)
| 5 | Kotlin | 19 | 86 | fa64a43602eecac8b93ae9e8b713f6d29ba90727 | 215 | Kafka | Apache License 2.0 |
src/main/kotlin/org/anglur/joglext/jogl2d/impl/gl2/GL2ShapeDrawer.kt | jonatino | 69,714,321 | false | {"Kotlin": 588625, "Java": 17760} | /*
* Copyright 2016 Jonathan Beaudoin <https://github.com/Jonatino>
*
* 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
*... | 0 | Kotlin | 4 | 28 | b43cbe514a496e2a45b45475c0100622ea190dc0 | 2,739 | JOGL2D | Apache License 2.0 |
src/main/kotlin/hm/binkley/labs/BookController.kt | binkley | 430,991,786 | false | {"Shell": 13155, "Batchfile": 9926, "Kotlin": 8675} | package hm.binkley.labs
import org.springframework.data.domain.Pageable
import org.springframework.data.domain.Pageable.unpaged
import org.springframework.data.rest.webmvc.ResourceNotFoundException
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.PathVariable
imp... | 8 | Shell | 0 | 1 | 90eca549c775299084bb9069870c6fb60c48bf39 | 826 | kotlin-spring-boot-hateoas-database | The Unlicense |
browser-kotlin/src/main/kotlin/org/w3c/dom/events/RTCPeerConnectionIceEvent.types.kt | turansky | 393,199,102 | false | null | // Automatically generated - do not modify!
package org.w3c.dom.events
import org.w3c.dom.events.Event as RTCPeerConnectionIceEvent
inline val RTCPeerConnectionIceEvent.Companion.ICE_CANDIDATE: EventType<RTCPeerConnectionIceEvent>
get() = EventType("icecandidate")
| 0 | Kotlin | 5 | 13 | 0f67fb7955dc2c00a7fd18d369ea546d93fa7a92 | 272 | react-types-kotlin | Apache License 2.0 |
project-wizard/core/src/org/jetbrains/kotlin/tools/projectWizard/templates/ReactJsClientTemplate.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.tools.projectWizard.templates
import org.jetbrains.annotations.NonNls
import or... | 214 | null | 4829 | 82 | cc81d7505bc3e9ad503d706998ae8026c067e838 | 6,007 | intellij-kotlin | Apache License 2.0 |
gto-support-androidx-room/src/main/kotlin/org/ccci/gto/android/common/androidx/room/RoomDatabase+Flow.kt | CruGlobal | 30,609,844 | false | {"Kotlin": 796944, "Java": 258324, "Prolog": 179} | package org.ccci.gto.android.common.androidx.room
import androidx.room.CoroutinesRoom.Companion.createFlow
import androidx.room.RoomDatabase
fun RoomDatabase.changeFlow(vararg tableName: String) = createFlow(
this,
inTransaction = false,
tableNames = arrayOf(*tableName),
callable = {}
)
| 14 | Kotlin | 2 | 9 | e0e52f257d4826f87688f3edd7ad45e732ee54a5 | 306 | android-gto-support | MIT License |
src/test/kotlin/no/nav/bidrag/stonad/service/StonadServiceMockTest.kt | navikt | 360,850,317 | false | null | package no.nav.bidrag.stonad.service
import no.nav.bidrag.behandling.felles.dto.stonad.OpprettStonadRequestDto
import no.nav.bidrag.behandling.felles.enums.Innkreving
import no.nav.bidrag.behandling.felles.enums.StonadType
import no.nav.bidrag.stonad.TestUtil.Companion.byggStonadRequest
import no.nav.bidrag.stonad.bo.... | 6 | Kotlin | 0 | 0 | f6e31fbcc14b71789837a54b022bbbbad7fb53cf | 4,578 | bidrag-stonad | MIT License |
app/src/main/java/dev/synople/glasstuner/NoteFinder.kt | tujson | 203,704,693 | false | null | package dev.synople.glasstuner
/**
* From https://github.com/chRyNaN/Android-Guitar-Tuner/blob/master/app/src/main/java/com/chrynan/android_guitar_tuner/tuner/note/ArrayNoteFinder.java
* Converted from Java to Kotlin
*/
class ArrayNoteFinder {
private val noteFrequencies = doubleArrayOf(
5587.65,
... | 1 | null | 1 | 1 | 4e94d046650be9b93caa1a6d52f3507272b5e87d | 4,038 | GlassTuner | Apache License 2.0 |
graph/graph-application/src/test/kotlin/eu/tib/orkg/prototype/contenttypes/services/actions/paper/PaperPublicationInfoCreatorUnitTest.kt | TIBHannover | 197,416,205 | false | {"Kotlin": 2449567, "Cypher": 215872, "Python": 4880, "Groovy": 1936, "Shell": 1803, "HTML": 240} | package eu.tib.orkg.prototype.contenttypes.services.actions
import eu.tib.orkg.prototype.contenttypes.domain.model.PublicationInfo
import eu.tib.orkg.prototype.dummyCreatePaperCommand
import eu.tib.orkg.prototype.createLiteral
import eu.tib.orkg.prototype.createResource
import eu.tib.orkg.prototype.pageOf
import eu.ti... | 0 | Kotlin | 2 | 5 | ce3f24748dd2d9c06e6125e033bc7ae83122925f | 13,057 | orkg-backend | MIT License |
idea/tests/testData/inspectionsLocal/simpleRedundantLet/functionCall5.kt | JetBrains | 278,369,660 | false | null | // PROBLEM: none
// WITH_RUNTIME
fun foo(s: String, i: Int) = s.length + i
fun test() {
val s = ""
s.length.let<caret> { foo("", it) }
} | 1 | null | 30 | 82 | cc81d7505bc3e9ad503d706998ae8026c067e838 | 146 | intellij-kotlin | Apache License 2.0 |
twitlin/src/common/main/kotlin/com/sorrowblue/twitlin/tweets/statuses/StatusesApi.kt | SorrowBlue | 278,215,181 | false | null | package com.sorrowblue.twitlin.tweets.statuses
import com.sorrowblue.twitlin.client.Response
import com.sorrowblue.twitlin.objects.MediaId
import com.sorrowblue.twitlin.objects.PagingIds
import com.sorrowblue.twitlin.objects.PlaceId
import com.sorrowblue.twitlin.objects.Tweet
import com.sorrowblue.twitlin.objects.Twee... | 1 | Kotlin | 0 | 1 | 1052f06626feb9807285b71c75125973fbecd0e4 | 27,023 | Twitlin | MIT License |
Oxygen/core/src/main/kotlin/net/evilblock/pidgin/message/listener/MessageListenerData.kt | AndyReckt | 364,514,997 | false | {"Java": 12055418, "Kotlin": 766337, "Shell": 5518} | /*
* Copyright (c) 2020.
* Created by YoloSanta
* Created On 10/22/20, 1:23 AM
*/
package cc.fyre.stark.core.pidgin.message.listener
import java.lang.reflect.Method
/**
* A wrapper class that holds all the information needed to
* identify and execute a message function.
*
*/
data class MessageListenerData(va... | 1 | null | 1 | 1 | 200501c7eb4aaf5709b4adceb053fee6707173fa | 373 | Old-Code | Apache License 2.0 |
auth/src/test/java/com/demo/minnies/auth/domain/LoginUserUseCaseImplTest.kt | jsonkile | 572,488,327 | false | {"Kotlin": 482538, "Java": 28720, "Shell": 1599} | package com.demo.minnies.auth.domain
import com.demo.minnies.auth.data.repos.CacheRepo
import com.demo.minnies.auth.data.repos.UserRepo
import com.demo.minnies.database.models.PartialUser
import com.demo.minnies.shared.utils.BAD_LOGIN_MESSAGE
import com.demo.minnies.shared.utils.encryption.Encryptor
import io.mockk.co... | 0 | Kotlin | 0 | 0 | ce016c05333f8a7301447f412e8d38ed46e1b2db | 2,696 | Minnies | MIT License |
agp-7.1.0-alpha01/tools/base/build-system/gradle-core/src/test/java/com/android/build/gradle/internal/cxx/configure/NdkLocatorKtTest.kt | jomof | 502,039,754 | false | {"Java": 35519326, "Kotlin": 22849138, "C++": 2171001, "HTML": 1377915, "Starlark": 915536, "C": 141955, "Shell": 110207, "RenderScript": 58853, "Python": 25635, "CMake": 18109, "Batchfile": 12180, "Perl": 9310, "Dockerfile": 5690, "Makefile": 4535, "CSS": 4148, "JavaScript": 3488, "PureBasic": 2359, "GLSL": 1628, "AID... | /*
* Copyright (C) 2018 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... | 1 | Java | 1 | 0 | 9e3475f6d94cb3239f27ed8f8ee81b0abde4ef51 | 48,532 | CppBuildCacheWorkInProgress | Apache License 2.0 |
src/main/kotlin/me/enderkill98/testserverstuff/TestserverStuff.kt | EnderKill98 | 589,659,407 | false | null | package me.enderkill98.testserverstuff
import me.enderkill98.testserverstuff.commands.SettingsCommand
import me.enderkill98.testserverstuff.listeners.HumanMovementListener
import me.enderkill98.testserverstuff.listeners.JoinListener
import me.enderkill98.testserverstuff.listeners.MovementListener
import me.enderkill98... | 0 | Kotlin | 0 | 0 | 7386734e2a5d19d43576a3b90a03c6ad1d77b7fd | 1,042 | TestserverStuff | MIT License |
ktor-client/ktor-client-core/common/src/io/ktor/client/features/HttpPlainText.kt | LloydFinch | 166,520,021 | false | null | package io.ktor.client.features
import io.ktor.client.*
import io.ktor.client.request.*
import io.ktor.client.response.*
import io.ktor.http.*
import io.ktor.http.content.*
import io.ktor.util.*
import kotlinx.io.charsets.*
import kotlinx.io.core.*
/**
* [HttpClient] feature that encodes [String] request bodies to [... | 0 | null | 0 | 2 | 9b9fc6c3b853c929a806c65cf6bf7c104b4c07fc | 1,939 | ktor | Apache License 2.0 |
rulebook-ktlint/src/main/kotlin/com/hendraanggrian/rulebook/ktlint/RulebookRuleSet.kt | hendraanggrian | 556,969,715 | false | {"Kotlin": 142902, "Java": 3716, "Groovy": 171} | package com.hendraanggrian.rulebook.ktlint
import com.pinterest.ktlint.cli.ruleset.core.api.RuleSetProviderV3
import com.pinterest.ktlint.rule.engine.core.api.RuleProvider
public class RulebookRuleSet : RuleSetProviderV3(RulebookRule.ID) {
override fun getRuleProviders(): Set<RuleProvider> =
setOf(
... | 0 | Kotlin | 0 | 1 | e268190f7ce7b4721105e566ee1b6b8e91fdc4c3 | 1,510 | rulebook | Apache License 2.0 |
platform/lib/sdk/src/main/kotlin/io/hamal/lib/sdk/ApiSdk.kt | hamal-io | 622,870,037 | false | {"Kotlin": 1744717, "C": 1398401, "TypeScript": 54320, "C++": 40651, "Lua": 36419, "Makefile": 11728, "Java": 7564, "CMake": 2881, "JavaScript": 1532, "HTML": 694, "Shell": 456, "CSS": 118} | package io.hamal.lib.sdk
import io.hamal.lib.http.HttpTemplate
import io.hamal.lib.sdk.api.*
interface ApiSdk {
val account: ApiAccountService
val auth: AuthService
val adhoc: ApiAdhocService
val await: ApiAwaitService
val exec: ApiExecService
val execLog: ApiExecLogService
val func: ApiFu... | 6 | Kotlin | 0 | 0 | 6c7f5cc645ba67fb85df20d9a5d2e18372a012f4 | 1,600 | hamal | Creative Commons Zero v1.0 Universal |
platform/lib/sdk/src/main/kotlin/io/hamal/lib/sdk/ApiSdk.kt | hamal-io | 622,870,037 | false | {"Kotlin": 1744717, "C": 1398401, "TypeScript": 54320, "C++": 40651, "Lua": 36419, "Makefile": 11728, "Java": 7564, "CMake": 2881, "JavaScript": 1532, "HTML": 694, "Shell": 456, "CSS": 118} | package io.hamal.lib.sdk
import io.hamal.lib.http.HttpTemplate
import io.hamal.lib.sdk.api.*
interface ApiSdk {
val account: ApiAccountService
val auth: AuthService
val adhoc: ApiAdhocService
val await: ApiAwaitService
val exec: ApiExecService
val execLog: ApiExecLogService
val func: ApiFu... | 6 | Kotlin | 0 | 0 | 6c7f5cc645ba67fb85df20d9a5d2e18372a012f4 | 1,600 | hamal | Creative Commons Zero v1.0 Universal |
core/graph/impl/src/main/kotlin/bindings/InjectConstructorProvisionBindingImpl.kt | yandex | 570,094,802 | false | null | /*
* Copyright 2022 Yandex 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 in wr... | 12 | Kotlin | 7 | 188 | 7939201efc0db11a74759c54146491fd336782ee | 2,812 | yatagan | Apache License 2.0 |
anrs/anrs-impl/src/main/java/com/duckduckgo/app/anr/RealAnrRepository.kt | hojat72elect | 822,396,044 | false | {"Kotlin": 11626231, "HTML": 65873, "Ruby": 16984, "C++": 10312, "JavaScript": 5520, "CMake": 1992, "C": 1076, "Shell": 784} |
package com.duckduckgo.app.anr
import com.duckduckgo.anrs.api.Anr
import com.duckduckgo.anrs.api.AnrRepository
import com.duckduckgo.app.anrs.store.AnrEntity
import com.duckduckgo.app.anrs.store.AnrsDatabase
import com.duckduckgo.di.scopes.AppScope
import com.squareup.anvil.annotations.ContributesBinding
import java... | 0 | Kotlin | 0 | 0 | b89591136b60933d6a03fac43a38ee183116b7f8 | 1,364 | DuckDuckGo | Apache License 2.0 |
part-02/src/test/kotlin/eu/luminis/workshop/smallsteps/api/LegoRentingRoutesTest.kt | nkrijnen | 557,352,579 | false | {"Kotlin": 49450} | package eu.luminis.workshop.smallsteps.api
import eu.luminis.workshop.smallsteps.api.helper.TestLegoStockRepository
import eu.luminis.workshop.smallsteps.api.helper.setupLegoTestApp
import eu.luminis.workshop.smallsteps.logic.domainService.helper.LegoStockHelper.millenniumFalcon
import eu.luminis.workshop.smallsteps.l... | 0 | Kotlin | 1 | 0 | 2d168640126c39d2a13d5dc85d05cd6ab534b6d1 | 2,402 | workshop-ddd-nl-2022-11 | MIT License |
domain/src/main/java/com/mashup/healthyup/domain/usecase/GetUserUseCase.kt | YuChocopie | 422,711,993 | true | {"Kotlin": 28999} | /*
* Created by Leo on 2021. 09. 26 ..
*/
package com.mashup.healthyup.domain.usecase
import com.mashup.healthyup.domain.Result
import com.mashup.healthyup.domain.entity.User
import com.mashup.healthyup.domain.repository.UserRepository
import kotlinx.coroutines.CoroutineDispatcher
class GetUserUseCase(
private ... | 0 | null | 0 | 0 | 5d45f4ad84ac6ac2abec90c6e05c04817dde348d | 577 | HellTaBus_Android | MIT License |
dd-sdk-android/src/test/kotlin/com/datadog/android/core/internal/utils/ViewUtilsTest.kt | DataDog | 219,536,756 | false | null | /*
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
* This product includes software developed at Datadog (https://www.datadoghq.com/).
* Copyright 2016-Present Datadog, Inc.
*/
package com.datadog.android.rum.internal.utils
import android.conten... | 52 | null | 60 | 86 | bcf0d12fd978df4e28848b007d5fcce9cb97df1c | 4,408 | dd-sdk-android | Apache License 2.0 |
docs-examples/example-kotlin/src/test/kotlin/io/micronaut/rabbitmq/docs/consumer/custom/annotation/ProductListener.kt | micronaut-projects | 167,575,069 | false | null | package io.micronaut.rabbitmq.docs.consumer.custom.annotation
import io.micronaut.context.annotation.Requires
// tag::imports[]
import io.micronaut.rabbitmq.annotation.Queue
import io.micronaut.rabbitmq.annotation.RabbitListener
import java.util.Collections
// end::imports[]
@Requires(property = "spec.name", value = ... | 20 | null | 20 | 19 | ab5234345d3b9986a2dd49c7035a3f71655d6612 | 611 | micronaut-rabbitmq | Apache License 2.0 |
src/test/kotlin/ai/tochka/protocol/CommandWithContentAndTagTest.kt | TochkaAI | 256,272,206 | false | null | /*
* MIT License
*
* Copyright (c) 2020 <NAME> (ashlanderr) <<EMAIL>>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* ... | 0 | Kotlin | 0 | 0 | 78461cbbf2e47caa991ab3fe68419c4ea78c1d5a | 2,476 | pproto-java | MIT License |
kotlinx-coroutines-test/test/TestModuleHelpers.kt | hltj | 151,721,407 | true | null | /*
* Copyright 2016-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
package kotlinx.coroutines.test
import kotlinx.coroutines.*
import org.junit.*
import java.time.*
const val SLOW = 10_000L
/**
* Assert a block completes within a second or fail the suite
*/
suspend fun C... | 1 | Kotlin | 99 | 244 | 082c45f58986c4d2d72ac1291a55f6c14ce91a98 | 742 | kotlinx.coroutines-cn | Apache License 2.0 |
idea/idea-frontend-fir/testData/symbolPointer/topLevelFunctions.kt | nskvortsov | 4,137,859 | false | null | fun x(): Int = 10
fun y() {}
// SYMBOLS:
KtFirFunctionSymbol:
annotations: []
callableIdIfNonLocal: x
isExtension: false
isExternal: false
isInline: false
isOperator: false
isOverride: false
isSuspend: false
modality: FINAL
name: x
origin: SOURCE
receiverType: null
symbolKind: TOP_LEVEL
typ... | 1 | null | 1 | 3 | 39d15501abb06f18026bbcabfd78ae4fbcbbe2cb | 756 | kotlin | Apache License 2.0 |
platform/src/main/kotlin/researchstack/backend/adapter/incoming/rest/common/StudyDataInfoSerializer.kt | S-ResearchStack | 520,365,362 | false | {"Kotlin": 1297740, "Dockerfile": 202, "Shell": 59} | package researchstack.backend.adapter.incoming.rest.common
import com.google.gson.JsonElement
import com.google.gson.JsonObject
import com.google.gson.JsonSerializationContext
import com.google.gson.JsonSerializer
import researchstack.backend.domain.studydata.StudyDataFile
import researchstack.backend.domain.studydata... | 1 | Kotlin | 9 | 29 | edd76f219cdb10c8151b8ac14175b1e818a6036a | 1,258 | backend-system | Apache License 2.0 |
caffeine-coroutines/src/test/kotlin/dev/hsbrysk/caffeine/internal/CoroutineCacheImplTest.kt | be-hase | 802,042,489 | false | null | package dev.hsbrysk.caffeine.internal
import assertk.assertFailure
import assertk.assertThat
import assertk.assertions.containsAtLeast
import assertk.assertions.containsExactly
import assertk.assertions.isEqualTo
import assertk.assertions.isInstanceOf
import assertk.assertions.isNull
import assertk.assertions.isNullOr... | 2 | null | 1 | 7 | 28a61205c6931102b8efb4eaec7cfa23f6ddad0b | 10,223 | caffeine-coroutines | MIT License |
modules/kor-repositories/src/main/kotlin/com/sefford/kor/repositories/components/CacheFolder.kt | Sefford | 20,562,081 | false | null | /*
* Copyright (C) 2017 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 0 | Kotlin | 5 | 115 | 74ac1a1373860a470122a3149f9f297e783a2daa | 1,460 | kor | Apache License 2.0 |
plot-config-portable/src/jvmTest/kotlin/plot/config/StatKindTest.kt | JetBrains | 176,771,727 | false | null | /*
* Copyright (c) 2021. JetBrains s.r.o.
* Use of this source code is governed by the MIT license that can be found in the LICENSE file.
*/
package jetbrains.datalore.plot.config
import kotlin.test.Test
import kotlin.test.assertEquals
class StatKindTest {
@Test
fun valueOf() {
assertEquals(StatK... | 97 | null | 51 | 889 | c5c66ceddc839bec79b041c06677a6ad5f54e416 | 492 | lets-plot | MIT License |
foundation/domain-model/testFixtures/ru/pixnews/domain/model/company/company/HypixelStudiosCompanyFixture.kt | illarionov | 305,333,284 | false | null | /*
* Copyright 2023 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 0 | Kotlin | 0 | 2 | d806ee06019389c78546d946f1c20d096afc7c6e | 2,479 | Pixnews | Apache License 2.0 |
app/src/main/java/com/example/maihang/fragments/BottomSheet/MealBottomSheetFragment.kt | DevP-ai | 689,309,567 | false | {"Kotlin": 45226} | package com.example.maihang.fragments.BottomSheet
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import com.example.maihang.R
private const val MEAL_ID = "param1"
class MealBottomSheetFragment : Fragment() {
p... | 0 | Kotlin | 0 | 0 | e8bdfab87fc649b90865ef9ca53aeece731572e7 | 1,083 | Maihang | MIT License |
straight/src/commonMain/kotlin/me/localx/icons/straight/filled/CommentText.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.straight.filled
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.Miter... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 2,365 | icons | MIT License |
compiler/testData/diagnostics/testsWithStdLib/inference/annotationsForResolve/checkLowPriorityIsResolvedSuccessfully.kt | JetBrains | 3,432,266 | false | null | // FIR_IDENTICAL
class Foo {
@Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
@kotlin.internal.LowPriorityInOverloadResolution
val test: Bar = Bar()
}
fun Foo.test() {}
class Bar
class Scope {
operator fun Bar.invoke(f: () -> Unit) {}
}
fun Scope.bar(e: Foo) {
e.test {}
}
| 125 | null | 4813 | 39,375 | 83d2d2cfcfc3d9903c902ca348f331f89bed1076 | 299 | kotlin | Apache License 2.0 |
app/src/main/kotlin/me/nanova/subspace/domain/repo/TorrentRepo.kt | kid1412621 | 737,778,999 | false | {"Kotlin": 117037} | package me.nanova.subspace.domain.repo
import androidx.paging.PagingData
import kotlinx.coroutines.flow.Flow
import me.nanova.subspace.domain.model.Account
import me.nanova.subspace.domain.model.QTListParams
import me.nanova.subspace.domain.model.Torrent
interface TorrentRepo {
// suspend fun apiVersion(): String
... | 4 | Kotlin | 0 | 0 | d3a503c4e21e5f68f36c5e8249745b0b19ea6415 | 409 | subspace | MIT License |
src/main/kotlin/no/nav/helse/flex/DokumentConsumer.kt | navikt | 446,743,079 | false | {"Kotlin": 113201, "Dockerfile": 267} | package no.nav.helse.flex
import com.fasterxml.jackson.module.kotlin.readValue
import no.nav.helse.flex.journalpost.JournalpostBehandler
import no.nav.helse.flex.retry.RetryProducer
import org.apache.avro.generic.GenericRecord
import org.apache.kafka.clients.consumer.ConsumerRecord
import org.slf4j.MDC
import org.spri... | 8 | Kotlin | 0 | 0 | c5c44497c7f6a1f02b99eaea4b85444eb33d44cb | 2,272 | flex-joark-mottak | MIT License |
app/src/main/java/com/applendar/applendar/ListadoMateriasFragment.kt | UCASV | 267,764,032 | false | null | package com.applendar.applendar
import android.app.SearchManager
import android.content.Context
import android.content.Intent
import android.os.AsyncTask
import android.os.Bundle
import android.view.*
import android.widget.EditText
import android.widget.LinearLayout
import android.widget.ListView
import android.widget... | 1 | Kotlin | 0 | 0 | 493b0cc1ea5bffcafaca73e1114ad3726fb590a4 | 9,421 | entrega-de-proyecto-pdm-0120-safaera-mp3 | Apache License 2.0 |
example_cli/src/main/kotlin/org/kethereum/example_cli/ExampleCLI.kt | komputing | 92,780,266 | false | null | package org.kethereum.example_cli
import kotlinx.coroutines.flow.collect
import org.kethereum.abi.EthereumABI
import org.kethereum.abi_codegen.model.GeneratorSpec
import org.kethereum.abi_codegen.toKotlinCode
import org.kethereum.eip137.model.ENSName
import org.kethereum.eip137.toHexString
import org.kethereum.eip137.... | 43 | null | 82 | 333 | 1f42cede2d31cb5d3c488bd74eeb8480ec47c919 | 2,576 | KEthereum | MIT License |
autofill/autofill-impl/src/main/java/com/duckduckgo/autofill/impl/securestorage/RealSecureStorageRepositoryFactory.kt | duckduckgo | 78,869,127 | false | {"Kotlin": 14333964, "HTML": 63593, "Ruby": 20564, "C++": 10312, "JavaScript": 8463, "CMake": 1992, "C": 1076, "Shell": 784} | /*
* 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 | Kotlin | 901 | 3,823 | 6415f0f087a11a51c0a0f15faad5cce9c790417c | 1,936 | Android | Apache License 2.0 |
AgoraEduUIKit/src/main/java/com/agora/edu/component/whiteboard/AgoraEduPenTextComponent.kt | AgoraIO-Community | 330,886,965 | false | null | package com.agora.edu.component.whiteboard
import android.content.Context
import android.util.AttributeSet
import android.view.View
import androidx.core.view.marginEnd
import androidx.recyclerview.widget.GridLayoutManager
import com.agora.edu.component.common.IAgoraUIProvider
import com.agora.edu.component.helper.Grid... | 4 | Kotlin | 19 | 8 | 9fb07495275f2da4aa0b579005c7eacfd444defb | 7,019 | CloudClass-Android | MIT License |
auth/src/main/kotlin/researchstack/auth/domain/repository/AccountRepository.kt | S-ResearchStack | 520,365,275 | false | {"Kotlin": 178868, "AIDL": 4785} | package researchstack.auth.domain.repository
import researchstack.auth.domain.model.Account
interface AccountRepository {
suspend fun getAccount(): Account?
suspend fun updateAccount(account: Account)
suspend fun clearAccount()
}
| 5 | Kotlin | 20 | 26 | e31e8055f96fa226745750b5a653e341cf5f2e6c | 244 | app-sdk | Apache License 2.0 |
src/main/kotlin/br/com/fugisawa/adopetbackendapikotlin/dto/PetsPerSizeView.kt | lucasfugisawa | 623,206,765 | false | null | package br.com.fugisawa.adopetbackendapikotlin.dto
import br.com.fugisawa.adopetbackendapikotlin.domain.pet.PetSize
data class PetsPerSizeView(
val size: PetSize,
val count: Long,
) | 0 | Kotlin | 0 | 1 | c1d08830ff0b88b158cac07236acca9c049a3c92 | 191 | adopet-backend-api-alura-challenge-semana1 | MIT License |
gymind/app/src/main/java/com/sondreweb/gymind/helpers/Utilities.kt | engson | 422,841,076 | false | {"Kotlin": 20830} | package com.sondreweb.gymind.helpers
import android.content.Context
import java.io.BufferedReader
import java.io.InputStream
class Utilities {
companion object {
fun getAssetsData(context: Context, url: String): String =
context
.assets
.open(url)
... | 3 | Kotlin | 0 | 0 | 5be8212325d5b6ab3e42b199ade44f9930c02e6a | 395 | WorkoutApp | Apache License 2.0 |
dlt-analyzer-app/src/main/kotlin/analyzer/ui/table/DltStringRenderer.kt | froks | 772,775,135 | false | {"Kotlin": 75788} | package analyzer.ui.table
import java.awt.Component
import javax.swing.JTable
import javax.swing.table.DefaultTableCellRenderer
class DltStringRenderer : DefaultTableCellRenderer() {
private val defaultColor = this.foreground
override fun getTableCellRendererComponent(
table: JTable,
value: A... | 0 | Kotlin | 0 | 1 | 59ae4bb6694aa48d12767de324fd053f5fa2bc08 | 763 | dlt-tools | Apache License 2.0 |
dsl/src/main/kotlin/io/cloudshiftdev/awscdkdsl/services/connect/CfnRuleTaskActionPropertyDsl.kt | cloudshiftinc | 667,063,030 | false | null | @file:Suppress(
"RedundantVisibilityModifier",
"RedundantUnitReturnType",
"RemoveRedundantQualifierName",
"unused",
"UnusedImport",
"ClassName",
"REDUNDANT_PROJECTION",
"DEPRECATION"
)
package cloudshift.awscdk.dsl.services.connect
import cloudshift.awscdk.common.CdkDslMarker
import cl... | 3 | null | 0 | 3 | 256ad92aebe2bcf9a4160089a02c76809dbbedba | 3,683 | awscdk-dsl-kotlin | Apache License 2.0 |
e6/canasta/feature/grocery/create-list/src/main/java/ven/canasta/feature/grocery/grocerylist/create/mock/TitleField.kt | ernestosimionato6 | 584,044,832 | false | null |
package ven.canasta.feature.grocery.grocerylist.create.mock
import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.border
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.co... | 4 | Kotlin | 0 | 0 | 21b39b4b9dbd4273853fc3954f1f1fdafa056281 | 3,168 | e6-canasta | Apache License 2.0 |
apps/mobile-app/src/main/kotlin/dev/marlonlom/apps/bookbar/ui/navigation/MainNavHost.kt | marlonlom | 740,270,327 | false | {"Kotlin": 175363} | /*
* Copyright 2024 Marlonlom
* SPDX-License-Identifier: Apache-2.0
*/
package dev.marlonlom.apps.bookbar.ui.navigation
import androidx.compose.animation.EnterTransition
import androidx.compose.animation.ExitTransition
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.material3.E... | 0 | Kotlin | 0 | 1 | 030a0495b69edcaae9ce887c4e90e151a1c843ab | 4,805 | bookbar | Apache License 2.0 |
Meld-Module-World/src/main/kotlin/io/github/daylightnebula/meld/world/chunks/Palettes.kt | DaylightNebula | 652,923,400 | false | {"Kotlin": 199201, "Python": 792} | package io.github.daylightnebula.meld.world.chunks
import io.github.daylightnebula.meld.server.networking.common.ByteWriter
import org.cloudburstmc.math.vector.Vector3i
class FlexiblePalette(
var blockIDs: IntArray = intArrayOf(0),
var blockReferences: ByteArray = ByteArray(16 * 16 * 16) { 0 },
var startC... | 0 | Kotlin | 0 | 1 | 2290a5266ae56ef2e59cad88fc1f38e825b2cc88 | 4,405 | Meld | Apache License 2.0 |
Meld-Module-World/src/main/kotlin/io/github/daylightnebula/meld/world/chunks/Palettes.kt | DaylightNebula | 652,923,400 | false | {"Kotlin": 199201, "Python": 792} | package io.github.daylightnebula.meld.world.chunks
import io.github.daylightnebula.meld.server.networking.common.ByteWriter
import org.cloudburstmc.math.vector.Vector3i
class FlexiblePalette(
var blockIDs: IntArray = intArrayOf(0),
var blockReferences: ByteArray = ByteArray(16 * 16 * 16) { 0 },
var startC... | 0 | Kotlin | 0 | 1 | 2290a5266ae56ef2e59cad88fc1f38e825b2cc88 | 4,405 | Meld | Apache License 2.0 |
app/src/main/java/com/hinterlong/kevin/swishticker/data/ActionType.kt | denzelpfeifer | 179,320,631 | true | {"Kotlin": 26219, "Java": 2184} | package com.hinterlong.kevin.swishticker.data
enum class ActionType constructor(val code:Int) {
TWO_POINT(0),
THREE_POINT(1),
FREE_THROW(2),
REBOUND(3),
BLOCK(4),
STEAL(5),
ASSIST(6),
FOUL(7)
} | 0 | Kotlin | 0 | 0 | 4c08ac9dda83fcead6e35507deeb711ec7a7455d | 226 | SwishTicker | Apache License 2.0 |
kotlin-eclipse-core/src/org/jetbrains/kotlin/core/resolve/EclipseAnalyzerFacadeForJVM.kt | wpopielarski | 163,985,792 | true | {"Kotlin": 873465, "Java": 742545, "AspectJ": 16111} | /*******************************************************************************
* Copyright 2000-2016 JetBrains s.r.o.
*
* 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.o... | 0 | Kotlin | 1 | 0 | daff955c817b4c88cc9f29cd923ba0be9d8044dd | 11,165 | kotlin-eclipse | Apache License 2.0 |
app/src/main/java/com/example/expandablebottomnavigationbar/SearchFragment.kt | tunahanbozkurt | 615,692,461 | false | null | package com.example.expandablebottomnavigationbar
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.navigation.fragment.findNavController
import com.example.expandablebottomnavigationbar.databinding.F... | 0 | Kotlin | 0 | 6 | e2d4d944830935fa970debca0fc57edb597c84d5 | 1,078 | ExpandableBottomNavigationBar | The Unlicense |
app/src/main/java/com/zipdabang/zipdabang_android/module/my/data/remote/signout/SignOutTokens.kt | zipdabang | 666,457,004 | false | {"Kotlin": 1689597} | package com.zipdabang.zipdabang_android.module.my.data.remote.signout
import com.google.gson.annotations.SerializedName
import kotlinx.serialization.Serializable
data class SignOutTokens(
@SerializedName("fcmToken") val fcmToken: String,
@SerializedName("serialNumber") val serialNumber: String
)
| 8 | Kotlin | 1 | 2 | ef22f7d73c2c44065714a6cffe783250b80487c8 | 307 | android | The Unlicense |
bootstrap/src/test/kotlin/net/dontdrinkandroot/wicket/bootstrap/behavior/ToolTipBehaviorTest.kt | dontdrinkandroot | 7,002,436 | false | null | package net.dontdrinkandroot.wicket.bootstrap.behavior
import net.dontdrinkandroot.wicket.bootstrap.test.AbstractWicketTest
import org.apache.wicket.core.util.string.ComponentRenderer
import org.apache.wicket.markup.html.WebMarkupContainer
import org.apache.wicket.model.IModel
import org.apache.wicket.model.Model
impo... | 34 | Kotlin | 1 | 3 | 51fba9712321f0fdb5faa452fddc63aa9b360fe6 | 2,445 | wicket.java | Apache License 2.0 |
database/src/commonMain/kotlin/co/nestor/database/provider/builder/IDatabaseBuilderProvider.kt | kiquenet85 | 849,346,240 | false | {"Kotlin": 183158, "Swift": 621} | package co.nestor.database.provider.builder
import androidx.room.RoomDatabase
import co.nestor.database.AppDatabase
interface IDatabaseBuilderProvider {
fun getDatabaseBuilder(): RoomDatabase.Builder<AppDatabase>
}
| 0 | Kotlin | 0 | 0 | 2f000a653ddbb56f7439df4185e944fd76df6061 | 221 | kueski | Apache License 2.0 |
TemplateMethod/src/main/kotlin/impl/ClassB.kt | AaronChuang | 208,242,423 | false | null | package impl
import AbstractClass
// 實作演算法各步驟
class ClassB: AbstractClass() {
override fun primitiveOperation1() {
println("ClassB.primitiveOperation1")
}
override fun primitiveOperation2() {
println("ClassB.primitiveOperation2")
}
} | 0 | Kotlin | 0 | 0 | 9e31b8065a7b98e30d93033fae92d0381c17ef34 | 267 | Kotlin-DesignPatternExample | MIT License |
app/src/main/java/com/vitorpamplona/amethyst/ui/components/ClickableRoute.kt | vitorpamplona | 587,850,619 | false | null | package com.vitorpamplona.amethyst.ui.components
import androidx.compose.foundation.gestures.detectTapGestures
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.text.BasicText
import androidx.compose.foundation.text.ClickableText
... | 158 | null | 144 | 995 | 0bb39f91b9dddf81dcec63f3d97674f26872fbd0 | 20,543 | amethyst | MIT License |
app/src/main/java/com/vitorpamplona/amethyst/ui/components/ClickableRoute.kt | vitorpamplona | 587,850,619 | false | null | package com.vitorpamplona.amethyst.ui.components
import androidx.compose.foundation.gestures.detectTapGestures
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.text.BasicText
import androidx.compose.foundation.text.ClickableText
... | 158 | null | 144 | 995 | 0bb39f91b9dddf81dcec63f3d97674f26872fbd0 | 20,543 | amethyst | MIT License |
app/src/main/java/com/ku_stacks/ku_ring/data/mapper/EntityToModelMapper.kt | KU-Stacks | 412,458,697 | false | null | package com.ku_stacks.ku_ring.data.mapper
import com.ku_stacks.ku_ring.data.db.NoticeEntity
import com.ku_stacks.ku_ring.data.db.PushEntity
import com.ku_stacks.ku_ring.data.model.Notice
import com.ku_stacks.ku_ring.data.model.Push
import com.ku_stacks.ku_ring.util.WordConverter
import com.ku_stacks.ku_ring.util.isOnl... | 0 | Kotlin | 0 | 11 | b5b33f75d2373787b4b859311a2180dcf9efe75e | 1,589 | KU-Ring-Android | Apache License 2.0 |
main/src/main/java/com/oratakashi/hilt/main/ui/main/LibraryViewModel.kt | oratakashi | 341,453,675 | false | null | package com.oratakashi.hilt.main.ui.main
import android.util.Log
import androidx.lifecycle.ViewModel
import com.oratakashi.hilt.core.data.network.ApiEndpoint
import dagger.hilt.android.lifecycle.HiltViewModel
import io.reactivex.disposables.CompositeDisposable
import javax.inject.Inject
@HiltViewModel
class LibraryVi... | 0 | Kotlin | 1 | 1 | 78392470dbb09398c4c1758bb17eb221fcf6a6f8 | 814 | Hilt-Multi-Module | MIT License |
src/main/kotlin/no/nav/kafka/KartleggingSvarProdusent.kt | navikt | 644,356,194 | false | {"Kotlin": 82238, "Dockerfile": 214} | package no.nav.kafka
import no.nav.konfigurasjon.KafkaConfig
class KartleggingSvarProdusent {
private val kafkaProdusent = KafkaProdusent(kafkaConfig = KafkaConfig())
fun sendSvar(svar: KartleggingSvar) {
val topic = Topic.KARTLEGGING_SVAR
kafkaProdusent.sendMelding(topic, svar.tilNøkkel(),... | 0 | Kotlin | 0 | 0 | bd3aebacfa397079fc6c001393542cfb55db57d9 | 348 | fia-arbeidsgiver | MIT License |
lint-rules-rxjava2-lint/src/main/kotlin/com/vanniktech/lintrules/rxjava2/RxJava2MethodMissingCheckReturnValueDetector.kt | vanniktech | 77,383,319 | false | null | package com.vanniktech.lintrules.rxjava2
import com.android.tools.lint.client.api.UElementHandler
import com.android.tools.lint.detector.api.Category.Companion.CORRECTNESS
import com.android.tools.lint.detector.api.Detector
import com.android.tools.lint.detector.api.Implementation
import com.android.tools.lint.detecto... | 2 | null | 37 | 363 | 4129325aca446b470cdfa9ba04e2984e631eb988 | 4,028 | lint-rules | Apache License 2.0 |
api/src/test/kotlin/edu/wgu/osmt/elasticsearch/SearchControllerTest.kt | JohnKallies | 457,873,790 | true | {"TypeScript": 580384, "Kotlin": 430178, "HTML": 128324, "Shell": 27042, "Java": 8284, "JavaScript": 3402, "Dockerfile": 771, "CSS": 80} | package edu.wgu.osmt.elasticsearch
import edu.wgu.osmt.BaseDockerizedTest
import edu.wgu.osmt.HasDatabaseReset
import edu.wgu.osmt.HasElasticsearchReset
import edu.wgu.osmt.SpringTest
import edu.wgu.osmt.api.model.ApiAdvancedSearch
import edu.wgu.osmt.api.model.ApiSearch
import edu.wgu.osmt.collection.CollectionEsRepo... | 1 | TypeScript | 0 | 0 | 8cde0a104a3a05a6a60978636325b8ffc5a719a2 | 3,825 | osmt | Apache License 2.0 |
app/src/main/java/lol/calico/uctutors/generated/api/v1/OpenChannelRequestKt.kt | calico32 | 715,594,197 | false | {"Kotlin": 456590, "TypeScript": 218807, "Java": 99962} | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: api/v1/messages.proto
// Generated files should ignore deprecation warnings
@file:Suppress("DEPRECATION")
package lol.calico.uctutors.generated.api.v1;
@kotlin.jvm.JvmName("-initializeopenChannelRequest")
public inline fun openChannelRequest(block:... | 0 | Kotlin | 0 | 0 | a92325ff8dd6ce831fd230b92d3d1be288451143 | 2,159 | uctutors | MIT License |
android/app/src/main/java/com/algorand/android/modules/walletconnect/client/v2/sessionexpiration/di/WalletConnectV2SessionExpirationManagerModule.kt | perawallet | 364,359,642 | false | {"Swift": 8753304, "Kotlin": 7709389, "Objective-C": 88978, "Shell": 7715, "Ruby": 4727, "C": 596} | /*
* Copyright 2022 Pera Wallet, LDA
* 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 writing,... | 22 | Swift | 62 | 181 | 92fc77f73fa4105de82d5e87b03c1e67600a57c0 | 1,726 | pera-wallet | Apache License 2.0 |
RemoveTableHeader/src/main/kotlin/example/App.kt | aterai | 158,348,575 | false | null | package example
import java.awt.*
import javax.swing.*
import javax.swing.table.DefaultTableModel
import javax.swing.table.TableCellRenderer
fun makeUI(): Component {
val columnNames = arrayOf("String", "Integer", "Boolean")
val data = arrayOf(
arrayOf("aaa", 12, true),
arrayOf("bbb", 5, false),
array... | 0 | null | 6 | 9 | 47a0c684f64c3db2c8b631b2c20c6c7f9205bcab | 1,915 | kotlin-swing-tips | MIT License |
plugins/analysis/kotlin-plugin/src/main/kotlin/arrow/meta/plugins/analysis/phases/analysis/solver/ast/kotlin/elements/KotlinAnnotatedExpression.kt | arrow-kt | 217,378,939 | false | null | package arrow.meta.plugins.analysis.phases.analysis.solver.ast.kotlin.elements
import arrow.meta.plugins.analysis.phases.analysis.solver.ast.context.elements.AnnotatedExpression
import arrow.meta.plugins.analysis.phases.analysis.solver.ast.context.elements.Expression
import arrow.meta.plugins.analysis.phases.analysis.... | 97 | Kotlin | 40 | 316 | 8d2a80cf3a1275a752c18baceed74cb61aa13b4d | 680 | arrow-meta | Apache License 2.0 |
app/src/main/java/com/codrutursache/casey/data/data_source/ShoppingListDao.kt | ursachecodrut | 739,025,706 | false | {"Kotlin": 205638} | package com.codrutursache.casey.data.data_source
import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import com.codrutursache.casey.domain.model.ShoppingItemEntity
import com.google.firebase.auth.FirebaseAuth
@Dao
interface ShoppingListDao {
@Qu... | 0 | Kotlin | 0 | 1 | 82b537f401f8ac2447e571e62a94df6518acf23d | 1,108 | casey | MIT License |
app/src/main/java/com/example/lilium/Map/BookingActivity.kt | Farfive | 605,575,557 | false | null | package com.example.lilium.Map
import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.widget.Button
import com.example.lilium.R
class BookingActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(s... | 0 | Kotlin | 0 | 0 | c554e485426abfb2081e80204b1ace518b9cbd3c | 399 | STYLEAP | MIT License |
app/src/main/java/spam/blocker/util/Schedule.kt | aj3423 | 783,998,987 | false | {"Kotlin": 382407, "Go": 6080} | package spam.blocker.util
import android.content.Context
import spam.blocker.R
import java.time.Instant
import java.time.LocalDateTime
import java.time.ZoneId
// Serialized format: "weekdays,time range,enabled"
// e.g. "12345,00:00-01:02,true"
class Schedule {
var enabled = false
var startHour = 0
var sta... | 5 | Kotlin | 6 | 357 | 9a650076aa485bee8bb99653f3d7256b02ec8488 | 3,561 | SpamBlocker | MIT License |
src/commonMain/kotlin/github/otisgoodman/pocketKt/services/LogService.kt | OtisGoodman | 572,316,780 | false | null | package github.otisgoodman.pocketKt.services
import github.otisgoodman.pocketKt.PocketbaseClient
import github.otisgoodman.pocketKt.PocketbaseException
import github.otisgoodman.pocketKt.dsl.query.Filter
import github.otisgoodman.pocketKt.dsl.query.SortFields
import github.otisgoodman.pocketKt.models.LogRequest
import... | 4 | Kotlin | 1 | 3 | 99d4c3f99cad97bd3718829628c986b06b371d89 | 2,685 | pocket-kt | MIT License |
app/src/main/java/com/elementary/tasks/core/data/dao/GoogleTaskListsDao.kt | naz013 | 165,067,747 | false | null | package com.elementary.tasks.core.data.dao
import androidx.lifecycle.LiveData
import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import com.elementary.tasks.core.data.models.GoogleTaskList
@Dao
interface GoogleTaskListsDa... | 0 | null | 3 | 6 | a6eecfda739be05a4b84e7d47284cd9e2bc782d6 | 1,395 | reminder-kotlin | Apache License 2.0 |
src/test/kotlin/leetcode/uber/FirstAndLasPositionInSortedArrayTest.kt | Magdi | 390,731,717 | false | {"Gradle": 2, "INI": 2, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "Markdown": 1, "Kotlin": 96, "Java": 1} | package leetcode.uber
import leetcode.uber.FirstAndLasPositionInSortedArray
import org.junit.Assert.*
import org.junit.Test
internal class FirstAndLasPositionInSortedArrayTest {
@Test
fun `test case 1`() {
val nums = intArrayOf(5, 7, 7, 8, 8, 10)
val target = 8
val expected = intAr... | 0 | Kotlin | 0 | 0 | 63bc711dc8756735f210a71454144dd033e8927d | 963 | ProblemSolving | Apache License 2.0 |
app/src/main/java/io/horizontalsystems/bankwallet/modules/pin/PinViewModel.kt | 923325596 | 185,099,077 | false | null | package io.horizontalsystems.bankwallet.modules.pin
import androidx.core.hardware.fingerprint.FingerprintManagerCompat
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import io.horizontalsystems.bankwallet.SingleLiveEvent
import io.horizontalsystems.bankwallet.core.IKeyStoreSafeExecute
im... | 0 | null | 0 | 1 | 1c34db3d30f5aeddb590b55c2550dbe0da5056b8 | 3,859 | bank-wallet-android | MIT License |
src/aws/lambdas/incremental_distribution/cta/src/test/java/contract/CircuitBreakers.kt | faberga | 304,428,308 | true | {"Kotlin": 1588541, "HCL": 484131, "Ruby": 385358, "Python": 81257, "HTML": 7697, "Java": 7597, "Shell": 4822, "Dockerfile": 2996, "JavaScript": 554, "Makefile": 539} | package contract
import contract.infra.BackendContractScenario
import contract.infra.RecordingTest
import contract.infra.ReplayTest
import org.junit.jupiter.api.Test
import smoke.actors.MobileApp
import smoke.env.SmokeTests
interface CircuitBreakers : BackendContractScenario {
@Test
fun `Mobile user checks ex... | 0 | Kotlin | 0 | 0 | 8c67d6e23c7fc79f039c4012238d82131900a4d4 | 879 | covid19-app-system-public | MIT License |
app/src/main/java/com/wreckingballsoftware/design/ui/framework/FrameworkStateItem.kt | leewaggoner | 698,812,124 | false | {"Kotlin": 60063} | package com.wreckingballsoftware.design.ui.framework
import androidx.compose.runtime.Composable
sealed class FrameworkStateItem(
val isTopBarActionAvailable: Boolean,
val isNavBarVisible: Boolean,
val fabAction: @Composable () -> Unit,
) {
class AuthFrameworkStateItem : FrameworkStateItem(
isT... | 0 | Kotlin | 0 | 0 | 857d5c4584563f3e94e8682b847565fd1a4cf346 | 1,110 | design | Apache License 2.0 |
client/android/div/src/main/java/com/yandex/div/core/state/UpdateStateChangePageCallback.kt | divkit | 523,491,444 | false | {"Kotlin": 7327303, "Swift": 5164616, "Svelte": 1148832, "TypeScript": 912803, "Dart": 630920, "Python": 536031, "Java": 507940, "JavaScript": 152546, "CSS": 37870, "HTML": 23434, "C++": 20911, "CMake": 18677, "Shell": 8895, "PEG.js": 7210, "Ruby": 3723, "C": 1425, "Objective-C": 38} | package com.yandex.div.core.state
import androidx.recyclerview.widget.RecyclerView
import androidx.viewpager2.widget.ViewPager2.OnPageChangeCallback
/**
* Save view pager position in [DivViewState]
*/
internal class UpdateStateChangePageCallback(
private val mBlockId: String,
private val mDivViewState: DivV... | 5 | Kotlin | 128 | 2,240 | dd102394ed7b240ace9eaef9228567f98e54d9cf | 549 | divkit | Apache License 2.0 |
easypublish/src/main/java/osp/leobert/maven/publish/EasyPublishPlugin.kt | leobert-lan | 365,922,895 | false | null | @file:Suppress("deprecation")
package osp.leobert.maven.publish
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.api.Task
import org.gradle.api.artifacts.ConfigurationContainer
import org.gradle.api.artifacts.maven.Conf2ScopeMappingContainer
import org.gradle.api.internal.project.ProjectIn... | 0 | Kotlin | 0 | 2 | 22ae0ac6f2ff17f0f50d65fb3617e597e0723c98 | 14,092 | EsayPublish | Apache License 2.0 |
compiler/src/main/kotlin/com/r0adkll/kimchi/annotations/ContributesSubcomponentAnnotation.kt | r0adkll | 842,714,606 | false | null | // Copyright (C) 2024 r0adkll
// SPDX-License-Identifier: Apache-2.0
package com.r0adkll.kimchi.annotations
import com.google.devtools.ksp.symbol.KSAnnotated
import com.google.devtools.ksp.symbol.KSClassDeclaration
import com.r0adkll.kimchi.util.KimchiException
import com.r0adkll.kimchi.util.ksp.argumentAt
import com.... | 3 | null | 1 | 8 | 4c1b05096184ca4db4dac41104940ef2a70fc67a | 1,937 | kimchi | Apache License 2.0 |
ui/ui-saved-instance-state/src/commonMain/kotlin/androidx/compose/runtime/savedinstancestate/UiSavedStateRegistry.kt | Sathawale27 | 284,157,908 | false | null | /*
* Copyright 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 applica... | 1 | null | 0 | 1 | 549e3e3003cd308939ff31799cf1250e86d3e63e | 4,223 | androidx | Apache License 2.0 |
src/main/kotlin/no/nav/familie/ef/personhendelse/handler/DøfødtBarnHandler.kt | navikt | 386,583,602 | false | {"Kotlin": 216367, "Dockerfile": 136, "Shell": 37} | package no.nav.familie.ef.personhendelse.handler
import no.nav.familie.ef.personhendelse.datoutil.tilNorskDatoformat
import no.nav.person.pdl.leesah.Personhendelse
import org.springframework.stereotype.Component
@Component
class DøfødtBarnHandler : PersonhendelseHandler {
override val type = PersonhendelseType.D... | 0 | Kotlin | 0 | 0 | 2f099ec37719527d73eb0a09083f9d89169ae022 | 551 | familie-ef-personhendelse | MIT License |
4/PR4_8+/app/src/main/java/com/example/pr4_8/AlarmReceiver.kt | Purpurum | 580,288,282 | false | null | package com.example.pr4_8
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.util.Log
import android.widget.Toast
class AlarmReceiver:BroadcastReceiver() {
override fun onReceive(context: Context?, intent: Intent?) {
val intent = Intent(con... | 0 | Kotlin | 0 | 0 | 247e216e5e3e33eb0dbb25fc4e1305036df3667e | 491 | MD-NARFU | MIT License |
core/src/commonMain/kotlin/com/xebia/functional/xef/llm/models/chat/MessageWithFunctionCall.kt | xebia-functional | 629,411,216 | false | null | package com.xebia.functional.xef.llm.models.chat
import com.xebia.functional.xef.llm.models.functions.FunctionCall
data class MessageWithFunctionCall(
val role: String,
val content: String? = null,
val functionCall: FunctionCall?,
val name: String? = Role.ASSISTANT.name
)
| 10 | Kotlin | 8 | 89 | a762a968c31778f0a314a204f6b10340cec38336 | 283 | xef | Apache License 2.0 |
kotlin-jvm/src/main/kotlin/playground/SkrapeIt.kt | LouisCAD | 295,134,297 | false | null | @file:Suppress("PackageDirectoryMismatch")
package playground.skrapeit
import it.skrape.core.htmlDocument
import it.skrape.expect
import it.skrape.matchers.ContentTypes
import it.skrape.matchers.toBe
import it.skrape.matchers.toBePresentTimes
import it.skrape.matchers.toContain
import it.skrape.selects.and
import it.... | 16 | null | 54 | 171 | ff3ae6af7530d3b873b79486cf6e947f1ee53aa1 | 6,452 | kotlin-libraries-playground | MIT License |
src/commonTest/kotlin/responseexpectations/ExpectedSong.kt | MrNuggelz | 866,645,099 | false | {"Kotlin": 132979} | package responseexpectations
import io.github.mrnuggelz.opensubsonic.responses.ItemGenre
import io.github.mrnuggelz.opensubsonic.responses.ReplayGain
import io.github.mrnuggelz.opensubsonic.responses.Song
internal val expectedSong = Song(
id = "a70f5f4d781dfa00020e8023698318c0",
parent = "7a234fa5fc021f53f966... | 0 | Kotlin | 0 | 1 | 0734cbd098998abd57e9210d93963dd58c1950bc | 1,437 | OpenSubsonicClient | Apache License 2.0 |
app/src/main/kotlin/com/dtz/netservice/utils/DefaultExceptionHandler.kt | arthurisaac | 590,202,437 | false | {"Kotlin": 527523, "Java": 6547} | package com.dtz.netservice.utils
import android.annotation.SuppressLint
import android.app.Activity
import android.app.AlarmManager
import android.app.PendingIntent
import android.content.Context
import android.content.Intent
import com.dtz.netservice.app.ApplicationClass
import com.dtz.netservice.ui.activities.login.... | 0 | Kotlin | 0 | 0 | 0e0d332896a6db60c5af57680d039f7aa08ed9cb | 1,278 | crit-app | Apache License 2.0 |
idea/tests/testData/wordSelection/ClassMember5/5.kt | JetBrains | 278,369,660 | false | null | class C {
constructor()
<selection><caret>init</selection> {
}
fun foo() {
}
// comment
val bar = 1
} | 0 | Kotlin | 30 | 82 | cc81d7505bc3e9ad503d706998ae8026c067e838 | 133 | intellij-kotlin | Apache License 2.0 |
lib_base_framework/src/main/java/app/melon/base/framework/lifecycle/LifecycleEvent.kt | biubiubiiu | 344,728,768 | false | null | package app.melon.base.framework.lifecycle
interface LifecycleEvent | 1 | Kotlin | 1 | 2 | 6bb52f962084674ed50ffb3f8399c1b413a5a234 | 68 | Melon | Apache License 2.0 |
trixnity-client/src/commonMain/kotlin/net/folivo/trixnity/client/store/cache/DeleteByRoomIdRepositoryCoroutineCache.kt | benkuly | 330,904,570 | false | null | package net.folivo.trixnity.client.store.cache
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.coroutineScope
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow
import kotlinx.coroutines.flow.update
import kotlinx.coroutines.launch
import net.folivo.trixnity.cli... | 0 | Kotlin | 3 | 25 | 06fce82bf53d18085eb001e1b18ddc40465a46ab | 4,017 | trixnity | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.