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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
tmp/arrays/youTrackTests/8538.kt | DaniilStepanov | 228,623,440 | false | null | // Original bug: KT-20577
var x = listOf<Array<String>>()
var y = arrayOf("", "")
var z = x + y // plus(elements: Array<out T>) is called, but it should be plus(element: T)
// z is now List<Any>, but was expected to be List<Array<String>>
| 1 | null | 8 | 1 | 602285ec60b01eee473dcb0b08ce497b1c254983 | 240 | bbfgradle | Apache License 2.0 |
mbprotokit/src/main/java/com/daimler/mbprotokit/dto/car/zev/VehicleChargingProgramParameter.kt | Daimler | 199,815,262 | false | null | package com.daimler.mbprotokit.dto.car.zev
import com.daimler.mbprotokit.generated.VehicleEvents
data class VehicleChargingProgramParameter(
/**
* The charging program.
*/
val program: ChargingProgram?,
/**
* Values need to be between 50 and 100 and divisible by ten.
* Maximum value f... | 1 | Kotlin | 8 | 15 | 3721af583408721b9cd5cf89dd7b99256e9d7dda | 1,844 | MBSDK-Mobile-Android | MIT License |
app/src/main/java/io/github/vishalecho/android/cnews/data/model/NewsDataContract.kt | vishalecho | 278,807,537 | false | null | package io.github.vishalecho.android.cnews.data.model
import com.vishalecho.android.core.network.Response
import io.reactivex.Single
import io.reactivex.subjects.PublishSubject
interface NewsDataContract {
interface Repository {
val newsFetchResponse: PublishSubject<Response<List<News>>>
fun fetc... | 0 | Kotlin | 0 | 0 | 43bfb84254c1200b99893f6d864c95f4b914c24b | 526 | CNews | Apache License 2.0 |
src/main/kotlin/br/com/acmattos/hdc/common/tool/server/prometheus/StatisticsHandlerCollector.kt | acmattos | 225,613,144 | false | {"Kotlin": 955728, "JavaScript": 151772, "HTML": 26378, "CSS": 4190} | package br.com.acmattos.hdc.common.tool.server.prometheus
import io.prometheus.client.Collector
import io.prometheus.client.CollectorRegistry
import java.util.Collections.emptyList
import org.eclipse.jetty.server.handler.StatisticsHandler
/**
* @author ACMattos
* @since 09/06/2020.
*/
class StatisticsHandlerCollec... | 0 | Kotlin | 0 | 0 | 8d7aec8840ff9cc87eb17921058d23cfc0d2ca6c | 7,164 | hdc | MIT License |
presentation/src/main/java/com/dsm/dms/presentation/di/module/LocalModule.kt | DSM-DMS | 203,186,000 | false | null | package com.dsm.dms.presentation.di.module
import dagger.Module
import dagger.Provides
import javax.inject.Singleton
import android.content.Context
import androidx.room.Room
import com.dsm.dms.data.local.database.Database
import com.dsm.dms.data.local.pref.LocalStorage
import com.dsm.dms.data.local.pref.SharedPrefStor... | 0 | Kotlin | 2 | 14 | ae7de227cee270d22a72a4f59090bff07c43f019 | 653 | DMS-Android-V4 | MIT License |
bigbone/src/main/kotlin/social/bigbone/api/method/EndorsementMethods.kt | andregasser | 565,112,249 | false | {"Kotlin": 957002, "Java": 28473, "Ruby": 15997, "Dockerfile": 1263, "Shell": 118} | package social.bigbone.api.method
import social.bigbone.MastodonClient
import social.bigbone.MastodonRequest
import social.bigbone.api.Pageable
import social.bigbone.api.Range
import social.bigbone.api.entity.Account
/**
* Feature other profiles on your own profile. See also accounts/:id/{pin,unpin}.
* @see <a href... | 30 | Kotlin | 15 | 62 | 125ac29b988b8a35894dda99b7ca7ec409496836 | 1,229 | bigbone | MIT License |
utils/times/src/test/kotlin/io/bluetape4k/times/period/calendars/CalendarDateAddTest.kt | debop | 625,161,599 | false | {"Kotlin": 7504333, "HTML": 502995, "Java": 2273, "JavaScript": 1351, "Shell": 1301, "CSS": 444, "Dockerfile": 121, "Mustache": 82} | package io.bluetape4k.times.period.calendars
import io.bluetape4k.logging.KLogging
import io.bluetape4k.times.days
import io.bluetape4k.times.hours
import io.bluetape4k.times.nanos
import io.bluetape4k.times.nowZonedDateTime
import io.bluetape4k.times.period.AbstractPeriodTest
import io.bluetape4k.times.period.SeekBou... | 0 | Kotlin | 0 | 1 | ce3da5b6bddadd29271303840d334b71db7766d2 | 8,494 | bluetape4k | MIT License |
plugins/groovy/groovy-psi/src/org/jetbrains/plugins/groovy/lang/psi/impl/grAnnotationUtil.kt | ingokegel | 284,920,751 | false | null | // Copyright 2000-2020 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.groovy.lang.psi.impl
import com.intellij.codeInsight.AnnotationUtil
import com.intellij.openapi.util.NlsSafe
import com.intellij.psi.PsiAnnotation
i... | 1 | null | 1 | 2 | dc846ecb926c9d9589c1ed8a40fdb20e47874db9 | 1,175 | intellij-community | Apache License 2.0 |
src/test/kotlin/io/realworld/app/web/controllers/CommentControllerTest.kt | Rudge | 149,893,811 | false | null | package io.realworld.app.web.controllers
import io.javalin.Javalin
import io.javalin.util.HttpUtil
import io.realworld.app.config.AppConfig
import io.realworld.app.domain.Comment
import io.realworld.app.domain.CommentDTO
import io.realworld.app.domain.CommentsDTO
import org.eclipse.jetty.http.HttpStatus
import org.jun... | 4 | null | 42 | 128 | f35739e4a13df84eaa57270a63e4739acd9882f8 | 2,335 | kotlin-javalin-realworld-example-app | MIT License |
app/src/main/java/com/revolgenx/anilib/ui/view/drawable/BaseDrawablePaint.kt | rev0lgenX | 244,410,204 | false | null | package com.revolgenx.anilib.ui.view.drawable
import android.graphics.Canvas
import android.graphics.Color
import android.graphics.Paint
abstract class BaseDrawablePaint : BaseDrawable() {
private var mPaint: Paint? = null
override fun onDraw(canvas: Canvas?, width: Int, height: Int) {
if (mPaint == ... | 3 | Kotlin | 1 | 24 | 355d2b5510682d869f18e0113453237af8a1f1cc | 816 | AniLib | Apache License 2.0 |
app/src/test/java/com/rafaelds/swapi/data/model/vehicles/VehiclesDtoToVehicleListMapperTest.kt | themobilecoder | 376,679,661 | false | null | package com.rafaelds.swapi.data.model.vehicles
import com.rafaelds.swapi.data.TestData.VEHICLE
import com.rafaelds.swapi.data.TestData.VEHICLE_DTO
import org.junit.Test
import kotlin.test.assertEquals
class VehiclesDtoToVehicleListMapperTest {
private val vehiclesDtoToVehiclesListMapper = VehiclesDtoToVehicleList... | 0 | Kotlin | 0 | 3 | b13f3b682c9701c2c64d6610950fb4d4f2b02725 | 702 | swapi | MIT License |
devops-boot-project/devops-boot-core/devops-schedule/devops-schedule-server/src/main/kotlin/com/tencent/devops/schedule/discovery/WorkerDiscoveryListener.kt | bkdevops-projects | 294,058,091 | false | {"Kotlin": 488037, "JavaScript": 47413, "Vue": 36468, "SCSS": 7290, "HTML": 620, "Java": 559} | package com.tencent.devops.schedule.discovery
import com.tencent.devops.schedule.enums.DiscoveryTypeEnum
import com.tencent.devops.schedule.manager.WorkerManager
import com.tencent.devops.schedule.utils.sleep
import org.slf4j.LoggerFactory
import org.springframework.boot.context.event.ApplicationReadyEvent
import org.... | 7 | Kotlin | 22 | 27 | cbff03abe5d572b09cbd486830d87cddc91b938b | 2,410 | devops-framework | MIT License |
geary-papermc-integrations/src/main/kotlin/com/mineinabyss/geary/papermc/features/items/consumable/ConsumeItemFromInventory.kt | MineInAbyss | 592,086,123 | false | {"Kotlin": 179720} | package com.mineinabyss.geary.papermc.features.items.consumable
import com.mineinabyss.idofront.serialization.SerializableItemStack
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
@SerialName("geary:consume_item")
class ConsumeItemFromInventory(
val type: Serializab... | 3 | Kotlin | 0 | 1 | 11f77ed5027f117c25bbae7cdf43cf09fe1a0ffc | 725 | geary-papermc | MIT License |
fluent-icons-extended/src/commonMain/kotlin/com/konyaco/fluent/icons/regular/CheckboxIndeterminate.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.CheckboxIndeterminate: ImageVector
get() {
if (_checkboxInd... | 1 | Kotlin | 3 | 83 | 9e86d93bf1f9ca63a93a913c990e95f13d8ede5a | 2,198 | compose-fluent-ui | Apache License 2.0 |
keel-slack/src/test/kotlin/com/netflix/spinnaker/keel/slack/handlers/NotificationEventListenerTests.kt | ranihorev | 338,613,105 | true | {"Kotlin": 2536121, "Java": 20143, "Shell": 1691, "Slim": 359} | package com.netflix.spinnaker.keel.slack.handlers
import com.netflix.spinnaker.keel.api.DeliveryConfig
import com.netflix.spinnaker.keel.api.Environment
import com.netflix.spinnaker.keel.api.NotificationConfig
import com.netflix.spinnaker.keel.api.NotificationFrequency
import com.netflix.spinnaker.keel.api.Notificatio... | 0 | null | 0 | 0 | c9f3564dfe2265734364adb38af203a2aa522c8c | 10,616 | keel | Apache License 2.0 |
paging/paging-compose/integration-tests/paging-demos/src/main/java/androidx/paging/compose/demos/PagingDemos.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... | 29 | null | 1011 | 7 | 6d53f95e5d979366cf7935ad7f4f14f76a951ea5 | 1,130 | androidx | Apache License 2.0 |
gateway/src/main/kotlin/org/heeheepresso/gateway/search/SearchResult.kt | HeeHeePresso | 758,780,391 | false | {"Kotlin": 120219, "Java": 11246} | package org.heeheepresso.gateway.search
import org.heeheepresso.gateway.common.response.StatusCode
import org.heeheepresso.gateway.search.request.SearchRequestHandler
import org.heeheepresso.gateway.search.searcher.SearcherType
data class SearchResult(
val statusCode: StatusCode,
val searcherType: SearcherTyp... | 9 | Kotlin | 0 | 0 | c41fa09c4157c726c21f617e731bb980a99b901a | 413 | Backend | Apache License 2.0 |
ui/src/commonMain/kotlin/com/popalay/barnee/ui/screen/addtocollection/CreateCollectionBottomSheet.kt | Popalay | 349,051,151 | false | null | /*
* Copyright (c) 2021 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, dis... | 21 | null | 3 | 15 | 22cd50b851d7be321339e8674099aa01fe7e1c3f | 5,252 | Barnee | MIT License |
compiler/src/main/kotlin/io/github/apl_cornell/viaduct/backends/zkp/ZKPProtocolParser.kt | apl-cornell | 169,159,978 | false | null | package io.github.apl_cornell.viaduct.backends.zkp
import io.github.apl_cornell.viaduct.parsing.ProtocolArguments
import io.github.apl_cornell.viaduct.parsing.ProtocolParser
import io.github.apl_cornell.viaduct.syntax.values.HostSetValue
import io.github.apl_cornell.viaduct.syntax.values.HostValue
/** Parser for the ... | 26 | Kotlin | 5 | 15 | e681f77562fdafa93b8fb5b929d96aca08affc1a | 621 | viaduct | MIT License |
common/src/main/java/jp/co/soramitsu/common/utils/QrCodeGenerator.kt | mrZizik | 315,566,082 | true | {"Kotlin": 1269808} | package jp.co.soramitsu.common.utils
import android.graphics.Bitmap
import com.google.zxing.EncodeHintType
import com.google.zxing.qrcode.decoder.ErrorCorrectionLevel
import com.google.zxing.qrcode.encoder.Encoder
class QrCodeGenerator(
private val firstColor: Int,
private val secondColor: Int
) {
compan... | 0 | null | 0 | 0 | e4139ee7cbb9b48b4b622d6a3ddcf4a9e25dabca | 1,439 | fearless-Android | Apache License 2.0 |
recycleradapter/src/main/java/com/xingray/recycleradapter/HolderFactory.kt | XingRay | 174,304,928 | false | null | package com.xingray.recycleradapter
import android.view.View
/**
*{@code ViewHolder}工厂
*
* @author : leixing
* @date : 19-7-14
* email : leixing1012@qq.com
*
*/
interface HolderFactory<VH> {
fun create(itemView: View): VH
} | 0 | Kotlin | 1 | 2 | 1b1a781c233ad932fe123e224a3bdecdc9a17354 | 236 | RecyclerAdapter | Apache License 2.0 |
firsttestdemo/src/main/java/com/hikeen/firsttestdemo/ProviderActivity.kt | weigg520 | 489,902,751 | false | null | package com.hikeen.firsttestdemo
import android.app.Activity
import android.net.Uri
import android.os.Bundle
import android.util.Log
import android.view.View
import androidx.core.content.contentValuesOf
import kotlinx.android.synthetic.main.activity_provider.*
class ProviderActivity : Activity() ,View.OnClickListener{... | 0 | Kotlin | 0 | 0 | 7a10fe1d876f8a7f7ec55ad414c1823e24400b2b | 2,956 | FirsLineCode | Apache License 2.0 |
language-kotlin/kotlin-sample/coroutine-in-action/src/main/kotlin/com/chiclaim/coroutine/basic/example-basic-04.kt | qxf323 | 279,827,316 | false | null |
import kotlinx.coroutines.*
fun main() = runBlocking {
launch {
delay(200L)
println("Task from runBlocking")
}
// Creates a new coroutine scope
coroutineScope {
//基于该scope的coroutine
launch {
delay(500L)
println("Task from nested launch1")
... | 0 | null | 2 | 4 | 79f1f65112bc64522fcd41cb13c3ac5048d2a0d6 | 1,151 | AndroidAll | Apache License 2.0 |
compiler/testData/codegen/box/operatorConventions/kt4152.kt | JakeWharton | 99,388,807 | false | null | // TODO: muted automatically, investigate should it be ran for JS or not
// IGNORE_BACKEND: JS
public var inc: Int = 0;
public var propInc: Int = 0
get() {inc++; return field}
set(a: Int) {
inc++
field = a
}
public var dec: Int = 0;
public var propDec: Int = 0;
get() { dec--; return ... | 179 | null | 5640 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 735 | kotlin | Apache License 2.0 |
jetbrains-core/tst/software/aws/toolkits/jetbrains/services/s3/editor/S3ViewerPanelTest.kt | JetBrains | 223,485,227 | false | null | // Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package software.aws.toolkits.jetbrains.services.s3.editor
import com.intellij.ide.DataManager
import com.intellij.testFramework.DisposableRule
import com.intellij.testFramework.ProjectRule
import com.int... | 6 | null | 4 | 9 | ccee3307fe58ad48f93cd780d4378c336ee20548 | 2,415 | aws-toolkit-jetbrains | Apache License 2.0 |
pumping/src/test/kotlin/com/dpm/pumping/auth/presentation/AuthControllerTest.kt | depromeet | 627,802,875 | false | null | package com.dpm.pumping.auth.presentation
import com.dpm.pumping.auth.application.AuthService
import com.dpm.pumping.auth.application.JwtTokenProvider
import com.dpm.pumping.auth.domain.LoginType
import com.dpm.pumping.auth.dto.AccessTokenResponse
import com.dpm.pumping.auth.dto.SignUpResponse
import com.dpm.pumping.a... | 3 | Kotlin | 0 | 2 | 366e951c11eafc9369aa0095337579ffb23f7ec6 | 6,248 | pumping-server | Apache License 2.0 |
base/courseapp-app/src/main/kotlin/il/ac/technion/cs/softwaredesign/dataTypeProxies/Channel.kt | avi1mizrahi | 181,363,343 | false | {"Kotlin": 338899} | package il.ac.technion.cs.softwaredesign.dataTypeProxies
import com.google.inject.Inject
import il.ac.technion.cs.softwaredesign.*
import il.ac.technion.cs.softwaredesign.Set
import il.ac.technion.cs.softwaredesign.exceptions.NameFormatException
import il.ac.technion.cs.softwaredesign.dataTypeProxies.UserManager.User
... | 0 | Kotlin | 0 | 0 | 2c0d94762ffb6139294244c19943b238476ca249 | 9,155 | CourseApp | MIT License |
src/main/kotlin/util/InputReader.kt | andilau | 433,504,283 | false | {"Kotlin": 137815} | package util
import java.io.File
import java.net.URI
object InputReader {
fun getInputAsString(day: Int): String = File(fromResources(day)).readText()
fun getInputAsList(day: Int): List<String> = File(fromResources(day)).readLines()
fun getInputAsListOfInt(day: Int): List<Int> = File(fromResources(day))... | 3 | Kotlin | 0 | 0 | 9bea0f233b7037ab816f7469847199131c762ea7 | 668 | advent-of-code-2021 | Creative Commons Zero v1.0 Universal |
src/com/hxz/mpxjs/model/VueGlobalImpl.kt | wuxianqiang | 508,329,768 | false | {"Kotlin": 1447881, "Vue": 237479, "TypeScript": 106023, "JavaScript": 93869, "HTML": 17163, "Assembly": 12226, "Lex": 11227, "Java": 2846, "Shell": 1917, "Pug": 338} | // 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 com.hxz.mpxjs.model
import com.intellij.javascript.nodejs.PackageJsonData
import com.intellij.javascript.web.webTypes.nodejs.PackageJsonWebTypesRegistryManager
import com... | 2 | Kotlin | 0 | 4 | e069e8b340ab04780ac13eab375d900f21bc7613 | 6,796 | intellij-plugin-mpx | Apache License 2.0 |
common/core/src/main/java/com/him/sama/spotifycompose/common/core/data/repository/SearchRepositoryImpl.kt | arohim | 762,735,266 | false | {"Kotlin": 223059} | package com.him.sama.spotifycompose.common.core.data.repository
import arrow.core.Either
import arrow.core.EitherNel
import arrow.core.getOrElse
import arrow.core.left
import arrow.core.leftWiden
import arrow.core.right
import com.him.sama.spotifycompose.common.core.base.Mapper
import com.him.sama.spotifycompose.commo... | 0 | Kotlin | 0 | 0 | 826694a8a38dc6f53b48e3a337c8bd15a0f8549c | 3,031 | SpotifyJetpackCompose | Apache License 2.0 |
dsl/src/main/kotlin/com/faendir/awscdkkt/generated/services/gamelift/CfnBuildPropsDsl.kt | F43nd1r | 643,016,506 | false | null | package com.faendir.awscdkkt.generated.services.gamelift
import com.faendir.awscdkkt.AwsCdkDsl
import javax.`annotation`.Generated
import kotlin.Unit
import software.amazon.awscdk.services.gamelift.CfnBuildProps
@Generated
public fun buildCfnBuildProps(initializer: @AwsCdkDsl CfnBuildProps.Builder.() -> Unit):
Cf... | 1 | Kotlin | 0 | 0 | e9a0ff020b0db2b99e176059efdb124bf822d754 | 385 | aws-cdk-kt | Apache License 2.0 |
composeApp/src/desktopMain/kotlin/org/example/rammultiplatform/HttpClientEngineModule.desktop.kt | vimi30 | 863,714,235 | false | {"Kotlin": 112838, "Swift": 667} | package org.example.rammultiplatform
import io.ktor.client.engine.HttpClientEngine
import io.ktor.client.engine.cio.CIO
import org.koin.core.module.Module
import org.koin.dsl.module
actual val httpClientEngine: Module = module {
single<HttpClientEngine> {
CIO.create()
}
} | 0 | Kotlin | 0 | 0 | fee830a016b3a559f4dce2d8832cbe0f4ceb7b8c | 290 | RickAndMorty | MIT License |
sample/src/main/java/ro/dobrescuandrei/roomdynamicdaosample/dao/querybuilder/DemoQueryBuilder.kt | andob | 162,691,296 | false | null | package ro.dobrescuandrei.roomdynamicdaosample.dao.querybuilder
import com.yatatsu.fieldschema.FS
import ro.dobrescuandrei.roomdynamicdao.*
import ro.dobrescuandrei.roomdynamicdaosample.model.RestaurantFilter
class DemoQueryBuilder : QueryBuilder<RestaurantFilter>
{
constructor(filter: RestaurantFilter) : super(f... | 0 | Kotlin | 3 | 21 | 76ad4139d62578c1bf0d391c98df2d4548ad6e28 | 1,883 | ROOM-Dynamic-Dao | Apache License 2.0 |
src/test/kotlin/blocksworld/methods/Methods2.kt | axgdev | 135,467,490 | false | {"Kotlin": 43219} | package blocksworld.methods
import blocksworld.operators.*
import blocksworld.*
import khop.Method
import khop.MethodGroup
import khop.NetworkElement
data class GetByUnstack(private val block: String): Method<BlocksState> {
override fun satisfiesPreconditions(state: BlocksState): Boolean {
return state.cl... | 0 | Kotlin | 0 | 1 | 5876f84119cb294a155dc31a4dc1cc63e39aef4d | 1,763 | KHOP | MIT License |
demo-core/src/main/java/com/adamkobus/compose/navigation/democore/model/DogsSource.kt | AdamKobus | 453,682,860 | false | null | package com.adamkobus.compose.navigation.democore.model
import com.adamkobus.compose.navigation.democore.data.DogInfo
import kotlinx.coroutines.delay
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.MutableStateFlow
import javax.inject.Inject
import javax.inject.Singleton
@Singleton
class DogsSource... | 14 | Kotlin | 0 | 5 | a7dae0f6e2254ad074206eeee1d971e9d82ae741 | 954 | compose-navigation | MIT License |
sample/src/main/java/com/lib/lokdroid/navigation/Screen.kt | NikolayKuts | 831,630,647 | false | {"Kotlin": 46666} | package com.lib.lokdroid.navigation
sealed class Screen(open val route: String) {
operator fun invoke(): String = route
data object SingleLogging : Screen(route = "SingleLogging")
data object MultipleLogging : Screen(route = "MultipleLogging")
} | 0 | Kotlin | 0 | 0 | 9fd6ef454f7cdedbb9e2920674bb1e95ab7ee5ff | 261 | LoKdroid | Apache License 2.0 |
kotlinova-gradle/src/main/kotlin/si/inova/kotlinova/gradle/sarifmerge/SarifMergeTask.kt | inovait | 247,635,811 | false | {"Kotlin": 745833, "Shell": 2502} | /*
* Copyright 2024 INOVA IT d.o.o.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation
* files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy,
* modify, merge, publish, d... | 0 | Kotlin | 1 | 7 | c779bb7dd8760fcc77a2e7e33a2c1603da155b50 | 5,353 | kotlinova | MIT License |
idea/tests/testData/multiModuleQuickFix/other/generateHashCodeInExpect/common/common.kt | JetBrains | 278,369,660 | false | null | // "Generate 'hashCode()'" "true"
// TOOL: org.jetbrains.kotlin.idea.inspections.EqualsOrHashCodeInspection
expect class With<caret>Constructor(x: Int, s: String) {
val x: Int
val s: String
override fun equals(other: Any?): Boolean
} | 284 | null | 5162 | 82 | cc81d7505bc3e9ad503d706998ae8026c067e838 | 247 | intellij-kotlin | Apache License 2.0 |
domain/src/main/kotlin/io/github/wykopmobilny/domain/profile/ProfileUtils.kt | otwarty-wykop-mobilny | 374,160,630 | false | null | package io.github.wykopmobilny.domain.profile
import io.github.wykopmobilny.data.cache.api.GenderEntity
import io.github.wykopmobilny.data.cache.api.UserColorEntity
import io.github.wykopmobilny.storage.api.LoggedUserInfo
import io.github.wykopmobilny.ui.components.widgets.AvatarUi
import io.github.wykopmobilny.ui.com... | 7 | null | 4 | 47 | 85b54b736f5fbcd6f62305779ed7ae2085c3b136 | 3,649 | wykop-android | MIT License |
marker/py-marker/src/main/kotlin/spp/jetbrains/marker/py/service/PythonArtifactCreationService.kt | sourceplusplus | 173,253,271 | false | {"Kotlin": 1227211, "Java": 190403, "JavaScript": 3929, "Groovy": 3042, "Python": 2564} | /*
* Source++, the continuous feedback platform for developers.
* Copyright (C) 2022-2023 CodeBrig, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/... | 2 | Kotlin | 13 | 87 | 199006a410529d961dc184f0740a5d845bd87899 | 7,689 | interface-jetbrains | Apache License 2.0 |
source-downloader-core/src/main/kotlin/xyz/shoaky/sourcedownloader/core/processor/SourceProcessor.kt | shoaky009 | 607,575,763 | false | null | package xyz.shoaky.sourcedownloader.core.processor
import org.slf4j.LoggerFactory
import org.springframework.retry.RetryCallback
import org.springframework.retry.RetryContext
import org.springframework.retry.listener.RetryListenerSupport
import org.springframework.retry.support.RetryTemplateBuilder
import org.springfr... | 1 | Kotlin | 0 | 7 | 5d1a3d0ed55f6f935aeee93e96033fd918eca14c | 21,611 | source-downloader | Apache License 2.0 |
VertxAnnoCore/src/main/kotlin/io/github/johnfg10/vertxanno/annotations/fieldannotations/ProducesMimeType.kt | johnfg2610 | 126,643,220 | false | {"Kotlin": 13739} | package io.github.johnfg10.vertxanno.annotations.fieldannotations
@Retention(AnnotationRetention.RUNTIME)
@Target(AnnotationTarget.FUNCTION)
annotation class ProducesMimeType(val producesMimeType: String) | 0 | Kotlin | 0 | 0 | 0f2122151b7851753db4186b6742b8c61a79a845 | 205 | VertxAnnotation | The Unlicense |
core/src/commonMain/kotlin/work/socialhub/kslack/api/methods/request/oauth/OAuthTokenRequest.kt | uakihir0 | 794,979,552 | false | {"Kotlin": 868677, "Ruby": 2164, "Shell": 2095, "Makefile": 316} | package work.socialhub.kslack.api.methods.request.oauth
import work.socialhub.kslack.api.methods.FormRequest
import work.socialhub.kslack.api.methods.SlackApiRequest
/**
* https://api.slack.com/docs/oauth
*/
class OAuthAccessRequest(
override val token: String?,
/** Issued when you created your application.... | 5 | Kotlin | 0 | 0 | 3975e9de4fae5ef2ddc5b013c2a346536852f7b3 | 1,127 | kslack | MIT License |
app/src/main/java/com/endcodev/myinvoice/data/repository/CustomersRepository.kt | EndikaCo | 693,000,667 | false | {"Kotlin": 227181} | package com.endcodev.myinvoice.data.repository
import com.endcodev.myinvoice.domain.models.customer.Customer
import com.endcodev.myinvoice.data.database.daos.CustomersDao
import com.endcodev.myinvoice.data.database.entities.CustomersEntity
import com.endcodev.myinvoice.data.database.entities.toDomain
import javax.inje... | 0 | Kotlin | 0 | 0 | 022387a62e029804855808e5124bfa2fe6baba24 | 1,122 | app_my_invoice | MIT License |
app/src/main/java/ru/ltst/u2020mvp/util/EnumPreferences.kt | LiveTyping | 69,892,571 | false | null | package ru.ltst.u2020mvp.util
import android.content.SharedPreferences
object EnumPreferences {
fun <T : Enum<T>> getEnumValue(preferences: SharedPreferences, type: Class<T>,
key: String, defaultValue: T?): T? {
val name = preferences.getString(key, null)
if (na... | 0 | Kotlin | 4 | 5 | a704da798d7f11ceb4a59cbdbac5c5d4f34e3500 | 1,232 | u2020-mvp-kotlin | Apache License 2.0 |
app/src/main/java/jp/co/yumemi/droidtraining/presentation/components/ErrorAlertDialog.kt | darmadevZone | 786,634,499 | false | {"Kotlin": 21809} | package jp.co.yumemi.droidtraining.presentation.components
import androidx.compose.foundation.layout.Row
import androidx.compose.material3.AlertDialog
import androidx.compose.material3.Text
import androidx.compose.material3.TextButton
import androidx.compose.runtime.Composable
@Composable
fun ErrorAlertDialog(
on... | 26 | Kotlin | 0 | 0 | 92920c736b6523a2aa1003eb3073aa0adf8dbb66 | 867 | android-practice | Apache License 2.0 |
kotlin-mui-icons/src/main/generated/mui/icons/material/Support.kt | JetBrains | 93,250,841 | false | null | // Automatically generated - do not modify!
@file:JsModule("@mui/icons-material/Support")
package mui.icons.material
@JsName("default")
external val Support: SvgIconComponent
| 12 | null | 5 | 983 | a99345a0160a80a7a90bf1adfbfdc83a31a18dd6 | 178 | kotlin-wrappers | Apache License 2.0 |
test-shared/src/main/java/com/yvkalume/test/MainCoroutineRule.kt | yveskalume | 356,004,687 | false | null | package com.yvkalume.test
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.test.*
import org.junit.rules.TestWatcher
class MainCoroutineRule @OptIn(ExperimentalCoroutinesApi::class) constructor(
val testDis... | 3 | Kotlin | 0 | 2 | b0911c5bd75172708c52d86d3540958236d2c25e | 1,109 | eventcademy-old | Apache License 2.0 |
ui-difficulty-selection/src/main/java/com/jayasuryat/difficultyselection/preview/ParamProvider.kt | jayasuryat | 426,077,797 | false | {"Kotlin": 364205, "Ruby": 1611} | /*
* Copyright 2022 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... | 3 | Kotlin | 15 | 81 | 92ef8a0c17172c684af00c143fb72154aec0750c | 2,062 | minesweeper-j-compose | Apache License 2.0 |
dd-sdk-android/src/test/kotlin/com/datadog/android/utils/forge/FeatureStorageConfigurationForgeryFactory.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.utils.forge
import com.datadog.android.v... | 44 | null | 60 | 86 | bcf0d12fd978df4e28848b007d5fcce9cb97df1c | 871 | dd-sdk-android | Apache License 2.0 |
src/main/kotlin/com/github/shatteredsuite/core/dispatch/argument/impl/primitive/IntArgument.kt | ShatteredSoftware | 263,221,103 | false | null | package com.github.shatteredsuite.core.dispatch.argument.impl.primitive
import com.github.shatteredsuite.core.dispatch.argument.ArgumentValidationResult
import com.github.shatteredsuite.core.dispatch.argument.DispatchOptionalArgument
import com.github.shatteredsuite.core.dispatch.context.CommandContext
import org.bukk... | 5 | Kotlin | 3 | 1 | 13a5bd2ff37028281eb9fcb16f8418ee5e1508ed | 2,791 | ShatteredCore | MIT License |
app/src/main/java/com/murilodev/dogs/view/DetailFragment.kt | MuriloCampos | 310,916,175 | false | null | package com.murilodev.dogs.view
import android.app.PendingIntent
import android.content.Intent
import android.graphics.Bitmap
import android.graphics.drawable.Drawable
import android.os.Bundle
import android.telephony.SmsManager
import android.view.*
import androidx.appcompat.app.AlertDialog
import androidx.fragment.a... | 0 | Kotlin | 0 | 0 | a46028abe06bf148c0bbdebfa5141d3019062f81 | 5,602 | DogList | MIT License |
convention-plugin/src/main/kotlin/org/metaborg/gradle/MavenPublishConventionPlugin.kt | metaborg | 807,678,664 | false | {"Kotlin": 10344} | package org.metaborg.gradle
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.api.publish.PublishingExtension
import org.gradle.api.publish.maven.MavenPublication
import org.gradle.kotlin.dsl.configure
import org.gradle.kotlin.dsl.create
import org.gradle.kotlin.dsl.withType
import java.util... | 0 | Kotlin | 0 | 0 | 97bf4079dc8770aa0cd216ae8d5cf2c23f53f201 | 3,694 | metaborg-gradle | Apache License 2.0 |
CorePayments/src/main/java/com/paypal/android/corepayments/analytics/DeviceData.kt | paypal | 390,097,712 | false | null | package com.paypal.android.corepayments.analytics
data class DeviceData(
val appId: String,
val appName: String,
val clientOS: String,
val clientSDKVersion: String,
val merchantAppVersion: String,
val deviceManufacturer: String,
val deviceModel: String,
val isSimulator: Boolean,
)
| 11 | Kotlin | 28 | 35 | 68d06e66a3bf6f68a981e04acb6af64f45e3a5a5 | 315 | paypal-android | Apache License 2.0 |
plugins/kotlin/tests-common/test/org/jetbrains/kotlin/idea/test/util/jetTestUtils.kt | ingokegel | 72,937,917 | false | null | // Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
@file:JvmName("JetTestUtils")
package org.jetbrains.kotlin.test.util
import com.intellij.psi.*
import com.intellij.psi.util.PsiTreeUtil
import com.intellij.test... | 284 | null | 5162 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 2,439 | intellij-community | Apache License 2.0 |
geojson/src/main/kotlin/net/nmandery/keo/geojson/GeoJSON.kt | nmandery | 214,281,236 | false | {"Kotlin": 50663} | package net.nmandery.keo.geojson
import com.fasterxml.jackson.databind.ObjectMapper
import com.fasterxml.jackson.databind.module.SimpleModule
import com.fasterxml.jackson.module.kotlin.jacksonObjectMapper
import org.locationtech.jts.geom.*
internal enum class Identifier(val ident: String) {
Coordinates("coordina... | 1 | Kotlin | 0 | 1 | e7816efecbc7cbc0b05b07d033445d68034bc5cd | 3,839 | keo | Apache License 2.0 |
sample/src/main/java/studio/opends/sample/Navhost.kt | open-design-systems | 810,431,148 | false | {"Kotlin": 42547, "Shell": 2799, "Makefile": 121} | package studio.opends.sample
import androidx.compose.foundation.layout.padding
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.automirrored.rounded.ArrowBack
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.Icon
import androidx.compose.mat... | 1 | Kotlin | 0 | 0 | 7f969b713beb7d472504c68520e0482243f593a1 | 3,240 | OpenDSAndroid | Creative Commons Zero v1.0 Universal |
src/main/kotlin/me/zhengjin/common/customs/business/cbi/logistics/po/result/ILogisticsReturn.kt | zhengjin-me | 522,433,935 | false | {"Kotlin": 485833, "Java": 67793} | /*
* MIT License
*
* Copyright (c) 2022 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, m... | 0 | Kotlin | 0 | 0 | 7577fb6993d608ab392c127eb0d715e6eceec768 | 3,086 | common-customs-beans | MIT License |
src/main/kotlin/org/cuongnv/subfinder/reactx/MainScheduler.kt | cuongnv126 | 386,142,000 | false | null | package org.cuongnv.subfinder.reactx
import io.reactivex.rxjava3.core.Scheduler
class MainScheduler : Scheduler() {
override fun createWorker(): Worker = MainWorker()
} | 0 | Kotlin | 0 | 5 | d0492b892ae880e0cac508bb26528232f0c78756 | 174 | subfinderapp | Apache License 2.0 |
compose/ui/ui-text/src/desktopTest/kotlin/androidx/compose/ui/text/DesktopParagraphTest.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... | 6 | null | 950 | 7 | 6d53f95e5d979366cf7935ad7f4f14f76a951ea5 | 12,077 | androidx | Apache License 2.0 |
viewer/src/main/kotlin/li/doerf/feeder/viewer/config/JwtTokenFilterConfigurer.kt | doerfli | 188,579,479 | false | {"Kotlin": 190694, "Vue": 48142, "JavaScript": 21033, "SCSS": 2537, "HTML": 616} | package li.doerf.feeder.viewer.config
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.security.config.annotation.SecurityConfigurerAdapter
import org.springframework.security.config.annotation.web.builders.HttpSecurity
import org.springframework.security.web.DefaultSecurityFilt... | 30 | Kotlin | 0 | 0 | f0a7ab9a8367ba49a7171b594b64ae2dea5deb87 | 820 | feedscraper | MIT License |
app/src/main/java/volovyk/guerrillamail/ui/assigned/AssignedEmailViewModel.kt | oleksandrvolovyk | 611,731,548 | false | null | package volovyk.guerrillamail.ui.assigned
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import dagger.hilt.android.lifecycle.HiltViewModel
import kotlinx.coroutines.channels.Channel
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.corouti... | 0 | null | 0 | 1 | 0e204bb437a6cfd837cd0bb911a29f0fc43164ce | 4,138 | guerrilla-mail-android-client | MIT License |
dsalgo/src/commonMain/kotlin/com/nalin/datastructurealgorithm/Utils.kt | nalinchhajer1 | 534,780,196 | false | null | package com.nalin.datastructurealgorithm
object Utils {
} | 0 | Kotlin | 0 | 0 | 50c40c5b804c88852c5ccb06e5da1b182fcb0c07 | 63 | kotlin-ds-algo | MIT License |
http4k-testing/tracerbullet/src/test/kotlin/org/http4k/tracing/renderer/MarkdownDocumentTest.kt | http4k | 86,003,479 | false | null | package org.http4k.tracing.renderer
import org.http4k.tracing.TraceRender
import org.http4k.tracing.TraceRenderer
class MarkdownDocumentTest : TraceRendererContract(
"foobar", "MD", MarkdownDocument(
MarkdownTraceDepthTable,
MarkdownTraceStepCountsTable,
MermaidSequenceDiagram,
Mer... | 34 | null | 249 | 2,615 | 7ad276aa9c48552a115a59178839477f34d486b1 | 480 | http4k | Apache License 2.0 |
wallet-task/src/main/kotlin/com/wallet/task/handler/SynJobHandler.kt | GalaxySciTech | 339,935,435 | false | {"Kotlin": 273747, "CSS": 210000, "HTML": 94074, "PLpgSQL": 76509, "Java": 56269, "JavaScript": 47624, "SCSS": 25514, "Dockerfile": 1104, "Shell": 1071} | package com.wallet.task.handler
import com.wallet.biz.handler.service.impl.SynServiceImpl
import com.wallet.biz.rpc.RpcClient
import com.xxl.job.core.biz.model.ReturnT
import com.xxl.job.core.handler.annotation.XxlJob
import org.consenlabs.tokencore.wallet.model.ChainType
import org.springframework.beans.factory.annot... | 5 | Kotlin | 40 | 99 | d52e8f7f4b151676be9b98dc2c85b912b06cf536 | 2,542 | java-wallet | MIT License |
gto-support-util/src/test/java/org/ccci/gto/android/common/util/LocaleUtilsFallbackTest.kt | CruGlobal | 30,609,844 | false | null | package org.ccci.gto.android.common.util
import androidx.test.ext.junit.runners.AndroidJUnit4
import java.util.Locale
import org.hamcrest.CoreMatchers.equalTo
import org.hamcrest.MatcherAssert.assertThat
import org.junit.Test
import org.junit.runner.RunWith
import org.robolectric.annotation.Config
private val MALAY =... | 4 | Kotlin | 2 | 5 | 6a16d0eb432f76266d5c1fed440428f71762ba7c | 2,139 | android-gto-support | MIT License |
app/src/main/java/com/mytest/composetest/util/LogUtils.kt | pionio2 | 409,655,599 | false | {"Kotlin": 199306} | package com.mytest.composetest.util
import android.util.Log
/**
* kotlin에서 사용하기 위한 utility functions
*/
const val APP_TAG = "MyTestApp"
inline fun LogDebug(TAG: String, printLog: () -> String) {
Log.d(APP_TAG, "[$TAG] ${printLog()}")
}
inline fun LogInfo(TAG: String, printLog: () -> String) {
Log.i(APP_T... | 0 | Kotlin | 0 | 1 | c303ea93f25e94d4aa08485d1f2ab965a6d54a37 | 787 | composeTest | Apache License 2.0 |
src/zh/qinqin/src/eu/kanade/tachiyomi/extension/zh/qinqin/Qinqin.kt | komikku-app | 720,497,299 | false | null | package eu.kanade.tachiyomi.revived.zh.qinqin
import android.util.Base64
import eu.kanade.tachiyomi.multisrc.sinmh.SinMH
import eu.kanade.tachiyomi.network.GET
import org.jsoup.nodes.Document
import org.jsoup.select.Elements
import javax.crypto.Cipher
import javax.crypto.spec.IvParameterSpec
import javax.crypto.spec.S... | 9 | null | 99 | 97 | 7fc1d11ee314376fe0daa87755a7590a03bc11c0 | 1,151 | komikku-extensions | Apache License 2.0 |
src/commonTest/kotlin/com/jeffpdavidson/kotwords/model/SnakeCharmerTest.kt | jpd236 | 143,651,464 | false | null | package com.jeffpdavidson.kotwords.model
import com.jeffpdavidson.kotwords.formats.CrosswordCompilerApplet
import com.jeffpdavidson.kotwords.readStringResource
import io.github.pdvrieze.xmlutil.testutil.assertXmlEquals
import kotlinx.coroutines.test.runTest
import kotlin.test.Test
class SnakeCharmerTest {
@Test
... | 8 | null | 6 | 25 | e18e9cf0bad7497da15b40f6c81ba4234ec83917 | 1,346 | kotwords | Apache License 2.0 |
src/converter/openapi/src/commonTest/kotlin/community/flock/wirespec/openapi/v3/OpenApiV3ParserTest.kt | flock-community | 506,356,849 | false | {"Kotlin": 656506, "Shell": 6544, "TypeScript": 5819, "Witcher Script": 4248, "Java": 4221, "Dockerfile": 625, "Makefile": 501, "JavaScript": 140} | package community.flock.wirespec.openapi.v3
import com.goncalossilva.resources.Resource
import community.flock.kotlinx.openapi.bindings.v3.OpenAPI
import community.flock.wirespec.compiler.core.parse.Endpoint
import community.flock.wirespec.compiler.core.parse.Enum
import community.flock.wirespec.compiler.core.parse.Fi... | 18 | Kotlin | 2 | 17 | 50f8b9a1e341d6d79fdc86f6bff9fca9b32b7579 | 31,061 | wirespec | Apache License 2.0 |
app/src/main/java/com/sofa/nerdrunning/navigation/MainNavHost.kt | SoFabian | 500,733,949 | false | null | package com.sofa.nerdrunning.navigation
import androidx.compose.runtime.Composable
import androidx.navigation.NavHostController
import androidx.navigation.NavType
import androidx.navigation.compose.NavHost
import androidx.navigation.compose.composable
import androidx.navigation.navArgument
import com.sofa.nerdrunning.... | 0 | Kotlin | 0 | 0 | 1c15de0dc9b85dfcd4e383b598f196bf27197ac3 | 1,261 | androidrunning | MIT License |
app/src/main/java/com/project/bestladyapp/data/utils/EmailMobileData.kt | Alvinimbua | 528,758,122 | false | null | package com.project.bestladyapp.data.utils
data class EmailMobileData(
val emails: ArrayList<String> = ArrayList(),
val mobiles: ArrayList<String> = ArrayList()
) | 0 | Kotlin | 0 | 2 | f08ba9f626fed5fe9f3da79dd9b41358f924b945 | 165 | e-commerce-app | MIT License |
src/main/kotlin/no/nav/familie/oppdrag/grensesnittavstemming/GrensesnittavstemmingMapper.kt | navikt | 596,541,750 | false | {"Kotlin": 164387, "Dockerfile": 120} | package no.nav.familie.oppdrag.grensesnittavstemming
import no.nav.familie.kontrakter.felles.oppdrag.OppdragStatus
import no.nav.familie.oppdrag.avstemming.AvstemmingMapper
import no.nav.familie.oppdrag.avstemming.AvstemmingMapper.fagområdeTilAvleverendeKomponentKode
import no.nav.familie.oppdrag.avstemming.SystemKode... | 17 | Kotlin | 0 | 0 | e9eb27715404d42a4cb6f95c9b08811c76f11174 | 8,618 | familie-oppdrag | MIT License |
calendarview/src/main/java/com/chahine/calendarview/delegates/EmptyDayDelegate.kt | chahine | 130,400,266 | false | {"Gradle": 4, "INI": 2, "Shell": 1, "Text": 1, "Ignore List": 3, "Batchfile": 1, "Markdown": 1, "Proguard": 2, "XML": 15, "Kotlin": 10, "Java": 2} | package com.chahine.calendarview.delegates
import android.support.v7.widget.RecyclerView.ViewHolder
import android.view.View
import android.view.ViewGroup
import com.chahine.calendarview.CalendarAdapter
import com.chahine.calendarview.R
import org.threeten.bp.LocalDate
class EmptyDayDelegate {
class Delegate : Cale... | 0 | Kotlin | 0 | 0 | 953c8544a627d974ab408285cf0f88a722ec48d9 | 658 | calendarview | MIT License |
domain/src/main/java/ru/sportivityteam/vucmirea/assistant/domain/repository/auth/AuthRepository.kt | SportivityTeam | 753,183,017 | false | {"Kotlin": 46772, "Swift": 532} | package ru.sportivityteam.vucmirea.assistant.domain.repository.auth
import kotlinx.coroutines.flow.Flow
import ru.sportivityteam.vucmirea.assistant.domain.util.State
interface AuthRepository {
val isUserLogin: Flow<State<Boolean>>
suspend fun authUser(name: String, group: String): Flow<State<Unit>>
suspe... | 0 | Kotlin | 0 | 2 | a45c1129bb1cfc56c784778ef3b28afff302ec63 | 356 | assistant-vuc-mirea | MIT License |
libraries/tools/kotlin-stdlib-gen/src/templates/Snapshots.kt | qq451682583 | 46,259,824 | true | {"Java": 15970906, "Kotlin": 11444005, "JavaScript": 176060, "Protocol Buffer": 42992, "HTML": 26497, "Lex": 16515, "ANTLR": 9689, "CSS": 9358, "Groovy": 5204, "Shell": 4638, "Batchfile": 3703, "IDL": 3441} | package templates
import templates.Family.*
import templates.DocExtensions.element
import templates.DocExtensions.collection
fun snapshots(): List<GenericFunction> {
val templates = arrayListOf<GenericFunction>()
templates add f("toCollection(collection: C)") {
deprecate(Strings) { forBinaryCompatibi... | 0 | Java | 0 | 0 | f105329fb432c92a859733f45c80c83725eb2f1f | 8,324 | kotlin | Apache License 2.0 |
cinescout/trending/data/remote/src/commonMain/kotlin/cinescout/trending/data/remote/service/TrendingService.kt | fardavide | 280,630,732 | false | null | package cinescout.trending.data.remote.service
import arrow.core.Either
import cinescout.error.NetworkError
import cinescout.network.Try
import cinescout.network.trakt.TraktClient
import cinescout.network.trakt.model.withLimit
import cinescout.screenplay.domain.model.ScreenplayTypeFilter
import cinescout.trending.data... | 10 | Kotlin | 2 | 6 | 4c1b7baa4270e2b786982b2fd435a7128be9a70e | 2,252 | CineScout | Apache License 2.0 |
app/src/main/java/com/example/mycarrierapp/data/remote/dto/Gold.kt | Garguy | 603,900,657 | false | null | package com.example.mycarrierapp.data.remote.dto
data class Gold(
val back_default: String,
val back_shiny: String,
val front_default: String,
val front_shiny: String,
val front_transparent: String
) | 0 | Kotlin | 0 | 1 | fe402995d9a5ba40593cea3134ebba8db870f14c | 220 | My-Playground-App | Apache License 2.0 |
src/commonMain/kotlin/io/github/koalaplot/sample/StackedVerticalBarSample.kt | KoalaPlot | 518,289,194 | false | null | package io.github.koalaplot.sample
import androidx.compose.foundation.layout.absolutePadding
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.material3.Surface
import androidx.compose.material... | 0 | Kotlin | 0 | 9 | 216dde667c7122fffa44d791234dc0aa8e2eaa1c | 6,449 | koalaplot-samples | MIT License |
src/main/kotlin/org/rust/lang/core/stubs/RsStubElementType.kt | intellij-rust | 42,619,487 | false | null | /*
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
package org.rust.lang.core.stubs
import com.intellij.lang.ASTNode
import com.intellij.psi.stubs.IStubElementType
import com.intellij.psi.stubs.IndexSink
import com.intellij.psi.stubs.StubElement
import com.intel... | 1,841 | null | 380 | 4,528 | c6657c02bb62075bf7b7ceb84d000f93dda34dc1 | 1,031 | intellij-rust | MIT License |
android/src/main/kotlin/br/com/capyensina/gamestudies/main/android/AndroidLauncher.kt | Capy-Ensina | 876,220,588 | false | {"Kotlin": 2257} | package br.com.capyensina.gamestudies.main.android
import android.os.Bundle
import com.badlogic.gdx.backends.android.AndroidApplication
import com.badlogic.gdx.backends.android.AndroidApplicationConfiguration
import br.com.capyensina.gamestudies.main.Main
/** Launches the Android application. */
class AndroidLaunche... | 0 | Kotlin | 0 | 0 | cfb0aadac91f14feaf59d0027e8230aea94a0fcf | 655 | game-android-studies | MIT License |
core/domain/src/main/java/com/eshc/goonersapp/core/domain/model/match/MatchLineup.kt | eshc123 | 640,451,475 | false | {"Kotlin": 436450} | package com.eshc.goonersapp.core.domain.model.match
data class MatchLineup(
val homeLineup : TeamLineup,
val awayLineup : TeamLineup
)
data class TeamLineup(
val teamId : Int,
val formation : String,
val playerLineup : List<PlayerLineup>
)
data class PlayerLineup(
val lineUpId: Long,
val ... | 2 | Kotlin | 1 | 1 | ee4b02379bc9b870895a5fedc7ca6b92f2936567 | 628 | GoonersApp | Apache License 2.0 |
wiremock-graphql-extension/src/test/kotlin/io/github/nilwurtz/integration/ContainerTest.kt | wiremock | 624,935,468 | false | {"Kotlin": 31766, "Makefile": 637, "Dockerfile": 386} | package io.github.nilwurtz.integration
import org.junit.jupiter.api.Assertions
import org.junit.jupiter.api.Test
class ContainerTest : BaseContainerTest() {
@Test
fun `should start wiremock container`() {
Assertions.assertTrue(wireMockContainer.isRunning)
}
} | 5 | Kotlin | 2 | 17 | 62c766da4d702e2891fdf9e5cc0cab125f9f40c0 | 282 | wiremock-graphql-extension | MIT License |
Projects/Test/app/src/main/java/ademar/study/test/presenter/detail/DetailView.kt | ademar111190 | 76,153,266 | false | null | package ademar.study.test.presenter.detail
import ademar.study.test.model.DetailViewModel
import ademar.study.test.model.HelloWorldViewModel
import ademar.study.test.presenter.LoadDataView
interface DetailView : LoadDataView {
fun bindFocus(viewModel: HelloWorldViewModel)
fun bindDetail(viewModel: DetailVie... | 0 | Kotlin | 1 | 1 | 65466ea1c6e4f75ae9791826a428c7dd8e101f98 | 331 | Studies | MIT License |
src/app/src/main/java/com/example/dummyjson_products/data/remote/Product.kt | Hasuk1 | 768,593,694 | false | {"Kotlin": 42997} | package com.example.dummyjson_products.data.remote
data class Product(
val id: Int = 0,
val title: String = "",
val description: String = "",
val price: Int = 0,
val discountPercentage: Double = 0.0,
val rating: Double = 0.0,
val stock: Int = 0,
val brand: String = "",
val category: String = "",
va... | 0 | Kotlin | 0 | 1 | 161648d72d1b609453428ffbbea97e023f0639c7 | 389 | dummyjson_products | MIT License |
app/src/main/java/com/moegirlviewer/util/checkIsLoggedIn.kt | koharubiyori | 449,942,456 | false | null | package com.moegirlviewer.util
import com.moegirlviewer.component.commonDialog.ButtonConfig
import com.moegirlviewer.component.commonDialog.CommonAlertDialogProps
import com.moegirlviewer.component.styled.StyledText
import com.moegirlviewer.store.AccountStore
import kotlinx.coroutines.CompletableDeferred
import kotlin... | 1 | Kotlin | 2 | 16 | e09753e76c11932d6f7344302d48f7a214cccf3a | 1,081 | Moegirl-plus-native | MIT License |
src/test/kotlin/com/rickbusarow/ktrules/EditorConfigPropertiesTest.kt | RBusarow | 619,004,546 | false | null | /*
* Copyright (C) 2023 Rick Busarow
* 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 ... | 4 | Kotlin | 0 | 1 | 8268fde67e15511792da3f0bbed8e67957030432 | 3,266 | ktrules | Apache License 2.0 |
app/src/main/java/com/apaluk/wsplayer/data/stream_cinema/remote/dto/tv_show/seasons/InfoLabelsDto.kt | apaluk | 651,545,506 | false | null | package com.apaluk.streamtheater.data.stream_cinema.remote.dto.media
import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass
@JsonClass(generateAdapter = true)
data class InfoLabelsDto(
@Json(name = "dateadded")
val dateadded: String,
@Json(name = "director")
val director: List<String>,
... | 0 | Kotlin | 0 | 0 | a431523e40b1d975fc3e4a264dedaa8744c6649e | 920 | ws-player-android | MIT License |
pathshapeview/src/main/java/shape/path/view/PathProvider.kt | gleb8k | 118,509,977 | false | null | package shape.path.view
import android.annotation.TargetApi
import android.graphics.Matrix
import android.graphics.Path
import android.graphics.PointF
import android.graphics.RectF
import android.os.Build
import shape.path.view.graph.function.CustomLinesBuilder
import shape.path.view.point.converter.PointConverter
/*... | 1 | null | 7 | 21 | 54433597c277191df263586884242140a5e665cd | 7,548 | Android-PathShapeView | Apache License 2.0 |
game/src/main/kotlin/gg/rsmod/game/message/handler/OpHeld5Handler.kt | 2011Scape | 578,880,245 | false | null | package gg.rsmod.game.message.handler
import gg.rsmod.game.message.MessageHandler
import gg.rsmod.game.message.impl.OpHeld5Message
import gg.rsmod.game.model.World
import gg.rsmod.game.model.attr.INTERACTING_ITEM
import gg.rsmod.game.model.attr.INTERACTING_ITEM_ID
import gg.rsmod.game.model.attr.INTERACTING_ITEM_SLOT
... | 39 | null | 22 | 34 | e5400cc71bfa087164153d468979c5a3abc24841 | 1,850 | game | Apache License 2.0 |
game/src/main/kotlin/gg/rsmod/game/message/handler/OpHeld5Handler.kt | 2011Scape | 578,880,245 | false | null | package gg.rsmod.game.message.handler
import gg.rsmod.game.message.MessageHandler
import gg.rsmod.game.message.impl.OpHeld5Message
import gg.rsmod.game.model.World
import gg.rsmod.game.model.attr.INTERACTING_ITEM
import gg.rsmod.game.model.attr.INTERACTING_ITEM_ID
import gg.rsmod.game.model.attr.INTERACTING_ITEM_SLOT
... | 39 | null | 22 | 34 | e5400cc71bfa087164153d468979c5a3abc24841 | 1,850 | game | Apache License 2.0 |
src/main/kotlin/com/objectpartners/plummer/kotlin/calendar/entry/Appointment.kt | mike-plummer | 51,262,029 | false | null | package com.objectpartners.plummer.kotlin.calendar.entry
import java.time.LocalDateTime
import com.objectpartners.plummer.kotlin.calendar.*
/**
* Represents a single-person [CalendarEntry] with an optional 'private' indicator
*/
data class Appointment( override var start: LocalDateTime? = LocalDateTime.now(),
... | 0 | Kotlin | 0 | 6 | fdb9f57ee12100f1f02b6288237d152aef1447c3 | 719 | KotlinCalendar | MIT License |
screenshot-test/feature/home/src/test/java/com/yml/healthcare/home/ui/view/LoadedHomeKtTest.kt | codeandtheory | 516,391,220 | false | {"Kotlin": 166320, "Java": 4188, "Shell": 954} | package com.yml.healthcare.home.ui.view
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import app.cash.paparazzi.Paparazzi
import com.yml.healthcare.home.domain.model.Article
import com.ym... | 3 | Kotlin | 2 | 4 | f96dd4e04996aa2e2660de2055548aef8157d734 | 2,871 | compose-testing-samples | Apache License 2.0 |
src/main/kotlin/org/geepawhill/jltkv/ViewerMain.kt | GeePawHill | 661,747,103 | false | {"Kotlin": 56637} | package org.geepawhill.jltkv
import org.geepawhill.jltkv.ui.ViewerFrame
import tornadofx.App
import tornadofx.launch
import za.co.wethinkcode.flow.Recorder
public class ViewerMain : App(ViewerFrame::class) {
companion object {
val wtc = Recorder().logRun()
}
}
fun main(args: Array<String>) {
lau... | 0 | Kotlin | 0 | 0 | 9c0c2c597dd42b4013933b8e951d419058d79572 | 344 | jltk-viewer | MIT License |
library/src/main/java/com/kdownloader/internal/DownloadDispatchers.kt | varungulatii | 628,881,033 | false | {"Kotlin": 57465} | package com.kdownloader.internal
import com.kdownloader.Status
import com.kdownloader.database.DbHelper
import com.kdownloader.database.DownloadModel
import com.kdownloader.utils.getTempPath
import kotlinx.coroutines.*
import java.io.File
class DownloadDispatchers(private val dbHelper: DbHelper) {
private val sc... | 3 | Kotlin | 11 | 55 | 7c63ca35d2780af3f000506fd0848fdf8e714b07 | 2,762 | Kdownloader | Apache License 2.0 |
src/main/kotlin/com/teamclicker/gameservice/models/dao/InventoryItemSlotDAO.kt | Humberd | 140,150,771 | false | {"Kotlin": 153182, "Dockerfile": 346} | package com.teamclicker.gameservice.models.dao
import com.teamclicker.gameservice.game.spring.TemplatesStore
import com.teamclicker.gameservice.game.templates.ItemTemplate
import javax.persistence.*
@Entity
@Table(name = "InventoryItemSlot")
class InventoryItemSlotDAO {
@Id
@Column(name = "id")
@Generated... | 0 | Kotlin | 0 | 0 | dfe3c64168e1ff62edd1cc93d86d1b85dabc5eeb | 964 | TeamClicker-GameService | Apache License 2.0 |
demo/src/main/java/de/brueggenthies/compose/video/demo/ui/VideoPlaybackDemo.kt | timbrueggenthies | 481,628,632 | false | {"Kotlin": 53879} | package de.brueggenthies.compose.video.demo.ui
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundat... | 0 | Kotlin | 0 | 4 | 9e97292e776153134f94f395d08895aee864ed86 | 4,423 | leinwand | Apache License 2.0 |
hilt-binder-compiler/src/main/java/com/paulrybitskyi/hiltbinder/processor/generator/ModuleFileGenerator.kt | mars885 | 332,237,059 | false | null | /*
* Copyright 2021 <NAME>, <EMAIL>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed... | 4 | null | 4 | 69 | cbd813dcfb1ec7f770258405347b5496ccc9d94a | 2,840 | hilt-binder | Apache License 2.0 |
app/src/main/java/com/example/app/ui/AppActivity.kt | fpadilha90 | 200,267,301 | false | null | package com.example.app.ui
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.navigation.Navigation.findNavController
import androidx.navigation.findNavController
import androidx.navigation.fragment.NavHostFragment
import androidx.navigation.ui.AppBarConfiguration
import androidx.... | 1 | Kotlin | 1 | 1 | e1897c09ef1bc7f8d3620de073e76c2751148eca | 1,318 | feature-oriented-architecture | Apache License 2.0 |
features/preferences/impl/src/main/kotlin/io/element/android/features/preferences/impl/user/UserPreferences.kt | vector-im | 546,522,002 | false | null | /*
* Copyright (c) 2022 New Vector Ltd
*
* 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... | 105 | Kotlin | 32 | 287 | 4587b51bd33e8b5a2e2c81c79f3aa70a3ac52923 | 1,908 | element-x-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.