path stringlengths 4 280 | owner stringlengths 2 39 | repo_id int64 21.1k 879M | is_fork bool 2
classes | languages_distribution stringlengths 13 1.95k ⌀ | content stringlengths 7 482k | issues int64 0 13.9k | main_language stringclasses 121
values | forks stringlengths 1 5 | stars int64 0 111k | commit_sha stringlengths 40 40 | size int64 7 482k | name stringlengths 1 100 | license stringclasses 93
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
src/main/kotlin/com/s13g/sauron/taker/PictureTakerTestingImpl.kt | shaeberling | 72,052,685 | false | null | package com.s13g.sauron.taker
import com.google.common.flogger.FluentLogger
import com.google.common.io.ByteStreams
import com.google.common.util.concurrent.ListenableFuture
import com.google.common.util.concurrent.SettableFuture
import java.io.ByteArrayInputStream
import java.io.ByteArrayOutputStream
import java.io.F... | 5 | Kotlin | 0 | 1 | a913e05af1644b3723022978f2cf102126f93bf6 | 2,330 | sauron | Apache License 2.0 |
app/src/main/java/com/eficksan/rpghelper/MainActivity.kt | AlekseiIvshin | 168,294,135 | false | null | package com.eficksan.rpghelper
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.navigation.findNavController
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.... | 0 | Kotlin | 0 | 0 | b46e4d82edf155d7d8c2f4f457100a6fab3bc3d7 | 459 | RPGHelper | Apache License 2.0 |
features/news/src/main/kotlin/by/anegin/vkcup21/features/news/data/models/PostSource.kt | eugene-kirzhanov | 385,482,551 | false | null | package by.anegin.vkcup21.features.news.data.models
internal class PostSource(
val id: Int,
val name: String?,
private val screenName: String?,
val photo: Photo?
) {
fun getSourceUrl() = "https://vk.com/$screenName"
} | 0 | Kotlin | 0 | 0 | 00afa06d424810fe80675e333facfd42d6b2b75d | 240 | vkcup21 | MIT License |
movie/src/main/java/id/web/dedekurniawan/moviexplorer/movie/data/remote/response/MovieImageApiResponse.kt | BlueShadowBird | 608,123,499 | false | {"Kotlin": 156728} | package id.web.dedekurniawan.moviexplorer.movie.data.remote.response
import com.google.gson.annotations.SerializedName
data class MovieImageApiResponse(
@field:SerializedName("backdrops")
val backdrops: List<MovieImageResponseItem>,
@field:SerializedName("posters")
val posters: List<MovieImageResponseItem>,
@... | 0 | Kotlin | 0 | 0 | 8b58189bc2391699125d466c6e232a09b04c748d | 700 | Android-Movie-Xporer | MIT License |
app/src/main/java/com/example/yit/local/models/ImageEntity.kt | dorindorsman | 796,692,286 | false | {"Kotlin": 34150} | package com.example.yit.local.models
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.dp
data class ImageEntity(
var id: Int = 0,
var pageURL: String? = null,
var description: String? = null,
var type: String? = null,
var tags: List<String?>? = null,
var previewURL: String? =... | 0 | Kotlin | 0 | 0 | 921b2947a514b86aab46c460ef2df7762d9b1f2b | 888 | YIT | Apache License 2.0 |
app/src/main/java/com/demo/features/chat/api/ChatRepoProvider.kt | DebashisINT | 614,693,263 | false | null | package com.demo.features.chat.api
object ChatRepoProvider {
fun provideChatRepository(): ChatRepo {
return ChatRepo(ChatApi.create())
}
} | 0 | Kotlin | 0 | 0 | 80c611bcf95487eb57f7c6563f955265e55832df | 156 | FSM_APP_ANDROIDX_TestingUpdate | Apache License 2.0 |
src/main/kotlin/ru/stech/sdp/SdpBodyBuilder.kt | soft-stech | 353,408,638 | false | null | package ru.stech.sdp
import ru.stech.util.LIBNAME
import ru.stech.util.LOCALHOST
class SdpBodyBuilder(val remoteRdpHost: String, val rtpHost: String, val rtpLocalPort: Int) {
override fun toString(): String {
val sdp = if (LOCALHOST != null && rtpLocalPort != null) "v=0\r\n" +
"o=- Z 0 IN... | 0 | Kotlin | 1 | 3 | f3290a74a6cab823cf4501c813e76917e62c1d66 | 721 | sip4k | MIT License |
plugins/plugin-sandbox/testData/firLoadK2Compiled/simple-lang-ver-2.1.kt | JetBrains | 3,432,266 | false | {"Kotlin": 79571273, "Java": 6776465, "Swift": 4063829, "C": 2609744, "C++": 1957654, "Objective-C++": 175279, "JavaScript": 130754, "Python": 59855, "Shell": 34920, "Objective-C": 21463, "Lex": 21452, "Batchfile": 11382, "CSS": 11368, "Ruby": 10470, "Dockerfile": 9907, "Groovy": 7092, "EJS": 5241, "CMake": 4473, "HTML... | // API_VERSION: 2.0
// ALLOW_DANGEROUS_LANGUAGE_VERSION_TESTING
// LANGUAGE_VERSION: 2.1
package test
import org.jetbrains.kotlin.plugin.sandbox.MyInlineable
fun runInlineable(block: @MyInlineable () -> Unit) {}
| 181 | Kotlin | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 214 | kotlin | Apache License 2.0 |
app/src/main/java/com/marcodallaba/pokeapp/ui/adapters/PokemonLoadStateAdapter.kt | marcodb97 | 304,840,360 | false | null | package com.marcodallaba.pokeapp.ui.adapters
import android.view.ViewGroup
import androidx.paging.LoadState
import androidx.paging.LoadStateAdapter
import com.marcodallaba.pokeapp.ui.viewholders.PokemonLoadStateViewHolder
class PokemonLoadStateAdapter(
private val retry: () -> Unit
) : LoadStateAdapter<PokemonLoa... | 0 | Kotlin | 0 | 0 | 53d874dec840980e2ba44fdccbbf31f0a85a37e9 | 675 | PokeApp | Apache License 2.0 |
src/main/kotlin/com/poseplz/server/application/photobooth/PhotoBoothApplicationService.kt | pobu-team | 678,194,623 | false | {"Kotlin": 144852, "HTML": 42781, "Dockerfile": 340, "CSS": 122} | package com.poseplz.server.application.photobooth
import com.poseplz.server.domain.photobooth.PhotoBooth
import com.poseplz.server.domain.photobooth.PhotoBoothService
import com.poseplz.server.ui.api.photobooth.PhotoBoothResponse
import org.springframework.data.domain.Page
import org.springframework.data.domain.Pageab... | 0 | Kotlin | 0 | 0 | 2e0b43d4f58344e08fc8d0227e4fe4bf2b276296 | 870 | poseplz-server | MIT License |
ocgena-domain/src/main/kotlin/ru/misterpotz/ocgena/simulation_old/semantics/SimulationSemanticsType.kt | MisterPotz | 605,293,662 | false | {"Kotlin": 749008, "TypeScript": 495751, "JavaScript": 36713, "CSS": 14489, "Python": 8026, "HTML": 3173, "Ruby": 285, "EJS": 274, "Java": 140} | package ru.misterpotz.ocgena.simulation_old.semantics
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
enum class SimulationSemanticsType {
@SerialName("original")
ORIGINAL,
@SerialName("time_pn")
SIMPLE_TIME_PN,
}
@Serializable
data class SimulationSem... | 0 | Kotlin | 0 | 1 | 32a25441882c4780ed6b964a24430ef086222b76 | 367 | ocgena | MIT License |
korge-foundation/src/korlibs/math/geom/_MathGeom.ds.kt | korlibs | 80,095,683 | false | {"WebAssembly": 14293935, "Kotlin": 9728800, "C": 77092, "C++": 20878, "TypeScript": 12397, "HTML": 6043, "Python": 4296, "Swift": 1371, "JavaScript": 328, "Shell": 254, "CMake": 202, "CSS": 66, "Batchfile": 41} | @file:Suppress("PackageDirectoryMismatch")
package korlibs.math.geom.ds
import korlibs.datastructure.*
import korlibs.datastructure.ds.*
import korlibs.math.annotations.*
import korlibs.math.geom.*
inline operator fun <T> Array2<T>.get(p: Point): T = get(p.x.toInt(), p.y.toInt())
inline operator fun <T> Array2<T>.se... | 444 | WebAssembly | 121 | 2,207 | dc3d2080c6b956d4c06f4bfa90a6c831dbaa983a | 6,636 | korge | Apache License 2.0 |
inference/inference-core/src/jvmTest/kotlin/io/kinference/operators/operations/MaxTest.kt | JetBrains-Research | 244,400,016 | false | {"Kotlin": 2301067, "Python": 4774, "JavaScript": 2402, "Dockerfile": 683} | package io.kinference.operators.operations
import io.kinference.KITestEngine.KIAccuracyRunner
import io.kinference.utils.TestRunner
import kotlin.test.Test
class MaxTest {
private fun getTargetPath(dirName: String) = "max/$dirName/"
@Test
fun test_max_example() = TestRunner.runTest {
KIAccuracyRu... | 7 | Kotlin | 7 | 154 | d98a9c110118c861a608552f4d18b6256897ccad | 2,240 | kinference | Apache License 2.0 |
executors/src/main/kotlin/name/anton3/executors/util/RecentlyStoredCache.kt | Anton3 | 159,801,334 | true | {"Kotlin": 1382186} | package name.anton3.executors.util
import java.util.*
import java.util.concurrent.ConcurrentHashMap
import java.util.concurrent.ConcurrentSkipListMap
import java.util.concurrent.atomic.AtomicInteger
import java.util.concurrent.atomic.AtomicLong
/**
* A map-like container, which automatically removes older entries
*... | 2 | Kotlin | 0 | 8 | 773c89751c4382a42f556b6d3c247f83aabec625 | 1,325 | kotlin-vk-api | MIT License |
library/src/main/kotlin/io/fluent/State.kt | rsicarelli | 124,893,442 | true | {"Kotlin": 3709, "Java": 1469} | package io.fluent
interface State {
fun type(): Type
}
| 0 | Kotlin | 0 | 0 | da1bdbc3a03942cb852f6b7be12800bbd16027c8 | 58 | Fluent | MIT License |
processor/src/main/kotlin/kotli/template/multiplatform/compose/dataflow/ai/gemini/GeminiProcessor.kt | kotlitecture | 790,159,970 | false | {"Kotlin": 545071, "Swift": 543, "JavaScript": 313, "HTML": 234} | package kotli.template.multiplatform.compose.dataflow.ai.gemini
import kotli.engine.BaseFeatureProcessor
import kotli.engine.FeatureProcessor
import kotli.engine.FeatureTag
import kotli.engine.TemplateState
import kotli.engine.template.VersionCatalogRules
import kotli.engine.template.rule.RemoveFile
import kotli.engin... | 2 | Kotlin | 3 | 55 | 0ea8aa724e156259d5d5c9c8a423513c61b5156b | 2,148 | template-multiplatform-compose | MIT License |
game/plugins/src/main/kotlin/gg/rsmod/plugins/content/areas/spawns/spawns_10899.plugin.kts | 2011Scape | 578,880,245 | false | {"Kotlin": 8904349, "Dockerfile": 1354} | package gg.rsmod.plugins.content.areas.spawns
spawn_npc(
npc = Npcs.IRON_DRAGON,
x = 2708,
z = 9459,
height = 0,
walkRadius = 5,
direction = Direction.NORTH,
static = false,
) // Iron dragon
spawn_npc(
npc = Npcs.IRON_DRAGON,
x = 2711,
z = 9448,
height = 0,
walkRadius = ... | 39 | Kotlin | 143 | 34 | e5400cc71bfa087164153d468979c5a3abc24841 | 1,783 | game | Apache License 2.0 |
la4k-android/src/main/kotlin/AndroidLogger.kt | wswartzendruber | 191,491,678 | false | null | /*
* SPDX-FileCopyrightText: 2020 William Swartzendruber <wswartzendruber@gmail.com>
*
* SPDX-License-Identifier: Apache-2.0
*/
package org.la4k.android
import android.util.Log
import org.la4k.Logger
public class AndroidLogger internal constructor(name: String) : Logger(name) {
val targetName =
if ... | 0 | Kotlin | 1 | 17 | 61f96b885f4a841e302fdef2ac2744c53edbade8 | 2,587 | la4k | Apache License 2.0 |
src/main/kotlin/hu/hempq/dungeonofoterion/attributes/types/Weapon.kt | hempq | 218,700,199 | false | null | package hu.hempq.dungeonofoterion.attributes.types
import hu.hempq.dungeonofoterion.attributes.ItemCombatStats
import hu.hempq.dungeonofoterion.extensions.GameEntity
interface Weapon : CombatItem
val GameEntity<Weapon>.attackValue: Int
get() = findAttribute(ItemCombatStats::class).get().attackValue
val GameEnti... | 0 | Kotlin | 0 | 0 | 5b910a2f2eefa58a720d5b580b2f76ef2b152963 | 418 | dungeon-of-oterion | Apache License 2.0 |
aspoet/src/main/kotlin/com/google/androidstudiopoet/generators/bazel/BazelLang.kt | android | 106,021,222 | false | null | /*
Copyright 2018 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
di... | 12 | Kotlin | 89 | 680 | f820e9cc0e5d7db4de9a7e31b818277143546f73 | 2,959 | android-studio-poet | Apache License 2.0 |
src/test/kotlin/ru/agalkin/beholder/DataBufferTest.kt | johnnywoo | 21,419,854 | false | null | package ru.agalkin.beholder
import ru.agalkin.beholder.testutils.NetworkedTestAbstract
import kotlin.test.Ignore
import kotlin.test.Test
import kotlin.test.assertEquals
class DataBufferTest : NetworkedTestAbstract() {
@Test
fun testSmoke() {
val messageText = "<15>1 2017-03-03T09:26:44+00:00 sender-ho... | 0 | Kotlin | 0 | 2 | f25f00b7dd0692ff67d0eda55e6a3d59299e6cdb | 3,431 | beholder | MIT License |
test-okhttp/src/main/kotlin/com/avito/test/http/ServerErrorDispatcher.kt | mduisenov | 237,274,875 | true | {"Kotlin": 2360982, "Python": 14063, "Shell": 13206, "Dockerfile": 7097, "Makefile": 35} | package com.avito.test.http
import okhttp3.mockwebserver.MockResponse
object ServerErrorDispatcher : ConstantResponseDispatcher(MockResponse().setResponseCode(500))
| 0 | Kotlin | 0 | 0 | b0513404cc36196fb87ddadd1894b9015beac952 | 167 | avito-android | Apache License 2.0 |
src/main/kotlin/utilities/MathSample.kt | crowdpro | 214,571,559 | true | {"Kotlin": 90370} | package utilities
object MathSample {
/***
* 10^9 + 7
*/
val mod: Long = (Math.pow(10.0, 9.0) + 7).toLong()
/**
* 最大公約数
* @param big 2つの値の大きな方
* @param small 2つの値の小さな方
*/
fun computeGreatestCommonDivisor(big: Long, small: Long): Long {
val rest = big % small
... | 0 | null | 0 | 0 | 426178dbd5369a1ff73bed5d6a2ed6e13989bcab | 2,103 | AtCoderLog | The Unlicense |
science/src/main/java/com/kylecorry/sol/science/astronomy/eclipse/solar/SolarEclipseCalculator.kt | kylecorry31 | 294,668,785 | false | null | package com.kylecorry.sol.science.astronomy.eclipse.solar
import com.kylecorry.sol.math.SolMath.square
import com.kylecorry.sol.science.astronomy.Astronomy
import com.kylecorry.sol.science.astronomy.SunTimesMode
import com.kylecorry.sol.science.astronomy.eclipse.Eclipse
import com.kylecorry.sol.science.astronomy.eclip... | 11 | Kotlin | 3 | 6 | 08f939c2359dfbf675607b50aee537052c287dbe | 10,323 | sol | MIT License |
src/main/kotlin/io/fixture/security/UserDetailsManagerImpl.kt | martinlau | 11,140,245 | false | null | /*
* #%L
* fixture
* %%
* Copyright (C) 2013 <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... | 6 | Kotlin | 0 | 0 | a751ea312708bac231f01dbf66ed1859a79f684a | 5,128 | fixture | Apache License 2.0 |
app/src/main/java/com/dicoding/parentpal/ui/auth/LoginActivity.kt | yeetologist | 728,081,674 | false | {"Kotlin": 74288} | package com.dicoding.parentpal.ui.auth
import android.content.Intent
import android.os.Bundle
import android.view.View
import androidx.activity.viewModels
import androidx.appcompat.app.AppCompatActivity
import com.dicoding.parentpal.data.remote.Result
import com.dicoding.parentpal.data.remote.response.LoginResponse
im... | 0 | Kotlin | 0 | 0 | b7eb602c9c78df4fd89c17ce381a9eed7a20e09b | 3,481 | MD | MIT License |
couchbase-lite/src/commonMain/kotlin/kotbase/Select.kt | jeffdgr8 | 518,984,559 | false | {"Kotlin": 2289925, "Python": 294} | /*
* Copyright 2022-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 ... | 0 | Kotlin | 0 | 7 | 188723bf0c4609b649d157988de44ac140e431dd | 852 | kotbase | Apache License 2.0 |
api/src/main/kotlin/de/jnkconsulting/e3dc/easyrscp/api/frame/WBExternalDataParser.kt | jnk-cons | 691,762,451 | false | {"Kotlin": 914173} | package de.jnkconsulting.e3dc.easyrscp.api.frame
/**
* Defines a parser to parse the binary data of the response blocks which are prefixed with EXTERN_DATA_*.
*
* @since 2.3
*/
interface WBExternalDataParser {
/**
* Parses the data blocks of type [de.jnkconsulting.e3dc.easyrscp.api.frame.tags.WBTag.EXTER... | 5 | Kotlin | 0 | 1 | b30bee512dabc47bd55eb91d598b9feb4b6b4654 | 891 | easy-rscp | MIT License |
rpgJavaInterpreter-core/src/test/kotlin/com/smeup/rpgparser/overlay/RpgParserOverlayTest11.kt | BezouwenR | 227,047,172 | true | {"Kotlin": 621023, "ANTLR": 158559, "Ruby": 1899, "PowerShell": 861, "Dockerfile": 551, "Batchfile": 395} | package com.smeup.rpgparser.overlay
import com.smeup.rpgparser.assertASTCanBeProduced
import com.smeup.rpgparser.assertCanBeParsed
import com.smeup.rpgparser.executeAnnotations
import com.smeup.rpgparser.interpreter.DummyDBInterface
import com.smeup.rpgparser.interpreter.InternalInterpreter
import com.smeup.rpgparser.... | 0 | null | 0 | 1 | fe6e72c95b3ee7280c3a39b4370d505fc4905a7f | 3,576 | jariko | Apache License 2.0 |
Introduction/LastPush/Helpers/test/Tests.kt | jetbrains-academy | 504,249,857 | false | null | import org.jetbrains.academy.test.system.invokeWithArgs
import org.junit.jupiter.api.Assertions
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.assertThrows
import org.junit.jupiter.params.ParameterizedTest
import org.junit.jupiter.params.provider.Arguments
import org.junit.jupiter.params.provider.Method... | 9 | Kotlin | 0 | 5 | fdd11c7ae582ff7a220218e4a66f87e3e0f97839 | 2,526 | kotlin-onboarding-introduction | MIT License |
app/src/main/java/com/mrz/sp/test/MainActivity.kt | z-zghiba | 270,005,551 | false | null | package com.mrz.sp.test
import android.os.Bundle
import android.util.Log
import androidx.appcompat.app.AppCompatActivity
import com.mrz.sp.Preference
import java.util.*
class MainActivity : AppCompatActivity() {
private val TAG = "PREF==>"
override fun onCreate(savedInstanceState: Bundle?) {
su... | 0 | Kotlin | 2 | 7 | 0900bd15eb70c77e12e557740ea7c364cba9f2b0 | 439 | SP | Apache License 2.0 |
src/main/kotlin/no/nav/samordning/hendelser/security/TpnrValidator.kt | navikt | 156,209,069 | false | null | package no.nav.samordning.hendelser.security
import io.netty.channel.ChannelOption
import io.netty.handler.timeout.ReadTimeoutHandler
import no.nav.pensjonsamhandling.maskinporten.validation.orgno.RequestAwareOrganisationValidator
import org.slf4j.LoggerFactory
import org.springframework.beans.factory.annotation.Value... | 0 | Kotlin | 0 | 1 | c49a2ae8a8d527739332200cb013ef3c9ea3c64c | 1,905 | samordning-hendelse-api | MIT License |
kotest-assertions/kotest-assertions-shared/src/jvmMain/kotlin/io/kotest/assertions/ErrorCollector.kt | kotest | 47,071,082 | false | null | @file:JvmName("jvmerrorcollector")
package io.kotest.assertions
import kotlinx.coroutines.asContextElement
actual val errorCollector: ErrorCollector get() = ThreadLocalErrorCollector.instance.get()
/**
* A [kotlin.coroutines.CoroutineContext.Element] which keeps the error collector synchronized with thread-switchi... | 37 | null | 470 | 3,260 | 6615f1b1a8b9b54d7f6981f08625b7cdcb9621d7 | 963 | kotest | Apache License 2.0 |
_src/Chapter03/JavaBasedConfiguration/src/lifecycleCallback/Foo.kt | paullewallencom | 319,169,129 | false | null | package lifecycleCallback
class Foo{
fun init(){
println("Foo is initializing...")
}
fun destroy(){
println("Foo is destroying...")
}
} | 0 | Kotlin | 0 | 1 | 7f70b39ec3926fe712617984974b13e6039df5c0 | 169 | android-spring-978-1-7893-4925-2 | Apache License 2.0 |
rsocket-engine/src/main/kotlin/io/timemates/api/rsocket/timers/commands/GetTimerCommand.kt | timemates | 575,534,072 | false | {"Kotlin": 150561} | package io.timemates.api.rsocket.timers.commands
import io.timemates.api.rsocket.ApiContainer
import io.timemates.api.rsocket.authorizations.toExtra
import io.timemates.api.rsocket.common.commands.RSocketCommand
import io.timemates.api.rsocket.timers.sdk
import io.timemates.sdk.timers.requests.GetTimerRequest
import i... | 2 | Kotlin | 0 | 9 | 937aa16f81a0bb657c7d902e3831994a1e8c7e5d | 864 | sdk | MIT License |
desktop/src/main/java/fr/arthurvimond/processingmultitemplate/desktop/Main.kt | ArthurVimond | 156,523,410 | false | null | package fr.arthurvimond.processingmultitemplate.desktop
import fr.arthurvimond.processingmultitemplate.sketch.Sketch
import processing.core.PApplet
fun main(args: Array<String>) {
PApplet.main(Sketch::class.java.name, args)
} | 0 | Kotlin | 0 | 0 | 34e7020eb425b7731c5be0d278cf2f02d5ad111b | 231 | processing-multi-template | Apache License 2.0 |
desktop/src/main/java/fr/arthurvimond/processingmultitemplate/desktop/Main.kt | ArthurVimond | 156,523,410 | false | null | package fr.arthurvimond.processingmultitemplate.desktop
import fr.arthurvimond.processingmultitemplate.sketch.Sketch
import processing.core.PApplet
fun main(args: Array<String>) {
PApplet.main(Sketch::class.java.name, args)
} | 0 | Kotlin | 0 | 0 | 34e7020eb425b7731c5be0d278cf2f02d5ad111b | 231 | processing-multi-template | Apache License 2.0 |
apps/etterlatte-brev-api/src/main/kotlin/no/nav/etterlatte/brev/vedtak/VedtaksvurderingKlient.kt | navikt | 417,041,535 | false | null | package no.nav.etterlatte.brev.vedtak
import com.github.michaelbull.result.mapBoth
import com.typesafe.config.Config
import io.ktor.client.HttpClient
import no.nav.etterlatte.libs.common.deserialize
import no.nav.etterlatte.libs.common.vedtak.Vedtak
import no.nav.etterlatte.libs.ktorobo.AzureAdClient
import no.nav.ett... | 6 | Kotlin | 0 | 3 | 8d41d2e006b5df41eacef84a670bc162ed72233c | 1,799 | pensjon-etterlatte-saksbehandling | MIT License |
src/main/kotlin/dev/michaelkaserer/demo/user/domain/UserService.kt | mi-kas | 408,870,249 | false | {"Kotlin": 15082} | package dev.michaelkaserer.demo.user.domain
import dev.michaelkaserer.demo.user.db.UserEntity
import dev.michaelkaserer.demo.user.db.UserRepository
import dev.michaelkaserer.demo.user.rest.CreateUserRequest
import org.springframework.stereotype.Service
import java.util.*
@Service
class UserService(
private val us... | 0 | Kotlin | 0 | 1 | 12ff7d61f8d30815c7b0352cc9be4f2e94a5d41b | 991 | springboot-webflux-security-apikey-demo | MIT License |
app/src/main/java/com/luckhost/lockscreen_notes/presentation/userLogin/LoginViewModel.kt | LuckHost | 818,856,648 | false | {"Kotlin": 114524} | package com.luckhost.lockscreen_notes.presentation.userLogin
import android.util.Log
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.luckhost.domain.models.Either
import com.luckhost.domain.models.network.AuthToken
import com.luckhost.domain.models.network.LoginInformation
impo... | 0 | Kotlin | 0 | 0 | 71032665797194ec512803a7dc2167ff75f1f466 | 3,091 | anynote_android | The Unlicense |
store/src/commonTest/kotlin/org/mobilenativefoundation/store/store5/util/fake/NotesDatabase.kt | MobileNativeFoundation | 226,169,258 | false | null | package org.mobilenativefoundation.store.store5.util.fake
import org.mobilenativefoundation.store.store5.util.model.SOTNote
internal class NotesDatabase {
private val db: MutableMap<NotesKey, SOTNote?> = mutableMapOf()
fun put(key: NotesKey, input: SOTNote, fail: Boolean = false): Boolean {
if (fail) ... | 49 | Kotlin | 187 | 2,836 | fbcd34fd168deaf5f731414e1315c704219ac6c8 | 895 | Store | Apache License 2.0 |
app/src/main/java/com/example/myvideocallapp/VideoCallActivity.kt | 100mslive | 389,945,562 | false | null | package com.example.myvideocallapp
import android.os.Bundle
import androidx.activity.viewModels
import androidx.appcompat.app.AppCompatActivity
import androidx.recyclerview.widget.GridLayoutManager
import androidx.recyclerview.widget.RecyclerView
import com.example.myvideocallapp.videocall.list.PeerAdapter
const val ... | 0 | Kotlin | 1 | 6 | 05f7bcd50791a033f7ee545eeea16c703ec6207b | 1,304 | hello-world-android | MIT License |
LibExpQQ/src/main/java/com/xy/qq/login/LoginAssemblyView.kt | xiuone | 291,512,847 | false | null | package com.xy.qq.login
import android.view.View
import xy.xy.base.assembly.load.BaseAssemblyViewLoadDialog
interface LoginAssemblyView : BaseAssemblyViewLoadDialog,LoginQQListener {
fun onCreateQQLoginView(): View?
} | 0 | Kotlin | 1 | 2 | 51bc46fde7d03484241b04cddc77236dbecf4469 | 223 | ajinlib | Apache License 2.0 |
app/src/main/kotlin/com/judas/katachi/feature/configuration/ConfigurationRepository.kt | Judas | 313,080,504 | false | {"Kotlin": 52142} | package com.judas.katachi.feature.configuration
import com.judas.katachi.feature.theme.Theme
import com.judas.katachi.utility.prefReader
import com.judas.katachi.utility.prefWriter
class ConfigurationRepository {
companion object {
// Content
private const val KEY_MOVE_SPEED = "move-speed"
... | 0 | Kotlin | 0 | 1 | dd5a536863851ff70ec4c6e60be70ba2298a5abd | 2,778 | Katachi | Apache License 2.0 |
compiler-integration-test/src/test/kotlin/land/sungbin/composeinvestigator/compiler/test/_source/codegen/NoStateTracking.kt | jisungbin | 703,660,716 | false | {"Kotlin": 348589} | /*
* Developed by Ji Sungbin 2024.
*
* Licensed under the MIT.
* Please see full license: https://github.com/jisungbin/ComposeInvestigator/blob/main/LICENSE
*/
@file:Suppress("TestFunctionName", "UNUSED_VARIABLE", "unused")
@file:OptIn(ExperimentalTransitionApi::class)
package land.sungbin.composeinvestigator.co... | 17 | Kotlin | 5 | 212 | aceb52e85ae8c3eee25e7809fdfebc993bd5261f | 3,253 | ComposeInvestigator | MIT License |
src/main/kotlin/VersionControlSystem.kt | Amirbhn | 702,739,506 | false | {"Kotlin": 6569} | import java.io.File
import java.io.FileNotFoundException
import java.util.*
fun main(args: Array<String>) {
when {
args.isEmpty() || args[0] == "--help" -> printHelpPage()
args[0] == "config" -> handleConfigCommand(args)
args[0] == "add" -> handleAddCommand(args)
args[0] == "log" ->... | 0 | Kotlin | 0 | 0 | 16d68a0e8fc69e45b40ac2382318073ba2450182 | 6,569 | VersionControlSystem | Creative Commons Zero v1.0 Universal |
libs/serialization/serialization-kryo/src/main/kotlin/net/corda/kryoserialization/serializers/CordaClosureSerializer.kt | corda | 346,070,752 | false | {"Kotlin": 20585419, "Java": 308202, "Smarty": 115357, "Shell": 54409, "Groovy": 30246, "PowerShell": 6470, "TypeScript": 5826, "Solidity": 2024, "Batchfile": 244} | package net.corda.kryoserialization.serializers
import com.esotericsoftware.kryo.Kryo
import com.esotericsoftware.kryo.io.Output
import com.esotericsoftware.kryo.serializers.ClosureSerializer
import java.io.Serializable
internal object CordaClosureSerializer : ClosureSerializer() {
const val ERROR_MESSAGE = "Unab... | 11 | Kotlin | 27 | 69 | d478e119ab288af663910f9a2df42a7a7b9f5bce | 819 | corda-runtime-os | Apache License 2.0 |
publish-component/src/main/java/com/kotlin/android/publish/component/widget/article/xml/element/P.kt | R-Gang-H | 538,443,254 | false | null | package com.kotlin.android.publish.component.widget.article.xml.element
import android.graphics.Typeface
import android.text.SpannableStringBuilder
import android.text.Spanned
import android.text.style.AlignmentSpan
import android.text.style.RelativeSizeSpan
import android.text.style.StyleSpan
import com.kotlin.androi... | 0 | Kotlin | 0 | 1 | e63b1f9a28c476c1ce4db8d2570d43a99c0cdb28 | 3,233 | Mtime | Apache License 2.0 |
boot-app-server-spring-cloud/dashboard/src/main/kotlin/com/ittianyu/dashboard/controller/DashboardConfigController.kt | ittianyu | 194,419,824 | false | null | package com.ittianyu.dashboard.controller
import com.ittianyu.common.dto.ResultDTO
import com.ittianyu.common.utils.JsonUtils
import com.ittianyu.common.web.utils.ResultFactory
import com.ittianyu.dashboard.service.ConfigService
import com.ittianyu.dashboardapi.api.DashboardConfigApi
import com.ittianyu.dashboardapi.d... | 1 | Kotlin | 0 | 11 | 136b573124a399606be2105da3f8d20212df3d23 | 1,225 | boot-app | Apache License 2.0 |
src/main/kotlin/com/framstag/domainbus/source/postgres/StateProcessor.kt | Framstag | 233,686,175 | false | null | package com.framstag.domainbus.source.postgres
import com.framstag.domainbus.event.EventBatch
import java.util.concurrent.CompletableFuture
internal interface StateProcessor {
fun process(stateData : StateData, producer: CompletableFuture<EventBatch>, context : Context):ProcessResult
} | 0 | Kotlin | 0 | 0 | 9b3b358e9ee6b1e5bac8dd9d72cccefe9c4c09ab | 292 | domainbus | Apache License 2.0 |
app/src/main/java/com/google/samples/apps/sunflower/newsscreen/InfoDetailFragment.kt | Angryestbird | 267,251,847 | false | null | package com.google.samples.apps.sunflower.newsscreen
import android.content.Intent
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.app.ShareCompat
import androidx.core.widget.NestedScrollView
import androidx.fragment.app.Fragment
i... | 0 | Kotlin | 1 | 0 | 11c8f4ae77fb480ed4dfe92e2ccd99e18a831526 | 4,812 | orangetv-android | Apache License 2.0 |
src/test/kotlin/dev/arli/openapi/mapper/OpenAPIMapperTest.kt | alipovatyi | 487,519,792 | false | {"Kotlin": 451322} | package dev.arli.openapi.mapper
import com.google.common.truth.Truth.assertThat
import dev.arli.openapi.OpenAPIGenConfiguration
import dev.arli.openapi.model.ComponentsObject
import dev.arli.openapi.model.HttpSecurityScheme
import dev.arli.openapi.model.Info
import dev.arli.openapi.model.InfoObject
import dev.arli.ope... | 0 | Kotlin | 1 | 1 | 3637b43dc2e255f263b559a5a80ebf80f3e78d96 | 3,280 | ktor-openapi | Apache License 2.0 |
app/src/main/java/com/hci/tom/android/network/TOMWebSocketListener.kt | TOM-Platform | 837,201,728 | false | {"Kotlin": 154904} | package com.hci.tom.android.network
import android.util.Log
import okhttp3.Response
import okhttp3.WebSocket
import okhttp3.WebSocketListener
import okio.ByteString
open class TOMWebSocketListener(private val worker: ReconnectableWorker): WebSocketListener() {
var isConnected = false
override fun onOpen(webSo... | 0 | Kotlin | 0 | 1 | baa0ffa4d3fb4e16490f2860f54b18247dbc5a8c | 1,087 | TOM-Client-WearOS | MIT License |
src/test/kotlin/com/github/br1992/geometry/SphereTest.kt | br1992 | 442,847,310 | false | {"Kotlin": 20689} | package com.github.br1992.geometry
import io.kotest.core.spec.style.FreeSpec
import io.kotest.matchers.types.shouldBeInstanceOf
class SphereTest : FreeSpec() {
init {
"Sphere" - {
"should intersect with ray inside of it" {
val sphere = Sphere(pos3(0.0, 0.0, 0.0), 1.0)
... | 0 | Kotlin | 0 | 0 | 8e86230b9895095f3240a9df774ae379a2dea5ba | 1,822 | Luzombra | MIT License |
FinFamily/src/main/java/com/bandtec/finfamily/Avatar.kt | Natayoane | 274,787,455 | true | {"Kotlin": 153399} | package com.bandtec.finfamily
import android.content.Intent
import android.graphics.drawable.BitmapDrawable
import android.os.Bundle
import android.view.View
import android.widget.ImageView
import androidx.appcompat.app.AppCompatActivity
class Avatar : AppCompatActivity() {
override fun onCreate(savedInstanceStat... | 0 | null | 0 | 1 | 13b5d44e5cff959d3551db6fec6cf08a42ee422d | 826 | fin-family-app | MIT License |
app/src/main/java/com/example/myapplication/Fragments/FragmentWeather.kt | ralonsobeas | 189,850,764 | false | {"Kotlin": 12960} | package com.example.myapplication.Fragments
import android.content.Context
import android.content.res.Resources
import android.gesture.GestureUtils
import android.net.Uri
import android.os.Bundle
import android.support.v4.app.Fragment
import android.util.Log
import android.view.LayoutInflater
import android.view.View
... | 0 | Kotlin | 0 | 1 | df2e220b87e294f6fd0666162a5d8c5ccfe0516a | 4,382 | AppAndroidElTiempoMiranda | MIT License |
nugu-ux-kit/src/main/java/com/skt/nugu/sdk/platform/android/ux/widget/ChromeWindow.kt | yun-jun-hyengh | 373,401,405 | true | {"Kotlin": 2356664, "Java": 1646, "Ruby": 1432} | /**
* Copyright (c) 2019 SK Telecom Co., Ltd. All rights reserved.
*
* 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 requir... | 0 | null | 0 | 0 | eaeb90f1e37e75dc63ae17c487fdee4b4eb3429b | 12,667 | nugu-android | Apache License 2.0 |
github_inherited/android/app/src/main/kotlin/com/example/github_inherited/MainActivity.kt | whosramoss | 291,567,061 | false | null | package com.example.github_inherited
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 0 | Dart | 11 | 49 | 00e9849525ec5eadcf3b00dbcd9d5e05123de33a | 133 | clean-dart-github | Apache License 2.0 |
hellogin-core/src/iosMain/kotlin/com/wonddak/hellogin/core/Error.ios.kt | jmseb3 | 833,469,940 | false | {"Kotlin": 12886, "Ruby": 9398} | package com.wonddak.hellogin.core
import platform.Foundation.NSError
actual typealias Error = NSError | 0 | Kotlin | 0 | 0 | cdf944fb05a3fb440e434b6d4b41238773ba40a9 | 103 | helLogin | Apache License 2.0 |
app/src/main/java/dev/m13d/somenet/timeline/TimelineScreen.kt | 3yebMB | 851,249,108 | false | {"Kotlin": 57980} | package dev.m13d.somenet.timeline
import androidx.compose.foundation.border
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fil... | 1 | Kotlin | 0 | 0 | 3ce84083291901006ea2f916ef71cef0777a8608 | 4,015 | Some-network | The Unlicense |
androidApp/src/main/java/com/hotmail/arehmananis/composedemo/android/data/remote/ApiServiceKtor.kt | abdul-rehman-ghazi | 841,388,176 | false | {"Kotlin": 53537, "Swift": 342} | package com.hotmail.arehmananis.composedemo.android.data.remote
import com.hotmail.arehmananis.composedemo.android.data.remote.dto.response.GetNewsResponse
interface ApiServiceKtor {
suspend fun topHeadlines(page: Int): GetNewsResponse
suspend fun everything(page: Int, keyword: String): GetNewsResponse
} | 0 | Kotlin | 0 | 0 | f09db8742b34d48b4aa914e46719542c4dbdce8c | 316 | news-app-compose | MIT License |
client/app/src/main/java/com/petrov/vitaliy/caraccidentapp/domain/models/requests/documents/AdministrativeOffenceCaseDecisionUpdateRequest.kt | ADsty | 493,215,764 | false | null | package com.petrov.vitaliy.caraccidentapp.domain.models.requests.documents
import java.sql.Date
import java.sql.Time
data class AdministrativeOffenceCaseDecisionUpdateRequest(
val documentID: Long,
val updatedDateOfFill: Date,
val updatedTimeOfFill: Time,
val updatedPlaceOfFill: String,
val update... | 0 | Kotlin | 0 | 0 | d3e957717cb51980d428c533530d45673c1b42fc | 581 | thesis-2022 | MIT License |
courses/kotlin/2-control-flow/code-practice/whats-the-sum/WhatsTheSum.kt | HenestrosaDev | 511,219,452 | false | {"HTML": 128144, "Java": 84555, "C#": 78147, "C++": 75352, "Python": 71625, "C": 61964, "Swift": 38825, "Ruby": 28428, "CSS": 20118, "JavaScript": 13726, "Go": 8636, "Kotlin": 7832, "R": 3731, "Rebol": 17} | fun main(args: Array<String>) {
readLine()?.toInt()?.let { start ->
readLine()?.toInt()?.let { end ->
var sum = 0
for (i in start..end) {
sum += i
}
println(sum)
}
}
} | 0 | HTML | 5 | 39 | 9e3ed6d67a12218b79092414d039994a926102d1 | 191 | sololearn | MIT License |
input/core/src/commonMain/kotlin/symphony/properties/Bounded.kt | aSoft-Ltd | 632,021,007 | false | null | @file:JsExport
package symphony.properties
import kotlin.js.JsExport
interface Bounded<out B> {
val max: B?
val min: B?
} | 0 | Kotlin | 0 | 0 | d12f05cdc6be080e14b48e66ef9c0d346a6ba5ca | 132 | symphony | MIT License |
fluent-icons-extended/src/commonMain/kotlin/com/konyaco/fluent/icons/regular/DeviceMeetingRoomRemote.kt | Konyaco | 574,321,009 | false | null |
package com.konyaco.fluent.icons.regular
import androidx.compose.ui.graphics.vector.ImageVector
import com.konyaco.fluent.icons.Icons
import com.konyaco.fluent.icons.fluentIcon
import com.konyaco.fluent.icons.fluentPath
public val Icons.Regular.DeviceMeetingRoomRemote: ImageVector
get() {
if (_deviceMee... | 1 | Kotlin | 3 | 83 | 9e86d93bf1f9ca63a93a913c990e95f13d8ede5a | 3,270 | compose-fluent-ui | Apache License 2.0 |
ProfileService/src/main/kotlin/com/github/saboteur/beeline/profileservice/model/Caller.kt | insotriplesix | 256,169,374 | false | null | package com.github.saboteur.beeline.profileservice.model
data class Caller(
val ctn: String,
val callerId: String
) {
companion object {
val empty = Caller(
ctn = "",
callerId = ""
)
}
} | 0 | Kotlin | 0 | 1 | 1266d45fe626d43daa302c69380ced87fcd8fcef | 243 | beeline-task | MIT License |
src/test/intg/com/kotlinspring/controller/CourseControllerIntgTest.kt | osawa-koki | 565,465,778 | false | {"Kotlin": 17093, "Dockerfile": 237} | package com.kotlinspring.controller;
import com.kotlinspring.dto.CourseDTO;
import com.kotlinspring.entity.Course
import com.kotlinspring.repository.CourseRepository
import com.kotlinspring.util.courseEntityList
import org.junit.jupiter.api.Assertions
import org.junit.jupiter.api.Assertions.assertEquals
import org.jun... | 0 | Kotlin | 0 | 0 | 0d3922e941bcc470631c46c1d71c339375f81c75 | 3,674 | cource-catalog-service.kt | Apache License 2.0 |
app/src/main/java/com/wechantloup/side/modules/details/DetailsRouter.kt | Pilou44 | 187,889,252 | false | null | package com.wechantloup.side.modules.details
import android.content.Intent
import com.wechantloup.side.R
import com.wechantloup.side.modules.core.BaseRouter
class DetailsRouter: BaseRouter(), DetailsContract.Router {
override fun share(view: DetailsContract.View, text: String) {
val sharingIntent = Inten... | 0 | Kotlin | 0 | 0 | 0bae574d1c95ec8c0e72435a0d74d07e011203b7 | 660 | side | Apache License 2.0 |
app/src/main/java/com/ashishbhoi/tipcalculator/screen/home/TipView.kt | ashishbhoi | 443,431,940 | false | {"Kotlin": 26114} | package com.ashishbhoi.tipcalculator.screen.home
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.material.Text
import androidx.compose.run... | 0 | Kotlin | 0 | 0 | 86031ac94e76e088b92f3932b8b5a5611e8520fb | 1,159 | Tip-Calculator-Jetpack-Compose-Android | MIT License |
duration/src/main/kotlin/eu/markov/kotlin/lucidtime/duration/Days.kt | markov | 156,861,890 | false | null | package eu.markov.kotlin.lucidtime.duration
inline val Double.days: Duration get() = (24.0 * this).hours
inline val Float.days: Duration get() = this.toDouble().days
inline val Long.days: Duration get() = (24L * this).hours
inline val Number.days: Duration get() = this.toLong().days
inline val Double.day: Duration ge... | 0 | Kotlin | 0 | 11 | 43b19665b1e5a5c910633e5c9c9507f1e21585b4 | 463 | lucid-time | Apache License 2.0 |
feature-dapp-impl/src/main/java/io/novafoundation/nova/feature_dapp_impl/presentation/search/DappSearchFragment.kt | novasamatech | 415,834,480 | false | {"Kotlin": 11112596, "Rust": 25308, "Java": 17664, "JavaScript": 425} | package io.novafoundation.nova.feature_dapp_impl.presentation.search
import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.core.os.bundleOf
import androidx.lifecycle.lifecycleScope
import dev.chrisbanes.insetter.applyInsetter
import io.novafo... | 14 | Kotlin | 30 | 50 | 166755d1c3388a7afd9b592402489ea5ca26fdb8 | 4,365 | nova-wallet-android | Apache License 2.0 |
app-tracking-protection/vpn-impl/src/test/java/com/duckduckgo/mobile/android/vpn/service/state/RealVpnStateMonitorTest.kt | hojat72elect | 822,396,044 | false | {"Kotlin": 11626231, "HTML": 65873, "Ruby": 16984, "C++": 10312, "JavaScript": 5520, "CMake": 1992, "C": 1076, "Shell": 784} |
package com.duckduckgo.mobile.android.vpn.service.state
import com.duckduckgo.common.test.CoroutineTestRule
import com.duckduckgo.mobile.android.vpn.VpnFeaturesRegistry
import com.duckduckgo.mobile.android.vpn.dao.HeartBeatEntity
import com.duckduckgo.mobile.android.vpn.dao.VpnHeartBeatDao
import com.duckduckgo.mobi... | 0 | Kotlin | 0 | 0 | b89591136b60933d6a03fac43a38ee183116b7f8 | 3,113 | DuckDuckGo | Apache License 2.0 |
app/src/main/java/com/mikelau/notes/data/local/NoteLocalRepository.kt | mike14u | 215,270,917 | false | null | package com.mikelau.notes.data.local
import android.app.Application
import androidx.lifecycle.LiveData
import com.mikelau.notes.data.models.Note
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.launch
class NoteLocalRepository(application: Application) {
priva... | 0 | Kotlin | 0 | 0 | 36e90224db9288a34afb628939540af119927230 | 1,036 | android-stack-reference | MIT License |
app/src/main/java/com/kuyuzhiqi/imageblur/MainActivity.kt | kuyu132 | 158,989,580 | false | null | package com.kuyuzhiqi.imageblur
import android.content.Intent
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.support.v7.widget.LinearLayoutManager
import android.view.View
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
... | 0 | Kotlin | 0 | 0 | 3164bfedb7e2f24df9dfa7b53929a3cff6801095 | 1,968 | ImageBlur | Apache License 2.0 |
src/main/kotlin/dev/paulshields/chronomancy/common/Exceptions.kt | Pkshields | 333,756,390 | false | null | package dev.paulshields.chronomancy.common
class KeyNotFoundException(key: String) : RuntimeException("Key $key was not found.")
class TwelveHourPostfixNotValidException(item: String) : RuntimeException("$item is neither AM or PM.")
class TimeIsNotValidException(timeAsString: String) : RuntimeException("$timeAsStrin... | 0 | Kotlin | 0 | 0 | 9a6cfe2ba145c5904d98c391417a23ef01876923 | 345 | Chronomancy | MIT License |
defitrack-rest/defitrack-protocol-services/defitrack-swapfish/src/main/java/io/defitrack/SwapfishApplication.kt | decentri-fi | 426,174,152 | false | null | package io.defitrack
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication
import org.springframework.scheduling.annotation.EnableScheduling
@SpringBootApplication
@EnableScheduling
class SwapfishApplication
fun main(args: Array<String>) {
runApplicati... | 16 | Kotlin | 6 | 5 | e4640223e69c30f986b8b4238e026202b08a5548 | 352 | defi-hub | MIT License |
app/src/main/java/com/sample/marvel_mvvm_flow/data/MarvelApi.kt | carloxavier | 490,957,339 | false | {"Kotlin": 11584} | package com.sample.marvel_mvvm_flow.data
import com.sample.marvel_mvvm_flow.domain.MarvelCharacter
import retrofit2.http.GET
interface MarvelApi {
@GET("/v1/public/characters")
suspend fun fetchMarvelCharacters(): MarvelApiResponse<List<MarvelCharacter>>
} | 0 | Kotlin | 0 | 2 | 02e5ed82ec5f18cc7f8119545e1b1e32e0ef8f0c | 266 | android-mvvm-livedata-flow | MIT License |
MyReactNativeApp/android/app/src/main/java/com/awesomeproject/AnExampleReactPackage/ToastModule.kt | ios122 | 106,680,141 | false | null | package com.awesomeproject.AnExampleReactPackage
import android.widget.Toast
import com.facebook.react.bridge.ReactApplicationContext
import com.facebook.react.bridge.ReactContextBaseJavaModule
import com.facebook.react.bridge.ReactMethod
import java.util.HashMap
/**
* Created by yanfeng on 2017/10/12.
*/
class ... | 0 | Kotlin | 2 | 9 | 8180f7210c228ad3ec7d6188d0fae042de5f15bc | 1,017 | kotlin-module-sample-for-reactnative | MIT License |
app/src/main/java/com/faigenbloom/familybudget/ui/spendings/list/SpendingsListPage.kt | ZakharchenkoWork | 706,155,222 | false | {"Kotlin": 746176} | package com.faigenbloom.familybudget.ui.spendings.list
import androidx.compose.foundation.Image
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxHeight
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.MaterialTheme
import androidx.comp... | 0 | Kotlin | 0 | 0 | e81fa66d6afd5b79d3299583a73378c3ee1463ca | 7,727 | FamilyBudget | Apache License 2.0 |
tim/src/main/java/com/angcyo/tim/bean/Emoji.kt | angcyo | 229,037,684 | false | {"Kotlin": 3416972, "JavaScript": 5542, "HTML": 1598} | package com.angcyo.tim.bean
import android.graphics.Bitmap
import com.angcyo.tim.util.FaceManager.defaultEmojiSize
/**
*
* Email:<EMAIL>
* @author angcyo
* @date 2021/11/11
* Copyright (c) 2020 ShenZhen Wayto Ltd. All rights reserved.
*/
class Emoji {
var desc: String? = null
var filter: String? = null ... | 0 | Kotlin | 4 | 4 | 7c9000a117a0b405c17d19a067874413c52042ba | 439 | UICoreEx | MIT License |
app/src/main/java/com/biomorf/pllmaster/DebugTag.kt | TohaRG2 | 189,725,751 | false | null | package com.biomorf.pllmaster
/**
* Created by anton on 28.11.17. Тэг для записи в лог
*/
object DebugTag {
val TAG = "PLLMaster"
} | 0 | Kotlin | 0 | 0 | cb8f761fa510f11131f39c20f9d8adc3bc1301d9 | 139 | PLLMaster | Apache License 2.0 |
app/src/main/java/com/example/merchantinventory/AdminDetails.kt | Naphtali-cpu | 415,510,092 | false | {"Kotlin": 6575} | package com.example.merchantinventory
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
class AdminDetails : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_admin_details)
}
} | 0 | Kotlin | 0 | 0 | 3942f225fddee15dd470ced0021f3f0069010a9c | 319 | Merchant-Inventory | The Unlicense |
app/src/main/java/com/alwan/bajpsubmission3/data/source/local/room/CatalogueDao.kt | alwanfauzy | 445,742,309 | false | null | package com.alwan.bajpsubmission3.data.source.local.room
import androidx.lifecycle.LiveData
import androidx.paging.DataSource
import androidx.room.*
import androidx.sqlite.db.SimpleSQLiteQuery
import com.alwan.bajpsubmission3.data.source.local.entity.MovieEntity
import com.alwan.bajpsubmission3.data.source.local.entit... | 0 | Kotlin | 0 | 0 | 2376b3edc46404c814644a7bcb55dd1f96bf2803 | 1,455 | bajp-s3 | Apache License 2.0 |
camera/camera-camera2-pipe-integration/src/test/java/androidx/camera/camera2/pipe/integration/adapter/SupportedSurfaceCombinationTest.kt | KOLANICH-libs | 445,548,183 | true | {"Kotlin": 68310818, "Java": 60327498, "C++": 9028407, "Python": 292398, "AIDL": 264519, "Shell": 174895, "HTML": 21175, "ANTLR": 19860, "CMake": 12136, "TypeScript": 7599, "C": 7083, "Swift": 3153, "JavaScript": 1343} | /*
* Copyright 2022 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 0 | Kotlin | 0 | 0 | c542b3a7cf2c46dfe3e071ca57956761e90aaff3 | 108,719 | androidx | Apache License 2.0 |
src/main/kotlin/com/paulmethfessel/bp/lang/xml/ProbeComment.kt | Paulpanther | 370,134,784 | false | null | package com.paulmethfessel.bp.lang.xml
import com.intellij.psi.xml.XmlTag
import com.intellij.psi.xml.XmlTokenType
import com.intellij.xml.util.XmlUtil
import com.paulmethfessel.bp.ide.decorators.BpAnnotator
import com.paulmethfessel.bp.ide.decorators.ProbeHintsProvider2
@Deprecated("Will be removed")
class ProbeComm... | 11 | Kotlin | 0 | 3 | 978cba16290ff95b7cf93b563211373877b66bdc | 772 | intellij-babylonian-plugin | MIT License |
app/src/main/java/thecodemonks/org/nottzapp/ui/dialog/ErrorDialog.kt | Sleekice | 714,873,013 | false | {"Kotlin": 60992} | /**********************************************************
* ERROR DIALOG FRAGMENT
**********************************************************/
/*
* This code defines a BottomSheetDialogFragment that displays an error dialog.
*/
package thecodemonks.org.nottzapp.ui.dialog
import android.os.Bundle
import android... | 0 | Kotlin | 0 | 0 | 44f3fc48d7cfc8ff041df08fa5d82999e922bda8 | 2,138 | NottzApp | MIT License |
api/src/main/java/com/getcode/generator/MnemonicGenerator.kt | code-payments | 723,049,264 | false | {"Kotlin": 2199788, "C": 198685, "C++": 83029, "Java": 52287, "Shell": 9082, "Ruby": 4626, "CMake": 2594} | package com.getcode.generator
import com.getcode.crypt.MnemonicPhrase
import com.getcode.utils.Base58String
import com.getcode.utils.Base64String
import javax.inject.Inject
class MnemonicGenerator @Inject constructor(
): Generator<Base64String, MnemonicPhrase> {
override fun generate(predicate: Base64String): Mn... | 3 | Kotlin | 13 | 14 | 3cda858e3f8be01e560d72293fcd801f5385adfd | 531 | code-android-app | MIT License |
code/text/PostalAddress.kt | check24-profis | 469,706,312 | false | null | @Composable
fun PostalAddressExample() {
var address by remember { mutableStateOf("") }
TextField(
value = address,
onValueChange = { address = it },
)
} | 0 | Kotlin | 3 | 11 | abd64a7d2edac0dbedb4d67d3c0f7b49d9173b88 | 183 | jetpack-compose-is-like-android-view | MIT License |
typescript-kotlin/src/main/kotlin/typescript/nodeModuleNameResolver.fun.kt | turansky | 393,199,102 | false | null | // Automatically generated - do not modify!
@file:JsModule("typescript")
@file:JsNonModule
package typescript
/*
external fun nodeModuleNameResolver(moduleName: string, containingFile: string, compilerOptions: CompilerOptions, host: ModuleResolutionHost, cache?: ModuleResolutionCache, redirectedReference?: ResolvedP... | 0 | Kotlin | 1 | 10 | bcf03704c0e7670fd14ec4ab01dff8d7cca46bf0 | 381 | react-types-kotlin | Apache License 2.0 |
frontend/src/jsMain/kotlin/com/monkopedia/konstructor/frontend/model/KonstructorEditorState.kt | Monkopedia | 418,215,448 | false | null | /*
* Copyright 2022 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | 0 | Kotlin | 0 | 0 | 38f0c0d9adeba659e5cb7bf6b88a6995a3c7546f | 7,652 | Konstructor | Apache License 2.0 |
app/src/main/java/com/itranslate/recorder/general/utils/BindingAdapterUtils.kt | shahin68 | 400,558,240 | false | null | package com.itranslate.recorder.general.utils
import androidx.databinding.BindingAdapter
import androidx.paging.CombinedLoadStates
import androidx.paging.LoadState
import com.google.android.material.progressindicator.CircularProgressIndicator
import com.google.android.material.progressindicator.LinearProgressIndicator... | 0 | Kotlin | 0 | 0 | eb77ff0dbac4e59c18838288378c606c8c3aecf6 | 1,877 | iRecorder | MIT License |
Chapter10/src/main/kotlin/06_Racing.kt | PacktPublishing | 654,570,300 | false | {"Kotlin": 133148} | import arrow.core.merge
import arrow.fx.coroutines.raceN
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.delay
import kotlinx.coroutines.withContext
import kotlin.random.Random
suspend fun main() {
val winner: Pair<String, String> = raceN(
{ preciseWeather() },
{ weatherToday() },
... | 0 | Kotlin | 2 | 1 | 5f6669e33db38d3099cdf34bee3ab8750807d10b | 622 | Kotlin-Design-Patterns-and-Best-Practices_Third-Edition | MIT License |
gi/src/commonMain/kotlin/data/activity/ActivityScheduleInfo.kt | Anime-Game-Servers | 642,871,918 | false | {"Kotlin": 612536} | package data.activity
import org.anime_game_servers.core.base.annotations.RemovedIn
import org.anime_game_servers.core.base.annotations.AddedIn
import org.anime_game_servers.core.base.Version
import org.anime_game_servers.core.base.annotations.proto.ProtoModel
@AddedIn(Version.GI_CB2)
@ProtoModel
interface ActivitySc... | 0 | Kotlin | 3 | 6 | 6a45cbe89682bc25543b24db9a21f8012d9f53bc | 541 | anime-game-multi-proto | MIT License |
straight/src/commonMain/kotlin/me/localx/icons/straight/outline/WorkflowSettingAlt.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 | 5,185 | icons | MIT License |
app/src/main/java/ro/smg/exchangerates/util/Log.kt | mscarlat95 | 262,355,828 | false | null | package ro.smg.exchangerates.util
import ro.smg.exchangerates.BuildConfig
class Log {
companion object {
private val LOG_ENABLE: Boolean = BuildConfig.DEBUG
fun e(tag: String?, msg: String) {
if (LOG_ENABLE) android.util.Log.e(tag, msg)
}
fun e(tag: String?, msg: Stri... | 0 | Kotlin | 0 | 0 | 7dc945f3dd72c37bd29e7cf108c04afca172cf4f | 1,394 | ExchangeRates | Apache License 2.0 |
app/src/main/java/id/del/ac/delstat/data/repository/literatur/LiteraturRepositoryImpl.kt | matthewalfredoo | 487,180,171 | false | {"Kotlin": 521336} | package id.del.ac.delstat.data.repository.literatur
import id.del.ac.delstat.data.model.literatur.LiteraturApiResponse
import id.del.ac.delstat.data.repository.literatur.datasource.LiteraturRemoteDataSource
import id.del.ac.delstat.domain.repository.LiteraturRepository
import java.io.File
class LiteraturRepositoryImp... | 0 | Kotlin | 0 | 1 | 94f508452aa302caf7d40d25c6fd4868a40fbf49 | 2,636 | DelStat | MIT License |
shared/src/commonMain/kotlin/app/duss/easyproject/domain/params/CustomerEnquiryItemCreateOrUpdateRequest.kt | Shahriyar13 | 721,031,988 | false | {"Kotlin": 247935, "Swift": 6282, "Ruby": 2302} | package app.duss.easyproject.domain.params
import com.darkrockstudios.libraries.mpfilepicker.MPFile
class CustomerEnquiryItemCreateOrUpdateRequest (
val id: Long?,
val customerEnquiryId: Long,
val itemId: Long?,
val item: ItemCreateRequest?,
var quantity: Int,
var note: String? = null,
val... | 0 | Kotlin | 0 | 0 | 3b21efcf1c9bcdc2148884458a7c34f75020e071 | 373 | Kara_EasyProject_CMP | Apache License 2.0 |
kt/src/test/java/spark/surgery/Topo.kt | 5Gene | 815,162,991 | false | {"Kotlin": 118306} | package spark.surgery
import java.util.*
/**
* 拓扑排序并计算每个节点的层级,支持字符串节点
* @param graph 表示有向无环图,键为节点(字符串),值为该节点依赖的所有节点(字符串)
* @return 节点及其对应层级的映射关系,如果存在环,返回 null
*/
fun topologicalSortWithLevels(graph: Map<String, List<String>>): Map<String, Int>? {
val indegree = mutableMapOf<String, Int>()
val adjacencyLis... | 0 | Kotlin | 0 | 0 | 289aa355fa520dfe69516554f012d4d1ca9bbed5 | 2,794 | replace | Apache License 2.0 |
app/src/main/java/com/mohfahmi/mkaassesment/di/AppModule.kt | MohFahmi27 | 447,899,964 | false | null | package com.mohfahmi.mkaassesment.di
import com.mohfahmi.mkaassesment.domain.UsersGithubInteractor
import com.mohfahmi.mkaassesment.domain.usecase.UsersGithubUseCase
import com.mohfahmi.mkaassesment.ui.detail.DetailViewModel
import com.mohfahmi.mkaassesment.ui.home.HomeViewModel
import org.koin.androidx.viewmodel.dsl.... | 0 | Kotlin | 0 | 1 | 9a53345d539d005c199a42123e4a0703f85974f6 | 567 | MkaAssesment | MIT License |
petblocks-bukkit-plugin/petblocks-bukkit-nms-113R1/src/main/java/com/github/shynixn/petblocks/bukkit/logic/business/service/Item113R1ServiceImpl.kt | Tominous | 180,851,910 | true | {"Kotlin": 1474097, "Shell": 2544} | @file:Suppress("UNCHECKED_CAST")
package com.github.shynixn.petblocks.bukkit.logic.business.service
import com.github.shynixn.petblocks.api.business.enumeration.MaterialType
import com.github.shynixn.petblocks.api.business.proxy.ItemStackProxy
import com.github.shynixn.petblocks.api.business.service.ItemService
impor... | 0 | Kotlin | 0 | 1 | 8ca7dcc8083200dab6869fdb4e0a493ebc6ea2b0 | 4,648 | PetBlocks | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.