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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
libraries/tools/kotlin-gradle-plugin/src/common/kotlin/org/jetbrains/kotlin/gradle/plugin/mpp/compilationImpl/factory/KotlinCompilerOptionsFactories.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.gradle.plugin.mpp.compilationImpl.factory
import org.jetbrains.kotlin.gradle.dsl... | 182 | null | 5771 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 4,476 | kotlin | Apache License 2.0 |
src/main/kotlin/com/github/chicoferreira/stockchecker/parser/impl/PCDIGAWebsiteParser.kt | chicoferreira | 316,788,197 | false | null | package com.github.chicoferreira.stockchecker.parser.impl
import com.github.chicoferreira.stockchecker.StockCheckResult
import com.github.chicoferreira.stockchecker.parser.WebsiteParser
import com.github.chicoferreira.stockchecker.parser.property.ProductProperties
import com.github.chicoferreira.stockchecker.util.Pric... | 7 | null | 2 | 5 | b735ba7b59dad55e2397c1e3a1f2fd3c605af498 | 1,721 | stock-checker | MIT License |
app/src/main/java/com/fransisco/catalogmoviekotlin/data/network/ApiHelper.kt | siscofran999 | 161,125,489 | false | null | package com.fransisco.catalogmoviekotlin.data.network
import com.fransisco.catalogmoviekotlin.data.model.MovieResponse
import io.reactivex.Single
interface ApiHelper {
fun getMovieNowPlayingApiCall(): Single<MovieResponse>
fun getMovieUpcomingApiCall(): Single<MovieResponse>
} | 0 | Kotlin | 0 | 1 | 29d9962e8bc0dab5dec56de8fc1944e21a7da5fe | 289 | movie | Apache License 2.0 |
editor/src/main/com/mbrlabs/mundus/editor/tools/Tool.kt | JamesTKhan | 455,272,467 | false | null | /*
* Copyright (c) 2016. See AUTHORS file.
*
* 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 o... | 7 | Java | 40 | 94 | d196adb1853561aa80f68c57bcaf2a24948aa2b7 | 1,589 | Mundus | Apache License 2.0 |
subprojects/gradle/qapps/src/main/kotlin/com/avito/plugin/QAppsUploadAction.kt | ussernamenikita | 344,157,673 | true | {"Kotlin": 2360982, "Python": 14063, "Shell": 13206, "Dockerfile": 7097, "Makefile": 35} | package com.avito.plugin
import com.avito.http.RetryInterceptor
import com.avito.utils.logging.CILogger
import com.google.gson.GsonBuilder
import okhttp3.MultipartBody
import okhttp3.OkHttpClient
import okhttp3.RequestBody
import okhttp3.logging.HttpLoggingInterceptor
import org.funktionale.tries.Try
import retrofit2.... | 0 | Kotlin | 1 | 0 | b0513404cc36196fb87ddadd1894b9015beac952 | 3,196 | avito-android | MIT License |
kotest-property/src/commonMain/kotlin/io/kotest/property/arbitrary/arbitraries.kt | sw-samuraj | 234,562,169 | true | {"Kotlin": 1832333, "JavaScript": 457, "HTML": 423, "Java": 153, "Shell": 125} | package io.kotest.property.arbitrary
import io.kotest.property.Arbitrary
import io.kotest.property.map
import kotlin.random.Random
/**
* Returns an [Arbitrary] whose value is generated from the given function.
*/
inline fun <T> Arbitrary.Companion.create(
iterations: Int,
crossinline fn: () -> T
): Arbitrary<... | 0 | null | 0 | 0 | 068148734769f534223be89673639f46e8430ab4 | 808 | kotlintest | Apache License 2.0 |
src/main/kotlin/day13/Day13.kt | TheSench | 572,930,570 | false | {"Kotlin": 128505} | package day13
import groupByBlanks
import mapGroups
import runDay
fun main() {
fun part1(input: List<String>) = input.groupByBlanks()
.mapGroups { it.toPacket() }
.mapIndexed { index, packets ->
(index + 1) to packets.first().compareTo(packets.last())
}.filter { (_, comparison)... | 0 | Kotlin | 0 | 0 | c3e421d75bc2cd7a4f55979fdfd317f08f6be4eb | 3,192 | advent-of-code-2022 | Apache License 2.0 |
app/src/main/kotlin/dev/aaa1115910/bv/screen/user/FollowScreen.kt | aaa1115910 | 571,702,700 | false | {"Kotlin": 1537138} | package dev.aaa1115910.bv.screen.user
import androidx.compose.animation.core.animateFloatAsState
import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.f... | 27 | Kotlin | 95 | 999 | e93863f4f266485e16e1768fcea6e6b9ad0b276b | 8,298 | bv | MIT License |
engine/src/main/kotlin/kotli/engine/DefaultTemplateContext.kt | kotlitecture | 741,006,904 | false | null | package kotli.engine
import kotli.engine.extensions.path
import kotli.engine.model.Feature
import kotli.engine.model.Layer
import kotli.engine.template.FileRule
import kotli.engine.template.FileRules
import org.slf4j.LoggerFactory
import java.util.concurrent.ConcurrentHashMap
import java.util.concurrent.CopyOnWriteArr... | 1 | null | 0 | 1 | abba606fd4505e3bf1019765a74ccb808738c130 | 2,921 | kotli-engine | MIT License |
HTTPShortcuts/app/src/main/kotlin/ch/rmy/android/http_shortcuts/variables/types/NumberType.kt | 2219160052 | 270,527,875 | false | {"Markdown": 3, "Gradle Kotlin DSL": 2, "INI": 1, "Shell": 1, "Ignore List": 2, "Batchfile": 1, "Gradle": 2, "Kotlin": 286, "Java Properties": 1, "Proguard": 1, "XML": 745, "Text": 13, "Java": 1, "HTML": 2, "CSS": 3, "JavaScript": 1} | package ch.rmy.android.http_shortcuts.variables.types
import android.content.Context
import android.text.InputType
import ch.rmy.android.http_shortcuts.data.Commons
import ch.rmy.android.http_shortcuts.data.models.Variable
import ch.rmy.android.http_shortcuts.extensions.mapIf
import io.reactivex.Single
internal class... | 1 | null | 1 | 1 | 427c4bc35f69d871145c11661839048e6b00eac1 | 1,248 | HTTP-Shortcuts | MIT License |
kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/cloudassembly/schema/AssemblyManifest.kt | cloudshiftinc | 667,063,030 | false | {"Kotlin": 149148378} | @file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package io.cloudshiftdev.awscdk.cloudassembly.schema
import io.cloudshiftdev.awscdk.common.CdkDslMarker
import io.cloudshiftdev.awscdk.common.... | 4 | Kotlin | 0 | 4 | eb3eef728b34da593a3e55dc423d4f5fa3668e9c | 8,145 | kotlin-cdk-wrapper | Apache License 2.0 |
vck-openid/src/commonTest/kotlin/at/asitplus/wallet/lib/oidc/DummyCredentialDataProvider.kt | a-sit-plus | 602,578,639 | false | {"Kotlin": 1076316} | package at.asitplus.wallet.lib.oidc
import at.asitplus.KmmResult
import at.asitplus.catching
import at.asitplus.signum.indispensable.CryptoPublicKey
import at.asitplus.wallet.eupid.EuPidCredential
import at.asitplus.wallet.eupid.EuPidScheme
import at.asitplus.wallet.lib.agent.ClaimToBeIssued
import at.asitplus.wallet.... | 23 | Kotlin | 1 | 22 | 6f29a2ba84aceda63026afcfc8fd6cc0d8ccbb00 | 9,559 | vck | Apache License 2.0 |
back/booking-hotel/src/main/kotlin/com/tcc/bookinghotel/domain/usecase/CreateService.kt | marcelop3251 | 485,967,635 | false | null | package com.tcc.bookinghotel.domain.usecase
import com.tcc.bookinghotel.domain.entity.Service
import com.tcc.bookinghotel.domain.repository.ServiceRepository
class CreateService(
val serviceRepository: ServiceRepository
) {
suspend fun execute(service: Service): Service {
return serviceRepository.cre... | 0 | Kotlin | 0 | 0 | 9ad938f00caf6f9ff8edde4439d6f5ac0d940f41 | 340 | booking-hotel | Apache License 2.0 |
clikt/src/commonMain/kotlin/com/github/ajalt/clikt/parameters/options/EagerOption.kt | ajalt | 128,975,548 | false | null | package com.github.ajalt.clikt.parameters.options
import com.github.ajalt.clikt.core.*
import com.github.ajalt.clikt.parsers.FlagOptionParser
import com.github.ajalt.clikt.parsers.OptionParser
/**
* An [Option] with no values that is [finalize]d before other types of options.
*
* @param callback This callback is c... | 18 | null | 112 | 2,125 | 4c6437bbcec237c018cbf74617ac1086b694be19 | 5,102 | clikt | Apache License 2.0 |
app/src/main/java/br/com/douglasmotta/whitelabeltutorial/domain/usercase/di/DomainModule.kt | john-lobo | 397,693,338 | false | null | package br.com.douglasmotta.whitelabeltutorial.domain.usercase.di
import br.com.douglasmotta.whitelabeltutorial.domain.usercase.*
import dagger.Binds
import dagger.Module
import dagger.hilt.InstallIn
import dagger.hilt.android.components.ViewModelComponent
@Module
@InstallIn(ViewModelComponent::class)
interface Domai... | 0 | Kotlin | 0 | 0 | c1a63e0cc33b7ad323b8ef406a8f4bc19b463b9f | 632 | white-label | MIT License |
app/src/main/java/com/example/moviedb/data/remote/response/GetMovieImages.kt | dangquanuet | 127,717,732 | false | {"Kotlin": 277738, "Makefile": 1159} | package com.example.moviedb.data.remote.response
import com.example.moviedb.data.model.Backdrop
import com.example.moviedb.data.model.Poster
import com.squareup.moshi.Json
data class GetMovieImages(
@Json(name = "id") val id: Int? = null,
@Json(name = "backdrops") val backdrops: List<Backdrop?>? = null,
@... | 3 | Kotlin | 93 | 413 | c5031dcfa879243c0ea44d0973153078e568c013 | 396 | The-Movie-DB-Kotlin | Apache License 2.0 |
src/test/kotlin/Test.kt | MushroomMif | 789,811,233 | false | {"Kotlin": 20194} | import com.google.gson.JsonElement
import com.google.gson.JsonObject
import com.google.gson.JsonPrimitive
import com.mojang.serialization.Codec
import com.mojang.serialization.DataResult
import com.mojang.serialization.JsonOps
import com.mojang.serialization.codecs.RecordCodecBuilder
import me.mushroommif.CODEC
import ... | 0 | Kotlin | 0 | 0 | 1723fd497b582c1f1fe5010a8a09d274d66950fa | 5,208 | Kodecs | MIT License |
inngest-test-server/src/main/kotlin/com/inngest/testserver/ImageFromPrompt.kt | inngest | 712,631,978 | false | {"Kotlin": 82773, "Java": 45080, "Makefile": 748, "Nix": 742, "Shell": 514} | package com.inngest.testserver
import com.inngest.*
class ImageFromPrompt : InngestFunction() {
override fun config(builder: InngestFunctionConfigBuilder): InngestFunctionConfigBuilder =
builder
.id("ImageFromPrompt")
.name("Image from Prompt")
.triggerEvent("media/prom... | 7 | Kotlin | 3 | 1 | 0c1f5981d1cd48800c9063f00ad7b1393c158349 | 1,488 | inngest-kt | Apache License 2.0 |
src/main/kotlin/com/intellij/plugin/powershell/lang/lsp/LSPInitMain.kt | ant-druha | 146,094,753 | false | null | /**
* adopted from https://github.com/gtache/intellij-lsp
*/
package com.intellij.plugin.powershell.lang.lsp
import com.intellij.openapi.Disposable
import com.intellij.openapi.application.ApplicationManager
import com.intellij.openapi.components.PersistentStateComponent
import com.intellij.openapi.components.Roaming... | 65 | null | 20 | 72 | 162afd7bc53e2deee8a33c6301ed1fea418ca505 | 5,738 | intellij-powershell | Apache License 2.0 |
sdk/src/main/java/com/rozetkapay/sdk/domain/models/Currency.kt | rozetkapay | 869,498,229 | false | {"Kotlin": 223681} | package com.rozetkapay.sdk.domain.models
internal enum class Currency(
val codes: List<String>,
val symbol: String,
) {
UAH(
codes = listOf("UAH"),
symbol = "₴"
),
USD(
codes = listOf("USD"),
symbol = "$"
),
EUR(
codes = listOf("EUR"),
symbol ... | 0 | Kotlin | 0 | 0 | da2574a3a8a6a9e2f04a2b47a75221c8d4c8faa8 | 1,229 | android-sdk | MIT License |
designer/src/com/android/tools/idea/uibuilder/property/ui/TransformsPanel.kt | JetBrains | 60,701,247 | false | null | /*
* Copyright (C) 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 5 | null | 230 | 948 | 10110983c7e784122d94c7467e9d243aba943bf4 | 9,708 | android | Apache License 2.0 |
core/testdata/typealias/asTypeBoundWithVariance.kt | Kotlin | 21,763,603 | false | null | package _typealias.astypebound
class A
typealias B = A
class C<out T : B>
class D<in T : B> | 372 | Kotlin | 8 | 2,799 | ed6c67bd55ad0211b9be40dda3027340eecd5919 | 93 | dokka | Apache License 2.0 |
src/main/kotlin/com/github/strindberg/emacssearchandcase/actions/search/PreviousReplaceAction.kt | strindberg | 497,232,016 | false | null | package com.github.strindberg.emacssearchandcase.actions.search
import com.github.strindberg.emacssearchandcase.search.PreviousReplaceHandler
import com.intellij.openapi.editor.actionSystem.EditorAction
class PreviousReplaceAction : ReplaceAction, EditorAction(PreviousReplaceHandler(false))
| 0 | Kotlin | 0 | 0 | e0ca848a9808fdad645ae0fa453a3be299d6c7f3 | 294 | emacs-search-and-case | Apache License 2.0 |
app/src/main/java/com/manish/shopnow/fragments/shopping/HomeFragment.kt | Manishshakya6614 | 804,889,000 | false | {"Kotlin": 129931} | package com.manish.shopnow.fragments.shopping
import android.os.Bundle
import android.util.Log
import android.view.View
import android.widget.Toast
import androidx.fragment.app.Fragment
import androidx.fragment.app.viewModels
import androidx.lifecycle.lifecycleScope
import androidx.navigation.fragment.findNavControlle... | 0 | Kotlin | 0 | 0 | 5ecd477e4a4d4ddfdfe0bbfd134e13c0efc07668 | 8,350 | Shop_Now | Apache License 2.0 |
src/main/java/retrofit2/converter/gson/ExtendedGsonConverterFactory.kt | SoftwareAG | 525,378,320 | false | {"Kotlin": 769226} | package retrofit2.converter.gson
import com.google.gson.Gson
import com.google.gson.TypeAdapter
import com.google.gson.reflect.TypeToken
import okhttp3.RequestBody
import okhttp3.ResponseBody
import retrofit2.Converter
import retrofit2.Retrofit
import java.lang.reflect.Type
@Suppress("UNCHECKED_CAST")
class ExtendedG... | 2 | Kotlin | 1 | 3 | 4c09a39aced1c5fb0677eb2a099a2dcda466f4d4 | 1,261 | cumulocity-clients-kotlin | Apache License 2.0 |
kotlinx-coroutines-core/js/src/JSDispatcher.kt | Kotlin | 61,722,736 | false | null | package kotlinx.coroutines
import org.w3c.dom.*
import kotlin.js.Promise
internal actual typealias W3CWindow = Window
internal actual fun w3cSetTimeout(window: W3CWindow, handler: () -> Unit, timeout: Int): Int =
setTimeout(window, handler, timeout)
internal actual fun w3cSetTimeout(handler: () -> Unit, timeout... | 295 | null | 1850 | 13,033 | 6c6df2b850382887462eeaf51f21f58bd982491d | 2,213 | kotlinx.coroutines | Apache License 2.0 |
straight/src/commonMain/kotlin/me/localx/icons/straight/bold/ConciergeBell.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.straight.bold
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Miter
i... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 2,489 | icons | MIT License |
clients/dos/src/main/kotlin/AuthorizationInterceptor.kt | oss-review-toolkit | 107,540,288 | false | {"Kotlin": 5110480, "JavaScript": 333852, "Shell": 127273, "HTML": 98970, "Python": 51191, "Haskell": 30438, "FreeMarker": 27693, "CSS": 27239, "Dockerfile": 19565, "Swift": 12129, "Ruby": 10007, "Roff": 7688, "Vim Snippet": 6802, "Scala": 6656, "Starlark": 3270, "Go": 1909, "C++": 882, "Java": 559, "Rust": 280, "Emacs... | /*
* Copyright (C) 2024 The ORT Project Authors (see <https://github.com/oss-review-toolkit/ort/blob/main/NOTICE>)
*
* 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.a... | 304 | Kotlin | 309 | 1,590 | ed4bccf37bab0620cc47dbfb6bfea8542164725a | 1,779 | ort | Apache License 2.0 |
z2-counter-kotlin-plugin/src/hu/simplexion/z2/counter/kotlin/ir/CounterAnnotationBasedExtension.kt | spxbhuhb | 650,083,608 | false | null | /*
* Copyright © 2022-2023, <NAME> and contributors. Use of this source code is governed by the Apache 2.0 license.
*/
package hu.simplexion.z2.counter.kotlin.ir
import org.jetbrains.kotlin.extensions.AnnotationBasedExtension
import org.jetbrains.kotlin.ir.declarations.IrClass
import org.jetbrains.kotlin.ir.descript... | 0 | Kotlin | 0 | 1 | 3f2152b5e1a6295a1277d9b0d2396872e8bd0478 | 528 | z2-counter | Apache License 2.0 |
src/main/kotlin/starter/Structure.kt | kboduch | 254,468,070 | false | null | package starter
import screeps.api.*
import screeps.api.structures.Structure
fun Structure.isEnergyContainer(): Boolean {
return this.isStructureTypeOf(arrayOf<StructureConstant>(STRUCTURE_CONTAINER, STRUCTURE_STORAGE))
}
fun Structure.isSpawnEnergyContainer(): Boolean {
return this.isStructureTypeOf(arrayOf... | 0 | Kotlin | 0 | 0 | 4562be624093b44c4229a98a6ec36107a4e70de1 | 832 | screeps | MIT License |
inject/src/test/kotlin/fr/xgouchet/elmyr/inject/fixture/KotlinInjectedUnknownAnnotation.kt | xgouchet | 92,030,208 | false | {"Kotlin": 480997, "Java": 23870} | package fr.xgouchet.elmyr.inject.fixture
import org.mockito.Mock
class KotlinInjectedUnknownAnnotation {
@Mock
lateinit var unknownFoo: Foo
fun retrieveFooOrNull(): Foo? {
return if (::unknownFoo.isInitialized) {
unknownFoo
} else {
null
}
}
}
| 6 | Kotlin | 3 | 83 | 0ab6c3a673fd8771e9fc02f0676a3a886992a1ef | 312 | Elmyr | MIT License |
arrow-libs/core/arrow-core/src/main/kotlin/arrow/core/extensions/listk/semialign/ListKSemialign.kt | clojj | 343,913,289 | true | {"Kotlin": 6274993, "SCSS": 78040, "JavaScript": 77812, "HTML": 21200, "Scala": 8073, "Shell": 2474, "Ruby": 83} | package arrow.core.extensions.listk.semialign
import arrow.Kind
import arrow.core.ForListK
import arrow.core.Ior
import arrow.core.ListK
import arrow.core.ListK.Companion
import arrow.core.Option
import arrow.core.Tuple2
import arrow.core.extensions.ListKSemialign
import arrow.typeclasses.Semigroup
import kotlin.Funct... | 0 | null | 0 | 0 | 5eae605bbaeb2b911f69a5bccf3fa45c42578416 | 3,139 | arrow | Apache License 2.0 |
src/main/java/com/github/ai/kpdiff/domain/usecases/ReadPasswordUseCase.kt | aivanovski | 607,687,384 | false | null | package com.github.ai.kpdiff.domain.usecases
import com.github.ai.kpdiff.data.keepass.KeepassDatabaseFactory
import com.github.ai.kpdiff.domain.ErrorHandler
import com.github.ai.kpdiff.domain.Strings.ENTER_A_PASSWORD
import com.github.ai.kpdiff.domain.Strings.ENTER_A_PASSWORD_FOR_FILE
import com.github.ai.kpdiff.domai... | 0 | null | 1 | 4 | 5b4d6ca77629cb63190679b12038c8f8e8a121aa | 2,296 | kp-diff | Apache License 2.0 |
app/src/debug/java/com/pr0gramm/app/DebugApplicationClass.kt | mopsalarm | 30,804,448 | false | {"Kotlin": 1414351, "Shell": 6752, "Python": 1124} | package com.pr0gramm.app
import android.content.Context
import android.os.Debug
import android.os.StrictMode
import androidx.multidex.MultiDex
import com.pr0gramm.app.util.doInBackground
class DebugApplicationClass : ApplicationClass() {
init {
StrictMode.enableDefaults()
if (false) {
... | 39 | Kotlin | 38 | 284 | d6917f3ec16b6664a90a4519843f3d3d4ccae2cf | 972 | Pr0 | MIT License |
android/src/com/android/tools/idea/welcome/wizard/AndroidStudioWelcomeScreenProvider.kt | JetBrains | 60,701,247 | false | null | /*
* Copyright (C) 2014 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 5 | null | 227 | 948 | 10110983c7e784122d94c7467e9d243aba943bf4 | 6,118 | android | Apache License 2.0 |
compiler/testData/codegen/boxInline/anonymousObject/kt19399.kt | JakeWharton | 99,388,807 | false | null | //WITH_RUNTIME
// FILE: 1.kt
class Foo {
var bar = ""
inline fun ifNotBusyPerform(action: (complete: () -> Unit) -> Unit) {
action {
bar += "K"
}
}
fun ifNotBusySayHello() {
ifNotBusyPerform {
bar += "O"
it()
}
}
inline fun i... | 181 | null | 5748 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 637 | kotlin | Apache License 2.0 |
app/src/main/java/com/enact/asa/models/BalanceItem.kt | ASAFINANCIAL | 622,867,265 | false | {"Kotlin": 39083, "Java": 2227} | package com.enact.asa.models
data class BalanceItem(
val accountName: String?,
val accountNumber: String?,
val asaConsumerCode: Int,
val asaFiAccountCode: Int,
val asaFintechCode: Int,
val balance: Double,
val currencyCode: Any,
val dateOpened: String,
val description: String?
) | 0 | Kotlin | 0 | 0 | 6101b4d0c964710a6c290decfcbc62bb3e3cb35a | 316 | AsaPalExample | Apache License 2.0 |
Plugins/VoiceLogger/src/main/kotlin/tw/xserver/plugin/logger/voice/VoiceLogger.kt | IceXinShou | 830,436,296 | false | {"Kotlin": 201062} | package tw.xserver.plugin.logger.voice
import net.dv8tion.jda.api.entities.Guild
import net.dv8tion.jda.api.entities.IMentionable
import net.dv8tion.jda.api.entities.Member
import net.dv8tion.jda.api.entities.channel.concrete.TextChannel
import net.dv8tion.jda.api.entities.channel.concrete.VoiceChannel
import net.dv8t... | 0 | Kotlin | 0 | 1 | 2d8a9f13e5e6036af9aa6409961ac07b2f6654be | 12,713 | XsDiscordBotKt | Apache License 2.0 |
binary-transcoders/src/test/kotlin/com/kamelia/sprinkler/transcoder/binary/decoder/core/DecoderTest.kt | Black-Kamelia | 579,095,832 | false | {"Kotlin": 467429, "Java": 18620} | package com.kamelia.sprinkler.transcoder.binary.decoder.core
import com.kamelia.sprinkler.transcoder.binary.decoder.IntDecoder
import com.kamelia.sprinkler.transcoder.binary.decoder.util.assertDoneAndGet
import com.kamelia.sprinkler.util.byte
import java.io.ByteArrayInputStream
import java.nio.ByteBuffer
import org.ju... | 9 | Kotlin | 0 | 6 | e9be672cd489e7784db2d533b83b72ef9ef4f4d0 | 1,139 | Sprinkler | MIT License |
compiler/src/main/kotlin/com/piotrwalkusz/smartlaw/compiler/template/processor/MapTemplateProcessor.kt | piotrwalkusz1 | 293,285,610 | false | null | package com.piotrwalkusz.smartlaw.compiler.template.processor
import com.piotrwalkusz.smartlaw.compiler.template.processor.context.TemplateProcessorContext
import com.piotrwalkusz.smartlaw.core.model.template.MapTemplate
import com.piotrwalkusz.smartlaw.core.model.template.Template
class MapTemplateProcessor(
... | 0 | Kotlin | 0 | 0 | 235354ac0469d5ba9630b91124f6fcc4481dad34 | 1,083 | SmartLaw | MIT License |
src/main/kotlin/io/github/pr0methean/ochd/texturebase/DyedBlock.kt | Pr0methean | 507,628,226 | false | null | package io.github.pr0methean.ochd.texturebase
import io.github.pr0methean.ochd.LayerListBuilder
import io.github.pr0methean.ochd.TaskPlanningContext
import io.github.pr0methean.ochd.materials.DYES
import io.github.pr0methean.ochd.tasks.AbstractImageTask
import io.github.pr0methean.ochd.tasks.PngOutputTask
import javaf... | 1 | Kotlin | 0 | 5 | 3e8182114f7fe0fb70fcd6fa445c28dc5470a3f5 | 930 | OcHd-KotlinBuild | Apache License 2.0 |
Corona-Warn-App/src/test/java/de/rki/coronawarnapp/risk/storage/internal/RiskCombinatorTest.kt | corona-warn-app | 268,027,139 | false | null | package de.rki.coronawarnapp.risk.storage.internal
import com.google.android.gms.nearby.exposurenotification.ExposureWindow
import de.rki.coronawarnapp.presencetracing.risk.PtRiskLevelResult
import de.rki.coronawarnapp.presencetracing.risk.calculation.PresenceTracingDayRisk
import de.rki.coronawarnapp.risk.EwRiskLevel... | 6 | null | 514 | 2,495 | d3833a212bd4c84e38a1fad23b282836d70ab8d5 | 9,140 | cwa-app-android | Apache License 2.0 |
domain/src/test/java/com/hasegawa/diapp/domain/AddNewsResponsesToRepoUseCaseTest.kt | AranHase | 55,708,682 | false | null | /*
* Copyright 2016 <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 writin... | 6 | Kotlin | 1 | 8 | 80e2c6d345a63ce75a1383f52f08bfb1f0a1535b | 3,289 | PassosDoImpeachment-app | Apache License 2.0 |
runtime/src/main/kotlin/kotlin/native/concurrent/Worker.kt | JetBrains | 58,957,623 | false | null | /*
* Copyright 2010-2018 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 kotlin.native.concurrent
import kotlin.native.internal.ExportForCppRuntime
import kotlin.native.internal.Frozen
import kotlin.native.internal.VolatileLambda
im... | 182 | null | 625 | 7,100 | 9fb0a75ab17e9d8cddd2c3d1802a1cdd83774dfa | 9,803 | kotlin-native | Apache License 2.0 |
Chapter10-dsl/activity10/src/main/kotlin/CarBuilder.kt | TrainingByPackt | 168,300,143 | false | null | class CarBuilder {
var make: String = ""
var features = mutableListOf<String>()
var color: CarColor = CarColor.nopreference
operator fun invoke(block: CarBuilder.() -> Unit): Car {
block()
return build()
}
fun features(block: FeatureBuilder.() -> Unit) {
val featureBuil... | 0 | Kotlin | 2 | 2 | cd4303736bcffb52309defbf3c32c0853ed67b56 | 458 | Complete-Guide-to-Kotlin | MIT License |
src/main/kotlin/space/yaroslav/familybot/executors/eventbased/CustomMessageExecutor.kt | cra | 255,575,962 | true | {"Kotlin": 221078, "TSQL": 67517, "Dockerfile": 296, "Shell": 192} | package space.yaroslav.familybot.executors.eventbased
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch
import org.springframework.stereotype.Component
import org.telegram.telegrambots.meta.api.methods.send.SendMessage
import org.telegram.telegrambots.meta.api.objec... | 0 | Kotlin | 0 | 0 | 3149c15cfbc3eb1bed4c5a0e147df3f22df9378f | 1,594 | familybot | Apache License 2.0 |
src/main/kotlin/com/launchdarkly/intellij/toolwindow/FlagNode.kt | launchdarkly | 344,313,910 | false | null | package com.launchdarkly.intellij.toolwindow
import com.intellij.ide.projectView.PresentationData
import com.intellij.openapi.components.service
import com.intellij.openapi.project.Project
import com.intellij.ui.treeStructure.SimpleNode
import com.launchdarkly.api.model.*
import com.launchdarkly.intellij.FlagStore
imp... | 2 | null | 3 | 3 | e8c08242746176eee3018aaa4764b2bfe37a93e0 | 7,562 | ld-intellij | Apache License 2.0 |
petblocks-bukkit-plugin/petblocks-bukkit-nms-115R1/src/main/java/com/github/shynixn/petblocks/bukkit/logic/business/service/EntityRegistration115R1ServiceImpl.kt | Shynixn | 78,876,167 | false | null | package com.github.shynixn.blockball.bukkit.logic.business.nms.v1_15_R1
import com.github.shynixn.blockball.api.business.enumeration.EntityType
import com.github.shynixn.blockball.api.business.service.EntityRegistrationService
import net.minecraft.server.v1_15_R1.*
/**
* The EntityRegistration114R1ServiceImpl handle... | 22 | Kotlin | 12 | 71 | 730e19e9e70dea1dcdafa3a98f9356b9577565db | 3,677 | PetBlocks | Apache License 2.0 |
layout-inspector/testSrc/com/android/tools/idea/layoutinspector/ShowLayoutInspectorActionTest.kt | JetBrains | 60,701,247 | false | null | /*
* Copyright (C) 2023 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 5 | null | 227 | 948 | 10110983c7e784122d94c7467e9d243aba943bf4 | 6,316 | android | Apache License 2.0 |
frogocoreconsumeapi/src/main/java/com/frogobox/coreapi/movie/model/ConfigurationApiImage.kt | frogobox | 389,577,716 | false | null | package com.frogobox.coreapi.movie.model
import com.google.gson.annotations.SerializedName
/**
* Created by <NAME>
* FrogoBox Inc License
* =========================================
* consumable-code-movie-tmdb-api
* Copyright (C) 26/03/2020.
* All rights reserved
* -----------------------------------------
*... | 0 | Kotlin | 6 | 7 | 1dd90a037f9acb2ba30066f753d35f7b909621a6 | 1,156 | frogo-consume-api | Apache License 2.0 |
petsearch-shared/core/util/src/commonMain/kotlin/com/msa/petsearch/shared/core/util/sharedviewmodel/coroutines/EventsConfiguration.kt | msa1422 | 534,594,528 | false | null | package com.msa.petsearch.shared.core.util.sharedviewmodel.coroutines
import kotlinx.coroutines.channels.BufferOverflow
data class EventsConfiguration(
val replays: Int = 10,
val extraBufferCapacity: Int = 10,
val backPressureStrategy: BufferOverflow = BufferOverflow.DROP_LATEST
)
| 1 | Kotlin | 0 | 11 | 5bac19e4b31e0b8e5327e0504be13adfd4d58733 | 296 | KMM-Arch-PetSearch | MIT License |
app/src/main/java/com/duckduckgo/app/onboarding/ui/OnboardingViewModel.kt | andrey-p | 164,923,819 | false | null | /*
* Copyright (c) 2018 DuckDuckGo
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | 1 | null | 1 | 1 | e4328e68fda04b2e7d874fd0c974311014afe9fe | 1,730 | Android | Apache License 2.0 |
samples/graphics/ultrahdr/src/main/java/com/example/platform/graphics/ultrahdr/display/DisplayingUltraHDRUsing3PLibrary.kt | android | 623,336,962 | false | {"Kotlin": 24828, "Shell": 5812} | /*
* Copyright 2023 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... | 15 | Kotlin | 185 | 977 | 0479d2e8697c5d986d8ac7c135399e408bea78c8 | 9,731 | platform-samples | Apache License 2.0 |
SKIE/skie-gradle/plugin/src/main/kotlin/co/touchlab/skie/plugin/util/DarwinTarget.kt | touchlab | 685,579,240 | false | {"Kotlin": 1366616, "Swift": 25254, "Shell": 763} | package co.touchlab.skie.plugin.util
import org.jetbrains.kotlin.gradle.tasks.FrameworkDescriptor
import org.jetbrains.kotlin.konan.target.KonanTarget
internal data class DarwinTarget(
val konanTarget: KonanTarget,
val targetTriple: TargetTriple,
val sdk: String,
) {
constructor(
konanTarget:... | 8 | Kotlin | 8 | 557 | 8584e39d50e901b93a5fea9c5b91fba11f69ea7e | 2,326 | SKIE | Apache License 2.0 |
app/src/main/java/com/example/afisha/ui/top/MovieTopAdapter.kt | sshiae | 719,299,632 | false | {"Kotlin": 74790} | package com.example.afisha.ui.top
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.example.afisha.base.ui.BasePagingAdapter
import com.example.afisha.databinding.MovieTopListItemBinding
import com.example.afisha.domain.model.Movie
import com.e... | 0 | Kotlin | 0 | 0 | b88fd0aa909e8684a461049fee06302269556b26 | 1,638 | MoviePoster | Apache License 2.0 |
multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/heancms/HeanCms.kt | kevin01523 | 612,636,298 | false | null | package eu.kanade.tachiyomi.multisrc.heancms
import android.app.Application
import android.content.SharedPreferences
import androidx.preference.PreferenceScreen
import androidx.preference.SwitchPreferenceCompat
import eu.kanade.tachiyomi.network.GET
import eu.kanade.tachiyomi.network.POST
import eu.kanade.tachiyomi.so... | 632 | null | 1252 | 9 | 8ca7f06a4fdfbfdd66520a4798c8636274263428 | 25,999 | tachiyomi-extensions | Apache License 2.0 |
src/main/kotlin/dev/monosoul/jooq/settings/Image.kt | monosoul | 497,003,599 | false | null | package dev.monosoul.jooq.settings
import org.gradle.api.tasks.Input
import org.gradle.api.tasks.Optional
data class Image(
@get:Input var name: String = "postgres:14.4-alpine",
@get:Input var envVars: Map<String, String> = mapOf(),
@get:Input var testQuery: String = "SELECT 1",
@get:Input @get:Option... | 2 | Kotlin | 5 | 9 | f3cc5cbaf77e3a2a22c767fee75de4f809cea477 | 647 | jooq-gradle-plugin | Apache License 2.0 |
src/test/java/no/nav/familie/integrasjoner/dokarkiv/DokarkivControllerTest.kt | navikt | 224,182,192 | false | {"Kotlin": 555751, "Java": 39493, "Dockerfile": 204} | package no.nav.familie.integrasjoner.dokarkiv
import ch.qos.logback.classic.Logger
import ch.qos.logback.classic.spi.ILoggingEvent
import com.fasterxml.jackson.module.kotlin.KotlinModule
import no.nav.familie.integrasjoner.OppslagSpringRunnerTest
import no.nav.familie.kontrakter.felles.BrukerIdType
import no.nav.famil... | 9 | Kotlin | 0 | 3 | 9f8acc90db019f87400d1810b581ebe5347c5025 | 19,577 | familie-integrasjoner | MIT License |
src/main/kotlin/com/kishor/kotlin/algo/algorithms/graph/Dijkstras.kt | kishorsutar | 276,212,164 | false | null | package com.kishor.kotlin.algo.algorithms.graph
import java.util.*
class Dijkstras {
fun dijkstrasAlgorithm(start: Int, edges: List<List<List<Int>>>): List<Int> {
val numberOfVertices = edges.size
val minDist = MutableList<Int>(edges.size) { Int.MAX_VALUE }
minDist[start] = 0
va... | 0 | Kotlin | 0 | 0 | 6672d7738b035202ece6f148fde05867f6d4d94c | 1,179 | DS_Algo_Kotlin | MIT License |
2015/kotlin/src/main/kotlin/nl/sanderp/aoc/common/Resources.kt | sanderploegsma | 224,286,922 | false | {"C#": 233770, "Kotlin": 126791, "F#": 110333, "Go": 70654, "Python": 64250, "Scala": 11381, "Swift": 5153, "Elixir": 2770, "Jinja": 1263, "Ruby": 1171} | package nl.sanderp.aoc.common
import java.io.IOException
internal object Resources
/**
* Reads a file from the resources.
* @param fileName the name of the file, relative to the resources root
* @return the contents of the resource
*/
fun readResource(fileName: String) = Resources.javaClass.getResource("/$fileNa... | 0 | C# | 0 | 6 | 8e96dff21c23f08dcf665c68e9f3e60db821c1e5 | 403 | advent-of-code | MIT License |
src/test/kotlin/uk/gov/justice/digital/hmpps/hmppsprisonvisitstestinghelperapi/integration/VisitControllerIntegrationTest.kt | ministryofjustice | 724,574,246 | false | {"Kotlin": 185225, "Dockerfile": 1380, "Shell": 238} | package uk.gov.justice.digital.hmpps.hmppsprisonvisitstestinghelperapi.integration
import org.assertj.core.api.Assertions.assertThat
import org.junit.jupiter.api.AfterEach
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.DisplayName
import org.junit.jupiter.api.Test
import org.springframework.http.... | 5 | Kotlin | 0 | 0 | d4684e057a15241b2191b8a0e1c3357f91f7d2e8 | 9,288 | hmpps-prison-visits-testing-helper-api | MIT License |
src/main/kotlin/uk/gov/justice/digital/hmpps/approvedpremisesapi/config/RedisConfiguration.kt | ministryofjustice | 515,276,548 | false | null | package uk.gov.justice.digital.hmpps.approvedpremisesapi.config
import com.fasterxml.jackson.core.type.TypeReference
import com.fasterxml.jackson.databind.ObjectMapper
import org.springframework.beans.factory.annotation.Value
import org.springframework.boot.autoconfigure.cache.RedisCacheManagerBuilderCustomizer
import... | 30 | null | 2 | 5 | 5b02281acd56772dc5d587f8cd4678929a191ac0 | 8,325 | hmpps-approved-premises-api | MIT License |
app/src/main/java/droiddevelopers254/droidconke/models/SessionTimeModel.kt | droidconKE | 132,411,780 | false | null | package com.android254.droidconke19.models
data class SessionTimeModel(
val sessionHour: String,
val amPm: String
)
| 3 | null | 25 | 21 | 1c82965bf1fb0737ad1420ef4e4f0c96681f18a0 | 133 | droidconKE | MIT License |
src/main/java/org/mapdb/Store.kt | shabanovd | 89,575,963 | false | null | package org.mapdb
/**
* Stores records
*/
interface StoreImmutable {
fun <R> get(recid: Long, serializer: Serializer<R>): R?
fun getAllRecids(): LongIterator
fun getAllRecidsSize():Long {
val iter = getAllRecids()
var c:Long = 0L
while(iter.hasNext()){
iter.nextLon... | 0 | null | 1 | 1 | c5ff8a0388daf3ddef5872a4f3d58a6ebf3e3d06 | 1,334 | mapdb | Apache License 2.0 |
core/src/main/java/com/fightpandemics/core/dagger/module/DataModule.kt | FightPandemics | 261,618,622 | false | null | package com.fightpandemics.core.dagger.module
import com.fightpandemics.core.data.local.AuthTokenLocalDataSource
import com.fightpandemics.core.data.local.AuthTokenLocalDataSourceImpl
import com.fightpandemics.core.data.prefs.FightPandemicsPreferenceDataStore
import com.fightpandemics.core.data.prefs.PreferenceStorage... | 45 | Kotlin | 12 | 14 | c054328e374cc6ffa38881165769bf0d84b417c4 | 2,889 | FightPandemics-android | MIT License |
checks/src/main/java/com/kozaxinan/android/checks/KtDeclarationKt.kt | kozaxinan | 249,517,173 | false | {"Kotlin": 94014} | package com.kozaxinan.android.checks
import com.android.tools.lint.client.api.JavaEvaluator
import com.intellij.psi.PsiMember
import org.jetbrains.kotlin.asJava.LightClassGenerationSupport
import org.jetbrains.kotlin.asJava.elements.KtLightMember
import org.jetbrains.kotlin.descriptors.CallableDescriptor
import org.je... | 1 | Kotlin | 8 | 64 | 44be5497accf3cea91862ee052fa221cb0d2b459 | 3,658 | android-lints | Apache License 2.0 |
app/src/main/java/com/example/androiddevchallenge/MainActivityViewModel.kt | HandFeet | 343,118,543 | 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 | d10eb062f2899946e04e59fb361605c151c38a2c | 1,760 | devchallenge | Apache License 2.0 |
composeApp/src/commonMain/kotlin/features/screen/main/EnterTagScreen.kt | MohammedAlsudani | 776,718,001 | false | {"Kotlin": 40334, "Swift": 594} | package features.screen.main
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout... | 0 | Kotlin | 0 | 0 | 2ff6212dad2f3ffc29410b21e4c4fe63cb33bee1 | 4,072 | Multiplatform-Compose-App | MIT License |
protocol/src/main/kotlin/org/openrs2/protocol/create/downstream/CreateServerOfflineCodec.kt | openrs2 | 315,027,372 | false | null | package org.openrs2.protocol.create.downstream
import org.openrs2.protocol.EmptyPacketCodec
import javax.inject.Singleton
@Singleton
public class CreateServerOfflineCodec : EmptyPacketCodec<CreateResponse.CreateServerOffline>(
packet = CreateResponse.CreateServerOffline,
opcode = 3
)
| 0 | Kotlin | 2 | 8 | 12eba96055ba13e8a8e3ec0ad3be7d93b3dd5b1b | 295 | openrs2 | ISC License |
pages-gradle-plugin/src/main/kotlin/com/hendraanggrian/pages/minimal/MinimalPagesOptions.kt | hendraanggrian | 501,364,144 | false | null | package com.hendraanggrian.pages.minimal
import com.hendraanggrian.pages.PageButton
import com.hendraanggrian.pages.PagesConfigurationDsl
/**
* Minimal theme configuration See [minimal-theme](https://github.com/hendraanggrian/minimal-theme/)
* for more information/.
*/
@PagesConfigurationDsl
interface MinimalPages... | 0 | Kotlin | 0 | 2 | 3788478bf55c6ffd22e4853c278fe79acf90af7e | 2,558 | pages-gradle-plugin | Apache License 2.0 |
app/src/unitTest/kotlin/batect/cli/commands/completion/GenerateShellTabCompletionScriptCommandSpec.kt | batect | 102,647,061 | false | null | /*
Copyright 2017-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
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed t... | 24 | null | 47 | 687 | 67c942241c7d52b057c5268278d6252301c48087 | 7,061 | batect | Apache License 2.0 |
app/src/main/java/com/reot/remindme/Models/DataBase/TaskManager.kt | OthmaneRegragui | 673,755,319 | false | null | import android.annotation.SuppressLint
import android.content.ContentValues
import android.content.Context
import android.database.Cursor
import android.database.sqlite.SQLiteDatabase
import com.reot.remindme.Models.DataBase.OpenOrCreateDataBase
import com.reot.remindme.Models.DataClasses.Task
class TaskManager(conte... | 0 | Kotlin | 0 | 0 | b2d0e51bb519fb535086cb0d2f227f72d52bd2a4 | 2,502 | RemindMe | MIT License |
kotlin/services/glue/src/main/kotlin/com/kotlin/glue/GetJobs.kt | awsdocs | 66,023,605 | false | null | //snippet-sourcedescription:[GetDatabases.kt demonstrates how to get databases.]
//snippet-keyword:[AWS SDK for Kotlin]
//snippet-keyword:[Code Sample]
//snippet-keyword:[AWS Glue]
//snippet-sourcetype:[full-example]
//snippet-sourcedate:[11/04/2021]
//snippet-sourceauthor:[scmacdon AWS]
/*
Copyright Amazon.com, Inc... | 176 | Java | 3443 | 4,877 | 4022c702782e85f6258770b36d8b4b62b49db873 | 1,386 | aws-doc-sdk-examples | Apache License 2.0 |
cform-data-cognito-client/src/main/kotlin/pl/wrzasq/cform/data/cognito/client/config/LambdaResourcesFactory.kt | rafalwrzeszcz-wrzasqpl | 308,744,180 | false | {"Kotlin": 209025} | /**
* This file is part of the pl.wrzasq.cform.
*
* @license http://mit-license.org/ The MIT license
* @copyright 2022 © by <NAME> - Wrzasq.pl.
*/
package pl.wrzasq.cform.data.cognito.client.config
import com.fasterxml.jackson.core.type.TypeReference
import pl.wrzasq.cform.commons.config.BaseLambdaResourcesFacto... | 5 | Kotlin | 0 | 1 | 1bba3b3f56c5016274ad848f903d274a191bfb64 | 1,882 | pl.wrzasq.cform | MIT License |
app/src/main/java/com/apaluk/wsplayer/di/AppModule.kt | apaluk | 576,009,487 | false | null | package com.apaluk.wsplayer.di
import androidx.lifecycle.ProcessLifecycleOwner
import androidx.lifecycle.lifecycleScope
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import kotlinx.coroutines.CoroutineScope
import javax.inject.Qualifier
@Modu... | 0 | Kotlin | 0 | 0 | 42a06541f2860112cbe73cd94ebc90e0072017a9 | 620 | ws-player-android | MIT License |
src/main/kotlin/com/team4099/robot2021/commands/intake/PrepareClimbCommand.kt | team4099 | 302,452,784 | false | null | package com.team4099.robot2021.commands.intake
import com.team4099.lib.logging.Logger
import com.team4099.robot2021.config.Constants
import com.team4099.robot2021.subsystems.Intake
import com.team4099.robot2021.subsystems.Shooter
import edu.wpi.first.wpilibj2.command.CommandBase
class PrepareClimbCommand : CommandBas... | 2 | Kotlin | 0 | 0 | 6ba3f62011f292ca98646dc7c9f86b6dbf1e7357 | 773 | InfiniteRecharge-2021 | MIT License |
app/src/main/java/at/markushi/checkmate/ui/GoalSettingsScreen.kt | markushi | 543,017,728 | false | null | @file:OptIn(ExperimentalMaterial3Api::class)
package at.markushi.checkmate.ui
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import a... | 0 | Kotlin | 0 | 0 | c84d794829b9df2898bc3a10e452ec5e891b11db | 5,282 | checkmate | Apache License 2.0 |
app/src/main/kotlin/dev/aaa1115910/bv/ui/theme/Theme.kt | aaa1115910 | 571,702,700 | false | null | package dev.aaa1115910.bv.ui.theme
import android.app.Activity
import android.os.Build
import androidx.compose.foundation.Indication
import androidx.compose.foundation.IndicationInstance
import androidx.compose.foundation.LocalIndication
import androidx.compose.foundation.interaction.InteractionSource
import androidx.... | 27 | Kotlin | 63 | 655 | 9cb56b133981715d149329200c9f4c43920761e3 | 3,335 | bv | MIT License |
src/main/kotlin/me/fzzyhmstrs/amethyst_core/modifier_util/GcCompat.kt | fzzyhmstrs | 507,177,454 | false | null | package me.fzzyhmstrs.amethyst_core.modifier_util
import me.fzzyhmstrs.fzzy_core.modifier_util.AbstractModifier
import me.fzzyhmstrs.fzzy_core.trinket_util.TrinketChecker
import me.fzzyhmstrs.fzzy_core.trinket_util.TrinketUtil
import me.fzzyhmstrs.gear_core.interfaces.ModifierTracking
import me.fzzyhmstrs.gear_core.mo... | 0 | Kotlin | 1 | 0 | 2322dc4e3b58ca58a88a1dc42358153024508f78 | 2,595 | ac | MIT License |
ui/src/test/kotlin/org/jetbrains/jewel/PainterHintTest.kt | JetBrains | 440,164,967 | false | {"Kotlin": 722792, "Java": 22778} | package org.jetbrains.jewel
import androidx.compose.runtime.CompositionLocalProvider
import androidx.compose.runtime.getValue
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.state.ToggleableState
import org.jetbrains.jewel.painter.PainterHint
import org.jetbrains.jewel.painter.PainterPathHint
impo... | 42 | Kotlin | 15 | 432 | 8ee340226eb8c046cb0a14c6013520aa20f1fb02 | 11,651 | jewel | Apache License 2.0 |
app/src/main/java/com/mmdub/katalogkopipaktib/data/firebase/FirebaseSource.kt | fahmigutawan | 648,655,600 | false | null | package com.mmdub.katalogkopipaktib.data.firebase
import javax.inject.Inject
class FirebaseSource @Inject constructor(
) {
} | 0 | Kotlin | 0 | 0 | 02c7ff52949e3e911f6c705a319f2b294be9bb7c | 127 | Jetpack-KatalogKopiPakTib | MIT License |
android-app/app/src/androidTest/java/org/dit113group3/androidapp/MainMenuActivityTest.kt | DIT113-V22 | 471,134,970 | false | {"Kotlin": 40714, "C++": 7537, "Java": 5308, "GDScript": 829} | package org.dit113group3.androidapp
import androidx.test.core.app.ActivityScenario
import androidx.test.espresso.Espresso.onView
import androidx.test.espresso.action.ViewActions.click
import androidx.test.espresso.assertion.ViewAssertions.matches
import androidx.test.espresso.matcher.ViewMatchers.*
import androidx.tes... | 0 | Kotlin | 0 | 0 | a0459c62a52047e62ffba072c97d41560757c1e1 | 4,719 | group-03 | MIT License |
benchmark/src/main/kotlin/com/skydoves/balloon/benchmark/BaselineProfileGenerator.kt | skydoves | 196,805,860 | false | null | package com.skydoves.balloon.benchmark
import androidx.benchmark.macro.ExperimentalBaselineProfilesApi
import androidx.benchmark.macro.junit4.BaselineProfileRule
import org.junit.Rule
import org.junit.Test
@ExperimentalBaselineProfilesApi
class BaselineProfileGenerator {
@get:Rule
val baselineProfileRule = Baseli... | 6 | Kotlin | 213 | 2,562 | 51690205a8332c434dd1eda0ae0ecf4e22e49023 | 760 | Balloon | Apache License 2.0 |
src/main/kotlin/com/dwolla/resource/businessclassifications/BusinessClassification.kt | Dwolla | 189,449,029 | false | null | package com.dwolla.resource.businessclassifications
import com.dwolla.resource.HalResource
import com.dwolla.resource.Links
data class BusinessClassification(
@JvmField val _links: Links,
@JvmField val _embedded: EmbeddedIndustryClassifications,
@JvmField val id: String,
@JvmField val name: String
) :... | 7 | Kotlin | 5 | 9 | 013d9d5cbf963c85224c0fd9c68f84044046ed17 | 404 | dwolla-v2-kotlin | MIT License |
src/me/anno/input/ActionManager.kt | won21kr | 351,713,352 | true | {"Kotlin": 1983578, "Java": 301507, "C": 75596, "GLSL": 9436} | package me.anno.input
import me.anno.config.DefaultConfig
import me.anno.gpu.GFX.gameTime
import me.anno.gpu.GFX.inFocus
import me.anno.io.utils.StringMap
import me.anno.studio.StudioBase
import me.anno.studio.rems.RemsStudio
import me.anno.ui.base.Panel
import org.apache.logging.log4j.LogManager
object ActionManager... | 0 | null | 0 | 0 | b85295f59ddfa9fc613a384d439fd1b30b06a5a4 | 5,032 | RemsStudio | Apache License 2.0 |
rest-api/internal/weather/api/src/main/kotlin/github/makeitvsolo/kweather/weather/api/datasource/location/operation/RemoveFavourite.kt | makeitvsolo | 743,151,452 | false | {"Kotlin": 294456, "TypeScript": 606, "JavaScript": 469, "HTML": 354} | package github.makeitvsolo.kweather.weather.api.datasource.location.operation
import github.makeitvsolo.kweather.core.error.handling.Result
import github.makeitvsolo.kweather.weather.api.datasource.location.error.RemoveFavouriteError
import java.math.BigDecimal
interface RemoveFavourite {
fun removeFavourite(
... | 1 | Kotlin | 0 | 0 | 2664ab660be3047a27e32b0f56e7cc8da7df13cd | 450 | kweather | MIT License |
kotlin-mui-icons/src/main/generated/mui/icons/material/KeyboardDoubleArrowLeftTwoTone.kt | JetBrains | 93,250,841 | false | null | // Automatically generated - do not modify!
@file:JsModule("@mui/icons-material/KeyboardDoubleArrowLeftTwoTone")
package mui.icons.material
@JsName("default")
external val KeyboardDoubleArrowLeftTwoTone: SvgIconComponent
| 10 | null | 5 | 983 | 7ef1028ba3e0982dc93edcdfa6ee1edb334ddf35 | 224 | kotlin-wrappers | Apache License 2.0 |
app/src/main/java/br/com/otaviolms/tabnews/utils/DateUtils.kt | otaviolms | 650,890,216 | false | null | package br.com.otaviolms.tabnews.utils
import android.content.Context
import br.com.otaviolms.tabnews.R
import java.time.Duration
import java.time.LocalDateTime
import java.time.ZonedDateTime
import java.time.format.DateTimeFormatter
fun calcularHorasPassadas(data: String): Long {
val formato = DateTimeFormatter.... | 0 | Kotlin | 0 | 0 | 67b78bdece3095cba0992f856177157e34fd872d | 1,638 | TabNews-Android | MIT License |
app/src/main/java/com/nsromapa/frenzapp/saytalk/activities/EditProfile.kt | saytoonz | 198,504,153 | false | null | package ca.scooter.talkufy.activities
import android.app.Activity
import android.app.ProgressDialog
import android.content.Context
import android.content.Intent
import android.graphics.Bitmap
import android.graphics.BitmapFactory
import android.net.Uri
import android.os.Bundle
import android.util.Log
import android.vi... | 13 | Java | 6 | 9 | 1f038906591448325d5976622a81283750ea81a4 | 11,589 | SAY-Talk | MIT License |
app/src/main/java/com/wl/accountbook/ui/common/components/CustomDivider.kt | LiuWei339 | 726,117,960 | false | {"Kotlin": 194634} | package com.wl.accountbook.ui.common.components
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxHeight
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.width
import androidx.c... | 0 | Kotlin | 0 | 0 | 724782478f661fb6c07bce01c853d1680bcd5433 | 1,942 | Account-Book | Apache License 2.0 |
app/src/main/java/com/droid47/petpot/base/widgets/anim/ScrollAwareFABBehavior.kt | AndroidKiran | 247,345,176 | false | null | package com.droid47.petpot.base.widgets.anim
import android.content.Context
import android.util.AttributeSet
import android.view.View
import androidx.coordinatorlayout.widget.CoordinatorLayout
import androidx.core.view.ViewCompat
import com.google.android.material.floatingactionbutton.FloatingActionButton
import com.g... | 1 | null | 1 | 2 | 07d9c0c4f0d5bef32d9705f6bb49f938ecc456e3 | 2,176 | PetPot | Apache License 2.0 |
guides/micronaut-oracle-autonomous-db/kotlin/src/test/kotlin/example/micronaut/repository/ThingRepositoryTest.kt | micronaut-projects | 326,986,278 | false | null | /*
* Copyright 2017-2024 original authors
*
* 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 agr... | 209 | null | 31 | 36 | f40e50dc8f68cdb3080cb3802d8082ada9ca6787 | 2,508 | micronaut-guides | Creative Commons Attribution 4.0 International |
app/src/main/java/com/imagefinder/storage/local/repository/image/ImageRepository.kt | maxchn | 310,660,738 | false | null | package com.imagefinder.storage.local.repository.image
import com.imagefinder.domain.entity.ImageItem
import com.imagefinder.storage.local.data.ImageItemDto
import io.reactivex.Observable
interface ImageRepository {
fun getAll(): Observable<List<ImageItem>>
fun upsert(newItem: ImageItemDto)
fun removeAll(... | 0 | Kotlin | 0 | 0 | b31a10a5f1265dfd19769ad2ab98a5e7e7aac17e | 324 | ImageFinder | MIT License |
simplified-ui-accounts/src/main/java/org/nypl/simplified/ui/accounts/ekirjasto/EkirjastoAccountViewModel.kt | NatLibFi | 730,988,035 | false | {"Kotlin": 3589739, "JavaScript": 853788, "Java": 403841, "CSS": 65407, "HTML": 49894, "Shell": 18611, "Ruby": 7554} | package org.nypl.simplified.ui.accounts.ekirjasto
import android.app.Application
import android.content.pm.PackageManager
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import io.reactivex.android.schedulers.AndroidSchedulers
import io.reactivex.... | 1 | Kotlin | 0 | 0 | e4fc752f3cba3427d3822ccae259c57983488e46 | 8,329 | ekirjasto-android-core | Apache License 2.0 |
straight/src/commonMain/kotlin/me/localx/icons/straight/outline/Scale.kt | localhostov | 808,861,591 | false | {"Kotlin": 79430321, "HTML": 331, "CSS": 102} | package me.localx.icons.straight.outline
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.Companion.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Companion.Butt
import androidx.compose.ui.graphics.StrokeJoin.Companion.Mite... | 1 | Kotlin | 0 | 5 | cbd8b510fca0e5e40e95498834f23ec73cc8f245 | 2,971 | icons | MIT License |
compose/ui/ui/src/commonMain/kotlin/androidx/compose/ui/autofill/AutofillManager.kt | androidx | 256,589,781 | false | {"Kotlin": 112114129, "Java": 66594571, "C++": 9132142, "AIDL": 635065, "Python": 325169, "Shell": 194520, "TypeScript": 40647, "HTML": 35176, "Groovy": 27178, "ANTLR": 26700, "Svelte": 20397, "CMake": 15512, "C": 15043, "GLSL": 3842, "Swift": 3153, "JavaScript": 3019} | /*
* Copyright 2024 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 | Kotlin | 1011 | 5,321 | 98b929d303f34d569e9fd8a529f022d398d1024b | 1,679 | androidx | Apache License 2.0 |
app/src/main/java/xyz/hetula/dragonair/weather/WeatherManager.kt | hetula | 185,856,171 | false | null | package xyz.hetula.dragonair.weather
import android.content.Context
import android.util.Log
import com.android.volley.RequestQueue
import com.android.volley.Response
import com.android.volley.VolleyError
import com.android.volley.toolbox.Volley
import xyz.hetula.dragonair.Constants
import xyz.hetula.dragonair.R
import... | 0 | Kotlin | 0 | 0 | 7ce1fba3fcb73621efbbc0d2794e151e83f1da2a | 1,769 | wforweather | Apache License 2.0 |
src/main/kotlin/io/github/rhdunn/ktor/Parameters.kt | rhdunn | 738,613,487 | false | {"Kotlin": 26507, "CSS": 551, "JavaScript": 204} | // Copyright (C) 2024 Reece H. Dunn. SPDX-License-Identifier: Apache-2.0
package io.github.rhdunn.ktor
import io.ktor.http.*
import io.ktor.server.plugins.*
import io.ktor.util.converters.*
import io.ktor.util.reflect.*
@Suppress("NOTHING_TO_INLINE", "unused")
inline fun Parameters.getOrNull(name: String): String? {
... | 0 | Kotlin | 0 | 0 | fc7226f028b72e300106e3a5136ade2e28d73f39 | 1,003 | ktor-template | Apache License 2.0 |
compiler/fir/analysis-tests/testData/resolve/smartcasts/lambdas/smartcastOnLambda.kt | JetBrains | 3,432,266 | false | null | // !DUMP_CFG
fun test(func: (() -> Unit)?) {
if (func != null) {
func()
}
}
| 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 92 | kotlin | Apache License 2.0 |
src/main/kotlin/com/github/kerubistan/kerub/model/dynamic/VirtualStorageBlockDeviceAllocation.kt | kerubistan | 19,528,622 | false | null | package com.github.kerubistan.kerub.model.dynamic
import com.fasterxml.jackson.annotation.JsonIgnore
import com.github.kerubistan.kerub.model.io.VirtualDiskFormat
interface VirtualStorageBlockDeviceAllocation : VirtualStorageAllocation {
@get:JsonIgnore
override val type: VirtualDiskFormat
get() = VirtualDiskForm... | 109 | Kotlin | 4 | 14 | 99cb43c962da46df7a0beb75f2e0c839c6c50bda | 328 | kerub | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.