path stringlengths 4 280 | owner stringlengths 2 39 | repo_id int64 21.1k 879M | is_fork bool 2
classes | languages_distribution stringlengths 13 1.95k ⌀ | content stringlengths 7 482k | issues int64 0 13.9k | main_language stringclasses 121
values | forks stringlengths 1 5 | stars int64 0 111k | commit_sha stringlengths 40 40 | size int64 7 482k | name stringlengths 1 100 | license stringclasses 93
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
src/main/kotlin/com/s3ich4n/theater/domain/Seat.kt | s3ich4n | 611,847,333 | false | null | package com.s3ich4n.theater.domain
import jakarta.persistence.Entity
import jakarta.persistence.GeneratedValue
import jakarta.persistence.GenerationType
import jakarta.persistence.Id
import java.math.BigDecimal
@Entity
class Seat(
@Id @GeneratedValue(strategy = GenerationType.AUTO)
val id: Long,
val row: ... | 0 | Kotlin | 0 | 0 | aea28cb9ca773ca1151602166e169021ffe9b171 | 484 | kotlin-spring-101-1 | MIT License |
plugins/kotlin/idea/tests/testData/multiModuleQuickFix/addThrowAnnotation/jvm/jvm_dep(stdlib)/jvm.kt | JetBrains | 2,489,216 | false | null | // "Add '@Throws' annotation" "true"
// IGNORE_K2
fun test() {
<caret>throw Throwable()
} | 284 | null | 5162 | 16,707 | def6433a5dd9f0a984cbc6e2835d27c97f2cb5f0 | 94 | intellij-community | Apache License 2.0 |
app/src/main/java/dev/esnault/bunpyro/android/screen/start/StartViewModel.kt | esnaultdev | 242,479,002 | false | null | package dev.esnault.bunpyro.android.screen.start
import androidx.lifecycle.viewModelScope
import dev.esnault.bunpyro.android.screen.base.BaseViewModel
import dev.esnault.bunpyro.data.repository.apikey.IApiKeyRepository
import dev.esnault.bunpyro.data.repository.sync.ISyncRepository
import kotlinx.coroutines.Dispatche... | 2 | Kotlin | 1 | 9 | 89b3c7dad2c37c22648c26500016d6503d27019e | 1,058 | BunPyro | Intel Open Source License |
YasuoRVAdapter/src/main/java/com/fusion_nex_gen/yasuorvadapter/viewPager/YasuoNormalVPAdapter.kt | q876625596 | 333,317,871 | false | null | package com.fusion_nex_gen.yasuorvadapter.viewPager
import android.view.ViewGroup
import androidx.core.util.set
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.LifecycleObserver
import androidx.lifecycle.LifecycleOwner
import androidx.lifecycle.OnLifecycleEvent
import androidx.recyclerview.widget.Recycle... | 1 | null | 4 | 52 | 6c9f90b650b6bf6e0fdf914d5c9d05cd95454ce1 | 4,209 | YasuoRecyclerViewAdapter | Apache License 2.0 |
zircon.core/src/commonMain/kotlin/org/hexworks/zircon/internal/component/impl/DefaultPanel.kt | Hexworks | 94,116,947 | false | null | package org.hexworks.zircon.internal.component.impl
import org.hexworks.zircon.api.behavior.TitleOverride
import org.hexworks.zircon.api.component.ColorTheme
import org.hexworks.zircon.api.component.Panel
import org.hexworks.zircon.api.component.data.ComponentMetadata
import org.hexworks.zircon.api.component.renderer.... | 42 | null | 138 | 738 | 55a0ccc19a3f1b80aecd5f1fbe859db94ba9c0c6 | 755 | zircon | Apache License 2.0 |
common/src/main/kotlin/dev/jaims/mcutils/common/Common.kt | Jaimss | 278,483,163 | false | null | package dev.jaims.mcutils.common
import khttp.post
import java.util.*
/**
* Post a [String] to https://paste.jaims.dev. Useful for sending console logs or error messages.
*/
fun String.toPastebin(): String {
val url = "https://paste.jaims.dev/documents"
val r = post(
url,
mapOf(
... | 1 | Kotlin | 0 | 1 | db4dda2b504e6057fab93b2683c2ee301df035ca | 3,339 | mcutils | MIT License |
fluent-icons-extended/src/commonMain/kotlin/com/konyaco/fluent/icons/regular/PersonClock.kt | Konyaco | 574,321,009 | false | null |
package com.konyaco.fluent.icons.regular
import androidx.compose.ui.graphics.vector.ImageVector
import com.konyaco.fluent.icons.Icons
import com.konyaco.fluent.icons.fluentIcon
import com.konyaco.fluent.icons.fluentPath
public val Icons.Regular.PersonClock: ImageVector
get() {
if (_personClock != null) ... | 1 | Kotlin | 3 | 83 | 9e86d93bf1f9ca63a93a913c990e95f13d8ede5a | 2,624 | compose-fluent-ui | Apache License 2.0 |
feature/collection/src/main/java/com/mrl/pixiv/collection/viewmodel/CollectionMiddleware.kt | master-lzh | 656,227,310 | false | {"Kotlin": 500860} | package com.mrl.pixiv.collection.viewmodel
import com.mrl.pixiv.common.viewmodel.Middleware
import com.mrl.pixiv.data.Restrict
import com.mrl.pixiv.data.user.UserBookmarkTagsQuery
import com.mrl.pixiv.repository.CollectionRepository
import kotlinx.collections.immutable.toImmutableList
import org.koin.core.annotation.F... | 1 | Kotlin | 0 | 21 | ec9f9fa1508971dd34dd968affe82d023d05a942 | 1,525 | PiPixiv | Apache License 2.0 |
authlibrary/src/test/java/com/koma/authlibrary/data/source/AuthRepositoryTest.kt | komamj | 244,861,092 | false | null | package com.koma.authlibrary.data.source
import org.junit.runner.RunWith
import org.junit.runners.JUnit4
@RunWith(JUnit4::class)
class AuthRepositoryTest {
} | 0 | Kotlin | 0 | 0 | 8b25061848bc7302877ccf25f964ad63ee15d185 | 160 | CAC | Apache License 2.0 |
dsl/common/lang-common/src/main/kotlin/io/kotless/dsl/lang/Permissions.kt | cienijr | 273,365,740 | true | {"Kotlin": 290861} | package io.kotless.dsl.lang
import io.kotless.PermissionLevel
/** Delegates permissions to specified bucket to entity with annotation */
@Target(AnnotationTarget.FUNCTION, AnnotationTarget.CLASS, AnnotationTarget.PROPERTY)
annotation class S3Bucket(val bucket: String, val level: PermissionLevel)
/** Delegates permis... | 0 | Kotlin | 0 | 0 | 90e13fe0593a318143865e7987f3529b83ea7d9b | 1,078 | kotless | Apache License 2.0 |
feature/schedule/src/main/java/little/goose/schedule/ui/ScheduleHomeViewModel.kt | MReP1 | 525,822,587 | false | null | package little.goose.schedule.ui
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.flow.*
import kotlinx.coroutines.launch
import little.goose.schedule.data.entities.Schedule
import little.goose.schedule.logic.Delet... | 1 | null | 27 | 94 | 4b5c62cec0913b198ddd7c8df25a403bc6eda9f8 | 3,459 | LittleGooseOffice | MIT License |
custom-komapper-jdbc-change/src/main/kotlin/momosetkn/liquibase/kotlin/change/CustomKomapperJdbcChange.kt | momosetkn | 844,062,460 | false | {"Kotlin": 361938} | package momosetkn.liquibase.kotlin.change
import liquibase.change.custom.CustomChange
import liquibase.change.custom.CustomChangeWrapper
import liquibase.change.custom.setCustomChange
import liquibase.exception.ValidationErrors
import momosetkn.liquibase.kotlin.dsl.ChangeSetDsl
fun ChangeSetDsl.customKomapperJdbcChan... | 2 | Kotlin | 1 | 3 | 283589789d8baa7b1e06489811c8bd548fc611a1 | 1,349 | liquibase-kotlin | Apache License 2.0 |
router/src/main/kotlin/com/kamijoucen/cenim/router/service/UserChatService.kt | Kamijoucen | 282,948,242 | false | null | package com.kamijoucen.cenim.router.service
import com.kamijoucen.cenim.common.util.MappingKeyGenerator
import com.kamijoucen.cenim.message.msg.Message
import com.kamijoucen.cenim.router.domain.UserImpl
import com.kamijoucen.cenim.router.exception.HistoryNotFoundException
import com.kamijoucen.cenim.router.manager.Rou... | 0 | Kotlin | 0 | 1 | 834b7e433f54ed856c9f17590eb7d877c85cc043 | 1,946 | CenIM | Apache License 2.0 |
BaseExtend/src/main/java/com/chen/baseextend/bean/project/AppealImageBean.kt | chen397254698 | 268,411,455 | false | null | package com.chen.baseextend.bean.project
import com.chen.basemodule.basem.BaseBean
/**
* Created by chen on 2019/8/23
**/
data class AppealImageBean(
val index: Int? = null,//排序
val image : String? = null//步骤类型 1.网址 2.二维码 3.数据复制 4.图文说明 5.验证图 6.收集信息 ,
):BaseBean() | 1 | null | 14 | 47 | 85ffc5e307c6171767e14bbfaf992b8d62ec1cc6 | 284 | EasyAndroid | Apache License 2.0 |
ackpine-splits/src/main/kotlin/ru/solrudev/ackpine/splits/parsing/AndroidManifest.kt | solrudev | 641,599,463 | false | null | package ru.solrudev.ackpine.splits.parsing
import androidx.annotation.RestrictTo
private const val ANDROID_NAMESPACE = "http://schemas.android.com/apk/res/android"
@RestrictTo(RestrictTo.Scope.LIBRARY)
internal class AndroidManifest internal constructor(private val manifest: Map<String, String>) {
@get:JvmSyntheti... | 0 | Kotlin | 0 | 0 | 99a814e62aed4e6614868878cf383014866180d1 | 972 | Ackpine | Apache License 2.0 |
app/src/main/java/org/coepi/android/repo/reportsupdate/NewAlertsNotificationShower.kt | Co-Epi | 249,138,523 | false | null | package org.coepi.android.repo.reportsupdate
import org.coepi.android.R.drawable
import org.coepi.android.R.plurals
import org.coepi.android.R.string
import org.coepi.android.system.Resources
import org.coepi.android.system.intent.IntentKey.NOTIFICATION_INFECTION_ARGS
import org.coepi.android.system.intent.IntentNoVal... | 14 | Kotlin | 20 | 32 | 54cffa441d27d18ba33d7719a34dc9b5c9125262 | 2,044 | app-android | MIT License |
app/src/main/java/org/coepi/android/repo/reportsupdate/NewAlertsNotificationShower.kt | Co-Epi | 249,138,523 | false | null | package org.coepi.android.repo.reportsupdate
import org.coepi.android.R.drawable
import org.coepi.android.R.plurals
import org.coepi.android.R.string
import org.coepi.android.system.Resources
import org.coepi.android.system.intent.IntentKey.NOTIFICATION_INFECTION_ARGS
import org.coepi.android.system.intent.IntentNoVal... | 14 | Kotlin | 20 | 32 | 54cffa441d27d18ba33d7719a34dc9b5c9125262 | 2,044 | app-android | MIT License |
sdk-gigya/src/main/java/com/ownid/sdk/internal/OwnIdGigyaIntegration.kt | OwnID | 414,235,878 | false | {"Kotlin": 564879, "Java": 13542} | package com.ownid.sdk.internal
import androidx.annotation.RestrictTo
import androidx.core.os.LocaleListCompat
import com.gigya.android.sdk.Gigya
import com.gigya.android.sdk.GigyaLoginCallback
import com.gigya.android.sdk.account.models.GigyaAccount
import com.gigya.android.sdk.api.GigyaApiResponse
import com.gigya.an... | 0 | Kotlin | 1 | 1 | e49b09660dc1a4fd012e4c0eb2c2bf855912ae1d | 7,379 | ownid-android-sdk | Apache License 2.0 |
sources/Currency.kt | fluidsonic | 289,522,609 | false | null | package io.fluidsonic.currency
public class Currency private constructor(
public val code: CurrencyCode,
public val defaultFractionDigits: Int,
public val numericCode: Int,
) {
override fun toString(): String =
code.toString()
public companion object {
// https://www.currency-iso.org/en/home/tables/table... | 0 | Kotlin | 2 | 6 | 5f3147484a514dfd20565614e2be8d077e5ebe04 | 13,516 | fluid-currency | Apache License 2.0 |
Log/src/main/java/com/chatwaifu/log/IChatLogDbApi.kt | Voine | 603,770,379 | false | null | package com.chatwaifu.log
import com.chatwaifu.log.room.ChatMessage
/**
* Description: ChatLogApi
* Author: Voine
* Date: 2023/3/13
*/
interface IChatLogDbApi {
fun insertChatLog(
characterName: String,
isFromMe: Boolean,
chatMessage: String,
completionToken: Int = -1,
... | 8 | C++ | 100 | 951 | 14092ac66c2afd51de06bb126fd102cec869eb8e | 679 | ChatWaifu_Mobile | MIT License |
src/test/kotlin/no/nav/pensjon/kalkulator/tjenestepensjon/client/esb/EsbTjenestepensjonClientTest.kt | navikt | 596,104,195 | false | null | package no.nav.pensjon.kalkulator.tjenestepensjon.client.esb
import no.nav.pensjon.kalkulator.mock.MockSecurityConfiguration.Companion.arrangeSecurityContext
import no.nav.pensjon.kalkulator.mock.PersonFactory.pid
import no.nav.pensjon.kalkulator.mock.WebClientTest
import no.nav.pensjon.kalkulator.mock.XmlMapperFactor... | 1 | Kotlin | 0 | 0 | a642602ae4997fb9d88f97464a85a6c3d9c33a89 | 8,891 | pensjonskalkulator-backend | MIT License |
example/android/app/src/main/kotlin/com/share/and/open/url/share_and_open_url_example/MainActivity.kt | bedirhanssaglam | 793,221,095 | false | {"Kotlin": 4911, "Dart": 4644, "Swift": 3521, "Ruby": 2396, "Objective-C": 38} | package com.share.and.open.url.share_and_open_url_example
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity()
| 0 | Kotlin | 0 | 0 | beed895a89aa84ae231c288e0adb409bd12feb85 | 150 | share_and_open_url_plugin | MIT License |
generator-integration-test/src/test/kotlin/com/lsdconsulting/stub/integration/post/AdvancedPostRestControllerIT.kt | lsd-consulting | 592,675,346 | false | null | package com.lsdconsulting.stub.integration.post
import com.fasterxml.jackson.databind.ObjectMapper
import com.github.tomakehurst.wiremock.client.VerificationException
import com.lsdconsulting.stub.integration.BaseRestControllerIT
import com.lsdconsulting.stub.integration.POST_CONTROLLER_URL
import com.lsdconsulting.st... | 4 | Kotlin | 0 | 0 | 32e4fe4955ed62eef72c8a89528161a2d43e334e | 6,099 | spring-wiremock-stub-generator | MIT License |
tilbakekreving/application/src/main/kotlin/tilbakekreving/application/service/vurder/BrevTilbakekrevingsbehandlingService.kt | navikt | 227,366,088 | false | {"Kotlin": 10119509, "Shell": 4388, "TSQL": 1233, "Dockerfile": 1209} | package tilbakekreving.application.service.vurder
import arrow.core.Either
import arrow.core.getOrElse
import arrow.core.left
import arrow.core.right
import no.nav.su.se.bakover.domain.sak.SakService
import no.nav.su.se.bakover.domain.sak.oppdaterVedtaksbrev
import org.slf4j.LoggerFactory
import tilbakekreving.applica... | 9 | Kotlin | 1 | 1 | f187a366e1b4ec73bf18f4ebc6a68109494f1c1b | 1,965 | su-se-bakover | MIT License |
analysis/analysis-api-providers/src/org/jetbrains/kotlin/analysis/providers/impl/KotlinStaticDeclarationProvider.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-2022 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.analysis.providers.impl
import com.intellij.psi.PsiElement
import com.intellij.p... | 157 | null | 5209 | 42,102 | 65f712ab2d54e34c5b02ffa3ca8c659740277133 | 6,808 | kotlin | Apache License 2.0 |
src/test/kotlin/com/dg/watcher/watching/loading/ApkLoadingTest.kt | scottdweber | 102,811,791 | true | {"Kotlin": 34986, "Java": 1215, "HTML": 423} | package com.dg.watcher.watching.loading
import com.dg.watcher.base.Build
import com.nhaarman.mockito_kotlin.doReturn
import com.nhaarman.mockito_kotlin.mock
import hudson.FilePath
import org.junit.Assert.assertNotNull
import org.junit.Assert.assertNull
import org.junit.Rule
import org.junit.Test
import org.junit.rules... | 0 | Kotlin | 0 | 0 | b8600065054e7dcc950a2b9b2be12d7807166e77 | 2,343 | android-apk-size-watcher-plugin | MIT License |
bbfgradle/tmp/results/diffABI/qsiopad_FILE.kt | DaniilStepanov | 346,008,310 | false | null | // Bug happens on JVM , JVM -Xuse-ir
// FILE: tmp0.kt
package qsiopad
import kotlin.collections.*
import kotlin.text.*
import kotlin.sequences.*
import kotlin.reflect.*
class StrList : List<String?> {
override val size: Int
get() = throw UnsupportedOperationException()
override fun isEmpty(): Boolean... | 1 | null | 1 | 1 | e772ef1f8f951873ebe7d8f6d73cf19aead480fa | 5,164 | kotlinWithFuzzer | Apache License 2.0 |
wrapper/Android/AutoE2E/app/src/main/java/com/example/autoe2e/lib/resolver/Query.kt | CreeJee | 230,300,137 | false | {"TypeScript": 74284, "Kotlin": 21352, "HTML": 3814, "JavaScript": 1319, "Java": 625, "CSS": 366} | package com.example.autoe2e.lib.resolver
import com.example.autoe2e.lib.mock.findProject
import com.example.autoe2e.lib.mock.projectList
import com.example.autoe2e.lib.types.IQuery
import com.example.autoe2e.lib.types.Project
class Query: IQuery {
override fun project(id: String): Project? {
return findPr... | 9 | TypeScript | 0 | 1 | 1a8706d3c2c8b30f514e719e41cfb8bcd878ad2d | 430 | AutoE2E | MIT License |
android-adb/src/com/android/tools/idea/ui/AbstractDialogWrapper.kt | JetBrains | 60,701,247 | 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 | Java | 187 | 751 | 16d17317f2c44ec46e8cd2180faf9c349d381a06 | 2,243 | android | Apache License 2.0 |
app/src/main/java/com/akhbulatov/wordkeeper/features/wordcategory/selectwordcategory/SelectWordCategoryFactory.kt | akhbulatov | 65,332,258 | false | {"Kotlin": 99560} | package com.akhbulatov.wordkeeper.features.wordcategory.selectwordcategory
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import com.akhbulatov.wordkeeper.WordKeeperApp
class SelectWordCategoryFactory {
fun createViewModelFactory() = object : ViewModelProvider.Factory {
o... | 0 | Kotlin | 0 | 2 | ce13456349e91020f5ff64cc16d6595f52cdef9c | 666 | wordkeeper | Apache License 2.0 |
app/src/main/java/com/kkyy_96/controlmywindow/MainActivity.kt | CYL96 | 845,893,031 | false | {"Kotlin": 35428} | package com.kkyy_96.controlmywindow
import android.os.Bundle
import androidx.activity.compose.setContent
import androidx.fragment.app.FragmentActivity
import com.kkyy_96.controlmywindow.src.config.MyControlConfig
import com.kkyy_96.controlmywindow.src.log.MyLog
import com.kkyy_96.controlmywindow.src.page.NavGraph
impo... | 0 | Kotlin | 0 | 0 | b14d0c7650c9c49c7696239a48ddbf2ecf44273a | 712 | ControlMyWindowForAndroid | Apache License 2.0 |
tilbakekreving/domain/src/main/kotlin/tilbakekreving/domain/Tilbakekrevingsbehandling.kt | navikt | 227,366,088 | false | {"Kotlin": 9216308, "Shell": 4369, "TSQL": 1233, "Dockerfile": 800} | package tilbakekreving.domain
import dokument.domain.brev.Brevvalg
import no.nav.su.se.bakover.common.domain.NonBlankString
import no.nav.su.se.bakover.common.domain.attestering.Attesteringshistorikk
import no.nav.su.se.bakover.common.ident.NavIdentBruker
import no.nav.su.se.bakover.common.tid.Tidspunkt
import no.nav.... | 4 | Kotlin | 1 | 1 | bcfe10b28af8a9a8592c0cf8422d19b6892ee872 | 1,790 | su-se-bakover | MIT License |
lib/src/main/java/com/kotlin/inaction/chapter_5/5_3_1_4_ExecutingSequenceOperations.kt | jhwsx | 167,022,805 | false | {"Gradle": 4, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 3, "Proguard": 1, "Kotlin": 426, "XML": 14, "Java": 86, "desktop": 1} | package com.kotlin.inaction.chapter_5
/**
*
* @author wzc
* @date 2019/2/14
*/
fun main(args: Array<String>) {
val people = listOf<Person>(
Person("Alice",29),
Person("Bob",31),
Person("Charles",31),
Person("Dan",21)
)
// 先 map 再 filter,需要执行 4 次map,4 次filter
println(people... | 1 | null | 1 | 1 | 1cdb279920c229fa4e00a09a8165f32e71cadd3e | 649 | KotlinInAction | MIT License |
domain/src/main/java/com/no1/taiwan/newsbasket/domain/usecases/token/KeepNewsTokenRespCase.kt | SmashKs | 157,812,125 | false | null | package com.no1.taiwan.newsbasket.domain.usecases.token
import com.no1.taiwan.newsbasket.domain.BaseUsecase.RequestValues
import com.no1.taiwan.newsbasket.domain.parameters.params.TokenParams
import com.no1.taiwan.newsbasket.domain.repositories.TokenRepository
import com.no1.taiwan.newsbasket.domain.usecases.KeepNewsT... | 0 | Kotlin | 0 | 2 | 8f8a0f31c3781007a5fd78c284f44f0ec71b89d0 | 817 | NewsBascket | MIT License |
app/src/main/java/com/alok/dailynews/api/responsemodel/CollegeListResponse.kt | alokbharti | 266,596,782 | false | null | package com.alok.dailynews.api.responsemodel
import com.google.gson.annotations.SerializedName
data class CollegeListResponse(
@SerializedName("id")
var id: String,
@SerializedName("name")
var name: String
) | 0 | Kotlin | 2 | 5 | d57529683006accb85c21916d5463dfe39f58307 | 225 | DailyNews-Kotlin | Apache License 2.0 |
core/src/commonMain/kotlin/dev/kryptonreborn/blockfrost/base/ErrorResponse.kt | KryptonReborn | 803,884,694 | false | {"Kotlin": 608832, "Swift": 594, "HTML": 323} | package dev.kryptonreborn.blockfrost.base
import dev.kryptonreborn.blockfrost.ktor.Ktor
import io.ktor.http.HttpStatusCode
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import kotlinx.serialization.json.JsonArray
import kotlinx.serialization.json.JsonObject
import kotlinx.serializat... | 0 | Kotlin | 1 | 1 | f04fa182b1599042702f6ab36047c9a1826d4522 | 3,038 | blockfrost-kotlin-sdk | Apache License 2.0 |
app/src/main/java/com/flight/app/view/map/MapsActivity.kt | NalediMadlopha | 173,349,872 | false | null | package com.flight.app.view.map
import android.Manifest
import android.content.pm.PackageManager
import android.os.Bundle
import android.view.View
import androidx.appcompat.app.AppCompatActivity
import androidx.core.app.ActivityCompat
import androidx.core.content.ContextCompat
import androidx.lifecycle.ViewModelProvid... | 2 | Kotlin | 0 | 0 | 4e920a3d51a79c7fbb88c65fa42e9d923436efbb | 2,976 | flight | MIT License |
src/test/kotlin/Main.kt | volta2030 | 712,138,104 | false | {"Kotlin": 12518} | import kuda.*
import kuda.type.Error
import kuda.type.FunctionCache
import kuda.type.Limit
fun main(args: Array<String>) {
val runtimeAPI = RuntimeAPI()
val driverAPI = DriverAPI()
val cudaVersion = runtimeAPI.getRuntimeVersion()
val driverVersion = driverAPI.getDriverVersion()
val device = runti... | 0 | Kotlin | 0 | 0 | 7bc419e514a94205d9906a6f52f25dd2cb5023c0 | 1,380 | kuda | MIT License |
src/main/java/uk/gov/justice/digital/hmpps/whereabouts/services/AttendanceService.kt | ministryofjustice | 141,123,113 | false | {"Kotlin": 849414, "Java": 99907, "Shell": 2877, "Dockerfile": 1368} | package uk.gov.justice.digital.hmpps.whereabouts.services
import com.microsoft.applicationinsights.TelemetryClient
import jakarta.transaction.Transactional
import org.slf4j.Logger
import org.slf4j.LoggerFactory
import org.springframework.data.domain.Page
import org.springframework.data.domain.Pageable
import org.sprin... | 6 | Kotlin | 1 | 1 | daf794b5997acfdc9e5364603d936fabe2d735e7 | 18,777 | whereabouts-api | Apache License 2.0 |
projects/ComposeConstraintLayout/app/src/main/java/com/example/constraintlayout/motion/dsl/ExtendingConstraintSets.kt | androidx | 212,409,034 | 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... | 83 | Java | 164 | 986 | de916779a3065bd23e21f9180bf6af62468b5518 | 4,209 | constraintlayout | Apache License 2.0 |
src/org/jetbrains/r/visualization/inlays/components/InlayTablePage.kt | JetBrains | 214,212,060 | false | {"Kotlin": 2717574, "Java": 559646, "R": 37082, "Lex": 14307, "HTML": 10063, "Rez": 70, "Rebol": 47} | /*
* Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
*/
package org.jetbrains.plugins.notebooks.visualization.r.inlays.components
import com.intellij.icons.AllIcons
import com.intellij.ide.CopyProvider
import com.intellij.ide.... | 284 | Kotlin | 5162 | 61 | dc931d6d51748c265b53fbd76c4e9f8a6996bb1b | 10,720 | Rplugin | Apache License 2.0 |
vuesaxicons/src/commonMain/kotlin/moe/tlaster/icons/vuesax/vuesaxicons/broken/Brush3.kt | Tlaster | 560,394,734 | false | {"Kotlin": 25133302} | package moe.tlaster.icons.vuesax.vuesaxicons.broken
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
import androidx.... | 0 | Kotlin | 0 | 2 | b8a8231e6637c2008f675ae76a3423b82ee53950 | 3,888 | VuesaxIcons | MIT License |
kbip44/src/test/kotlin/org/komputing/kbip44/TheBIP44.kt | komputing | 221,162,647 | false | null | package org.komputing.kbip44
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Assertions.assertThrows
import org.junit.jupiter.api.Test
class TheBIP44 {
@Test
fun parsingFailsForBadInput() {
assertThrows(IllegalArgumentException::class.java){
BIP44("abc")
... | 4 | null | 0 | 2 | d68ec7c42993926e3b81a524864f683447893c9e | 2,063 | KBIP44 | MIT License |
taxi-cli/src/main/java/lang/taxi/cli/config/TaxiProjectLoader.kt | taxilang | 601,101,781 | false | {"Kotlin": 1614057, "ANTLR": 66122, "TypeScript": 7231, "JavaScript": 4324, "Shell": 1468, "Java": 1454, "MDX": 425} | package lang.taxi.cli.config
import com.typesafe.config.Config
import com.typesafe.config.ConfigFactory
import com.typesafe.config.ConfigRenderOptions
import io.github.config4k.extract
import lang.taxi.packages.TaxiPackageProject
import org.apache.commons.lang3.SystemUtils
import org.slf4j.Logger
import org.slf4j.Logg... | 8 | Kotlin | 5 | 75 | b94c71c7c8751c05c4f466c58c4483dac3f2e421 | 1,624 | taxilang | Apache License 2.0 |
app/src/main/java/com/github2136/base/view/activity/login/LoginVM.kt | github2136 | 210,985,491 | false | {"Kotlin": 141857, "Java": 10614} | package com.github2136.base.view.activity.login
import android.app.Application
import androidx.lifecycle.MutableLiveData
import com.github2136.base.repository.UserRepository
import com.github2136.base.repository.WeatherRepository
import com.github2136.basemvvm.BaseVM
import com.github2136.basemvvm.ResultRepo
/**
* C... | 0 | Kotlin | 0 | 2 | 8ec63d87d4a25c599704ced72bb842513f16975e | 1,974 | Base | Apache License 2.0 |
src/nl/hannahsten/texifyidea/structure/latex/LatexFilePresentation.kt | sundermann | 325,311,190 | true | {"Gradle Kotlin DSL": 2, "Java Properties": 1, "Markdown": 7, "Shell": 1, "Text": 2, "Ignore List": 1, "Batchfile": 1, "EditorConfig": 1, "YAML": 3, "Kotlin": 592, "Java": 93, "TeX": 38, "BibTeX": 3, "INI": 1, "XML": 5, "JFlex": 2, "CODEOWNERS": 1, "SVG": 74, "HTML": 98, "Python": 1} | package nl.hannahsten.texifyidea.structure.latex
import com.intellij.navigation.ItemPresentation
import com.intellij.psi.PsiFile
import nl.hannahsten.texifyidea.TexifyIcons
import nl.hannahsten.texifyidea.util.Magic
/**
* @author <NAME>
*/
open class LatexFilePresentation(private val file: PsiFile) : ItemPresentati... | 1 | null | 0 | 0 | afb253cfce2159660097792682e05c147851afe9 | 608 | TeXiFy-IDEA | MIT License |
src/main/java/ir/rkr/kariz2/main.kt | silkenpy | 180,726,939 | false | null | package ir.rkr.kariz2
import com.typesafe.config.ConfigFactory
import ir.rkr.kariz2.kafka.KafkaConnector
import ir.rkr.kariz2.netty.NettyServer
import ir.rkr.kariz2.redis.RedisConnector
import ir.rkr.kariz2.rest.JettyRestServer
import ir.rkr.kariz2.util.KarizMetrics
import mu.KotlinLogging
const val version = 0.1
... | 3 | Kotlin | 0 | 0 | 51d938e5c548734b2564201774c3f761f6d82f5c | 825 | kariz2 | MIT License |
cpg-core/src/main/kotlin/de/fraunhofer/aisec/cpg/graph/statements/expressions/InitializerListExpression.kt | Fraunhofer-AISEC | 225,386,107 | false | null | /*
* Copyright (c) 2020, Fraunhofer AISEC. All rights reserved.
*
* 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 require... | 96 | null | 61 | 268 | 9562371fd01a98614a1050dbf5927e3b19444067 | 5,583 | cpg | Apache License 2.0 |
shared/src/commonMain/kotlin/ui/screen/PreferenceScreen.kt | sdercolin | 708,470,210 | false | null | package ui.screen
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.ColumnScope
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import andro... | 1 | null | 2 | 9 | 8ed61865b56192b1e484f2e36ddc0a33ec79e8e5 | 10,398 | recstar | Apache License 2.0 |
still/src/main/java/com/darwin/viola/still/detector/FaceDetectorProcessor.kt | darwinfrancis | 278,868,009 | false | null | /*
* Copyright 2020 Google LLC. All rights reserved.
*
* 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 | 13 | 59 | 7cd64737d2e6f8f4d173d3430211264328dbd313 | 3,419 | viola-face-detection | MIT License |
server/src/main/kotlin/com/kamelia/hedera/websocket/Handlers.kt | Black-Kamelia | 492,280,011 | false | null | package com.kamelia.hedera.websocket
import com.kamelia.hedera.rest.auth.SessionManager
import com.kamelia.hedera.rest.user.UserEvents
import com.kamelia.hedera.rest.user.UserForcefullyLoggedOutDTO
import com.kamelia.hedera.rest.user.UserRepresentationDTO
import com.kamelia.hedera.util.defineEventListener
import com.k... | 28 | null | 2 | 26 | 44fad92bb6c6c213ad876bbcd0cafb765259d48b | 2,653 | Hedera | Apache License 2.0 |
features/intro/src/main/java/com/metinkale/prayer/intro/LanguageFragment.kt | metinkale38 | 48,848,634 | false | null | /*
* Copyright (c) 2013-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... | 25 | null | 108 | 232 | f16a719edab1d3d516accb42d6eee15743d78269 | 3,391 | prayer-times-android | Apache License 2.0 |
app/src/main/java/org/wikipedia/analytics/eventplatform/StreamConfig.kt | greatfire | 460,298,221 | false | null | package org.wikipedia.analytics.eventplatform
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import org.wikipedia.analytics.eventplatform.DestinationEventService.ANALYTICS
import java.lang.IllegalArgumentException
@Serializable
class StreamConfig {
constructor(streamName: Strin... | 2 | null | 4 | 38 | 8c8de602274b0132fc5d22b394a2c47fcd0bf2eb | 1,345 | apps-android-wikipedia-envoy | Apache License 2.0 |
app/src/main/java/com/noname/firebasepagination/main/MainActivity.kt | kepler296e | 314,693,534 | false | {"Kotlin": 11761} | package com.noname.firebasepagination.main
import android.os.Bundle
import android.view.Menu
import android.view.MenuItem
import androidx.paging.PagedList
import com.firebase.ui.firestore.paging.FirestorePagingOptions
import com.google.firebase.auth.FirebaseAuth
import com.google.firebase.firestore.FirebaseFirestore
i... | 0 | Kotlin | 0 | 0 | a8f28245fd71866c4c18865c71f529c787adb049 | 3,576 | android-firestore-pagination | MIT License |
src/factories/ClientFactoryTest.kt | TheWizardAndTheWyrd | 109,442,630 | false | null | package factories
import clients.BarClient
import clients.FooClient
import factories.ClientFactory.create
import org.junit.jupiter.api.Assertions
import org.junit.jupiter.api.Test
class ClientFactoryTest {
@Test
fun testBarClientCreate() {
val barClient = create<BarClient>()
Assertions.asser... | 0 | Kotlin | 0 | 2 | 46a803e85528483e98c8d20de3c8affbf024cb47 | 559 | kotlin-reified-factory | MIT License |
src/main/kotlin/com/wanggaowan/tools/utils/TranslateUtils.kt | wanggaowan | 599,862,484 | false | {"Kotlin": 561441} | package com.wanggaowan.tools.utils
import ai.grazie.text.TextRange
import ai.grazie.text.replace
import com.google.gson.Gson
import com.google.gson.JsonObject
import com.intellij.openapi.diagnostic.logger
import io.ktor.client.*
import io.ktor.client.engine.cio.*
import io.ktor.client.request.*
import io.ktor.client.s... | 0 | Kotlin | 0 | 0 | be51aae1392fb6492c107d10deae9191eca5a0a5 | 9,010 | FlutterDevTools | Apache License 2.0 |
uikit-kotlin/src/main/java/utils/PreferenceUtil.kt | samad-nkarimi | 332,771,551 | true | {"Kotlin": 1217711, "Java": 1544} | package utils
import android.content.Context
import android.content.SharedPreferences
public class PreferenceUtil {
private var sharedPreference: SharedPreferences? = null
constructor(appContext: Context) {
context = appContext
}
companion object {
private val PREFERENCE_NAME = "UI KI... | 0 | null | 0 | 0 | 7d7f0ed1e41870235ed4ec4ca5ea5f5f5fcfbec1 | 1,514 | android-kotlin-chat-app | MIT License |
utilk_android/src/main/java/com/mozhimen/kotlin/lintk/optins/permission/OPermission_POST_NOTIFICATIONS.kt | mozhimen | 798,079,717 | false | {"Kotlin": 1377638, "Java": 3920} | package com.mozhimen.kotlin.lintk.optins.permission
import androidx.annotation.RequiresApi
import com.mozhimen.kotlin.elemk.android.os.cons.CVersCode
import com.mozhimen.kotlin.lintk.annors.AManifestRequire
import com.mozhimen.kotlin.elemk.android.cons.CPermission
/**
* @ClassName OPermission_REQUEST_INSTALL_PACKAGE... | 0 | Kotlin | 0 | 0 | 56a732a4333002e61a553495a8e5a2c3dd6255f3 | 727 | KUtilKit | MIT License |
posthog/src/main/java/com/posthog/PostHogEvent.kt | PostHog | 259,885,092 | false | null | package com.posthog
import com.google.gson.annotations.SerializedName
import java.util.Date
import java.util.UUID
// should this be internal as well?
// if we'd ever allow users to inspect and mutate the event, it should be a public API
/**
* The PostHog event data structure accepted by the batch API
* @property e... | 6 | null | 17 | 35 | 8013cccadfe52ad347eedcb492ce01690a1f7786 | 1,253 | posthog-android | MIT License |
app/src/main/java/com/townwang/yaohuo/di/modules.kt | Townwang | 230,221,979 | false | null | package com.townwang.yaohuo.di
import android.app.Application
import android.content.Context
import com.google.gson.GsonBuilder
import com.tencent.bugly.beta.Beta
import com.townwang.yaohuo.BuildConfig
import com.townwang.yaohuo.api.Api
import com.townwang.yaohuo.di.factory.DocumentConverterFactory
import com.townwang... | 0 | Kotlin | 1 | 5 | fbacd5d13791b1a69345bac4f97fd9307e080860 | 4,608 | yaohuo | Apache License 2.0 |
geo/d2v-geo-common/src/main/kotlin/io/data2viz/geo/path/PathMeasure.kt | wbuchanan | 131,614,774 | true | {"Kotlin": 1388605, "HTML": 41196, "JavaScript": 36763} | package io.data2viz.geo.path
import io.data2viz.geo.noop2
import io.data2viz.geo.projection.Stream
import kotlin.math.sqrt
class PathMeasure : Stream {
private var lengthSum = .0
private var lengthRing = false
private var x00 = Double.NaN
private var y00 = Double.NaN
private var x0 = Double.NaN
... | 0 | Kotlin | 0 | 0 | 1e34ed8863f3c104363a58be45d738571429be3a | 1,256 | data2viz | Apache License 2.0 |
geoIP/src/main/kotlin/hal/spel/rest/ipify.kt | C06A | 209,458,027 | false | null | package hal.spel.rest
import hal.spel.*
import io.micronaut.http.HttpStatus
fun main(vararg args: String) {
halSpeL("https://api.ipify.org{?format}"
, templated = true
).apply {
GET("format" to "json"
).apply {
println("URL: ${request.url}")
println(status.... | 0 | Kotlin | 0 | 1 | 200b93c95c59dba8dbed77ffb8fb8f360f28185a | 864 | HALSpeL | MIT License |
src/main/kotlin/main/utils/json/themes/ThemesConfigField.kt | bombies | 411,889,109 | false | {"Kotlin": 814438, "Dockerfile": 355, "Shell": 131} | package main.utils.json.themes
enum class ThemesConfigField(private val str: String) {
THEME("theme");
override fun toString(): String = str
} | 4 | Kotlin | 0 | 4 | b78da295de11e787d426e0284028d23884d4c571 | 152 | Robertify-Bot | MIT License |
src/main/kotlin/uk/gov/justice/digital/hmpps/createandvaryalicenceapi/service/probation/CommunityOrPrisonOffenderManager.kt | ministryofjustice | 384,371,667 | false | {"Kotlin": 2353988, "Shell": 12714, "Dockerfile": 1384, "PLpgSQL": 863} | package uk.gov.justice.digital.hmpps.createandvaryalicenceapi.service.probation
data class CommunityOrPrisonOffenderManager(
val code: String,
val id: Long,
val team: TeamDetail,
val provider: Detail,
)
| 3 | Kotlin | 0 | 1 | ae9181175209750dce38856a53fa1d86bbe224d7 | 212 | create-and-vary-a-licence-api | MIT License |
app/src/main/java/com/endcodev/myinvoice/presentation/compose/components/DocSelection.kt | EndikaCo | 693,000,667 | false | {"Kotlin": 227181} | package com.endcodev.myinvoice.presentation.compose.components
import android.content.res.Configuration
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.found... | 0 | Kotlin | 0 | 0 | 022387a62e029804855808e5124bfa2fe6baba24 | 2,526 | app_my_invoice | MIT License |
src/main/kotlin/me/fzzyhmstrs/amethyst_imbuement/entity/spell/BallLightningEntity.kt | fzzyhmstrs | 461,338,617 | false | null | package me.fzzyhmstrs.amethyst_imbuement.entity.spell
import me.fzzyhmstrs.amethyst_core.entity_util.MissileEntity
import me.fzzyhmstrs.amethyst_core.modifier_util.AugmentEffect
import me.fzzyhmstrs.amethyst_core.scepter_util.CustomDamageSources
import me.fzzyhmstrs.amethyst_core.scepter_util.augments.ScepterAugment
i... | 9 | null | 8 | 4 | 361e9c97ce8ad61b5397d2baea5ece55240112f5 | 6,130 | ai | MIT License |
core/src/commonTest/kotlin/org/kobjects/parserlib/expressionparser/ParserTest.kt | kobjects | 455,979,563 | false | {"Kotlin": 17001, "Ruby": 1596} | package org.kobjects.parserlib.expressionparser
import org.kobjects.parserlib.expressionparser.ConfigurableExpressionParser.Companion.infix
import org.kobjects.parserlib.tokenizer.Lexer
import org.kobjects.parserlib.tokenizer.RegularExpressions
import org.kobjects.parserlib.tokenizer.Scanner
import kotlin.test.Test
i... | 0 | Kotlin | 0 | 3 | 7b6ee24232321162074a9c2f597817c742ba30a0 | 2,377 | parsek | Apache License 2.0 |
core-v4/core-v4-airplane/src/main/java/com/github/teracy/odpt/core/v4/airplane/response/OdptFlightInformationArrival.kt | teracy | 193,032,147 | false | null | package com.github.teracy.odpt.core.v4.airplane.response
import com.github.teracy.odpt.model.*
import com.squareup.moshi.Json
/**
* v4版フライト到着情報APIレスポンス
*/
data class OdptFlightInformationArrival(
/**
* 固有識別子(ucode)
*/
@field:Json(name = "@id")
val id: String,
/**
* データ生成日時(ISO8601 日付時... | 0 | Kotlin | 0 | 1 | 002554e4ca6e2f460207cfd1cb8265c2267f149d | 3,868 | odpt | Apache License 2.0 |
koshian-core/src/main/java/koshian/_viewSwitchers.kt | wcaokaze | 241,953,004 | false | null | /*
* Copyright 2020 wcaokaze
*
* 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 ... | 9 | Kotlin | 0 | 2 | db503f9bbbc3bcedfaaff2faaed0deaf0fdfdf41 | 8,457 | Koshian | Apache License 2.0 |
app/src/test/java/com/guard/ui/activities/CallBack.kt | jackli688 | 132,226,850 | false | {"Gradle": 4, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "Proguard": 2, "Kotlin": 83, "XML": 105, "Java": 5, "AIDL": 3} | package com.guard.ui.activities
/**
* @author: jackli
* @version: V1.0
* @project: My360
* @package: com.guard.ui.activities
* @description: description
* @date: 2018/5/19
* @time: 0:37
*/
interface CallBack {
fun succeeded(result: Int)
fun failure()
} | 1 | null | 1 | 1 | 8e87aebf1eee088428ca598d0bc238a9d3887786 | 269 | My360 | Apache License 2.0 |
src/main/kotlin/entity/Content.kt | giacomoaccursi | 717,007,118 | false | {"Kotlin": 47272, "JavaScript": 1187, "Dockerfile": 103} | /*
* Copyright (c) 2023. <NAME>
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
*/
package entity
import flow.AwaitableMutableStateFlow
/**
* A container of values.
*/
interface Content {
/**
* The f... | 1 | Kotlin | 0 | 1 | 44eb690fd83bcc526f5da63754cd4afd84785236 | 528 | Reactive-DES | MIT License |
Kernl.Consumer/src/test/kotlin/singlememorycache/impl/MultiSameParamPrimitiveReturnTest.kt | mattshoe | 825,957,770 | false | {"Kotlin": 344588, "Shell": 1045} | package singlememorycache.impl
import org.mattshoe.shoebox.kernl.runtime.cache.singlecache.SingleCacheKernl
import kernl.org.mattshoe.shoebox.kernl.singlememorycache.MultiSameParamPrimitiveReturnKernl
import singlememorycache.SingleMemoryCacheScenariosTest
class MultiSameParamPrimitiveReturnTest : SingleMemoryCacheSc... | 19 | Kotlin | 1 | 9 | 72110575d93274e990ebf92bb90ed49e35a96d9a | 1,161 | kernl | Apache License 2.0 |
save-frontend/src/main/kotlin/org/cqfn/save/frontend/components/basic/SelectForm.kt | cqfn | 300,279,336 | false | null | @file:Suppress("FILE_NAME_MATCH_CLASS", "HEADER_MISSING_IN_NON_SINGLE_CLASS_FILE")
package org.cqfn.save.frontend.components.basic
import org.cqfn.save.entities.Organization
import org.cqfn.save.frontend.utils.*
import org.w3c.dom.events.Event
import org.w3c.fetch.Headers
import react.Props
import react.dom.*
import... | 97 | Kotlin | 0 | 15 | c381c6fd4d9c12178de79da4818220b724a15596 | 3,085 | save-cloud | MIT License |
ktoken/src/commonTest/kotlin/Assert.kt | aallam | 700,547,449 | false | {"Kotlin": 43033} | import kotlin.test.assertTrue
fun <T> assertNotContains(list: Collection<T>, vararg elements: T) {
val elementsList = elements.toList()
assertTrue("the collection $list is not expected to contain $elementsList") { !list.containsAll(elementsList) }
}
fun <T> assertContains(list: Collection<T>, vararg elements:... | 0 | Kotlin | 0 | 5 | 1e84948d3ecb3f56b1717ae7961346a66da7cddd | 480 | ktoken | MIT License |
ktor-features/ktor-websockets/src/io/ktor/websocket/WebSocketServerSession.kt | lukehuang | 143,022,166 | true | {"Kotlin": 1817357, "Java": 62081, "HTML": 30993, "FreeMarker": 6484, "CSS": 5444, "JavaScript": 3679, "Lua": 280} | package io.ktor.websocket
import io.ktor.application.*
import io.ktor.http.cio.websocket.*
interface WebSocketServerSession : WebSocketSession {
val call: ApplicationCall
}
interface DefaultWebSocketServerSession : DefaultWebSocketSession, WebSocketServerSession
val WebSocketServerSession.application: Applicati... | 0 | Kotlin | 0 | 0 | afa45ccd42011ff5f73e639aca12795cd7f267b0 | 1,045 | ktor | Apache License 2.0 |
src/test/kotlin/com/terraformation/backend/tracking/db/ObservationResultsStoreTest.kt | terraware | 323,722,525 | false | null | package com.terraformation.backend.tracking.db
import com.opencsv.CSVReader
import com.terraformation.backend.RunsAsUser
import com.terraformation.backend.TestClock
import com.terraformation.backend.db.DatabaseTest
import com.terraformation.backend.db.OrganizationNotFoundException
import com.terraformation.backend.db.... | 9 | null | 1 | 9 | ab6fbb71381d0eda0684e9d06aa68004d9718b05 | 21,753 | terraware-server | Apache License 2.0 |
src/main/kotlin/endytkn/randomEvents/CommandRegister.kt | EndyTknDev | 856,093,082 | false | {"Kotlin": 56201} | package endytkn.randomEvents.events
import endytkn.randomEvents.commands.RandomEventsCommands
import net.minecraftforge.common.MinecraftForge
import net.minecraftforge.event.RegisterCommandsEvent
import net.minecraftforge.eventbus.api.SubscribeEvent
import net.minecraftforge.fml.common.Mod
import org.apache.logging.lo... | 0 | Kotlin | 0 | 0 | 86767020fd765fdff729f7ef6478fc2fd0f62c9c | 786 | Random-Events | MIT License |
app/src/main/java/com/wavesplatform/wallet/v2/ui/home/profile/settings/DevOptionsActivity.kt | inozemtsev-roman | 202,315,169 | true | {"Kotlin": 1334568, "Java": 306539, "HTML": 25816} | package com.wavesplatform.wallet.v2.ui.home.profile.settings
import android.os.Bundle
import com.arellomobile.mvp.presenter.InjectPresenter
import com.arellomobile.mvp.presenter.ProvidePresenter
import com.wavesplatform.wallet.R
import com.wavesplatform.wallet.v1.util.PrefsUtil
import com.wavesplatform.wallet.v2.ui.ba... | 1 | Kotlin | 1 | 2 | 9359a88dfe96f9fbc78360fd22c17fce252a88ae | 1,248 | PZU-android | MIT License |
app/src/main/kotlin/io/github/feelfreelinux/wykopmobilny/models/pojo/apiv2/models/AddLinkPreviewImage.kt | wigr11 | 132,491,533 | true | {"Kotlin": 932984, "Java": 251617} | package io.github.feelfreelinux.wykopmobilny.models.pojo.apiv2.models
import com.fasterxml.jackson.annotation.JsonProperty
data class AddLinkPreviewImage(
@JsonProperty("key")
val key : String,
@JsonProperty("type")
val type : String,
@JsonProperty("preview_url")
val ... | 0 | Kotlin | 0 | 0 | ae3395fa96817628614b185e7cf84e81b4d44b47 | 410 | WykopMobilny | MIT License |
android/engine/src/androidTest/java/org/smartregister/fhircore/engine/ui/components/register/LoaderViewTest.kt | opensrp | 339,242,809 | false | null | /*
* Copyright 2021 Ona Systems, Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 192 | null | 8 | 56 | 64a55e6920cb6280cf02a0d68152d9c03266518d | 1,723 | fhircore | Apache License 2.0 |
feature/src/main/java/br/com/sticup/mvvm/viewmodel/data/UiData.kt | PimentaPeps | 128,840,952 | false | null | package br.com.sticup.mvvm.viewmodel.data
import br.com.sticup.mvvm.repository.data.User
data class UsersList(val users: List<User>, val message: String, val error: Throwable? = null)
| 0 | Kotlin | 0 | 0 | f71f3aa930f2a410f4bf8cc573804f272cacda9c | 186 | Sticup | MIT License |
app/src/main/java/fr/acinq/phoenix/lnurl/LNUrl.kt | thepkbadger | 306,600,339 | true | {"C": 8823912, "Kotlin": 407570, "C++": 305951, "Java": 42253, "Dockerfile": 3321, "CMake": 3039} | /*
* Copyright 2020 ACINQ SAS
*
* 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... | 0 | null | 0 | 0 | 386c56dafe82e89a87a323169344fe22ee10fb19 | 5,339 | phoenix | Apache License 2.0 |
app/src/main/java/com/example/noteappcompose/presentation/noteDetailsScreen/uiStates/InputFieldUiState.kt | adelayman1 | 576,770,488 | false | null | package com.example.noteappcompose.presentation.noteDetailsScreen.uiStates
data class InputFieldUiState(var text:String = "", var errorMessage:String? = null) | 0 | Kotlin | 0 | 5 | ebad8b1dc62c5523d25270fa5f237f9246791afa | 159 | ComposeNotesAppKtor-Client | MIT License |
koin-core/src/test/kotlin/org/koin/test/koin/example/all_modules.kt | arnis71 | 105,808,830 | true | {"Kotlin": 97953, "Java": 352} | package org.koin.test.koin.example
import org.koin.dsl.context.Context
import org.koin.dsl.context.Scope
import org.koin.dsl.module.Module
/**
* Created by arnaud on 09/06/2017.
*/
class SampleModuleA_C : Module() {
override fun context() =
declareContext {
provide { ServiceA(get())... | 0 | Kotlin | 0 | 0 | 6fe0144dda9b3d4ce4dcf931155c301124c3dcce | 2,474 | koin | Apache License 2.0 |
litho-zoomable/src/main/kotlin/com/facebook/litho/widget/zoomable/LithoZoomableController.kt | facebook | 80,179,724 | false | null | /*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* 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 appl... | 88 | null | 765 | 7,703 | 8bde23649ae0b1c594b9bdfcb4668feb7d8a80c0 | 1,468 | litho | Apache License 2.0 |
server-core/src/main/kotlin/com/lightningkite/lightningserver/db/ModelRestUpdatesWebsocket.kt | lightningkite | 512,032,499 | false | {"Kotlin": 2189721, "TypeScript": 38628, "Ruby": 873, "JavaScript": 118} | @file:UseContextualSerialization(Instant::class)
package com.lightningkite.lightningserver.db
import com.lightningkite.prepareModelsServerCore
import com.lightningkite.lightningdb.*
import com.lightningkite.serialization.*
import com.lightningkite.lightningserver.auth.*
import com.lightningkite.lightningserver.core.S... | 3 | Kotlin | 1 | 5 | f404cc57cbdbe2a90b4e59d4ecd5ad22e008a730 | 10,031 | lightning-server | MIT License |
app/src/main/java/com/example/myapplication/ui/page/feedback/FeedbackFragment.kt | yo-lolo | 660,058,834 | false | {"Kotlin": 403451, "Java": 59574, "HTML": 13393} | package com.example.myapplication.ui.page.feedback
import android.content.Intent
import android.os.Bundle
import android.provider.MediaStore
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.LinearLayout
import android.widget.TextView
import android.widget.... | 0 | Kotlin | 0 | 0 | cf7ff1bc88a11637165720e528b271bbe9bb829c | 5,066 | yolo | Apache License 2.0 |
app/src/main/java/com/example/weatherprophet/WeatherProphetApplication.kt | Arrayflow | 531,760,849 | false | null | package com.example.weatherprophet
import android.annotation.SuppressLint
import android.app.Application
import android.content.Context
class WeatherProphetApplication : Application() {
companion object {
@SuppressLint("StaticFieldLeak")
lateinit var context: Context
const val TOKEN = "ijA... | 0 | Kotlin | 0 | 0 | 67bc6f52e6580a619c4930e514843a47fa3ad01a | 446 | WeatherProphet | Apache License 2.0 |
components/bridge/synchronization/impl/src/main/java/com/flipperdevices/bridge/synchronization/impl/repository/flipper/KeysListingRepository.kt | flipperdevices | 288,258,832 | false | null | package com.flipperdevices.bridge.synchronization.impl.repository.flipper
import com.flipperdevices.bridge.api.manager.FlipperRequestApi
import com.flipperdevices.bridge.api.model.FlipperRequestPriority
import com.flipperdevices.bridge.api.model.wrapToRequest
import com.flipperdevices.bridge.api.utils.Constants
import... | 3 | null | 31 | 293 | 522f873d6dcf09a8f1907c1636fb0c3a996f5b44 | 3,542 | Flipper-Android-App | MIT License |
app/src/main/java/space/taran/arknavigator/utils/extensions/ViewExt.kt | ARK-Builders | 394,855,699 | false | null | package space.taran.arknavigator.utils.extensions
import android.view.View
import android.widget.TextView
import kotlin.coroutines.Continuation
import kotlin.coroutines.ContinuationInterceptor
import kotlin.coroutines.CoroutineContext
import kotlinx.coroutines.CompletionHandler
import kotlinx.coroutines.CoroutineScope... | 97 | null | 8 | 8 | 886c7da36af73cc9235452d3b03412cc4c01e607 | 2,797 | ARK-Navigator | MIT License |
app/src/main/java/org/p2p/wallet/intercom/IntercomService.kt | p2p-org | 306,035,988 | false | null | package org.p2p.wallet.intercom
import android.app.Application
import io.intercom.android.sdk.Intercom
import io.intercom.android.sdk.identity.Registration
object IntercomService {
fun setup(app: Application, apiKey: String, appId: String) {
Intercom.initialize(app, apiKey, appId)
// Hide in app ... | 16 | Kotlin | 6 | 14 | 9cf97a5edd8be594ed301c88788d71ea20483571 | 852 | p2p-wallet-android | MIT License |
sip-permission/src/main/kotlin/com/basicfu/sip/permission/model/vo/ResourceVo.kt | tidehc | 189,163,300 | true | {"Kotlin": 382525, "JavaScript": 6535, "HTML": 4170, "Dockerfile": 1708, "Java": 104} | package com.basicfu.sip.permission.model.vo
class ResourceVo {
var id: Long? = null
var serviceId: Long? = null
var url: String? = null
var name: String? = null
var method: String? = null
var q: String? = null
/**1为预览更新资源详情,2为真的要更新操作*/
var type: Int? = null
}
| 0 | Kotlin | 0 | 0 | dd9dc2ebb7aba2432197888cc3040317eb506118 | 294 | sip | MIT License |
app/src/main/java/com/coinninja/coinkeeper/ui/market/ChartStats.kt | coinninjadev | 175,276,289 | false | null | package com.coinninja.coinkeeper.ui.market
data class ChartStats(val high: Float, val low: Float, val first: Float, val last: Float) {
val priceDifference get() = last - first
val percentageDifference get() = priceDifference / first * 100
} | 2 | null | 0 | 6 | d67d7c0b9cad27db94470231073c5d6cdda83cd0 | 249 | dropbit-android | MIT License |
app/src/main/java/com/furkansubasiay/googlemaps_sample_mvvvm/model/PlacesResponce.kt | furkansubasiay | 273,860,643 | false | null | package com.furkansubasiay.googlemaps_sample_mvvvm.model
import com.google.gson.annotations.SerializedName
/**
* Created by FURKAN SUBAŞIAY on 2020-06-20.
*/
data class PlacesResponce(
@SerializedName("status") var status:String?,
@SerializedName("results") var places :ArrayList<PlaceItem>?
) | 0 | Kotlin | 0 | 0 | 3b80da32c6f456bda8479f0a4d2d927164ec1ecb | 305 | GoogleMapsSample-MVVM | Apache License 2.0 |
app/src/main/java/wannabit/io/cosmostaion/network/res/neutron/ResVaultData.kt | cosmostation | 418,314,439 | false | null | package wannabit.io.cosmostaion.network.res.neutron
data class ResVaultData(
val name: String?,
val description: String?,
val address: String?,
)
data class ResVotingData(val power: String?)
| 0 | null | 51 | 66 | 4a89189b1f7f053a1cd97a1e0371940bad52bd05 | 205 | cosmostation-android | MIT License |
app/src/main/java/com/google/samples/apps/sunflower/data/UnsplashPhoto.kt | tadashi0713 | 435,394,266 | false | null | /*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 8 | null | 9 | 5 | 864b7e1cc85876cfb58da9b7986f8a69602646a3 | 1,195 | circleci-demo-android | Apache License 2.0 |
server/src/main/kotlin/br/com/devsrsouza/kotlinbukkitapi/server/Server.kt | Stanicc | 201,663,593 | true | {"Kotlin": 383292} | package br.com.devsrsouza.kotlinbukkitapi.server
import br.com.devsrsouza.kotlinbukkitapi.server.api.chat.ServerChat
import br.com.devsrsouza.kotlinbukkitapi.server.api.item.ServerItem
import br.com.devsrsouza.kotlinbukkitapi.server.api.nbt.ServerNBT
import br.com.devsrsouza.kotlinbukkitapi.server.api.chat.ServerTitle... | 0 | Kotlin | 0 | 1 | 0c0ea64fc553cc3152376e3eaa52a24b409d1754 | 11,248 | KotlinBukkitAPI | MIT License |
app/src/main/java/com/greenart7c3/nostrsigner/service/IntentUtils.kt | greenart7c3 | 671,206,453 | false | null | package com.greenart7c3.nostrsigner.service
import android.content.Intent
import android.net.Uri
import android.provider.Browser
import android.util.Log
import androidx.compose.runtime.mutableStateOf
import com.fasterxml.jackson.databind.DeserializationFeature
import com.fasterxml.jackson.databind.ObjectMapper
import ... | 7 | null | 3 | 75 | ec478e65bf7801f904b7490c592f9b8669b1da40 | 14,715 | Amber | MIT License |
grpc-kotlin-test/src/test/kotlin/io/rouz/greeter/ExceptionPropagationTest.kt | wfhartford | 149,170,017 | true | {"Kotlin": 15004, "HTML": 12722, "Java": 10724} | /*-
* -\-\-
* grpc-kotlin-test
* --
* Copyright (C) 2016 - 2018 rouz.io
* --
* 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 | 0 | 0 | 6207f66b7331169180542a29f647246d780abc91 | 5,206 | grpc-kotlin-1 | Apache License 2.0 |
app/src/main/java/com/radityalabs/android/corona/di/module/DispatcherModule.kt | radityagumay | 246,593,536 | false | null | package com.radityalabs.android.corona.di.module
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.android.components.ApplicationComponent
import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.Dispatchers
import javax.inject.Named
import javax.inject.Singleto... | 6 | Kotlin | 8 | 22 | 9a08321d7f1c71d156e5ee4937393acc4f891aa9 | 932 | COVID-19-ANDROID | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.