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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
lithic-kotlin-core/src/main/kotlin/com/lithic/api/models/FinancialAccountCreditConfigurationUpdateParams.kt | lithic-com | 658,974,440 | false | null | // File generated from our OpenAPI spec by Stainless.
package com.lithic.api.models
import com.fasterxml.jackson.annotation.JsonAnyGetter
import com.fasterxml.jackson.annotation.JsonAnySetter
import com.fasterxml.jackson.annotation.JsonProperty
import com.fasterxml.jackson.databind.annotation.JsonDeserialize
import c... | 1 | null | 0 | 2 | e26aa7f2ea0ecea64858e969d444d60291946a69 | 14,574 | lithic-kotlin | Apache License 2.0 |
text/text/src/androidTest/java/androidx/compose/ui/text/android/selection/WordIteratorTest.kt | RikkaW | 389,105,112 | false | null | /*
* Copyright 2019 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... | 30 | null | 950 | 7 | 6d53f95e5d979366cf7935ad7f4f14f76a951ea5 | 26,217 | androidx | Apache License 2.0 |
plot-base-portable/src/commonMain/kotlin/jetbrains/datalore/plot/base/geom/AreaRidgesGeom.kt | JetBrains | 176,771,727 | false | null | /*
* Copyright (c) 2022. JetBrains s.r.o.
* Use of this source code is governed by the MIT license that can be found in the LICENSE file.
*/
package jetbrains.datalore.plot.base.geom
import jetbrains.datalore.base.geometry.DoubleVector
import jetbrains.datalore.base.interval.DoubleSpan
import jetbrains.datalore.pl... | 72 | Kotlin | 43 | 830 | 06984a3321984037169c446c56544e3e0c4a1f2c | 7,071 | lets-plot | MIT License |
app/src/main/java/eu/kanade/tachiyomi/ui/manga/external/ExternalItem.kt | CarlosEsco | 182,704,531 | false | null | package eu.kanade.tachiyomi.ui.manga.external
import android.view.View
import android.widget.ImageView
import android.widget.TextView
import com.mikepenz.fastadapter.FastAdapter
import com.mikepenz.fastadapter.items.AbstractItem
import eu.kanade.tachiyomi.R
import eu.kanade.tachiyomi.data.external.ExternalLink
open c... | 77 | null | 70 | 934 | 317243499e4131d3c3ee3604d81f8b69067414a4 | 1,506 | Neko | Apache License 2.0 |
Android/java/doraemonkit/src/main/java/com/didichuxing/doraemonkit/DoKitReal.kt | yoyiyi | 369,498,121 | true | {"Ruby": 4, "Markdown": 26, "Text": 4, "Ignore List": 26, "OpenStep Property List": 16, "XML": 435, "Objective-C": 706, "JSON": 146, "Objective-C++": 1, "C": 7, "HTML": 7, "Swift": 23, "JavaScript": 94, "Vue": 34, "Less": 3, "Gradle": 38, "Java Properties": 14, "Shell": 17, "Batchfile": 3, "INI": 17, "Proguard": 15, "K... | package com.didichuxing.doraemonkit
import android.app.Activity
import android.app.Application
import android.text.TextUtils
import android.util.Log
import com.didichuxing.doraemonkit.config.GlobalConfig
import com.didichuxing.doraemonkit.config.GpsMockConfig
import com.didichuxing.doraemonkit.config.PerformanceSpInfo... | 0 | Java | 0 | 1 | c461eaff8b9ed0d2e867d62d051acd9ce590bb8b | 15,853 | DoraemonKit | Apache License 2.0 |
app/src/main/java/com/jmdev/marvelheroes/data/network/HeroService.kt | juacosoft | 431,293,126 | false | {"Kotlin": 36911} | package com.jmdev.marvelheroes.data.network
import android.util.Log
import com.jmdev.marvelheroes.data.PageControler
import com.jmdev.marvelheroes.data.models.characters.CharacterModel
import com.jmdev.marvelheroes.data.models.comics.ComicsModel
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withCont... | 0 | Kotlin | 0 | 0 | 227c320bc7f6ffa591e1bbf21f418f506fa8b8ef | 1,939 | MarvelHeroesMVVM | Apache License 2.0 |
app/src/main/java/com/andrewgiang/homecontrol/ui/container/Container.kt | zularizal | 164,204,405 | false | null | /*
* Copyright 2018 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License.
*
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writin... | 0 | Kotlin | 0 | 0 | 58859ca2f76f8127735fad3c05d839b834af74ce | 750 | home-control | Apache License 2.0 |
plugins/fir/fir-plugin-prototype/src/org/jetbrains/kotlin/fir/plugin/FirAllOpenComponentRegistrar.kt | nskvortsov | 367,097,840 | true | null | /*
* Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors.
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
*/
package org.jetbrains.kotlin.fir.plugin
import org.jetbrains.kotlin.fir.extensions.FirExtensionRegistrar
impo... | 1 | null | 1 | 3 | 58c7aa9937334b7f3a70acca84a9ce59c35ab9d1 | 856 | kotlin | Apache License 2.0 |
app/src/main/java/io/aethibo/kart/features/product/presentation/components/ProductThumbnail.kt | primepixel | 626,035,115 | false | null | package io.aethibo.kart.features.product.presentation.components
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layou... | 0 | Kotlin | 0 | 0 | e4a6bc4c1c00d8e681c1172dbd864a2984ac1547 | 2,165 | Kart | Apache License 2.0 |
common/kotlinx-coroutines-core-common/src/Annotations.common.kt | DarkLab | 142,666,798 | true | {"Kotlin": 1920618, "CSS": 8215, "JavaScript": 2505, "Ruby": 1927, "HTML": 1675, "Shell": 1308, "Java": 356} | /*
* Copyright 2016-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
// NOTE: We are defining them in a special internalAnnotations package because they would break
// user code that uses kotlinx.coroutines library otherwise, see https://youtrack.jetbrains.com/issue/KT-23727
pa... | 0 | Kotlin | 0 | 0 | 9964b3d97377963e353f10d7dcca7e18770997a3 | 730 | kotlinx.coroutines | Apache License 2.0 |
src/test/kotlin/com/korrit/kotlin/ktor/features/errorresponses/TestHelpers.kt | Koriit | 217,291,432 | false | null | package com.korrit.kotlin.ktor.features.errorresponses
import com.jayway.jsonpath.matchers.JsonPathMatchers.hasJsonPath
import com.jayway.jsonpath.matchers.JsonPathMatchers.isJson
import io.ktor.http.ContentType
import io.ktor.http.HttpStatusCode
import io.ktor.http.withCharset
import io.ktor.server.testing.TestApplic... | 1 | null | 0 | 1 | 1b6ae82b2397c408c1ded777fd445063bc0365c1 | 1,543 | ktor-error-responses | MIT License |
src/commonMain/kotlin/com/lehaine/kiwi/component/LevelDynamicComponent.kt | LeHaine | 354,414,117 | false | null | package com.lehaine.kiwi.component
import com.soywiz.korge.debug.uiCollapsibleSection
import com.soywiz.korge.debug.uiEditableValue
import com.soywiz.korui.UiContainer
import kotlin.math.floor
interface LevelDynamicComponent : DynamicComponent {
var rightCollisionRatio: Double
var leftCollisionRatio: Double
... | 0 | Kotlin | 0 | 4 | 02f3e73f6776a6a378903153bdea4e49c37862d4 | 4,100 | kiwi | MIT License |
core/data/src/main/java/com/wap/wapp/core/data/repository/event/EventRepositoryImpl.kt | pknu-wap | 689,890,586 | false | {"Kotlin": 485245, "Shell": 233} | package com.wap.wapp.core.data.repository.event
import com.wap.wapp.core.data.utils.toISOLocalDateTimeString
import com.wap.wapp.core.model.event.Event
import com.wap.wapp.core.network.source.event.EventDataSource
import java.time.LocalDate
import java.time.LocalDateTime
import javax.inject.Inject
class EventReposito... | 6 | Kotlin | 0 | 8 | c113f9748956e4fd0400f632eaed93ccf3e2ef78 | 2,819 | WAPP | MIT License |
src/main/kotlin/com/theapache64/gilfoyle/feature/device/SelectDeviceViewModel.kt | theapache64 | 332,862,297 | false | null | package com.theapache64.gilfoyle.feature.device
import com.theapache64.cyclone.core.livedata.LiveData
import com.theapache64.cyclone.core.livedata.MutableLiveData
import com.theapache64.gilfoyle.data.repos.AdbRepo
import com.theapache64.gilfoyle.data.repos.ConfigRepo
import javax.inject.Inject
class SelectDeviceViewM... | 0 | Kotlin | 1 | 23 | f6da94f22cb99205c0a5eec6d2488b3f3e5bfb0e | 1,330 | gilfoyle | Apache License 2.0 |
idea/tests/testData/structuralsearch/callExpression/funArgCallVarRef.kt | JetBrains | 278,369,660 | false | null | fun a(): List<Int> {
val x = <warning descr="SSR">listOf(1)</warning>
val y = listOf(1, 2)
return if(x.size == 1) x else y
} | 0 | Kotlin | 30 | 82 | cc81d7505bc3e9ad503d706998ae8026c067e838 | 136 | intellij-kotlin | Apache License 2.0 |
shared/src/main/kotlin/dev/fastmc/graphics/shared/instancing/entity/EntityInstancingBuilder.kt | FastMinecraft | 447,964,530 | false | {"Kotlin": 812223, "Java": 295977, "GLSL": 19607} | package dev.fastmc.graphics.shared.instancing.entity
import dev.fastmc.graphics.shared.instancing.AbstractInstancingBuilder
import dev.fastmc.graphics.shared.instancing.entity.info.IEntityInfo
import dev.fastmc.graphics.shared.model.Model
import dev.fastmc.graphics.shared.resource.ResourceEntry
import dev.fastmc.graph... | 1 | Kotlin | 1 | 61 | 74eb9d6af0d4829caa8a6069f39bb3e0fa168538 | 1,809 | fastmc-graphics | MIT License |
technocracy.foundation/src/main/kotlin/net/cydhra/technocracy/foundation/network/componentsync/GuiUpdateListener.kt | notphinix | 229,493,759 | true | {"Kotlin": 1063752, "GLSL": 8977} | package net.cydhra.technocracy.foundation.network.componentsync
import net.cydhra.technocracy.foundation.model.components.IComponent
import net.cydhra.technocracy.foundation.model.multiblock.api.BaseMultiBlock
import net.cydhra.technocracy.foundation.model.tileentities.machines.MachineTileEntity
import net.cydhra.tech... | 0 | Kotlin | 0 | 0 | 71a044f54f813b0213b6ae1f0394f49324ac9c1c | 2,865 | Technocracy | MIT License |
multisrc/overrides/madara/mangakio/src/MangaKio.kt | lmk1988 | 253,204,269 | false | null | package eu.kanade.tachiyomi.extension.en.mangakio
import eu.kanade.tachiyomi.multisrc.madara.Madara
import java.text.SimpleDateFormat
import java.util.Locale
class MangaKio : Madara(
"Manga Kio",
"https://mangakio.com",
"en",
dateFormat = SimpleDateFormat("MMM d, yyyy", Locale.US),
) {
override va... | 546 | null | 1130 | 5 | 3e1df100b87358d8b50ce8dd998e04552db9c91d | 353 | tachiyomi-extensions | Apache License 2.0 |
src/main/kotlin/dev/paulshields/aoc/day14/DockingData.kt | Pkshields | 318,658,287 | false | null | package dev.paulshields.aoc.day14
import dev.paulshields.aoc.common.readFileAsStringList
val valueSetCaptureRegex = Regex("mem\\[(\\d+)] = (\\d+)")
fun main() {
val program = readFileAsStringList("/day14/InitializationProgram.txt")
var memory = runInitializationProgramThroughDecoderChipV1(program)
print... | 0 | Kotlin | 0 | 0 | a7bd42ee17fed44766cfdeb04d41459becd95803 | 1,849 | AdventOfCode2020 | MIT License |
app/src/main/java/com/marcouberti/ninegame/ui/board/CardSwipeListener.kt | marcouberti | 178,014,894 | false | null | package com.marcouberti.ninegame.ui.board
import com.marcouberti.ninegame.utils.OnSwipeListener
interface CardSwipeListener {
fun onSwipe(position: Pair<Int, Int>?, direction: OnSwipeListener.Direction)
fun onTap(position: Pair<Int, Int>?)
} | 0 | Kotlin | 0 | 1 | 3dde0fc62c2d1c1edfa6e0afa5dc957467fb2aac | 251 | nine-game | Apache License 2.0 |
aws-ecs-agent/src/main/kotlin/jetbrains/buildServer/clouds/ecs/EcsAgentConfigurationProvider.kt | Julia-Alexandrova | 107,976,053 | true | {"Kotlin": 49257, "JavaScript": 17258, "Java": 11798, "CSS": 298} | package jetbrains.buildServer.clouds.ecs
import jetbrains.buildServer.agent.AgentLifeCycleAdapter
import jetbrains.buildServer.agent.AgentLifeCycleListener
import jetbrains.buildServer.agent.BuildAgent
import jetbrains.buildServer.agent.BuildAgentConfigurationEx
import jetbrains.buildServer.util.EventDispatcher
import... | 0 | Kotlin | 0 | 0 | e9b5d51a82f6eaad33baf0967825c2094ba440af | 1,300 | teamcity-amazon-ecs-plugin | Apache License 2.0 |
kotlin-cdk-wrapper/src/main/kotlin/io/cloudshiftdev/awscdk/services/bedrock/CfnFlowProps.kt | cloudshiftinc | 667,063,030 | false | {"Kotlin": 149148378} | @file:Suppress("RedundantVisibilityModifier","RedundantUnitReturnType","RemoveRedundantQualifierName","unused","UnusedImport","ClassName","REDUNDANT_PROJECTION","DEPRECATION")
package io.cloudshiftdev.awscdk.services.bedrock
import io.cloudshiftdev.awscdk.IResolvable
import io.cloudshiftdev.awscdk.common.CdkDslMarker... | 0 | Kotlin | 0 | 4 | ddf2bfd2275b50bb86a667c4298dd92f59d7e342 | 24,913 | kotlin-cdk-wrapper | Apache License 2.0 |
core/src/jvmTest/kotlin/entity/MessageTest.kt | kordlib | 202,856,399 | false | {"Kotlin": 2728142, "Java": 87103} | package dev.kord.core.entity
import dev.kord.core.behavior.MessageBehavior
import dev.kord.core.cache.data.MessageData
import dev.kord.core.equality.BehaviorEqualityTest
import dev.kord.core.equality.EntityEqualityTest
import dev.kord.core.mockKord
import io.mockk.every
import io.mockk.mockk
internal class MessageTes... | 52 | Kotlin | 82 | 922 | e99c5c583229d20e69632aae39cee47da637abef | 684 | kord | MIT License |
frontend/app/src/main/java/com/tec/frontend/DashboardPadres.kt | pedroalonsoms | 701,575,731 | false | {"Kotlin": 300410, "TypeScript": 18271} | package com.tec.frontend
import android.content.ContentValues
import android.content.Intent
import android.os.Bundle
import android.util.Log
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.background
import androidx.compose.foundation.border
imp... | 1 | Kotlin | 4 | 0 | 663ed05f18d349d5f94373d5e771730f7adc3697 | 7,454 | mypictograms | MIT License |
android_sdk/src/main/java/com/swirepay/android_sdk/ui/invoice/model/Invoice.kt | swirepay | 344,241,532 | false | null | package com.swirepay.android_sdk.ui.invoice.model
import android.os.Parcelable
import kotlinx.parcelize.Parcelize
@Parcelize
data class Invoice(val gid: String) : Parcelable | 0 | Kotlin | 3 | 1 | 6d959e4feec3525ae38adfba27f8dc0535655683 | 175 | swirepay-android | MIT License |
app/src/main/java/com/maku/pombe/data/repo/DataStoreRepository.kt | ma-za-kpe | 373,888,998 | false | null | package com.maku.pombe.data.repo
import android.content.Context
import androidx.datastore.DataStore
import androidx.datastore.preferences.*
import com.maku.pombe.utils.Constants.Companion.PREFERENCES_BACK_ONLINE
import com.maku.pombe.utils.Constants.Companion.PREFERENCES_NAME
import dagger.hilt.android.qualifiers.Appl... | 0 | Kotlin | 0 | 0 | cfdb0a2b0ad3399174b3cb33602854a8779df06e | 1,476 | Pombe | The Unlicense |
library/src/main/java/com/cleveroad/droidart/TranslationSettings.kt | Cleveroad | 140,836,589 | false | null | package com.cleveroad.droidart
import android.graphics.PointF
import android.os.Parcel
import android.os.Parcelable
/**
* Additional class with settings for translation
*/
internal class TranslationSettings : Settings {
companion object {
private const val DEFAULT_TRANSLATION = 0F
@Suppress("... | 3 | Kotlin | 27 | 211 | 29aee46602a0422dfbfe57eedd5673e054f0dda7 | 2,054 | DroidArt | MIT License |
core/src/main/java/com/staygrateful/core/network/remote/repository/INetworkRepository.kt | rikyahmad | 804,148,308 | false | {"Kotlin": 178776} | package com.staygrateful.core.network.remote.repository
import com.staygrateful.core.network.remote.mapper.Resource
import com.staygrateful.core.network.remote.model.DetailGameResponse
import com.staygrateful.core.network.remote.model.GameResponse
import com.staygrateful.core.network.remote.model.SearchGameResponse
im... | 0 | Kotlin | 0 | 0 | 91a03109624d69530a69523cb1f934f8022ac9b2 | 633 | GameListApp | MIT License |
godot-kotlin/godot-library/src/nativeGen/kotlin/godot/AudioEffectHighShelfFilter.kt | utopia-rise | 238,721,773 | false | {"Kotlin": 655494, "Shell": 171} | // THIS FILE IS GENERATED! DO NOT EDIT IT MANUALLY! ALL CHANGES TO IT WILL BE OVERWRITTEN ON EACH BUILD
package godot
import godot.internal.utils.invokeConstructor
import kotlinx.cinterop.COpaquePointer
open class AudioEffectBandPassFilter : AudioEffectFilter() {
override fun __new(): COpaquePointer = invokeConstru... | 17 | Kotlin | 17 | 286 | 8d51f614df62a97f16e800e6635ea39e7eb1fd62 | 391 | godot-kotlin-native | MIT License |
src/client/kotlin/slabmagic/item/color/NodeBlockItemColor.kt | Jempasam | 717,593,852 | false | {"Kotlin": 356942, "Java": 1036} | package assets.`slab-magic`.block.color
import net.minecraft.client.color.item.ItemColorProvider
import net.minecraft.item.ItemStack
import net.minecraft.util.DyeColor
import slabmagic.components.SlabMagicComponents
import slabmagic.helper.ColorTools
object NodeBlockItemColor: ItemColorProvider {
override fun get... | 0 | Kotlin | 0 | 0 | 5293f67ccc2484961d3c588c2d0824743be4066f | 524 | SlateMagic | Creative Commons Zero v1.0 Universal |
src/commonMain/kotlin/nl/jacobras/humanreadable/i18n/locales/ItalianLocale.kt | jacobras | 696,961,730 | false | {"Kotlin": 23915} | package nl.jacobras.humanreadable.i18n.locales
import nl.jacobras.humanreadable.i18n.HumanLocale
import nl.jacobras.humanreadable.i18n.HumanTimeUnit
internal object ItalianLocale : HumanLocale {
override val code = "it"
override val timeAgo: String
get() = "%time% fa"
override val timeInFuture: S... | 0 | Kotlin | 0 | 1 | 716e71e0d1e15c4fd2ea82fdb2357f86f2b238e5 | 1,064 | Human-Readable | MIT License |
app/src/main/java/io/github/binishmanandhar23/differentscreensize/notification/PlayerNotificationCreation.kt | binishmanandhar23 | 507,541,156 | false | {"Kotlin": 60485} | package io.github.binishmanandhar23.differentscreensize.notification
import android.app.Notification
import android.app.PendingIntent
import android.content.Context
import android.content.Intent
import android.graphics.BitmapFactory
import android.media.MediaMetadata
import android.media.session.MediaSession
import an... | 0 | Kotlin | 0 | 0 | 1e2282e161750e11592cdbf5ca92367c71a45c5a | 6,959 | DifferentScreenSize | Apache License 2.0 |
sdk/src/main/java/com/microsoft/did/sdk/crypto/keys/KeyTypeFactory.kt | TaffyWrinkle | 337,989,562 | true | {"Kotlin": 572132} | /*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*---------------------------------------------------------------... | 0 | null | 0 | 0 | e29bf44879f3177c7ae07018e5d97a61053b1978 | 1,215 | VerifiableCredential-SDK-Android | MIT License |
src/main/kotlin/no/nav/syfo/minesykmeldte/MineSykmeldteMapper.kt | navikt | 399,790,648 | false | {"Kotlin": 245024, "Dockerfile": 277} | package no.nav.syfo.minesykmeldte
import no.nav.syfo.minesykmeldte.model.Hendelse
import no.nav.syfo.minesykmeldte.model.HendelseType
import no.nav.syfo.minesykmeldte.model.PeriodeEnum
import no.nav.syfo.minesykmeldte.model.PreviewFremtidigSoknad
import no.nav.syfo.minesykmeldte.model.PreviewNySoknad
import no.nav.syf... | 1 | Kotlin | 1 | 1 | 492ff1d5a3ee4b703bbe338cb362f6eaaff8fe98 | 4,997 | dinesykmeldte-backend | MIT License |
starter/app/src/main/java/com/udacity/asteroidradar/main/MainRepository.kt | sergioat7 | 374,732,782 | false | null | /*
* Copyright (c) 2021 <NAME>. All rights reserved.
* Created by <NAME> on 27/6/2021
*/
package com.udacity.asteroidradar.main
import com.udacity.asteroidradar.Constants
import com.udacity.asteroidradar.PictureOfDay
import com.udacity.asteroidradar.api.NasaApi
import com.udacity.asteroidradar.api.getNextSevenDays... | 0 | Kotlin | 0 | 0 | 01e642cbb0bf18ef1171ad4f8dfe5004a55ec390 | 1,828 | Udacity-AsteroidRadar | MIT License |
plugins/kotlin/idea/tests/testData/quickfix/convertLateinitPropertyToNotNullDelegate/basic2.kt | ingokegel | 72,937,917 | true | null | // "Convert to notNull delegate" "true"
// WITH_STDLIB
<caret>lateinit var x: Int
// FUS_QUICKFIX_NAME: org.jetbrains.kotlin.idea.quickfix.ConvertLateinitPropertyToNotNullDelegateFix | 1 | null | 1 | 2 | b07eabd319ad5b591373d63c8f502761c2b2dfe8 | 182 | intellij-community | Apache License 2.0 |
core/common/src/main/kotlin/com/wecanteen105/core/common/network/di/CoroutineScopeModule.kt | chongiscool | 845,810,159 | false | {"Kotlin": 44087} | package com.wecanteen105.core.common.network.di
import com.wecanteen105.core.common.network.Dispatcher
import com.wecanteen105.core.common.network.TmdDispatchers
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.components.SingletonComponent
import kotlinx.coroutines.Coroutine... | 0 | Kotlin | 0 | 0 | c584aa021db90a760d3b813555cefb8b26113e09 | 875 | tmdtv | Apache License 2.0 |
GIData/src/commonMain/kotlin/org/anime_game_servers/game_data_models/data/dungeon/DungeonStateType.kt | Hartie95 | 650,687,061 | false | null | package org.anime_game_servers.game_data_models.data.dungeon
import org.anime_game_servers.core.base.interfaces.IntKey
enum class DungeonStateType(val id: Int) : IntKey {
DUNGEON_STATE_NONE(0),
DUNGEON_STATE_RELEASE(1),
DUNGEON_STATE_TEST(2),
DUNGEON_STATE_UNKNOWN(9999);
override fun getIntKey() ... | 0 | null | 1 | 2 | 7820a4c8ec2d56d083f86034d15702789a523429 | 326 | AnimeGameDataModels | MIT License |
src/test/kotlin/TestAgilityPointer.kt | lindsaygelle | 833,228,388 | false | {"Kotlin": 238198} | import kotlin.test.BeforeTest
import kotlin.test.Test
import kotlin.test.assertEquals
internal class TestAgilityPointer {
private class AgilityPointer : dqbb.AgilityPointer {
override var agility: Int = 0
}
private lateinit var agilityAccumulator: dqbb.AgilityPointer
@BeforeTest
fun befor... | 0 | Kotlin | 0 | 0 | cf02a9e2ee8fb401598e720bffa22c21e8bfa470 | 570 | dqbb | MIT License |
orca-queue/src/main/kotlin/com/netflix/spinnaker/orca/log/ExecutionLogListener.kt | spinnaker-release | 100,423,592 | false | null | /*
* Copyright 2017 Netflix, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License")
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | 1 | null | 1 | 1 | 83757f4618be6088e8d8676b4fd8bdfce7d30c90 | 1,881 | orca | Apache License 2.0 |
feature/note/src/main/java/com/example/feature/note/component/MoreMenuComponent.kt | llsit | 827,324,299 | false | {"Kotlin": 296104} | package com.example.feature.note.component
import androidx.compose.foundation.layout.Box
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.MoreVert
import androidx.compose.material3.DropdownMenu
import androidx.compose.material3.DropdownMenuItem
import androidx.compose.material... | 0 | Kotlin | 0 | 0 | 49a6c318a7514e46a2c97b281eb7e074b731907c | 1,658 | ItemNote | MIT License |
app/src/main/kotlin/com/base/mvp/BaseView.kt | fahmidev013 | 151,547,245 | false | null | package com.base.mvp
/**
* Created by Fahmi Hakim on 23.05.2017.
*/
interface BaseView {
fun onError()
fun setPresenter(presenter: BasePresenter<*>)
} | 0 | Kotlin | 1 | 0 | d646f600cdb478ad2754c5017a7d9b5538ab883b | 161 | kotlin-mvp | MIT License |
app/src/main/kotlin/com/base/mvp/BaseView.kt | fahmidev013 | 151,547,245 | false | null | package com.base.mvp
/**
* Created by <NAME> on 23.05.2017.
*/
interface BaseView {
fun onError()
fun setPresenter(presenter: BasePresenter<*>)
} | 0 | Kotlin | 1 | 0 | d646f600cdb478ad2754c5017a7d9b5538ab883b | 156 | kotlin-mvp | MIT License |
app/src/main/java/com/thanosfisherman/grpcplayground/domain/usecases/LoginUseCase.kt | ThanosFisherman | 528,540,686 | false | {"Kotlin": 66718} | package com.thanosfisherman.grpcplayground.domain.usecases
import com.thanosfisherman.grpcplayground.domain.models.DUserProfileModel
import com.thanosfisherman.grpcplayground.domain.repos.PrefsRepo
import com.thanosfisherman.grpcplayground.domain.states.LoginResultState
import kotlinx.coroutines.CoroutineScope
import ... | 0 | Kotlin | 0 | 9 | 2c6b1177b7ddd096d944faf920f049cdc3af421c | 1,411 | gRPCPlayground | Apache License 2.0 |
src/main/kotlin/com/example/scraping/repository/content/model/CommentContent.kt | mobyleOfficial | 440,164,730 | false | {"Kotlin": 51657} | package com.example.scraping.repository.content.model
data class CommentContent(val message: String) | 0 | Kotlin | 0 | 0 | 3515cefe6b89848eda11bbf8595d53552c784b43 | 101 | filmoow_api | MIT License |
uisdk/src/main/java/tech/dojo/pay/uisdk/presentation/components/CheckBoxItem.kt | dojo-engineering | 478,120,913 | false | null | package tech.dojo.pay.uisdk.presentation.components
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.... | 1 | null | 2 | 3 | 4f9e9be58189d22f5269a53bcc1a2b2028a777df | 2,995 | android-dojo-pay-sdk | MIT License |
build-logic/conventions/src/main/kotlin/AndroidLibraryConventionPlugin.kt | GuilhE | 576,783,011 | false | null | @file:Suppress("UnstableApiUsage", "unused")
import com.android.build.gradle.LibraryExtension
import org.gradle.api.JavaVersion
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.api.artifacts.VersionCatalog
import org.gradle.api.artifacts.VersionCatalogsExtension
import org.gradle.kotlin.dsl... | 1 | Kotlin | 0 | 38 | 627e25707eb8ef1f3af13c08e316862ae0b0085a | 1,599 | JsonBroadcaster | Apache License 2.0 |
ktorfit-annotations/src/commonMain/kotlin/de/jensklingenberg/ktorfit/http/GET.kt | Foso | 203,655,484 | false | {"Kotlin": 330650, "Ruby": 2354, "Java": 692, "Swift": 345} | package de.jensklingenberg.ktorfit.http
/** Make a GET request.
* ```
* @GET("issue")
* suspend fun getIssue(@Query("id") id: String) : Issue
* ```
* @param value relative url path, if empty, you need to have a parameter with [Url]
* */
@Target(AnnotationTarget.FUNCTION)
annotation class GET(val value: String = ... | 32 | Kotlin | 40 | 1,558 | 16d3481c25b151e5abb37d7cb2ee4e86c5db9d49 | 324 | Ktorfit | Apache License 2.0 |
shared/src/main/kotlin/xlitekt/shared/resource/MapSquareResource.kt | runetopic | 448,110,155 | false | null | package xlitekt.shared.resource
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
data class MapSquareResource(
val archive: Int,
val group: Int,
@SerialName("name_hash")
val nameHash: Int,
val name: String,
val mapsquare: Int,
val key: List<In... | 2 | Kotlin | 3 | 8 | 8f88434e6c02e420f60dc9c42d3570b901b96b78 | 325 | xlitekt | MIT License |
src/main/kotlin/com/cognifide/gradle/aem/common/instance/LocalInstanceManager.kt | piotr-andruszkiewicz-wttech | 267,069,008 | true | {"Kotlin": 577980, "Shell": 5281, "Batchfile": 267} | package com.cognifide.gradle.aem.common.instance
import com.cognifide.gradle.aem.AemException
import com.cognifide.gradle.aem.AemExtension
import com.cognifide.gradle.aem.AemVersion
import com.cognifide.gradle.aem.common.instance.action.AwaitDownAction
import com.cognifide.gradle.aem.common.instance.action.AwaitUpActi... | 0 | null | 0 | 0 | 966c8ae3b32ad0cfb0c4b14328c33d0690ebd96c | 20,308 | gradle-aem-plugin | Apache License 2.0 |
core/data/remote/src/main/java/com/lcabral/artseventh/core/data/remote/paging/MoviePagingSource.kt | LucianaCabral | 706,897,860 | false | {"Kotlin": 187343} | package com.lcabral.artseventh.core.data.remote.paging
import androidx.paging.PagingSource
import androidx.paging.PagingState
import com.lcabral.artseventh.core.data.remote.model.toMovies
import com.lcabral.artseventh.core.data.remote.source.RemoteDataSource
import com.lcabral.artseventh.core.domain.model.Movie
class... | 0 | Kotlin | 0 | 0 | d0e9570062399b6016524dbc587255faa842da75 | 1,407 | ArtSeventh | MIT License |
src/main/kotlin/interfaces/SpecifiedModuleTableOutput.kt | JaggieGor | 397,651,030 | false | null | package interfaces
interface SpecifiedModuleTableOutput : TableOutput {
fun getModuleName():String
} | 0 | Kotlin | 0 | 0 | a956cfd9ea1a4f896e3fef29a24286fdf33e24a7 | 105 | NLSParser | Apache License 2.0 |
simplified-books-registry-api/src/main/java/org/nypl/simplified/books/book_registry/BookPreviewStatus.kt | ThePalaceProject | 367,082,997 | false | {"Kotlin": 3279542, "JavaScript": 853788, "Java": 374503, "CSS": 65407, "HTML": 49220, "Shell": 5017, "Ruby": 178} | package org.nypl.simplified.books.book_registry
import one.irradia.mime.api.MIMEType
import java.io.File
import java.net.URL
sealed class BookPreviewStatus {
object None : BookPreviewStatus()
open class HasPreview : BookPreviewStatus() {
data class Downloading(
val bytesPerSecond: Long?,
val cu... | 0 | Kotlin | 4 | 8 | 638d560ec98f0bc87fead8d28086098997c94e92 | 720 | android-core | Apache License 2.0 |
common/src/main/java/com/yogeshpaliyal/common/utils/PasswordGenerator.kt | yogeshpaliyal | 334,702,754 | false | null | package com.yogeshpaliyal.common.utils
class PasswordGenerator(
private var length: Int,
private var includeUpperCaseLetters: Boolean,
private var includeLowerCaseLetters: Boolean,
private var includeSymbols: Boolean,
private var includeNumbers: Boolean
) {
constructor() : this(10, true, true,... | 22 | Kotlin | 60 | 87 | 63a3e6e702b9cd28324cb6a8b06967ca3b456111 | 1,365 | KeyPass | MIT License |
test_runner/src/main/kotlin/ftl/args/yml/IYmlKeys.kt | Flank | 84,221,974 | false | {"Kotlin": 1748173, "Java": 101254, "Swift": 41229, "Shell": 10674, "Objective-C": 10006, "Dart": 9705, "HTML": 7235, "Gherkin": 4210, "TypeScript": 2717, "Ruby": 2272, "JavaScript": 1764, "SCSS": 1365, "Batchfile": 1183, "EJS": 1061, "Go": 159} | package ftl.args.yml
import com.fasterxml.jackson.annotation.JsonProperty
import kotlin.reflect.KClass
import kotlin.reflect.KMutableProperty
import kotlin.reflect.full.findAnnotation
import kotlin.reflect.full.memberProperties
interface IYmlKeys {
val group: String
val keys: List<String>
object Group {
... | 64 | Kotlin | 115 | 676 | b40904b4e74a670cf72ee53dc666fc3a801e7a95 | 776 | flank | Apache License 2.0 |
partiql-lang/src/test/kotlin/org/partiql/lang/eval/evaluatortestframework/PipelineEvaluatorTestAdapter.kt | partiql | 186,474,394 | false | null | package org.partiql.lang.eval.evaluatortestframework
import org.junit.jupiter.api.Assertions.assertNotEquals
import org.junit.jupiter.api.Assertions.assertNotNull
import org.junit.jupiter.api.Assertions.assertNull
import org.partiql.lang.ION
import org.partiql.lang.errors.ErrorBehaviorInPermissiveMode
import org.parti... | 311 | null | 61 | 539 | ac6cdfff46ba5749d4fc850b1a30bf625034bfc9 | 11,474 | partiql-lang-kotlin | Apache License 2.0 |
app/src/main/java/com/jaimegc/covid19tracker/domain/usecase/GetCountry.kt | mmoreno1992 | 458,004,956 | true | {"Kotlin": 1318013} | package com.jaimegc.covid19tracker.domain.usecase
import arrow.core.Either
import com.jaimegc.covid19tracker.data.repository.CovidTrackerRepository
import com.jaimegc.covid19tracker.domain.model.DomainError
import com.jaimegc.covid19tracker.domain.model.ListCountry
import com.jaimegc.covid19tracker.domain.states.State... | 0 | Kotlin | 0 | 0 | 752b0948282c6d9ee6d2058cf7d7641069f389e6 | 610 | Covid19Tracker | Apache License 2.0 |
core/navigation/src/main/java/com/goalpanzi/mission_mate/core/navigation/RouteModel.kt | Nexters | 828,096,097 | false | {"Kotlin": 469213, "Ruby": 1219} | package com.goalpanzi.mission_mate.core.navigation
import kotlinx.serialization.Serializable
sealed interface RouteModel {
@Serializable
data object Login : RouteModel
@Serializable
data object Onboarding : RouteModel
@Serializable
sealed interface Profile: RouteModel {
@Serializable... | 1 | Kotlin | 0 | 3 | 912bebd2706d1206f38c910e85c79fece73e4213 | 993 | goalpanzi-android | Apache License 2.0 |
math/src/main/kotlin/info/laht/threekt/math/Sphere.kt | markaren | 196,544,572 | false | null | package info.laht.threekt.math
import info.laht.threekt.core.Cloneable
import kotlin.jvm.JvmOverloads
import kotlin.math.abs
import kotlin.math.max
import kotlin.math.sqrt
data class Sphere @JvmOverloads constructor(
val center: Vector3 = Vector3(),
var radius: Float = 0f
) : Cloneable {
fun set(center: ... | 7 | null | 14 | 187 | 8dc6186d777182da6831cf1c79f39ee2d5960cd7 | 2,817 | three.kt | MIT License |
model/src/main/java/com/zj/model/model/BaseModel.kt | zhujiang521 | 265,420,729 | false | null | package com.zj.model.model
/**
* 版权:Zhujiang 个人版权
*
* @author zhujiang
* 创建日期:2020/9/22
* 描述:PlayAndroid
*
*/
data class BaseModel<T>(
val `data`: T,
val errorCode: Int,
val errorMsg: String
) | 6 | Kotlin | 151 | 977 | 11111a15f4fa9f43668b4f6356074b531f134baf | 213 | PlayAndroid | MIT License |
src/main/kotlin/org/rust/ide/typing/RsAngleBraceHandlers.kt | intellij-rust | 42,619,487 | false | null | /*
* Use of this source code is governed by the MIT license that can be
* found in the LICENSE file.
*/
package org.rust.ide.typing
import com.intellij.openapi.editor.Editor
import com.intellij.openapi.editor.ex.EditorEx
import com.intellij.openapi.editor.highlighter.HighlighterIterator
import org.rust.lang.core.p... | 1,841 | null | 380 | 4,528 | c6657c02bb62075bf7b7ceb84d000f93dda34dc1 | 3,089 | intellij-rust | MIT License |
app/src/main/java/com/cipolat/droidbank/data/home/model/HomeBody.kt | sebacipolat | 717,958,569 | false | {"Kotlin": 97899} | package com.cipolat.droidbank.data.home.model
import com.cipolat.droidbank.data.home.remote.model.Balance
import com.cipolat.droidbank.data.home.remote.model.User
import com.cipolat.droidbank.data.transactions.remote.model.TransactionItem
data class HomeBody(
val user: User,
val balance: Balance,
val tran... | 0 | Kotlin | 1 | 16 | 7876c59ab5cc007647502424dfa2d002294a6261 | 354 | DroidBank | Apache License 2.0 |
android/beagle/src/main/java/br/com/zup/beagle/android/data/serializer/adapter/ComponentJsonAdapterFactory.kt | tyagi2141 | 295,206,658 | true | {"Gradle": 32, "Gemfile.lock": 1, "Ruby": 10, "CODEOWNERS": 1, "Markdown": 12, "INI": 4, "Ignore List": 4, "Text": 51, "YAML": 22, "Dart": 3, "Java Properties": 22, "XML": 81, "Kotlin": 695, "OpenStep Property List": 32, "Objective-C": 12, "Swift": 361, "JSON": 56, "C++": 29, "C": 1, "Shell": 9, "Batchfile": 2, "Editor... | /*
* Copyright 2020 ZUP IT SERVICOS EM TECNOLOGIA E INOVACAO SA
*
* 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... | 0 | null | 0 | 1 | d64c69511dbf7c8f6198ed14cc07c1fa15bf080e | 4,018 | beagle | Apache License 2.0 |
src/commonMain/kotlin/org.angproj.aux/pkg/arb/StructType.kt | angelos-project | 677,039,667 | false | {"Kotlin": 986392, "Python": 196308} | /**
* Copyright (c) 2024 by Kristoffer Paulsson <kristoffer.paulsson@talenten.se>.
*
* This software is available under the terms of the MIT license. Parts are licensed
* under different terms if stated. The legal terms are attached to the LICENSE file
* and are made available on:
*
* https://opensource.org... | 0 | Kotlin | 0 | 0 | f9142bec995ef434cc7cdc02f01a7ed9ac3cd00b | 2,556 | angelos-project-aux | MIT License |
korge/common/src/test/kotlin/com/soywiz/korge/component/list/ViewListTest.kt | egorz-eng | 107,608,023 | true | {"Kotlin": 958944, "Java": 182756, "ActionScript": 7295, "HTML": 174} | package com.soywiz.korge.component.list
import com.soywiz.korge.tests.ViewsForTesting
import com.soywiz.korim.color.Colors
import com.soywiz.korma.geom.Rectangle
import org.junit.Test
import kotlin.test.assertEquals
class ViewListTest : ViewsForTesting() {
@Test
fun createList() {
val item0 = views.solidRect(10, ... | 0 | Kotlin | 0 | 0 | cee8132dd63f168cdcc186c5510afd6985a53b3f | 642 | korge | Apache License 2.0 |
fingerprint/src/test/java/com/fingerprintjs/android/fingerprint/signal_providers/RawDataTest.kt | fingerprintjs | 305,740,280 | false | {"Kotlin": 422778} | package com.fingerprintjs.android.fingerprint.signal_providers
import org.junit.Assert.assertEquals
import org.junit.Test
class RawDataTest {
@Test
fun `Filtering by version is working`() {
val ver2List = prepareSignalsList().filterByVersion(2)
assertEquals(5, ver2List.size)
}
@Test... | 4 | Kotlin | 76 | 534 | a33e213daa8534a2d2d1e85636f6aba635e75dc1 | 1,771 | fingerprintjs-android | MIT License |
app/src/main/kotlin/org/wentura/locoway/compose/home/TimePicker.kt | AdrianMiozga | 796,770,944 | false | {"Kotlin": 223580} | package org.wentura.locoway.compose.home
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.Text
import androidx.compose.material3.TextButton
import androidx.compose.material3.rememberTimePickerState
import androidx.compose.runtime.Composable
import androidx.compose.runtime.Mu... | 0 | Kotlin | 0 | 0 | d3b1cf3aa51691aee765bb11c3b5051e087eaabd | 1,454 | Locoway-Android | MIT License |
Tutorial1-1Basics/src/main/java/com/smarttoolfactory/tutorial1_1basics/chapter3_layout/Tutorial3_11Tooltip2.kt | SmartToolFactory | 326,400,374 | false | null | @file:OptIn(ExperimentalMaterial3Api::class)
package com.smarttoolfactory.tutorial1_1basics.chapter3_layout
import androidx.compose.animation.core.MutableTransitionState
import androidx.compose.foundation.MutatePriority
import androidx.compose.foundation.MutatorMutex
import androidx.compose.material3.BasicTooltipStat... | 4 | null | 312 | 3,006 | efea98b63e63a85b80f7dc1bd4ca6d769e35905d | 4,505 | Jetpack-Compose-Tutorials | Apache License 2.0 |
app/src/main/java/org/wikipedia/feed/news/NewsActivity.kt | wikimedia | 13,862,999 | false | {"Kotlin": 3495497, "Python": 24797, "Java": 4408, "Jinja": 533, "Shell": 521} | package org.wikipedia.feed.news
import android.content.Context
import android.content.Intent
import android.graphics.Color
import android.os.Bundle
import org.wikipedia.Constants
import org.wikipedia.R
import org.wikipedia.activity.SingleFragmentActivity
import org.wikipedia.dataclient.WikiSite
import org.wikipedia.ex... | 29 | Kotlin | 624 | 2,365 | 175db9fe3c28084af7290a934f38223eb14934ed | 1,329 | apps-android-wikipedia | Apache License 2.0 |
src/main/kotlin/com/emberjs/hbs/linter/ember-template-lint/TemplateLintSessionData.kt | patricklx | 412,986,421 | false | {"Kotlin": 637238, "JavaScript": 31431, "HTML": 8237, "Handlebars": 2507, "Java": 207, "Scala": 172, "CSS": 144, "SCSS": 96} | import com.intellij.javascript.nodejs.interpreter.NodeJsInterpreter
import com.intellij.openapi.vfs.VirtualFile
class TemplateLintSessionData(
val interpreter: NodeJsInterpreter,
val templateLintPackage: TemplateLintPackage,
val workingDir: VirtualFile,
val fileToLint: VirtualFile,
... | 54 | Kotlin | 5 | 9 | a5dcace3902fb2ccc70ae310a4d427d7037b8857 | 359 | intellij-emberjs-experimental | Apache License 2.0 |
android/apollo/src/main/java/io/muun/apollo/domain/action/debug/ForceCrashReportAction.kt | muun | 150,655,434 | false | null | package io.muun.apollo.domain.action.debug
import com.google.firebase.crashlytics.FirebaseCrashlytics
import io.muun.apollo.data.external.Globals
import io.muun.apollo.domain.action.base.BaseAsyncAction1
import rx.Observable
import timber.log.Timber
import javax.inject.Inject
import javax.inject.Singleton
@Singleton
... | 39 | null | 46 | 256 | 86048fe9f8059c9617f2e6d32e7d41c460dfb785 | 1,246 | apollo | MIT License |
example/android/app/src/main/kotlin/com/example/dynamic_list_item_example/MainActivity.kt | sems | 397,617,097 | false | {"Dart": 17618, "HTML": 3729, "Swift": 404, "Kotlin": 142, "Objective-C": 38} | package com.example.dynamic_list_item_example
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 0 | Dart | 0 | 2 | c62e430d8088cb6b6142f9d63f9299bee8f93128 | 142 | dynamic_list_item | Apache License 2.0 |
src/main/kotlin/com/lykke/matching/engine/config/spring/JsonConfig.kt | LykkeCity | 52,304,364 | false | null | package com.lykke.matching.engine.config.spring
import com.google.gson.*
import org.springframework.beans.factory.config.ConfigurableBeanFactory
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration
import org.springframework.context.annotation.Scope
import spri... | 5 | Kotlin | 16 | 31 | 937b360b10d461e444ebc7133dd9ab6b64ae4cb5 | 2,422 | MatchingEngine | MIT License |
PopSeries/app/src/main/java/alifyz/com/popseries/database/entity/TrendingEntity.kt | Alifyz | 93,462,362 | false | null | package alifyz.com.popseries.database.entity
import android.arch.persistence.room.Entity
import android.arch.persistence.room.PrimaryKey
import com.google.gson.annotations.Expose
import com.google.gson.annotations.SerializedName
@Entity(tableName = "trending")
data class TrendingEntity(
@PrimaryKey
va... | 0 | Java | 6 | 16 | 5d881c7a5c99421d1163646706789edcdd6307d3 | 1,493 | android-sample-apps | The Unlicense |
src/main/kotlin/ch/unibas/dmi/dbis/cottontail/model/values/FloatVectorValue.kt | schoenja | 215,837,340 | true | {"Kotlin": 724765} | package ch.unibas.dmi.dbis.cottontail.model.values
/**
* This is an abstraction over a [FloatArray] and it represents a vector of [Float]s.
*
* @author Ralph Gasser
* @version 1.1
*/
inline class FloatVectorValue(override val value: FloatArray) : VectorValue<FloatArray> {
constructor(input: List<Number>) : t... | 0 | Kotlin | 0 | 0 | cf4d45fddec91b4167eafc1317acfc4f3df557d4 | 4,773 | cottontaildb | MIT License |
android/app/src/main/java/com/example/togglutopia/utils/DateExtensions.kt | simonrozsival | 226,355,253 | false | null | package com.example.togglutopia.utils
import android.os.Handler
import com.example.togglutopia.ui.TogglState
import java.text.ParseException
import java.text.SimpleDateFormat
import java.util.*
class DateExtensions {
}
/**
* Created by semanticer on 2. 5. 2016.
*/
fun Calendar.getISO8601(): String {
return IS... | 0 | Rust | 0 | 1 | 23a7ee33ae4d4237c97fe8c84470608676f1e222 | 2,308 | toggl-utopia | MIT License |
core/src/com/ore/infinium/components/AirComponent.kt | HanWenfang | 60,321,795 | true | {"Kotlin": 457818} | /**
MIT License
Copyright (c) 2016 <NAME> <<EMAIL>>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publi... | 0 | Kotlin | 0 | 0 | dc58799cc17ee43263d43d92de40f67c6fd49d50 | 2,150 | ore-infinium | MIT License |
core/src/main/java/org/mhacks/app/core/di/AppModule.kt | mhacks | 22,456,318 | false | null | package org.mhacks.app.core.di
import android.app.Application
import android.content.Context
import android.content.SharedPreferences
import androidx.preference.PreferenceManager
import dagger.Module
import dagger.Provides
import org.mhacks.app.core.ThemePrefProvider
import javax.inject.Singleton
@Module
class AppMod... | 1 | Kotlin | 12 | 21 | 12309b463e51acc3f41c463df647f410e16a6261 | 735 | mhacks-android | MIT License |
node/src/test/kotlin/net/corda/node/services/network/NetworkMapCacheTest.kt | sighttviewliu | 103,155,577 | true | {"Kotlin": 3678128, "Java": 185815, "Groovy": 28681, "Shell": 320, "Batchfile": 106} | package net.corda.node.services.network
import net.corda.core.node.services.NetworkMapCache
import net.corda.core.node.services.ServiceInfo
import net.corda.core.utilities.getOrThrow
import net.corda.testing.ALICE
import net.corda.testing.BOB
import net.corda.testing.node.MockNetwork
import org.assertj.core.api.Assert... | 1 | Kotlin | 1 | 1 | bc6628a072746dad823a605d14ae3888bae16fab | 3,228 | corda | Apache License 2.0 |
TestAndroid/TestUnitarios/app/src/test/java/ec/com/paul/testunitarios/calculadora/CalculadoraTest.kt | PaulMarcelo | 255,495,694 | false | null | package ec.com.paul.testunitarios.calculadora
import org.junit.After
import org.junit.Test
import org.junit.Assert.*
import org.junit.Before
import org.junit.Ignore
import java.lang.ArithmeticException
/**
* Created by <NAME> on 20/8/2019.
* <NAME>
*/
class CalculadoraTest {
var calculadoraNull: Calculadora?... | 0 | Kotlin | 0 | 0 | 5c363e7e5837eaec8c43c1edf6eafa69ab84725d | 3,603 | Android | Apache License 2.0 |
app/src/main/java/co/youverify/youhr/core/util/util.kt | sojious | 674,516,085 | false | null | package co.youverify.youhr.core.util
import TaskProgressColor
import android.icu.text.SimpleDateFormat
import android.icu.util.Calendar
import android.icu.util.TimeZone
import android.text.format.DateUtils
import androidx.compose.ui.graphics.Color
import co.youverify.youhr.domain.model.Task
import co.youverify.youhr.p... | 0 | Kotlin | 0 | 0 | d9e79375a51cdac0d5364d84bbb8e5a5160eef65 | 11,196 | YouHr | MIT License |
lib/lib-network/src/main/kotlin/com/ihardanilchanka/sampleapp2/DelayRandomizer.kt | igordanilcenko | 479,943,101 | false | null | package com.ihardanilchanka.sampleapp2
import kotlinx.coroutines.delay
/**
* Makes an artificial delay while suspend function run. Sometimes simulates an error.
*/
suspend fun randomDelay() {
val delaySeconds = (1..4).random()
delay(delaySeconds * 1000L)
if (delaySeconds == 4) {
error("Some arti... | 0 | Kotlin | 0 | 0 | 72b01119cbb38adc9e6fff204e8c81e3ff0fa278 | 352 | popular-movie-list2 | Apache License 2.0 |
plugin/src/main/kotlin/io/github/clayclaw/opensky/config/ConfigCache.kt | clayclaw | 774,537,319 | false | {"Kotlin": 34228} | package io.github.clayclaw.opensky.config
data class ConfigCache(
var endpoint: String = "localhost:6379",
var username: String? = null,
var password: String? = null,
)
| 0 | Kotlin | 1 | 1 | cabb2f27ea322f4b7c827e5aa114738eec907ba6 | 182 | OpenSky | MIT License |
app/src/main/java/com/kyberswap/android/domain/model/NotificationAlert.kt | KYRDTeam | 181,612,742 | false | null | package com.kyberswap.android.domain.model
import android.os.Parcelable
import com.google.gson.annotations.SerializedName
import kotlinx.android.parcel.Parcelize
@Parcelize
data class NotificationAlert(
@SerializedName("type")
val type: String = "",
@SerializedName("alert_id")
val alertId: Long = 0L,... | 1 | null | 10 | 26 | abd4ab033d188918849e5224cc8204409776391b | 1,054 | android-app | MIT License |
src/main/kotlin/com/kokasai/api/http/_dsl/inGroupFromParameter.kt | astralbrim | 332,749,834 | true | {"Kotlin": 69658} | package com.kokasai.api.http._dsl
import com.kokasai.api.user.User
import io.ktor.application.ApplicationCall
import io.ktor.util.pipeline.PipelineContext
suspend inline fun PipelineContext<Unit, ApplicationCall>.inGroupFromParameter(
groupNameParameter: String,
onSuccess: (
user: User,
groupN... | 0 | Kotlin | 0 | 1 | 012fdf1c1b209e3d4ce9df8c021fe9d9454538fe | 493 | api.kokasai.com | Apache License 2.0 |
ui/src/commonMain/kotlin/com/popalay/barnee/ui/ComposeApp.kt | Popalay | 349,051,151 | false | null | /*
* Copyright (c) 2023 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, dis... | 21 | Kotlin | 3 | 15 | 0d25ca9033065ff4c9b6f044550f7c02f96f97bd | 6,449 | Barnee | MIT License |
app/src/test/java/com/canopas/yourspace/ui/flow/onboard/OnboardViewModelTest.kt | canopas | 739,382,039 | false | null | package com.canopas.yourspace.ui.flow.onboard
import com.canopas.yourspace.MainCoroutineRule
import com.canopas.yourspace.data.models.space.ApiSpace
import com.canopas.yourspace.data.models.space.ApiSpaceInvitation
import com.canopas.yourspace.data.models.user.ApiUser
import com.canopas.yourspace.data.repository.Space... | 5 | null | 1 | 7 | 3ce744ea6663d632b2fff470f9293de72708291d | 11,366 | your-space-android | Apache License 2.0 |
app/src/main/java/com/msg/gcms/data/repository/AttendRepositoryImpl.kt | GSM-MSG | 465,292,111 | false | {"Kotlin": 321879} | package com.msg.gcms.data.repository
import com.msg.gcms.data.remote.datasource.attend.AttendDataSource
import com.msg.gcms.data.remote.dto.attend.request.PatchAttendStatusCollectivelyRequest
import com.msg.gcms.data.remote.dto.attend.request.PatchAttendStatusRequest
import com.msg.gcms.data.remote.dto.attend.request.... | 6 | Kotlin | 0 | 17 | 11da719df1f53226546724206b92cf9c90eb0893 | 2,431 | GCMS-Android | MIT License |
app/src/main/java/com/nordkaz/ds24test/ui/ViewModelFactory.kt | ekbandroid | 144,299,832 | false | null | package com.nordkaz.ds24test.ui
import android.arch.lifecycle.ViewModel
import android.arch.lifecycle.ViewModelProvider
import com.nordkaz.ds24test.data.QuoteRepository
class ViewModelFactory(private val repository: QuoteRepository) : ViewModelProvider.Factory {
override fun <T : ViewModel> create(modelClass: Cl... | 0 | Kotlin | 0 | 0 | efef3a436d82b628db79a2071f9eaa4300d9a536 | 604 | DS24Test | Apache License 2.0 |
src/main/kotlin/com/github/treepat/target_tree/default_tree/DefaultTargetTree.kt | Treepat | 240,806,251 | false | null | package com.github.treepat.target_tree.default_tree
import antlr.tree_format.TreeFormatLexer
import antlr.tree_format.TreeFormatParser
import com.github.treepat.grammars.antlr.tree_format.TreeFormatVisitorImplementation
import com.github.treepat.target_tree.TargetTree
import com.github.treepat.target_tree.TargetTreeNo... | 2 | Kotlin | 1 | 2 | ea0d403b712a50b0e81c673a7db1b4e8adb94e3a | 1,483 | Treepat | Apache License 2.0 |
kotlin-electron/src/jsMain/generated/electron/CPUUsage.kt | JetBrains | 93,250,841 | false | {"Kotlin": 12159121, "JavaScript": 330528} | // Generated by Karakum - do not modify it manually!
package electron
typealias CPUUsage = electron.core.CPUUsage
| 40 | Kotlin | 165 | 1,319 | a8a1947d73e3ed26426f1e27b641bff427dfd6a0 | 118 | kotlin-wrappers | Apache License 2.0 |
android/app/src/main/kotlin/com/example/my_project/MainActivity.kt | 12amansharma | 472,812,836 | false | {"Dart": 146876, "HTML": 1535, "Ruby": 1353, "Swift": 404, "Kotlin": 141, "Objective-C": 38} | package xyz.indovators.mentalhealthcompanion
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
| 0 | Dart | 0 | 1 | 43653447fface12094e03151383d9fbffac4448d | 141 | mental_health_companion | MIT License |
gradle-plugin/src/test/kotlin/org/eazyportal/plugin/release/gradle/project/GradleProjectActionsFactoryTest.kt | eazyportal | 423,612,882 | true | {"Kotlin": 194632, "Java": 52737, "HTML": 61} | package org.eazyportal.plugin.release.gradle.project
import org.assertj.core.api.Assertions.assertThat
import org.assertj.core.api.Assertions.assertThatThrownBy
import org.eazyportal.plugin.release.core.project.ProjectActions
import org.eazyportal.plugin.release.core.project.exception.InvalidProjectTypeException
impor... | 0 | Kotlin | 1 | 0 | ca6029491c2ed1cdb70112f851e15e503044db33 | 1,682 | eazyrelease-plugin | Apache License 2.0 |
control/src/main/kotlin/matt/fx/control/wrapper/buttonbar/buttonbar.kt | mgroth0 | 497,866,693 | false | null | package matt.fx.control.wrapper.buttonbar
import javafx.collections.ObservableList
import javafx.scene.Node
import javafx.scene.control.ButtonBar
import matt.fx.control.inter.graphic
import matt.fx.control.wrapper.control.ControlWrapperImpl
import matt.fx.control.wrapper.control.button.ButtonWrapper
import matt.fx.gra... | 0 | Kotlin | 0 | 0 | 76938715fac546faa085aadbb372ae50f71c08de | 1,746 | fx | MIT License |
sample/kotlin/src/main/kotlin/com/datadog/android/sample/about/AboutFragment.kt | DataDog | 219,536,756 | false | null | /*
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
* This product includes software developed at Datadog (https://www.datadoghq.com/).
* Copyright 2016-Present Datadog, Inc.
*/
package com.datadog.android.sample.about
import android.os.Bundle
im... | 33 | Kotlin | 39 | 86 | bcf0d12fd978df4e28848b007d5fcce9cb97df1c | 1,770 | dd-sdk-android | Apache License 2.0 |
base/layoutinspector/testSrc/com/android/layoutinspector/parser/DisplayInfoFactoryTest.kt | qiangxu1996 | 255,410,085 | false | null | /*
* Copyright (C) 2018 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... | 0 | null | 1 | 1 | 3411c5436d0d34e6e2b84cbf0e9395ac8c55c9d4 | 1,601 | vmtrace | Apache License 2.0 |
app/src/main/java/barissaglam/client/movieapp/presentation/search/SearchFragment.kt | barissaglam | 265,227,674 | false | {"Kotlin": 121777, "Java": 6231} | package barissaglam.client.movieapp.presentation.search
import android.graphics.Color
import android.transition.TransitionInflater
import android.widget.TextView
import androidx.navigation.fragment.findNavController
import barissaglam.client.movieapp.R
import barissaglam.client.movieapp.base.extension.clickSubmitButto... | 2 | Kotlin | 6 | 44 | e565a018c5eeed161b5baee206ba40f79387056d | 1,890 | Movie-App | MIT License |
tabler-icons/src/commonMain/kotlin/compose/icons/tablericons/BookmarkOff.kt | DevSrSouza | 311,134,756 | false | null | package compose.icons.tablericons
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType
import androidx.compose.ui.graphics.PathFillType.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap
import androidx.compose.ui.graphics.StrokeCa... | 17 | null | 25 | 571 | a660e5f3033e3222e3553f5a6e888b7054aed8cd | 2,180 | compose-icons | MIT License |
src/jsMain/kotlin/baaahs/app/ui/AppDrawer.kt | lucgirardin | 290,413,324 | true | {"Kotlin": 1134726, "C++": 479123, "JavaScript": 365308, "GLSL": 120375, "C": 100546, "CMake": 25514, "HTML": 10796, "CSS": 10322, "Shell": 663} | package baaahs.app.ui
import baaahs.io.Fs
import baaahs.ui.on
import baaahs.ui.unaryPlus
import baaahs.ui.withEvent
import baaahs.ui.xComponent
import kotlinx.css.Direction
import kotlinx.html.js.onChangeFunction
import kotlinx.html.js.onClickFunction
import materialui.*
import materialui.components.divider.divider
im... | 0 | null | 0 | 0 | 80865b7141d4ab8fcaafcc1c58402afb02561ecc | 5,156 | sparklemotion | MIT License |
src/main/kotlin/org/jetbrains/kotlinx/jupyter/repl/creating/MockJupyterConnection.kt | Kotlin | 63,066,291 | false | {"Kotlin": 864116, "JavaScript": 40044, "CSS": 16243, "Python": 14915, "Jupyter Notebook": 1290, "Shell": 74} | package org.jetbrains.kotlinx.jupyter.repl.creating
import org.jetbrains.kotlinx.jupyter.JupyterExecutor
import org.jetbrains.kotlinx.jupyter.api.libraries.JupyterSocketType
import org.jetbrains.kotlinx.jupyter.api.libraries.RawMessage
import org.jetbrains.kotlinx.jupyter.api.libraries.RawMessageCallback
import org.je... | 65 | Kotlin | 108 | 984 | 94794065fd0a616b757a8cabf4574bb63344facb | 1,462 | kotlin-jupyter | Apache License 2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.