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
core/src/main/java/me/kwsk/odptlibrary/core/api/OdptTrainApiClient.kt
teracy
115,876,824
false
null
package me.kwsk.odptlibrary.core.api import io.reactivex.Single import me.kwsk.odptlibrary.core.api.train.* import retrofit2.http.GET import retrofit2.http.Headers import retrofit2.http.Query import javax.inject.Inject import javax.inject.Singleton /** * 鉄道API */ @Singleton class OdptTrainApiClient @Inject construc...
0
null
0
5
b3fa9249598148fc9cca0574cb62998e42b538f9
12,812
OdptLibrary
Apache License 2.0
nebulosa-indi-protocol/src/main/kotlin/nebulosa/indi/protocol/DefNumber.kt
tiagohm
568,578,345
false
{"Kotlin": 2712371, "TypeScript": 513759, "HTML": 249483, "JavaScript": 120539, "SCSS": 11332, "Python": 2817, "Makefile": 445}
package nebulosa.indi.protocol import nebulosa.indi.protocol.INDIProtocol.Companion.writeXML import java.io.PrintStream data class DefNumber( override var name: String = "", override var label: String = name, override var value: Double = 0.0, var format: String = "", // TODO: Support sexagesimal forma...
26
Kotlin
2
4
4d398242b1ddf95b48fe95de47a2bcb01f6ff0a6
710
nebulosa
MIT License
src/test/java/de/fraunhofer/aisec/cpg/graph/QueryTest.kt
karthikswarna
339,977,118
true
{"Java": 1253578, "C++": 31052, "Kotlin": 27638, "C": 2181, "CMake": 204}
package de.fraunhofer.aisec.cpg.graph import de.fraunhofer.aisec.cpg.ExperimentalGraph import de.fraunhofer.aisec.cpg.graph.declarations.FunctionDeclaration import de.fraunhofer.aisec.cpg.graph.declarations.ParamVariableDeclaration import de.fraunhofer.aisec.cpg.graph.edge.PropertyEdge import de.fraunhofer.aisec.cpg.g...
0
Java
0
0
c578f6db6693fe0f78f47ff0757b6bb5ae24bac4
6,919
cpg
Apache License 2.0
embrace-test-fakes/src/main/kotlin/io/embrace/android/embracesdk/fakes/injection/FakeMomentsModule.kt
embrace-io
704,537,857
false
{"Kotlin": 2981564, "C": 189341, "Java": 150268, "C++": 13140, "CMake": 4261}
package io.embrace.android.embracesdk.fakes.injection import io.embrace.android.embracesdk.fakes.FakeEventService import io.embrace.android.embracesdk.internal.event.EventService import io.embrace.android.embracesdk.internal.injection.MomentsModule public class FakeMomentsModule( override val eventService: EventS...
20
Kotlin
8
134
896e9aadf568ba527c76ec66f6f440baed29d1ee
366
embrace-android-sdk
Apache License 2.0
app/src/main/java/me/devsaki/hentoid/viewmodels/QueueViewModel.kt
avluis
37,775,708
false
null
package me.devsaki.hentoid.viewmodels import android.app.Application import androidx.lifecycle.AndroidViewModel import androidx.lifecycle.LiveData import androidx.lifecycle.MediatorLiveData import androidx.lifecycle.MutableLiveData import androidx.lifecycle.viewModelScope import androidx.work.ExistingWorkPolicy import...
4
null
85
992
f54df07b79da4147951bc9902ab0dbd70edb50f1
15,461
Hentoid
Apache License 2.0
app/src/main/java/com/joshuatz/nfceinkwriter/Constants.kt
joshuatz
364,138,857
false
null
package com.joshuatz.nfceinkwriter const val PackageName = "com.joshuatz.nfceinkwriter" const val WaveShareUID = "WSDZ10m" // Order matches WS SDK Enum (except off by 1, due to zero-index) // @see https://www.waveshare.com/wiki/Android_SDK_for_NFC-Powered_e-Paper // @see https://github.com/RfidResearchGroup/proxmark...
1
Kotlin
2
8
2fe5b01a48dddd5beba2d96cb858a1b927feb45c
1,364
nfc-epaper-writer
MIT License
src/main/kotlin/com/github/juzraai/cordis/crawler/model/openaire/sygma/Publication.kt
juzraai
14,644,476
false
{"Kotlin": 60620, "HTML": 2201}
package com.github.juzraai.cordis.crawler.model.openaire.sygma import org.simpleframework.xml.* import java.util.* /** * @author <NAME> */ @Default(required = false) data class Publication( @field:ElementList(name = "authors", entry = "author", required = false) var authors: List<String>? = null, @field:Ele...
4
Kotlin
0
1
62bfd6ef3423954782689dccde153518c2ea4245
1,029
cordis-projects-crawler
MIT License
annotation/annotation/src/jvmMain/kotlin/androidx/annotation/WorkerThread.jvm.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 (C) 2015 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...
29
Kotlin
778
5,321
98b929d303f34d569e9fd8a529f022d398d1024b
1,320
androidx
Apache License 2.0
app/src/main/kotlin/edu/stanford/bdh/engagehf/bluetooth/data/mapper/BluetoothUiStateMapper.kt
StanfordSpezi
787,513,636
false
{"Kotlin": 333238, "Ruby": 1659, "Shell": 212}
package edu.stanford.spezi.app.bluetooth.data.mapper import edu.stanford.spezi.app.bluetooth.data.models.BluetoothUiState import edu.stanford.spezi.app.bluetooth.data.models.DeviceUiModel import edu.stanford.spezi.core.bluetooth.data.model.BLEServiceState import edu.stanford.spezi.core.bluetooth.data.model.Measurement...
8
Kotlin
1
7
b77e6eacbcb464bf454f3f566642d4f3c6e0b3d3
1,430
SpeziKt
MIT License
decoder/wasm/src/commonMain/kotlin/io/github/charlietap/chasm/decoder/section/export/ExportSectionDecoder.kt
CharlieTap
743,980,037
false
{"Kotlin": 898736, "WebAssembly": 7119}
package io.github.charlietap.chasm.decoder.section.export import com.github.michaelbull.result.Result import io.github.charlietap.chasm.error.WasmDecodeError import io.github.charlietap.chasm.reader.WasmBinaryReader import io.github.charlietap.chasm.section.ExportSection import io.github.charlietap.chasm.section.Secti...
2
Kotlin
1
16
1566c1b504b4e0a31ae5008f5ada463c47de71c5
439
chasm
Apache License 2.0
orientdb3/src/test/kotlin/com/arcadeanalytics/provider/orient3/OrientDB3DataSourceGraphProviderIntTest.kt
ArcadeData
170,271,274
false
null
/*- * #%L * Arcade Connectors * %% * Copyright (C) 2018 - 2019 ArcadeAnalytics * %% * 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....
9
null
4
6
731917fa365abc6112c70d464baa40841382e0f8
1,803
arcade-connectors
Apache License 2.0
project-system-gradle/testSrc/com/android/tools/idea/gradle/project/build/output/JavaLanguageLevelDeprecationOutputParserTest.kt
JetBrains
60,701,247
false
{"Kotlin": 53054415, "Java": 43443054, "Starlark": 1332164, "HTML": 1218044, "C++": 507658, "Python": 191041, "C": 71660, "Lex": 70302, "NSIS": 58238, "AIDL": 35382, "Shell": 29838, "CMake": 27103, "JavaScript": 18437, "Smali": 7580, "Batchfile": 7357, "RenderScript": 4411, "Clean": 3522, "Makefile": 2495, "IDL": 19}
/* * Copyright (C) 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 app...
5
Kotlin
227
948
10110983c7e784122d94c7467e9d243aba943bf4
8,872
android
Apache License 2.0
app/src/main/java/xyz/teamgravity/swipetodeleteedit/MainViewModel.kt
raheemadamboev
767,473,692
false
{"Kotlin": 18500}
package xyz.teamgravity.swipetodeleteedit import androidx.lifecycle.ViewModel import kotlinx.coroutines.flow.MutableStateFlow import kotlinx.coroutines.flow.StateFlow import kotlinx.coroutines.flow.asStateFlow import kotlinx.coroutines.flow.update class MainViewModel : ViewModel() { private val _names = MutableS...
0
Kotlin
0
0
f2bbfa293e44d01a0732dbb0e020027042d892e9
808
swipe-to-delete-edit
Apache License 2.0
android/src/main/kotlin/fr/pointcheval/native_crypto/Cipher.kt
Overlord21
464,856,812
true
{"Dart": 51754, "Swift": 16236, "Kotlin": 12906, "Ruby": 4346, "Objective-C": 717}
package fr.pointcheval.native_crypto import java.lang.Exception import javax.crypto.Cipher import javax.crypto.SecretKey import javax.crypto.spec.IvParameterSpec import javax.crypto.spec.SecretKeySpec enum class CipherAlgorithm(val spec: String) { AES("AES"), } enum class BlockCipherMode(val instance: String) { ...
0
null
0
0
9790be4a5c44504dba347ff41b1f65c4f67642dc
2,838
native-crypto-flutter
MIT License
openapi-processor-core/src/testInt/kotlin/io/openapiprocessor/core/ProcessorTestSets.kt
openapi-processor
547,758,502
false
{"Kotlin": 739922, "Groovy": 216443, "Java": 108438, "ANTLR": 2555, "TypeScript": 1166}
/* * Copyright 2022 https://github.com/openapi-processor/openapi-processor-core * PDX-License-Identifier: Apache-2.0 */ package io.openapiprocessor.core import io.openapiprocessor.test.* val ALL_30: List<TestParams> = listOf( test30_DR("annotation-mapping-class"), test30_DR("bean-validation"), test30_...
9
Kotlin
3
2
ffbb239a493a96cb2f291365fd974fd6bfcf56a0
6,170
openapi-processor-base
Apache License 2.0
adaptive-core/src/commonMain/kotlin/fun/adaptive/foundation/testing/entry.kt
spxbhuhb
788,711,010
false
{"Kotlin": 2431816, "Java": 25628, "HTML": 8024, "JavaScript": 3880, "Shell": 687}
/* * Copyright © 2020-2024, <NAME> and contributors. Use of this source code is governed by the Apache 2.0 license. */ package `fun`.adaptive.foundation.testing import `fun`.adaptive.backend.BackendAdapter import `fun`.adaptive.foundation.Adaptive import `fun`.adaptive.foundation.AdaptiveAdapter import `fun`.adaptiv...
34
Kotlin
0
3
590e01b857c9c759a69ece62f11ed8822fa4ee59
959
adaptive
Apache License 2.0
app/src/main/java/com/example/careerboast/domain/use_cases/GetInterviewsListUseCase.kt
Ev4esem
771,869,351
false
{"Kotlin": 90779}
package com.example.careerboast.domain.use_cases import com.example.careerboast.domain.model.interviews.Question import com.example.careerboast.domain.repositories.interview.InterviewRepository class GetInterviewsListUseCase(val repository : InterviewRepository) { }
0
Kotlin
0
0
1239403f5ae15e7ab81e3e48a01b083b73284582
270
CareerBoast
Apache License 2.0
clients/fossid-webapp/src/main/kotlin/model/Scan.kt
oss-review-toolkit
107,540,288
false
null
/* * Copyright (C) 2020 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
null
309
873
0546d450d3082cff0c685897bef4c23e56a3d73a
2,036
ort
Apache License 2.0
marketkit/src/main/java/io/horizontalsystems/marketkit/providers/HsProvider.kt
horizontalsystems
408,718,031
false
null
package io.horizontalsystems.marketkit.providers import com.google.gson.annotations.SerializedName import io.horizontalsystems.marketkit.models.* import io.reactivex.Single import retrofit2.Response import retrofit2.http.Body import retrofit2.http.Field import retrofit2.http.FormUrlEncoded import retrofit2.http.GET im...
1
null
24
9
872cb042bdd6eb9063ecb3a2e3954f3954b501bf
25,066
market-kit-android
MIT License
core-verification/src/main/kotlin/io/vibrantnet/ryp/core/verification/configuration/SecurityConfig.kt
nilscodes
769,729,247
false
{"Kotlin": 901616, "TypeScript": 887764, "Dockerfile": 8250, "Shell": 7536, "JavaScript": 1867}
package io.vibrantnet.ryp.core.subscription.configuration import io.vibrantnet.ryp.core.subscription.CoreSubscriptionConfiguration import org.springframework.context.annotation.Bean import org.springframework.context.annotation.Configuration import org.springframework.security.config.annotation.web.reactive.EnableWebF...
0
Kotlin
0
0
a03ddb79eb7a71d0c440584c758cb5600c29c15e
2,452
reach-your-people
Apache License 2.0
core-verification/src/main/kotlin/io/vibrantnet/ryp/core/verification/configuration/SecurityConfig.kt
nilscodes
769,729,247
false
{"Kotlin": 901616, "TypeScript": 887764, "Dockerfile": 8250, "Shell": 7536, "JavaScript": 1867}
package io.vibrantnet.ryp.core.subscription.configuration import io.vibrantnet.ryp.core.subscription.CoreSubscriptionConfiguration import org.springframework.context.annotation.Bean import org.springframework.context.annotation.Configuration import org.springframework.security.config.annotation.web.reactive.EnableWebF...
0
Kotlin
0
0
a03ddb79eb7a71d0c440584c758cb5600c29c15e
2,452
reach-your-people
Apache License 2.0
apps/etterlatte-testdata/src/main/kotlin/no/nav/etterlatte/testdata/dolly/Model.kt
navikt
417,041,535
false
{"Kotlin": 5821854, "TypeScript": 1522353, "Handlebars": 24856, "Shell": 12214, "HTML": 1734, "Dockerfile": 676, "CSS": 598, "PLpgSQL": 556}
package no.nav.etterlatte.testdata.dolly import com.fasterxml.jackson.annotation.JsonIgnoreProperties @JsonIgnoreProperties(ignoreUnknown = true) data class Bruker(val brukerId: String?, val brukerType: String?, val navIdent: String?, val epost: String?) @JsonIgnoreProperties(ignoreUnknown = true) data class Gruppe(...
8
Kotlin
0
6
6d96a550ab22a95e2964ff6cb7dc14b028963dcf
2,308
pensjon-etterlatte-saksbehandling
MIT License
apps/etterlatte-testdata/src/main/kotlin/no/nav/etterlatte/testdata/dolly/Model.kt
navikt
417,041,535
false
{"Kotlin": 5821854, "TypeScript": 1522353, "Handlebars": 24856, "Shell": 12214, "HTML": 1734, "Dockerfile": 676, "CSS": 598, "PLpgSQL": 556}
package no.nav.etterlatte.testdata.dolly import com.fasterxml.jackson.annotation.JsonIgnoreProperties @JsonIgnoreProperties(ignoreUnknown = true) data class Bruker(val brukerId: String?, val brukerType: String?, val navIdent: String?, val epost: String?) @JsonIgnoreProperties(ignoreUnknown = true) data class Gruppe(...
8
Kotlin
0
6
6d96a550ab22a95e2964ff6cb7dc14b028963dcf
2,308
pensjon-etterlatte-saksbehandling
MIT License
3ds2/src/main/java/com/adyen/checkout/adyen3ds2/Adyen3DS2Component.kt
Adyen
91,104,663
false
null
/* * Copyright (c) 2019 <NAME>. * * This file is open source and available under the MIT license. See the LICENSE file for more info. * * Created by caiof on 7/5/2019. */ package com.adyen.checkout.adyen3ds2 import android.app.Activity import android.content.Intent import androidx.lifecycle.LifecycleOwner import...
28
Kotlin
66
96
1f000e27e07467f3a30bb3a786a43de62be003b2
3,174
adyen-android
MIT License
android/src/main/java/com/reactnativeonespanorchestration/utils/Status.kt
arthuraraujo
514,345,590
false
null
package com.reactnativeonespanorchestration.utils enum class Status { DEFAULT, LOADING, SUCCESS, ERROR }
0
Kotlin
0
0
0fab31050bc99f96710551cf6a34f67254e94513
122
rn
MIT License
testapp/src/test/java/uk/ac/bmth/aprog/testapp/PlainCoroutineTest.kt
LouisCAD
112,741,364
true
{"Kotlin": 66470}
package nl.adaptivity.android.test import com.esotericsoftware.kryo.Kryo import com.esotericsoftware.kryo.io.Input import com.esotericsoftware.kryo.io.Output import kotlinx.coroutines.experimental.* import nl.adaptivity.android.kryo.kryoAndroid import org.junit.Test import org.junit.Assert.* import org.objenesis.stra...
0
Kotlin
0
1
8ad2156808b689fe1755e0c7214ae9e4e9afda88
2,174
android-coroutines
Apache License 2.0
subprojects/persistence/src/main/kotlin/com/gradle/dependencymanagement/persistence/BeansRepository.kt
britter
215,755,504
false
null
package com.gradle.dependencymanagement.persistence import com.gradle.dependencymanagement.model.Beans interface BeansRepository { fun getAll(): List<Beans> fun save(beans: Beans) }
0
Kotlin
0
0
3ad7bdf26198bcf64968e9d63e792e72d501c060
194
dependency-management-with-gradle
Apache License 2.0
src/main/kotlin/com/ahmed/schedulebot/models/DayInSchedule.kt
Ahmed-no-oil
637,725,671
false
null
package com.ahmed.schedulebot.models import java.time.DayOfWeek import java.time.LocalTime class DayInSchedule() { var day: DayOfWeek = DayOfWeek.MONDAY var timeComment: String = "" var timeData: LocalTime = LocalTime.MIN var isGoingToStream: Boolean = false var comment: String = "" var autho...
0
Kotlin
0
0
3c84ffd6a98058fda0b63ba51d75f75e1dbadbf0
600
Schedule-Bot
MIT No Attribution
libraries/stdlib/src/kotlin/properties/Properties.kt
chirino
3,596,099
false
null
package kotlin.properties import java.util.HashMap import java.util.ArrayList public class ChangeEvent(val source: Any, val name: String, val oldValue: Any?, val newValue: Any?) { var propogationId: Any? = null public fun toString() : String = "ChangeEvent($name, $oldValue, $newValue)" } public trait Change...
2
null
28
71
ac434d48525a0e5b57c66b9f61b388ccf3d898b5
3,343
kotlin
Apache License 2.0
core/src/main/kotlin/com/exactpro/th2/read/db/impl/grpc/ExecuteBodyData.kt
th2-net
522,950,261
false
{"Kotlin": 211275, "Python": 4581, "Dockerfile": 115}
/* * Copyright 2023 Exactpro (Exactpro Systems Limited) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by appl...
1
Kotlin
0
1
c21fc32b2c750cfedeef6869c2e06b9af02df201
1,292
th2-read-db
Apache License 2.0
kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/ec2/AclPortRange.kt
cloudshiftinc
667,063,030
false
{"Kotlin": 142794926}
@file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION") package io.cloudshiftdev.awscdk.services.ec2 import io.cloudshiftdev.awscdk.common.CdkDslMarker import io.cloudshiftdev.awscdk.common.CdkObjec...
1
Kotlin
0
4
e15f2e27e08adeb755ad44b2424c195521a6f5ba
3,425
kotlin-cdk-wrapper
Apache License 2.0
backend/api/src/main/kotlin/io/tolgee/api/v2/controllers/V2LanguagesController.kt
tolgee
303,766,501
false
{"TypeScript": 2960870, "Kotlin": 2463774, "JavaScript": 19327, "Shell": 12678, "Dockerfile": 9468, "PLpgSQL": 663, "HTML": 439}
/* * Copyright (c) 2020. Tolgee */ package io.tolgee.api.v2.controllers import io.swagger.v3.oas.annotations.Operation import io.swagger.v3.oas.annotations.tags.Tag import io.tolgee.activity.RequestActivity import io.tolgee.activity.data.ActivityType import io.tolgee.component.LanguageValidator import io.tolgee.con...
170
TypeScript
96
1,837
6e01eec3a19c151a6e0aca49e187e2d0deef3082
5,200
tolgee-platform
Apache License 2.0
libs/hiltLib041/src/main/java/hilt/benchmark/hiltLib041/HiltLib041ViewModel.kt
RBusarow
415,108,675
false
null
package hilt.benchmark.hiltLib041 import androidx.lifecycle.ViewModel import dagger.hilt.android.lifecycle.HiltViewModel import javax.inject.Inject @HiltViewModel class HiltLib041ViewModel @Inject constructor() : ViewModel()
0
Kotlin
0
1
b271faeb36f8f57977dd2b43d276098e1932f4eb
227
tangle-benchmark-project
Apache License 2.0
src/main/kotlin/org/move/ide/utils/FunctionSignature.kt
pontem-network
279,299,159
false
null
/* * Use of this source code is governed by the MIT license that can be * found in the LICENSE file. */ package org.move.ide.utils import com.intellij.openapi.util.Key import com.intellij.psi.util.CachedValue import com.intellij.psi.util.CachedValueProvider import org.move.lang.core.psi.* import org.move.lang.core...
4
null
29
69
51a5703d064a4b016ff2a19c2f00fe8f8407d473
3,915
intellij-move
MIT License
compiler/resolution/src/org/jetbrains/kotlin/resolve/scopes/LexicalScopeImpl.kt
JakeWharton
99,388,807
false
null
/* * Copyright 2010-2016 JetBrains s.r.o. * * 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...
181
null
5748
83
4383335168338df9bbbe2a63cb213a68d0858104
2,490
kotlin
Apache License 2.0
cams-component-network/src/main/java/com/linwei/cams/component/network/utils/LaunchBuilder.kt
WeiShuaiDev
390,640,743
false
null
package com.linwei.cams.component.network.utils class LaunchBuilder<T> { lateinit var onRequest: (suspend () -> T) var onSuccess: ((data: T) -> Unit)? = null var onError: ((Throwable) -> Unit)? = null }
1
Kotlin
1
3
37ffb7142ce1141c7b09ef69664c535150d25aaa
215
CamsModular
Apache License 2.0
sample/src/main/java/com/tyganeutronics/activator/KotlinActivity.kt
richard-muvirimi
354,964,607
false
{"Kotlin": 6864}
package com.tyganeutronics.activator import android.os.Bundle import android.view.View import android.widget.AdapterView import android.widget.ArrayAdapter import android.widget.CompoundButton import androidx.appcompat.app.AppCompatActivity import androidx.appcompat.widget.AppCompatCheckBox import androidx.appcompat.w...
0
Kotlin
1
5
23bca3262a98a8048a66b8b995dc2cdaf3fcf83b
3,441
android-number-shortener
Apache License 2.0
compiler/test/src/org/jetbrains/dukat/compiler/tests/extended/DescriptorTests.kt
posix-dev
285,553,214
true
{"Kotlin": 2740097, "WebIDL": 323303, "TypeScript": 132241, "JavaScript": 18587, "ANTLR": 11333}
package org.jetbrains.dukat.compiler.tests.extended import org.jetbrains.dukat.astModel.SourceFileModel import org.jetbrains.dukat.astModel.flattenDeclarations import org.jetbrains.dukat.cli.compileUnits import org.jetbrains.dukat.compiler.tests.MethodSourceSourceFiles import org.jetbrains.dukat.compiler.tests.createS...
0
null
0
0
4313a4924dea968bc4198bdd18346958b5fbf534
4,286
dukat
Apache License 2.0
macos-app/src/macosX64Main/kotlin/ru/tetraquark/kotlin/playground/macos/Main.kt
Tetraquark
378,612,246
false
null
package ru.tetraquark.kotlin.playground.macos fun main() { val branches = sequenceOf<ProgramBranch>( CinteropMultiply, ) branches.forEach(ProgramBranch::execute) }
0
Kotlin
0
0
bd86209874d438233cc5383cec2e705d5e7d9f83
186
KotlinPlayground
Apache License 2.0
kex-z3/src/main/kotlin/org/jetbrains/research/kex/smt/z3/Z3Engine.kt
vorpal-research
204,454,367
false
null
package org.jetbrains.research.kex.smt.z3 import com.microsoft.z3.* import org.jetbrains.research.kex.smt.SMTEngine import org.jetbrains.research.kthelper.assert.unreachable import org.jetbrains.research.kthelper.logging.log @Suppress("UNCHECKED_CAST") object Z3Engine : SMTEngine<Context, Expr<*>, Sort, FuncDecl<*>, ...
6
null
11
7
3bd61388117e635f568a19bd6f871c30d2184bd3
22,164
kex
Apache License 2.0
sample/inbox/src/main/java/com/walletconnect/sample/web3inbox/ui/routes/W3ISampleNavGraph.kt
WalletConnect
435,951,419
false
null
@file:OptIn(ExperimentalMaterialNavigationApi::class) package com.walletconnect.sample.web3inbox.ui.routes import androidx.compose.foundation.shape.RoundedCornerShape import androidx.compose.material.MaterialTheme import androidx.compose.runtime.Composable import androidx.compose.ui.unit.dp import androidx.navigation...
147
Kotlin
59
157
e34c0e716ca68021602463773403d8d7fd558b34
2,351
WalletConnectKotlinV2
Apache License 2.0
node-api/src/test/kotlin/net/corda/nodeapi/internal/serialization/kryo/ArrayListItrConcurrentModificationException.kt
corda
70,137,417
false
{"Kotlin": 10675960, "Java": 275115, "C++": 239894, "Python": 37811, "Shell": 28324, "CSS": 23544, "Groovy": 14725, "CMake": 5393, "Dockerfile": 2574, "Batchfile": 1777, "PowerShell": 660, "C": 454}
package net.corda.nodeapi.internal.serialization.kryo import org.mockito.kotlin.doReturn import org.mockito.kotlin.whenever import net.corda.core.serialization.EncodingWhitelist import net.corda.core.serialization.internal.CheckpointSerializationContext import net.corda.core.serialization.internal.checkpointDeserializ...
62
Kotlin
1088
3,989
d27aa0e6850d3804d0982024054376d452e7073a
4,406
corda
Apache License 2.0
src/ii_collections/n16FlatMap.kt
samuelpisa
101,820,858
false
null
package ii_collections fun example() { val result = listOf("abc", "12").flatMap { it.toCharList() } result == listOf('a', 'b', 'c', '1', '2') } val Customer.orderedProducts: Set<Product> get() { // Return all products ordered by customer return orders.flatMap { it.products }.toSet() } val Shop.allO...
37
null
27
6
424e1795fd807d8cec42b2ede5c4c8928d5283c3
494
kotlin-koans-resolved
MIT License
src/main/kotlin/de/derniklaas/buildbugs/BugCreator.kt
derNiklaas
737,881,211
false
null
package de.derniklaas.buildbugs import com.noxcrew.noxesium.network.clientbound.ClientboundMccServerPacket import de.derniklaas.buildbugs.utils.ServerState import de.derniklaas.buildbugs.utils.Utils import net.minecraft.client.MinecraftClient import net.minecraft.client.util.Clipboard import net.minecraft.util.math.Bl...
1
null
0
2
494cbf9feb8c6dc97e9587a2bd22397d9967f542
3,798
build-bugs
MIT License
operations-karma/src/main/kotlin/com/enigmastation/nevet/karma/operation/GetKarmaOperation.kt
jottinger
842,021,834
false
{"Kotlin": 151168, "Dockerfile": 286, "Just": 148}
/* Joseph B. Ottinger (C)2024 */ package com.enigmastation.nevet.karma.operation import com.enigmastation.nevet.extensions.compress import com.enigmastation.nevet.karma.service.KarmaEntryService import com.enigmastation.nevet.whiteboard.model.MessageSource import com.enigmastation.nevet.whiteboard.model.RouterMessage ...
11
Kotlin
0
1
6093b1c76058396aaf2bc781c1d1beea8c7be060
1,799
nevet
MIT License
infra/nats/src/test/kotlin/io/nats/examples/jetstream/JetStreamTestUtils.kt
debop
625,161,599
false
{"Kotlin": 7504333, "HTML": 502995, "Java": 2273, "JavaScript": 1351, "Shell": 1301, "CSS": 444, "Dockerfile": 121, "Mustache": 82}
package io.nats.examples.jetstream import io.bluetape4k.logging.KotlinLogging import io.bluetape4k.logging.debug import io.bluetape4k.nats.client.natsMessageOf import io.bluetape4k.support.toUtf8Bytes import io.nats.client.JetStream private val log = KotlinLogging.logger { } fun JetStream.publish(subject: String, pr...
0
Kotlin
0
1
ce3da5b6bddadd29271303840d334b71db7766d2
1,099
bluetape4k
MIT License
core/model/src/main/java/app/tsampa/model/Food.kt
stefanosansone
601,827,249
false
null
package app.tsampa.model data class Food( var name: String = "", var description: String = "", var carbohydrates: Int = 0, var proteins: Int = 0, var fats: Int = 0, )
2
Kotlin
0
1
e12996a6e52c1575acb5955896823a6708f44f3c
187
tsampa
Apache License 2.0
http4k-core/src/main/kotlin/org/http4k/core/http.kt
http4k
86,003,479
false
null
@file:Suppress("UNCHECKED_CAST") package org.http4k.core import org.http4k.asString import org.http4k.core.Body.Companion.EMPTY import org.http4k.core.HttpMessage.Companion.HTTP_1_1 import java.io.Closeable import java.io.InputStream import java.nio.ByteBuffer typealias Headers = Parameters /** * If this Body is N...
34
null
249
2,615
7ad276aa9c48552a115a59178839477f34d486b1
8,264
http4k
Apache License 2.0
spot-client-android/app/src/main/java/com/example/spotTv/di/HomeComponent.kt
tmoldovan8x8
250,230,979
true
{"JavaScript": 1321801, "CSS": 53677, "Kotlin": 31539, "TypeScript": 27120, "Objective-C": 8445, "Java": 6322, "Ruby": 4820, "Shell": 3591, "HTML": 2528, "Starlark": 2068, "Dockerfile": 295}
package com.example.spotTv.di import com.example.spotTv.presentation.view.MainActivity import dagger.Subcomponent @Subcomponent(modules = [HomeModule::class]) interface HomeComponent { fun inject(mainActivity: MainActivity) }
0
JavaScript
0
0
348cccba951f335e474cb395ed14f037ff9c473c
231
jitsi-meet-spot
Apache License 2.0
GrowthBook/src/commonTest/kotlin/com/sdk/growthbook/tests/GBTestCases.kt
growthbook
445,362,249
false
null
package com.sdk.growthbook.tests val gbTestCases = """ { "evalCondition": [ [ "${"$"}not - pass", { "${"$"}not": { "name": "hello" } }, { "name": "world" }, true ], [ ...
8
null
16
19
40be0415b275d6717df6194f2356c339505a440f
75,856
growthbook-kotlin
MIT License
modules/contracts-for-testing/src/main/kotlin/com/r3/corda/lib/tokens/testing/states/DiamondGradingReport.kt
corda
160,397,060
false
{"Kotlin": 673352, "Java": 18696, "Dockerfile": 2031}
package com.r3.corda.lib.tokens.testing.states import com.r3.corda.lib.tokens.contracts.states.EvolvableTokenType import com.r3.corda.lib.tokens.testing.contracts.DiamondGradingReportContract import net.corda.core.contracts.BelongsToContract import net.corda.core.contracts.UniqueIdentifier import net.corda.core.identi...
38
Kotlin
77
80
749483f691c2c6ca56d9caacdd73a9e6319a969e
1,758
token-sdk
Apache License 2.0
src/main/kotlin/com/wsl/symlinks/vfs/WslVirtualFileSystem.kt
patricklx
781,426,990
false
{"Kotlin": 10886, "Shell": 286}
package com.wsl.symlinks.vfs import ai.grazie.utils.WeakHashMap import com.intellij.ide.AppLifecycleListener import com.intellij.idea.IdeaLogger import com.intellij.openapi.components.service import com.intellij.openapi.diagnostic.Attachment import com.intellij.openapi.diagnostic.DefaultLogger import com.intellij.open...
1
Kotlin
0
1
b31d09a059e50dc518aa668399e71b3906f87466
12,382
intellij-wsl-symlinks
Apache License 2.0
kotlin-electron/src/jsMain/generated/electron/JumpListSettings.kt
JetBrains
93,250,841
false
{"Kotlin": 11411371, "JavaScript": 154302}
package electron typealias JumpListSettings = electron.core.JumpListSettings
28
Kotlin
173
1,250
9e9dda28cf74f68b42a712c27f2e97d63af17628
79
kotlin-wrappers
Apache License 2.0
app/src/main/java/com/example/androidweather/db/CityDao.kt
KwunHeiChan
328,347,388
false
null
package com.example.androidweather.db import androidx.room.Dao import androidx.room.Insert import androidx.room.OnConflictStrategy import androidx.room.Query import io.reactivex.rxjava3.core.Single @Dao interface CityDao { @Query("SELECT * FROM city ORDER BY last_searched_at DESC LIMIT 1") fun getLastSearchedCit...
0
Kotlin
1
0
aaf1753e16aaa0bbf844323d317b752ca9582444
590
android-weather
Apache License 2.0
src/main/kotlin/example/component/Backdrop.kt
aerialist7
388,885,791
false
null
package kz.beigam.component.showcase import csstype.Color import csstype.ZIndex import kotlinx.js.jso import mui.material.Backdrop import mui.material.Button import mui.material.CircularProgress import mui.material.CircularProgressColor import react.FC import react.Props import react.useState val BackdropShowcase = F...
2
null
5
7
e79c483de06738da9a58df6c4151952ab7a54eed
720
kotlin-material-ui-sample
Apache License 2.0
app/src/main/java/com/marknkamau/justjava/utils/NotificationHelper.kt
MarkNjunge
86,477,705
false
null
package com.thuylinhtran.FoodKotlin.utils import android.app.NotificationChannel import android.app.NotificationManager import android.content.Context import android.os.Build import androidx.annotation.RequiresApi import androidx.core.app.NotificationCompat import androidx.core.content.ContextCompat import com.marknju...
1
null
36
74
e3811f064797d50fadef4033bf1532b3c2ceef8d
3,366
JustJava-Android
Apache License 2.0
heart-rate-app/central/src/main/java/titsch/guilherme/heartratemonitor/central/usecases/measurements/GetLastHeartRateMeasurementFlowUseCase.kt
titsch-guilherme
568,068,598
false
{"Kotlin": 134173, "JavaScript": 16582}
package titsch.guilherme.heartratemonitor.central.usecases.measurements import titsch.guilherme.heartratemonitor.core.db.repositories.HeartRateMeasurementRepository class GetLastHeartRateMeasurementFlowUseCase( private val heartRateMeasurementRepository: HeartRateMeasurementRepository ) { suspend operator fun...
0
Kotlin
0
0
7647c459186696b3b0675aeb289b5a59e1864cf5
386
heart-rate-monitor-android
MIT License
ulid/src/commonTest/kotlin/ulid/TestULIDFactory.kt
aallam
496,579,439
false
null
package ulid import ulid.utils.* import kotlin.test.Test import kotlin.test.assertEquals import kotlin.test.assertFailsWith import kotlin.test.assertTrue class TestULIDFactory { @Test fun test_randomULID() { val result = ULID.randomULID() assertEquals(26, result.length) val (timePart...
3
Kotlin
1
8
9cde1020a87df200ee3f25c26a9e1ea19ff47d59
6,844
ulid-kotlin
MIT License
vector/src/main/java/im/vector/riotx/features/crypto/verification/qrconfirmation/VerificationQrScannedByOtherFragment.kt
ginnyTheCat
310,769,850
false
{"Gradle": 8, "Markdown": 16, "Java Properties": 2, "Shell": 19, "Text": 43, "Ignore List": 7, "Batchfile": 1, "EditorConfig": 1, "YAML": 2, "INI": 2, "Proguard": 5, "XML": 768, "Kotlin": 2184, "Java": 12, "JavaScript": 4, "JSON": 5, "HTML": 2, "Python": 2, "FreeMarker": 2, "Fluent": 7}
/* * Copyright 2019 New Vector Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed ...
1
null
1
1
ee1d5faf0d59f9cc1c058d45fae3e811d97740fd
2,717
element-android
Apache License 2.0
core/resources/src/main/java/com/sapiest/vaultspace/core/resources/ResourcesProvider.kt
sapiest
703,269,182
false
{"Kotlin": 84168}
package com.sapiest.vaultspace.core.resources import android.graphics.drawable.Drawable import androidx.annotation.ColorRes import androidx.annotation.DrawableRes import androidx.annotation.StringRes interface ResourcesProvider { fun getString(@StringRes resId: Int): String fun getColor(@ColorRes resId: Int):...
0
Kotlin
0
0
1a0639bec80b5d18dcd88761543aadf517260e1c
382
VaultSpace
MIT License
core/resources/src/main/java/com/sapiest/vaultspace/core/resources/ResourcesProvider.kt
sapiest
703,269,182
false
{"Kotlin": 84168}
package com.sapiest.vaultspace.core.resources import android.graphics.drawable.Drawable import androidx.annotation.ColorRes import androidx.annotation.DrawableRes import androidx.annotation.StringRes interface ResourcesProvider { fun getString(@StringRes resId: Int): String fun getColor(@ColorRes resId: Int):...
0
Kotlin
0
0
1a0639bec80b5d18dcd88761543aadf517260e1c
382
VaultSpace
MIT License
src/main/kotlin/no/nav/klage/dokument/repositories/OpplastetDokumentUnderArbeidAsHoveddokumentRepository.kt
navikt
297,650,936
false
null
package no.nav.klage.dokument.repositories import no.nav.klage.dokument.domain.dokumenterunderarbeid.OpplastetDokumentUnderArbeidAsHoveddokument import org.springframework.data.jpa.repository.JpaRepository import org.springframework.transaction.annotation.Transactional import java.util.* @Transactional interface Oppl...
4
null
4
1
73fdef1da6d11c8ab19dd0c9b12c143877b85680
796
kabal-api
MIT License
plugins/kotlin/idea/tests/testData/quickfix/typeMismatch/wrapWithCollectionLiteral/toList.kt
ingokegel
72,937,917
true
null
// "Wrap element with 'listOf()' call" "true" // WITH_STDLIB fun foo(a: String) { bar(a<caret>) } fun bar(a: List<String>) {} // FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.WrapWithCollectionLiteralCallFix
233
null
4912
2
b07eabd319ad5b591373d63c8f502761c2b2dfe8
222
intellij-community
Apache License 2.0
src/test/java/uk/gov/justice/hmpps/prison/service/AgencyPrisonerPayProfileServiceTest.kt
ministryofjustice
156,829,108
false
null
package uk.gov.justice.hmpps.prison.service import org.assertj.core.api.Assertions.assertThat import org.assertj.core.api.Assertions.assertThatThrownBy import org.junit.jupiter.api.BeforeEach import org.junit.jupiter.api.Test import org.mockito.kotlin.mock import org.mockito.kotlin.reset import org.mockito.kotlin.when...
5
null
6
6
c3d08a4c67f24e3c3bea9af8f9f8cfc16f787b6d
3,805
prison-api
MIT License
app/src/main/java/jp/gr/aqua/dropbox/provider/MainActivity.kt
jiro-aqua
184,567,108
false
null
package jp.gr.aqua.dropbox.provider import android.os.Bundle import android.provider.DocumentsContract import androidx.appcompat.app.AppCompatActivity import com.dropbox.core.android.Auth import jp.gr.aqua.dropbox.provider.databinding.ActivityMainBinding class MainActivity : AppCompatActivity() { private val pr...
0
Kotlin
1
6
c040be1df4472a43499bdce946f23fad6416f100
2,764
document-provider-dropbox-android
Apache License 2.0
src/main/kotlin/net/papierkorb2292/command_crafter/parser/Language.kt
Papierkorb2292
584,879,864
false
{"Kotlin": 714339, "Java": 422878, "TypeScript": 32500, "JavaScript": 2311, "SCSS": 1936}
package net.papierkorb2292.command_crafter.parser import net.minecraft.command.CommandSource import net.minecraft.server.command.ServerCommandSource import net.minecraft.server.function.FunctionBuilder import net.papierkorb2292.command_crafter.editor.debugger.server.functions.FunctionDebugInformation import net.papier...
1
Kotlin
0
7
ae01c01e8c69a1930d87557c0eefa7b76dd39c52
1,580
CommandCrafter
MIT License
src/com/hxz/mpxjs/lang/expr/psi/VueJSElementVisitor.kt
wuxianqiang
508,329,768
false
{"Kotlin": 1447881, "Vue": 237479, "TypeScript": 106023, "JavaScript": 93869, "HTML": 17163, "Assembly": 12226, "Lex": 11227, "Java": 2846, "Shell": 1917, "Pug": 338}
// Copyright 2000-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 com.hxz.mpxjs.lang.expr.psi import com.intellij.lang.javascript.psi.JSElementVisitor class VueJSElementVisitor : JSElementVisitor() { fun visitVueJSFilterExpression(f...
2
Kotlin
0
4
e069e8b340ab04780ac13eab375d900f21bc7613
393
intellij-plugin-mpx
Apache License 2.0
serialization/src/test/kotlin/net/corda/serialization/internal/amqp/GenericsTests.kt
corda
70,137,417
false
null
package net.corda.nodeapi.internal.serialization.amqp import net.corda.core.contracts.* import net.corda.core.serialization.SerializedBytes import net.corda.nodeapi.internal.serialization.AllWhitelist import net.corda.testing.common.internal.ProjectStructure.projectRootDir import org.junit.Test import net.corda.core.i...
62
null
1077
3,989
d27aa0e6850d3804d0982024054376d452e7073a
21,072
corda
Apache License 2.0
PhoenixPenNG/libgame/src/main/java/com/phoenixpen/game/input/EnumKeyComboMapping.kt
nshcat
182,317,693
false
{"Text": 2, "Ignore List": 4, "Markdown": 1, "Gradle": 5, "INI": 1, "Shell": 6, "Batchfile": 1, "GLSL": 12, "JSON": 28, "Java Properties": 1, "XML": 15, "Kotlin": 213, "Java": 6, "C": 2}
package com.phoenixpen.game.input /** * A key combo input mapping that emits a [EnumEvent] with a given constant enumeration value. */ class EnumKeyComboMapping<E>(private val eventValue: E, vararg components: Any): KeyComboMapping(*components) { /** * Create event instance * * @return New eve...
0
Kotlin
0
1
8e29e78b8f3d1ff7bdfedfd7c872b1ac69dd665d
438
phoenixpen_ng
MIT License
backend/src/jvmBackMain/kotlin/com/example/backend/util/jwt/JwtUtil.kt
DeNyWho
584,003,645
false
{"Kotlin": 511314}
package com.example.backend.util.jwt import io.jsonwebtoken.Jwts import io.jsonwebtoken.SignatureAlgorithm import io.jsonwebtoken.security.Keys import org.springframework.beans.factory.annotation.Value import org.springframework.security.core.userdetails.UserDetails import org.springframework.stereotype.Component impo...
0
Kotlin
0
0
4388d4eb1f0c3e52929077ba3939b7f4124d1d5b
2,283
AniFoxKMP
Apache License 2.0
j2k/old/tests/testData/fileOrElement/newClassExpression/fullQualifiedName.kt
JetBrains
278,369,660
false
null
// ERROR: Not enough information to infer type variable E package test internal class User { fun main() { val list = java.util.ArrayList() } }
0
null
30
82
cc81d7505bc3e9ad503d706998ae8026c067e838
159
intellij-kotlin
Apache License 2.0
demo/src/main/java/otpview/demo/ToggleController.kt
stoyicker
252,207,155
false
null
package otpview.demo import android.widget.Checkable internal abstract class ToggleController(private val checkable: Checkable) { fun setActive(newActive: Boolean) { checkable.isChecked = newActive if (newActive) { onActive() } else { onInactive() } } abstract fun onActive() abst...
0
Java
2
26
2eeaf16647859e318315ed13f8db178a675af919
344
otpview
MIT License
app/src/test/java/com/joel/jlibtemplate/MainViewModelTest.kt
jogcaetano13
524,525,946
false
null
package com.joel.jlibtemplate import app.cash.turbine.test import com.google.common.truth.Truth.assertThat import com.joel.communication_android.dispatchers.CommunicationDispatcher import com.joel.communication_android.states.ResultState import com.joel.jlibtemplate.respositories.ChallengeRepository import kotlinx.cor...
0
null
0
1
491d46c1925a1ffb8120b91a5f2c8e9e701ad4df
1,620
communication
MIT License
src/test/kotlin/dev/fastmc/common/BoxedIntArrayUtil.kt
FastMinecraft
576,040,289
false
null
package dev.fastmc.common import it.unimi.dsi.fastutil.ints.IntOpenHashSet import it.unimi.dsi.fastutil.objects.ObjectArrays import java.util.* import kotlin.math.max object BoxedIntArrayUtil { fun closeSorted(n: Int): Array<Int> { val random = Random() val data = Array(n) { (it + rand...
1
Kotlin
1
1
eb6ce404fcb0488e2719eccd29d53132ba872141
1,297
fastmc-common
MIT License
demo-app/src/main/java/com/github/mrbean355/android/demo/CountryListActivity.kt
MrBean355
169,101,192
false
null
package com.github.mrbean355.android.demo import android.os.Bundle import android.view.Menu import android.view.MenuItem import android.widget.Toast import androidx.appcompat.app.AppCompatActivity import androidx.appcompat.widget.SearchView import androidx.recyclerview.widget.RecyclerView import com.github.mrbean355.a...
0
Kotlin
0
2
6d9eb4b63d1ed3d4596ff5357e9605d2f7e2b9c9
6,599
enhanced-adapter
Apache License 2.0
j2k/testData/fileOrElement/field/varWithInit.kt
staltz
38,581,975
true
{"Markdown": 34, "XML": 687, "Ant Build System": 40, "Ignore List": 8, "Git Attributes": 1, "Kotlin": 18510, "Java": 4307, "Protocol Buffer": 4, "Text": 4085, "JavaScript": 63, "JAR Manifest": 3, "Roff": 30, "Roff Manpage": 10, "INI": 7, "HTML": 135, "Groovy": 20, "Maven POM": 50, "Gradle": 71, "Java Properties": 10, "...
// ERROR: Unresolved reference: Foo class C { var f = Foo(1, 2) }
0
Java
0
1
80074c71fa925a1c7173e3fffeea4cdc5872460f
69
kotlin
Apache License 2.0
app/src/main/java/dev/koffein/shoppingreminder/fragments/ItemEditDialog.kt
xecua
378,459,404
false
null
package dev.koffein.shoppingreminder.fragments import android.app.Dialog import android.os.Bundle import android.util.Log import android.view.LayoutInflater import android.view.View import androidx.core.os.bundleOf import androidx.fragment.app.activityViewModels import androidx.fragment.app.setFragmentResult import co...
10
Kotlin
0
0
6726c2da3829a09f79233500f4608f5a9e18793f
4,912
ShoppingReminder
MIT License
src/main/kotlin/no/nav/amt/deltaker/bff/application/plugins/Monitoring.kt
navikt
701,285,451
false
{"Kotlin": 223100, "PLpgSQL": 635, "Dockerfile": 140}
package no.nav.amt.deltaker.bff.application.plugins import io.ktor.http.HttpHeaders import io.ktor.server.application.Application import io.ktor.server.application.call import io.ktor.server.application.install import io.ktor.server.metrics.micrometer.MicrometerMetrics import io.ktor.server.plugins.callid.CallId impor...
1
Kotlin
0
0
de95fb4b4137f4049830e2eab23fbf317d89ef09
1,385
study-ktor-2.2.4
MIT License
core/src/main/java/com/mksoftware101/core/datetime/AndroidThreeTenDateTime.kt
mksoftware101
357,660,329
false
null
package com.mksoftware101.core.datetime import android.app.Application import com.jakewharton.threetenabp.AndroidThreeTen object AndroidThreeTenDateTime { fun initialize(context: Application) { AndroidThreeTen.init(context) } }
0
Kotlin
0
0
7903f75ff06d5be43d78f9940b975b7933318b0d
245
yetanothernotes
Apache License 2.0
src/test/kotlin/no/nav/bidrag/beregn/forskudd/rest/BidragBeregnForskuddTestConfig.kt
navikt
240,206,383
false
null
package no.nav.bidrag.beregn.forskudd.rest import com.nimbusds.jose.JOSEObjectType import io.swagger.v3.oas.annotations.OpenAPIDefinition import io.swagger.v3.oas.annotations.info.Info import io.swagger.v3.oas.annotations.security.SecurityRequirement import no.nav.bidrag.beregn.forskudd.rest.BidragBeregnForskuddLocal....
7
null
0
1
6b07dbbba3b513f41e12457e51bd39809e84513d
2,492
bidrag-beregn-forskudd-rest
MIT License
src/main/kotlin/com/rainbow/server/rest/controller/AuthController.kt
DDD-Community
649,288,543
false
null
package com.rainbow.server.rest.controller import com.rainbow.server.rest.dto.member.MemberRequestDto import com.rainbow.server.service.KakaoLoginService import org.springframework.beans.factory.annotation.Value import org.springframework.http.HttpStatus import org.springframework.http.ResponseEntity import java.net.U...
1
Kotlin
0
3
22f9168caefe03575177bd38830afbcc797c3d4e
3,141
Rainbow-Server
MIT License
app/core/src/main/kotlin/net/averak/gsync/core/game_context/GameContext.kt
averak
697,429,765
false
{"Kotlin": 118988, "Groovy": 100615, "Java": 4456, "Makefile": 1201, "Dockerfile": 287}
package net.averak.gsync.core.game_context import net.averak.gsync.core.daterange.DateRange import net.averak.gsync.core.daterange.Dateline import java.time.LocalDateTime import java.util.* /** * 機能によらずアプリケーション横断的なコンテキスト */ data class GameContext( val masterVersion: UUID, val idempotencyKey: UUID, val d...
18
Kotlin
0
1
289aec33c894dc44f5c74b5b209ca024046ca4b7
476
gsync
MIT License
app/src/main/java/com/santansarah/blescanner/presentation/scan/device/Device.kt
santansarah
588,753,371
false
null
package com.santansarah.blescanner.presentation.scan.device import androidx.compose.foundation.border import androidx.compose.foundation.layout.Box import androidx.compose.foundation.layout.fillMaxSize import androidx.compose.material.icons.Icons import androidx.compose.material.icons.filled.MoreVert import androidx.c...
0
Kotlin
1
7
25cf4144258357bcd16a2b4bb708db92f2f7cbcf
4,791
ble-scanner
MIT License
mobile/app/src/commonTest/kotlin/com/langsapp/GreetingTest.kt
szymonklimek
527,003,710
false
{"Kotlin": 60223, "Ruby": 2227, "Dockerfile": 400, "Swift": 342}
package com.langsapp import kotlin.test.Test import kotlin.test.assertEquals class GreetingTest { @Test fun testGreeting() { assertEquals("Hello!", Greeting().greeting()) } }
9
Kotlin
0
1
dfce6455d774865f5ec403870680c81ae279bc57
198
langsapp
Apache License 2.0
source-code/final-project/app/src/main/java/com/droidcon/tinyinvoice/data/local/mapper/TaxMapper.kt
droidcon-academy
733,026,693
false
{"Kotlin": 441934}
package com.droidcon.tinyinvoice.data.local.mapper import com.droidcon.db.TaxEntity import com.droidcon.tinyinvoice.domain.model.Tax fun TaxEntity.toTax(): Tax = Tax( id = id, desc = desc, value = value_, )
0
Kotlin
0
0
4b2b45ef5bead5c7a68a9ffc01cb962c59b3ee99
241
android-mc-sqldelight
Apache License 2.0
src/main/kotlin/me/circuitrcay/euler/challenges/oneToTwentyFive/Problem11.kt
adamint
134,989,290
false
null
package me.circuitrcay.euler.challenges.oneToTwentyFive import me.circuitrcay.euler.Problem class Problem11 : Problem<String>() { override fun calculate(): Any { val prompt = """08 02 22 97 38 15 00 40 00 75 04 05 07 78 52 12 50 77 91 08 49 49 99 40 17 81 18 57 60 87 17 40 98 43 69 48 04 56 62 00 81 49 31...
1
null
1
1
cebe96422207000718dbee46dce92fb332118665
3,366
project-euler-kotlin
Apache License 2.0
app/src/main/java/io/github/memydb/data/api/services/NinegagnsfwService.kt
Faierbel
176,805,921
false
{"Kotlin": 64104}
package io.github.memydb.data.api.services import io.github.memydb.data.api.ApiResponse import io.github.memydb.data.pojos.Page import io.github.memydb.utils.RefreshLiveData import retrofit2.http.GET import retrofit2.http.Path import javax.inject.Singleton @Singleton interface NinegagnsfwService { @GET("/9gagnsf...
10
Kotlin
0
0
b7e51171ac9a8cb4bb8eb1a8c096fd0b83d25631
489
MemyDB
MIT License
plant_app/android/app/src/main/kotlin/com/example/plant_app/MainActivity.kt
bongQ417
291,462,457
false
{"Text": 2, "Ignore List": 7, "Markdown": 7, "YAML": 3, "Dart": 37, "Gradle": 9, "INI": 4, "Java Properties": 3, "XML": 36, "Kotlin": 2, "OpenStep Property List": 12, "Objective-C": 18, "Swift": 3, "JSON": 9, "SVG": 17, "Shell": 1, "Batchfile": 1, "Java": 2, "C": 2}
package com.example.plant_app import io.flutter.embedding.android.FlutterActivity class MainActivity: FlutterActivity() { }
1
null
1
1
cbe760c816fd23aaa9968cfd5150e92570c24434
126
flutter-demo
MIT License
app/src/main/java/com/example/myfirstproject/MainActivity.kt
arthurtsumoto
633,586,121
false
null
package com.example.myfirstproject import android.annotation.SuppressLint import android.content.Intent import androidx.appcompat.app.AppCompatActivity import android.os.Bundle import android.widget.Button import android.widget.EditText import android.widget.TextView import android.widget.Toast class MainActivity : A...
0
Kotlin
0
0
1582c29c358e6436345f1a07c113e07360ad9147
1,578
CalculadoraIMC
MIT License
build-logic/conventions/src/main/kotlin/modulecheck/builds/CleanPlugin.kt
RBusarow
316,627,145
false
null
/* * Copyright (C) 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 ...
76
null
7
95
24e7c7667490630d30cf8b59cd504cd863cd1fba
3,116
ModuleCheck
Apache License 2.0
src/main/kotlin/intro/IntLambda3.kt
readingbat
256,581,160
false
{"Gradle": 2, "Java Properties": 1, "YAML": 1, "Shell": 1, "Text": 1, "Ignore List": 1, "Batchfile": 1, "Makefile": 1, "Markdown": 1, "JSON": 1, "INI": 1, "XML": 2, "Kotlin": 32, "Java": 71}
package intro val tripleIt3: (Int) -> Int = { i: Int -> i * 3 } // Simplify things with it val quadItIt3: (Int) -> Int = { it * 4 } fun doubleIt3(i: Int): Int = i * 2 val doubleIt3: (Int) -> Int = ::doubleIt3 // Higher-order function as a parameter fun func3(i: Int, func: (Int) -> Int): Int = func.invoke(i) fun m...
0
Java
0
0
cbabfb062d69633a451e6c09405fd5cb9653ca24
490
readingbat-java-content
Apache License 2.0
app/src/main/java/io/bibuti/opennews/data/db/NewsDao.kt
bibutikoley
325,942,445
false
null
package io.bibuti.opennews.data.db import androidx.paging.PagingSource import androidx.room.* /** * Defining the DAOs for performing DB operations */ @Dao interface NewsDao { @Insert(onConflict = OnConflictStrategy.REPLACE) suspend fun saveNews(news: List<SingleNewsItem>) @Query("select * from news_ta...
0
Kotlin
0
1
c59e27f8bc771d8339728657f7ee96d0e5d26520
755
OpenNews
MIT License
app/src/main/java/com/sticky/notes/feature_note/domain/use_case/NoteUseCases.kt
iAbanoubSamir
615,831,530
false
null
package com.sticky.notes.feature_note.domain.use_case data class NoteUseCases( val getNotes: GetNotesUseCase, val deleteNote: DeleteNoteUseCase, val addNote: AddNoteUseCase, val getNoteById: GetNoteByIdUseCase )
0
Kotlin
0
0
dd63fe522c2320df6962df1ac198749831e422a0
228
StickyNotes
Apache License 2.0
library/src/main/java/com/genaku/snappingseekbar/model/ISeekBarItem.kt
genaku
260,438,991
true
{"Kotlin": 51919, "HTML": 26243}
package com.genaku.snappingseekbar.model interface ISeekBarItem { val name: String }
0
Kotlin
0
0
3a120a74eceb65768c64c3e18c79a77e807b6a7d
90
SnappingSeekBar
Apache License 2.0
ActiveWindowSelectionHighlight/src/main/kotlin/example/App.kt
aterai
158,348,575
false
null
package example import java.awt.* // ktlint-disable no-wildcard-imports import java.awt.event.ActionEvent import java.awt.event.FocusAdapter import java.awt.event.FocusEvent import javax.swing.* // ktlint-disable no-wildcard-imports import javax.swing.text.Caret import javax.swing.text.DefaultCaret import javax.swing....
0
Kotlin
3
9
47a0c684f64c3db2c8b631b2c20c6c7f9205bcab
2,974
kotlin-swing-tips
MIT License
mapper/src/main/kotlin/com/kncept/mapper/reflect/ReflectiveDataClassCreator.kt
kncept
761,612,876
false
{"Kotlin": 45446}
package com.kncept.mapper.reflect import kotlin.reflect.KClass import kotlin.reflect.KProperty1 import kotlin.reflect.full.declaredMemberProperties import kotlin.reflect.full.primaryConstructor class ReflectiveDataClassCreator<T : Any>( private val type: KClass<T>, val filterNullArgsInConstruction: Boolean ) ...
0
Kotlin
0
0
82253778969938aa016dc95a40ccb5b84a6b30c1
1,435
kotlin-dynamodb-mapper
MIT License
tmp/arrays/youTrackTests/7504.kt
DaniilStepanov
228,623,440
false
null
// Original bug: KT-18608 fun getInt(v: String): Int = TODO("some error prone calculation") fun getLong(v: Int): Long = TODO("some error prone calculation") val res1: Long = try { getInt("oops").let { getLong(it) } } catch (e: Throwable) { getLong(0) }
1
null
1
1
602285ec60b01eee473dcb0b08ce497b1c254983
258
bbfgradle
Apache License 2.0
app/src/main/java/com/example/jsonplaceholder/ui/login/LoginScreen.kt
Reshma2497
635,314,398
false
null
package com.example.jsonplaceholder.ui.login import android.annotation.SuppressLint import android.app.Activity import android.widget.Toast import androidx.activity.compose.rememberLauncherForActivityResult import androidx.activity.result.contract.ActivityResultContracts import androidx.compose.foundation.Image import...
0
Kotlin
0
0
dfcae89e54196e236f15e4807e770f085b68342f
9,280
JSONPlaceHolder
MIT License
plugins/src/main/kotlin/org/jetbrains/gradle/plugins/liquibase/Activity.kt
JetBrains
386,075,247
false
null
package org.jetbrains.gradle.plugins.liquibase import org.gradle.api.Action import org.gradle.api.tasks.JavaExec open class Activity(val name: String) { internal val taskActionsMap = mutableMapOf<LiquibaseCommand, MutableList<Action<JavaExec>>>() .withDefault { mutableListOf() } internal...
7
Kotlin
9
26
50be7c14b3bd707ed3a2fae4536fb5e4650aa8ce
1,426
package-search-gradle-plugins
Apache License 2.0
ble/src/main/java/com/bhm/ble/device/BleConnectedDeviceManager.kt
buhuiming
641,804,698
false
null
/* * Copyright (c) 2022-2032 buhuiming * 不能修改和删除上面的版权声明 * 此代码属于buhuiming编写,在未经允许的情况下不得传播复制 */ @file:Suppress("SENSELESS_COMPARISON") package com.bhm.ble.device import com.bhm.ble.BleManager import com.bhm.ble.control.BleLruHashMap import com.bhm.ble.data.Constants.DEFAULT_MAX_CONNECT_NUM /** * 连接设备BleConnected...
2
null
14
88
282f26c4d0de2546424db4a2bb0112a8549f5ae0
2,944
BleCore
The Unlicense