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/no/nav/hm/grunndata/register/series/ProductPersistListener.kt | navikt | 572,421,718 | false | {"Kotlin": 534759, "Dockerfile": 113, "Shell": 111} | package no.nav.hm.grunndata.register.series
import io.micronaut.context.annotation.Factory
import io.micronaut.data.event.listeners.PostPersistEventListener
import io.micronaut.data.event.listeners.PostUpdateEventListener
import jakarta.inject.Singleton
import kotlinx.coroutines.runBlocking
import no.nav.hm.grunndata.... | 0 | Kotlin | 0 | 2 | db890957ec6a2a73b33520e64a078213515827dd | 1,420 | hm-grunndata-register | MIT License |
app/src/main/java/com/anytypeio/anytype/di/feature/relations/RelationCreateFromScratchDI.kt | anyproto | 647,371,233 | false | {"Kotlin": 11623123, "Java": 69306, "Shell": 11350, "Makefile": 1334} | package com.anytypeio.anytype.di.feature.relations
import com.anytypeio.anytype.analytics.base.Analytics
import com.anytypeio.anytype.core_models.Payload
import com.anytypeio.anytype.core_models.RelationFormat
import com.anytypeio.anytype.core_utils.di.scope.CreateFromScratch
import com.anytypeio.anytype.core_utils.di... | 45 | Kotlin | 43 | 528 | c708958dcb96201ab7bb064c838ffa8272d5f326 | 8,439 | anytype-kotlin | RSA Message-Digest License |
src/main/kotlin/com/mattprecious/stacker/command/branch/Rename.kt | mattprecious | 672,135,222 | false | {"Kotlin": 88158} | package com.mattprecious.stacker.command.branch
import com.github.ajalt.clikt.core.Abort
import com.github.ajalt.clikt.parameters.arguments.argument
import com.mattprecious.stacker.command.StackerCommand
import com.mattprecious.stacker.config.ConfigManager
import com.mattprecious.stacker.lock.Locker
import com.mattpre... | 17 | Kotlin | 1 | 9 | 1de57873014854bab9e4d288d452cc3d12d73dba | 1,312 | stacker | Apache License 2.0 |
src/test/kotlin/com/tang/intellij/test/inspections/TypeSafetyTest.kt | Benjamin-Dobell | 231,814,734 | false | null | /*
* Copyright (c) 2020
*
* 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, ... | 71 | null | 9 | 83 | 68b0a63d3ddd5bc7be9ed304534b601fedcc8319 | 5,914 | IntelliJ-Luanalysis | Apache License 2.0 |
app/src/main/java/com/example/wallet/ui/home/HomeContract.kt | jcquispe | 351,836,938 | false | null | package com.example.wallet.ui.home
import androidx.lifecycle.LiveData
interface HomeContract {
interface View {
fun showLoader()
fun hideLoader()
fun showFavoriteTransfers(favoriteTransfer: List<FavoriteTransfer>)
}
interface Presenter {
fun retrieveFavoriteTransfers()
... | 0 | Kotlin | 0 | 0 | e2b13818c0f39bb6fb08853a460f626ea4b28266 | 483 | MyWallet | Apache License 2.0 |
app/src/main/java/com/example/wallet/ui/home/HomeContract.kt | jcquispe | 351,836,938 | false | null | package com.example.wallet.ui.home
import androidx.lifecycle.LiveData
interface HomeContract {
interface View {
fun showLoader()
fun hideLoader()
fun showFavoriteTransfers(favoriteTransfer: List<FavoriteTransfer>)
}
interface Presenter {
fun retrieveFavoriteTransfers()
... | 0 | Kotlin | 0 | 0 | e2b13818c0f39bb6fb08853a460f626ea4b28266 | 483 | MyWallet | Apache License 2.0 |
client/src/main/kotlin/io/titandata/models/EngineRemote.kt | CloudSurgeon | 212,463,880 | true | {"Kotlin": 586314, "Shell": 46347, "Java": 9931, "Dockerfile": 904} | /*
* Copyright The Titan Project Contributors.
*/
package io.titandata.models
data class EngineRemote(
override var provider: String = "engine",
override var name: String,
var address: String,
var username: String,
var password: String? = null,
var repository: String
) : Remote()
| 0 | Kotlin | 0 | 1 | 819f7e9ea1bb0c675e0d04d61cf05302c488d74f | 309 | titan-server | Apache License 2.0 |
app/src/main/java/com/ice/ktuice/al/services/scrapers/base/ktuScraperService/handlers/BaseHandler.kt | vysnia121 | 188,022,529 | true | {"Kotlin": 198545, "Java": 125470} | package com.ice.ktuice.al.services.scrapers.base.ktuScraperService.handlers
import com.ice.ktuice.al.services.scrapers.base.ktuScraperService.RetroClient
open class BaseHandler {
protected fun <T> Class<T>.create(): T
= RetroClient.client.create(this)
} | 0 | Kotlin | 0 | 0 | b102bd4a6dbcc915f40236fce5f389c8f147fe45 | 271 | KTU-ice | MIT License |
app/src/main/java/com/ice/ktuice/al/services/scrapers/base/ktuScraperService/handlers/BaseHandler.kt | vysnia121 | 188,022,529 | true | {"Kotlin": 198545, "Java": 125470} | package com.ice.ktuice.al.services.scrapers.base.ktuScraperService.handlers
import com.ice.ktuice.al.services.scrapers.base.ktuScraperService.RetroClient
open class BaseHandler {
protected fun <T> Class<T>.create(): T
= RetroClient.client.create(this)
} | 0 | Kotlin | 0 | 0 | b102bd4a6dbcc915f40236fce5f389c8f147fe45 | 271 | KTU-ice | MIT License |
pipeline/coverage/src/main/kotlin/org/archguard/codedb/coverage/jacoco/JacocoService.kt | archguard | 565,163,416 | false | {"Kotlin": 212032, "TypeScript": 19660, "MDX": 5365, "CSS": 2612, "HTML": 1703, "JavaScript": 1360} | package com.thoughtworks.archguard.scanner.jacoco
import org.jacoco.core.analysis.Analyzer
import org.jacoco.core.analysis.CoverageBuilder
import org.jacoco.core.analysis.IBundleCoverage
import org.jacoco.core.tools.ExecFileLoader
import java.io.File
import java.io.PrintWriter
class JacocoService(val bean2Sql: Bean2S... | 6 | Kotlin | 7 | 31 | 4c1f6a57568affeaab7771e83eb0665e934110a5 | 4,906 | codedb | MIT License |
app/src/main/java/io/github/kdesp73/petadoption/firebase/UserManager.kt | KDesp73 | 776,598,529 | false | {"Kotlin": 412576, "Shell": 1165} | package io.github.kdesp73.petadoption.firebase
import android.util.Log
import com.google.firebase.firestore.DocumentSnapshot
import com.google.firebase.firestore.FirebaseFirestore
import io.github.kdesp73.petadoption.MainActivity
import io.github.kdesp73.petadoption.R
import kotlinx.coroutines.tasks.await
class UserM... | 0 | Kotlin | 0 | 0 | 768a32b99bae1639b5f50cb3ad6e07713505a108 | 6,793 | PawrfectMatch | MIT License |
src/main/kotlin/com/example/disruptiveguestbook/Message.kt | hendrikstill | 140,381,611 | false | null | package com.example.disruptiveguestbook
import org.springframework.data.annotation.Id
import org.springframework.data.mongodb.core.mapping.Document
import java.time.Instant
import java.util.UUID
@Document
data class Message(
@Id
val id: UUID = UUID.randomUUID(),
val createdAt: Instant = Instant.now(),
... | 1 | Kotlin | 3 | 8 | e3891c26686f42286d826d864e5cbfb840402a5b | 408 | spring-kotlin-demo | MIT License |
app/src/main/java/software/tice/walletandroid/ui/theme/bundesIdent/theme/Shape.kt | TICESoftware | 806,917,415 | false | {"Kotlin": 469414, "Ruby": 1325} | package software.tice.walletandroid.ui.theme.bundesIdent.theme
import androidx.compose.foundation.shape.CornerBasedShape
import androidx.compose.material3.*
import androidx.compose.runtime.Immutable
import androidx.compose.runtime.staticCompositionLocalOf
@Immutable
data class UseIdShapes(
val roundedSmall: Corne... | 0 | Kotlin | 0 | 0 | 9f821a612e795151c9b5cf3f80b115c55ccf5e96 | 652 | WalletAndroid | Apache License 2.0 |
modo-compose/src/main/java/com/github/terrakok/modo/DialogScreen.kt | terrakok | 336,628,876 | false | null | package com.github.terrakok.modo
import androidx.compose.ui.window.DialogProperties
@ExperimentalModoApi
interface DialogScreen : Screen {
fun provideDialogProperties(): DialogProperties = DialogProperties()
} | 9 | Kotlin | 15 | 229 | 741a50149ee44d2c765b88c51a2cd86ce3d74d5a | 217 | Modo | MIT License |
thirdparty/ktfx-controlsfx-layouts/src/test/kotlin/ktfx/controlsfx/layouts/PlusMinusSliderTest.kt | hanggrian | 102,934,147 | false | null | package ktfx.controlsfx.layouts
import com.hanggrian.ktfx.test.LayoutsStyledTest
import ktfx.layouts.KtfxPane
import org.controlsfx.control.PlusMinusSlider
class PlusMinusSliderTest : LayoutsStyledTest<KtfxPane, PlusMinusSlider>() {
override fun manager() = KtfxPane()
override fun KtfxPane.childCount() = chi... | 1 | null | 2 | 19 | 6e5ec9fedf8359423c31a2ba64cd175bc9864cd2 | 610 | ktfx | Apache License 2.0 |
dsl/src/main/kotlin/com/faendir/awscdkkt/generated/services/cognito/CfnUserPoolUICustomizationAttachmentDsl.kt | F43nd1r | 643,016,506 | false | null | package com.faendir.awscdkkt.generated.services.cognito
import com.faendir.awscdkkt.AwsCdkDsl
import javax.`annotation`.Generated
import kotlin.String
import kotlin.Unit
import software.amazon.awscdk.services.cognito.CfnUserPoolUICustomizationAttachment
import software.amazon.awscdk.services.cognito.CfnUserPoolUICusto... | 1 | Kotlin | 0 | 0 | e08d201715c6bd4914fdc443682badc2ccc74bea | 1,251 | aws-cdk-kt | Apache License 2.0 |
packet/src/test/java/dev/keiji/openpgp/packet/PacketLiteralDataTest.kt | keiji | 591,966,950 | false | null | package dev.keiji.openpgp.packet
import dev.keiji.openpgp.parseHexString
import dev.keiji.openpgp.toHex
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Assertions.assertTrue
import org.junit.jupiter.api.Test
import java.io.ByteArrayInputStream
import java.io.ByteArrayOutputStream
impo... | 2 | Kotlin | 0 | 0 | 82a876f93684b28284bad4c0b4d306a436e8c610 | 2,633 | openpgp | Apache License 2.0 |
app/src/main/java/me/hufman/androidautoidrive/phoneui/fragments/OverviewPageFragment.kt | smithtw | 393,681,880 | true | {"Kotlin": 1311898, "Python": 3913, "HTML": 3912, "Shell": 781} | package me.hufman.androidautoidrive.phoneui.fragments
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 kotlinx.android.synthetic.main.fragment_overviewpag... | 0 | Kotlin | 0 | 0 | 23ec966d98c4435e6f9fa88026c16d8cb8b4eec5 | 1,266 | AndroidAutoIdrive | MIT License |
app/src/main/kotlin/com/lms/app/config/web/CommonWebConfigServices.kt | Shashwatsingh22 | 638,651,670 | false | null | package com.lms.app.config.web
import com.fasterxml.jackson.databind.JsonNode
import com.fasterxml.jackson.databind.ObjectMapper
import com.networknt.schema.JsonSchema
import com.networknt.schema.JsonSchemaFactory
import com.networknt.schema.SpecVersion
import com.networknt.schema.ValidationMessage
import com.lms.comm... | 0 | Kotlin | 0 | 0 | 11425c49a8eee6c99e7e791bf5438fd7a9e70a58 | 4,327 | Library-Management-System-core-api- | Apache License 2.0 |
domain/src/test/kotlin/com/lomeone/domain/user/usecase/UpdateUserInfoTest.kt | comstering | 583,942,276 | false | null | package com.lomeone.domain.user.usecase
import com.lomeone.domain.user.entity.AccountType
import com.lomeone.domain.user.entity.User
import com.lomeone.domain.user.repository.UserRepository
import io.kotest.assertions.throwables.shouldThrow
import io.kotest.core.spec.style.BehaviorSpec
import io.kotest.matchers.should... | 0 | Kotlin | 0 | 0 | 30a71ff0d709392db316320b7e714c7c1587f575 | 2,549 | lomeone-server | MIT License |
src/test/kotlin/experiment/PlatformTest.kt | ldi-github | 538,873,481 | false | {"Kotlin": 3794937, "JavaScript": 12703, "CSS": 5215} | package experiment
import org.junit.jupiter.api.Test
import shirates.core.configuration.Testrun
import shirates.core.driver.TestMode
import shirates.core.driver.branchextension.arm64
import shirates.core.driver.branchextension.intel
import shirates.core.driver.commandextension.screenIs
import shirates.core.logging.pri... | 0 | Kotlin | 0 | 8 | 36de66a32862af904f97052aac8bd022e28da1ea | 2,113 | shirates-core | Apache License 2.0 |
src/main/kotlin/com/krythera/inv/LimitedSizeItemStack.kt | twixthehero | 331,275,132 | false | null | package com.krythera.inv
import java.util.Objects
/** Tracks the number of items in a stack while limiting the stack size. */
class LimitedSizeItemStack(item: IItem, size: Long = 1) : ItemStack(item, size) {
/** Increases the stack size by [amount]. */
@ExperimentalUnsignedTypes
override fun grow(amount: ... | 0 | Kotlin | 0 | 0 | 78b22b41d7ad42cb68e18da4a0e4cb1a417f9238 | 1,729 | krythera-inv | MIT License |
features/task/impl/src/main/java/wottrich/github/io/smartchecklist/presentation/ui/sort/SortTaskListAction.kt | Wottrich | 295,605,540 | false | {"Kotlin": 355161} | package wottrich.github.io.smartchecklist.presentation.ui.sort
interface SortTaskListAction {
fun sendAction(action: Action)
sealed class Action {
data class OnSelectedItem(val sortItem: SortItem) : Action()
}
} | 10 | Kotlin | 0 | 8 | 8b51f5c1a7aadce36a93414750cda9f282897bb2 | 232 | android-smart-checklist | MIT License |
app/src/main/java/com/example/composepokedex/data/remote/dto/GenerationIv.kt | zprima | 486,766,592 | false | {"Kotlin": 47829} | package com.example.composepokedex.data.remote.dto
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
data class GenerationIv(
@SerialName("diamond-pearl")
val diamondPearl: DiamondPearl?,
@SerialName("heartgold-soulsilver")
val heartgoldSoulsilver: Heartg... | 0 | Kotlin | 0 | 0 | 22c4188b0070a2e6e30184003d065edf8e4be40c | 393 | compose-pokedex-clean | MIT License |
intellij-plugin-structure/structure-intellij-classes/src/main/java/com/jetbrains/plugin/structure/intellij/classes/locator/JarPluginLocator.kt | JetBrains | 3,686,654 | false | {"Kotlin": 2521867, "Java": 253600, "CSS": 1454, "JavaScript": 692} | /*
* Copyright 2000-2020 JetBrains s.r.o. and other contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
*/
package com.jetbrains.plugin.structure.intellij.classes.locator
import com.jetbrains.plugin.structure.base.utils.isJar
import com.jetbrains.plugin... | 4 | Kotlin | 38 | 178 | 8be19a2c67854545d719fe56f3677122481b372f | 1,268 | intellij-plugin-verifier | Apache License 2.0 |
library/dd-sdk-android-session-replay/src/main/kotlin/com/datadog/android/sessionreplay/recorder/callback/MotionEventUtils.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.sessionreplay.internal.recorder.callback
... | 44 | null | 60 | 86 | bcf0d12fd978df4e28848b007d5fcce9cb97df1c | 1,268 | dd-sdk-android | Apache License 2.0 |
persian/src/main/java/io/github/madmaximuus/persian/actionSheet/PersianActionSheetHeader.kt | MADMAXIMUUS | 689,789,834 | false | {"Kotlin": 712511} | package io.github.madmaximuus.persian.actionSheet
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.c... | 0 | Kotlin | 1 | 1 | dcbbf7d4883332be6be25232da1c3be76ae58ceb | 1,507 | Persian | MIT License |
src/main/kotlin/no/nav/sf/pdl/WMetrics.kt | teddytwin | 297,433,995 | false | null | package no.nav.sf.pdl
import io.prometheus.client.Gauge
data class WMetrics(
val noOfKakfaRecordsPdl: Gauge = Gauge
.build()
.name("no_kafkarecords_pdl_gauge")
.help("No. of kafka records pdl")
.register(),
val noOfInitialKakfaRecordsPdl: Gauge = Gauge
... | 0 | Kotlin | 2 | 0 | 6b42ff3070f89114378db23b1f6e9684cbefc023 | 9,153 | sf-pdl | MIT License |
tempest/src/test/kotlin/app/cash/tempest/DynamoDbViewTest.kt | sullis | 329,503,134 | true | {"Kotlin": 151732, "Java": 1776, "Shell": 1350} | /*
* Copyright 2020 Square Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | 0 | null | 0 | 0 | d922df8ff7e76d1f28d6d6a4491990b8da34044e | 4,911 | tempest | Apache License 2.0 |
kool-core/src/commonMain/kotlin/de/fabmax/kool/modules/ksl/lang/KslVectorAccessorI3.kt | kool-engine | 81,503,047 | false | {"Kotlin": 5929566, "C++": 3256, "CMake": 1870, "HTML": 1464, "JavaScript": 597} | package de.fabmax.kool.modules.ksl.lang
// common ivec3 component swizzles - defined in a separate file to avoid JVM signature clashes
val KslExpression<KslInt3>.x get() = int1("x")
val KslExpression<KslInt3>.y get() = int1("y")
val KslExpression<KslInt3>.z get() = int1("z")
val KslExpression<KslInt3>.r get() = int1... | 11 | Kotlin | 20 | 303 | 8d05acd3e72ff2fc115d0939bf021a5f421469a5 | 716 | kool | Apache License 2.0 |
src/main/kotlin/io/github/ivsokol/poe/policy/Interfaces.kt | ivsokol | 850,045,264 | false | {"Kotlin": 1891986} | package io.github.ivsokol.poe.policy
import io.github.ivsokol.poe.Context
import io.github.ivsokol.poe.IManaged
import io.github.ivsokol.poe.PolicyEntityRefItem
import io.github.ivsokol.poe.SemVer
import io.github.ivsokol.poe.catalog.PolicyCatalog
import io.github.ivsokol.poe.condition.IPolicyConditionRefOrValue
impor... | 0 | Kotlin | 0 | 1 | e1513c000ced3eafefad6778fc6085df8c4b17ee | 3,081 | policy-engine | Apache License 2.0 |
plot-base-portable/src/commonMain/kotlin/jetbrains/datalore/plot/base/stat/math3/Correlation.kt | randomnetcat | 414,676,595 | true | {"Kotlin": 4767366, "Python": 538489, "C": 2826, "CSS": 1948, "Shell": 1773, "JavaScript": 1048} | /*
* Copyright (c) 2020. 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.base.stat.math3
import kotlin.math.pow
import kotlin.math.sqrt
fun mean(xs: DoubleArray) = xs.average()
fun correlationPearson(xs: DoubleAr... | 0 | null | 0 | 0 | e7092424bb0c62183328552faec16ed062e42e7b | 905 | lets-plot | MIT License |
plot-base-portable/src/commonMain/kotlin/jetbrains/datalore/plot/base/stat/math3/Correlation.kt | randomnetcat | 414,676,595 | true | {"Kotlin": 4767366, "Python": 538489, "C": 2826, "CSS": 1948, "Shell": 1773, "JavaScript": 1048} | /*
* Copyright (c) 2020. 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.base.stat.math3
import kotlin.math.pow
import kotlin.math.sqrt
fun mean(xs: DoubleArray) = xs.average()
fun correlationPearson(xs: DoubleAr... | 0 | null | 0 | 0 | e7092424bb0c62183328552faec16ed062e42e7b | 905 | lets-plot | MIT License |
token-client-spring/src/main/kotlin/no/nav/security/token/support/client/spring/oauth2/DefaultOAuth2HttpClient.kt | navikt | 124,397,000 | false | {"Kotlin": 366169} | package no.nav.security.token.support.client.spring.oauth2
import org.springframework.http.HttpHeaders
import org.springframework.util.LinkedMultiValueMap
import org.springframework.web.client.RestClient
import no.nav.security.token.support.client.core.OAuth2ClientException
import no.nav.security.token.support.client.... | 6 | Kotlin | 7 | 14 | a53f0cec656c8a963c3110020ab44369423df899 | 1,407 | token-support | MIT License |
src/integrationTest/kotlin/com/ekino/oss/hibernate/config/EncryptProperties.kt | ekino | 224,213,814 | false | null | package com.ekino.oss.hibernate.config
import org.springframework.boot.context.properties.ConfigurationProperties
import org.springframework.boot.context.properties.ConstructorBinding
@ConstructorBinding
@ConfigurationProperties(prefix = "ekino.encrypt")
data class EncryptProperties(val secret: String, val iv: String... | 3 | Kotlin | 0 | 4 | b1438272c8470eda2c249358267c10af58ec2487 | 322 | hibernate-crypto-types | MIT License |
src/main/kotlin/threedee/ecs/components/CharacterStateMachine.kt | lavaeater | 630,812,068 | false | null | package threedee.ecs.components
import com.badlogic.gdx.graphics.g3d.utils.AnimationController
import statemachine.StateMachine
class CharacterStateMachine(
private val animationController: AnimationController
) {
private val animationListener: AnimationController.AnimationListener =
object : Animat... | 0 | Kotlin | 0 | 0 | d2477ab22bbfa1a5a8b4d71dc1ed42c0f2f3b8a8 | 3,604 | gdx-lava-3d | Apache License 2.0 |
test-utils/src/commonTest/kotlin/UIThreadTestTest.kt | splendo | 191,371,940 | false | null | /*
Copyright 2022 Splendo Consulting B.V. The Netherlands
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 appli... | 89 | Kotlin | 7 | 93 | 6d2d2ff964d13ccb2768aa336fa7ef9941959e96 | 2,875 | kaluga | Apache License 2.0 |
.github/workflows/sarif-filter.main.kts | ZacSweers | 57,029,623 | false | null | #!/usr/bin/env kotlin
@file:DependsOn("com.github.ajalt.clikt:clikt-jvm:4.2.0")
@file:DependsOn("com.squareup.moshi:moshi:1.15.0")
@file:DependsOn("com.squareup.moshi:moshi-kotlin:1.15.0")
import com.github.ajalt.clikt.core.CliktCommand
import com.github.ajalt.clikt.parameters.options.option
import com.github.ajalt.cl... | 40 | null | 199 | 1,862 | 0e59d782c571d27c37605ec52e9f0b63636d0ae6 | 3,372 | CatchUp | Apache License 2.0 |
src/main/kotlin/com/vk/kphpstorm/inspections/prettifier/RemoveDocTagPrettification.kt | VKCOM | 284,436,466 | false | null | package com.vk.kphpstorm.inspections.prettifier
import com.intellij.codeInspection.ProblemHighlightType
import com.jetbrains.php.lang.documentation.phpdoc.psi.tags.PhpDocTag
import com.vk.kphpstorm.inspections.helpers.PhpDocPsiBuilder
class RemoveDocTagPrettification(
private val docTag: PhpDocTag,
pr... | 15 | null | 4 | 41 | 94322cbd0e795d4e70a4067c5e6c4b777706b3fa | 837 | kphpstorm | MIT License |
supermarket/src/main/kotlin/model/discount/Discount.kt | santukis | 558,526,758 | false | {"Kotlin": 30528} | package model.discount
import model.product.Product
class Discount(
val product: Product,
val description: String,
val discountAmount: Double) {
fun getDiscountHeader(): String = "${description}(${product.name})"
}
| 0 | Kotlin | 0 | 1 | 7eb9dce81e698a655312d7b41bb25e0a4935d2bb | 234 | refactoringKatas | Apache License 2.0 |
src/main/kotlin/mycorda/app/xunitpatterns/spy/Spy.kt | mycordaapp | 466,482,462 | false | null | package dreifa.app.xunitpatterns.spy
/**
* A very basic Spy - see http://xunitpatterns.com/Test%20Spy.html
*/
class Spy {
private val secrets = ArrayList<String>()
fun spy(secret: String): Spy {
secrets.add(secret)
return this
}
fun secrets(): List<String> = secrets
override fun... | 0 | Kotlin | 0 | 0 | d0a2508060090b6b69a8dbb6bec07d6f5186a44e | 502 | helpers | MIT License |
dsalgo/src/commonMain/kotlin/com/nalin/datastructurealgorithm/Platform.kt | nalinchhajer1 | 534,780,196 | false | {"Kotlin": 86359, "Ruby": 1605} | package com.nalin.datastructurealgorithm
expect class Platform() {
val platform: String
} | 0 | Kotlin | 0 | 0 | eca60301dab981d0139788f61149d091c2c557fd | 94 | kotlin-ds-algo | MIT License |
services/csm.cloud.project.project/src/test/kotlin/com/bosch/pt/iot/smartsite/user/facade/listener/restore/strategy/RestoreUserStrategyTest.kt | boschglobal | 805,348,245 | false | {"Kotlin": 13156190, "HTML": 274761, "Go": 184388, "HCL": 158560, "Shell": 117666, "Java": 52634, "Python": 51306, "Dockerfile": 10348, "Vim Snippet": 3969, "CSS": 344} | /*
* ************************************************************************
*
* Copyright: <NAME> Power Tools GmbH, 2020
*
* *************************************************************************
*/
package com.bosch.pt.iot.smartsite.user.facade.listener.restore.strategy
import com.bosch.pt.csm.clo... | 0 | Kotlin | 3 | 9 | 9f3e7c4b53821bdfc876531727e21961d2a4513d | 11,703 | bosch-pt-refinemysite-backend | Apache License 2.0 |
backend/src/main/kotlin/com/cloudpartners/CognitoUserAdapter.kt | mikkeldamsgaard | 124,668,169 | false | {"JavaScript": 193118, "CSS": 71257, "Kotlin": 22760, "Dart": 22548, "HCL": 22255, "HTML": 17348, "Shell": 2369} | package com.cloudpartners
import com.amazonaws.services.cognitoidp.AWSCognitoIdentityProvider
import com.amazonaws.services.cognitoidp.AWSCognitoIdentityProviderAsyncClientBuilder
import com.amazonaws.services.cognitoidp.AWSCognitoIdentityProviderClientBuilder
import com.amazonaws.services.cognitoidp.model.AttributeTy... | 0 | JavaScript | 0 | 0 | 33a653ca217d7006bf97308da74dba03fedccb29 | 1,539 | scoutcamp | Apache License 2.0 |
app/src/main/java/com/kiyosuke/corona_grapher/ui/locations/detail/LocationDetailArgs.kt | kiyosuke | 250,196,652 | false | null | package com.kiyosuke.corona_grapher.ui.locations.detail
import android.os.Bundle
import androidx.core.os.bundleOf
import com.kiyosuke.corona_grapher.model.LocationId
data class LocationDetailArgs(
val locationId: LocationId
) {
fun toBundle(): Bundle {
return bundleOf(KEY_LOCATION_ID to locationId)
... | 0 | Kotlin | 1 | 3 | 8635905fdafc5ad6014a5c761b3dc22b7c09142c | 755 | corona-grapher | Apache License 2.0 |
app/src/main/java/com/kiyosuke/corona_grapher/ui/locations/detail/LocationDetailArgs.kt | kiyosuke | 250,196,652 | false | null | package com.kiyosuke.corona_grapher.ui.locations.detail
import android.os.Bundle
import androidx.core.os.bundleOf
import com.kiyosuke.corona_grapher.model.LocationId
data class LocationDetailArgs(
val locationId: LocationId
) {
fun toBundle(): Bundle {
return bundleOf(KEY_LOCATION_ID to locationId)
... | 0 | Kotlin | 1 | 3 | 8635905fdafc5ad6014a5c761b3dc22b7c09142c | 755 | corona-grapher | Apache License 2.0 |
app/src/main/java/com/franzliszt/magicmusic/route/playlist/PlaylistViewModel.kt | FranzLiszt-1847 | 753,088,527 | false | {"Kotlin": 879960, "Java": 1923} | package com.franzliszt.magicmusic.route.playlist
import android.util.Log
import androidx.compose.runtime.State
import androidx.compose.runtime.mutableStateOf
import androidx.lifecycle.SavedStateHandle
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.franzliszt.magicmusic.bean.pla... | 0 | Kotlin | 1 | 1 | dcbc4c0cb9c0478e617423812712659df52a3b7d | 21,116 | MagicPlayer | Apache License 2.0 |
app/src/main/java/com/lindevhard/felia/component/wallet/list/WalletListComponent.kt | LinDevHard | 467,245,166 | false | null | package com.lindevhard.felia.component.wallet.list
import com.arkivanov.decompose.ComponentContext
import com.arkivanov.decompose.value.Value
import com.arkivanov.decompose.value.operator.map
import com.arkivanov.mvikotlin.core.instancekeeper.getStore
import com.arkivanov.mvikotlin.core.store.StoreFactory
import com.l... | 0 | Kotlin | 1 | 0 | 19871d912c4548b6cf643a1405988d8030e9ab9d | 1,085 | FeliaWallet | Apache License 2.0 |
shared/src/commonMain/kotlin/com/norrisboat/ziuq/presentation/difficulty/DifficultyScreenState.kt | norrisboat | 746,362,661 | false | {"Kotlin": 225770, "Swift": 70758} | package com.norrisboat.ziuq.presentation.difficulty
import com.norrisboat.ziuq.data.ui.QuizDifficulty
sealed interface DifficultyScreenState {
object Loading : DifficultyScreenState
object Idle : DifficultyScreenState
data class Success(val difficulties: List<QuizDifficulty>) : DifficultyScreenState
... | 0 | Kotlin | 2 | 7 | 94140c28aae2621f87b77a79edd66ea66519b047 | 395 | Ziuq | MIT License |
shared/src/commonMain/kotlin/me/gulya/bitwarden/data/LoginUriData.kt | IlyaGulya | 306,867,791 | false | null | package me.gulya.bitwarden.data
import me.gulya.bitwarden.enums.UriMatchType
import me.gulya.bitwarden.server.ServerLoginUri
class LoginUriData(
val uri: String,
val matchType: UriMatchType,
) {
constructor(data: ServerLoginUri) : this(
uri = data.uri,
matchType = data.match,
)
} | 0 | Kotlin | 1 | 3 | 9177134c7940d143f1f3da14e6dd56f3102c367d | 315 | bitwarden-client-mpp | MIT License |
modulecheck-gradle/platforms/api/src/main/kotlin/modulecheck/gradle/platforms/android/UnsafeDirectAgpApiReference.kt | rickbusarow | 316,627,145 | false | {"Kotlin": 2149665, "MDX": 85759, "JavaScript": 11460, "CSS": 3389, "Shell": 1798} | /*
* Copyright (C) 2021-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 t... | 76 | Kotlin | 7 | 129 | 5934de0bc8edc688b088324437b05a974073267e | 5,879 | ModuleCheck | Apache License 2.0 |
gradle-plugin/src/main/java/dev/datlag/sekret/gradle/tasks/GenerateSekretTask.kt | DatL4g | 713,557,426 | false | {"Kotlin": 69987} | package dev.datlag.sekret.gradle.tasks
import dev.datlag.sekret.gradle.*
import dev.datlag.sekret.gradle.Target
import dev.datlag.sekret.gradle.generator.BuildFileGenerator
import dev.datlag.sekret.gradle.generator.ModuleGenerator
import dev.datlag.sekret.gradle.generator.SekretGenerator
import dev.datlag.sekret.gradl... | 0 | Kotlin | 0 | 13 | fa0b8fadae989855e9875ada7c49208297fc9558 | 2,504 | Sekret | Apache License 2.0 |
core/core_model/src/main/java/com/serj113/pokedex/core/model/Ability.kt | serj113 | 668,290,121 | false | {"Kotlin": 91077} | package com.serj113.pokedex.core.model
import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass
@JsonClass(generateAdapter = true)
data class Ability(
@field:Json(name = "ability")
val ability: DataItem = DataItem(),
@field:Json(name = "is_hidden")
val isHidden: Boolean = false,
@field:Json(name =... | 0 | Kotlin | 0 | 0 | 904a11eccbc6a1ccfc57cb989fc470fd93a30bea | 351 | pokedex | Apache License 2.0 |
shared/src/commonMain/kotlin/uk/co/sentinelweb/cuer/app/di/SharedAppModule.kt | sentinelweb | 220,796,368 | false | null | package uk.co.sentinelweb.cuer.app.di
import org.koin.core.qualifier.named
import org.koin.dsl.module
import uk.co.sentinelweb.cuer.app.backup.BackupCheck
import uk.co.sentinelweb.cuer.app.backup.BackupUseCase
import uk.co.sentinelweb.cuer.app.backup.IBackupJsonManager
import uk.co.sentinelweb.cuer.app.backup.version.... | 82 | Kotlin | 0 | 2 | cd5b28c720c08c9b718f904421b0580e6b716ec0 | 6,209 | cuer | Apache License 2.0 |
src/test/java/quix/hosted/HostedPaymentChargeItemsTest.kt | DeveloperCGP | 813,112,518 | false | {"Gradle Kotlin DSL": 2, "INI": 1, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "Markdown": 7, "Java Properties": 1, "Kotlin": 22, "Java": 216, "HTML": 2} | package quix.hosted
import com.comerciaglobalpayments.javaPaymentSDK.adapters.HostedQuixPaymentAdapter
import com.comerciaglobalpayments.javaPaymentSDK.adapters.NetworkAdapter
import com.comerciaglobalpayments.javaPaymentSDK.callbacks.RequestListener
import com.comerciaglobalpayments.javaPaymentSDK.callbacks.ResponseL... | 0 | Java | 0 | 0 | 35bd36e768f9cadafcd325d4b0aa8f9ea300fe92 | 13,839 | Java-SDK | MIT License |
ypreview/src/main/java/me/yangcx/preview/entity/PreviewChangeEvent.kt | qiushui95 | 160,495,639 | false | {"Gradle": 9, "Java Properties": 2, "Shell": 1, "Text": 1, "Ignore List": 5, "Batchfile": 1, "Markdown": 1, "Proguard": 4, "Java": 6, "XML": 36, "Kotlin": 66} | package me.yangcx.preview.entity
/**
* 切换预览图片位置
* create by 97457
* create at 2018/12/06 0006
*/
data class PreviewChangeEvent(val postingTag: String, val targetId: Int, val position: Int) {
fun checkTag(tag: String) = postingTag == tag
} | 0 | Kotlin | 0 | 0 | 249a3bf3bf3f259d2b42d5d39feb2c0d915a8c56 | 245 | MyModulesAndDemos | Apache License 2.0 |
src/main/kotlin/io/github/intellij/dlanguage/features/DCommenter.kt | intellij-dlanguage | 27,922,930 | false | null | package io.github.intellij.dlanguage.features
import com.intellij.lang.CodeDocumentationAwareCommenter
import com.intellij.psi.PsiComment
import com.intellij.psi.tree.IElementType
import io.github.intellij.dlanguage.psi.DlangTypes
class DCommenter : CodeDocumentationAwareCommenter {
override fun getLineCommentPre... | 160 | null | 51 | 328 | 298d1db45d2b35c1715a1b1b2e1c548709101f05 | 1,551 | intellij-dlanguage | MIT License |
Kotlin/src/MaximumSubArray.kt | santosh241 | 293,432,227 | true | {"Swift": 249475, "Java": 208951, "Kotlin": 177796, "Python": 173596, "JavaScript": 168920, "Go": 152206, "Rust": 32760} | /**
* Find the contiguous subarray within an array (containing at least one number) which has the largest sum.
*
* For example, given the array [-2,1,-3,4,-1,2,1,-5,4],
* the contiguous subarray [4,-1,2,1] has the largest sum = 6.
*
* If you have figured out the O(n) solution, try coding another solution using th... | 1 | null | 1 | 2 | 39f85cdedaaf5b85f7ce842ecef975301fc974cf | 729 | Windary | MIT License |
appintro/src/main/java/com/github/appintro/AppIntroCustomLayoutFragment.kt | AppIntro | 36,814,724 | false | null | package com.github.appintro
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
/**
* Util class to be used when creating a slide with a custom layout.
* [AppIntroCustomLayoutSlide.newInstance] passing the Layout ID... | 5 | null | 2 | 9,989 | b1b7ab6d790b819b3769556d945fa797ac84369d | 1,319 | AppIntro | Apache License 2.0 |
5333-WebUI/src/main/java/frc/team5333/webui/api/PlacementAPI.kt | FRC5333 | 56,080,762 | false | null | package frc.team5333.webui.api
import frc.team5333.stronghold.core.data.PlacementInfo
import spark.Request
import spark.Response
import kotlin.text.toInt
class PlacementAPI : API {
override fun address(): String? = "placement/set/:id"
override fun init() { }
override fun handle(request: Request, respon... | 1 | null | 1 | 2 | f3824486a5a640a95fa99cd9de3ecca7c150571d | 455 | 2016-Champs | MIT License |
cointracker/src/main/java/com/barisatalay/cointracker/helper/UtilsNetwork.kt | barisatalay | 164,112,759 | false | null | package com.barisatalay.cointracker.helper
import android.content.Context
import android.net.ConnectivityManager
import com.barisatalay.cointracker.service.repository.NetworkInterceptor
import com.barisatalay.cointracker.service.repository.ProjectRepository
import com.barisatalay.cointracker.service.repository.Restful... | 0 | Kotlin | 1 | 3 | 333e81a9d91bf9f92f0802a3e7a2a39925c7828e | 3,970 | CoinAndBeyond | Apache License 2.0 |
src/com/gmail/caelum119/Cbot2/IRCCbot.kt | CaelumF | 42,349,413 | false | null | package com.gmail.caelum119.Cbot2
import com.gmail.caelum119.Cbot2.message_structure.IRCContext
import com.gmail.caelum119.Cbot2.message_structure.Identity
import com.gmail.caelum119.Cbot2.message_structure.Message
import com.gmail.caelum119.Cbot2.modules.Welcomer
import org.jibble.pircbot.IrcException
import org.jibb... | 0 | Kotlin | 0 | 2 | 5eecc6fe3812667335d2d846a60a94bfcf605bc2 | 2,823 | Cbot | MIT License |
base/src/main/java/com/luo/base/net/api/Api.kt | Luo-DH | 377,815,538 | false | {"C++": 9178830, "C": 824168, "CMake": 193002, "Kotlin": 154837, "Java": 997} | package com.luo.base.net.api
import com.luo.base.net.ServiceCreator
import retrofit2.Retrofit
/**
* @author: Luo-DH
* @date: 2021/6/21
*/
object Api {
fun getFaceApi() = ServiceCreator.create<FaceService>()
} | 1 | C++ | 2 | 1 | dc469fbdb02edc5b2757d23bb660ba2a7f28e5b9 | 219 | Face_recognition | Apache License 2.0 |
edupkg/app/src/main/java/com/example/edupkg/activity/pathActivity.kt | liuch00 | 406,180,940 | false | {"Java": 120507, "Kotlin": 91867, "Python": 10773} | package com.example.edupkg.data
import android.content.Intent
import com.example.edupkg.data.FrontEnd
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import android.view.*
import android.view.inputmethod.EditorInfo
import android.widget.EditText
import android.widget... | 1 | null | 1 | 1 | e3dd49b2b5581703dd3eeb9317f8b9b021ecf448 | 3,788 | edukg | MIT License |
app/src/main/java/com/moon/beautygirlkotlin/common/data/service/weiyi/OnlyDataService.kt | moonljt521 | 128,654,453 | false | null | package com.moon.beautygirlkotlin.common.data.service.weiyi
import com.moon.beautygirlkotlin.common.data.entity.GirlData
import com.moon.beautygirlkotlin.common.data.entity.Result
import com.moon.beautygirlkotlin.common.data.service.DataService
import com.moon.beautygirlkotlin.common.network.RetrofitHelper
import org.... | 0 | null | 3 | 9 | d679e11c834a49fe62e14444affbf234cdcaa936 | 1,424 | BeautyGirlKotlin | Apache License 2.0 |
common/src/main/kotlin/ru/memebattle/common/dto/user/UserResponseDto.kt | Onotole1 | 242,397,687 | false | null | package ru.memebattle.common.dto.user
data class UserResponseDto(
val id: Long,
val username: String,
val rating: Int,
val average: Float,
val semesters: List<SemesterDto>
) | 0 | Kotlin | 0 | 3 | fd2b1e526af65649b734810ef3bcdb9d4ea7539a | 194 | memebattle-template | Apache License 2.0 |
compiler/fir/analysis-tests/testData/resolve/visibility/exposedTypeAlias.kt | cortinico | 282,973,729 | true | null | class A {
private inner class Inner
}
class B {
<!EXPOSED_TYPEALIAS_EXPANDED_TYPE{LT}!>typealias <!EXPOSED_TYPEALIAS_EXPANDED_TYPE{PSI}!>AInner<!> = A.Inner<!>
inner class Inner
}
class C {
typealias BInner = B.Inner
}
<!EXPOSED_TYPEALIAS_EXPANDED_TYPE{LT}!>typealias <!EXPOSED_TYPEALIAS_EXPANDED_TYPE{... | 1 | null | 1 | 1 | f49cf2d5cabf8fb9833ec95e1151a00b8b53d087 | 441 | kotlin | Apache License 2.0 |
example/src/main/java/com/stripe/example/activity/BackgroundTaskTracker.kt | stripe | 6,926,049 | false | null | package com.stripe.example.activity
internal object BackgroundTaskTracker {
internal var onStart: () -> Unit = {}
internal var onStop: () -> Unit = {}
internal fun reset() {
onStart = {}
onStop = {}
}
}
| 64 | null | 522 | 935 | bec4fc5f45b5401a98a310f7ebe5d383693936ea | 237 | stripe-android | MIT License |
compose/ui/ui/src/desktopMain/kotlin/androidx/compose/desktop/ComposeDialog.desktop.kt | RikkaW | 389,105,112 | 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... | 0 | null | 0 | 7 | 6d53f95e5d979366cf7935ad7f4f14f76a951ea5 | 5,682 | androidx | Apache License 2.0 |
dspfparser/src/main/kotlin/com/smeup/dspfparser/linesclassifier/DSPF.kt | smeup | 170,714,014 | false | null | package com.smeup.dspfparser.linesclassifier
import kotlinx.serialization.Serializable
/**
* Models a display file as a whole logical unit.
*/
@Serializable
sealed interface DSPF {
val records: List<DSPFRecord>
/**
* Retrieve a [DSPFRecord] given its name.
* @param name the name of the record
... | 9 | null | 11 | 65 | cd4adcecab3dcc1f596410c6a2c4d0cb53868f82 | 615 | jariko | Apache License 2.0 |
api-implementation/src/main/kotlin/com/cuupa/classificator/api_implementation/CustomOffsetDateTimeSerializer.kt | Cuupa | 236,094,744 | false | {"JavaScript": 348091, "CSS": 195119, "Kotlin": 182293, "Java": 23235, "HTML": 11583, "Batchfile": 111} | package com.cuupa.classificator.api_implementation
import com.google.gson.JsonElement
import com.google.gson.JsonPrimitive
import com.google.gson.JsonSerializationContext
import com.google.gson.JsonSerializer
import java.lang.reflect.Type
import java.time.OffsetDateTime
import java.time.format.DateTimeFormatter
class... | 94 | JavaScript | 0 | 0 | ba3f2b743873a9eebd8919f5461ec53bb5cbc249 | 667 | classificator | MIT License |
platform/util/testSrc/com/intellij/util/io/DecompressorTest.kt | SamB | 215,873,627 | false | {"Text": 9365, "INI": 518, "YAML": 419, "Ant Build System": 11, "Batchfile": 34, "Dockerfile": 9, "Shell": 633, "Markdown": 740, "Ignore List": 143, "Git Revision List": 1, "Git Attributes": 11, "EditorConfig": 256, "XML": 7809, "SVG": 4411, "Kotlin": 58041, "Java": 83545, "HTML": 3781, "Java Properties": 215, "Gradle"... | // Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.util.io
import com.github.marschall.memoryfilesystem.MemoryFileSystemBuilder
import com.intellij.openapi.util.SystemInfo
import com.intellij.openapi.util.io.IoTestUtil.assumeSym... | 1 | null | 1 | 1 | 37c7118b1a4fb7f21c1a2636355c91f2a7d9ba05 | 26,022 | intellij-community | Apache License 2.0 |
app/src/main/java/wannabit/io/cosmostaion/ui/main/chain/cosmos/NftViewHolder.kt | cosmostation | 418,314,439 | false | null | package wannabit.io.cosmostaion.ui.main.chain.cosmos
import android.content.Context
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import com.bumptech.glide.load.engine.DiskCacheStrategy
import com.google.gson.JsonObject
import wannabit.io.cosmostaion.R
import wannabit.io.cosmostaion.... | 0 | null | 43 | 78 | 65c7ebcde149332064c512f8f896a0abf7b18820 | 1,185 | cosmostation-android | MIT License |
backend.native/tests/codegen/localClass/objectExpressionInProperty.kt | hhariri | 105,990,948 | true | {"Markdown": 18, "Git Config": 1, "Gradle": 26, "Java Properties": 4, "Shell": 17, "Text": 73, "Ignore List": 1, "Batchfile": 1, "XML": 12, "Kotlin": 4344, "C": 27, "Makefile": 1, "Java": 2, "Protocol Buffer": 2, "Pascal": 1, "C++": 26, "Groovy": 6, "INI": 2, "OpenStep Property List": 1} | abstract class Father {
abstract inner class InClass {
abstract fun work(): String
}
}
class Child : Father() {
val ChildInClass = object : Father.InClass() {
override fun work(): String {
return "OK"
}
}
}
fun box(): String {
return Child().ChildInClass.work()
... | 0 | Kotlin | 0 | 0 | a56a53f408f18e91fcc15b0b165babc0658d2352 | 375 | kotlin-native | Apache License 2.0 |
src/main/kotlin/com/nw/security/LoginBody.kt | wickenico | 597,565,239 | false | {"Gradle Kotlin DSL": 2, "Dockerfile": 1, "INI": 4, "Shell": 3, "Ignore List": 2, "Batchfile": 2, "TOML": 2, "Makefile": 1, "Markdown": 6, "Kotlin": 47, "XML": 2, "OASv3-yaml": 2, "YAML": 2, "Gradle": 2, "Scala": 1, "Maven POM": 1, "Java": 25, "HTML": 1} | package com.nw.security
data class LoginBody(
val username: String,
val password: String,
)
| 0 | Java | 0 | 0 | 57e5aa5d7033cbfd33ca19240df23d4b084d1c31 | 101 | bookify-ktor-backend | BSD with attribution |
src/main/java/cn/edu/kmust/flst/web/backstage/links/LinksController.kt | zbeboy | 128,647,683 | false | {"JavaScript": 1160910, "Java": 925800, "Kotlin": 263657, "HTML": 195302, "CSS": 141096} | package cn.edu.kmust.flst.web.backstage.links
import cn.edu.kmust.flst.domain.flst.tables.pojos.FriendlyLink
import cn.edu.kmust.flst.service.backstage.links.LinksService
import cn.edu.kmust.flst.service.util.UUIDUtils
import cn.edu.kmust.flst.web.bean.backstage.links.LinksBean
import cn.edu.kmust.flst.web.util.AjaxUt... | 2 | JavaScript | 0 | 0 | 895b865c6fec882a46f3b47f94e69bbda89724b3 | 5,252 | FLST | MIT License |
StravaWeeklyPlannerKotlin/app/src/main/java/com/jonahstarling/stravaweeklyplanner/DayRow.kt | JonahStarling | 194,750,261 | false | {"Markdown": 2, "Text": 1, "Gradle": 6, "Java Properties": 4, "Shell": 2, "Ignore List": 4, "Batchfile": 2, "Proguard": 2, "Java": 6, "XML": 51, "Kotlin": 7} | package com.jonahstarling.stravaweeklyplanner
import android.content.Context
import android.content.Intent
import android.net.Uri
import android.preference.PreferenceManager
import androidx.constraintlayout.widget.ConstraintLayout
import androidx.constraintlayout.widget.ConstraintSet
import androidx.core.content.Conte... | 2 | null | 1 | 1 | 3995bca1c2f789de26a2cfb1806427d1023ff7d8 | 7,620 | WiMPAndroid | MIT License |
app/src/main/java/com/afedaxo/presentation/ui/result/ResultViewModel.kt | bohdanbezp | 187,981,384 | false | null | package com.afedaxo.presentation.ui.result
import android.graphics.Bitmap
import androidx.lifecycle.LiveData
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.afedaxo.domain.model.CalculationParams
import com.afedaxo.domain.usecase.CalcDishForPeopleUseCase
import com.afedaxo.helpe... | 1 | null | 1 | 3 | 550c7a3a63740674bde2e7a1133003f3c2239caa | 1,164 | afedaxo | Apache License 2.0 |
framework/kotlin-simple-architecture-backend/src/jvmMain/kotlin/kim/jeonghyeon/net/ControllerUtil.kt | dss99911 | 138,060,985 | false | {"Kotlin": 356216, "Swift": 24520, "Ruby": 6567, "Shell": 4020} | package kim.jeonghyeon.net
import com.auth0.jwt.impl.PublicClaims
import com.auth0.jwt.interfaces.Claim
import io.ktor.application.*
import io.ktor.auth.*
import io.ktor.auth.jwt.*
import io.ktor.http.*
import io.ktor.sessions.*
import io.ktor.util.*
import kim.jeonghyeon.auth.ServiceAuthType
import kim.jeonghyeon.aut... | 1 | Kotlin | 2 | 38 | e9da57fdab9c9c1169fab422fac7432143e2c02c | 1,044 | kotlin-simple-architecture | Apache License 2.0 |
app/src/main/java/br/com/otaviolms/tabnews/views/posts/PostsRepository.kt | otaviolms | 650,890,216 | false | null | package br.com.otaviolms.tabnews.views.posts
import br.com.otaviolms.tabnews.api.ConteudosAPI
import br.com.otaviolms.tabnews.enums.StrategyEnum
import br.com.otaviolms.tabnews.implementations.bases.BaseRepository
import retrofit2.Retrofit
class PostsRepository(
retrofit: Retrofit
): BaseRepository {
private... | 0 | Kotlin | 0 | 0 | 67b78bdece3095cba0992f856177157e34fd872d | 567 | TabNews-Android | MIT License |
app/src/main/java/com/techbeloved/hymnbook/hymnlisting/HymnListingViewModel.kt | techbeloved | 133,724,406 | false | null | package com.techbeloved.hymnbook.hymnlisting
import androidx.annotation.VisibleForTesting
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.techbeloved.hymnbook.data.model.HymnTitle
import com.techbeloved.hymnbook.data.repo.HymnsRepository
impor... | 5 | null | 9 | 8 | 92796b67a78f5cf0fa08295de3584220b600fed7 | 3,680 | hymnbook | MIT License |
app/src/main/java/com/example/androiddevchallenge/ui/WelcomeScreen.kt | frantoribio | 510,276,814 | true | {"Kotlin": 43800} | /*
* Copyright 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 0 | null | 0 | 1 | c0d90173f83fd561c2d6bf12933190df7ec5dff3 | 3,907 | Kotlin-challenge-compose-week3 | Apache License 2.0 |
app/src/main/java/com/example/myapplication/adapter/ViewPager2Adapter.kt | lytMoon | 631,892,174 | false | null | package com.example.myapplication.adapter
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentActivity
import androidx.viewpager2.adapter.FragmentStateAdapter
/**
* description :
* author : lytMoon
* email : <EMAIL>
* date : 2023/4/25
* version: 1.0
*/
open class ViewPager2Adapter(fa: Fra... | 0 | Kotlin | 0 | 0 | b0b7e5a968b9f12462677de487c794208c284dc6 | 575 | 2023May-Day-assessment | Apache License 2.0 |
app/src/main/java/com/app/rapidnumberconverter/ui/translation/TranslationScreen.kt | Potsane | 711,613,161 | false | {"Kotlin": 73128, "Java": 495} | package com.app.rapidnumberconverter.ui.translation
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.co... | 11 | Kotlin | 0 | 0 | 6abbef494a78fb760f8f574aa698bd2b2d0c3e2b | 4,496 | numbers_converter | Apache License 2.0 |
core/src/main/kotlin/org/jetbrains/research/kex/state/transformer/ConstStringAdapter.kt | Saloed | 227,350,941 | true | {"Gradle Kotlin DSL": 12, "Python": 3, "Shell": 2, "INI": 5, "Text": 1, "Ignore List": 1, "Batchfile": 1, "Markdown": 2, "XML": 40, "Kotlin": 431, "Java": 5, "Maven POM": 1, "JSON": 3} | package org.jetbrains.research.kex.state.transformer
import org.jetbrains.research.kex.ktype.*
import org.jetbrains.research.kex.state.PredicateState
import org.jetbrains.research.kex.state.StateBuilder
import org.jetbrains.research.kex.state.basic
import org.jetbrains.research.kex.state.predicate.*
import org.jetbrai... | 1 | Kotlin | 0 | 0 | 6ead750e33c91afafaa7d315a979396b391a5093 | 6,700 | kex | Apache License 2.0 |
kadamy_delivery_driver_android/app/src/main/java/com/kadamy/driver/activity/ForgetPasswordActivity.kt | yefsoft09 | 784,271,487 | false | {"Kotlin": 885209, "PHP": 634806, "Blade": 602183, "JavaScript": 56504, "Java": 955} | package com.kadamy.driver.activity
import android.app.Activity
import android.app.Dialog
import android.graphics.Color
import android.graphics.drawable.ColorDrawable
import android.view.LayoutInflater
import android.view.View
import android.view.Window
import android.view.WindowManager
import android.widget.TextView
i... | 0 | Kotlin | 0 | 0 | 65c4e1217c87049a4cc2ac4d1fe92d0c3a467d6f | 5,350 | ProyectoProg1_AppDelivery | MIT License |
src/test/kotlin/io/github/orioncraftmc/sprawlkt/tests/generated/AlignStrechShouldSizeBasedOnParentTest.kt | OrionCraftMC | 491,301,394 | false | null | package io.github.orioncraftmc.sprawlkt.tests.generated
import io.github.orioncraftmc.sprawlkt.geometry.Size
import io.github.orioncraftmc.sprawlkt.geometry.Size.Companion.undefinedNumber
import io.github.orioncraftmc.sprawlkt.node.Sprawl
import io.github.orioncraftmc.sprawlkt.node.Sprawl.computeLayout
import io.githu... | 1 | Kotlin | 0 | 2 | e621000ccb9f5c1351e4c26c997cf93e8dcf4497 | 3,450 | SprawlKt | MIT License |
middleware/sisyphus-rocketmq-ons/src/main/kotlin/com/bybutter/sisyphus/middleware/rocketmq/DefaultRocketTemplateFactory.kt | z2058550226 | 299,014,281 | true | {"Kotlin": 1014038, "ANTLR": 10895} | package com.bybutter.sisyphus.middleware.rocketmq
import com.aliyun.openservices.ons.api.Consumer
import com.aliyun.openservices.ons.api.ONSFactory
import com.aliyun.openservices.ons.api.Producer
import com.aliyun.openservices.ons.api.PropertyKeyConst
import com.aliyun.openservices.ons.api.PullConsumer
import com.aliy... | 0 | null | 0 | 0 | a4a2e608f20aa977278daa2382833184b30d6124 | 2,581 | sisyphus | MIT License |
app/src/main/java/io/github/omisie11/coronatracker/data/repository/LocalSummaryRepository.kt | OMIsie11 | 248,815,717 | false | null | package io.github.omisie11.coronatracker.data.repository
import android.content.SharedPreferences
import com.github.mikephil.charting.data.PieEntry
import io.github.omisie11.coronatracker.data.local.dao.LocalSummaryDao
import io.github.omisie11.coronatracker.data.local.model.LocalSummary
import io.github.omisie11.coro... | 0 | Kotlin | 8 | 20 | d3054dfb3bce52e4a3c33667aed2e837818a283b | 2,301 | CovidNow | Apache License 2.0 |
react-table-kotlin/src/jsMain/kotlin/tanstack/table/core/Table.kt | karakum-team | 393,199,102 | false | {"Kotlin": 6780793} | // Automatically generated - do not modify!
package tanstack.table.core
external interface Table<TData : RowData> : CoreInstance<TData>, HeadersInstance<TData>, VisibilityInstance<TData>,
ColumnOrderInstance<TData>, ColumnPinningInstance<TData>, RowPinningInstance<TData>, FiltersInstance<TData>,
SortingInstan... | 0 | Kotlin | 7 | 28 | 39edd93628644cb15371c5a795dd7bdb055a790e | 462 | types-kotlin | Apache License 2.0 |
miniapp/src/test/java/com/rakuten/tech/mobile/miniapp/ads/TestAdMobDisplayer.kt | rakutentech | 225,744,634 | false | null | package com.rakuten.tech.mobile.miniapp.ads
import com.rakuten.tech.mobile.miniapp.TEST_ERROR_MSG
@Suppress("TooGenericExceptionThrown")
internal class TestAdMobDisplayer : MiniAppAdDisplayer {
override fun loadInterstitialAd(
adUnitId: String,
onLoaded: () -> Unit,
onFailed: (String) -> U... | 9 | null | 35 | 73 | 466c9551161b1240cc4963d7108a342355b983de | 1,187 | android-miniapp | MIT License |
app/src/main/java/com/example/devright_stillbaaitourism/BusinessDetail.kt | Angelo-Traverso | 671,786,039 | false | null | package com.example.devright_stillbaaitourism
import android.content.Context
import android.content.res.Configuration
import android.os.Bundle
import android.view.View
import android.widget.TextView
import androidx.appcompat.app.AppCompatActivity
import com.denzcoskun.imageslider.ImageSlider
import com.denzcoskun.imag... | 0 | null | 1 | 3 | df1e0bc5ec3b7ed83395ca451b9bb3ee6ed57ca2 | 4,060 | DevRight-StillBaai-Android | Apache License 2.0 |
android/app/src/main/java/com/tyhoo/android/nba/data/PlayerListRepository.kt | cnwutianhao | 800,234,908 | false | {"Kotlin": 73410} | package com.tyhoo.android.nba.data
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import java.net.URLDecoder
import java.nio.charset.StandardCharsets
import javax.inject.Inject
import javax.inject.Singleton
@Singleton
class PlayerListRepository @Inject constructor(private val provider: P... | 0 | Kotlin | 0 | 1 | edbc5eaabe5dcc2bc3005dafe01fdbce599f0fd5 | 751 | nba | MIT License |
app/src/main/java/com/thejawnpaul/gptinvestor/core/di/ApiModule.kt | jawnpaul | 777,897,163 | false | {"Kotlin": 157930} | package com.thejawnpaul.gptinvestor.core.di
import com.thejawnpaul.gptinvestor.BuildConfig
import com.thejawnpaul.gptinvestor.core.api.ApiService
import com.thejawnpaul.gptinvestor.core.api.AuthenticationInterceptor
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.... | 0 | Kotlin | 2 | 9 | b3e8959714fa70dd4afb89c08e8a468355e1f9a0 | 1,636 | gpt-investor-android | MIT License |
retrofit_in_use/app/src/main/java/com/dev/retrofit_in_use/data/LocalDatasource.kt | PhoenixNest | 472,614,701 | false | null | package com.dev.retrofit_in_use.data
import com.dev.retrofit_in_use.data.local.PixabayDao
import com.dev.retrofit_in_use.data.local.entities.PixabayEntity
import kotlinx.coroutines.flow.Flow
import javax.inject.Inject
class LocalDatasource @Inject constructor(
private val pixabayDao: PixabayDao
) {
fun readD... | 0 | Kotlin | 0 | 0 | 00df973b674768a28abc8e83312474f8bae933bc | 522 | google_jetpack_in_use | MIT License |
app/src/main/java/com/mrebollob/m2p/presentation/view/form/FormActivity.kt | mrebollob | 70,053,204 | 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 | 1 | 0 | 1c4c506edba97b626d781d2ad184d48e880c01ad | 5,645 | RestaurantBalance | Apache License 2.0 |
message-component/src/main/java/com/kotlin/android/message/ui/center/binder/MessageCenterChatListItemBinder.kt | R-Gang-H | 538,443,254 | false | null | package com.kotlin.android.message.ui.center.binder
import android.app.Activity
import com.kotlin.android.app.router.provider.message_center.IMessageCenterProvider
import com.kotlin.android.message.R
import com.kotlin.android.message.databinding.MessageItemMessageCenterChatListBinding
import com.kotlin.android.message... | 0 | Kotlin | 0 | 1 | e63b1f9a28c476c1ce4db8d2570d43a99c0cdb28 | 1,747 | Mtime | Apache License 2.0 |
app/src/main/java/com/example/selfcare/components/breathe/BreatheScreen.kt | patwdj | 471,742,246 | true | {"Kotlin": 263281, "GLSL": 10323} | package com.example.selfcare.components
import android.media.MediaPlayer
import android.os.Build
import android.os.Vibrator
import android.webkit.WebView
import android.widget.NumberPicker
import androidx.activity.compose.BackHandler
import androidx.annotation.RequiresApi
import androidx.compose.foundation.background
... | 0 | null | 0 | 0 | ea6b3d4cb5481229018fe399b0ff49c2259fe4de | 8,719 | COMP90018-selfcare-app | MIT License |
platform/lib/common/src/test/kotlin/io/hamal/lib/common/snowflake/PartitionTest.kt | hamal-io | 622,870,037 | false | {"Kotlin": 3316689, "C": 1401511, "TypeScript": 450023, "Lua": 193995, "C++": 40651, "Makefile": 11728, "Java": 7564, "JavaScript": 5832, "SCSS": 5191, "CMake": 2838, "CSS": 1626, "HTML": 1245, "Shell": 993} | package io.hamal.lib.common.snowflake
import io.hamal.lib.common.Partition
import org.hamcrest.MatcherAssert.assertThat
import org.hamcrest.Matchers.equalTo
import org.junit.jupiter.api.Test
internal class PartitionSourceImplTest {
@Test
fun `Simple pass through`() {
val testInstance = PartitionSource... | 44 | Kotlin | 0 | 0 | 1c9b1ad3368823ad9c339b6a56532a602cef7c63 | 589 | hamal | Creative Commons Zero v1.0 Universal |
common-util/src/main/kotlin/com/google/devtools/ksp/common/JvmUtils.kt | google | 297,744,725 | false | {"Kotlin": 2173589, "Shell": 5321, "Java": 3893} | /*
* Copyright 2021 Google LLC
* Copyright 2010-2021 JetBrains s.r.o. and Kotlin Programming Language contributors.
*
* 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.apac... | 370 | Kotlin | 268 | 2,854 | a977fb96b05ec9c3e15b5a0cf32e8e7ea73ab3b3 | 1,162 | ksp | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.