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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
teamscale-gradle-plugin/src/main/kotlin/com/teamscale/Report.kt | escher-cqse | 533,736,514 | true | {"Markdown": 8, "Shell": 4, "Java Properties": 7, "Batchfile": 5, "Java": 254, "Gradle Kotlin DSL": 6, "Kotlin": 24, "INI": 6, "Dockerfile": 1} | package com.teamscale
import com.teamscale.client.EReportFormat
import org.gradle.api.file.FileCollection
import java.io.File
import java.io.Serializable
/**
* Report holder used to describe an already configured report
* that should be uploaded to Teamscale.
*/
data class Report(
/** Report format. */
va... | 0 | null | 0 | 0 | 4010ee0e72b3972c91ed0fe8c1f3c4a784026525 | 584 | teamscale-jacoco-agent | Apache License 2.0 |
project-system-gradle-sync/src/com/android/tools/idea/gradle/project/sync/SelectedVariant.kt | JetBrains | 60,701,247 | false | null | /*
* Copyright (C) 2021 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 5 | null | 227 | 948 | 10110983c7e784122d94c7467e9d243aba943bf4 | 1,097 | android | Apache License 2.0 |
src/main/kotlin/guru/stefma/androidartifacts/Project.kt | StefMa | 91,171,709 | false | null | package guru.stefma.androidartifacts
import com.android.build.gradle.LibraryExtension
import org.gradle.api.Project
import org.gradle.api.publish.PublishingExtension
/**
* The [LibraryExtension] from the applied **com.android.library** plugin
*/
internal val Project.androidLibraryExtension
get() = extensions.ge... | 15 | Kotlin | 5 | 11 | ed04801bea56fc59ccb01e0db0f186dbe133e868 | 1,292 | AndroidArtifacts | Apache License 2.0 |
compiler/testData/codegen/box/inlineClasses/inlineClassCollection/inlineCollectionOfInlineClass.kt | JetBrains | 3,432,266 | false | null | // WITH_RUNTIME
@Suppress("OPTIONAL_DECLARATION_USAGE_IN_NON_COMMON_SOURCE")
@kotlin.jvm.JvmInline
value class Z(val x: Int)
@Suppress("OPTIONAL_DECLARATION_USAGE_IN_NON_COMMON_SOURCE")
@kotlin.jvm.JvmInline
value class ZArray(val storage: IntArray) : Collection<Z> {
override val size: Int
get() = storage... | 181 | null | 5748 | 49,172 | 33eb9cef3d146062c103f9853d772f0a1da0450e | 1,189 | kotlin | Apache License 2.0 |
sections/day19/rx-repo/src/main/kotlin/cc/jianminhuang/day19/data/dao/MemberDao.kt | b2etw | 310,598,084 | false | null | package cc.jianminhuang.day19.data.dao
import cc.jianminhuang.day19.data.`do`.Member
import org.springframework.data.repository.reactive.ReactiveCrudRepository
interface MemberDao: ReactiveCrudRepository<Member, Long> {
} | 1 | Kotlin | 1 | 35 | c88e506c1e038c02840703a6e80b224de139178e | 223 | Spring-Kotlin-iThome-2021 | MIT License |
common/src/commonMain/kotlin/com/artemchep/keyguard/common/usecase/impl/PutUserExternalBrowserImpl.kt | AChep | 669,697,660 | false | {"Kotlin": 5516822, "HTML": 45876} | package com.artemchep.keyguard.common.usecase.impl
import com.artemchep.keyguard.common.io.IO
import com.artemchep.keyguard.common.service.settings.SettingsReadWriteRepository
import com.artemchep.keyguard.common.usecase.PutUseExternalBrowser
import org.kodein.di.DirectDI
import org.kodein.di.instance
class PutUserEx... | 66 | Kotlin | 31 | 995 | 557bf42372ebb19007e3a8871e3f7cb8a7e50739 | 697 | keyguard-app | Linux Kernel Variant of OpenIB.org license |
app/src/main/java/com/elementary/tasks/core/binding/dialogs/DialogExclusionPickerBinding.kt | naz013 | 165,067,747 | false | null | package com.elementary.tasks.core.binding.dialogs
import android.view.View
import android.widget.RadioButton
import android.widget.RadioGroup
import android.widget.TextView
import android.widget.ToggleButton
import com.elementary.tasks.R
import com.elementary.tasks.core.binding.Binding
class DialogExclusionPickerBind... | 0 | null | 3 | 6 | 3d26792f05f4183cea6107aeec2d0a065f6b427c | 2,002 | reminder-kotlin | Apache License 2.0 |
app/src/main/java/seisuke/kodomokeyboard/model/KeyboardState.kt | seisuke | 336,212,833 | false | null | package seisuke.kodomokeyboard.model
data class KeyboardState(
val katakana: Boolean,
val dakuon: Boolean
) {
companion object {
fun create(): KeyboardState = KeyboardState(
katakana = false,
dakuon = false
)
}
}
| 0 | Kotlin | 0 | 0 | 1e7ffc87dfc4908b6958d9690212c276fc683ff3 | 270 | kodomo_keyboard | MIT License |
core/src/main/kotlin/com/weedow/searchy/validation/SearchyError.kt | Kobee1203 | 260,688,695 | false | null | package com.weedow.searchy.validation
/**
* Data Class representing a validation error.
*
* @param errorCode Error code
* @param errorMessage Error message
* @param arguments Error arguments for argument binding via MessageFormat. Can be `null`.
*/
data class SearchyError(
val errorCode: String,
val erro... | 12 | null | 3 | 22 | 7a0e0bac533fc822ce4a2b58bc1f22eda53e5c72 | 1,267 | weedow-searchy | MIT License |
komposable-architecture/src/main/java/com/toggl/komposable/internal/OptionalReducer.kt | toggl | 316,494,344 | false | {"Kotlin": 163466} | package com.toggl.komposable.internal
import com.toggl.komposable.architecture.NoEffect
import com.toggl.komposable.architecture.ReduceResult
import com.toggl.komposable.architecture.Reducer
import com.toggl.komposable.extensions.map
internal class OptionalReducer<LocalState, GlobalState, LocalAction, GlobalAction>(
... | 8 | Kotlin | 20 | 274 | 6c975b17ee94079b66d43d199f106eb6323913a0 | 1,251 | komposable-architecture | Apache License 2.0 |
common-core/src/main/kotlin/com/blacksquircle/ui/core/storage/keyvalue/SettingsManager.kt | massivemadness | 100,590,072 | false | null | /*
* Copyright 2023 Squircle CE contributors.
*
* 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... | 74 | null | 75 | 708 | 2622fcc49a1d71ea1dec87c460d4586d671646c0 | 9,060 | Squircle-CE | Apache License 2.0 |
gradlePlugin/src/test/java/io/hkhc/utils/test/MockExtensionContainer.kt | hkhc | 242,200,840 | false | {"Gradle Kotlin DSL": 14, "Java Properties": 6, "Shell": 2, "Text": 1, "Ignore List": 7, "Batchfile": 1, "EditorConfig": 1, "Markdown": 2, "YAML": 14, "Kotlin": 219, "Java": 20, "XML": 36} | /*
* Copyright (c) 2021. Herman Cheung
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | 1 | null | 1 | 1 | ffa517f9eec0e240e11d057afc53f0d0cb026de8 | 3,124 | jarbird | Apache License 2.0 |
vgscheckout/src/test/java/com/verygoodsecurity/vgscheckout/card/filter/brand/DinnersClubTest.kt | verygoodsecurity | 371,054,567 | false | null | package com.verygoodsecurity.vgscheckout.card.filter.brand
import com.verygoodsecurity.vgscheckout.collect.view.card.CardType
import com.verygoodsecurity.vgscheckout.collect.view.card.filter.CardBrandFilter
import com.verygoodsecurity.vgscheckout.collect.view.card.filter.VGSCardFilter
import org.junit.Assert
import or... | 5 | Kotlin | 2 | 2 | 49fdede7a225435b37837f5396dcfea06217e275 | 1,208 | vgs-checkout-android | MIT License |
2405.Optimal Partition of String.kt | sarvex | 842,260,390 | false | {"Kotlin": 1775678, "PowerShell": 418} | internal class Solution {
fun partitionString(s: String): Int {
val ss: Set<Char> = HashSet()
var ans = 1
for (c in s.toCharArray()) {
if (ss.contains(c)) {
++ans
ss.clear()
}
ss.add(c)
}
return ans
}
}
| 0 | Kotlin | 0 | 0 | 71f5d03abd6ae1cd397ec4f1d5ba04f792dd1b48 | 261 | kotlin-leetcode | MIT License |
servomatic/src/main/kotlin/crackers/kobots/app/DeputyJason.kt | EAGrahamJr | 564,081,499 | false | {"Kotlin": 59050, "Shell": 3093} | /*
* Copyright 2022-2023 by <NAME>, Jr.
*
* 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... | 0 | Kotlin | 0 | 1 | 57fd5d8d52c1bff9717b31772938efdc5226f589 | 1,305 | kobots | Apache License 2.0 |
LogisticManager/src/main/kotlin/shopassistant/MainWindow.kt | ostis-apps | 209,274,423 | false | {"C++": 190974, "Python": 158695, "JavaScript": 121504, "Kotlin": 28151, "CSS": 16444, "CMake": 15212, "Shell": 13239, "HTML": 5019, "Dockerfile": 1567} | package shopassistant
import engine.ScRepository
import org.ostis.api.context.UncheckedScContext
import org.ostis.scmemory.model.element.ScElement
import org.ostis.scmemory.model.element.edge.ScEdge
import org.ostis.scmemory.model.element.node.ScNode
import org.ostis.scmemory.model.event.OnAddIngoingEdgeEvent
import o... | 46 | C++ | 128 | 2 | dade10e5ffdb02a7cd7dab3ebeb83496ac43d5ae | 2,314 | ostis-geography | MIT License |
sample/src/main/java/tech/thdev/androidrecyclerview/network/GitHubInterface.kt | taehwandev | 71,049,057 | false | null | package tech.thdev.androidrecyclerview.network
import io.reactivex.rxjava3.core.Flowable
import retrofit2.http.GET
import retrofit2.http.Query
import tech.thdev.androidrecyclerview.data.GitHubUserSearchResponse
/**
* Created by Tae-hwan on 08/11/2016.
*/
interface GitHubInterface {
// https://api.github.com/s... | 1 | null | 4 | 9 | 74b70f90f8d7b3a9bf457416166045d2f5d18a78 | 598 | AndroidRecyclerView | Apache License 2.0 |
dbinspector/src/test/kotlin/com/infinum/dbinspector/domain/pragma/interactors/GetTableInfoInteractorTest.kt | infinum | 17,116,181 | false | null | package com.infinum.dbinspector.domain.pragma.interactors
import com.infinum.dbinspector.data.Sources
import com.infinum.dbinspector.domain.Interactors
import com.infinum.dbinspector.shared.BaseTest
import io.mockk.coEvery
import io.mockk.coVerify
import io.mockk.mockk
import org.junit.jupiter.api.DisplayName
import o... | 0 | Kotlin | 88 | 902 | 8d2d695ba35e7b0682e2dc235f5a852bf0fa4db3 | 1,162 | android_dbinspector | Apache License 2.0 |
compiler/tests-spec/testData/diagnostics/linked/expressions/when-expression/p-6/neg/7.2.fir.kt | JetBrains | 3,432,266 | false | null | // SKIP_TXT
// TESTCASE NUMBER: 1
fun case_1(value_1: Int): String = when {
<!ELSE_MISPLACED_IN_WHEN!>else<!> -> ""
value_1 == 1 -> ""
}
// TESTCASE NUMBER: 2
fun case_2(value_1: Int): String = when {
value_1 == 1 -> ""
<!ELSE_MISPLACED_IN_WHEN!>else<!> -> ""
value_1 == 2 -> ""
}
// TESTCASE NUM... | 154 | null | 5563 | 44,965 | e6633d3d9214402fcf3585ae8c24213a4761cc8b | 465 | kotlin | Apache License 2.0 |
kotlin/src/test/kotlin/be/kuleuven/speculaas/SpeculaasTests.kt | KULeuven-Diepenbeek | 226,268,892 | false | {"HTML": 6378, "JavaScript": 5252, "CSS": 3780, "Java": 1805, "Kotlin": 1461} | package be.kuleuven.speculaas
import org.junit.jupiter.api.Test
import kotlin.test.assertTrue
class SpeculaasTests {
@Test
fun maakNieuweSpeculaasAan_standaardZonderBoter() {
val speculaas = Speculaas()
assertTrue { speculaas.boter == 0 }
}
} | 0 | HTML | 3 | 0 | db58d44858c3065a786892e3ae5086499e414449 | 273 | ses-tdd-exercise-1-template | MIT License |
login/src/main/java/com/fuusy/login/repo/LoginRepo.kt | 125L | 366,884,930 | true | {"Kotlin": 141840, "Java": 4801} | package com.fuusy.login.repo
import com.fuusy.common.base.BaseRepository
import com.fuusy.common.network.RetrofitManager
import com.fuusy.common.network.net.StateLiveData
import com.fuusy.service.repo.LoginResp
class LoginRepo : BaseRepository() {
private val service = RetrofitManager.initRetrofit().getService(L... | 0 | null | 0 | 0 | 5ad4727433c87b2531e0e82d86b9957be639907f | 784 | wanandroid_jetpack_kt | Apache License 2.0 |
database/database-symbol-processor/src/test/kotlin/ru/tinkoff/kora/database/symbol/processor/jdbc/JdbcParametersTest.kt | kora-projects | 743,624,836 | false | null | package ru.tinkoff.kora.database.symbol.processor.jdbc
import org.assertj.core.api.Assertions
import org.junit.jupiter.api.Test
import org.mockito.ArgumentMatchers
import org.mockito.Mockito
import org.mockito.kotlin.verify
import ru.tinkoff.kora.common.Tag
import ru.tinkoff.kora.database.jdbc.`$JdbcDatabaseConfig_Con... | 8 | null | 9 | 63 | bb7d906d3af0ae6f8c68f87327f010b66110f34f | 14,505 | kora | Apache License 2.0 |
build-tools/agp-gradle-core/src/main/java/com/android/build/gradle/internal/signing/SigningConfigVersions.kt | RivanParmar | 526,653,590 | false | {"Java": 48334972, "Kotlin": 8897422, "HTML": 109232, "Lex": 13233, "ReScript": 3232, "Makefile": 2194} | /*
* Copyright (C) 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 app... | 1 | Java | 2 | 17 | a497291d77bba1aa34271808088fe1e8aab5efe2 | 1,316 | androlabs | Apache License 2.0 |
integration-test-r2dbc/src/test/kotlin/integration/r2dbc/SelectDistinctTest.kt | komapper | 349,909,214 | false | null | package integration.r2dbc
import integration.department
import integration.employee
import org.junit.jupiter.api.extension.ExtendWith
import org.komapper.core.dsl.Meta
import org.komapper.core.dsl.QueryDsl
import org.komapper.r2dbc.R2dbcDatabase
import kotlin.test.Test
import kotlin.test.assertEquals
@ExtendWith(Env:... | 1 | Kotlin | 0 | 20 | 2a8827d7c410a5366d875578a635b02dc176e989 | 790 | komapper | Apache License 2.0 |
aire/src/main/java/com/awxkee/aire/BlurPipelines.kt | awxkee | 751,588,641 | false | {"C++": 13666290, "C": 178015, "Rust": 162047, "Kotlin": 155237, "Starlark": 7129, "CMake": 4163, "Shell": 1327} | /*
*
* * MIT License
* *
* * Copyright (c) 2024 Radzivon Bartoshyk
* * aire [https://github.com/awxkee/aire]
* *
* * Created by Radzivon Bartoshyk on 2/21/24, 6:13 PM
* *
* * Permission is hereby granted, free of charge, to any person obtaining a copy
* * of this software and associated documentation... | 0 | C++ | 3 | 16 | e5ca5c6a9a1cfb5c73b17c703a0452f0c9c88f75 | 11,572 | aire | MIT License |
idea/testData/refactoring/move/kotlin/moveTopLevelDeclarations/movePropertyToFile/after/b/specificImports.kt | JakeWharton | 99,388,807 | true | null | package b
fun bar() {
test = ""
println(test)
}
| 0 | Kotlin | 28 | 83 | 4383335168338df9bbbe2a63cb213a68d0858104 | 57 | kotlin | Apache License 2.0 |
compose/material/material/benchmark/src/androidTest/java/androidx/compose/material/benchmark/TextInColumnBenchmark.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... | 29 | null | 937 | 7 | 6d53f95e5d979366cf7935ad7f4f14f76a951ea5 | 3,268 | androidx | Apache License 2.0 |
src/main/java/com/maddin/transportapi/caches/SearchCaches.kt | maddinkunze | 672,936,637 | false | {"Kotlin": 178441} | package com.maddin.transportapi.caches
import com.maddin.transportapi.components.POI
import com.maddin.transportapi.components.Station
typealias SearchPOICache = SearchCache<POI>
open class SearchPOICacheImpl : SearchCacheImpl<POI>()
typealias SearchStationCache = SearchCache<Station>
open class SearchStationCacheIm... | 0 | Kotlin | 0 | 0 | 0a765f97f308e2daca1a8574a12978f55653cb46 | 372 | transportapi | MIT License |
game-server/src/main/kotlin/org/alter/game/sync/segment/PlayerUpdateBlockSegment.kt | AlterRSPS | 421,831,790 | false | null | package gg.rsmod.game.sync.segment
import gg.rsmod.game.fs.def.NpcDef
import gg.rsmod.game.model.ChatMessage
import gg.rsmod.game.model.Tile
import gg.rsmod.game.model.appearance.Gender
import gg.rsmod.game.model.entity.Player
import gg.rsmod.game.model.item.Item
import gg.rsmod.game.sync.SynchronizationSegment
import... | 8 | null | 33 | 23 | 9dbd62d67de547cfedc43b902797306c5db8fb55 | 19,701 | Alter | Apache License 2.0 |
knapsack-solver/src/test/java/com/github/nieldw/knapsack/constraints/ItemWeightConstraintTest.kt | nieldw | 121,665,123 | false | null | package com.github.nieldw.knapsack.constraints
import com.github.nieldw.knapsack.Item
import com.github.nieldw.knapsack.KnapsackProblem
import org.junit.jupiter.api.Test
import java.math.BigDecimal
import kotlin.test.assertFailsWith
class ItemWeightConstraintTest {
@Test
fun `should pass with weight below or ... | 1 | Kotlin | 0 | 0 | 1ff195184f454349a5d198290e2011116a6fb569 | 926 | knapsack-solver | MIT License |
compose/mpp/demo/src/commonMain/kotlin/androidx/compose/mpp/demo/textfield/TextFields.kt | VexorMC | 838,305,267 | false | {"Kotlin": 104238872, "Java": 66757679, "C++": 9111230, "AIDL": 628952, "Python": 306842, "Shell": 199496, "Objective-C": 47117, "TypeScript": 38627, "HTML": 28384, "Swift": 21386, "Svelte": 20307, "ANTLR": 19860, "C": 15043, "CMake": 14435, "JavaScript": 6457, "GLSL": 3842, "CSS": 1760, "Batchfile": 295} | /*
* Copyright 2023 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 0 | Kotlin | 0 | 2 | 9730aa39ce1cafe408f28962a59b95b82c68587f | 2,907 | compose | Apache License 2.0 |
compose/mpp/demo/src/commonMain/kotlin/androidx/compose/mpp/demo/textfield/TextFields.kt | VexorMC | 838,305,267 | false | {"Kotlin": 104238872, "Java": 66757679, "C++": 9111230, "AIDL": 628952, "Python": 306842, "Shell": 199496, "Objective-C": 47117, "TypeScript": 38627, "HTML": 28384, "Swift": 21386, "Svelte": 20307, "ANTLR": 19860, "C": 15043, "CMake": 14435, "JavaScript": 6457, "GLSL": 3842, "CSS": 1760, "Batchfile": 295} | /*
* Copyright 2023 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 0 | Kotlin | 0 | 2 | 9730aa39ce1cafe408f28962a59b95b82c68587f | 2,907 | compose | Apache License 2.0 |
feather/src/commonMain/kotlin/compose/icons/feathericons/Umbrella.kt | DevSrSouza | 311,134,756 | false | {"Kotlin": 36719092} | package compose.icons.feathericons
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.Round
import androidx.compose.ui.graphics.StrokeJoin
import androidx.com... | 17 | Kotlin | 25 | 571 | a660e5f3033e3222e3553f5a6e888b7054aed8cd | 1,529 | compose-icons | MIT License |
TeamCode/src/main/java/org/firstinspires/ftc/teamcode/vision/AutoWebcamTest.kt | Robotroopers2021 | 418,272,432 | false | {"Kotlin": 277670, "Java": 266601} | package org.firstinspires.ftc.teamcode.vision
import com.qualcomm.robotcore.hardware.HardwareMap
import org.firstinspires.ftc.robotcore.external.hardware.camera.WebcamName
import org.firstinspires.ftc.teamcode.testing.PipelineTesting
import org.openftc.easyopencv.OpenCvCamera
import org.openftc.easyopencv.OpenCvCamera... | 0 | Kotlin | 0 | 1 | 22e3e7de73a9e451b1edd9eab4c1c8fe04789175 | 1,611 | FreightFrenzy | BSD 3-Clause Clear License |
Source/app/src/main/java/com/victorx64/officerpersonalarea/LoginActivity.kt | Gyallahorn | 197,547,000 | false | null | package com.victorx64.officerpersonalarea
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.webkit.WebView
import com.microsoft.appcenter.AppCenter;
import com.microsoft.appcenter.analytics.Analytics;
import com.microsoft.appcenter.crashes.Crashes;
import kotlinx.android.synthetic... | 0 | Kotlin | 2 | 0 | 4f161373cca3ad60c6bd77e14bdef9a974116070 | 1,270 | officer-personal-area | MIT License |
kotlinx-coroutines-core/jvm/test/examples/example-delay-duration-03.kt | hltj | 151,721,407 | false | null | /*
* Copyright 2016-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
// This file was automatically generated from Delay.kt by Knit tool. Do not edit.
package kotlinx.coroutines.examples.exampleDelay03
import kotlinx.coroutines.*
import kotlinx.coroutines.flow.*
fun main() = ... | 295 | null | 99 | 255 | 9565dc2d1bc33056dd4321f9f74da085e6c0f39e | 462 | kotlinx.coroutines-cn | Apache License 2.0 |
ui/src/main/kotlin/com/aptopayments/sdk/features/loadfunds/paymentsources/addcard/FieldState.kt | AptoPayments | 197,800,853 | false | null | package com.aptopayments.sdk.features.loadfunds.paymentsources.addcard
internal enum class FieldState {
TYPING, ERROR, CORRECT
}
| 0 | Kotlin | 0 | 0 | 24680d971d0ae6b2213caf5b1371a29145cadf31 | 134 | apto-ui-sdk-android | MIT License |
testing/spring/src/testFixtures/kotlin/org/orkg/testing/spring/restdocs/RestDocumentationBaseTest.kt | TIBHannover | 197,416,205 | false | null | package org.orkg.testing.spring.restdocs
import com.fasterxml.jackson.databind.ObjectMapper
import org.junit.jupiter.api.BeforeEach
import org.junit.jupiter.api.extension.ExtendWith
import org.orkg.testing.annotations.Neo4jContainerIntegrationTest
import org.springframework.beans.factory.annotation.Autowired
import or... | 0 | null | 2 | 5 | f9de52bdf498fdc200e7f655a52cecff215c1949 | 8,566 | orkg-backend | MIT License |
sample/src/main/kotlin/gtk3/Window.kt | kropp | 91,442,994 | false | null | package gtk3
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Unit
import kotlinx.cinterop.CFunction
import kotlinx.cinterop.COpaquePointer
import kotlinx.cinterop.CPointer
import kotlinx.cinterop.asStableRef
import kotlinx.cinterop.reinterpret
import kotlinx.cinterop.staticCFunction
import k... | 6 | Kotlin | 12 | 90 | 9609e7ab19064d27f05fc76fccd03139306d0001 | 55,292 | kotlin-native-gtk | Apache License 2.0 |
mlkit/app/src/main/java/com/google/firebase/samples/apps/mlkit/kotlin/cloudlandmarkrecognition/CloudLandmarkRecognitionProcessor.kt | SagarBChauhan | 216,040,454 | true | {"Java Properties": 19, "YAML": 4, "Gradle": 59, "Shell": 22, "EditorConfig": 1, "JSON": 8, "Markdown": 23, "Batchfile": 19, "Text": 5, "Ignore List": 36, "INI": 19, "Proguard": 23, "Java": 129, "XML": 217, "Kotlin": 124, "HTML": 1, "JavaScript": 2, "Python": 1} | package com.google.firebase.samples.apps.mlkit.kotlin.cloudlandmarkrecognition
import android.graphics.Bitmap
import android.util.Log
import com.google.android.gms.tasks.Task
import com.google.firebase.ml.vision.FirebaseVision
import com.google.firebase.ml.vision.cloud.FirebaseVisionCloudDetectorOptions
import com.goo... | 5 | null | 0 | 5 | d886d348a681f41f02e78d720cb74fb8c162e339 | 2,150 | quickstart-android | Creative Commons Attribution 4.0 International |
platform/platform-impl/src/com/intellij/ide/observation/AbstractInProgressService.kt | wwwjames | 78,877,532 | false | {"Text": 8034, "INI": 511, "YAML": 424, "Ant Build System": 9, "Batchfile": 31, "Dockerfile": 8, "Shell": 624, "Markdown": 711, "Ignore List": 131, "Git Revision List": 1, "Git Attributes": 10, "EditorConfig": 253, "XML": 7516, "SVG": 4046, "Kotlin": 53787, "Java": 82598, "HTML": 3748, "Java Properties": 202, "Gradle":... | // Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package com.intellij.openapi.observable
import com.intellij.concurrency.currentThreadContext
import com.intellij.concurrency.installThreadContext
import com.intellij.util.concurrency.BlockingJob
imp... | 1 | null | 1 | 1 | 9d4b7c6230b668e59a1aabb2b54cb89ba840fce4 | 2,120 | intellij-community | Apache License 2.0 |
sphinx/application/network/features/feature-meme-input-stream/src/main/java/chat/sphinx/meme_input_stream/MemeInputStreamRetriever.kt | stakwork | 340,103,148 | false | null | package chat.sphinx.meme_input_stream
import chat.sphinx.concept_network_client_crypto.CryptoHeader
import chat.sphinx.concept_network_client_crypto.CryptoScheme
import chat.sphinx.wrapper_meme_server.AuthenticationToken
import chat.sphinx.wrapper_meme_server.headerKey
import chat.sphinx.wrapper_meme_server.headerValu... | 47 | Kotlin | 3 | 15 | 66dcae0cd11c872df4a40b6a9748dd0eee673cca | 1,991 | sphinx-kotlin | MIT License |
features/clipboard/src/main/kotlin/org/michaelbel/template/clipboard/di/ClipboardModule.kt | michaelbel | 354,625,997 | false | null | package org.michaelbel.template.clipboard
import android.content.ClipboardManager
import android.content.Context
import androidx.core.content.ContextCompat
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.android.components.ViewModelComponent
import dagger.hilt.android.qualif... | 4 | null | 2 | 9 | f87a539a759b683a612f75eddb916548af5543c9 | 681 | android-app-template | Apache License 2.0 |
emojify/src/main/kotlin/io/wax911/emojify/util/EmojiTrie.kt | AniTrend | 98,423,653 | false | {"Kotlin": 127438} | /*
* Copyright 2021 AniTrend
*
* 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... | 9 | Kotlin | 12 | 26 | de0b332bf3b453fe4832a502063d90f833d4d60d | 3,566 | android-emojify | Apache License 2.0 |
backend/data/src/main/kotlin/io/tolgee/security/apiKeyAuth/ApiKeyAuthenticationToken.kt | tolgee | 303,766,501 | false | null | package io.tolgee.security.apiKeyAuth
import io.tolgee.dtos.cacheable.UserAccountDto
import io.tolgee.model.ApiKey
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken
import org.springframework.security.core.GrantedAuthority
class ApiKeyAuthenticationToken(val apiKey: ApiKey) : User... | 100 | Kotlin | 40 | 666 | 38c1064783f3ec5d60d0502ec0420698395af539 | 887 | tolgee-platform | Apache License 2.0 |
src/main/kotlin/dev/jonaz/vured/bot/music/AudioPlayerSendHandler.kt | vured | 319,162,419 | false | null | package dev.jonaz.vacegaming.musicbot.music
import com.sedmelluq.discord.lavaplayer.player.AudioPlayer
import com.sedmelluq.discord.lavaplayer.track.playback.MutableAudioFrame
import net.dv8tion.jda.api.audio.AudioSendHandler
import java.nio.ByteBuffer
class AudioPlayerSendHandler(
private val audioPlayer: AudioP... | 8 | null | 15 | 52 | 121962151284a2f9c8db5094a71aa29b4402712e | 706 | vured-bot | Apache License 2.0 |
trixnity-core/src/commonMain/kotlin/net/folivo/trixnity/core/serialization/events/StrippedStateEventSerializer.kt | benkuly | 330,904,570 | false | null | package net.folivo.trixnity.core.serialization.events
import kotlinx.serialization.KSerializer
import kotlinx.serialization.SerializationException
import kotlinx.serialization.descriptors.SerialDescriptor
import kotlinx.serialization.descriptors.buildClassSerialDescriptor
import kotlinx.serialization.encoding.Decoder
... | 0 | null | 3 | 25 | 607e61dad063037518bcba654a625f218bfb7df9 | 2,589 | trixnity | Apache License 2.0 |
app/src/main/java/com/madonasyombua/sportsdb/ui/theme/Theme.kt | Madonahs | 120,659,933 | false | {"Kotlin": 51541} | package com.madonasyombua.sportsdb.ui.theme
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.material.MaterialTheme
import androidx.compose.material.darkColors
import androidx.compose.material.lightColors
import androidx.compose.runtime.Composable
import androidx.compose.ui.graphics.Color... | 1 | Kotlin | 11 | 47 | 52f63ddb4f97b6098fb3be53ceba1de8c4efb947 | 1,015 | The-Sports-DB | Apache License 2.0 |
app/src/main/java/com/puntogris/blint/feature_store/domain/model/CheckableTrader.kt | puntogris | 326,269,924 | false | null | package com.puntogris.blint.feature_store.domain.model
data class CheckableTrader(
val trader: Trader,
val isChecked: Boolean
)
| 0 | null | 0 | 1 | 63dcee8de767f8632f3c8a1cf4918f98bc01644d | 137 | blint | MIT License |
src/main/kotlin/usecases/user/UpdatePassword.kt | ktapi | 562,243,352 | false | null | package usecases.user
import entities.user.Users
import org.ktapi.entities.Validation.lengthAtLeast
import org.ktapi.entities.Validation.validateField
object UpdatePassword {
fun updatePassword(userId: Long, password: String) {
validateField("password", password) { lengthAtLeast(8) }
Users.updateP... | 0 | Kotlin | 0 | 0 | 1f2acc29779ed75c24c813f834548cc2ea84c980 | 353 | ktapi-base | The Unlicense |
viewcomponents/src/main/java/com/afollestad/nocknock/viewcomponents/livedata/ViewLifecycleOwner.kt | afollestad | 64,532,704 | false | null | /**
* Designed and developed by <NAME> (@afollestad)
*
* 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... | 14 | Kotlin | 68 | 375 | 23ba4a69cd2b91cb2cb348a1dccf9107f4c516f9 | 1,950 | nock-nock | Apache License 2.0 |
src/commonTest/kotlin/IntegrationTests.kt | mtorials | 272,526,016 | false | null | import de.mtorials.dialphone.DialPhone
import de.mtorials.dialphone.dialevents.MessageReceivedEvent
import de.mtorials.dialphone.dialevents.RoomInviteEvent
import de.mtorials.dialphone.dialevents.answer
import de.mtorials.dialphone.entities.entityfutures.RoomFuture
import de.mtorials.dialphone.listener.Command
import d... | 7 | Kotlin | 0 | 5 | 59b768644894e17f703b9d27578a744d4e9f281c | 2,859 | dial-phone | Apache License 2.0 |
example/server/src/main/kotlin/cc/scrambledbytes/sse/plugins/Routing.kt | scrambledbytes | 632,011,987 | false | {"Kotlin": 47189, "Shell": 295} | package cc.scrambledbytes.sse.plugins
import cc.scrambledbytes.sse.debugTrace
import io.ktor.http.*
import io.ktor.http.HttpStatusCode.Companion.Unauthorized
import io.ktor.server.application.*
import io.ktor.server.response.*
import io.ktor.server.routing.*
import kotlinx.coroutines.delay
fun Application.configureRo... | 0 | Kotlin | 0 | 0 | b730408ff96b3d10f6a79760f4f660ed033a3fc1 | 1,751 | kmp-sse | Apache License 2.0 |
src/main/kotlin/io/github/leandroborgesferreira/dagcommand/domain/Node.kt | leandroBorgesFerreira | 268,720,218 | false | {"Kotlin": 45712} | package com.github.leandroborgesferreira.dagcommand.domain
data class Node(val name: String, var buildStage: Int, val instability: Double)
| 6 | Kotlin | 9 | 39 | ef7c97e4b2691c9d16953b35dfdd0bdb8691d841 | 140 | dag-command | Apache License 2.0 |
app/src/main/java/com/siju/acexplorer/di/SortModeModule.kt | siju-s | 427,592,750 | false | null | package com.siju.acexplorer.di
import android.content.Context
import androidx.preference.PreferenceManager
import com.siju.acexplorer.common.SortModeData
import dagger.Module
import dagger.Provides
import dagger.hilt.android.qualifiers.ApplicationContext
import dagger.hilt.migration.DisableInstallInCheck
@Module
@Dis... | 4 | Kotlin | 5 | 2 | 68338f005f8365609f115390e7d770197b807763 | 520 | AceExplorer | Apache License 2.0 |
src/main/kotlin/cn/lkgc/jjl/controller/vo/globalnews/GlobalNewsFrontRespVO.kt | mirrorb | 862,651,819 | false | {"Kotlin": 144419, "Java": 24940, "Batchfile": 123} | package cn.lkgc.jjl.controller.vo.globalnews
import com.fasterxml.jackson.annotation.JsonFormat
import java.io.Serializable
import java.time.LocalDateTime
data class GlobalNewsFrontRespVO(
var newsName: String? = null,
var picture: String? = null,
var description: String? = null,
@JsonFormat(pattern =... | 0 | Kotlin | 0 | 1 | 8b2d574c2cfb97a01e6f9868ab80c77f444d7924 | 424 | jjl-housekeeping | Apache License 2.0 |
validable/src/main/java/tech/devscast/validable/NotBlankValidable.kt | devscast | 433,571,968 | false | {"Kotlin": 53661, "Shell": 41} | package tech.devscast.validable
/**
* Validates that the value is not blank - neither empty string nor whitespace are valid
*/
class NotBlankValidable(message: String? = null) : BaseValidable(
validator = { value -> value.isNotBlank() },
errorFor = { _ ->
message ?: "This field cannot be blank"
... | 0 | Kotlin | 5 | 31 | d2df31ff136dc5baaa05819d5d21d489c0ddedb1 | 324 | validable | Apache License 2.0 |
backend/services/auth-service/src/main/kotlin/com/puconvocation/database/mongodb/MongoDBConnector.kt | mihirpaldhikar | 796,559,467 | false | {"Kotlin": 78495, "TypeScript": 47349, "CSS": 2258, "JavaScript": 1477} | /*
* Copyright (c) PU Convocation Management System Authors
*
* This software is owned by PU Convocation Management System Authors.
* No part of the software is allowed to be copied or distributed
* in any form. Any attempt to do so will be considered a violation
* of copyright law.
*
* This software is protect... | 0 | Kotlin | 0 | 0 | 45c4dd87f8cc0312373deb948f44a691c1bef44a | 932 | pu-convocation | Freetype Project License |
src/main/kotlin/no/nav/pensjon/opptjening/omsorgsopptjening/start/innlesning/barnetrygd/monitorering/MicrometerStatusMalere.kt | navikt | 593,529,397 | false | {"Kotlin": 207247, "HTML": 6035, "Dockerfile": 181} | package no.nav.pensjon.opptjening.omsorgsopptjening.bestem.pensjonsopptjening.monitorering
import io.micrometer.core.instrument.Gauge
import io.micrometer.core.instrument.MeterRegistry
import org.slf4j.LoggerFactory
class MicrometerStatusMalere(registry: MeterRegistry) {
private val log = LoggerFactory.getLogger... | 1 | Kotlin | 1 | 0 | db23a94e4e42a9b496318c09bfe27bb79ab057b6 | 2,342 | omsorgsopptjening-start-innlesning | MIT License |
app/src/main/java/com/project/taewon/googlesearch/repository/SearchRepository.kt | TktkOkym | 165,012,706 | false | null | package com.project.taewon.googlesearch.repository
import com.project.taewon.googlesearch.BuildConfig
import com.project.taewon.googlesearch.db.dao.ItemListDao
import com.project.taewon.googlesearch.db.tables.ImageItem
import com.project.taewon.googlesearch.network.response.SearchResponse
import com.project.taewon.goo... | 0 | Kotlin | 1 | 1 | 510f092921748e57ab154f6ed285609b024e15c1 | 998 | AndroidJetpackGoogleSearch | Apache License 2.0 |
kotlin-utils/src/main/kotlin/xyz/lbres/kotlinutils/int/ext/IntExt.kt | lbressler13 | 507,666,582 | false | {"Kotlin": 326012} | package xyz.lbres.kotlinutils.int.ext
import xyz.lbres.kotlinutils.general.simpleIf
/**
* Returns this number if not zero, or the result of calling [getDefaultValue] if it is.
*
* @param getDefaultValue () -> [Int]
* @return [Int] the current value, or the default
*/
fun Int.ifZero(getDefaultValue: () -> Int): I... | 1 | Kotlin | 0 | 1 | 865c0dcdc548a4d4a9d0f5c53f14a611696dba76 | 698 | kotlin-utils | MIT License |
appverifier/src/main/java/com/android/mdl/appreader/readercertgen/ReaderCertificateGenerator.kt | openwallet-foundation-labs | 248,844,077 | false | null | package com.android.mdl.appreader.readercertgen
import com.android.identity.crypto.Algorithm
import com.android.identity.crypto.Certificate
import com.android.identity.crypto.EcPrivateKey
import com.android.identity.crypto.javaPrivateKey
import com.android.identity.crypto.javaPublicKey
import com.android.identity.cryp... | 99 | null | 83 | 163 | e6bf25766985521b9a39d4ed7999f22d57064db5 | 4,128 | identity-credential | Apache License 2.0 |
detekt-rules/src/main/kotlin/io/gitlab/arturbosch/detekt/rules/style/ForbiddenImport.kt | hcknl | 158,261,983 | true | {"Kotlin": 1062676, "Groovy": 3620, "Shell": 1710, "HTML": 698} | package io.gitlab.arturbosch.detekt.rules.style
import io.gitlab.arturbosch.detekt.api.CodeSmell
import io.gitlab.arturbosch.detekt.api.Config
import io.gitlab.arturbosch.detekt.api.Debt
import io.gitlab.arturbosch.detekt.api.Entity
import io.gitlab.arturbosch.detekt.api.Issue
import io.gitlab.arturbosch.detekt.api.Ru... | 1 | Kotlin | 0 | 1 | 565d86d780c15ade77b5468a9e342ba334181333 | 1,862 | detekt | Apache License 2.0 |
modules/kilua-tempus-dominus/src/commonMain/kotlin/dev/kilua/form/time/AbstractRichDateTime.kt | rjaros | 706,876,956 | false | null | /*
* Copyright (c) 2023 Robert Jaros
*
* 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, publis... | 0 | null | 2 | 78 | 258bc5dcfa21c3728aa92a3897bb3766855732c0 | 15,634 | kilua | MIT License |
models/src/main/java/com/vimeo/networking2/Video.kt | Geet2312 | 261,973,040 | false | {"Java Properties": 2, "Ruby": 3, "YAML": 3, "Gradle": 11, "Shell": 2, "Markdown": 7, "Batchfile": 1, "Text": 1, "Gemfile.lock": 1, "Ignore List": 6, "Git Config": 1, "Kotlin": 258, "XML": 30, "Proguard": 3, "Java": 37} | @file:JvmName("VideoUtils")
package com.vimeo.networking2
import com.squareup.moshi.Json
import com.squareup.moshi.JsonClass
import com.vimeo.networking2.annotations.Internal
import com.vimeo.networking2.common.Entity
import com.vimeo.networking2.enums.LicenseType
import com.vimeo.networking2.enums.VideoStatusType
im... | 3 | null | 1 | 1 | d66b4cddd07ff662175488b8f26823c1fbe1bfcf | 5,918 | vimeo-networking-java | MIT License |
ground/src/main/java/com/google/android/ground/model/submission/TaskDataDelta.kt | gino-m | 157,787,424 | true | {"Gradle": 10, "YAML": 3, "Java Properties": 2, "Markdown": 7, "Shell": 1, "Text": 3, "Ignore List": 1, "Batchfile": 1, "EditorConfig": 1, "XML": 116, "JSON": 1, "Proguard": 1, "Kotlin": 355, "Java": 52, "INI": 2, "Python": 1, "SVG": 3} | /*
* Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... | 0 | Kotlin | 0 | 2 | 8197bd086e02e5b9b5324e5e63ccc0844db9fd7f | 1,106 | ground-android | Apache License 2.0 |
backend/entity/src/main/kotlin/ru/itmo/hict/dto/files.kt | AlexandrSinitsyn | 739,110,646 | false | {"Kotlin": 229528, "Vue": 50994, "TypeScript": 19979, "Dockerfile": 9102, "SCSS": 4555, "PLpgSQL": 2489, "JavaScript": 883, "HTML": 376} | package ru.itmo.hict.dto
import ru.itmo.hict.entity.AttachedFile
import ru.itmo.hict.entity.File
import ru.itmo.hict.entity.SequenceLevelType
import java.util.*
enum class FileType(val bucket: String, val extension: String = bucket) {
HICT("hict", "hict.hdf5"),
MCOOL("mcool"),
AGP("agp"),
TRACKS("trac... | 0 | Kotlin | 0 | 0 | 382d9ba7d72eb1bc7fdb37f0e37c695a23e9da6c | 751 | hict-platform | MIT License |
tokenization/src/main/java/com/paysafe/android/tokenization/data/entity/paymentHandle/profile/DateOfBirthSerializable.kt | paysafegroup | 768,755,663 | false | {"Kotlin": 688855, "Shell": 912} | /*
* Copyright (c) 2024 Paysafe Group
*/
package com.paysafe.android.tokenization.data.entity.paymentHandle.profile
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
@Serializable
internal data class DateOfBirthSerializable(
/** Day. */
@SerialName("day")
val day: Int? =... | 0 | Kotlin | 0 | 0 | 1f4e3e9609cf30bb95a52c9e12e2c4250e54f6e5 | 468 | paysafe_sdk_android_payments_api | MIT License |
features/discover/src/main/java/com/dhorowitz/openmovie/discover/presentation/ui/DiscoverMoviesGrid.kt | horowitz | 328,383,283 | false | null | package com.dhorowitz.openmovie.discover.presentation.ui
import androidx.annotation.VisibleForTesting
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.Image
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Arrangement
import androidx.... | 5 | null | 8 | 31 | d103a284a86e4ffc7a8f949ac722f9cc1fc6c3d7 | 2,321 | openMovie | MIT License |
ktor-core/src/org/jetbrains/ktor/pipeline/Async.kt | cbeust | 64,515,203 | false | null | package org.jetbrains.ktor.pipeline
import org.jetbrains.ktor.application.*
import java.util.concurrent.*
fun <C : Any> PipelineContext<C>.runAsync(exec: Executor, block: PipelineContext<C>.() -> Unit): Nothing {
exec.execute {
runBlockWithResult(block)
}
pause()
}
@Deprecated("Use executeOn(exe... | 0 | null | 0 | 1 | 8dc7ac666a336cba0f23a72cc31b8c0b14ad4f09 | 2,995 | ktor | Apache License 2.0 |
rider-fsharp/src/main/java/com/jetbrains/rider/ideaInterop/fileTypes/fsharp/FSharpLanguage.kt | JetBrains | 81,554,746 | false | null | package com.jetbrains.rider.ideaInterop.fileTypes.fsharp
import com.jetbrains.rider.ideaInterop.fileTypes.RiderLanguageBase
abstract class FSharpLanguageBase(name: String) : RiderLanguageBase(name, name) {
override fun isCaseSensitive() = true
}
object FSharpLanguage : FSharpLanguageBase("F#")
object FSharpScrip... | 46 | null | 55 | 303 | fbacf8820f2850a3001a16d9b6426d1b380ae763 | 364 | resharper-fsharp | Apache License 2.0 |
data/src/main/java/com/bayarsahintekin/data/entity/teams/TeamListDbData.kt | bayarsahintekin0 | 651,000,613 | false | {"Kotlin": 244238, "Ruby": 1087} | package com.bayarsahintekin.data.entity.teams
import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey
import androidx.room.TypeConverters
import com.bayarsahintekin.data.entity.MetaDbData
import com.bayarsahintekin.data.entity.toData
import com.bayarsahintekin.data.mapper.MetaTypeCo... | 0 | Kotlin | 0 | 2 | ce2a5773e311ae67c72a535b9a8ca7421fee84de | 891 | MatchScores | Open LDAP Public License v2.2.1 |
data/RF01727/rnartist.kts | fjossinet | 449,239,232 | false | {"Kotlin": 8214424} | import io.github.fjossinet.rnartist.core.*
rnartist {
ss {
rfam {
id = "RF01727"
name = "consensus"
use alignment numbering
}
}
theme {
details {
value = 3
}
color {
location {
5 to 6... | 0 | Kotlin | 0 | 0 | 3016050675602d506a0e308f07d071abf1524b67 | 1,357 | Rfam-for-RNArtist | MIT License |
core/datacap-sql/src/test/kotlin/io/edurt/datacap/sql/builder/ColumnBuilderTest.kt | devlive-community | 537,719,266 | false | {"Java": 1998447, "Vue": 742066, "Kotlin": 462615, "TypeScript": 217485, "ANTLR": 188268, "Shell": 13094, "JavaScript": 3357, "CSS": 1627, "HTML": 357, "Dockerfile": 329} | package io.edurt.datacap.sql.builder
import org.junit.Assert
import org.junit.Test
import org.slf4j.LoggerFactory.getLogger
class ColumnBuilderTest : BaseBuilderTest() {
private val log = getLogger(this.javaClass)
@Test
fun testCreateColumn() {
ColumnBuilder.BEGIN()
ColumnBuilder.CREATE_C... | 32 | Java | 94 | 865 | 1d6be5c990ed3f952bc28699ea15a68b1e2bc265 | 1,529 | datacap | Apache License 2.0 |
app/src/main/java/com/theelitedevelopers/ecommerce/presentation/home/fragments/adapter/ProductAdapter.kt | VhiktorBrown | 548,116,550 | false | {"Kotlin": 36931} | package com.theelitedevelopers.ecommerce.presentation.home.fragments.adapter
import android.annotation.SuppressLint
import android.content.Context
import android.content.Intent
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import com.squareup.picasso.... | 0 | Kotlin | 0 | 1 | 0d0fa0b31b527a8f82e584a888cec6014c66c49b | 2,515 | e-commerce-app | Apache License 2.0 |
kotlinpoet/build/generated/ksp/generationSource/generationSourceMain/kotlin/dev/kord/codegen/kotlinpoet/WithControlFlowCodeBlock.kt | kordlib | 690,695,909 | false | {"Kotlin": 181384} | package dev.kord.codegen.kotlinpoet
import com.squareup.kotlinpoet.CodeBlock
public fun CodeBlock.Builder.withControlFlow(
controlFlow: String,
vararg args: Any?,
block: CodeBlockBuilderScope,
): CodeBlock.Builder = beginControlFlow(controlFlow, args = args).apply(block).endControlFlow()
| 0 | Kotlin | 0 | 9 | 46fc6334bf0f219b29b075178eb548133dd3decb | 303 | codegen-kt | MIT License |
TheMovieDBDagger_v3_Animation/app/src/main/java/com/androidavanzado/popcorn/common/Constants.kt | miguelcamposedu | 261,391,292 | false | null | package com.androidavanzado.popcorn.common
class Constants {
companion object {
const val EXTRA_PERSON_NAME = "EXTRA_PERSON_NAME"
const val EXTRA_PERSON_PHOTO = "EXTRA_PERSON_PHOTO"
const val EXTRA_PERSON_ID = "EXTRA_PERSON_ID"
const val SHARED_PREFS_FILE: String = "SHARED_PREFERENC... | 0 | Kotlin | 0 | 0 | 919c6738203d900c9c96b16f32ba66e915ec266b | 651 | kotlinintroduccion | MIT License |
wallet-sdk/src/main/kotlin/org/stellar/walletsdk/horizon/Stellar.kt | stellar | 523,604,257 | false | null | package org.stellar.walletsdk.horizon
import java.time.Duration
import kotlin.math.min
import mu.KotlinLogging
import org.stellar.sdk.*
import org.stellar.sdk.responses.SubmitTransactionTimeoutResponseException
import org.stellar.walletsdk.Config
import org.stellar.walletsdk.StellarConfiguration
import org.stellar.wal... | 4 | Kotlin | 8 | 5 | c697cc00d28625bf1c2ed81efea796a5917683c0 | 9,477 | kotlin-wallet-sdk | Apache License 2.0 |
simple-icons/src/commonMain/kotlin/compose/icons/simpleicons/Bandsintown.kt | DevSrSouza | 311,134,756 | false | null | package compose.icons.simpleicons
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Butt
import androidx.compose.ui.graphics.StrokeJoin.Miter
import androidx.compose.ui.graphics... | 17 | null | 25 | 571 | a660e5f3033e3222e3553f5a6e888b7054aed8cd | 2,381 | compose-icons | MIT License |
simple-icons/src/commonMain/kotlin/compose/icons/simpleicons/Bandsintown.kt | DevSrSouza | 311,134,756 | false | null | package compose.icons.simpleicons
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.PathFillType.NonZero
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.StrokeCap.Butt
import androidx.compose.ui.graphics.StrokeJoin.Miter
import androidx.compose.ui.graphics... | 17 | null | 25 | 571 | a660e5f3033e3222e3553f5a6e888b7054aed8cd | 2,381 | compose-icons | MIT License |
app/gps_alarm/src/main/java/com/gps_alarm/ui/viewmodel/GpsAlarmVM.kt | KimBoWoon | 519,954,177 | false | null | package com.gps_alarm.ui.viewmodel
import androidx.compose.runtime.mutableStateOf
import com.data.gpsAlarm.local.LocalDataStore
import com.domain.gpsAlarm.usecase.DataStoreUseCase
import com.gps_alarm.base.BaseVM
import com.gps_alarm.data.Address
import com.gps_alarm.data.SettingInfo
import com.gps_alarm.data.StartSer... | 0 | Kotlin | 0 | 0 | 9de4db684a3cf038bbd6cc036549ace1ac611061 | 1,924 | BoWoon | MIT License |
app/src/main/java/com/example/cs567_3d_ui_project/qgis_driver/resource_objects/http_request_interfaces/IFormat.kt | csu-hci-projects | 694,848,698 | false | {"Kotlin": 168968, "Java": 130433, "GLSL": 38243} | package com.example.cs567_3d_ui_project.qgis_driver.resource_objects.http_request_interfaces
interface IFormat {
var format: String
} | 0 | Kotlin | 0 | 0 | ba9b3f53098e2cf35add7c6427de41ef80f920a6 | 138 | FA23-Visualization-of-Infrastructure-with-a-3D-GIS-Mobile-Application | MIT License |
testing/src/test/java/org/oppia/android/testing/lightweightcheckpointing/ExplorationCheckpointTestHelperTest.kt | oppia | 148,093,817 | false | {"Kotlin": 13302271, "Starlark": 693163, "Java": 34760, "Shell": 18872} | package org.oppia.android.testing.lightweightcheckpointing
import android.app.Application
import android.content.Context
import androidx.test.core.app.ApplicationProvider
import androidx.test.ext.junit.runners.AndroidJUnit4
import com.google.common.truth.Truth.assertThat
import dagger.BindsInstance
import dagger.Compo... | 590 | Kotlin | 517 | 315 | 95699f922321f49a3503783187a14ad1cef0d5d3 | 11,488 | oppia-android | Apache License 2.0 |
common/ui/compose/src/main/java/app/tivi/common/compose/ui/PosterCard.kt | chrisbanes | 100,624,553 | false | null | /*
* Copyright 2021 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to i... | 38 | Kotlin | 792 | 5,749 | 5dc4d831fd801afab556165d547042c517f98875 | 2,873 | tivi | Apache License 2.0 |
ui/ui-animation-core/src/commonMain/kotlin/androidx/compose/animation/core/Animation.kt | Sathawale27 | 284,157,908 | false | null | /*
* Copyright 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | 0 | null | 1 | 1 | 549e3e3003cd308939ff31799cf1250e86d3e63e | 12,901 | androidx | Apache License 2.0 |
knobview/src/main/java/app/trian/knobview/command/ToggleEnabledCommand.kt | triandamai | 697,094,517 | false | {"Kotlin": 22629} | package app.trian.knobview.command
import app.trian.knobview.KnobView
class ToggleEnabledCommand(
private val knobView: KnobView
) :KnobCommand {
override fun execute(isEnabled: Boolean) {
knobView.isKnobEnabled = !knobView.isKnobEnabled
}
} | 0 | Kotlin | 0 | 0 | 71815c3aa8a9edcf22d7b7b50a44426d02b8ac41 | 265 | knob-view | MIT License |
mobile_app1/module1014/src/main/java/module1014packageKt0/Foo16.kt | uber-common | 294,831,672 | false | null | package module1014packageKt0;
annotation class Foo16Fancy
@Foo16Fancy
class Foo16 {
fun foo0(){
module1014packageKt0.Foo15().foo3()
}
fun foo1(){
foo0()
}
fun foo2(){
foo1()
}
fun foo3(){
foo2()
}
} | 6 | Java | 6 | 72 | 9cc83148c1ca37d0f2b2fcb08c71ac04b3749e5e | 235 | android-build-eval | Apache License 2.0 |
networking/src/main/java/nick/networking/GitHubJobsService.kt | nihk | 165,444,955 | false | {"Gradle": 10, "Java Properties": 2, "Shell": 1, "Ignore List": 9, "Batchfile": 1, "Markdown": 1, "Text": 1, "Proguard": 8, "XML": 62, "Kotlin": 84, "Java": 1} | package nick.networking
import io.reactivex.Single
import nick.data.model.Position
import retrofit2.http.GET
import retrofit2.http.Path
import retrofit2.http.Query
interface GitHubJobsService {
companion object {
const val BASE_URL = "https://jobs.github.com/"
}
@GET("positions.json")
fun fe... | 0 | Kotlin | 0 | 2 | 600fd5c8148ddc6225983296b0a0e7254cd1c8c7 | 835 | IAmJob | The Unlicense |
packages/runtime/src/commonMain/kotlin/dev/elide/ElideRuntime.kt | elide-dev | 506,113,888 | false | null | /*
* Copyright (c) 2023 Elide Ventures, LLC.
*
* Licensed under the MIT license (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* https://opensource.org/license/mit/
*
* Unless required by applicable law or agreed to in writing, sof... | 75 | null | 15 | 88 | 8ffe4f06741a080d86ec2b09c71b7b0a79ddcaf0 | 718 | elide | MIT License |
core/designsystem/src/main/java/com/eshc/goonersapp/core/designsystem/__IconPack.kt | eshc123 | 640,451,475 | false | null | package com.eshc.goonersapp.core.designsystem
import androidx.compose.ui.graphics.vector.ImageVector
import com.eshc.goonersapp.core.designsystem.iconpack.IcGrid
import com.eshc.goonersapp.core.designsystem.iconpack.IcList
import kotlin.collections.List as ____KtList
public object IconPack
private var __Icons: ____K... | 3 | null | 1 | 1 | ef6c51f062825f6e71f20e7ada10d90370d6976f | 526 | GoonersApp | Apache License 2.0 |
desktop/gui/src/main/kotlin/com/soyle/stories/storyevent/storyEventDetails/presenters/LinkLocationToStoryEventPresenter.kt | Soyle-Productions | 239,407,827 | false | null | package com.soyle.stories.storyevent.storyEventDetails.presenters
import com.soyle.stories.gui.View
import com.soyle.stories.storyevent.storyEventDetails.StoryEventDetailsViewModel
import com.soyle.stories.usecase.storyevent.linkLocationToStoryEvent.LinkLocationToStoryEvent
import java.util.*
internal class LinkLocat... | 45 | Kotlin | 0 | 9 | 1a110536865250dcd8d29270d003315062f2b032 | 997 | soyle-stories | Apache License 2.0 |
src/main/kotlin/com/github/krix38/quicklist/service/EmitterService.kt | krix38 | 199,082,164 | false | null | package com.github.krix38.quicklist.service
import org.slf4j.LoggerFactory.getLogger
import org.springframework.stereotype.Service
import org.springframework.web.servlet.mvc.method.annotation.ResponseBodyEmitter
import org.springframework.web.servlet.mvc.method.annotation.SseEmitter
import java.io.IOException
import j... | 14 | null | 1 | 1 | e47e2c31743886ab007f836da3c4c9fadaf4d955 | 1,957 | quicklist | MIT License |
octicons/src/commonMain/kotlin/compose/icons/octicons/ArrowUpLeft24.kt | DevSrSouza | 311,134,756 | false | {"Kotlin": 36719092} | package com.woowla.compose.icon.collections.octicons.octicons
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.Stro... | 17 | Kotlin | 25 | 571 | a660e5f3033e3222e3553f5a6e888b7054aed8cd | 2,072 | compose-icons | MIT License |
app/src/main/java/h/lillie/weartube/Main.kt | LillieH1000 | 736,381,334 | false | {"Kotlin": 24719} | package h.lillie.weartube
import android.annotation.SuppressLint
import android.content.Context
import android.content.Intent
import android.net.wifi.WifiManager
import android.os.Bundle
import android.os.PowerManager
import android.util.Log
import android.view.Gravity
import android.view.KeyEvent
import android.view.... | 0 | Kotlin | 0 | 0 | 7de01d8f41426d39654dd6b9c34baa3e1cd3d775 | 7,837 | WearTube | MIT License |
analysis/analysis-api-impl-base/tests/org/jetbrains/kotlin/analysis/api/impl/base/test/annotations/TestAnnotationRenderer.kt | JetBrains | 3,432,266 | false | null | /*
* Copyright 2010-2021 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.analysis.api.impl.base.test.annotations
import org.jetbrains.kotlin.analysis.api... | 135 | Kotlin | 4980 | 40,442 | 817f9f13b71d4957d8eaa734de2ac8369ad64770 | 829 | kotlin | Apache License 2.0 |
transformer-rendition/alfresco-promena-lib-transformer-rendition/src/test/kotlin/pl/beone/promena/alfresco/lib/transformerrendition/external/rendition/PromenaRenditionGetterTest.kt | BeOne-PL | 235,078,324 | false | {"Markdown": 15, "Text": 1, "Maven POM": 10, "Shell": 10, "Ignore List": 7, "Java": 13, "Kotlin": 204, "XML": 53, "Java Properties": 34, "INI": 12, "Dockerfile": 10, "YAML": 7} | package pl.beone.promena.alfresco.lib.transformerrendition.external.rendition
import io.kotlintest.shouldBe
import org.alfresco.model.ContentModel
import org.alfresco.model.RenditionModel
import org.alfresco.rad.test.AbstractAlfrescoIT
import org.alfresco.rad.test.AlfrescoTestRunner
import org.alfresco.service.cmr.rep... | 3 | Kotlin | 0 | 0 | e981f383fbec1dd65538f101b26dc1dc3b8a6b38 | 3,616 | promena-alfresco | Apache License 2.0 |
node-api/src/test/kotlin/net/corda/nodeapi/internal/serialization/SetsSerializationTest.kt | vegetish | 106,048,965 | true | {"Kotlin": 3900840, "Java": 213817, "Groovy": 30106, "Shell": 839, "Batchfile": 106} | package net.corda.nodeapi.internal.serialization
import com.esotericsoftware.kryo.Kryo
import com.esotericsoftware.kryo.util.DefaultClassResolver
import net.corda.core.serialization.serialize
import net.corda.node.services.statemachine.SessionData
import net.corda.testing.TestDependencyInjectionBase
import net.corda.t... | 11 | Kotlin | 0 | 0 | f9614123968035cb325c6de0b84cf2718643f399 | 1,958 | corda | Apache License 2.0 |
protocol/notify/src/main/kotlin/com/walletconnect/notify/data/jwt/getNotifications/EncodeGetNotificationsRequestJwtUseCase.kt | WalletConnect | 435,951,419 | false | {"Kotlin": 2502705, "Java": 4366, "Shell": 1892} | @file:JvmSynthetic
package com.walletconnect.notify.data.jwt.getNotifications
import com.walletconnect.android.internal.common.jwt.did.EncodeDidJwtPayloadUseCase
import com.walletconnect.android.internal.common.model.AccountId
import com.walletconnect.foundation.common.model.PublicKey
import com.walletconnect.foundat... | 78 | Kotlin | 71 | 199 | e373c535d7cefb2f932368c79622ac05763b411a | 1,299 | WalletConnectKotlinV2 | Apache License 2.0 |
src/main/kotlin/ru/qiwi/devops/mission/control/service/search/SearchRequest.kt | qiwi | 329,911,226 | false | null | package ru.qiwi.devops.mission.control.service.search
data class SearchRequest(
val filter: String,
val limit: Int
) | 1 | Kotlin | 1 | 1 | a5b4a1dc716841bbf0439fa309e3a2b85bbeb1d3 | 125 | k8s-mission-control | MIT License |
app/src/main/java/cz/blackchameleon/trendingprojects/framework/remote/LanguageMo.kt | klepackovakarolina | 327,316,960 | false | null | package cz.blackchameleon.trendingprojects.framework.remote
import android.os.Parcelable
import cz.blackchameleon.domain.Language
import kotlinx.android.parcel.Parcelize
/**
* API object representation of language object
*
* @author <NAME> on 29.11.2020.
*/
@Parcelize
data class LanguageMo(
val urlParam: Stri... | 0 | Kotlin | 0 | 0 | 43b8ca613f068f06dbc7c8a20569c0788f0bdf39 | 447 | trending-projects | MIT License |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.