path stringlengths 4 280 | owner stringlengths 2 39 | repo_id int64 21.1k 879M | is_fork bool 2
classes | languages_distribution stringlengths 13 1.95k ⌀ | content stringlengths 7 482k | issues int64 0 13.9k | main_language stringclasses 121
values | forks stringlengths 1 5 | stars int64 0 111k | commit_sha stringlengths 40 40 | size int64 7 482k | name stringlengths 1 100 | license stringclasses 93
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
src/main/kotlin/com/shobande/menufactory/menu/Menu.kt | shobande-femi | 239,626,185 | false | null | package com.shobande.menufactory.menu
import com.shobande.menufactory.exceptions.CannotResolveNextState
import com.shobande.menufactory.exceptions.ReservedStateName
import com.shobande.menufactory.exceptions.StateNotFound
import com.shobande.menufactory.gateway.Gateway
import com.shobande.menufactory.gateway.wrappers.... | 0 | Kotlin | 0 | 3 | b0305c134e065352ff2d5d31c3016bef1de4ac06 | 6,901 | menufactory | MIT License |
assignments/01/src/test/kotlin/io/rybalkinsd/kotlinbootcamp/assignments/UtilTest.kt | rybalkinsd | 143,287,871 | false | null | package io.rybalkinsd.kotlinbootcamp.assignments
import junit.framework.TestCase.assertEquals
import org.junit.Ignore
import org.junit.Test
@Ignore
class UtilTest {
@Test
fun `max # the only element is exactly max element`() {
assertEquals(42, max(listOf(42)))
}
@Test
fun `max # small li... | 69 | Kotlin | 37 | 49 | 687f918f7eef2faf86fdcb4cdfde6e2f9e3faec1 | 14,412 | kotlin-boot-camp | MIT License |
shared/src/iosMain/kotlin/com/joelkanyi/focusbloom/platform/Font.ios.kt | JoelKanyi | 680,275,879 | false | {"Kotlin": 366687, "Swift": 2077, "Ruby": 1763} | /*
* Copyright 2023 <NAME>.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | 4 | Kotlin | 16 | 59 | e127ec6afaae541ed735b29f317a3000b90b9c94 | 1,364 | FocusBloom | Apache License 2.0 |
app/src/main/java/com/canopas/yourspace/ui/flow/home/map/component/MarkerPositionState.kt | canopas | 739,382,039 | false | {"Kotlin": 802726, "JavaScript": 13096, "Ruby": 908} | package com.canopas.yourspace.ui.flow.home.map.component
import androidx.compose.animation.core.Animatable
import androidx.compose.animation.core.tween
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.getValue
import androidx.compose.runtime.muta... | 5 | Kotlin | 1 | 7 | 3ce744ea6663d632b2fff470f9293de72708291d | 1,824 | your-space-android | Apache License 2.0 |
src/main/kotlin/org/pokerom/btx/Pallette.kt | PokeForce | 636,530,331 | false | {"Kotlin": 73510, "Java": 8591} | package org.pokerom.btx
import java.awt.Color
import java.nio.ByteBuffer
import java.nio.ByteOrder
class Palette {
var offset: Int = 0
var color0: Int = 0
var pal: Array<Color>? = null
companion object {
fun toBGR555Array(bytes: ByteArray): Array<Color> {
val palette = Array(bytes... | 0 | Kotlin | 0 | 7 | 28959e0e9c9594528204f080fa29a3a736e21975 | 1,339 | pokerom-library | Apache License 2.0 |
src/main/kotlin/org/pokerom/btx/Pallette.kt | PokeForce | 636,530,331 | false | {"Kotlin": 73510, "Java": 8591} | package org.pokerom.btx
import java.awt.Color
import java.nio.ByteBuffer
import java.nio.ByteOrder
class Palette {
var offset: Int = 0
var color0: Int = 0
var pal: Array<Color>? = null
companion object {
fun toBGR555Array(bytes: ByteArray): Array<Color> {
val palette = Array(bytes... | 0 | Kotlin | 0 | 7 | 28959e0e9c9594528204f080fa29a3a736e21975 | 1,339 | pokerom-library | Apache License 2.0 |
app/src/main/java/in/ceeq/lyte/messages/MessageItemViewModel.kt | rachitmishra | 89,640,201 | false | {"Java": 65938, "Kotlin": 42714, "JavaScript": 2123} | package `in`.ceeq.lyte.messages
import `in`.ceeq.lyte.data.Message
import android.databinding.ObservableField
class MessageItemViewModel private constructor(message: Message) {
val message = ObservableField<Message>(Message())
companion object {
fun from(message: Message) = MessageItemViewModel(mess... | 1 | null | 1 | 1 | b966e705440ce46384fd709839c587c2e6aba216 | 385 | lyte | MIT License |
codeSnippets/snippets/e2e/src/main/kotlin/e2e/TestServer.kt | ktorio | 278,572,893 | false | null | package e2e
import kotlinx.coroutines.runBlocking
import org.junit.After
import org.junit.Before
import java.util.concurrent.TimeUnit
abstract class TestServer {
private lateinit var serverProcess: Process
@Before
fun runServer() {
serverProcess = runGradleApp()
serverProcess.waitFor(4, T... | 5 | null | 94 | 95 | 4ede19d93a98dd25c3e1665702f13a8468a364aa | 437 | ktor-documentation | Apache License 2.0 |
app/shared/app-component/impl/src/commonMain/kotlin/build/wallet/di/ActivityComponentImpl.kt | proto-at-block | 761,306,853 | false | null | // We expose all member fields for access in integration tests.
@file:Suppress("MemberVisibilityCanBePrivate")
package build.wallet.di
import build.wallet.amount.AmountCalculatorImpl
import build.wallet.amount.DecimalNumberCalculatorImpl
import build.wallet.amount.DecimalNumberCreatorImpl
import build.wallet.amount.D... | 0 | null | 9 | 98 | 1f9f2298919dac77e6791aa3f1dbfd67efe7f83c | 113,667 | bitkey | MIT License |
app/shared/app-component/impl/src/commonMain/kotlin/build/wallet/di/ActivityComponentImpl.kt | proto-at-block | 761,306,853 | false | null | // We expose all member fields for access in integration tests.
@file:Suppress("MemberVisibilityCanBePrivate")
package build.wallet.di
import build.wallet.amount.AmountCalculatorImpl
import build.wallet.amount.DecimalNumberCalculatorImpl
import build.wallet.amount.DecimalNumberCreatorImpl
import build.wallet.amount.D... | 0 | null | 9 | 98 | 1f9f2298919dac77e6791aa3f1dbfd67efe7f83c | 113,667 | bitkey | MIT License |
ipv4_count/src/jmh/kotlin/dev/aspid812/ipv4_count/benchmark/IntegralBenchmarks.kt | Const-Grigoryev | 526,881,680 | false | {"Kotlin": 27280, "Java": 13876} | package dev.aspid812.ipv4_count.benchmark
import java.lang.ProcessBuilder.Redirect
import java.nio.file.Path
import java.util.concurrent.TimeUnit
import org.openjdk.jmh.annotations.*
import dev.aspid812.ipv4_count.IPv4Count
import dev.aspid812.ipv4_count.IPv4CountApp
import dev.aspid812.ipv4_count.benchmark.util.Pre... | 0 | Kotlin | 0 | 0 | d54de209d521ffb458803e8e1c595d0d9b4f5440 | 2,597 | Ecwid-Demo | MIT License |
javalin/src/main/java/io/javalin/websocket/JavalinWsServlet.kt | lhfei | 268,796,863 | false | null | /*
* Javalin - https://javalin.io
* Copyright 2017 <NAME>
* Licensed under Apache 2.0: https://github.com/tipsy/javalin/blob/master/LICENSE
*/
package io.javalin.websocket
import io.javalin.core.JavalinConfig
import io.javalin.core.security.RouteRole
import io.javalin.core.util.Header
import io.javalin.http.Conte... | 4 | null | 0 | 1 | 4bba86d75a242ab0742554ec31537ea3014df2bf | 4,094 | javalin | Apache License 2.0 |
src/main/kotlin/com/github/ziscloud/intellijplatformplugindemo/listeners/MyProjectManagerListener.kt | ziscloud | 557,763,677 | false | {"Kotlin": 7349} | package com.github.ziscloud.intellijplatformplugindemo.listeners
import com.intellij.openapi.components.service
import com.intellij.openapi.project.Project
import com.intellij.openapi.project.ProjectManagerListener
import com.github.ziscloud.intellijplatformplugindemo.services.MyProjectService
internal class MyProjec... | 0 | Kotlin | 0 | 0 | 503a9117d1c8e282f865b133b99ea400b18fcd10 | 639 | intellij-platform-plugin-demo | Apache License 2.0 |
tools/excel/src/main/kotlin/top/bettercode/summer/tools/excel/ExcelFieldCell.kt | top-bettercode | 387,652,015 | false | {"Kotlin": 2939064, "Java": 24119, "JavaScript": 22541, "CSS": 22336, "HTML": 15833} | package top.bettercode.summer.tools.excel
/**
* @author <NAME>
*/
open class ExcelFieldCell<T>(val row: Int, val column: Int, val isLastRow: Boolean, index: Int, var isFillColor: Boolean,
val excelField: ExcelField<T, *>, val entity: T) {
var cellValue: Any? = null
constructor(r... | 0 | Kotlin | 0 | 1 | d07ed7250e6dcdbcce51f27f5f22602e9c222b3c | 1,158 | summer | Apache License 2.0 |
common/src/main/kotlin/io/github/techtastic/kubevs/events/KubeVSShipLoadClientEvent.kt | TechTastic | 695,449,652 | false | {"Kotlin": 17238, "Java": 2716} | package io.github.techtastic.kubevs.events
import dev.latvian.mods.kubejs.event.EventJS
import org.valkyrienskies.core.impl.game.ships.ShipObjectClient
import org.valkyrienskies.core.impl.hooks.VSEvents
class KubeVSShipLoadClientEvent(val shipObjectClient: ShipObjectClient): EventJS() {
constructor(event: VSEvent... | 0 | Kotlin | 0 | 1 | 98bc9f4b8be45334177abbbccba4074a8baa2d72 | 410 | kubevs | Apache License 2.0 |
src/main/kotlin/com/ort/howlingwolf/domain/model/village/setting/VillageMessageRestricts.kt | h-orito | 176,481,255 | false | {"Kotlin": 820146, "HTML": 245777, "Batchfile": 522, "Shell": 454} | package com.ort.howlingwolf.domain.model.village.setting
import com.ort.dbflute.allcommon.CDef
import com.ort.howlingwolf.domain.model.message.MessageType
data class VillageMessageRestricts(
val existRestricts: Boolean = true,
val restrictList: List<VillageMessageRestrict> = listOf(
VillageMessageRest... | 0 | Kotlin | 1 | 3 | ec5db8e5323ea79f4a23648a33f8e81a71df96dc | 1,345 | wolf4busy-api | MIT License |
app/src/main/kotlin/sk/mholecy/meteorites/common/di/module/android/ViewModelModule.kt | ashishkharcheiuforks | 242,836,170 | true | {"Kotlin": 48667} | package sk.mholecy.meteorites.common.di.module.android
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider
import dagger.Binds
import dagger.Module
import dagger.multibindings.IntoMap
import sk.mholecy.meteorites.common.di.AppViewModelFactory
import sk.mholecy.meteorites.common.di.retention... | 0 | null | 0 | 0 | 0d6a9c4f3b22646970435be105afb8b718452317 | 989 | meteorites | MIT License |
app/src/main/java/com/example/covidapp/utils/ExtensionFun.kt | swapnilsparsh | 341,976,513 | false | null | package com.example.covidapp.utils
import android.app.Activity
import android.content.Intent
import android.net.Uri
fun Activity.goNextScreen(nextActivity: Class<*>, isFinished: Boolean = false) {
startActivity(Intent(this, nextActivity))
if (isFinished) {
finish()
}
}
fun Activity.loadWeb(url: S... | 1 | Kotlin | 7 | 9 | 37770bc00d7f5a461b34a78129e840bba3abb2ac | 393 | Covid-App | MIT License |
rtmp/src/test/java/com/pedro/rtmp/rtmp/message/DataTest.kt | pedroSG94 | 79,667,969 | false | null | /*
* Copyright (C) 2024 pedroSG94.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | 87 | null | 772 | 2,545 | eca59948009d5a7b564f9a838c149b850898d089 | 2,350 | RootEncoder | Apache License 2.0 |
app/src/main/java/com/base/pokedex/data/remote/model/DreamWorld.kt | kose135 | 681,053,150 | false | null | package com.base.pokedex.data.remote.model
import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass
@JsonClass(generateAdapter = true)
data class DreamWorld(
@Json(name = "front_default")
val frontDefault: String,
@Json(name = "front_female")
val frontFemale: Any
) | 0 | Kotlin | 0 | 0 | 1954e1a4b26879aa279c5553c82228a1af796b53 | 294 | Pokdex-AOS | Apache License 2.0 |
openrndr-draw/src/commonMain/kotlin/org/openrndr/draw/Session.kt | openrndr | 122,222,767 | false | null | package org.openrndr.draw
import mu.KotlinLogging
import org.openrndr.internal.Driver
private val logger = KotlinLogging.logger {}
private val sessionStack = mutableMapOf<Long, ArrayDeque<Session>>()
/**
* Session statistics
*/
class SessionStatistics(
val renderTargets: Int,
val colorBuffers: Int,... | 24 | null | 73 | 880 | 2ef3c463ecb66701771dc0cf8fb3364e960a5e3c | 8,701 | openrndr | BSD 2-Clause FreeBSD License |
app/src/main/java/com/mohsenoid/abcs/dial/DialViewModel.kt | mohsenoid | 635,004,133 | false | null | package com.mohsenoid.abcs.dial
import androidx.lifecycle.ViewModel
import com.mohsenoid.abcs.speech.SpeechHelper
class DialViewModel(private val speechHelper: SpeechHelper) : ViewModel() {
fun onClicked(number: Int) {
val numberName = NUMBERS[number]
speechHelper.speak(numberName)
}
co... | 0 | Kotlin | 0 | 0 | ea05b2ab3064343d3616896117b4382b6c9958d8 | 584 | ABCs | Apache License 2.0 |
kotlin-electron/src/jsMain/generated/electron/TouchBarButtonConstructorOptions.kt | JetBrains | 93,250,841 | false | {"Kotlin": 12635434, "JavaScript": 423801} | // Generated by Karakum - do not modify it manually!
package electron
typealias TouchBarButtonConstructorOptions = electron.core.TouchBarButtonConstructorOptions
| 38 | Kotlin | 162 | 1,347 | 997ed3902482883db4a9657585426f6ca167d556 | 164 | kotlin-wrappers | Apache License 2.0 |
src/me/egorand/kotlin/playground/misc/Collections.kt | Vaporice | 189,554,404 | true | {"Kotlin": 88970, "HTML": 509} | /*
* Copyright 2016 Egor Andreevici
*
* 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... | 0 | Kotlin | 0 | 0 | 4c82596c75a8dc4046df565e08f75bafd0365887 | 1,688 | kotlin-playground | Apache License 2.0 |
script/src/main/kotlin/script/block/player/PlayerRecolorBlock.kts | runetopic | 448,110,155 | false | null | package script.block.player
import xlitekt.game.actor.render.Render.Recolor
import xlitekt.game.actor.render.block.PlayerRenderingBlockListener
import xlitekt.shared.buffer.writeByte
import xlitekt.shared.buffer.writeByteSubtract
import xlitekt.shared.buffer.writeShortAdd
import xlitekt.shared.buffer.writeShortLittleE... | 0 | Kotlin | 3 | 8 | c896a2957470769a212961ba3e4331f04fc785df | 692 | xlitekt | MIT License |
src/main/kotlin/com/alzakharov/patterns/url/Url.kt | al-zakharov | 508,063,626 | false | {"Kotlin": 22276} | package com.alzakharov.patterns.url
object Url {
fun apply(url: String) = (
"(http|ftp|https):\\/\\/[\\w\\-_]+(\\.[\\w\\-_]+)+([\\w\\-\\.,@?^=%&:/~\\+#]*[\\w\\-\\@?^=%&/~\\+#])?"
)
.toRegex().matches(url)
}
| 0 | Kotlin | 0 | 0 | e80d2853a4546e2493df72b92dd64dd73166fac6 | 244 | kotlin-validators | Apache License 2.0 |
app/src/main/java/com/android/ao/newsapp/common/Resource.kt | kairos34 | 517,762,992 | false | {"Kotlin": 47481} | package com.android.ao.newsapp.common
/**
* @author alper
* Created 25.07.2022
*/
sealed class Resource<T>(val data: T? = null, val message: String? = null) {
class Success<T>(data: T) : Resource<T>(data)
class Error<T>(message: String, data: T? = null) : Resource<T>(data, message)
class Loading<T> : Re... | 0 | Kotlin | 0 | 0 | eaca9c9ab063f16aaffde7e7e975f5797b6571b9 | 333 | NewsApp | MIT License |
app/src/main/java/com/example/androiddevchallenge/ui/screen/Home.kt | eneim | 347,079,541 | false | null | /*
* 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 | Kotlin | 0 | 0 | a6d6cb1653d5c56e9b6e25a1e764153489764715 | 13,917 | PxFive | Apache License 2.0 |
feature-account-api/src/main/java/jp/co/soramitsu/feature_account_api/presenatation/actions/ExternalAccountActionsProvider.kt | soramitsu | 278,060,397 | false | null | package jp.co.soramitsu.common.account.external.actions
import androidx.lifecycle.MutableLiveData
import jp.co.soramitsu.common.R
import jp.co.soramitsu.common.data.network.AppLinksProvider
import jp.co.soramitsu.common.data.network.ExternalAnalyzer
import jp.co.soramitsu.common.resources.ClipboardManager
import jp.co... | 3 | null | 11 | 51 | ce2d28cd14a57c20f4d1757a89e23d2709c63072 | 1,579 | fearless-Android | Apache License 2.0 |
src/main/kotlin/nbt/lang/format/NbttLanguageCodeStyleSettingsProvider.kt | minecraft-dev | 42,327,118 | false | null | /*
* Minecraft Dev for IntelliJ
*
* https://minecraftdev.org
*
* Copyright (c) 2023 minecraft-dev
*
* MIT License
*/
package com.demonwav.mcdev.nbt.lang.format
import com.demonwav.mcdev.nbt.lang.NbttLanguage
import com.intellij.application.options.IndentOptionsEditor
import com.intellij.application.options.Sm... | 204 | null | 152 | 1,154 | 36cc3d47f7f39c847c0ebdcbf84980bc7262dab7 | 4,399 | MinecraftDev | MIT License |
projects/court-case-and-delius/src/integrationTest/kotlin/uk/gov/justice/digital/hmpps/IntegrationTest.kt | ministryofjustice | 500,855,647 | false | null | package uk.gov.justice.digital.hmpps
import com.github.tomakehurst.wiremock.WireMockServer
import org.junit.jupiter.params.ParameterizedTest
import org.junit.jupiter.params.provider.Arguments
import org.junit.jupiter.params.provider.MethodSource
import org.springframework.beans.factory.annotation.Autowired
import org.... | 4 | Kotlin | 0 | 2 | 404fca1520f49953b96a792d266ee3d3d12ee73a | 3,340 | hmpps-probation-integration-services | MIT License |
packages/react-native-gradle-plugin/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/utils/TaskUtils.kt | react-native-tvos | 177,633,560 | false | null | /*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
package com.facebook.react.utils
internal fun windowsAwareCommandLine(vararg args: Any): List<Any> =
if (Os.isWindows()) {
... | 8 | null | 141 | 897 | f8904c210b1be562d3e141b083c7c24b6fc85750 | 631 | react-native-tvos | MIT License |
HMA.Mobile/app/src/main/java/com/example/hma_mobile/HiltApplication.kt | blahutakrystian | 757,301,168 | false | {"Kotlin": 6641} | package com.example.hma_mobile
import android.app.Application
class HiltApplication : Application() {
override fun onCreate() {
super.onCreate()
}
} | 0 | Kotlin | 0 | 0 | 2d6c7d756e6a85727922673023a2e6ec3459863b | 166 | home-management-assistant | MIT License |
coil-gif/src/main/java/coil3/gif/AnimatedTransformation.kt | coil-kt | 201,684,760 | false | null | package coil3.transform
import android.graphics.Canvas
import coil3.annotation.ExperimentalCoilApi
/**
* An interface for making transformations to an animated image's pixel data.
*/
@ExperimentalCoilApi
fun interface AnimatedTransformation {
/**
* Apply the transformation to the [canvas].
*
* @... | 43 | null | 626 | 9,954 | 9b3f851b2763b4c72a3863f8273b8346487b363b | 471 | coil | Apache License 2.0 |
coil-gif/src/main/java/coil3/gif/AnimatedTransformation.kt | coil-kt | 201,684,760 | false | null | package coil3.transform
import android.graphics.Canvas
import coil3.annotation.ExperimentalCoilApi
/**
* An interface for making transformations to an animated image's pixel data.
*/
@ExperimentalCoilApi
fun interface AnimatedTransformation {
/**
* Apply the transformation to the [canvas].
*
* @... | 43 | null | 626 | 9,954 | 9b3f851b2763b4c72a3863f8273b8346487b363b | 471 | coil | Apache License 2.0 |
wallet-sdk/src/main/kotlin/org/stellar/walletsdk/auth/Sep10.kt | stellar | 523,604,257 | false | null | package org.stellar.walletsdk.auth
import io.ktor.client.*
import io.ktor.client.call.*
import io.ktor.client.request.*
import io.ktor.http.*
import java.util.*
import kotlinx.datetime.Clock
import mu.KotlinLogging
import org.stellar.sdk.Network
import org.stellar.sdk.Transaction
import org.stellar.walletsdk.Config
im... | 3 | Kotlin | 8 | 5 | cf6ab208aa9ab2b60e0a691005ced6ba6f4219d7 | 5,467 | kotlin-wallet-sdk | Apache License 2.0 |
src/main/kotlin/bpm/mc/registries/ModAttachments.kt | meng-devs | 852,470,964 | false | {"Kotlin": 1123351, "GLSL": 2785} | package bpm.mc.registries
import bpm.Bpm
import bpm.booostrap.ModRegistry
import bpm.mc.block.UUIDSerializer
import net.neoforged.neoforge.attachment.AttachmentType
import net.neoforged.neoforge.registries.DeferredRegister
import net.neoforged.neoforge.registries.NeoForgeRegistries
import java.util.*
import java.util.... | 5 | Kotlin | 0 | 0 | caf36397c9aa72a21e2b19f6051d76db66c9f77c | 841 | bpm.core | MIT License |
kotlin-code-generation/src/test/kotlin/support/ThrowsAnnotationTest.kt | toolisticon | 804,098,315 | false | {"Kotlin": 321372} | package io.toolisticon.kotlin.generation.support
import com.squareup.kotlinpoet.ExperimentalKotlinPoetApi
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.Test
@OptIn(ExperimentalKotlinPoetApi::class)
internal class ThrowsAnnotationTest {
@Test
fun `create throw annotation with one ... | 5 | Kotlin | 0 | 2 | d50b3f82cb6c2181da03429f2ac05b41e60fa695 | 896 | kotlin-code-generation | Apache License 2.0 |
app/src/main/java/com/davismiyashiro/expenses/view/opentab/ParticipantFragmentPresenter.kt | DavisJP | 109,140,022 | false | null | /*
* MIT License
*
* Copyright (c) 2019 Davis Miyashiro
*
* 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, ... | 0 | Kotlin | 0 | 0 | e88daf146151fa7ff3d2d4cc0a378af480dc48aa | 2,281 | Expenses | MIT License |
app/src/main/java/ua/com/radiokot/photoprism/db/roomMigration.kt | Radiokot | 612,884,518 | false | null | package ua.com.radiokot.photoprism.db
import androidx.sqlite.db.SupportSQLiteDatabase
/**
* Clean lambda-based [androidx.room.migration.Migration] implementation.
*/
internal fun roomMigration(
from: Int,
to: Int,
migration: SupportSQLiteDatabase.() -> Unit,
) = object : androidx.room.migration.Migratio... | 0 | Kotlin | 8 | 121 | 97b659c553b25b4bdc59a1e245229f61f0667db2 | 419 | photoprism-android-client | Apache License 2.0 |
app/src/main/java/org/wordpress/edittextrecycled/MyEditText.kt | hypest | 126,629,280 | false | null | package org.wordpress.edittextrecycled
import android.content.Context
import android.graphics.drawable.ShapeDrawable
import android.graphics.drawable.shapes.RectShape
import android.text.Spannable
import android.text.SpannableString
import android.text.SpannableStringBuilder
import android.text.style.DrawableMarginSpa... | 0 | Kotlin | 0 | 0 | 41f73ba7cff668c66e38c522106435cb73b44ef9 | 2,057 | edittext-recycled | Apache License 2.0 |
src/main/kotlin/no/nav/sosialhjelp/innsyn/app/mdc/MDCFilter.kt | navikt | 184,267,271 | false | {"Kotlin": 750292, "Dockerfile": 427, "Procfile": 92} | package no.nav.sosialhjelp.innsyn.app.mdc
import jakarta.servlet.FilterChain
import jakarta.servlet.http.HttpServletRequest
import jakarta.servlet.http.HttpServletResponse
import no.nav.sosialhjelp.innsyn.app.mdc.MDCUtils.CALL_ID
import no.nav.sosialhjelp.innsyn.app.mdc.MDCUtils.DIGISOS_ID
import no.nav.sosialhjelp.in... | 6 | Kotlin | 0 | 0 | 55867535dc0778572255c942102eb0a215302b0b | 2,510 | sosialhjelp-innsyn-api | MIT License |
spi/src/main/kotlin/com/atlassian/migration/datacenter/spi/exceptions/ConfigurationReadException.kt | andrewpowell | 269,599,826 | true | {"TSQL": 599562, "Java": 455015, "Kotlin": 212757, "TypeScript": 182843, "JavaScript": 20409, "Python": 3813, "HTML": 2599, "Makefile": 2424, "Shell": 1292, "Dockerfile": 703} | /*
* 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 writ... | 0 | null | 0 | 0 | a35f6282e4e596e454db773c0415dce6a21b9064 | 826 | dc-migration-assistant | Apache License 2.0 |
kground/src/commonTest/kotlin/ure/UreTestsForBasicStuffCmn.kt | mareklangiewicz | 676,002,318 | false | {"Kotlin": 179917, "HTML": 270} | package pl.mareklangiewicz.ure
import pl.mareklangiewicz.annotations.*
import pl.mareklangiewicz.uspek.*
const val exampleABCDEx3 = "aBcDe\naBcDe\nABCDE"
fun testSomeUreBasicStuff() {
// some example very basic sanity tests
"chDot compiled pattern is quoted dot" o { chDot.compile().pattern eq "\\." }
"c... | 0 | Kotlin | 0 | 0 | 4c432301942c94fd0b0434f2b69c45dc3ed7bec3 | 2,551 | KGround | Apache License 2.0 |
app/src/main/java/dlp/android/ma7moud3ly/data/Downloads.kt | Ma7moud3ly | 783,520,987 | false | {"Kotlin": 92450, "Python": 4734} | package dlp.android.ma7moud3ly.data
import android.graphics.Bitmap
import java.io.File
data class DownloadProgress(
val downloaded: Double = 0.0,
val size: Double = 0.0,
val percent: Float = 0f
)
/**
* Downloaded file info in app internal storage
*/
data class DownloadInfo(
val file: File = File(""... | 0 | Kotlin | 0 | 3 | 4387d8b6c053da743ba59f1485b6c4148334d4bc | 529 | dlp-android | MIT License |
kotlin-eclipse-ui-test/testData/refactoring/rename/renameKotlinTopLevelFunFromJava/before/KotlinCls.kt | bvfalcon | 263,980,575 | false | null | fun kotlinTopLevelFun() {
} | 19 | null | 7 | 43 | e6360b023e1e377325f1d10bda5755e3fc3af591 | 27 | kotlin-eclipse | Apache License 2.0 |
room/room-compiler/src/test/test-data/kotlinCodeGen/shortcutMethods_rx3.kt | androidx | 256,589,781 | false | null | import androidx.room.EntityDeletionOrUpdateAdapter
import androidx.room.EntityInsertionAdapter
import androidx.room.EntityUpsertionAdapter
import androidx.room.RoomDatabase
import androidx.sqlite.db.SupportSQLiteStatement
import io.reactivex.rxjava3.core.Completable
import io.reactivex.rxjava3.core.Single
import java.l... | 26 | null | 913 | 4,930 | a9b86d2cfe642b58f8bce108217f04e62ade1d97 | 7,856 | androidx | Apache License 2.0 |
src/main/kotlin/kotlinmud/mob/race/impl/Giant.kt | danielmunro | 241,230,796 | false | null | package kotlinmud.mob.race.impl
import kotlinmud.attributes.factory.createStats
import kotlinmud.mob.fight.type.DamageType
import kotlinmud.mob.race.type.Race
import kotlinmud.mob.race.type.RaceType
import kotlinmud.mob.type.Form
import kotlinmud.mob.type.Size
class Giant : Race() {
override val type = RaceType.G... | 0 | Kotlin | 1 | 9 | b7ee0d21ae813990896b1b8c6703da9bd1f1fc5b | 774 | kotlinmud | MIT License |
app/src/main/java/com/example/bitfit_part1/MainActivity.kt | clearFrost | 617,833,886 | false | null | package com.example.bitfit_part1
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.Display
import android.widget.Button
import android.widget.TextView
import androidx.fragment.app.Fragment
import androidx.lifecycle.lifecycleScope
import androidx.recyclerview.widget.LinearLayo... | 1 | Kotlin | 0 | 0 | 6836bf1ce0c4d4dd5316b0c952cec04c8c7ee5a8 | 3,190 | Exertrack | Apache License 2.0 |
sketch-animated/src/androidInstrumentedTest/kotlin/com/github/panpf/sketch/animated/android/test/decode/WebpAnimatedDecoderTest.kt | panpf | 14,798,941 | false | null | /*
* Copyright (C) 2022 panpf <<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 agre... | 8 | null | 309 | 2,057 | 89784530da0de6085a5b08f810415147cb3165cf | 9,529 | sketch | Apache License 2.0 |
core/design/src/main/kotlin/rt/cccl/design/Dimen.kt | queencodemonkey | 840,896,614 | false | {"Kotlin": 195780} | /*
* MIT License
*
* Copyright (c) 2024 Randomly Typing
*
* 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, ... | 0 | Kotlin | 0 | 1 | 1ad60898776b6bfa8a92bfaa59199ac0c3e741ff | 1,445 | creating-custom-compose-layouts | MIT License |
core/design/src/main/kotlin/rt/cccl/design/Dimen.kt | queencodemonkey | 840,896,614 | false | {"Kotlin": 195780} | /*
* MIT License
*
* Copyright (c) 2024 Randomly Typing
*
* 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, ... | 0 | Kotlin | 0 | 1 | 1ad60898776b6bfa8a92bfaa59199ac0c3e741ff | 1,445 | creating-custom-compose-layouts | MIT License |
ospf-kotlin-utils/src/main/fuookami/ospf/kotlin/utils/parallel/MapIndexed.kt | fuookami | 359,831,793 | false | {"Kotlin": 1652659, "Vue": 46343, "Rust": 23739, "Python": 6629, "JavaScript": 5101, "CSS": 1302, "HTML": 1297} | package fuookami.ospf.kotlin.utils.parallel
import kotlinx.coroutines.*
import fuookami.ospf.kotlin.utils.math.*
import fuookami.ospf.kotlin.utils.error.*
import fuookami.ospf.kotlin.utils.functional.*
suspend inline fun <R, T> Iterable<T>.mapIndexedParallelly(
crossinline extractor: SuspendIndexedExtractor<R, T>... | 0 | Kotlin | 0 | 1 | fdeeb1e4bf3bd4ec486beb69840f881123a2a628 | 6,565 | ospf-kotlin | Apache License 2.0 |
source-code/starter-project/app/src/main/java/com/droidcon/tinyinvoice/ui/invoice/InvoiceListScreen.kt | droidcon-academy | 733,026,693 | false | {"Kotlin": 241858} | package com.droidcon.tinyinvoice.ui.invoice
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.wrapContentHeight
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.items
import android... | 0 | Kotlin | 0 | 0 | 432e43a61b5d18c55bd919e8f770b87fab12848a | 4,226 | android-mc-sqldelight | Apache License 2.0 |
app/src/main/java/com/orange/ods/app/ui/components/buttons/ButtonCustomizationState.kt | Orange-OpenSource | 440,548,737 | false | null | /*
*
* Copyright 2021 Orange
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE file or at
* https://opensource.org/licenses/MIT.
* /
*/
package com.orange.ods.app.ui.components.buttons
import androidx.compose.runtime.Composable
import androidx.compose.runti... | 61 | Kotlin | 2 | 8 | 400be520263417b1f73f85c4e17d55f597e43131 | 1,793 | ods-android | MIT License |
src/main/java/com/ozodrukh/android/pkg/installer/score.kt | ozodrukh | 102,261,075 | false | null | package com.xabarin
/**
* This is a port of Joshaven Potter's string_score.js: String Scoring Algorithm 0.1.22
* <p/>
* http://joshaven.com/string_score
* https://github.com/joshaven/string_score
* <p/>
* Ported By: <NAME>
* Date: 3 december 2016
*/
/**
* This is a port of Joshaven Potter's string_score.js: ... | 0 | null | 1 | 4 | b8fae0050b658b06e64820f4ec41500cfe205b45 | 2,467 | android-pkg-installer | MIT License |
app/src/main/java/com/google/android/soundchecker/BitPerfectFilePlayerActivity.kt | google | 679,463,835 | false | null | /**
* Copyright 2023 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... | 8 | null | 7 | 9 | 18c12f3435802834e471c339bd4dcfbcf72c44b9 | 6,744 | sound-checker | Apache License 2.0 |
database/database-symbol-processor/src/main/kotlin/ru/tinkoff/kora/database/symbol/processor/vertx/extension/VertxTypesExtension.kt | Tinkoff | 568,800,636 | false | null | package ru.tinkoff.kora.database.symbol.processor.vertx.extension
import com.google.devtools.ksp.getClassDeclarationByName
import com.google.devtools.ksp.getFunctionDeclarationsByName
import com.google.devtools.ksp.processing.CodeGenerator
import com.google.devtools.ksp.processing.KSPLogger
import com.google.devtools.... | 21 | null | 23 | 146 | bb6f65080d9f50b674c8a77dac08116b2ee9eebf | 9,629 | kora | Apache License 2.0 |
core/model/src/main/kotlin/de/tum/informatics/www1/artemis/native_app/core/model/lecture/Lecture.kt | ls1intum | 537,104,541 | false | null | package de.tum.informatics.www1.artemis.native_app.core.model.lecture
import de.tum.informatics.www1.artemis.native_app.core.model.Course
import de.tum.informatics.www1.artemis.native_app.core.model.lecture.lecture_units.LectureUnit
import kotlinx.datetime.Instant
import kotlinx.serialization.Serializable
@Serializab... | 2 | null | 0 | 6 | dd4b99ab6a143b669d3db20af45dbe533c650bd4 | 640 | artemis-android | MIT License |
core/src/commonMain/kotlin/it/unibo/pulvreakt/core/component/AbstractComponent.kt | pulvreakt | 540,771,410 | false | null | package it.unibo.pulvreakt.core.component
import arrow.core.Either
import arrow.core.firstOrNone
import arrow.core.raise.either
import arrow.core.raise.ensure
import arrow.core.right
import io.github.oshai.kotlinlogging.KotlinLogging
import it.unibo.pulvreakt.core.communicator.Communicator
import it.unibo.pulvreakt.co... | 4 | null | 1 | 3 | a095703596b0336497527f95d49f979bec022d75 | 5,829 | pulvreakt | MIT License |
src/main/kotlin/rei/NEUItemEntrySerializer.kt | nea89o | 637,563,904 | false | {"Kotlin": 661685, "Java": 144356, "GLSL": 2115, "Nix": 1217} | package moe.nea.firmament.rei
import me.shedaniel.rei.api.common.entry.EntrySerializer
import me.shedaniel.rei.api.common.entry.EntryStack
import net.minecraft.nbt.NbtCompound
import moe.nea.firmament.repo.RepoManager
import moe.nea.firmament.util.SkyblockId
object NEUItemEntrySerializer : EntrySerializer<SBItemStack... | 25 | Kotlin | 6 | 37 | 0357245e88be4b8cd3d0681340d9a7065361ea74 | 1,087 | Firmament | Apache License 2.0 |
app/src/main/java/com/example/simplepomodoro/ui/components/charts/BarChart.kt | maximilianproell | 423,197,437 | false | {"Kotlin": 72654} | package com.example.simplepomodoro.ui.components.charts
import androidx.compose.animation.core.*
import androidx.compose.foundation.Canvas
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.founda... | 0 | Kotlin | 0 | 0 | 9b0314c91e88e8ecd67163387daa94617cf9441c | 5,092 | SimplePomodoro | Apache License 2.0 |
protocol/osrs-226/osrs-226-desktop/src/main/kotlin/net/rsprot/protocol/game/outgoing/codec/interfaces/IfSetPlayerModelBodyTypeEncoder.kt | blurite | 771,753,685 | false | {"Kotlin": 8753620} | package net.rsprot.protocol.game.outgoing.codec.interfaces
import net.rsprot.buffer.JagByteBuf
import net.rsprot.crypto.cipher.StreamCipher
import net.rsprot.protocol.ServerProt
import net.rsprot.protocol.game.outgoing.interfaces.IfSetPlayerModelBodyType
import net.rsprot.protocol.game.outgoing.prot.GameServerProt
imp... | 4 | Kotlin | 6 | 27 | d3849749f0787f9a538d2f8afc6b4b8d029e8143 | 830 | rsprot | MIT License |
src/main/kotlin/crux/api/query/context/WhereContext.kt | AlistairONeill | 378,195,098 | true | {"Kotlin": 91562} | package crux.api.query.context
import clojure.lang.Keyword
import clojure.lang.Symbol
import crux.api.query.domain.QuerySection.WhereSection
import crux.api.query.domain.WhereClause
import crux.api.query.domain.WhereClause.*
import crux.api.query.domain.WhereClause.Join.Type.*
import crux.api.query.domain.WhereClause.... | 0 | Kotlin | 0 | 1 | 1ced1d04d8dc9318fb0e6a22021f969c76e7b5b1 | 1,814 | crux-kotlin-dsl-1 | MIT License |
src/main/java/com/maddyhome/idea/vim/helper/VimStandalonePluginUpdateChecker.kt | JetBrains | 1,459,486 | false | {"Kotlin": 5959132, "Java": 211095, "ANTLR": 84686, "HTML": 2184} | /*
* Copyright 2003-2023 The IdeaVim authors
*
* Use of this source code is governed by an MIT-style
* license that can be found in the LICENSE.txt file or at
* https://opensource.org/licenses/MIT.
*/
package com.maddyhome.idea.vim.helper
import com.intellij.ide.plugins.StandalonePluginUpdateChecker
import com.... | 6 | Kotlin | 749 | 9,241 | 66b01b0b0d48ffec7b0148465b85e43dfbc908d3 | 1,055 | ideavim | MIT License |
foryouandme/src/main/java/com/foryouandme/data/datasource/StudySettings.kt | 4youandme | 308,387,557 | false | null | package com.foryouandme.data.datasource
abstract class StudySettings {
abstract val isDebuggable: Boolean
abstract val isStaging: Boolean
abstract val studyId: String
abstract val getApiBaseUrl: String
abstract val getOAuthBaseUrl: String
abstract val useCustomData: Boolean
open val ... | 0 | Kotlin | 0 | 0 | 5a57ba15c408638a3cfea8084f609293a1defdc6 | 404 | 4YouandmeAndroid | MIT License |
app/src/main/java/io/horizontalsystems/bankwallet/modules/market/search/MarketDiscoveryService.kt | horizontalsystems | 142,825,178 | false | {"Kotlin": 5050886, "Shell": 6112, "Ruby": 1350} | package io.horizontalsystems.bankwallet.modules.market.search
import io.horizontalsystems.bankwallet.core.ILocalStorage
import io.horizontalsystems.bankwallet.core.managers.MarketKitWrapper
import io.horizontalsystems.marketkit.models.Coin
import io.horizontalsystems.marketkit.models.FullCoin
import kotlinx.coroutines... | 168 | Kotlin | 364 | 895 | 218cd81423c570cdd92b1d5161a600d07c35c232 | 1,707 | unstoppable-wallet-android | MIT License |
src/main/kotlin/com/soprasteria/initiatives/ideas/config/AuthenticatedUser.kt | SopraSteriaGroup | 91,157,755 | false | null | package com.soprasteria.initiatives.ideas.config
import org.springframework.security.core.GrantedAuthority
import java.security.Principal
import java.util.*
class AuthenticatedUser(val username: String, val firstName: String, val lastName: String, val authorities: Collection<GrantedAuthority>) : Principal {
ov... | 0 | Kotlin | 0 | 2 | edb30025520b4e6425e30167a0d606a93cd33dca | 965 | initiatives_backend_ideas | MIT License |
app/src/main/java/com/mindorks/framework/mvp/ui/movies/view/MoviesActivity.kt | JoeJohnRio | 290,540,621 | false | null | package com.mindorks.framework.mvp.ui.login.view
import android.os.Bundle
import android.util.Log
import androidx.databinding.DataBindingUtil
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import com.mindorks.framework.mvp.R
import com.mindorks.framework.mvp.da... | 0 | Kotlin | 0 | 0 | ab6e5cf668202c6fe6eec51b67440bb3520fb62c | 3,761 | movietofind | Apache License 2.0 |
sdk/src/test/java/com/exponea/sdk/tracking/CampaignSessionTests_008.kt | exponea | 134,699,893 | false | null | package com.exponea.sdk.tracking
import android.app.Activity
import android.os.Bundle
import androidx.test.platform.app.InstrumentationRegistry
import com.exponea.sdk.Exponea
import com.exponea.sdk.models.Constants
import org.junit.After
import org.junit.AfterClass
import org.junit.BeforeClass
import org.junit.Test
im... | 5 | null | 17 | 17 | 150999cffec54fa2266e0d9db07c16143dc17a26 | 2,594 | exponea-android-sdk | MIT License |
clients/kotlin/generated/src/main/kotlin/org/openapitools/client/models/ComDayCqWcmContentsyncImplRewriterPathRewriterTransformerFactorProperties.kt | shinesolutions | 190,217,155 | false | null | /**
* Adobe Experience Manager OSGI config (AEM) API
* Swagger AEM OSGI is an OpenAPI specification for Adobe Experience Manager (AEM) OSGI Configurations API
*
* OpenAPI spec version: 1.0.0-pre.0
* Contact: opensource@shinesolutions.com
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-gener... | 12 | null | 1 | 4 | c2f6e076971d2592c1cbd3f70695c679e807396b | 1,923 | swagger-aem-osgi | Apache License 2.0 |
ospf-kotlin-utils/src/main/fuookami/ospf/kotlin/utils/functional/MaxOfWithOrNull.kt | fuookami | 359,831,793 | false | {"Kotlin": 1433872, "Vue": 46326, "Rust": 23739, "Python": 6611, "JavaScript": 5100, "HTML": 1369, "CSS": 1302} | package fuookami.ospf.kotlin.utils.functional
inline fun <T, U> Iterable<U>.maxOfWithComparatorOrNull(
crossinline comparator: Comparator<T>,
crossinline extractor: Extractor<T, U>
): T? {
return this.maxOfWithOrNull({ lhs, rhs ->
if (comparator(lhs, rhs)) {
-1
} else if (compar... | 0 | Kotlin | 0 | 1 | fdeeb1e4bf3bd4ec486beb69840f881123a2a628 | 1,386 | ospf-kotlin | Apache License 2.0 |
data/src/main/java/com/rodrigobresan/data/movie/sources/data_store/remote/MovieRemote.kt | rodrigobressan | 107,698,692 | false | null | package com.rodrigobresan.data.movie.sources.data_store.remote
import com.rodrigobresan.data.movie.model.MovieEntity
import io.reactivex.Single
/**
* Define the interface for any class that will fetch Movies from a remote storage
*/
interface MovieRemote {
/**
* Get the popular movies
*/
fun getPo... | 0 | Kotlin | 17 | 68 | 99b861f813b907d9604903c4ba2ca2e33b7c3ecd | 677 | android_tmdb_clean_architecture | MIT License |
core/src/main/java/com/ziss/core/data/datasources/remote/network/ApiService.kt | ziss11 | 686,203,789 | false | {"Kotlin": 58545} | package com.ziss.core.data.datasources.remote.network
import com.ziss.core.data.datasources.remote.responses.MovieListResponse
import retrofit2.http.GET
import retrofit2.http.Query
interface ApiService {
@GET("movie/top_rated")
suspend fun getTopRatedMovies(): MovieListResponse
@GET("movie/now_playing")
... | 0 | Kotlin | 0 | 1 | 1f8fca83e35200f218e99b6ece83d818270b0e99 | 483 | movie-app-native | MIT License |
app/src/main/java/com/example/myweather/injection/module/ApplicationModule.kt | serj113 | 227,987,490 | false | null | package com.example.myweather.injection.module
import android.content.Context
import com.example.myweather.App
import dagger.Binds
import dagger.Module
@Module
abstract class ApplicationModule {
/**
* Provides the application.
* @return the application.
*/
@Binds
abstract fun provideApplica... | 0 | Kotlin | 0 | 0 | 152f181c1e16e8691332854f86617075b678f304 | 352 | My-Weather | Apache License 2.0 |
platform/ide-core/src/com/intellij/ide/GeneralLocalSettings.kt | ingokegel | 72,937,917 | false | null | // Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.ide
import com.intellij.ide.util.PropertiesComponent
import com.intellij.openapi.application.ApplicationManager
import com.intellij.openapi.components.*
import com.intellij.open... | 214 | null | 4829 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 2,634 | intellij-community | Apache License 2.0 |
data/RF03318/rnartist.kts | fjossinet | 449,239,232 | false | {"Kotlin": 8214424} | import io.github.fjossinet.rnartist.core.*
rnartist {
ss {
rfam {
id = "RF03318"
name = "consensus"
use alignment numbering
}
}
theme {
details {
value = 3
}
color {
location {
1 to 9... | 0 | Kotlin | 0 | 0 | 3016050675602d506a0e308f07d071abf1524b67 | 1,242 | Rfam-for-RNArtist | MIT License |
flowredux/src/commonTest/kotlin/com/freeletics/flowredux/sideeffects/OnEnterStartStateMachineTest.kt | freeletics | 184,753,749 | false | null | package com.freeletics.flowredux.sideeffects
import app.cash.turbine.awaitItem
import app.cash.turbine.test
import com.freeletics.flowredux.StateMachine
import com.freeletics.flowredux.TestAction
import com.freeletics.flowredux.TestState
import com.freeletics.flowredux.dsl.FlowReduxStateMachine
import com.freeletics.f... | 9 | null | 27 | 707 | eecee7caf3bba31fca8d8f2a8ed66a60839310ca | 13,961 | FlowRedux | Apache License 2.0 |
flowredux/src/commonTest/kotlin/com/freeletics/flowredux/sideeffects/OnEnterStartStateMachineTest.kt | freeletics | 184,753,749 | false | null | package com.freeletics.flowredux.sideeffects
import app.cash.turbine.awaitItem
import app.cash.turbine.test
import com.freeletics.flowredux.StateMachine
import com.freeletics.flowredux.TestAction
import com.freeletics.flowredux.TestState
import com.freeletics.flowredux.dsl.FlowReduxStateMachine
import com.freeletics.f... | 9 | null | 27 | 707 | eecee7caf3bba31fca8d8f2a8ed66a60839310ca | 13,961 | FlowRedux | Apache License 2.0 |
modules/conflate-logging/src/test/kotlin/com/encodeering/conflate/experimental/logging/LoggingTest.kt | encodeering | 81,722,175 | false | null | package com.encodeering.conflate.experimental.logging
import com.encodeering.conflate.experimental.api.Action
import com.encodeering.conflate.experimental.test.co
import com.encodeering.conflate.experimental.test.eq
import com.encodeering.conflate.experimental.test.fixture.Act
import com.encodeering.conflate.experimen... | 3 | Kotlin | 0 | 1 | 51fd2e4cee32e29bb72cd182611393d7f8420914 | 3,697 | conflate | Apache License 2.0 |
app/src/main/java/com/axel_stein/glucose_tracker/ui/export_pdf/ExportPdfFactory.kt | AxelStein | 320,277,698 | false | null | package com.axel_stein.glucose_tracker.ui.export_pdf
import androidx.lifecycle.AbstractSavedStateViewModelFactory
import androidx.lifecycle.SavedStateHandle
import androidx.lifecycle.ViewModel
import androidx.savedstate.SavedStateRegistryOwner
@Suppress("UNCHECKED_CAST")
class ExportPdfFactory(
owner: SavedStateR... | 4 | Kotlin | 0 | 1 | 960fe9268fb04663de836c6ce9f5500f7179cabf | 557 | GlucoseTracker | Apache License 2.0 |
app/src/main/java/com/suyash/creditmanager/domain/util/LocalDateJSONConverter.kt | suyash01 | 732,788,266 | false | {"Kotlin": 216552} | package com.suyash.creditmanager.domain.util
import com.google.gson.JsonDeserializationContext
import com.google.gson.JsonDeserializer
import com.google.gson.JsonElement
import com.google.gson.JsonPrimitive
import com.google.gson.JsonSerializationContext
import com.google.gson.JsonSerializer
import java.lang.reflect.T... | 0 | Kotlin | 0 | 0 | 5d7f1de1d1acf8c5a1069eb32d4edcf1683326dd | 879 | credit-manager | Apache License 2.0 |
app/src/main/java/com/example/graduation/data/apiservice/MainAppService.kt | PanicLess-2023 | 628,118,517 | false | null | package com.example.graduation.data.apiservice
import com.example.graduation.data.models.postbody.CreateReadBody
import com.example.graduation.data.models.response.reading.ReadingResponse
import retrofit2.Response
import retrofit2.http.*
interface MainAppService {
@POST("/reading/create-reading/")
suspend ... | 0 | Kotlin | 0 | 0 | c6c8e69421f441e48b5869e98dea804ffe31183a | 759 | Panicless | MIT License |
presentation-widget/src/main/java/tachiyomi/presentation/widget/components/LockedWidget.kt | mihonapp | 743,704,912 | false | null | package tachiyomi.presentation.widget.components.manga
import android.content.Intent
import androidx.compose.runtime.Composable
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import androidx.glance.GlanceModifier
import androidx.glance.LocalContext
import androidx.glance.action.clickable
import ... | 280 | null | 98 | 9,867 | f3a2f566c8a09ab862758ae69b43da2a2cd8f1db | 1,464 | mihon | Apache License 2.0 |
domain/src/main/java/com/nedaluof/domain/di/UseCaseModule.kt | nedaluof | 678,119,328 | false | null | package com.nedaluof.domain.di
import com.nedaluof.domain.usecase.categories.CategoriesUseCase
import com.nedaluof.domain.usecase.categories.CategoriesUseCaseImpl
import com.nedaluof.domain.usecase.categories.categoryphoto.CategoryPhotosUseCase
import com.nedaluof.domain.usecase.categories.categoryphoto.CategoryPhotos... | 0 | Kotlin | 0 | 0 | 163bc45964a5622f5f1ba846d390ababe7389021 | 1,413 | PixabayX | Apache License 2.0 |
app/src/main/java/com/farmerbb/notepad/ui/previews/ViewNotePreview.kt | farmerbb | 17,308,977 | false | null | /* Copyright 2021 <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 writi... | 50 | null | 82 | 207 | 112f3abff48b5df81731b49e71463bfb6e06616c | 2,098 | Notepad | Apache License 2.0 |
app/src/test/java/com/mateuszcholyn/wallet/frontend/view/screen/expenseform/ExpenseFormViewModelTest.kt | mateusz-nalepa | 467,673,984 | false | {"Kotlin": 606018} | package com.mateuszcholyn.wallet.frontend.view.screen.expenseform
import com.mateuszcholyn.wallet.R
import com.mateuszcholyn.wallet.backend.api.categoriesquicksummary.randomCategoryQuickSummary
import com.mateuszcholyn.wallet.backend.api.core.expense.AddExpenseParameters
import com.mateuszcholyn.wallet.backend.api.cor... | 0 | Kotlin | 0 | 0 | 68fbe94c6921d26054080f9ad38edd3a11c46ce1 | 15,027 | wallet | Apache License 2.0 |
pillarbox-demo/src/main/java/ch/srgssr/pillarbox/demo/ui/showcases/misc/SphericalSurfaceShowcase.kt | SRGSSR | 519,157,987 | false | null | /*
* Copyright (c) SRG SSR. All rights reserved.
* License information is available from the LICENSE file.
*/
package ch.srgssr.pillarbox.demo.ui.showcases.misc
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.runtime.Composable
import androidx.compose.runtime.DisposableEffect
import an... | 24 | null | 1 | 12 | f65758adbf037ffef04861f878a714beac0f8c36 | 1,409 | pillarbox-android | MIT License |
app/src/main/java/dev/arkbuilders/rate/data/worker/CurrencyMonitorWorker.kt | ARK-Builders | 515,514,394 | false | {"Kotlin": 138606} | package dev.arkbuilders.rate.data.worker
import android.content.Context
import androidx.work.CoroutineWorker
import androidx.work.WorkerParameters
import dev.arkbuilders.rate.data.CurrencyRate
import dev.arkbuilders.rate.data.GeneralCurrencyRepo
import dev.arkbuilders.rate.data.db.PairAlertConditionRepo
import dev.ark... | 32 | Kotlin | 3 | 2 | 850aba354bd508c6016d436ce2efa30419d4d55d | 1,809 | ARK-Rate | MIT License |
workflows/src/main/kotlin/com/template/flows/NewKeyForAccount.kt | kaninkearpimy23814 | 246,088,380 | true | {"Kotlin": 142330} | package com.r3.corda.lib.accounts.examples.flows
import co.paralleluniverse.fibers.Suspendable
import net.corda.core.flows.FlowLogic
import net.corda.core.flows.StartableByRPC
import net.corda.core.flows.StartableByService
import net.corda.core.identity.PartyAndCertificate
import java.util.*
@StartableByRPC
@Startabl... | 0 | Kotlin | 0 | 0 | f92ac047f55cfb53e215e194254c60193f1b4531 | 694 | rubber-blockchain | Apache License 2.0 |
color/d2v-color-common/src/main/kotlin/io/data2viz/color/HslColor.kt | realdadfish | 158,028,324 | true | {"Kotlin": 1433243, "JavaScript": 42307, "HTML": 38410, "Java": 386} | package io.data2viz.color
import io.data2viz.math.*
/**
* Create a color in the HSL color space
*
* @param h hue:Angle in degree
* @param s saturation:Float between 0 and 1
* @param l lightness:Float between 0 and 1
* @param alpha:Float between 0 and 1
*/
class HslColor
@Deprecated("Deprecated", ReplaceWith("C... | 0 | Kotlin | 0 | 0 | 4e3c732d44ee94940fa340e5684ea55e8ef05556 | 2,174 | data2viz | Apache License 2.0 |
auth-cdn/code/Misc.kt | wkmcyz | 512,309,921 | false | {"Kotlin": 3481} |
// 请求返回的对象结构
interface Response {
// 返回本次请求是否是成功的请求, 即 200
fun isSuccessful(): Boolean
// 返回本次请求返回码是否是 403 ,即需要认证
fun is403(): Boolean
fun convertToCdnInfos(): ArrayList<CdnInfo>
}
// 包含了下载所需的信息
class DownloadInfo
// 包含了使用 cdn 所需的信息
class CdnInfo
// 下载类的抽象
interface IDownloader {
// 下载指定的... | 0 | Kotlin | 1 | 0 | 3aeeeff3383c6f7e1c62dbc9a4b865fcbbfba287 | 519 | refactor-demos | Apache License 2.0 |
src/main/kotlin/ink/ptms/glaikit/GlaiKotlinScript.kt | TabooBot | 445,271,522 | true | {"Kotlin": 13016} | package ink.ptms.glaikit
import ink.ptms.glaikit.scripting.ScriptBase
import org.jetbrains.kotlin.mainKts.CompilerOptions
import org.jetbrains.kotlin.mainKts.Import
import org.jetbrains.kotlin.mainKts.MainKtsConfigurator
import taboolib.common.reflect.Reflex
import taboolib.common.reflect.Reflex.Companion.getProperty
... | 0 | Kotlin | 0 | 0 | 36a183814952fe8ebff0ff55f7e323bb9d5cb984 | 2,024 | GlaiKit | Creative Commons Zero v1.0 Universal |
ontrack-extension-github/src/main/java/net/nemerosa/ontrack/extension/github/ingestion/ui/GitHubIngestionHookPayloadsUserMenuExtension.kt | nemerosa | 19,351,480 | false | {"Kotlin": 9309646, "JavaScript": 3062605, "Java": 1043391, "HTML": 507221, "Groovy": 372843, "CSS": 137546, "Less": 35335, "Dockerfile": 6298, "Shell": 5086} | package net.nemerosa.ontrack.extension.github.ingestion.ui
import net.nemerosa.ontrack.extension.api.UserMenuExtension
import net.nemerosa.ontrack.extension.api.UserMenuExtensionGroups
import net.nemerosa.ontrack.extension.github.GitHubExtensionFeature
import net.nemerosa.ontrack.extension.support.AbstractExtension
im... | 44 | Kotlin | 25 | 96 | 759f17484c9b507204e5a89524e07df871697e74 | 1,100 | ontrack | MIT License |
feature-ledger-impl/src/main/java/io/novafoundation/nova/feature_ledger_impl/presentation/account/common/selectLedger/SelectLedgerAdapter.kt | novasamatech | 415,834,480 | false | {"Kotlin": 7667438, "Java": 14723, "JavaScript": 425} | package io.novafoundation.nova.feature_ledger_impl.presentation.account.common.selectLedger
import android.view.View
import android.view.ViewGroup
import androidx.recyclerview.widget.DiffUtil
import io.novafoundation.nova.common.list.BaseListAdapter
import io.novafoundation.nova.common.list.BaseViewHolder
import io.no... | 13 | Kotlin | 6 | 9 | dea9f1144c1cbba1d876a9bb753f8541da38ebe0 | 2,498 | nova-wallet-android | Apache License 2.0 |
app/src/main/java/net/frozendevelopment/frozenvault/data/AppDatabase.kt | frozenjava | 253,601,063 | false | null | package net.frozendevelopment.frozenvault.data
import android.content.Context
import androidx.room.Database
import androidx.room.Room
import androidx.room.RoomDatabase
import androidx.room.TypeConverters
import net.frozendevelopment.frozenvault.data.converters.DateConverter
import net.frozendevelopment.frozenvault.dat... | 3 | Kotlin | 2 | 2 | e5c2b4b4f82f825d53b5834139ab45812bb9dc03 | 1,833 | FrozenVault | MIT License |
src/main/kotlin/me/ddivad/judgebot/util/TimerUtils.kt | the-programmers-hangout | 299,355,943 | false | null | package me.ddivad.judgebot.util
import com.gitlab.kordlib.core.entity.Member
import com.gitlab.kordlib.core.entity.Role
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.Job
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch
suspend fun applyRoleWithTimer(member: Member, role: Role, millis... | 0 | null | 3 | 9 | 31878633fab250a1c72a3fe34d83d2ac14bd1cab | 465 | JudgeBot | MIT License |
jetbrains-ultimate/tst/software/aws/toolkits/jetbrains/datagrip/actions/AddSecretsManagerConnectionTest.kt | JetBrains | 223,485,227 | true | {"Gradle Kotlin DSL": 21, "Markdown": 16, "Java Properties": 2, "Shell": 1, "Text": 12, "Ignore List": 3, "Batchfile": 1, "Git Attributes": 1, "EditorConfig": 3, "YAML": 28, "XML": 96, "Kotlin": 1102, "JSON": 54, "Java": 9, "SVG": 64, "TOML": 1, "INI": 1, "CODEOWNERS": 1, "Maven POM": 4, "Dockerfile": 14, "JavaScript":... | // Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package software.aws.toolkits.jetbrains.datagrip.actions
import com.intellij.database.autoconfig.DataSourceRegistry
import com.intellij.testFramework.ProjectRule
import org.assertj.core.api.Assertions.ass... | 6 | Kotlin | 4 | 9 | ccee3307fe58ad48f93cd780d4378c336ee20548 | 2,890 | aws-toolkit-jetbrains | Apache License 2.0 |
app/src/main/java/ca/on/hojat/gamenews/core/urlopeners/CustomTabUrlOpener.kt | hojat72elect | 574,228,468 | false | null | package ca.on.hojat.gamenews.core.urlopeners
import android.content.Context
import android.net.Uri
import androidx.annotation.ColorRes
import androidx.browser.customtabs.CustomTabColorSchemeParams
import androidx.browser.customtabs.CustomTabsIntent
import ca.on.hojat.gamenews.R
import ca.on.hojat.gamenews.presentation... | 0 | null | 8 | 4 | b1c07551e90790ee3d273bc4c0ad3a5f97f71202 | 3,283 | GameHub | MIT License |
app/src/main/java/com/suqir/wasaischedule/ui/schedule_manage/ScheduleManageViewModel.kt | suqir | 287,276,130 | true | {"Kotlin": 726821} | package com.suqir.wasaischedule.ui.schedule_manage
import android.app.Application
import androidx.lifecycle.AndroidViewModel
import com.suqir.wasaischedule.logic.bean.AppWidgetBean
import com.suqir.wasaischedule.logic.bean.CourseBaseBean
import com.suqir.wasaischedule.logic.bean.TableBean
import com.suqir.wasaischedul... | 0 | Kotlin | 0 | 0 | 533f1a36067dbb14dca8d694d4fa86cd021ac6ac | 1,673 | WaSaiSchedule | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.